Skip to content

[libc] Reduce the range of hypotf exhaustive test to be run automatically. #133944

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 1, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions libc/test/src/math/exhaustive/hypotf_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Loading