[libc-commits] [libc] [libc][math] Adds entrypoint and tests for nearbyintf128, scalbnf128 (PR #88443)

via libc-commits libc-commits at lists.llvm.org
Mon Apr 29 09:18:41 PDT 2024


================
@@ -2770,6 +2822,20 @@ add_fp_unittest(
     libc.src.__support.FPUtil.normal_float
 )
 
+add_fp_unittest(
+  scalbnf128_test
+  SUITE
+    libc-math-smoke-tests
+  SRCS
+    scalbnf128_test.cpp
+  HDRS
+    ScalbnTest.h
+  DEPENDS
+    libc.src.math.scalbnf128
+    libc.src.__support.FPUtil.fp_bits
+    libc.src.__support.FPUtil.normal_float
----------------
lntue wrote:

Look like `FPUtil.normal_float` is not directly used in the test.  You can remove it from the dependency list.

https://github.com/llvm/llvm-project/pull/88443


More information about the libc-commits mailing list