File tree Expand file tree Collapse file tree 2 files changed +19
-22
lines changed
utils/bazel/llvm-project-overlay/libc/test/src/math/smoke Expand file tree Collapse file tree 2 files changed +19
-22
lines changed Original file line number Diff line number Diff line change @@ -86,9 +86,8 @@ class FmaTestTemplate : public LIBC_NAMESPACE::testing::FEnvSafeTest {
86
86
}
87
87
88
88
// Test overflow.
89
- OutType z = out.max_normal ;
90
89
InType in_z = LIBC_NAMESPACE::fputil::cast<InType>(out.max_normal );
91
- EXPECT_FP_EQ_ALL_ROUNDING (OutType ( 0.75 ) * z ,
90
+ EXPECT_FP_EQ_ALL_ROUNDING (func ( InType (- 0.25 ), in_z, in_z) ,
92
91
func (InType (1.75 ), in_z, -in_z));
93
92
94
93
// Exact cancellation.
Original file line number Diff line number Diff line change @@ -204,21 +204,20 @@ math_test(
204
204
hdrs = ["FmaTest.h" ],
205
205
)
206
206
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
+ )
222
221
223
222
math_test (
224
223
name = "dmull" ,
@@ -485,11 +484,10 @@ math_test(
485
484
hdrs = ["FmaTest.h" ],
486
485
)
487
486
488
- # TODO: Reenable this test once it passes at Google.
489
- # math_test(
490
- # name = "fmaf16",
491
- # hdrs = ["FmaTest.h"],
492
- # )
487
+ math_test (
488
+ name = "fmaf16" ,
489
+ hdrs = ["FmaTest.h" ],
490
+ )
493
491
494
492
math_test (
495
493
name = "fmax" ,
You can’t perform that action at this time.
0 commit comments