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

YunQiang Su via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 8 17:59:04 PST 2024


================
@@ -16574,21 +16574,34 @@ type.
 
 Semantics:
 """"""""""
+Follows the semantics of mininumNumber in IEEE-754-2019, except for signaling NaNs. If either operand
+is an sNaN, the result is always a qNaN. This matches the recommended behavior for the libm
+function `fmin`, although not all implementations have implemented these recommended behaviors.
----------------
wzssyqa wrote:

Yes. We describe it with both 2008/2019. Wish it may be clearer..

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


More information about the llvm-commits mailing list