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

Joshua Cranmer via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 18 09:07:59 PDT 2024


================
@@ -16464,21 +16464,13 @@ type.
 
 Semantics:
 """"""""""
+Follows the IEEE754 2008 semantics for minNum, except for handling of
++0.0 vs -0.0. This matches the behavior of libm's fmin.
----------------
jcranmer-intel wrote:

IEEE 754 has the same indifference to the result of `minNum(-0.0, +0.0)`, it's not a deviation from the IEEE 754 specification.

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


More information about the llvm-commits mailing list