[Bug middle-end/118614] [riscv] Naked function attribute on riscv optimizes away C conditional

2025-01-22 Thread charlie at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118614 --- Comment #3 from Charlie --- Oh okay, thank you for clarifying this behavior for me. I was assuming that in a naked function there would be different behavior with register variables, but I see that is an invalid assumption and it was just co

[Bug c/118614] New: [riscv] Naked function attribute on riscv optimizes away C conditional

2025-01-22 Thread charlie at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118614 Bug ID: 118614 Summary: [riscv] Naked function attribute on riscv optimizes away C conditional Product: gcc Version: 14.2.1 Status: UNCONFIRMED Severity: norma

[Bug c/111501] New: RISC-V: non-optimal casting when shifting

2023-09-20 Thread charlie at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111501 Bug ID: 111501 Summary: RISC-V: non-optimal casting when shifting Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c