[llvm] [libc][Bazel] Add missing float smoke math tests (PR #227206)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 29 00:11:40 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Popie (Popie52)
<details>
<summary>Changes</summary>
## Summary
This PR adds the missing Bazel targets for existing float smoke tests in:
`utils/bazel/llvm-project-overlay/libc/test/src/math/smoke/BUILD.bazel`
Added targets:
- `acospif`
- `asinpif`
- `exp10m1f`
- `iscanonicalf`
- `issignalingf`
- `lgammaf`
- `nanf`
- `rsqrtf`
This is the smoke-test portion of #<!-- -->223664 and only modifies the requested
smoke-test Bazel file.
## Testing
Validated locally from `utils/bazel` with:
```bash
bazelisk test \
@<!-- -->llvm-project//libc/test/src/math/smoke:acospif_test \
@<!-- -->llvm-project//libc/test/src/math/smoke:asinpif_test \
@<!-- -->llvm-project//libc/test/src/math/smoke:exp10m1f_test \
@<!-- -->llvm-project//libc/test/src/math/smoke:iscanonicalf_test \
@<!-- -->llvm-project//libc/test/src/math/smoke:issignalingf_test \
@<!-- -->llvm-project//libc/test/src/math/smoke:lgammaf_test \
@<!-- -->llvm-project//libc/test/src/math/smoke:nanf_test \
@<!-- -->llvm-project//libc/test/src/math/smoke:rsqrtf_test
```
Result:
<img width="884" height="399" alt="image" src="https://github.com/user-attachments/assets/37704d8d-1546-4260-9259-0260adef0a1b" />
---
Full diff: https://github.com/llvm/llvm-project/pull/227206.diff
1 Files Affected:
- (modified) utils/bazel/llvm-project-overlay/libc/test/src/math/smoke/BUILD.bazel (+28)
``````````diff
diff --git a/utils/bazel/llvm-project-overlay/libc/test/src/math/smoke/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/test/src/math/smoke/BUILD.bazel
index 0a79dcd33a5878..6dacceaed662a1 100644
--- a/utils/bazel/llvm-project-overlay/libc/test/src/math/smoke/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/test/src/math/smoke/BUILD.bazel
@@ -25,6 +25,8 @@ math_test(name = "acosf16")
math_test(name = "acoshf16")
+math_test(name = "acospif")
+
math_test(name = "acospif16")
math_test(
@@ -42,6 +44,8 @@ math_test(name = "asinhf")
math_test(name = "asinhf16")
+math_test(name = "asinpif")
+
math_test(name = "asinpif16")
math_test(name = "atan2")
@@ -134,6 +138,11 @@ math_test(
],
)
+math_test(
+ name = "iscanonicalf",
+ hdrs = ["IsCanonicalTest.h"],
+)
+
math_test(
name = "iscanonicalf16",
hdrs = ["IsCanonicalTest.h"],
@@ -445,6 +454,8 @@ math_test(
hdrs = ["SqrtTest.h"],
)
+math_test(name = "rsqrtf")
+
math_test(name = "rsqrtf16")
math_test(
@@ -2311,6 +2322,8 @@ math_test(name = "cospif16")
math_test(name = "exp10f16")
+math_test(name = "exp10m1f")
+
math_test(name = "exp10m1f16")
math_test(name = "exp2f16")
@@ -2336,6 +2349,11 @@ math_test(
],
)
+math_test(
+ name = "issignalingf",
+ hdrs = ["IsSignalingTest.h"],
+)
+
math_test(
name = "issignalingf16",
hdrs = ["IsSignalingTest.h"],
@@ -2359,6 +2377,8 @@ math_test(name = "log10p1f16")
math_test(name = "logf16")
+math_test(name = "lgammaf")
+
math_test(name = "lgammaf16")
math_test(
@@ -2370,6 +2390,14 @@ math_test(
],
)
+math_test(
+ name = "nanf",
+ deps = [
+ "//libc:__support_macros_sanitizer",
+ "//libc:hdr_signal_macros",
+ ],
+)
+
math_test(
name = "nanf16",
deps = [
``````````
</details>
https://github.com/llvm/llvm-project/pull/227206
More information about the llvm-commits
mailing list