[libc-commits] [libc] 8b3f158 - [libc][test] Remove unused nan variables (#155894)

via libc-commits libc-commits at lists.llvm.org
Thu Aug 28 10:56:14 PDT 2025


Author: Jordan Rupprecht
Date: 2025-08-28T17:56:09Z
New Revision: 8b3f1583eada8949a8a7cb0cdcfd17c0665ce739

URL: https://github.com/llvm/llvm-project/commit/8b3f1583eada8949a8a7cb0cdcfd17c0665ce739
DIFF: https://github.com/llvm/llvm-project/commit/8b3f1583eada8949a8a7cb0cdcfd17c0665ce739.diff

LOG: [libc][test] Remove unused nan variables (#155894)

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

Added by #155569

Added: 
    

Modified: 
    libc/test/src/math/smoke/TotalOrderTest.h

Removed: 
    


################################################################################
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));
 


        


More information about the libc-commits mailing list