[flang] Accept polymorphic component element in storage_size
[llvm-project.git] / libc / test / src / math / exhaustive / CMakeLists.txt
blob107e7915650e3e6566f63968d70aec2f0861ce01
1 add_libc_exhaustive_testsuite(libc_math_exhaustive_tests)
3 add_object_library(
4   exhaustive_test
5   HDRS
6     exhaustive_test.h
7   SRCS
8     exhaustive_test.cpp
11 add_fp_unittest(
12   sqrtf_test
13   NEED_MPFR
14   SUITE
15     libc_math_exhaustive_tests
16   SRCS
17     sqrtf_test.cpp
18   DEPENDS
19     libc.include.math
20     libc.src.math.sqrtf
21     libc.src.__support.FPUtil.fp_bits
24 add_fp_unittest(
25   sinf_test
26   NO_RUN_POSTBUILD
27   NEED_MPFR
28   SUITE
29     libc_math_exhaustive_tests
30   SRCS
31     sinf_test.cpp
32   DEPENDS
33     .exhaustive_test
34     libc.include.math
35     libc.src.math.sinf
36     libc.src.__support.FPUtil.fp_bits
37   LINK_LIBRARIES
38     -lpthread
41 add_fp_unittest(
42   cosf_test
43   NO_RUN_POSTBUILD
44   NEED_MPFR
45   SUITE
46     libc_math_exhaustive_tests
47   SRCS
48     cosf_test.cpp
49   DEPENDS
50     .exhaustive_test
51     libc.include.math
52     libc.src.math.cosf
53     libc.src.__support.FPUtil.fp_bits
54   LINK_LIBRARIES
55     -lpthread
58 add_fp_unittest(
59   sincosf_test
60   NO_RUN_POSTBUILD
61   NEED_MPFR
62   SUITE
63     libc_math_exhaustive_tests
64   SRCS
65     sincosf_test.cpp
66   DEPENDS
67     .exhaustive_test
68     libc.include.math
69     libc.src.math.sincosf
70     libc.src.__support.FPUtil.fp_bits
71   LINK_LIBRARIES
72     -lpthread
75 add_fp_unittest(
76   tanf_test
77   NO_RUN_POSTBUILD
78   NEED_MPFR
79   SUITE
80     libc_math_exhaustive_tests
81   SRCS
82     tanf_test.cpp
83   DEPENDS
84     .exhaustive_test
85     libc.include.math
86     libc.src.math.tanf
87     libc.src.__support.FPUtil.fp_bits
88   LINK_LIBRARIES
89     -lpthread
92 add_fp_unittest(
93   expf_test
94   NO_RUN_POSTBUILD
95   NEED_MPFR
96   SUITE
97     libc_math_exhaustive_tests
98   SRCS
99     expf_test.cpp
100   DEPENDS
101     .exhaustive_test
102     libc.include.math
103     libc.src.math.expf
104     libc.src.__support.FPUtil.fp_bits
105   LINK_LIBRARIES
106     -lpthread
109 add_fp_unittest(
110   exp2f_test
111   NO_RUN_POSTBUILD
112   NEED_MPFR
113   SUITE
114     libc_math_exhaustive_tests
115   SRCS
116     exp2f_test.cpp
117   DEPENDS
118     .exhaustive_test
119     libc.include.math
120     libc.src.math.exp2f
121     libc.src.__support.FPUtil.fp_bits
122   LINK_LIBRARIES
123     -lpthread
126 add_fp_unittest(
127   exp10f_test
128   NO_RUN_POSTBUILD
129   NEED_MPFR
130   SUITE
131     libc_math_exhaustive_tests
132   SRCS
133     exp10f_test.cpp
134   DEPENDS
135     .exhaustive_test
136     libc.include.math
137     libc.src.math.exp10f
138     libc.src.__support.FPUtil.fp_bits
139   LINK_LIBRARIES
140     -lpthread
143 add_fp_unittest(
144   expm1f_test
145   NO_RUN_POSTBUILD
146   NEED_MPFR
147   SUITE
148     libc_math_exhaustive_tests
149   SRCS
150     expm1f_test.cpp
151   DEPENDS
152     .exhaustive_test
153     libc.include.math
154     libc.src.math.expm1f
155     libc.src.__support.FPUtil.fp_bits
156   LINK_LIBRARIES
157     -lpthread
160 add_fp_unittest(
161   logf_test
162   NO_RUN_POSTBUILD
163   NEED_MPFR
164   SUITE
165     libc_math_exhaustive_tests
166   SRCS
167     logf_test.cpp
168   DEPENDS
169     .exhaustive_test
170     libc.include.math
171     libc.src.math.logf
172     libc.src.__support.FPUtil.fp_bits
173   LINK_LIBRARIES
174     -lpthread
177 add_fp_unittest(
178   log10f_test
179   NO_RUN_POSTBUILD
180   NEED_MPFR
181   SUITE
182     libc_math_exhaustive_tests
183   SRCS
184     log10f_test.cpp
185   DEPENDS
186     .exhaustive_test
187     libc.include.math
188     libc.src.math.log10f
189     libc.src.__support.FPUtil.fp_bits
190   LINK_LIBRARIES
191     -lpthread
194 add_fp_unittest(
195   log1pf_test
196   NO_RUN_POSTBUILD
197   NEED_MPFR
198   SUITE
199     libc_math_exhaustive_tests
200   SRCS
201     log1pf_test.cpp
202   DEPENDS
203     .exhaustive_test
204     libc.include.math
205     libc.src.math.log1pf
206     libc.src.__support.FPUtil.fp_bits
207   LINK_LIBRARIES
208     -lpthread
211 add_fp_unittest(
212   log2f_test
213   NO_RUN_POSTBUILD
214   NEED_MPFR
215   SUITE
216     libc_math_exhaustive_tests
217   SRCS
218     log2f_test.cpp
219   DEPENDS
220     .exhaustive_test
221     libc.include.math
222     libc.src.math.log2f
223     libc.src.__support.FPUtil.fp_bits
224   LINK_LIBRARIES
225     -lpthread
228 add_fp_unittest(
229   hypotf_test
230   NO_RUN_POSTBUILD
231   NEED_MPFR
232   SUITE
233     libc_math_exhaustive_tests
234   SRCS
235     hypotf_test.cpp
236   COMPILE_OPTIONS
237     -O3
238   DEPENDS
239     .exhaustive_test
240     libc.include.math
241     libc.src.math.hypotf
242     libc.src.__support.FPUtil.fp_bits
243   LINK_LIBRARIES
244     -lpthread
247 add_fp_unittest(
248   fmod_generic_impl_test
249   NO_RUN_POSTBUILD
250   NEED_MPFR
251   SUITE
252     libc_math_exhaustive_tests
253   SRCS
254     fmod_generic_impl_test.cpp
255   DEPENDS
256     libc.src.__support.FPUtil.fp_bits
257     libc.src.__support.FPUtil.generic.fmod
260 add_fp_unittest(
261   coshf_test
262   NO_RUN_POSTBUILD
263   NEED_MPFR
264   SUITE
265     libc_math_exhaustive_tests
266   SRCS
267     coshf_test.cpp
268   DEPENDS
269     .exhaustive_test
270     libc.include.math
271     libc.src.math.coshf
272     libc.src.__support.FPUtil.fp_bits
273   LINK_LIBRARIES
274     -lpthread
277 add_fp_unittest(
278   sinhf_test
279   NO_RUN_POSTBUILD
280   NEED_MPFR
281   SUITE
282     libc_math_exhaustive_tests
283   SRCS
284     sinhf_test.cpp
285   DEPENDS
286     .exhaustive_test
287     libc.include.math
288     libc.src.math.sinhf
289     libc.src.__support.FPUtil.fp_bits
290   LINK_LIBRARIES
291     -lpthread
294 add_fp_unittest(
295   tanhf_test
296   NO_RUN_POSTBUILD
297   NEED_MPFR
298   SUITE
299     libc_math_exhaustive_tests
300   SRCS
301     tanhf_test.cpp
302   DEPENDS
303     .exhaustive_test
304     libc.include.math
305     libc.src.math.tanhf
306     libc.src.__support.FPUtil.fp_bits
307   LINK_LIBRARIES
308     -lpthread
311 add_fp_unittest(
312   acoshf_test
313   NO_RUN_POSTBUILD
314   NEED_MPFR
315   SUITE
316     libc_math_exhaustive_tests
317   SRCS
318     acoshf_test.cpp
319   DEPENDS
320     .exhaustive_test
321     libc.include.math
322     libc.src.math.acoshf
323     libc.src.__support.FPUtil.fp_bits
324   LINK_LIBRARIES
325     -lpthread
328 add_fp_unittest(
329   asinhf_test
330   NO_RUN_POSTBUILD
331   NEED_MPFR
332   SUITE
333     libc_math_exhaustive_tests
334   SRCS
335     asinhf_test.cpp
336   DEPENDS
337     .exhaustive_test
338     libc.include.math
339     libc.src.math.asinhf
340     libc.src.__support.FPUtil.fp_bits
341   LINK_LIBRARIES
342     -lpthread
345 add_fp_unittest(
346   atanhf_test
347   NO_RUN_POSTBUILD
348   NEED_MPFR
349   SUITE
350     libc_math_exhaustive_tests
351   SRCS
352     atanhf_test.cpp
353   DEPENDS
354     .exhaustive_test
355     libc.include.math
356     libc.src.math.atanhf
357     libc.src.__support.FPUtil.fp_bits
358   LINK_LIBRARIES
359     -lpthread
362 add_fp_unittest(
363   atanf_test
364   NO_RUN_POSTBUILD
365   NEED_MPFR
366   SUITE
367     libc_math_exhaustive_tests
368   SRCS
369     atanf_test.cpp
370   DEPENDS
371     .exhaustive_test
372     libc.include.math
373     libc.src.math.atanf
374     libc.src.__support.FPUtil.fp_bits
375   LINK_LIBRARIES
376     -lpthread
379 add_fp_unittest(
380   asinf_test
381   NO_RUN_POSTBUILD
382   NEED_MPFR
383   SUITE
384     libc_math_exhaustive_tests
385   SRCS
386     asinf_test.cpp
387   DEPENDS
388     .exhaustive_test
389     libc.include.math
390     libc.src.math.asinf
391     libc.src.__support.FPUtil.fp_bits
392   LINK_LIBRARIES
393     -lpthread
396 add_fp_unittest(
397   acosf_test
398   NO_RUN_POSTBUILD
399   NEED_MPFR
400   SUITE
401     libc_math_exhaustive_tests
402   SRCS
403     acosf_test.cpp
404   DEPENDS
405     .exhaustive_test
406     libc.include.math
407     libc.src.math.acosf
408     libc.src.__support.FPUtil.fp_bits
409   LINK_LIBRARIES
410     -lpthread