Skip to content

Commit 7fd9fba

Browse files
lntuemahesh-attarde
authored andcommitted
[libc][bazel] Add hypotf16 bazel targets. (llvm#149761)
1 parent 8d3e591 commit 7fd9fba

File tree

4 files changed

+22
-1
lines changed

4 files changed

+22
-1
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3515,6 +3515,14 @@ libc_math_function(
35153515
],
35163516
)
35173517

3518+
libc_math_function(
3519+
name = "hypotf16",
3520+
additional_deps = [
3521+
":__support_fputil_multiply_add",
3522+
":__support_fputil_sqrt",
3523+
],
3524+
)
3525+
35183526
libc_math_function(name = "ilogb")
35193527

35203528
libc_math_function(name = "ilogbf")

utils/bazel/llvm-project-overlay/libc/test/libc_test_rules.bzl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ def libc_test(
6262
name = name,
6363
local_defines = local_defines + LIBC_CONFIGURE_OPTIONS,
6464
deps = deps,
65-
copts = copts + libc_common_copts(),
65+
# For complex floating point literals.
66+
copts = copts + libc_common_copts() + ["-fext-numeric-literals"],
6667
linkstatic = 1,
6768
**kwargs
6869
)

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,13 @@ math_mpfr_test(
286286
],
287287
)
288288

289+
math_mpfr_test(
290+
name = "hypotf16",
291+
hdrs = [
292+
"HypotTest.h",
293+
],
294+
)
295+
289296
math_mpfr_test(
290297
name = "llrint",
291298
hdrs = ["RoundToIntegerTest.h"],

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -898,6 +898,11 @@ math_test(
898898
hdrs = ["HypotTest.h"],
899899
)
900900

901+
math_test(
902+
name = "hypotf16",
903+
hdrs = ["HypotTest.h"],
904+
)
905+
901906
math_test(
902907
name = "ilogb",
903908
hdrs = ["ILogbTest.h"],

0 commit comments

Comments
 (0)