[clang] [llvm] APFloat: Fix maxnum and minnum with sNaN (PR #112854)
Matt Arsenault via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 21 10:33:13 PDT 2024
================
@@ -582,7 +582,46 @@ TEST(APFloatTest, MinNum) {
APFloat zp(0.0);
APFloat zn(-0.0);
EXPECT_EQ(-0.0, minnum(zp, zn).convertToDouble());
- EXPECT_EQ(-0.0, minnum(zn, zp).convertToDouble());
+
+ APInt intPayload_89ab(64, 0x89ab);
----------------
arsenm wrote:
Can / should cover this in lit constant folding tests of the intrinsics
https://github.com/llvm/llvm-project/pull/112854
More information about the cfe-commits
mailing list