[Bug target/108595] -fcall-saved-a1 with -O2 leads to incorrect RISC-V code-gen around inline assembly

2023-01-30 Thread idan.horowitz at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108595 --- Comment #3 from Idan Horowitz --- (In reply to Andrew Pinski from comment #2) > I am suspecting this is just an invalid option to use here. a1 is indeed used for argument passing, it's used to pass the second argument. I don't think the GCC

[Bug rtl-optimization/108595] New: -fcall-saved-a1 with -O2 leads to incorrect RISC-V code-gen around inline assembly

2023-01-29 Thread idan.horowitz at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108595 Bug ID: 108595 Summary: -fcall-saved-a1 with -O2 leads to incorrect RISC-V code-gen around inline assembly Product: gcc Version: 12.2.0 Status: UNCONFIRMED Sev