Skip to content

Commit 5f2b384

Browse files
committed
[libc][math][c23] Update cmake.
1 parent 65c399b commit 5f2b384

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

libc/test/src/math/smoke/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3572,6 +3572,8 @@ add_fp_unittest(
35723572
FmaTest.h
35733573
DEPENDS
35743574
libc.src.math.fmaf16
3575+
libc.src.__support.CPP.type_traits
3576+
libc.src.__support.FPUtil.cast
35753577
libc.src.__support.macros.properties.types
35763578
)
35773579

libc/test/src/math/smoke/FmaTest.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,6 @@ class FmaTestTemplate : public LIBC_NAMESPACE::testing::FEnvSafeTest {
9090
// Test overflow.
9191
OutType z = out.max_normal;
9292
InType in_z = LIBC_NAMESPACE::fputil::cast<InType>(out.max_normal);
93-
#if defined(LIBC_TYPES_HAS_FLOAT16) && !defined(__LIBC_USE_FLOAT16_CONVERSION)
94-
// Rounding modes other than the default might not be usable with float16.
95-
if constexpr (LIBC_NAMESPACE::cpp::is_same_v<OutType, float16>)
96-
EXPECT_FP_EQ(OutType(0.75) * z, func(InType(1.75), in_z, -in_z));
97-
else
98-
#endif
9993
EXPECT_FP_EQ_ALL_ROUNDING(OutType(0.75) * z,
10094
func(InType(1.75), in_z, -in_z));
10195

0 commit comments

Comments
 (0)