[PATCH] D158989: [libc][bazel] Add missing math functions and tests (exp, exp2, erff) to bazel layout.

Tue Ly via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 28 07:39:41 PDT 2023


lntue created this revision.
lntue added reviewers: sivachandra, gchatelet.
Herald added a project: All.
lntue requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Add missing math functions and tests (exp, exp2, erff) to bazel layout.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D158989

Files:
  utils/bazel/llvm-project-overlay/libc/BUILD.bazel
  utils/bazel/llvm-project-overlay/libc/test/src/math/BUILD.bazel


Index: utils/bazel/llvm-project-overlay/libc/test/src/math/BUILD.bazel
===================================================================
--- utils/bazel/llvm-project-overlay/libc/test/src/math/BUILD.bazel
+++ utils/bazel/llvm-project-overlay/libc/test/src/math/BUILD.bazel
@@ -734,6 +734,27 @@
     ],
 )
 
+math_test(
+    name = "erff",
+    deps = [
+        "//libc/utils/MPFRWrapper:mpfr_wrapper",
+    ],
+)
+
+math_test(
+    name = "exp",
+    deps = [
+        "//libc/utils/MPFRWrapper:mpfr_wrapper",
+    ],
+)
+
+math_test(
+    name = "exp2",
+    deps = [
+        "//libc/utils/MPFRWrapper:mpfr_wrapper",
+    ],
+)
+
 math_test(
     name = "fmod",
     hdrs = ["FModTest.h"],
Index: utils/bazel/llvm-project-overlay/libc/BUILD.bazel
===================================================================
--- utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+++ utils/bazel/llvm-project-overlay/libc/BUILD.bazel
@@ -1217,6 +1217,22 @@
     ],
 )
 
+libc_math_function(
+    name = "exp",
+    additional_deps = [
+        ":__support_fputil_double_double",
+        ":__support_fputil_dyadic_float",
+        ":__support_fputil_multiply_add",
+        ":__support_fputil_nearest_integer",
+        ":__support_fputil_polyeval",
+        ":__support_fputil_rounding_mode",
+        ":__support_fputil_triple_double",
+        ":__support_macros_optimization",
+        ":common_constants",
+        ":explogxf",
+    ],
+)
+
 libc_math_function(
     name = "expf",
     additional_deps = [
@@ -1244,6 +1260,22 @@
     ],
 )
 
+libc_math_function(
+    name = "exp2",
+    additional_deps = [
+        ":__support_fputil_double_double",
+        ":__support_fputil_dyadic_float",
+        ":__support_fputil_multiply_add",
+        ":__support_fputil_nearest_integer",
+        ":__support_fputil_polyeval",
+        ":__support_fputil_rounding_mode",
+        ":__support_fputil_triple_double",
+        ":__support_macros_optimization",
+        ":common_constants",
+        ":explogxf",
+    ],
+)
+
 libc_math_function(
     name = "exp2f",
     additional_deps = [


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158989.553927.patch
Type: text/x-patch
Size: 2086 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230828/03b3ab6d/attachment.bin>


More information about the llvm-commits mailing list