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

Tue Ly via Phabricator via libc-commits libc-commits at lists.llvm.org
Mon Aug 28 07:48:23 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rGeee564f20a13: [libc][bazel] Add missing math functions and tests (exp, exp2, erff) to bazel… (authored by lntue).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D158989/new/

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.553933.patch
Type: text/x-patch
Size: 2086 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230828/92824848/attachment.bin>


More information about the libc-commits mailing list