futog wrote: > Does implementing `RISCVTargetLowering::getRoundingControlRegisters()` fix this? No. As far as I understand, this is used in case of inline asm. https://github.com/llvm/llvm-project/pull/139864