Skip to content

Commit afb6d6b

Browse files
committed
add smoke test
1 parent fa41a77 commit afb6d6b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

libc/test/shared/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@ add_fp_unittest(
2121
libc.src.__support.math.ldexpf
2222
libc.src.__support.math.ldexpf128
2323
libc.src.__support.math.ldexpf16
24+
libc.src.__support.math.acosf16
2425
)

libc/test/shared/shared_math_test.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ TEST(LlvmLibcSharedMathTest, AllFloat16) {
2525
EXPECT_FP_EQ_ALL_ROUNDING(0.75f16,
2626
LIBC_NAMESPACE::shared::frexpf16(24.0f, &exponent));
2727
EXPECT_EQ(exponent, 5);
28+
29+
EXPECT_FP_EQ(0x1.921fb6p+0f16, LIBC_NAMESPACE::shared::acosf16(0.0f16));
2830
}
2931

3032
#endif

0 commit comments

Comments
 (0)