[Bug target/116204] RISC-V: rv32 miscompile at -O0

2024-08-02 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116204 --- Comment #3 from Patrick O'Neill --- Ah - thanks for the quick correction. I had forgotten about that difference.

[Bug target/116204] RISC-V: rv32 miscompile at -O0

2024-08-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116204 --- Comment #2 from Andrew Pinski --- That is long is 32bit on ILP32 targets while 64bit on LP64 targets. So the difference between RV32 and RV64 is rather the size of long being different rather than a miscompiling.

[Bug target/116204] RISC-V: rv32 miscompile at -O0

2024-08-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116204 Andrew Pinski changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED