[Bug target/120263] RISC-V: FRM not restored if clobbered via inline asm

2025-05-15 Thread vineetg at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120263 --- Comment #3 from Vineet Gupta --- But then makes the case for removing following special case handling ``` static bool frm_unknown_dynamic_p (rtx_insn *insn) { /* Return true if there is a definition of FRM. */ if (reg_set_p (gen_rtx_RE

[Bug target/120263] RISC-V: FRM not restored if clobbered via inline asm

2025-05-15 Thread vineetg at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120263 --- Comment #2 from Vineet Gupta --- https://godbolt.org/z/8b1scoWGd It seems llvm also follows the existing gcc behavior - so maybe this is INVALID ?

[Bug target/120263] RISC-V: FRM not restored if clobbered via inline asm

2025-05-13 Thread vineetg at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120263 Vineet Gupta changed: What|Removed |Added Keywords||wrong-code Target|