[llvm] LangRef: Clarify llvm.minnum and llvm.maxnum about sNaN (PR #112852)

YunQiang Su via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 22 18:26:00 PDT 2024


wzssyqa wrote:

> Say you write `fmax(x+0, 1.0)`, and x is an snan. The result is unpredictable unless you use constrained intrinsic. If we optimize out the "+0", it produces qnan; if we don't, it returns 1.0.

done

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


More information about the llvm-commits mailing list