summaryrefslogtreecommitdiff
path: root/libc/test/src/math/CMakeLists.txt
diff options
context:
space:
mode:
authorMingming Liu <mingmingl@google.com>2025-09-10 15:25:31 -0700
committerGitHub <noreply@github.com>2025-09-10 15:25:31 -0700
commit1417dafa1db9cb1b2b09438aa9f53ea5ab6e36e2 (patch)
tree57f4b1f313c8cf74eed8819870f39c36ea263c68 /libc/test/src/math/CMakeLists.txt
parent898b813bc8a6d0276bf0f4769f5f2f64b34e632d (diff)
parentb8cefcb601ddaa18482555c4ff363c01a270c2fe (diff)
Merge branch 'main' into users/mingmingl-llvm/samplefdo-profile-formatusers/mingmingl-llvm/samplefdo-profile-format
Diffstat (limited to 'libc/test/src/math/CMakeLists.txt')
-rw-r--r--libc/test/src/math/CMakeLists.txt64
1 files changed, 37 insertions, 27 deletions
diff --git a/libc/test/src/math/CMakeLists.txt b/libc/test/src/math/CMakeLists.txt
index 8e24c5d5c2af..378eadcf9e70 100644
--- a/libc/test/src/math/CMakeLists.txt
+++ b/libc/test/src/math/CMakeLists.txt
@@ -10,7 +10,7 @@ add_fp_unittest(
HDRS
sdcomp26094.h
DEPENDS
- libc.src.errno.errno
+ libc.hdr.errno_macros
libc.src.math.cosf
libc.src.__support.CPP.array
libc.src.__support.FPUtil.fp_bits
@@ -49,7 +49,7 @@ add_fp_unittest(
HDRS
sdcomp26094.h
DEPENDS
- libc.src.errno.errno
+ libc.hdr.errno_macros
libc.src.math.cospif
libc.src.__support.CPP.array
libc.src.__support.FPUtil.fp_bits
@@ -90,7 +90,7 @@ add_fp_unittest(
HDRS
sdcomp26094.h
DEPENDS
- libc.src.errno.errno
+ libc.hdr.errno_macros
libc.src.math.sinf
libc.src.__support.CPP.array
libc.src.__support.FPUtil.fp_bits
@@ -117,7 +117,7 @@ add_fp_unittest(
HDRS
sdcomp26094.h
DEPENDS
- libc.src.errno.errno
+ libc.hdr.errno_macros
libc.src.math.sinpif
libc.src.__support.CPP.array
libc.src.__support.FPUtil.fp_bits
@@ -156,7 +156,7 @@ add_fp_unittest(
HDRS
sdcomp26094.h
DEPENDS
- libc.src.errno.errno
+ libc.hdr.errno_macros
libc.src.math.sincosf
libc.src.__support.CPP.array
libc.src.__support.FPUtil.fp_bits
@@ -184,7 +184,7 @@ add_fp_unittest(
HDRS
sdcomp26094.h
DEPENDS
- libc.src.errno.errno
+ libc.hdr.errno_macros
libc.src.math.tanf
libc.src.__support.CPP.array
libc.src.__support.FPUtil.fp_bits
@@ -1110,7 +1110,6 @@ add_fp_unittest(
SRCS
exp_test.cpp
DEPENDS
- libc.src.errno.errno
libc.src.math.exp
libc.src.__support.FPUtil.fp_bits
)
@@ -1147,7 +1146,6 @@ add_fp_unittest(
SRCS
exp2_test.cpp
DEPENDS
- libc.src.errno.errno
libc.src.math.exp2
libc.src.__support.FPUtil.fp_bits
)
@@ -1209,7 +1207,6 @@ add_fp_unittest(
SRCS
exp10_test.cpp
DEPENDS
- libc.src.errno.errno
libc.src.math.exp10
libc.src.__support.FPUtil.fp_bits
)
@@ -1706,6 +1703,18 @@ add_fp_unittest(
)
add_fp_unittest(
+ sqrtbf16_test
+ NEED_MPFR
+ SUITE
+ libc-math-unittests
+ SRCS
+ sqrtbf16_test.cpp
+ DEPENDS
+ libc.src.math.sqrtbf16
+ libc.src.__support.FPUtil.bfloat16
+)
+
+add_fp_unittest(
generic_sqrtf_test
NEED_MPFR
SUITE
@@ -1958,7 +1967,6 @@ add_fp_unittest(
SRCS
expm1_test.cpp
DEPENDS
- libc.src.errno.errno
libc.src.math.expm1
libc.src.__support.FPUtil.fp_bits
)
@@ -1995,7 +2003,6 @@ add_fp_unittest(
SRCS
log_test.cpp
DEPENDS
- libc.src.errno.errno
libc.src.math.log
libc.src.__support.FPUtil.fp_bits
)
@@ -2008,7 +2015,6 @@ add_fp_unittest(
SRCS
logf_test.cpp
DEPENDS
- libc.src.errno.errno
libc.src.math.logf
libc.src.__support.FPUtil.fp_bits
)
@@ -2032,7 +2038,6 @@ log2_test
SRCS
log2_test.cpp
DEPENDS
- libc.src.errno.errno
libc.src.math.log2
libc.src.__support.FPUtil.fp_bits
)
@@ -2069,7 +2074,6 @@ add_fp_unittest(
SRCS
log10_test.cpp
DEPENDS
- libc.src.errno.errno
libc.src.math.log10
libc.src.__support.FPUtil.fp_bits
)
@@ -2082,7 +2086,6 @@ add_fp_unittest(
SRCS
log10f_test.cpp
DEPENDS
- libc.src.errno.errno
libc.src.math.log10f
libc.src.__support.FPUtil.fp_bits
)
@@ -2106,7 +2109,6 @@ log1p_test
SRCS
log1p_test.cpp
DEPENDS
- libc.src.errno.errno
libc.src.math.log1p
libc.src.__support.FPUtil.fp_bits
)
@@ -2119,7 +2121,6 @@ add_fp_unittest(
SRCS
log1pf_test.cpp
DEPENDS
- libc.src.errno.errno
libc.src.math.log1pf
libc.src.__support.FPUtil.fp_bits
)
@@ -2133,7 +2134,7 @@ add_fp_unittest(
HDRS
FModTest.h
DEPENDS
- libc.src.errno.errno
+ libc.hdr.errno_macros
libc.src.math.fmodf
libc.src.__support.FPUtil.basic_operations
libc.src.__support.FPUtil.nearest_integer_operations
@@ -2150,7 +2151,7 @@ add_fp_unittest(
HDRS
FModTest.h
DEPENDS
- libc.src.errno.errno
+ libc.hdr.errno_macros
libc.src.math.fmod
libc.src.__support.FPUtil.basic_operations
libc.src.__support.FPUtil.nearest_integer_operations
@@ -2184,7 +2185,7 @@ add_fp_unittest(
HDRS
sdcomp26094.h
DEPENDS
- libc.src.errno.errno
+ libc.hdr.errno_macros
libc.src.math.coshf
libc.src.__support.CPP.array
libc.src.__support.FPUtil.fp_bits
@@ -2211,7 +2212,7 @@ add_fp_unittest(
HDRS
sdcomp26094.h
DEPENDS
- libc.src.errno.errno
+ libc.hdr.errno_macros
libc.src.math.sinhf
libc.src.__support.CPP.array
libc.src.__support.FPUtil.fp_bits
@@ -2259,7 +2260,7 @@ add_fp_unittest(
SRCS
atanhf_test.cpp
DEPENDS
- libc.src.errno.errno
+ libc.hdr.errno_macros
libc.src.math.atanhf
libc.src.__support.FPUtil.fp_bits
)
@@ -2276,6 +2277,17 @@ add_fp_unittest(
)
add_fp_unittest(
+ atanpif16_test
+ NEED_MPFR
+ SUITE
+ libc-math-unittests
+ SRCS
+ atanpif16_test.cpp
+ DEPENDS
+ libc.src.math.atanpif16
+)
+
+add_fp_unittest(
fmul_test
NEED_MPFR
SUITE
@@ -2313,7 +2325,6 @@ add_fp_unittest(
SRCS
asinhf_test.cpp
DEPENDS
- libc.src.errno.errno
libc.src.math.asinhf
libc.src.__support.FPUtil.fp_bits
)
@@ -2337,7 +2348,7 @@ add_fp_unittest(
SRCS
acoshf_test.cpp
DEPENDS
- libc.src.errno.errno
+ libc.hdr.errno_macros
libc.src.math.acoshf
libc.src.__support.FPUtil.fp_bits
)
@@ -2361,7 +2372,7 @@ add_fp_unittest(
SRCS
asinf_test.cpp
DEPENDS
- libc.src.errno.errno
+ libc.hdr.errno_macros
libc.src.math.asinf
libc.src.__support.FPUtil.fp_bits
)
@@ -2407,7 +2418,7 @@ add_fp_unittest(
SRCS
acosf_test.cpp
DEPENDS
- libc.src.errno.errno
+ libc.hdr.errno_macros
libc.src.math.acosf
libc.src.__support.FPUtil.fp_bits
)
@@ -2453,7 +2464,6 @@ add_fp_unittest(
SRCS
atanf_test.cpp
DEPENDS
- libc.src.errno.errno
libc.src.math.atanf
libc.src.__support.FPUtil.fp_bits
)