[libc-commits] [libc] [llvm] [libc][math][c23] Add fmaf16 C23 math function. (PR #130757)

Harrison Hao via libc-commits libc-commits at lists.llvm.org
Wed Mar 12 20:06:25 PDT 2025


================
@@ -3562,6 +3562,18 @@ add_fp_unittest(
     libc.src.__support.macros.properties.types
 )
 
+add_fp_unittest(
+  fmaf16_test
+  SUITE
+    libc-math-smoke-tests
+  SRCS
+    fmaf16_test.cpp
+  HDRS
+    FmaTest.h
+  DEPENDS
+    libc.src.math.fmaf16
+)
----------------
harrisonGPU wrote:

I think if the FMA test requires functions or defined values from the DEPENDS libraries, we need to include those libraries. However, if our build is successful, it indicates that we don't actually need them, so why add them? Now I can build and `test smoke.fmaf16_test.__unit__`.


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


More information about the libc-commits mailing list