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

via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 11 11:29:39 PDT 2026


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

>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 1/2] [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 = [

>From 8aaa223bde0fa6c39d0f1fd764d55c6580d28dcf Mon Sep 17 00:00:00 2001
From: popie52 <popiesailor at gmail.com>
Date: Sun, 11 Oct 2026 23:59:10 +0530
Subject: [PATCH 2/2] [libc][Bazel] Add missing float smoke math tests

---
 .../libc/test/src/math/smoke/BUILD.bazel      | 25 +++++++++++++++++++
 1 file changed, 25 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 6dacceaed662a..78fe48ad00570 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
@@ -81,6 +81,31 @@ math_test(name = "atanhf16")
 
 math_test(name = "atanpif16")
 
+math_test(
+    name = "bf16addf",
+    hdrs = ["AddTest.h"],
+)
+
+math_test(
+    name = "bf16divf",
+    hdrs = ["DivTest.h"],
+)
+
+math_test(
+    name = "bf16fmaf",
+    hdrs = ["FmaTest.h"],
+)
+
+math_test(
+    name = "bf16mulf",
+    hdrs = ["MulTest.h"],
+)
+
+math_test(
+    name = "bf16subf",
+    hdrs = ["SubTest.h"],
+)
+
 math_test(
     name = "canonicalize",
     hdrs = ["CanonicalizeTest.h"],



More information about the llvm-commits mailing list