[libc-commits] [libc] 65ad626 - [libc] Fix atan2f128 test for aarch64. (#133924)
via libc-commits
libc-commits at lists.llvm.org
Tue Apr 1 08:38:00 PDT 2025
Author: lntue
Date: 2025-04-01T11:37:57-04:00
New Revision: 65ad6267e82f6d8532e4b9de4716bb8fdbdd9ac0
URL: https://github.com/llvm/llvm-project/commit/65ad6267e82f6d8532e4b9de4716bb8fdbdd9ac0
DIFF: https://github.com/llvm/llvm-project/commit/65ad6267e82f6d8532e4b9de4716bb8fdbdd9ac0.diff
LOG: [libc] Fix atan2f128 test for aarch64. (#133924)
Added:
Modified:
libc/test/src/math/atan2f128_test.cpp
Removed:
################################################################################
diff --git a/libc/test/src/math/atan2f128_test.cpp b/libc/test/src/math/atan2f128_test.cpp
index c03d8703d7c7b..0bfec1bd276ed 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) {
More information about the libc-commits
mailing list