Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions libc/test/src/math/smoke/FmaTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,8 @@ class FmaTestTemplate : public LIBC_NAMESPACE::testing::FEnvSafeTest {
}

// Test overflow.
OutType z = out.max_normal;
InType in_z = LIBC_NAMESPACE::fputil::cast<InType>(out.max_normal);
EXPECT_FP_EQ_ALL_ROUNDING(OutType(0.75) * z,
EXPECT_FP_EQ_ALL_ROUNDING(func(InType(-0.25), in_z, in_z),
func(InType(1.75), in_z, -in_z));

// Exact cancellation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,21 +204,20 @@ math_test(
hdrs = ["FmaTest.h"],
)

# TODO: Reenable these tests once they pass at Google.
# math_test(
# name = "f16fma",
# hdrs = ["FmaTest.h"],
# )
#
# math_test(
# name = "f16fmaf",
# hdrs = ["FmaTest.h"],
# )
#
# math_test(
# name = "f16fmal",
# hdrs = ["FmaTest.h"],
# )
math_test(
name = "f16fma",
hdrs = ["FmaTest.h"],
)

math_test(
name = "f16fmaf",
hdrs = ["FmaTest.h"],
)

math_test(
name = "f16fmal",
hdrs = ["FmaTest.h"],
)

math_test(
name = "dmull",
Expand Down Expand Up @@ -477,11 +476,10 @@ math_test(

# TODO: Add fma, fmaf, fmal, fmaf128 tests.

# TODO: Reenable this test once it passes at Google.
# math_test(
# name = "fmaf16",
# hdrs = ["FmaTest.h"],
# )
math_test(
name = "fmaf16",
hdrs = ["FmaTest.h"],
)

math_test(
name = "fmax",
Expand Down
Loading