Skip to content

Conversation

rupprecht
Copy link
Collaborator

These are redefined/shadowed by the if constexpr (FPBits::FRACTION_LEN - 1 >= 5) case below.

Added by #155569

@llvmbot llvmbot added the libc label Aug 28, 2025
@llvmbot
Copy link
Member

llvmbot commented Aug 28, 2025

@llvm/pr-subscribers-libc

Author: Jordan Rupprecht (rupprecht)

Changes

These are redefined/shadowed by the if constexpr (FPBits::FRACTION_LEN - 1 >= 5) case below.

Added by #155569


Full diff: https://github.com/llvm/llvm-project/pull/155894.diff

1 Files Affected:

  • (modified) libc/test/src/math/smoke/TotalOrderTest.h (-6)
diff --git a/libc/test/src/math/smoke/TotalOrderTest.h b/libc/test/src/math/smoke/TotalOrderTest.h
index febed0157a6b2..50aac202f2028 100644
--- a/libc/test/src/math/smoke/TotalOrderTest.h
+++ b/libc/test/src/math/smoke/TotalOrderTest.h
@@ -104,12 +104,6 @@ class TotalOrderTestTemplate : public LIBC_NAMESPACE::testing::FEnvSafeTest {
   }
 
   void testNaNPayloads(TotalOrderFunc func) {
-
-    T qnan_0x15 = FPBits::quiet_nan(Sign::POS, 0x15).get_val();
-    T neg_qnan_0x15 = FPBits::quiet_nan(Sign::NEG, 0x15).get_val();
-    T snan_0x15 = FPBits::signaling_nan(Sign::POS, 0x15).get_val();
-    T neg_snan_0x15 = FPBits::signaling_nan(Sign::NEG, 0x15).get_val();
-
     EXPECT_TRUE(funcWrapper(func, aNaN, aNaN));
     EXPECT_TRUE(funcWrapper(func, sNaN, sNaN));
 

@rupprecht rupprecht enabled auto-merge (squash) August 28, 2025 17:54
@rupprecht rupprecht merged commit 8b3f158 into llvm:main Aug 28, 2025
21 checks passed
@rupprecht rupprecht deleted the libc-unused-nans branch August 28, 2025 17:56
rupprecht added a commit that referenced this pull request Aug 28, 2025
These are redefined/shadowed by the if constexpr (FPBits::FRACTION_LEN -
1 >= 5) case below.

Added by #155569. I missed
these ones in #155894.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants