diff options
author | lntue <lntue@google.com> | 2025-04-01 11:37:57 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-01 11:37:57 -0400 |
commit | 65ad6267e82f6d8532e4b9de4716bb8fdbdd9ac0 (patch) | |
tree | 0be4d52a9d92115abd3214fa20c7d7d119cda75b | |
parent | a8a33bab69ccdeca9b0e1e6730ad17230431d2ab (diff) | |
download | llvm-65ad6267e82f6d8532e4b9de4716bb8fdbdd9ac0.zip llvm-65ad6267e82f6d8532e4b9de4716bb8fdbdd9ac0.tar.gz llvm-65ad6267e82f6d8532e4b9de4716bb8fdbdd9ac0.tar.bz2 |
[libc] Fix atan2f128 test for aarch64. (#133924)
-rw-r--r-- | libc/test/src/math/atan2f128_test.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libc/test/src/math/atan2f128_test.cpp b/libc/test/src/math/atan2f128_test.cpp index c03d870..0bfec1b 100644 --- a/libc/test/src/math/atan2f128_test.cpp +++ b/libc/test/src/math/atan2f128_test.cpp @@ -18,13 +18,15 @@ namespace mpfr = LIBC_NAMESPACE::testing::mpfr; TEST_F(LlvmLibcAtan2f128Test, InQuadRange) { constexpr StorageType X_COUNT = 123; - constexpr StorageType X_START = FPBits(0.25q).uintval(); - constexpr StorageType X_STOP = FPBits(4.0q).uintval(); + constexpr StorageType X_START = + FPBits(static_cast<float128>(0.25q)).uintval(); + constexpr StorageType X_STOP = FPBits(static_cast<float128>(4.0q)).uintval(); constexpr StorageType X_STEP = (X_STOP - X_START) / X_COUNT; constexpr StorageType Y_COUNT = 137; - constexpr StorageType Y_START = FPBits(0.25q).uintval(); - constexpr StorageType Y_STOP = FPBits(4.0q).uintval(); + constexpr StorageType Y_START = + FPBits(static_cast<float128>(0.25q)).uintval(); + constexpr StorageType Y_STOP = FPBits(static_cast<float128>(4.0q)).uintval(); constexpr StorageType Y_STEP = (Y_STOP - Y_START) / Y_COUNT; auto test = [&](mpfr::RoundingMode rounding_mode) { |