Skip to content

Commit 210644c

Browse files
committed
[bazel] Add tanpif rules after #147192
1 parent 0d2e11f commit 210644c

File tree

3 files changed

+37
-16
lines changed

3 files changed

+37
-16
lines changed

utils/bazel/llvm-project-overlay/libc/BUILD.bazel

Lines changed: 27 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2124,7 +2124,7 @@ libc_support_library(
21242124
":__support_fputil_nearest_integer",
21252125
":__support_fputil_polyeval",
21262126
":__support_macros_attributes",
2127-
":llvm_libc_macros_float16_macros"
2127+
":llvm_libc_macros_float16_macros",
21282128
],
21292129
)
21302130

@@ -2133,7 +2133,6 @@ libc_support_library(
21332133
hdrs = ["src/__support/math/expf16.h"],
21342134
deps = [
21352135
":__support_common",
2136-
":__support_libc_errno",
21372136
":__support_cpp_array",
21382137
":__support_fputil_cast",
21392138
":__support_fputil_except_value_utils",
@@ -2143,29 +2142,30 @@ libc_support_library(
21432142
":__support_fputil_nearest_integer",
21442143
":__support_fputil_polyeval",
21452144
":__support_fputil_rounding_mode",
2145+
":__support_libc_errno",
21462146
":__support_macros_optimization",
21472147
":__support_math_expf16_utils",
2148-
":llvm_libc_macros_float16_macros"
2148+
":llvm_libc_macros_float16_macros",
21492149
],
21502150
)
21512151

21522152
libc_support_library(
21532153
name = "__support_math_frexpf128",
21542154
hdrs = ["src/__support/math/frexpf128.h"],
21552155
deps = [
2156-
":__support_macros_properties_types",
21572156
":__support_fputil_manipulation_functions",
2157+
":__support_macros_properties_types",
21582158
],
21592159
)
21602160

21612161
libc_support_library(
21622162
name = "__support_math_frexpf16",
21632163
hdrs = ["src/__support/math/frexpf16.h"],
21642164
deps = [
2165+
":__support_fputil_manipulation_functions",
21652166
":__support_macros_config",
21662167
":__support_macros_properties_types",
2167-
":__support_fputil_manipulation_functions",
2168-
":llvm_libc_macros_float16_macros"
2168+
":llvm_libc_macros_float16_macros",
21692169
],
21702170
)
21712171

@@ -2183,17 +2183,17 @@ libc_support_library(
21832183
deps = [
21842184
":__support_fputil_manipulation_functions",
21852185
":__support_macros_properties_types",
2186-
":llvm_libc_types_float128"
2186+
":llvm_libc_types_float128",
21872187
],
21882188
)
21892189

21902190
libc_support_library(
21912191
name = "__support_math_ldexpf16",
21922192
hdrs = ["src/__support/math/ldexpf16.h"],
21932193
deps = [
2194-
":__support_macros_properties_types",
21952194
":__support_fputil_manipulation_functions",
2196-
":llvm_libc_macros_float16_macros"
2195+
":__support_macros_properties_types",
2196+
":llvm_libc_macros_float16_macros",
21972197
],
21982198
)
21992199

@@ -2217,8 +2217,8 @@ libc_support_library(
22172217
name = "__support_math_exp_utils",
22182218
hdrs = ["src/__support/math/exp_utils.h"],
22192219
deps = [
2220-
":__support_cpp_optional",
22212220
":__support_cpp_bit",
2221+
":__support_cpp_optional",
22222222
":__support_fputil_fp_bits",
22232223
],
22242224
)
@@ -2227,10 +2227,9 @@ libc_support_library(
22272227
name = "__support_math_exp",
22282228
hdrs = ["src/__support/math/exp.h"],
22292229
deps = [
2230-
":__support_math_exp_constants",
2231-
":__support_math_exp_utils",
22322230
":__support_cpp_bit",
22332231
":__support_cpp_optional",
2232+
":__support_fputil_double_double",
22342233
":__support_fputil_dyadic_float",
22352234
":__support_fputil_fenv_impl",
22362235
":__support_fputil_fp_bits",
@@ -2239,9 +2238,10 @@ libc_support_library(
22392238
":__support_fputil_polyeval",
22402239
":__support_fputil_rounding_mode",
22412240
":__support_fputil_triple_double",
2242-
":__support_fputil_double_double",
22432241
":__support_integer_literals",
22442242
":__support_macros_optimization",
2243+
":__support_math_exp_constants",
2244+
":__support_math_exp_utils",
22452245
],
22462246
)
22472247

@@ -3296,13 +3296,13 @@ libc_math_function(
32963296
name = "frexpf128",
32973297
additional_deps = [
32983298
":__support_math_frexpf128",
3299-
]
3299+
],
33003300
)
33013301

33023302
libc_math_function(
33033303
name = "frexpf16",
33043304
additional_deps = [
3305-
":__support_math_frexpf16"
3305+
":__support_math_frexpf16",
33063306
],
33073307
)
33083308

@@ -3389,7 +3389,7 @@ libc_math_function(
33893389
name = "ldexpf",
33903390
additional_deps = [
33913391
":__support_math_ldexpf",
3392-
]
3392+
],
33933393
)
33943394

33953395
libc_math_function(name = "ldexpl")
@@ -4001,6 +4001,17 @@ libc_math_function(
40014001
],
40024002
)
40034003

4004+
libc_math_function(
4005+
name = "tanpif",
4006+
additional_deps = [
4007+
":sincosf_utils",
4008+
":hdr_fenv_macros",
4009+
":__support_macros_config",
4010+
":__support_macros_optimization",
4011+
":__support_fputil_multiply_add",
4012+
],
4013+
)
4014+
40044015
libc_math_function(
40054016
name = "tanpif16",
40064017
additional_deps = [

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,14 @@ math_mpfr_test(
530530
],
531531
)
532532

533+
math_mpfr_test(
534+
name = "tanpif",
535+
hdrs = ["sdcomp26094.h"],
536+
deps = [
537+
"//libc:__support_cpp_array",
538+
],
539+
)
540+
533541
math_mpfr_test(
534542
name = "sqrt",
535543
hdrs = ["SqrtTest.h"],

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1518,6 +1518,8 @@ math_test(name = "tanf")
15181518

15191519
math_test(name = "tanhf")
15201520

1521+
math_test(name = "tanpif")
1522+
15211523
math_test(
15221524
name = "totalorder",
15231525
hdrs = ["TotalOrderTest.h"],

0 commit comments

Comments
 (0)