[libc-commits] [libc] 44b87e4 - [libc] Reduce the range of hypotf exhaustive test to be run automatically. (#133944)
via libc-commits
libc-commits at lists.llvm.org
Tue Apr 1 10:29:31 PDT 2025
Author: lntue
Date: 2025-04-01T13:29:28-04:00
New Revision: 44b87e42066064d74f4a9c69ea02aa9558ca6a1a
URL: https://github.com/llvm/llvm-project/commit/44b87e42066064d74f4a9c69ea02aa9558ca6a1a
DIFF: https://github.com/llvm/llvm-project/commit/44b87e42066064d74f4a9c69ea02aa9558ca6a1a.diff
LOG: [libc] Reduce the range of hypotf exhaustive test to be run automatically. (#133944)
The current setup of `hypotf` exhaustive tests might take days to
finish.
Added:
Modified:
libc/test/src/math/exhaustive/hypotf_test.cpp
Removed:
################################################################################
diff --git a/libc/test/src/math/exhaustive/hypotf_test.cpp b/libc/test/src/math/exhaustive/hypotf_test.cpp
index f4c63eadb42e9..695a2fbcafa4a 100644
--- a/libc/test/src/math/exhaustive/hypotf_test.cpp
+++ b/libc/test/src/math/exhaustive/hypotf_test.cpp
@@ -49,11 +49,15 @@ struct HypotfChecker : public virtual LIBC_NAMESPACE::testing::Test {
}
};
-using LlvmLibcHypotfExhaustiveTest = LlvmLibcExhaustiveMathTest<HypotfChecker>;
+using LlvmLibcHypotfExhaustiveTest =
+ LlvmLibcExhaustiveMathTest<HypotfChecker, /*Increment=*/1>;
// Range of the first input: [2^23, 2^24];
static constexpr uint32_t START = (23U + 127U) << 23;
-static constexpr uint32_t STOP = (24U + 127U) << 23;
+// static constexpr uint32_t STOP = (24U + 127U) << 23;
+// Use a smaller range for automated tests, since the full range takes too long
+// and should only be run manually.
+static constexpr uint32_t STOP = ((23U + 127U) << 23) + 1024U;
TEST_F(LlvmLibcHypotfExhaustiveTest, PositiveRange) {
test_full_range_all_roundings(START, STOP);
More information about the libc-commits
mailing list