Skip to content

Conversation

RoseZhang03
Copy link
Contributor

Needed to add sin/cos/tan fuzz tests to google3

Needed to add sin/cos/tan fuzz tests to google3
@llvmbot llvmbot added libc bazel "Peripheral" support tier build system: utils/bazel labels Aug 2, 2024
@llvmbot
Copy link
Member

llvmbot commented Aug 2, 2024

@llvm/pr-subscribers-libc

Author: None (RoseZhang03)

Changes

Needed to add sin/cos/tan fuzz tests to google3


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

1 Files Affected:

  • (modified) utils/bazel/llvm-project-overlay/libc/BUILD.bazel (+39)
diff --git a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
index 253b89216a88f..32bc69544f031 100644
--- a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
@@ -2070,6 +2070,17 @@ libc_math_function(name = "fmaxl")
 
 libc_math_function(name = "fmaxf128")
 
+libc_math_function(
+    name = "cos",
+    additional_deps = [
+        ":__support_fputil_fma",
+        ":__support_macros_optimization",
+        ":__support_macros_properties_cpu_features",
+        ":range_reduction",
+        ":sincosf_utils",
+    ],
+)
+
 libc_math_function(
     name = "cosf",
     additional_deps = [
@@ -2081,6 +2092,20 @@ libc_math_function(
     ],
 )
 
+libc_math_function(
+    name = "sin",
+    additional_deps = [
+        ":__support_fputil_fma",
+        ":__support_fputil_multiply_add",
+        ":__support_fputil_polyeval",
+        ":__support_fputil_rounding_mode",
+        ":__support_macros_optimization",
+        ":__support_macros_properties_cpu_features",
+        ":range_reduction",
+        ":sincosf_utils",
+    ],
+)
+
 libc_math_function(
     name = "sincosf",
     additional_deps = [
@@ -2107,6 +2132,20 @@ libc_math_function(
     ],
 )
 
+libc_math_function(
+    name = "tan",
+    additional_deps = [
+        ":__support_fputil_fma",
+        ":__support_fputil_multiply_add",
+        ":__support_fputil_polyeval",
+        ":__support_fputil_rounding_mode",
+        ":__support_macros_optimization",
+        ":__support_macros_properties_cpu_features",
+        ":range_reduction",
+        ":sincosf_utils",
+    ],
+)
+
 libc_math_function(
     name = "tanf",
     additional_deps = [

Copy link
Contributor

@michaelrj-google michaelrj-google left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@RoseZhang03 RoseZhang03 merged commit 0759508 into llvm:main Aug 5, 2024
@RoseZhang03 RoseZhang03 deleted the rosezhang25 branch August 5, 2024 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bazel "Peripheral" support tier build system: utils/bazel libc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants