[llvm] added targets for double mpfr test (PR #226822)

Sachin 🗲 via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 27 11:50:01 PDT 2026


https://github.com/s4chinjha created https://github.com/llvm/llvm-project/pull/226822

fixes #223714

this pr adds the missing bazel targets for the existing double mpfr tests

>From 4618a2fdb4ac1effdad3af08883a1abf2e6358cc 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] 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 f9d21bcabeaa5..b6a8a6ecb7fdc 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(
@@ -257,6 +266,11 @@ math_mpfr_test(
     hdrs = ["AddTest.h"],
 )
 
+math_mpfr_test(
+    name = "fdim",
+    hdrs = ["FDimTest.h"],
+)
+
 math_mpfr_test(
     name = "fdiv",
     hdrs = ["DivTest.h"],
@@ -312,6 +326,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"],
@@ -471,6 +500,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"],
@@ -649,6 +693,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")
@@ -765,6 +819,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(
@@ -939,6 +1001,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")



More information about the llvm-commits mailing list