[llvm] [libc][bazel] Adds missing targets for bf16 functions/tests to bazel files (PR #222071)

Sachin 🗲 via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 9 23:52:00 PDT 2026


https://github.com/s4chinjha updated https://github.com/llvm/llvm-project/pull/222071

>From e777deb94e0f04b58ff04928dd097b396b1c4292 Mon Sep 17 00:00:00 2001
From: s4chinjha <170951715+s4chinjha at users.noreply.github.com>
Date: Tue, 8 Sep 2026 21:35:54 +0530
Subject: [PATCH 1/5] add public targets for bf16 functions

---
 .../llvm-project-overlay/libc/BUILD.bazel     | 28 +++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
index 4e24be1246be4..11f7d7aefa7c9 100644
--- a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
@@ -10893,6 +10893,13 @@ libc_math_function(
     ],
 )
 
+libc_math_function(
+    name = "canonicalizebf16",
+    additional_deps = [
+        ":__support_math_canonicalizebf16",
+    ],
+)
+
 libc_math_function(
     name = "bf16divf",
     additional_deps = [
@@ -12485,6 +12492,13 @@ libc_math_function(
     ],
 )
 
+libc_math_function(
+    name = "getpayloadbf16",
+    additional_deps = [
+        ":__support_math_getpayloadbf16",
+    ],
+)
+
 libc_math_function(
     name = "getpayloadf",
     additional_deps = [
@@ -13589,6 +13603,13 @@ libc_math_function(
     ],
 )
 
+libc_math_function(
+    name = "setpayloadbf16",
+    additional_deps = [
+        ":__support_math_setpayloadbf16",
+    ],
+)
+
 libc_math_function(
     name = "setpayloadf",
     additional_deps = [
@@ -13624,6 +13645,13 @@ libc_math_function(
     ],
 )
 
+libc_math_function(
+    name = "setpayloadsigbf16",
+    additional_deps = [
+        ":__support_math_setpayloadsigbf16",
+    ],
+)
+
 libc_math_function(
     name = "setpayloadsigf",
     additional_deps = [

>From 3c957d8117fe51cc5ef373fcbc12649367f3c4d0 Mon Sep 17 00:00:00 2001
From: s4chinjha <170951715+s4chinjha at users.noreply.github.com>
Date: Tue, 8 Sep 2026 21:36:10 +0530
Subject: [PATCH 2/5] add bf16 MPFR test targets

---
 .../libc/test/src/math/BUILD.bazel            | 63 +++++++++++++++++++
 1 file changed, 63 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 d8914aa3b8ec7..b01105a99c453 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,10 +12,14 @@ exports_files(["libc_math_test_rules.bzl"])
 
 licenses(["notice"])
 
+math_mpfr_test(name = "acosbf16")
+
 math_mpfr_test(name = "acosf")
 
 math_mpfr_test(name = "acoshf")
 
+math_mpfr_test(name = "asinbf16")
+
 math_mpfr_test(name = "asinf")
 
 math_mpfr_test(name = "asinhf")
@@ -31,12 +35,16 @@ math_mpfr_test(
 
 math_mpfr_test(name = "atan")
 
+math_mpfr_test(name = "atanbf16")
+
 math_mpfr_test(name = "atanf")
 
 math_mpfr_test(name = "atanhf")
 
 math_mpfr_test(name = "cbrt")
 
+math_mpfr_test(name = "cbrtbf16")
+
 math_mpfr_test(name = "cbrtf")
 
 math_mpfr_test(
@@ -259,6 +267,8 @@ math_mpfr_test(
 # math_mpfr_test(name = "f16fmaf")
 # math_mpfr_test(name = "f16fmal")
 
+math_mpfr_test(name = "fmabf16")
+
 math_mpfr_test(
     name = "frexp",
     hdrs = ["FrexpTest.h"],
@@ -325,6 +335,11 @@ math_mpfr_test(
     hdrs = ["HypotTest.h"],
 )
 
+math_mpfr_test(
+    name = "hypotbf16",
+    hdrs = ["HypotTest.h"],
+)
+
 math_mpfr_test(
     name = "hypotf",
     hdrs = [
@@ -345,6 +360,11 @@ math_mpfr_test(
     hdrs = ["RoundToIntegerTest.h"],
 )
 
+math_mpfr_test(
+    name = "llrintbf16",
+    hdrs = ["RoundToIntegerTest.h"],
+)
+
 math_mpfr_test(
     name = "llrintf",
     hdrs = ["RoundToIntegerTest.h"],
@@ -365,6 +385,11 @@ math_mpfr_test(
     hdrs = ["RoundToIntegerTest.h"],
 )
 
+math_mpfr_test(
+    name = "llroundbf16",
+    hdrs = ["RoundToIntegerTest.h"],
+)
+
 math_mpfr_test(
     name = "llroundf",
     hdrs = ["RoundToIntegerTest.h"],
@@ -387,6 +412,8 @@ math_mpfr_test(
 
 math_mpfr_test(name = "log")
 
+math_mpfr_test(name = "log_bf16")
+
 math_mpfr_test(name = "logf")
 
 math_mpfr_test(name = "log10")
@@ -406,6 +433,11 @@ math_mpfr_test(
     hdrs = ["RoundToIntegerTest.h"],
 )
 
+math_mpfr_test(
+    name = "lrintbf16",
+    hdrs = ["RoundToIntegerTest.h"],
+)
+
 math_mpfr_test(
     name = "lrintf",
     hdrs = ["RoundToIntegerTest.h"],
@@ -426,6 +458,11 @@ math_mpfr_test(
     hdrs = ["RoundToIntegerTest.h"],
 )
 
+math_mpfr_test(
+    name = "lroundbf16",
+    hdrs = ["RoundToIntegerTest.h"],
+)
+
 math_mpfr_test(
     name = "lroundf",
     hdrs = ["RoundToIntegerTest.h"],
@@ -446,6 +483,14 @@ math_mpfr_test(
     ],
 )
 
+math_mpfr_test(
+    name = "nearbyintbf16",
+    hdrs = ["NearbyIntTest.h"],
+    deps = [
+        "//libc:__support_cpp_array",
+    ],
+)
+
 math_mpfr_test(
     name = "nearbyintf",
     hdrs = ["NearbyIntTest.h"],
@@ -505,6 +550,11 @@ math_mpfr_test(
     hdrs = ["RIntTest.h"],
 )
 
+math_mpfr_test(
+    name = "rintbf16",
+    hdrs = ["RIntTest.h"],
+)
+
 math_mpfr_test(
     name = "rintf",
     hdrs = ["RIntTest.h"],
@@ -626,6 +676,11 @@ math_mpfr_test(
     hdrs = ["SqrtTest.h"],
 )
 
+math_mpfr_test(
+    name = "sqrtbf16",
+    hdrs = ["SqrtTest.h"],
+)
+
 math_mpfr_test(
     name = "sqrtf",
     hdrs = ["SqrtTest.h"],
@@ -662,6 +717,14 @@ math_mpfr_test(
 
 math_mpfr_test(name = "tan")
 
+math_mpfr_test(
+    name = "tanbf16",
+    hdrs = ["sdcomp26094.h"],
+    deps = [
+        "//libc:__support_cpp_array",
+    ],
+)
+
 math_mpfr_test(
     name = "tanf",
     hdrs = ["sdcomp26094.h"],

>From daa13f8884c7ad024d86425d4c41485183cd6283 Mon Sep 17 00:00:00 2001
From: s4chinjha <170951715+s4chinjha at users.noreply.github.com>
Date: Tue, 8 Sep 2026 21:36:32 +0530
Subject: [PATCH 3/5] add bf16 smoke test targets

---
 .../libc/test/src/math/smoke/BUILD.bazel      | 292 ++++++++++++++++++
 1 file changed, 292 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 1ea19f953e0ad..02ab498cda38f 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
@@ -10,12 +10,16 @@ package(default_visibility = ["//visibility:public"])
 
 licenses(["notice"])
 
+math_test(name = "acosbf16")
+
 math_test(name = "acosf")
 
 math_test(name = "acoshf")
 
 math_test(name = "acosf16")
 
+math_test(name = "asinbf16")
+
 math_test(name = "asinf")
 
 math_test(name = "asinf16")
@@ -38,6 +42,8 @@ math_test(
 
 math_test(name = "atan")
 
+math_test(name = "atanbf16")
+
 math_test(name = "atanf")
 
 math_test(name = "atanhf")
@@ -50,6 +56,14 @@ math_test(
     ],
 )
 
+math_test(
+    name = "canonicalizebf16",
+    hdrs = ["CanonicalizeTest.h"],
+    deps = [
+        "//libc:__support_integer_literals",
+    ],
+)
+
 math_test(
     name = "canonicalizef",
     hdrs = ["CanonicalizeTest.h"],
@@ -82,6 +96,11 @@ math_test(
     ],
 )
 
+math_test(
+    name = "iscanonicalbf16",
+    hdrs = ["IsCanonicalTest.h"],
+)
+
 math_test(
     name = "iscanonicalf16",
     hdrs = ["IsCanonicalTest.h"],
@@ -97,6 +116,8 @@ math_test(
 
 math_test(name = "cbrt")
 
+math_test(name = "cbrtbf16")
+
 math_test(name = "cbrtf")
 
 math_test(name = "cbrtf16")
@@ -106,6 +127,11 @@ math_test(
     hdrs = ["CeilTest.h"],
 )
 
+math_test(
+    name = "ceilbf16",
+    hdrs = ["CeilTest.h"],
+)
+
 math_test(
     name = "ceilf",
     hdrs = ["CeilTest.h"],
@@ -137,6 +163,11 @@ math_test(
     hdrs = ["CopySignTest.h"],
 )
 
+math_test(
+    name = "copysignbf16",
+    hdrs = ["CopySignTest.h"],
+)
+
 math_test(
     name = "copysignf",
     hdrs = ["CopySignTest.h"],
@@ -303,6 +334,11 @@ math_test(
     hdrs = ["SqrtTest.h"],
 )
 
+math_test(
+    name = "sqrtbf16",
+    hdrs = ["SqrtTest.h"],
+)
+
 math_test(
     name = "sqrtf",
     hdrs = ["SqrtTest.h"],
@@ -392,6 +428,11 @@ math_test(
     hdrs = ["FAbsTest.h"],
 )
 
+math_test(
+    name = "fabsbf16",
+    hdrs = ["FAbsTest.h"],
+)
+
 math_test(
     name = "fabsf",
     hdrs = ["FAbsTest.h"],
@@ -435,6 +476,11 @@ math_test(
     hdrs = ["FDimTest.h"],
 )
 
+math_test(
+    name = "fdimbf16",
+    hdrs = ["FDimTest.h"],
+)
+
 math_test(
     name = "fdimf",
     hdrs = ["FDimTest.h"],
@@ -493,6 +539,11 @@ math_test(
     hdrs = ["FloorTest.h"],
 )
 
+math_test(
+    name = "floorbf16",
+    hdrs = ["FloorTest.h"],
+)
+
 math_test(
     name = "floorf",
     hdrs = ["FloorTest.h"],
@@ -521,6 +572,11 @@ math_test(
     hdrs = ["FmaTest.h"],
 )
 
+math_test(
+    name = "fmabf16",
+    hdrs = ["FmaTest.h"],
+)
+
 math_test(
     name = "fmaf",
     hdrs = ["FmaTest.h"],
@@ -536,6 +592,11 @@ math_test(
     hdrs = ["FMaxTest.h"],
 )
 
+math_test(
+    name = "fmaxbf16",
+    hdrs = ["FMaxTest.h"],
+)
+
 math_test(
     name = "fmaxf",
     hdrs = ["FMaxTest.h"],
@@ -564,6 +625,11 @@ math_test(
     hdrs = ["FMaximumTest.h"],
 )
 
+math_test(
+    name = "fmaximumbf16",
+    hdrs = ["FMaximumTest.h"],
+)
+
 math_test(
     name = "fmaximumf",
     hdrs = ["FMaximumTest.h"],
@@ -587,6 +653,11 @@ math_test(
     hdrs = ["FMaximumMagTest.h"],
 )
 
+math_test(
+    name = "fmaximum_magbf16",
+    hdrs = ["FMaximumMagTest.h"],
+)
+
 math_test(
     name = "fmaximum_magf",
     hdrs = ["FMaximumMagTest.h"],
@@ -610,6 +681,11 @@ math_test(
     hdrs = ["FMaximumMagNumTest.h"],
 )
 
+math_test(
+    name = "fmaximum_mag_numbf16",
+    hdrs = ["FMaximumMagNumTest.h"],
+)
+
 math_test(
     name = "fmaximum_mag_numf",
     hdrs = ["FMaximumMagNumTest.h"],
@@ -633,6 +709,11 @@ math_test(
     hdrs = ["FMaximumNumTest.h"],
 )
 
+math_test(
+    name = "fmaximum_numbf16",
+    hdrs = ["FMaximumNumTest.h"],
+)
+
 math_test(
     name = "fmaximum_numf",
     hdrs = ["FMaximumNumTest.h"],
@@ -676,6 +757,11 @@ math_test(
     hdrs = ["FMinTest.h"],
 )
 
+math_test(
+    name = "fminbf16",
+    hdrs = ["FMinTest.h"],
+)
+
 math_test(
     name = "fminf",
     hdrs = ["FMinTest.h"],
@@ -704,6 +790,11 @@ math_test(
     hdrs = ["FMinimumTest.h"],
 )
 
+math_test(
+    name = "fminimumbf16",
+    hdrs = ["FMinimumTest.h"],
+)
+
 math_test(
     name = "fminimumf",
     hdrs = ["FMinimumTest.h"],
@@ -727,6 +818,11 @@ math_test(
     hdrs = ["FMinimumMagTest.h"],
 )
 
+math_test(
+    name = "fminimum_magbf16",
+    hdrs = ["FMinimumMagTest.h"],
+)
+
 math_test(
     name = "fminimum_magf",
     hdrs = ["FMinimumMagTest.h"],
@@ -755,6 +851,11 @@ math_test(
     hdrs = ["FMinimumMagNumTest.h"],
 )
 
+math_test(
+    name = "fminimum_mag_numbf16",
+    hdrs = ["FMinimumMagNumTest.h"],
+)
+
 math_test(
     name = "fminimum_mag_numf",
     hdrs = ["FMinimumMagNumTest.h"],
@@ -783,6 +884,11 @@ math_test(
     hdrs = ["FMinimumNumTest.h"],
 )
 
+math_test(
+    name = "fminimum_numbf16",
+    hdrs = ["FMinimumNumTest.h"],
+)
+
 math_test(
     name = "fminimum_numf",
     hdrs = ["FMinimumNumTest.h"],
@@ -866,6 +972,11 @@ math_test(
     hdrs = ["FrexpTest.h"],
 )
 
+math_test(
+    name = "frexpbf16",
+    hdrs = ["FrexpTest.h"],
+)
+
 math_test(
     name = "frexpf",
     hdrs = ["FrexpTest.h"],
@@ -891,6 +1002,11 @@ math_test(
     hdrs = ["FromfpTest.h"],
 )
 
+math_test(
+    name = "fromfpbf16",
+    hdrs = ["FromfpTest.h"],
+)
+
 math_test(
     name = "fromfpf",
     hdrs = ["FromfpTest.h"],
@@ -916,6 +1032,11 @@ math_test(
     hdrs = ["FromfpxTest.h"],
 )
 
+math_test(
+    name = "fromfpxbf16",
+    hdrs = ["FromfpxTest.h"],
+)
+
 math_test(
     name = "fromfpxf",
     hdrs = ["FromfpxTest.h"],
@@ -956,6 +1077,11 @@ math_test(
     hdrs = ["GetPayloadTest.h"],
 )
 
+math_test(
+    name = "getpayloadbf16",
+    hdrs = ["GetPayloadTest.h"],
+)
+
 math_test(
     name = "getpayloadf",
     hdrs = ["GetPayloadTest.h"],
@@ -981,6 +1107,11 @@ math_test(
     hdrs = ["HypotTest.h"],
 )
 
+math_test(
+    name = "hypotbf16",
+    hdrs = ["HypotTest.h"],
+)
+
 math_test(
     name = "hypotf",
     hdrs = ["HypotTest.h"],
@@ -996,6 +1127,11 @@ math_test(
     hdrs = ["ILogbTest.h"],
 )
 
+math_test(
+    name = "ilogbbf16",
+    hdrs = ["ILogbTest.h"],
+)
+
 math_test(
     name = "ilogbf",
     hdrs = ["ILogbTest.h"],
@@ -1016,6 +1152,11 @@ math_test(
     hdrs = ["LdExpTest.h"],
 )
 
+math_test(
+    name = "ldexpbf16",
+    hdrs = ["LdExpTest.h"],
+)
+
 math_test(
     name = "ldexpf",
     hdrs = ["LdExpTest.h"],
@@ -1041,6 +1182,11 @@ math_test(
     hdrs = ["ILogbTest.h"],
 )
 
+math_test(
+    name = "llogbbf16",
+    hdrs = ["ILogbTest.h"],
+)
+
 math_test(
     name = "llogbf",
     hdrs = ["ILogbTest.h"],
@@ -1079,6 +1225,11 @@ math_test(
     hdrs = ["RoundToIntegerTest.h"],
 )
 
+math_test(
+    name = "llrintbf16",
+    hdrs = ["RoundToIntegerTest.h"],
+)
+
 math_test(
     name = "llrintf",
     hdrs = ["RoundToIntegerTest.h"],
@@ -1112,6 +1263,11 @@ math_test(
     hdrs = ["RoundToIntegerTest.h"],
 )
 
+math_test(
+    name = "llroundbf16",
+    hdrs = ["RoundToIntegerTest.h"],
+)
+
 math_test(
     name = "llroundf",
     hdrs = ["RoundToIntegerTest.h"],
@@ -1142,6 +1298,8 @@ math_test(
 
 math_test(name = "log")
 
+math_test(name = "log_bf16")
+
 math_test(name = "logf")
 
 math_test(name = "log10")
@@ -1161,6 +1319,11 @@ math_test(
     hdrs = ["LogbTest.h"],
 )
 
+math_test(
+    name = "logbbf16",
+    hdrs = ["LogbTest.h"],
+)
+
 math_test(
     name = "logbf",
     hdrs = ["LogbTest.h"],
@@ -1186,6 +1349,11 @@ math_test(
     hdrs = ["RoundToIntegerTest.h"],
 )
 
+math_test(
+    name = "lrintbf16",
+    hdrs = ["RoundToIntegerTest.h"],
+)
+
 math_test(
     name = "lrintf",
     hdrs = ["RoundToIntegerTest.h"],
@@ -1209,6 +1377,11 @@ math_test(
     hdrs = ["RoundToIntegerTest.h"],
 )
 
+math_test(
+    name = "lroundbf16",
+    hdrs = ["RoundToIntegerTest.h"],
+)
+
 math_test(
     name = "lroundf",
     hdrs = ["RoundToIntegerTest.h"],
@@ -1232,6 +1405,11 @@ math_test(
     hdrs = ["ModfTest.h"],
 )
 
+math_test(
+    name = "modfbf16",
+    hdrs = ["ModfTest.h"],
+)
+
 math_test(
     name = "modff",
     hdrs = ["ModfTest.h"],
@@ -1259,6 +1437,11 @@ math_test(
     hdrs = ["NearbyIntTest.h"],
 )
 
+math_test(
+    name = "nearbyintbf16",
+    hdrs = ["NearbyIntTest.h"],
+)
+
 math_test(
     name = "nearbyintf",
     hdrs = ["NearbyIntTest.h"],
@@ -1288,6 +1471,12 @@ math_test(
     deps = ["//libc:__support_sign"],
 )
 
+math_test(
+    name = "nextafterbf16",
+    hdrs = ["NextAfterTest.h"],
+    deps = ["//libc:__support_sign"],
+)
+
 math_test(
     name = "nextafterf",
     hdrs = ["NextAfterTest.h"],
@@ -1317,6 +1506,11 @@ math_test(
     hdrs = ["NextDownTest.h"],
 )
 
+math_test(
+    name = "nextdownbf16",
+    hdrs = ["NextDownTest.h"],
+)
+
 math_test(
     name = "nextdownf",
     hdrs = ["NextDownTest.h"],
@@ -1342,6 +1536,11 @@ math_test(
     hdrs = ["NextTowardTest.h"],
 )
 
+math_test(
+    name = "nexttowardbf16",
+    hdrs = ["NextTowardTest.h"],
+)
+
 math_test(
     name = "nexttowardf",
     hdrs = ["NextTowardTest.h"],
@@ -1362,6 +1561,11 @@ math_test(
     hdrs = ["NextUpTest.h"],
 )
 
+math_test(
+    name = "nextupbf16",
+    hdrs = ["NextUpTest.h"],
+)
+
 math_test(
     name = "nextupf",
     hdrs = ["NextUpTest.h"],
@@ -1391,6 +1595,11 @@ math_test(
     hdrs = ["RemQuoTest.h"],
 )
 
+math_test(
+    name = "remquobf16",
+    hdrs = ["RemQuoTest.h"],
+)
+
 math_test(
     name = "remquof",
     hdrs = ["RemQuoTest.h"],
@@ -1416,6 +1625,11 @@ math_test(
     hdrs = ["RIntTest.h"],
 )
 
+math_test(
+    name = "rintbf16",
+    hdrs = ["RIntTest.h"],
+)
+
 math_test(
     name = "rintf",
     hdrs = ["RIntTest.h"],
@@ -1444,6 +1658,11 @@ math_test(
     hdrs = ["RoundEvenTest.h"],
 )
 
+math_test(
+    name = "roundevenbf16",
+    hdrs = ["RoundEvenTest.h"],
+)
+
 math_test(
     name = "roundevenf",
     hdrs = ["RoundEvenTest.h"],
@@ -1472,6 +1691,11 @@ math_test(
     hdrs = ["RoundTest.h"],
 )
 
+math_test(
+    name = "roundbf16",
+    hdrs = ["RoundTest.h"],
+)
+
 math_test(
     name = "roundf",
     hdrs = ["RoundTest.h"],
@@ -1503,6 +1727,14 @@ math_test(
     ],
 )
 
+math_test(
+    name = "scalbnbf16",
+    hdrs = [
+        "LdExpTest.h",
+        "ScalbnTest.h",
+    ],
+)
+
 math_test(
     name = "scalbnf",
     hdrs = [
@@ -1551,6 +1783,14 @@ math_test(
     ],
 )
 
+math_test(
+    name = "scalblnbf16",
+    hdrs = [
+        "LdExpTest.h",
+        "ScalbnTest.h",
+    ],
+)
+
 math_test(
     name = "scalblnf",
     hdrs = [
@@ -1580,6 +1820,11 @@ math_test(
     hdrs = ["SetPayloadTest.h"],
 )
 
+math_test(
+    name = "setpayloadbf16",
+    hdrs = ["SetPayloadTest.h"],
+)
+
 math_test(
     name = "setpayloadf",
     hdrs = ["SetPayloadTest.h"],
@@ -1605,6 +1850,11 @@ math_test(
     hdrs = ["SetPayloadSigTest.h"],
 )
 
+math_test(
+    name = "setpayloadsigbf16",
+    hdrs = ["SetPayloadSigTest.h"],
+)
+
 math_test(
     name = "setpayloadsigf",
     hdrs = ["SetPayloadSigTest.h"],
@@ -1655,6 +1905,11 @@ math_test(
     hdrs = ["TotalOrderTest.h"],
 )
 
+math_test(
+    name = "totalorderbf16",
+    hdrs = ["TotalOrderTest.h"],
+)
+
 math_test(
     name = "totalorderf",
     hdrs = ["TotalOrderTest.h"],
@@ -1680,6 +1935,11 @@ math_test(
     hdrs = ["TotalOrderMagTest.h"],
 )
 
+math_test(
+    name = "totalordermagbf16",
+    hdrs = ["TotalOrderMagTest.h"],
+)
+
 math_test(
     name = "totalordermagf",
     hdrs = ["TotalOrderMagTest.h"],
@@ -1705,6 +1965,11 @@ math_test(
     hdrs = ["TruncTest.h"],
 )
 
+math_test(
+    name = "truncbf16",
+    hdrs = ["TruncTest.h"],
+)
+
 math_test(
     name = "truncf",
     hdrs = ["TruncTest.h"],
@@ -1733,6 +1998,11 @@ math_test(
     hdrs = ["UfromfpTest.h"],
 )
 
+math_test(
+    name = "ufromfpbf16",
+    hdrs = ["UfromfpTest.h"],
+)
+
 math_test(
     name = "ufromfpf",
     hdrs = ["UfromfpTest.h"],
@@ -1758,6 +2028,11 @@ math_test(
     hdrs = ["UfromfpxTest.h"],
 )
 
+math_test(
+    name = "ufromfpxbf16",
+    hdrs = ["UfromfpxTest.h"],
+)
+
 math_test(
     name = "ufromfpxf",
     hdrs = ["UfromfpxTest.h"],
@@ -1803,6 +2078,11 @@ math_test(
 
 math_test(name = "expm1f16")
 
+math_test(
+    name = "issignalingbf16",
+    hdrs = ["IsSignalingTest.h"],
+)
+
 math_test(
     name = "issignalingf16",
     hdrs = ["IsSignalingTest.h"],
@@ -1820,8 +2100,18 @@ math_test(name = "log10f16")
 
 math_test(name = "log2f16")
 
+math_test(name = "logbf16")
+
 math_test(name = "logf16")
 
+math_test(
+    name = "nanbf16",
+    deps = [
+        "//libc:__support_macros_sanitizer",
+        "//libc:hdr_signal_macros",
+    ],
+)
+
 math_test(
     name = "nanf16",
     deps = [
@@ -1838,6 +2128,8 @@ math_test(name = "sinhf16")
 
 math_test(name = "sinpif16")
 
+math_test(name = "tanbf16")
+
 math_test(name = "tanf16")
 
 math_test(name = "tanhf16")

>From c437c301c3efeb9d70b2d3613404342793b02713 Mon Sep 17 00:00:00 2001
From: s4chinjha <170951715+s4chinjha at users.noreply.github.com>
Date: Wed, 9 Sep 2026 22:37:13 +0530
Subject: [PATCH 4/5] fix tanbf16 mpfr test

---
 .../llvm-project-overlay/libc/test/src/math/BUILD.bazel   | 8 +-------
 1 file changed, 1 insertion(+), 7 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 b01105a99c453..3ff700d3630f9 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
@@ -717,13 +717,7 @@ math_mpfr_test(
 
 math_mpfr_test(name = "tan")
 
-math_mpfr_test(
-    name = "tanbf16",
-    hdrs = ["sdcomp26094.h"],
-    deps = [
-        "//libc:__support_cpp_array",
-    ],
-)
+math_mpfr_test(name = "tanbf16")
 
 math_mpfr_test(
     name = "tanf",

>From 9d1f53fba3b212c98465e6866ed6b63b89e5288f Mon Sep 17 00:00:00 2001
From: s4chinjha <170951715+s4chinjha at users.noreply.github.com>
Date: Thu, 10 Sep 2026 12:20:05 +0530
Subject: [PATCH 5/5] fix: remove duplicate logbf16 smoke test target

---
 .../llvm-project-overlay/libc/test/src/math/smoke/BUILD.bazel   | 2 --
 1 file changed, 2 deletions(-)

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 02ab498cda38f..683dfbbb73f5e 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
@@ -2100,8 +2100,6 @@ math_test(name = "log10f16")
 
 math_test(name = "log2f16")
 
-math_test(name = "logbf16")
-
 math_test(name = "logf16")
 
 math_test(



More information about the llvm-commits mailing list