Skip to content

Commit 44b87e4

Browse files
authored
[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.
1 parent f14ff59 commit 44b87e4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

libc/test/src/math/exhaustive/hypotf_test.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,15 @@ struct HypotfChecker : public virtual LIBC_NAMESPACE::testing::Test {
4949
}
5050
};
5151

52-
using LlvmLibcHypotfExhaustiveTest = LlvmLibcExhaustiveMathTest<HypotfChecker>;
52+
using LlvmLibcHypotfExhaustiveTest =
53+
LlvmLibcExhaustiveMathTest<HypotfChecker, /*Increment=*/1>;
5354

5455
// Range of the first input: [2^23, 2^24];
5556
static constexpr uint32_t START = (23U + 127U) << 23;
56-
static constexpr uint32_t STOP = (24U + 127U) << 23;
57+
// static constexpr uint32_t STOP = (24U + 127U) << 23;
58+
// Use a smaller range for automated tests, since the full range takes too long
59+
// and should only be run manually.
60+
static constexpr uint32_t STOP = ((23U + 127U) << 23) + 1024U;
5761

5862
TEST_F(LlvmLibcHypotfExhaustiveTest, PositiveRange) {
5963
test_full_range_all_roundings(START, STOP);

0 commit comments

Comments
 (0)