File tree Expand file tree Collapse file tree 2 files changed +19
-21
lines changed
utils/bazel/llvm-project-overlay/libc/test/src/math/smoke Expand file tree Collapse file tree 2 files changed +19
-21
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ class FmaTestTemplate : public LIBC_NAMESPACE::testing::FEnvSafeTest {
8888 // Test overflow.
8989 OutType z = out.max_normal ;
9090 InType in_z = LIBC_NAMESPACE::fputil::cast<InType>(out.max_normal );
91- EXPECT_FP_EQ_ALL_ROUNDING (OutType ( 0.75 ) * z ,
91+ EXPECT_FP_EQ_ALL_ROUNDING (func ( InType (- 0.25 ), in_z, in_z) ,
9292 func (InType (1.75 ), in_z, -in_z));
9393
9494 // Exact cancellation.
Original file line number Diff line number Diff line change @@ -204,21 +204,20 @@ math_test(
204204 hdrs = ["FmaTest.h" ],
205205)
206206
207- # TODO: Reenable these tests once they pass at Google.
208- # math_test(
209- # name = "f16fma",
210- # hdrs = ["FmaTest.h"],
211- # )
212- #
213- # math_test(
214- # name = "f16fmaf",
215- # hdrs = ["FmaTest.h"],
216- # )
217- #
218- # math_test(
219- # name = "f16fmal",
220- # hdrs = ["FmaTest.h"],
221- # )
207+ math_test (
208+ name = "f16fma" ,
209+ hdrs = ["FmaTest.h" ],
210+ )
211+
212+ math_test (
213+ name = "f16fmaf" ,
214+ hdrs = ["FmaTest.h" ],
215+ )
216+
217+ math_test (
218+ name = "f16fmal" ,
219+ hdrs = ["FmaTest.h" ],
220+ )
222221
223222math_test (
224223 name = "dmull" ,
@@ -477,11 +476,10 @@ math_test(
477476
478477# TODO: Add fma, fmaf, fmal, fmaf128 tests.
479478
480- # TODO: Reenable this test once it passes at Google.
481- # math_test(
482- # name = "fmaf16",
483- # hdrs = ["FmaTest.h"],
484- # )
479+ math_test (
480+ name = "fmaf16" ,
481+ hdrs = ["FmaTest.h" ],
482+ )
485483
486484math_test (
487485 name = "fmax" ,
You can’t perform that action at this time.
0 commit comments