[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:13:32 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: None (lexi-nadia)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/157143.diff


2 Files Affected:

- (modified) utils/bazel/llvm-project-overlay/libc/BUILD.bazel (+7) 
- (modified) utils/bazel/llvm-project-overlay/libc/test/src/math/smoke/BUILD.bazel (+5) 


``````````diff
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"],

``````````

</details>


https://github.com/llvm/llvm-project/pull/157143


More information about the llvm-commits mailing list