Issue 238134
Summary [SelectionDAG] `minnum`/`maxnum` may return NaN if either argument is sNaN
Labels floating-point
Assignees ZERICO2005
Reporter ZERICO2005
    https://github.com/llvm/llvm-project/blob/7120cc7efd961cbabe54516e690e103c227bb73a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp#L6499-L6507
`minnum`/`maxnum` may return a NaN if either operand is a signaling NaN. So this needs to be fixed for `SelectionDAG::isKnownNeverNaN`

Related to https://github.com/llvm/llvm-project/issues/233270


_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to