[libc-commits] [libc] [libc][math][c++23] Add bfloat16 support in LLVM libc (PR #144463)
via libc-commits
libc-commits at lists.llvm.org
Sun Jul 6 20:16:45 PDT 2025
================
@@ -535,3 +535,21 @@ add_fp_unittest(
LINK_LIBRARIES
-lpthread
)
+
+
+add_fp_unittest(
+ bfloat16_test
+ NO_RUN_POSTBUILD
+ NEED_MPFR
+ SUITE
+ libc_math_exhaustive_tests
+ SRCS
+ bfloat16_test.cpp
+ DEPENDS
+ .exhaustive_test
+ libc.src.__support.FPUtil.bfloat16
+ libc.src.__support.FPUtil.fp_bits
+ LINK_LIBRARIES
+ -lpthread
+)
+
----------------
overmighty wrote:
```suggestion
add_fp_unittest(
bfloat16_test
NO_RUN_POSTBUILD
NEED_MPFR
SUITE
libc_math_exhaustive_tests
SRCS
bfloat16_test.cpp
DEPENDS
.exhaustive_test
libc.src.__support.FPUtil.bfloat16
libc.src.__support.FPUtil.fp_bits
LINK_LIBRARIES
-lpthread
)
```
https://github.com/llvm/llvm-project/pull/144463
More information about the libc-commits
mailing list