https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117690
Bug ID: 117690 Summary: RISC-V: Constant is miscompiled by zba extension Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: kristerw at gcc dot gnu.org Target Milestone: --- The following function returns 0x5fff9ffa instead of the expected 0x4fffaffb0fffefff when compiled as riscv64-unknown-linux-gnu-gcc -O2 -march=rv64gc_zba bug.c unsigned long foo() { return 0x4fffaffb0fffefffUL; }