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

via libc-commits libc-commits at lists.llvm.org
Sun Aug 4 15:41:18 PDT 2024


================
@@ -2430,9 +2430,72 @@ add_fp_unittest(
   HDRS
     SubTest.h
   DEPENDS
+    libc.src.errno.errno
+    libc.hdr.fenv_macros
     libc.src.math.dsubl
 )
 
+add_fp_unittest(
+  fdiv_test
+  NEED_MPFR
+  SUITE
+    libc-math-unittests
+  SRCS
+    fdiv_test.cpp
+  HDRS
+    DivTest.h
+  DEPENDS
+    libc.hdr.errno_macros
+    libc.hdr.fenv_macros
+    libc.src.math.fdiv
+)
+
+add_fp_unittest(
+  fdivl_test
+  NEED_MPFR
+  SUITE
+    libc-math-unittests
+  SRCS
+    fdivl_test.cpp
+  HDRS
+    DivTest.h
+  DEPENDS
+    libc.hdr.errno_macros
+    libc.hdr.fenv_macros
+    libc.src.math.fdivl
+)
----------------
overmighty wrote:

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

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


More information about the libc-commits mailing list