[llvm] [GlobalISel][AArch64] Implement `llvm.{get,set}.rounding` lowering (PR #210665)

Ömer Sinan Ağacan via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 15 09:18:57 PDT 2026


osa1 wrote:

To answer my own question above, I found [this](https://llvm.org/docs/UndefinedBehavior.html) documentation which says we shouldn't have UB in tests unnecessarily.

However I don't see any documentation that says `llvm.{set,get}.rounding` outside of `strictfp` are UB.

Secondly, making this function `strictfp` doesn't change the test expectations, because the `strictfp` seems to only effect "constrained" fp operations, and `fadd` is not "constrained". The constrained version of it is `llvm.experimental.constrained.fadd.f32`, but if I use the constrained version then the test becomes identical to the next test.

So I still think it makes sense to keep it, at least for now.

Any more thoughts/comments @arsenm @cofibrant?

https://github.com/llvm/llvm-project/pull/210665


More information about the llvm-commits mailing list