Skip to content

Commit 1df59b3

Browse files
[libc][bazel] Add targets for float16 math (llvm#129965)
Add targets for some float16 math functions that were missing them, but mostly add targets for the smoke tests.
1 parent 7a44ff1 commit 1df59b3

File tree

2 files changed

+490
-32
lines changed

2 files changed

+490
-32
lines changed

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

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2294,6 +2294,26 @@ libc_math_function(name = "canonicalizef128")
22942294

22952295
libc_math_function(name = "canonicalizef16")
22962296

2297+
libc_math_function(name = "iscanonical")
2298+
2299+
libc_math_function(name = "iscanonicalf")
2300+
2301+
libc_math_function(name = "iscanonicall")
2302+
2303+
libc_math_function(name = "iscanonicalf128")
2304+
2305+
libc_math_function(name = "iscanonicalf16")
2306+
2307+
libc_math_function(name = "issignaling")
2308+
2309+
libc_math_function(name = "issignalingf")
2310+
2311+
libc_math_function(name = "issignalingl")
2312+
2313+
libc_math_function(name = "issignalingf128")
2314+
2315+
libc_math_function(name = "issignalingf16")
2316+
22972317
libc_math_function(
22982318
name = "cbrt",
22992319
additional_deps = [
@@ -2352,6 +2372,15 @@ libc_math_function(
23522372
],
23532373
)
23542374

2375+
libc_math_function(
2376+
name = "cosf16",
2377+
additional_deps = [
2378+
":__support_fputil_multiply_add",
2379+
":__support_macros_optimization",
2380+
":sincosf16_utils",
2381+
],
2382+
)
2383+
23552384
libc_math_function(
23562385
name = "coshf",
23572386
additional_deps = [
@@ -3445,6 +3474,15 @@ libc_math_function(
34453474
],
34463475
)
34473476

3477+
libc_math_function(
3478+
name = "sinf16",
3479+
additional_deps = [
3480+
":__support_fputil_nearest_integer",
3481+
":__support_fputil_polyeval",
3482+
":sincosf16_utils",
3483+
],
3484+
)
3485+
34483486
libc_math_function(
34493487
name = "sincos",
34503488
additional_deps = [
@@ -3565,6 +3603,15 @@ libc_math_function(
35653603
],
35663604
)
35673605

3606+
libc_math_function(
3607+
name = "tanf16",
3608+
additional_deps = [
3609+
":__support_fputil_nearest_integer",
3610+
":__support_fputil_polyeval",
3611+
":sincosf16_utils",
3612+
],
3613+
)
3614+
35683615
libc_math_function(
35693616
name = "tanhf",
35703617
additional_deps = [
@@ -3587,6 +3634,17 @@ libc_math_function(
35873634
],
35883635
)
35893636

3637+
libc_math_function(
3638+
name = "tanpif16",
3639+
additional_deps = [
3640+
":sincosf16_utils",
3641+
":hdr_errno_macros",
3642+
":hdr_fenv_macros",
3643+
":__support_fputil_cast",
3644+
":__support_fputil_multiply_add",
3645+
],
3646+
)
3647+
35903648
libc_math_function(name = "totalorder")
35913649

35923650
libc_math_function(name = "totalorderf")

0 commit comments

Comments
 (0)