[llvm] Update Bazel rules for fmodbf16 math function that was added in 96b1dfb57fc822ea69bf75a8f0a69eb168776faa (PR #157143)

via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 5 10:12:52 PDT 2025


https://github.com/lexi-nadia created https://github.com/llvm/llvm-project/pull/157143

None

>From e92a1f03f8980ca82e7ec3b8d462968502bfb5ad Mon Sep 17 00:00:00 2001
From: lexinadia <lexinadia at google.com>
Date: Fri, 5 Sep 2025 17:07:29 +0000
Subject: [PATCH] Update Bazel rules for fmodbf16 math function that was added
 in 96b1dfb57fc822ea69bf75a8f0a69eb168776faa

---
 utils/bazel/llvm-project-overlay/libc/BUILD.bazel          | 7 +++++++
 .../libc/test/src/math/smoke/BUILD.bazel                   | 5 +++++
 2 files changed, 12 insertions(+)

diff --git a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
index ee7e5cbf5febb..5df4394ca5d93 100644
--- a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
@@ -3748,6 +3748,13 @@ libc_math_function(
     ],
 )
 
+libc_math_function(
+    name = "fmodbf16",
+    additional_deps = [
+        ":__support_fputil_generic_fmod",
+    ],
+)
+
 libc_math_function(
     name = "fmodf",
     additional_deps = [
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 087c3a62472e6..07d95fb18e883 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
@@ -738,6 +738,11 @@ math_test(
     hdrs = ["FModTest.h"],
 )
 
+math_test(
+    name = "fmodbf16",
+    hdrs = ["FModTest.h"],
+)
+
 math_test(
     name = "fmodf",
     hdrs = ["FModTest.h"],



More information about the llvm-commits mailing list