[libc-commits] [libc] [libc][math][c++23] Add fabsbf16 math function (PR #148398)

via libc-commits libc-commits at lists.llvm.org
Wed Jul 23 07:52:17 PDT 2025


================
@@ -209,6 +209,19 @@ add_fp_unittest(
     libc.src.__support.FPUtil.fp_bits
 )
 
+add_fp_unittest(
+  fabsbf16_test
+  SUITE
+  libc-math-smoke-tests
+  SRCS
+    fabsbf16_test.cpp
+  HDRS
+    FAbsTest.h
+  DEPENDS
+    libc.src.__support.FPUtil.bfloat16
----------------
overmighty wrote:

Since we only use the `bfloat16` type alias in the test we should add `libc.src.__support.macros.properties.types` as a dependency instead, but we seemingly didn't bother for `fabsf16` and `fabsf128` since the entrypoints need to depend on it anyway.

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


More information about the libc-commits mailing list