[libc-commits] [libc] [libc][math][c23] Fix X86_Binary80 tests for canonicalize functions. (PR #87016)
Shourya Goel via libc-commits
libc-commits at lists.llvm.org
Thu Mar 28 15:41:01 PDT 2024
https://github.com/Sh0g0-1758 created https://github.com/llvm/llvm-project/pull/87016
Fixes the issue as mentioned here: #86924
>From 63116236bd7a2ff7329c3e9f48707f98663cdd86 Mon Sep 17 00:00:00 2001
From: Sh0g0-1758 <shouryagoel10000 at gmail.com>
Date: Fri, 29 Mar 2024 04:08:14 +0530
Subject: [PATCH] Fixed canonicalize tests
---
libc/test/src/math/smoke/CanonicalizeTest.h | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
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);
More information about the libc-commits
mailing list