[llvm] [libc][bazel] Adds missing targets for double MPFR tests (PR #226822)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 3 09:05:06 PDT 2026
https://github.com/Sukumarsawant updated https://github.com/llvm/llvm-project/pull/226822
>From b3ff351d6e43928fd3050a74b2c6ee7e6e836dc6 Mon Sep 17 00:00:00 2001
From: s4chinjha <170951715+s4chinjha at users.noreply.github.com>
Date: Mon, 28 Sep 2026 00:14:48 +0530
Subject: [PATCH 1/2] added targets for double mpfr test
---
.../libc/test/src/math/BUILD.bazel | 64 +++++++++++++++++++
1 file changed, 64 insertions(+)
diff --git a/utils/bazel/llvm-project-overlay/libc/test/src/math/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/test/src/math/BUILD.bazel
index 167d35ec0f269b..3619c9ae30db24 100644
--- a/utils/bazel/llvm-project-overlay/libc/test/src/math/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/test/src/math/BUILD.bazel
@@ -12,6 +12,8 @@ exports_files(["libc_math_test_rules.bzl"])
licenses(["notice"])
+math_mpfr_test(name = "acos")
+
math_mpfr_test(
name = "acosbf16",
deps = [
@@ -23,6 +25,8 @@ math_mpfr_test(name = "acosf")
math_mpfr_test(name = "acoshf")
+math_mpfr_test(name = "asin")
+
math_mpfr_test(
name = "asinbf16",
deps = [
@@ -109,6 +113,11 @@ math_mpfr_test(
],
)
+math_mpfr_test(
+ name = "copysign",
+ hdrs = ["CopySignTest.h"],
+)
+
math_mpfr_test(name = "cos")
math_mpfr_test(
@@ -258,6 +267,11 @@ math_mpfr_test(
hdrs = ["AddTest.h"],
)
+math_mpfr_test(
+ name = "fdim",
+ hdrs = ["FDimTest.h"],
+)
+
math_mpfr_test(
name = "fdiv",
hdrs = ["DivTest.h"],
@@ -313,6 +327,21 @@ math_mpfr_test(
# TODO: Add fma, fmaf, fmal, fmul, fmull tests. Missing stdlib/rand dependency.
+math_mpfr_test(
+ name = "fmax",
+ hdrs = ["FMaxTest.h"],
+)
+
+math_mpfr_test(
+ name = "fmin",
+ hdrs = ["FMinTest.h"],
+)
+
+math_mpfr_test(
+ name = "fmod",
+ hdrs = ["FModTest.h"],
+)
+
math_mpfr_test(
name = "f16mul",
hdrs = ["MulTest.h"],
@@ -472,6 +501,21 @@ math_mpfr_test(
],
)
+math_mpfr_test(
+ name = "ilogb",
+ hdrs = ["ILogbTest.h"],
+)
+
+math_mpfr_test(
+ name = "ldexp",
+ hdrs = ["LdExpTest.h"],
+)
+
+math_mpfr_test(
+ name = "logb",
+ hdrs = ["LogbTest.h"],
+)
+
math_mpfr_test(
name = "llrint",
hdrs = ["RoundToIntegerTest.h"],
@@ -650,6 +694,16 @@ math_mpfr_test(
],
)
+math_mpfr_test(
+ name = "modf",
+ hdrs = ["ModfTest.h"],
+)
+
+math_mpfr_test(
+ name = "nextafter",
+ hdrs = ["NextAfterTest.h"],
+)
+
math_mpfr_test(name = "pow")
math_mpfr_test(name = "powf")
@@ -766,6 +820,14 @@ math_mpfr_test(
deps = ["//libc:__support_fputil_float128"],
)
+math_mpfr_test(
+ name = "scalbn",
+ hdrs = [
+ "LdExpTest.h",
+ "ScalbnTest.h",
+ ],
+)
+
math_mpfr_test(name = "sin")
math_mpfr_test(
@@ -941,6 +1003,8 @@ math_mpfr_test(name = "asinf16")
math_mpfr_test(name = "asinhf16")
+math_mpfr_test(name = "asinpi")
+
math_mpfr_test(name = "asinpif16")
math_mpfr_test(name = "acosf16")
>From f13ee76862a280b292e9c8ef4eef66ac3aeb6b2d Mon Sep 17 00:00:00 2001
From: s4chinjha <s4chinjha at gmail.com>
Date: Mon, 28 Sep 2026 00:58:23 +0530
Subject: [PATCH 2/2] fix formatting
---
.../bazel/llvm-project-overlay/libc/test/src/math/BUILD.bazel | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/utils/bazel/llvm-project-overlay/libc/test/src/math/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/test/src/math/BUILD.bazel
index 3619c9ae30db24..86a3432c1fdeab 100644
--- a/utils/bazel/llvm-project-overlay/libc/test/src/math/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/test/src/math/BUILD.bazel
@@ -823,8 +823,8 @@ math_mpfr_test(
math_mpfr_test(
name = "scalbn",
hdrs = [
- "LdExpTest.h",
- "ScalbnTest.h",
+ "LdExpTest.h",
+ "ScalbnTest.h",
],
)
More information about the llvm-commits
mailing list