[libc-commits] [libc] [llvm] [libc] Fix math smoke powf_test's tolerance settings (PR #229390)

via libc-commits libc-commits at lists.llvm.org
Tue Oct 6 06:51:09 PDT 2026


================
@@ -294,7 +295,11 @@ class PowfTest : public LIBC_NAMESPACE::testing::FPTest<float> {
   LIST_POWF_FTZ_DAZ_TESTS(suffix, func)                                        \
   static_assert(true, "Require semicolon.")
 
-LIST_POWF_TESTS(Default, LIBC_NAMESPACE::powf, /*tolerance=*/0);
+LIST_POWF_TESTS(Default, LIBC_NAMESPACE::powf,
+                /*tolerance=*/LIBC_NAMESPACE::math::powf ==
----------------
lntue wrote:

Can we condition this on `LIBC_MATH_HAS_SKIP_ACCURATE_PASS` being defined instead?

https://github.com/llvm/llvm-project/pull/229390


More information about the libc-commits mailing list