Debian Codegraph @

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

raw
1 # This file is licensed under the Apache License v2.0 with LLVM Exceptions.
2 # See https://llvm.org/LICENSE.txt for license information.
3 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
4
5 # Smoke tests for LLVM libc math.h functions.
6
7 load("//libc:libc_build_rules.bzl", "libc_support_library")
8 load("//libc/test/src/math:libc_math_test_rules.bzl", "math_test")
9
10 package(default_visibility = ["//visibility:public"])
11
12 licenses(["notice"])
13
14 math_test(
15 name = "fabsf128",
16 hdrs = ["FAbsTest.h"],
17 )
18
19 math_test(
20 name = "ceilf128",
21 hdrs = ["CeilTest.h"],
22 )
23
24 math_test(
25 name = "cospif",
26 )
27
28 math_test(
29 name = "floorf128",
30 hdrs = ["FloorTest.h"],
31 )
32
33 math_test(
34 name = "truncf128",
35 hdrs = ["TruncTest.h"],
36 )
37
38 math_test(
39 name = "roundf128",
40 hdrs = ["RoundTest.h"],
41 )
42
43 math_test(
44 name = "frexpf128",
45 hdrs = ["FrexpTest.h"],
46 )
47
48 math_test(
49 name = "logbf128",
50 hdrs = ["LogbTest.h"],
51 )
52
53 math_test(
54 name = "modff128",
55 hdrs = ["ModfTest.h"],
56 )
57
58 math_test(
59 name = "fminf128",
60 hdrs = ["FMinTest.h"],
61 )
62
63 math_test(
64 name = "fmaxf128",
65 hdrs = ["FMaxTest.h"],
66 )
67
68 math_test(
69 name = "sqrtf128",
70 hdrs = ["SqrtTest.h"],
71 deps = ["//libc:__support_cpp_bit"],
72 )
73
74 math_test(
75 name = "copysignf128",
76 hdrs = ["CopySignTest.h"],
77 )
78
79 math_test(
80 name = "ilogbf128",
81 hdrs = ["ILogbTest.h"],
82 deps = ["//libc:__support_cpp_limits"],
83 )
84
85 math_test(
86 name = "fdimf128",
87 hdrs = ["FDimTest.h"],
88 )
89
90 libc_support_library(
91 name = "ldexp_test_template",
92 hdrs = ["LdExpTest.h"],
93 deps = [
94 "//libc:__support_cpp_limits",
95 "//libc:__support_fputil_fp_bits",
96 "//libc:__support_fputil_normal_float",
97 "//libc:hdr_math_macros",
98 "//libc/test/UnitTest:LibcUnitTest",
99 "//libc/test/UnitTest:fp_test_helpers",
100 ],
101 )
102
103 math_test(
104 name = "ldexpf128",
105 hdrs = ["LdExpTest.h"],
106 deps = ["//libc:__support_cpp_limits"],
107 )
108
109 math_test(
110 name = "rintf128",
111 hdrs = ["RIntTest.h"],
112 deps = ["//libc:hdr_fenv_macros"],
113 )
114
115 math_test(
116 name = "lrintf128",
117 hdrs = ["RoundToIntegerTest.h"],
118 )
119
120 math_test(
121 name = "llrintf128",
122 hdrs = ["RoundToIntegerTest.h"],
123 )
124
125 math_test(
126 name = "lroundf128",
127 hdrs = ["RoundToIntegerTest.h"],
128 )
129
130 math_test(
131 name = "llroundf128",
132 hdrs = ["RoundToIntegerTest.h"],
133 )
134
135 libc_support_library(
136 name = "nextafter_test_template",
137 hdrs = ["NextAfterTest.h"],
138 deps = [
139 "//libc:__support_cpp_array",
140 "//libc:__support_cpp_bit",
141 "//libc:__support_cpp_type_traits",
142 "//libc:__support_fputil_basic_operations",
143 "//libc:__support_fputil_fenv_impl",
144 "//libc:__support_fputil_fp_bits",
145 "//libc:hdr_fenv_macros",
146 "//libc:hdr_math_macros",
147 "//libc/test/UnitTest:LibcUnitTest",
148 "//libc/test/UnitTest:fp_test_helpers",
149 ],
150 )
151
152 math_test(
153 name = "nextafterf128",
154 deps = [":nextafter_test_template"],
155 )