[llvm] [libc][Bazel] Add missing float smoke math tests (PR #227206)

via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 29 00:10:35 PDT 2026


https://github.com/Popie52 created https://github.com/llvm/llvm-project/pull/227206

## 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" />


>From cfad849457878be15a2cb0f15f6f464899aa3c38 Mon Sep 17 00:00:00 2001
From: popie52 <popiesailor at gmail.com>
Date: Tue, 29 Sep 2026 12:36:22 +0530
Subject: [PATCH] [libc][Bazel] Add missing float smoke math tests

---
 .../libc/test/src/math/smoke/BUILD.bazel      | 28 +++++++++++++++++++
 1 file changed, 28 insertions(+)

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 0a79dcd33a587..6dacceaed662a 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 = [



More information about the llvm-commits mailing list