[libc-commits] [libc] [libc][math][c23] Add dfma{l, f128} and dsub{l, f128} C23 math functions (PR #101089)

via libc-commits libc-commits at lists.llvm.org
Wed Jul 31 09:10:24 PDT 2024


================
@@ -358,6 +358,62 @@ add_fp_unittest(
     libc.src.__support.FPUtil.fp_bits
 )
 
+add_fp_unittest(
+  dfmal_test
+  SUITE
+    libc-math-smoke-tests
+  SRCS
+    dfmal_test.cpp
+  HDRS
+    FmaTest.h
+  DEPENDS
+    libc.src.math.dfmal
+    libc.src.stdlib.rand
+    libc.src.stdlib.srand
+)
+
+add_fp_unittest(
+  dfmaf128_test
+  SUITE
+    libc-math-smoke-tests
+  SRCS
+    dfmaf128_test.cpp
+  HDRS
+    FmaTest.h
+  DEPENDS
+    libc.src.math.dfmaf128
+    libc.src.stdlib.rand
+    libc.src.stdlib.srand
+)
----------------
overmighty wrote:

```suggestion
  DEPENDS
    libc.src.math.dfmaf128
)
```

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


More information about the libc-commits mailing list