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. I missed these ones in #155894.

@rupprecht rupprecht added the skip-precommit-approval PR for CI feedback, not intended for review label Aug 28, 2025
@llvmbot llvmbot added the libc label Aug 28, 2025
@rupprecht rupprecht enabled auto-merge (squash) August 28, 2025 21:28
@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. I missed these ones in #155894.


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

1 Files Affected:

  • (modified) libc/test/src/math/smoke/TotalOrderMagTest.h (-6)
diff --git a/libc/test/src/math/smoke/TotalOrderMagTest.h b/libc/test/src/math/smoke/TotalOrderMagTest.h
index 32f3932cb3f6d..8a389df089328 100644
--- a/libc/test/src/math/smoke/TotalOrderMagTest.h
+++ b/libc/test/src/math/smoke/TotalOrderMagTest.h
@@ -106,12 +106,6 @@ class TotalOrderMagTestTemplate : public LIBC_NAMESPACE::testing::FEnvSafeTest {
   }
 
   void testNaNPayloads(TotalOrderMagFunc 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 merged commit 3ea7956 into llvm:main Aug 28, 2025
22 checks passed
@rupprecht rupprecht deleted the libc-unused-nans-2 branch August 28, 2025 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
libc skip-precommit-approval PR for CI feedback, not intended for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants