aboutsummaryrefslogtreecommitdiff
path: root/libc/test/shared/shared_math_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libc/test/shared/shared_math_test.cpp')
-rw-r--r--libc/test/shared/shared_math_test.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/test/shared/shared_math_test.cpp b/libc/test/shared/shared_math_test.cpp
index d118d96..477b7ec 100644
--- a/libc/test/shared/shared_math_test.cpp
+++ b/libc/test/shared/shared_math_test.cpp
@@ -70,6 +70,8 @@ TEST(LlvmLibcSharedMathTest, AllFloat) {
ASSERT_FP_EQ(float(8 << 5), LIBC_NAMESPACE::shared::ldexpf(8.0f, 5));
ASSERT_FP_EQ(float(-1 * (8 << 5)), LIBC_NAMESPACE::shared::ldexpf(-8.0f, 5));
+
+ EXPECT_FP_EQ(0x1p+0f, LIBC_NAMESPACE::shared::rsqrtf(1.0f));
}
TEST(LlvmLibcSharedMathTest, AllDouble) {