[llvm] [libc][bazel] Adds missing targets for bf16 public headers to bazel files (PR #222071)
Sachin 🗲 via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 14 11:53:08 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/9] 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/9] 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/9] 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/9] 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/9] 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(
>From de71ae8b1b75842527f0884d42648c9855a8f758 Mon Sep 17 00:00:00 2001
From: s4chinjha <170951715+s4chinjha at users.noreply.github.com>
Date: Sun, 13 Sep 2026 20:39:29 +0530
Subject: [PATCH 6/9] added bfloat16 deps to smoke tests
---
.../libc/test/src/math/smoke/BUILD.bazel | 199 +++++++++++++++++-
1 file changed, 192 insertions(+), 7 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 683dfbbb73f5e..80ae4b3212ef3 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,7 +10,12 @@ package(default_visibility = ["//visibility:public"])
licenses(["notice"])
-math_test(name = "acosbf16")
+math_test(
+ name = "acosbf16",
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
+)
math_test(name = "acosf")
@@ -18,7 +23,12 @@ math_test(name = "acoshf")
math_test(name = "acosf16")
-math_test(name = "asinbf16")
+math_test(
+ name = "asinbf16",
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
+)
math_test(name = "asinf")
@@ -42,7 +52,12 @@ math_test(
math_test(name = "atan")
-math_test(name = "atanbf16")
+math_test(
+ name = "atanbf16",
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
+)
math_test(name = "atanf")
@@ -60,6 +75,7 @@ math_test(
name = "canonicalizebf16",
hdrs = ["CanonicalizeTest.h"],
deps = [
+ "//libc:__support_fputil_bfloat16",
"//libc:__support_integer_literals",
],
)
@@ -99,6 +115,9 @@ math_test(
math_test(
name = "iscanonicalbf16",
hdrs = ["IsCanonicalTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -116,7 +135,12 @@ math_test(
math_test(name = "cbrt")
-math_test(name = "cbrtbf16")
+math_test(
+ name = "cbrtbf16",
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
+)
math_test(name = "cbrtf")
@@ -130,6 +154,9 @@ math_test(
math_test(
name = "ceilbf16",
hdrs = ["CeilTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -166,6 +193,9 @@ math_test(
math_test(
name = "copysignbf16",
hdrs = ["CopySignTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -337,6 +367,9 @@ math_test(
math_test(
name = "sqrtbf16",
hdrs = ["SqrtTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -431,6 +464,9 @@ math_test(
math_test(
name = "fabsbf16",
hdrs = ["FAbsTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -479,6 +515,9 @@ math_test(
math_test(
name = "fdimbf16",
hdrs = ["FDimTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -542,6 +581,9 @@ math_test(
math_test(
name = "floorbf16",
hdrs = ["FloorTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -575,6 +617,9 @@ math_test(
math_test(
name = "fmabf16",
hdrs = ["FmaTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -595,6 +640,9 @@ math_test(
math_test(
name = "fmaxbf16",
hdrs = ["FMaxTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -628,6 +676,9 @@ math_test(
math_test(
name = "fmaximumbf16",
hdrs = ["FMaximumTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -656,6 +707,9 @@ math_test(
math_test(
name = "fmaximum_magbf16",
hdrs = ["FMaximumMagTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -684,6 +738,9 @@ math_test(
math_test(
name = "fmaximum_mag_numbf16",
hdrs = ["FMaximumMagNumTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -712,6 +769,9 @@ math_test(
math_test(
name = "fmaximum_numbf16",
hdrs = ["FMaximumNumTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -760,6 +820,9 @@ math_test(
math_test(
name = "fminbf16",
hdrs = ["FMinTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -793,6 +856,9 @@ math_test(
math_test(
name = "fminimumbf16",
hdrs = ["FMinimumTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -821,6 +887,9 @@ math_test(
math_test(
name = "fminimum_magbf16",
hdrs = ["FMinimumMagTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -854,6 +923,9 @@ math_test(
math_test(
name = "fminimum_mag_numbf16",
hdrs = ["FMinimumMagNumTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -887,6 +959,9 @@ math_test(
math_test(
name = "fminimum_numbf16",
hdrs = ["FMinimumNumTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -975,6 +1050,9 @@ math_test(
math_test(
name = "frexpbf16",
hdrs = ["FrexpTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -1005,6 +1083,9 @@ math_test(
math_test(
name = "fromfpbf16",
hdrs = ["FromfpTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -1035,6 +1116,9 @@ math_test(
math_test(
name = "fromfpxbf16",
hdrs = ["FromfpxTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -1080,6 +1164,9 @@ math_test(
math_test(
name = "getpayloadbf16",
hdrs = ["GetPayloadTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -1110,6 +1197,9 @@ math_test(
math_test(
name = "hypotbf16",
hdrs = ["HypotTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -1130,6 +1220,9 @@ math_test(
math_test(
name = "ilogbbf16",
hdrs = ["ILogbTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -1155,6 +1248,9 @@ math_test(
math_test(
name = "ldexpbf16",
hdrs = ["LdExpTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -1185,6 +1281,9 @@ math_test(
math_test(
name = "llogbbf16",
hdrs = ["ILogbTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -1228,6 +1327,9 @@ math_test(
math_test(
name = "llrintbf16",
hdrs = ["RoundToIntegerTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -1266,6 +1368,9 @@ math_test(
math_test(
name = "llroundbf16",
hdrs = ["RoundToIntegerTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -1298,7 +1403,12 @@ math_test(
math_test(name = "log")
-math_test(name = "log_bf16")
+math_test(
+ name = "log_bf16",
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
+)
math_test(name = "logf")
@@ -1322,6 +1432,9 @@ math_test(
math_test(
name = "logbbf16",
hdrs = ["LogbTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -1352,6 +1465,9 @@ math_test(
math_test(
name = "lrintbf16",
hdrs = ["RoundToIntegerTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -1380,6 +1496,9 @@ math_test(
math_test(
name = "lroundbf16",
hdrs = ["RoundToIntegerTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -1408,6 +1527,9 @@ math_test(
math_test(
name = "modfbf16",
hdrs = ["ModfTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -1440,6 +1562,9 @@ math_test(
math_test(
name = "nearbyintbf16",
hdrs = ["NearbyIntTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -1474,7 +1599,10 @@ math_test(
math_test(
name = "nextafterbf16",
hdrs = ["NextAfterTest.h"],
- deps = ["//libc:__support_sign"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ "//libc:__support_sign",
+ ],
)
math_test(
@@ -1509,6 +1637,9 @@ math_test(
math_test(
name = "nextdownbf16",
hdrs = ["NextDownTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -1539,6 +1670,9 @@ math_test(
math_test(
name = "nexttowardbf16",
hdrs = ["NextTowardTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -1564,6 +1698,9 @@ math_test(
math_test(
name = "nextupbf16",
hdrs = ["NextUpTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -1598,6 +1735,9 @@ math_test(
math_test(
name = "remquobf16",
hdrs = ["RemQuoTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -1628,6 +1768,9 @@ math_test(
math_test(
name = "rintbf16",
hdrs = ["RIntTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -1661,6 +1804,9 @@ math_test(
math_test(
name = "roundevenbf16",
hdrs = ["RoundEvenTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -1694,6 +1840,9 @@ math_test(
math_test(
name = "roundbf16",
hdrs = ["RoundTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -1733,6 +1882,9 @@ math_test(
"LdExpTest.h",
"ScalbnTest.h",
],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -1789,6 +1941,9 @@ math_test(
"LdExpTest.h",
"ScalbnTest.h",
],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -1823,6 +1978,9 @@ math_test(
math_test(
name = "setpayloadbf16",
hdrs = ["SetPayloadTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -1853,6 +2011,9 @@ math_test(
math_test(
name = "setpayloadsigbf16",
hdrs = ["SetPayloadSigTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -1908,6 +2069,9 @@ math_test(
math_test(
name = "totalorderbf16",
hdrs = ["TotalOrderTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -1938,6 +2102,9 @@ math_test(
math_test(
name = "totalordermagbf16",
hdrs = ["TotalOrderMagTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -1968,6 +2135,9 @@ math_test(
math_test(
name = "truncbf16",
hdrs = ["TruncTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -2001,6 +2171,9 @@ math_test(
math_test(
name = "ufromfpbf16",
hdrs = ["UfromfpTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -2031,6 +2204,9 @@ math_test(
math_test(
name = "ufromfpxbf16",
hdrs = ["UfromfpxTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -2081,6 +2257,9 @@ math_test(name = "expm1f16")
math_test(
name = "issignalingbf16",
hdrs = ["IsSignalingTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_test(
@@ -2105,6 +2284,7 @@ math_test(name = "logf16")
math_test(
name = "nanbf16",
deps = [
+ "//libc:__support_fputil_bfloat16",
"//libc:__support_macros_sanitizer",
"//libc:hdr_signal_macros",
],
@@ -2126,7 +2306,12 @@ math_test(name = "sinhf16")
math_test(name = "sinpif16")
-math_test(name = "tanbf16")
+math_test(
+ name = "tanbf16",
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
+)
math_test(name = "tanf16")
>From bfe445a9743eef914890e7acfae99cae1876c267 Mon Sep 17 00:00:00 2001
From: s4chinjha <170951715+s4chinjha at users.noreply.github.com>
Date: Sun, 13 Sep 2026 22:56:33 +0530
Subject: [PATCH 7/9] added bf16 deps to mpfr test targets
---
.../libc/test/src/math/BUILD.bazel | 71 +++++++++++++++++--
1 file changed, 64 insertions(+), 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 3ff700d3630f9..a6c32b20b049d 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,13 +12,23 @@ exports_files(["libc_math_test_rules.bzl"])
licenses(["notice"])
-math_mpfr_test(name = "acosbf16")
+math_mpfr_test(
+ name = "acosbf16",
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
+)
math_mpfr_test(name = "acosf")
math_mpfr_test(name = "acoshf")
-math_mpfr_test(name = "asinbf16")
+math_mpfr_test(
+ name = "asinbf16",
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
+)
math_mpfr_test(name = "asinf")
@@ -35,7 +45,12 @@ math_mpfr_test(
math_mpfr_test(name = "atan")
-math_mpfr_test(name = "atanbf16")
+math_mpfr_test(
+ name = "atanbf16",
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
+)
math_mpfr_test(name = "atanf")
@@ -43,7 +58,12 @@ math_mpfr_test(name = "atanhf")
math_mpfr_test(name = "cbrt")
-math_mpfr_test(name = "cbrtbf16")
+math_mpfr_test(
+ name = "cbrtbf16",
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
+)
math_mpfr_test(name = "cbrtf")
@@ -267,7 +287,12 @@ math_mpfr_test(
# math_mpfr_test(name = "f16fmaf")
# math_mpfr_test(name = "f16fmal")
-math_mpfr_test(name = "fmabf16")
+math_mpfr_test(
+ name = "fmabf16",
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
+)
math_mpfr_test(
name = "frexp",
@@ -338,6 +363,9 @@ math_mpfr_test(
math_mpfr_test(
name = "hypotbf16",
hdrs = ["HypotTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_mpfr_test(
@@ -363,6 +391,9 @@ math_mpfr_test(
math_mpfr_test(
name = "llrintbf16",
hdrs = ["RoundToIntegerTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_mpfr_test(
@@ -388,6 +419,9 @@ math_mpfr_test(
math_mpfr_test(
name = "llroundbf16",
hdrs = ["RoundToIntegerTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_mpfr_test(
@@ -412,7 +446,12 @@ math_mpfr_test(
math_mpfr_test(name = "log")
-math_mpfr_test(name = "log_bf16")
+math_mpfr_test(
+ name = "log_bf16",
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
+)
math_mpfr_test(name = "logf")
@@ -436,6 +475,9 @@ math_mpfr_test(
math_mpfr_test(
name = "lrintbf16",
hdrs = ["RoundToIntegerTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_mpfr_test(
@@ -461,6 +503,9 @@ math_mpfr_test(
math_mpfr_test(
name = "lroundbf16",
hdrs = ["RoundToIntegerTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_mpfr_test(
@@ -487,6 +532,7 @@ math_mpfr_test(
name = "nearbyintbf16",
hdrs = ["NearbyIntTest.h"],
deps = [
+ "//libc:__support_fputil_bfloat16",
"//libc:__support_cpp_array",
],
)
@@ -553,6 +599,9 @@ math_mpfr_test(
math_mpfr_test(
name = "rintbf16",
hdrs = ["RIntTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_mpfr_test(
@@ -679,6 +728,9 @@ math_mpfr_test(
math_mpfr_test(
name = "sqrtbf16",
hdrs = ["SqrtTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
)
math_mpfr_test(
@@ -717,7 +769,12 @@ math_mpfr_test(
math_mpfr_test(name = "tan")
-math_mpfr_test(name = "tanbf16")
+math_mpfr_test(
+ name = "tanbf16",
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
+)
math_mpfr_test(
name = "tanf",
>From de9f46b54f7fa87b01d58633e677e267e3a32c21 Mon Sep 17 00:00:00 2001
From: s4chinjha <170951715+s4chinjha at users.noreply.github.com>
Date: Mon, 14 Sep 2026 15:16:14 +0530
Subject: [PATCH 8/9] removed the mpfr & smoke test targets
---
.../libc/test/src/math/BUILD.bazel | 114 -----
.../libc/test/src/math/smoke/BUILD.bazel | 475 ------------------
2 files changed, 589 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 a6c32b20b049d..d8914aa3b8ec7 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,24 +12,10 @@ exports_files(["libc_math_test_rules.bzl"])
licenses(["notice"])
-math_mpfr_test(
- name = "acosbf16",
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_mpfr_test(name = "acosf")
math_mpfr_test(name = "acoshf")
-math_mpfr_test(
- name = "asinbf16",
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_mpfr_test(name = "asinf")
math_mpfr_test(name = "asinhf")
@@ -45,26 +31,12 @@ math_mpfr_test(
math_mpfr_test(name = "atan")
-math_mpfr_test(
- name = "atanbf16",
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_mpfr_test(name = "atanf")
math_mpfr_test(name = "atanhf")
math_mpfr_test(name = "cbrt")
-math_mpfr_test(
- name = "cbrtbf16",
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_mpfr_test(name = "cbrtf")
math_mpfr_test(
@@ -287,13 +259,6 @@ math_mpfr_test(
# math_mpfr_test(name = "f16fmaf")
# math_mpfr_test(name = "f16fmal")
-math_mpfr_test(
- name = "fmabf16",
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_mpfr_test(
name = "frexp",
hdrs = ["FrexpTest.h"],
@@ -360,14 +325,6 @@ math_mpfr_test(
hdrs = ["HypotTest.h"],
)
-math_mpfr_test(
- name = "hypotbf16",
- hdrs = ["HypotTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_mpfr_test(
name = "hypotf",
hdrs = [
@@ -388,14 +345,6 @@ math_mpfr_test(
hdrs = ["RoundToIntegerTest.h"],
)
-math_mpfr_test(
- name = "llrintbf16",
- hdrs = ["RoundToIntegerTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_mpfr_test(
name = "llrintf",
hdrs = ["RoundToIntegerTest.h"],
@@ -416,14 +365,6 @@ math_mpfr_test(
hdrs = ["RoundToIntegerTest.h"],
)
-math_mpfr_test(
- name = "llroundbf16",
- hdrs = ["RoundToIntegerTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_mpfr_test(
name = "llroundf",
hdrs = ["RoundToIntegerTest.h"],
@@ -446,13 +387,6 @@ math_mpfr_test(
math_mpfr_test(name = "log")
-math_mpfr_test(
- name = "log_bf16",
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_mpfr_test(name = "logf")
math_mpfr_test(name = "log10")
@@ -472,14 +406,6 @@ math_mpfr_test(
hdrs = ["RoundToIntegerTest.h"],
)
-math_mpfr_test(
- name = "lrintbf16",
- hdrs = ["RoundToIntegerTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_mpfr_test(
name = "lrintf",
hdrs = ["RoundToIntegerTest.h"],
@@ -500,14 +426,6 @@ math_mpfr_test(
hdrs = ["RoundToIntegerTest.h"],
)
-math_mpfr_test(
- name = "lroundbf16",
- hdrs = ["RoundToIntegerTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_mpfr_test(
name = "lroundf",
hdrs = ["RoundToIntegerTest.h"],
@@ -528,15 +446,6 @@ math_mpfr_test(
],
)
-math_mpfr_test(
- name = "nearbyintbf16",
- hdrs = ["NearbyIntTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- "//libc:__support_cpp_array",
- ],
-)
-
math_mpfr_test(
name = "nearbyintf",
hdrs = ["NearbyIntTest.h"],
@@ -596,14 +505,6 @@ math_mpfr_test(
hdrs = ["RIntTest.h"],
)
-math_mpfr_test(
- name = "rintbf16",
- hdrs = ["RIntTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_mpfr_test(
name = "rintf",
hdrs = ["RIntTest.h"],
@@ -725,14 +626,6 @@ math_mpfr_test(
hdrs = ["SqrtTest.h"],
)
-math_mpfr_test(
- name = "sqrtbf16",
- hdrs = ["SqrtTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_mpfr_test(
name = "sqrtf",
hdrs = ["SqrtTest.h"],
@@ -769,13 +662,6 @@ math_mpfr_test(
math_mpfr_test(name = "tan")
-math_mpfr_test(
- name = "tanbf16",
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_mpfr_test(
name = "tanf",
hdrs = ["sdcomp26094.h"],
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 80ae4b3212ef3..1ea19f953e0ad 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,26 +10,12 @@ package(default_visibility = ["//visibility:public"])
licenses(["notice"])
-math_test(
- name = "acosbf16",
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(name = "acosf")
math_test(name = "acoshf")
math_test(name = "acosf16")
-math_test(
- name = "asinbf16",
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(name = "asinf")
math_test(name = "asinf16")
@@ -52,13 +38,6 @@ math_test(
math_test(name = "atan")
-math_test(
- name = "atanbf16",
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(name = "atanf")
math_test(name = "atanhf")
@@ -71,15 +50,6 @@ math_test(
],
)
-math_test(
- name = "canonicalizebf16",
- hdrs = ["CanonicalizeTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- "//libc:__support_integer_literals",
- ],
-)
-
math_test(
name = "canonicalizef",
hdrs = ["CanonicalizeTest.h"],
@@ -112,14 +82,6 @@ math_test(
],
)
-math_test(
- name = "iscanonicalbf16",
- hdrs = ["IsCanonicalTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "iscanonicalf16",
hdrs = ["IsCanonicalTest.h"],
@@ -135,13 +97,6 @@ math_test(
math_test(name = "cbrt")
-math_test(
- name = "cbrtbf16",
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(name = "cbrtf")
math_test(name = "cbrtf16")
@@ -151,14 +106,6 @@ math_test(
hdrs = ["CeilTest.h"],
)
-math_test(
- name = "ceilbf16",
- hdrs = ["CeilTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "ceilf",
hdrs = ["CeilTest.h"],
@@ -190,14 +137,6 @@ math_test(
hdrs = ["CopySignTest.h"],
)
-math_test(
- name = "copysignbf16",
- hdrs = ["CopySignTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "copysignf",
hdrs = ["CopySignTest.h"],
@@ -364,14 +303,6 @@ math_test(
hdrs = ["SqrtTest.h"],
)
-math_test(
- name = "sqrtbf16",
- hdrs = ["SqrtTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "sqrtf",
hdrs = ["SqrtTest.h"],
@@ -461,14 +392,6 @@ math_test(
hdrs = ["FAbsTest.h"],
)
-math_test(
- name = "fabsbf16",
- hdrs = ["FAbsTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "fabsf",
hdrs = ["FAbsTest.h"],
@@ -512,14 +435,6 @@ math_test(
hdrs = ["FDimTest.h"],
)
-math_test(
- name = "fdimbf16",
- hdrs = ["FDimTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "fdimf",
hdrs = ["FDimTest.h"],
@@ -578,14 +493,6 @@ math_test(
hdrs = ["FloorTest.h"],
)
-math_test(
- name = "floorbf16",
- hdrs = ["FloorTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "floorf",
hdrs = ["FloorTest.h"],
@@ -614,14 +521,6 @@ math_test(
hdrs = ["FmaTest.h"],
)
-math_test(
- name = "fmabf16",
- hdrs = ["FmaTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "fmaf",
hdrs = ["FmaTest.h"],
@@ -637,14 +536,6 @@ math_test(
hdrs = ["FMaxTest.h"],
)
-math_test(
- name = "fmaxbf16",
- hdrs = ["FMaxTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "fmaxf",
hdrs = ["FMaxTest.h"],
@@ -673,14 +564,6 @@ math_test(
hdrs = ["FMaximumTest.h"],
)
-math_test(
- name = "fmaximumbf16",
- hdrs = ["FMaximumTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "fmaximumf",
hdrs = ["FMaximumTest.h"],
@@ -704,14 +587,6 @@ math_test(
hdrs = ["FMaximumMagTest.h"],
)
-math_test(
- name = "fmaximum_magbf16",
- hdrs = ["FMaximumMagTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "fmaximum_magf",
hdrs = ["FMaximumMagTest.h"],
@@ -735,14 +610,6 @@ math_test(
hdrs = ["FMaximumMagNumTest.h"],
)
-math_test(
- name = "fmaximum_mag_numbf16",
- hdrs = ["FMaximumMagNumTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "fmaximum_mag_numf",
hdrs = ["FMaximumMagNumTest.h"],
@@ -766,14 +633,6 @@ math_test(
hdrs = ["FMaximumNumTest.h"],
)
-math_test(
- name = "fmaximum_numbf16",
- hdrs = ["FMaximumNumTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "fmaximum_numf",
hdrs = ["FMaximumNumTest.h"],
@@ -817,14 +676,6 @@ math_test(
hdrs = ["FMinTest.h"],
)
-math_test(
- name = "fminbf16",
- hdrs = ["FMinTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "fminf",
hdrs = ["FMinTest.h"],
@@ -853,14 +704,6 @@ math_test(
hdrs = ["FMinimumTest.h"],
)
-math_test(
- name = "fminimumbf16",
- hdrs = ["FMinimumTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "fminimumf",
hdrs = ["FMinimumTest.h"],
@@ -884,14 +727,6 @@ math_test(
hdrs = ["FMinimumMagTest.h"],
)
-math_test(
- name = "fminimum_magbf16",
- hdrs = ["FMinimumMagTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "fminimum_magf",
hdrs = ["FMinimumMagTest.h"],
@@ -920,14 +755,6 @@ math_test(
hdrs = ["FMinimumMagNumTest.h"],
)
-math_test(
- name = "fminimum_mag_numbf16",
- hdrs = ["FMinimumMagNumTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "fminimum_mag_numf",
hdrs = ["FMinimumMagNumTest.h"],
@@ -956,14 +783,6 @@ math_test(
hdrs = ["FMinimumNumTest.h"],
)
-math_test(
- name = "fminimum_numbf16",
- hdrs = ["FMinimumNumTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "fminimum_numf",
hdrs = ["FMinimumNumTest.h"],
@@ -1047,14 +866,6 @@ math_test(
hdrs = ["FrexpTest.h"],
)
-math_test(
- name = "frexpbf16",
- hdrs = ["FrexpTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "frexpf",
hdrs = ["FrexpTest.h"],
@@ -1080,14 +891,6 @@ math_test(
hdrs = ["FromfpTest.h"],
)
-math_test(
- name = "fromfpbf16",
- hdrs = ["FromfpTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "fromfpf",
hdrs = ["FromfpTest.h"],
@@ -1113,14 +916,6 @@ math_test(
hdrs = ["FromfpxTest.h"],
)
-math_test(
- name = "fromfpxbf16",
- hdrs = ["FromfpxTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "fromfpxf",
hdrs = ["FromfpxTest.h"],
@@ -1161,14 +956,6 @@ math_test(
hdrs = ["GetPayloadTest.h"],
)
-math_test(
- name = "getpayloadbf16",
- hdrs = ["GetPayloadTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "getpayloadf",
hdrs = ["GetPayloadTest.h"],
@@ -1194,14 +981,6 @@ math_test(
hdrs = ["HypotTest.h"],
)
-math_test(
- name = "hypotbf16",
- hdrs = ["HypotTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "hypotf",
hdrs = ["HypotTest.h"],
@@ -1217,14 +996,6 @@ math_test(
hdrs = ["ILogbTest.h"],
)
-math_test(
- name = "ilogbbf16",
- hdrs = ["ILogbTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "ilogbf",
hdrs = ["ILogbTest.h"],
@@ -1245,14 +1016,6 @@ math_test(
hdrs = ["LdExpTest.h"],
)
-math_test(
- name = "ldexpbf16",
- hdrs = ["LdExpTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "ldexpf",
hdrs = ["LdExpTest.h"],
@@ -1278,14 +1041,6 @@ math_test(
hdrs = ["ILogbTest.h"],
)
-math_test(
- name = "llogbbf16",
- hdrs = ["ILogbTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "llogbf",
hdrs = ["ILogbTest.h"],
@@ -1324,14 +1079,6 @@ math_test(
hdrs = ["RoundToIntegerTest.h"],
)
-math_test(
- name = "llrintbf16",
- hdrs = ["RoundToIntegerTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "llrintf",
hdrs = ["RoundToIntegerTest.h"],
@@ -1365,14 +1112,6 @@ math_test(
hdrs = ["RoundToIntegerTest.h"],
)
-math_test(
- name = "llroundbf16",
- hdrs = ["RoundToIntegerTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "llroundf",
hdrs = ["RoundToIntegerTest.h"],
@@ -1403,13 +1142,6 @@ math_test(
math_test(name = "log")
-math_test(
- name = "log_bf16",
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(name = "logf")
math_test(name = "log10")
@@ -1429,14 +1161,6 @@ math_test(
hdrs = ["LogbTest.h"],
)
-math_test(
- name = "logbbf16",
- hdrs = ["LogbTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "logbf",
hdrs = ["LogbTest.h"],
@@ -1462,14 +1186,6 @@ math_test(
hdrs = ["RoundToIntegerTest.h"],
)
-math_test(
- name = "lrintbf16",
- hdrs = ["RoundToIntegerTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "lrintf",
hdrs = ["RoundToIntegerTest.h"],
@@ -1493,14 +1209,6 @@ math_test(
hdrs = ["RoundToIntegerTest.h"],
)
-math_test(
- name = "lroundbf16",
- hdrs = ["RoundToIntegerTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "lroundf",
hdrs = ["RoundToIntegerTest.h"],
@@ -1524,14 +1232,6 @@ math_test(
hdrs = ["ModfTest.h"],
)
-math_test(
- name = "modfbf16",
- hdrs = ["ModfTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "modff",
hdrs = ["ModfTest.h"],
@@ -1559,14 +1259,6 @@ math_test(
hdrs = ["NearbyIntTest.h"],
)
-math_test(
- name = "nearbyintbf16",
- hdrs = ["NearbyIntTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "nearbyintf",
hdrs = ["NearbyIntTest.h"],
@@ -1596,15 +1288,6 @@ math_test(
deps = ["//libc:__support_sign"],
)
-math_test(
- name = "nextafterbf16",
- hdrs = ["NextAfterTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- "//libc:__support_sign",
- ],
-)
-
math_test(
name = "nextafterf",
hdrs = ["NextAfterTest.h"],
@@ -1634,14 +1317,6 @@ math_test(
hdrs = ["NextDownTest.h"],
)
-math_test(
- name = "nextdownbf16",
- hdrs = ["NextDownTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "nextdownf",
hdrs = ["NextDownTest.h"],
@@ -1667,14 +1342,6 @@ math_test(
hdrs = ["NextTowardTest.h"],
)
-math_test(
- name = "nexttowardbf16",
- hdrs = ["NextTowardTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "nexttowardf",
hdrs = ["NextTowardTest.h"],
@@ -1695,14 +1362,6 @@ math_test(
hdrs = ["NextUpTest.h"],
)
-math_test(
- name = "nextupbf16",
- hdrs = ["NextUpTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "nextupf",
hdrs = ["NextUpTest.h"],
@@ -1732,14 +1391,6 @@ math_test(
hdrs = ["RemQuoTest.h"],
)
-math_test(
- name = "remquobf16",
- hdrs = ["RemQuoTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "remquof",
hdrs = ["RemQuoTest.h"],
@@ -1765,14 +1416,6 @@ math_test(
hdrs = ["RIntTest.h"],
)
-math_test(
- name = "rintbf16",
- hdrs = ["RIntTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "rintf",
hdrs = ["RIntTest.h"],
@@ -1801,14 +1444,6 @@ math_test(
hdrs = ["RoundEvenTest.h"],
)
-math_test(
- name = "roundevenbf16",
- hdrs = ["RoundEvenTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "roundevenf",
hdrs = ["RoundEvenTest.h"],
@@ -1837,14 +1472,6 @@ math_test(
hdrs = ["RoundTest.h"],
)
-math_test(
- name = "roundbf16",
- hdrs = ["RoundTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "roundf",
hdrs = ["RoundTest.h"],
@@ -1876,17 +1503,6 @@ math_test(
],
)
-math_test(
- name = "scalbnbf16",
- hdrs = [
- "LdExpTest.h",
- "ScalbnTest.h",
- ],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "scalbnf",
hdrs = [
@@ -1935,17 +1551,6 @@ math_test(
],
)
-math_test(
- name = "scalblnbf16",
- hdrs = [
- "LdExpTest.h",
- "ScalbnTest.h",
- ],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "scalblnf",
hdrs = [
@@ -1975,14 +1580,6 @@ math_test(
hdrs = ["SetPayloadTest.h"],
)
-math_test(
- name = "setpayloadbf16",
- hdrs = ["SetPayloadTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "setpayloadf",
hdrs = ["SetPayloadTest.h"],
@@ -2008,14 +1605,6 @@ math_test(
hdrs = ["SetPayloadSigTest.h"],
)
-math_test(
- name = "setpayloadsigbf16",
- hdrs = ["SetPayloadSigTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "setpayloadsigf",
hdrs = ["SetPayloadSigTest.h"],
@@ -2066,14 +1655,6 @@ math_test(
hdrs = ["TotalOrderTest.h"],
)
-math_test(
- name = "totalorderbf16",
- hdrs = ["TotalOrderTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "totalorderf",
hdrs = ["TotalOrderTest.h"],
@@ -2099,14 +1680,6 @@ math_test(
hdrs = ["TotalOrderMagTest.h"],
)
-math_test(
- name = "totalordermagbf16",
- hdrs = ["TotalOrderMagTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "totalordermagf",
hdrs = ["TotalOrderMagTest.h"],
@@ -2132,14 +1705,6 @@ math_test(
hdrs = ["TruncTest.h"],
)
-math_test(
- name = "truncbf16",
- hdrs = ["TruncTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "truncf",
hdrs = ["TruncTest.h"],
@@ -2168,14 +1733,6 @@ math_test(
hdrs = ["UfromfpTest.h"],
)
-math_test(
- name = "ufromfpbf16",
- hdrs = ["UfromfpTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "ufromfpf",
hdrs = ["UfromfpTest.h"],
@@ -2201,14 +1758,6 @@ math_test(
hdrs = ["UfromfpxTest.h"],
)
-math_test(
- name = "ufromfpxbf16",
- hdrs = ["UfromfpxTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "ufromfpxf",
hdrs = ["UfromfpxTest.h"],
@@ -2254,14 +1803,6 @@ math_test(
math_test(name = "expm1f16")
-math_test(
- name = "issignalingbf16",
- hdrs = ["IsSignalingTest.h"],
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(
name = "issignalingf16",
hdrs = ["IsSignalingTest.h"],
@@ -2281,15 +1822,6 @@ math_test(name = "log2f16")
math_test(name = "logf16")
-math_test(
- name = "nanbf16",
- deps = [
- "//libc:__support_fputil_bfloat16",
- "//libc:__support_macros_sanitizer",
- "//libc:hdr_signal_macros",
- ],
-)
-
math_test(
name = "nanf16",
deps = [
@@ -2306,13 +1838,6 @@ math_test(name = "sinhf16")
math_test(name = "sinpif16")
-math_test(
- name = "tanbf16",
- deps = [
- "//libc:__support_fputil_bfloat16",
- ],
-)
-
math_test(name = "tanf16")
math_test(name = "tanhf16")
>From 01ebe9164699bacd1fa01a9d2ec4999516a5866b Mon Sep 17 00:00:00 2001
From: s4chinjha <170951715+s4chinjha at users.noreply.github.com>
Date: Tue, 15 Sep 2026 00:22:45 +0530
Subject: [PATCH 9/9] refactored the bf16 public targets in alphabetical order
---
.../llvm-project-overlay/libc/BUILD.bazel | 20 +++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
index 11f7d7aefa7c9..9e3ebd8ed6848 100644
--- a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
@@ -10887,37 +10887,37 @@ libc_math_function(
)
libc_math_function(
- name = "canonicalize",
+ name = "bf16divf",
additional_deps = [
- ":__support_math_canonicalize",
+ ":__support_math_bf16divf",
],
)
libc_math_function(
- name = "canonicalizebf16",
+ name = "bf16divf128",
additional_deps = [
- ":__support_math_canonicalizebf16",
+ ":__support_math_bf16divf128",
],
)
libc_math_function(
- name = "bf16divf",
+ name = "canonicalize",
additional_deps = [
- ":__support_math_bf16divf",
+ ":__support_math_canonicalize",
],
)
libc_math_function(
- name = "bf16divf128",
+ name = "canonicalizef",
additional_deps = [
- ":__support_math_bf16divf128",
+ ":__support_math_canonicalizef",
],
)
libc_math_function(
- name = "canonicalizef",
+ name = "canonicalizebf16",
additional_deps = [
- ":__support_math_canonicalizef",
+ ":__support_math_canonicalizebf16",
],
)
More information about the llvm-commits
mailing list