[libc-commits] [libc] [libc][math][c23] Fix X86_Binary80 tests for canonicalize functions. (PR #87016)
via libc-commits
libc-commits at lists.llvm.org
Thu Mar 28 15:41:37 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Shourya Goel (Sh0g0-1758)
<details>
<summary>Changes</summary>
Fixes the issue as mentioned here: #<!-- -->86924
---
Full diff: https://github.com/llvm/llvm-project/pull/87016.diff
1 Files Affected:
- (modified) libc/test/src/math/smoke/CanonicalizeTest.h (+4-4)
``````````diff
diff --git a/libc/test/src/math/smoke/CanonicalizeTest.h b/libc/test/src/math/smoke/CanonicalizeTest.h
index 482fc3b153cb2e..0e3c6cfac83ba7 100644
--- a/libc/test/src/math/smoke/CanonicalizeTest.h
+++ b/libc/test/src/math/smoke/CanonicalizeTest.h
@@ -67,22 +67,22 @@ class CanonicalizeTest : public LIBC_NAMESPACE::testing::Test {
// Exponent | Significand | Meaning
// | Bits 63-62 | Bits 61-0 |
// All Ones | 00 | Non-Zero | Pseudo NaN, Value = SNaN
- FPBits test2_1(0x000000000'00007FFF'00000000'00000001_u128);
+ FPBits test2_1(0x00000000'00007FFF'00000340'00230000_u128);
const T test2_1_val = test2_1.get_val();
TEST_SPECIAL(cx, test2_1_val, 1, FE_INVALID);
EXPECT_FP_EQ(cx, aNaN);
- FPBits test2_2(0x000000000'00007FFF'00000042'70000001_u128);
+ FPBits test2_2(0x00000000'00007FFF'00000042'70000001_u128);
const T test2_2_val = test2_2.get_val();
TEST_SPECIAL(cx, test2_2_val, 1, FE_INVALID);
EXPECT_FP_EQ(cx, aNaN);
- FPBits test2_3(0x000000000'00007FFF'00000000'08261001_u128);
+ FPBits test2_3(0x00000000'00007FFF'00000000'08261001_u128);
const T test2_3_val = test2_3.get_val();
TEST_SPECIAL(cx, test2_3_val, 1, FE_INVALID);
EXPECT_FP_EQ(cx, aNaN);
- FPBits test2_4(0x000000000'00007FFF'00007800'08261001_u128);
+ FPBits test2_4(0x00000000'00007FFF'00007800'08261001_u128);
const T test2_4_val = test2_4.get_val();
TEST_SPECIAL(cx, test2_4_val, 1, FE_INVALID);
EXPECT_FP_EQ(cx, aNaN);
``````````
</details>
https://github.com/llvm/llvm-project/pull/87016
More information about the libc-commits
mailing list