[libc-commits] [libc] [libc][test] Remove unused nan variables (PR #155894)
Jordan Rupprecht via libc-commits
libc-commits at lists.llvm.org
Thu Aug 28 10:51:34 PDT 2025
https://github.com/rupprecht created https://github.com/llvm/llvm-project/pull/155894
These are redefined/shadowed by the `if constexpr (FPBits::FRACTION_LEN - 1 >= 5)` case below.
Added by #155569
>From e3df3d1c105f6c55765e40ae6e1e64476c12f604 Mon Sep 17 00:00:00 2001
From: Jordan Rupprecht <rupprecht at google.com>
Date: Thu, 28 Aug 2025 10:49:58 -0700
Subject: [PATCH] [libc][test] Remove unused nan variables
---
libc/test/src/math/smoke/TotalOrderTest.h | 6 ------
1 file changed, 6 deletions(-)
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