[X86] lowerV4F64Shuffle - prefer lowerShuffleAsDecomposedShuffleMerge if we're blendi...
[llvm-project.git] / libc / test / src / math / exhaustive / CMakeLists.txt
blobb1927dbc19a3bdcfa03182e0cbc22ef9273f322f
1 add_libc_exhaustive_testsuite(libc_math_exhaustive_tests)
3 add_header_library(
4   exhaustive_test
5   HDRS
6     exhaustive_test.h
7   DEPENDS
8     libc.src.__support.CPP.type_traits
9     libc.src.__support.FPUtil.fp_bits
10     libc.src.__support.macros.properties.types
13 add_fp_unittest(
14   sqrtf_test
15   NO_RUN_POSTBUILD
16   NEED_MPFR
17   SUITE
18     libc_math_exhaustive_tests
19   SRCS
20     sqrtf_test.cpp
21   DEPENDS
22     .exhaustive_test
23     libc.src.math.sqrtf
24     libc.src.__support.FPUtil.fp_bits
25   LINK_LIBRARIES
26     -lpthread
29 add_fp_unittest(
30   sinf_test
31   NO_RUN_POSTBUILD
32   NEED_MPFR
33   SUITE
34     libc_math_exhaustive_tests
35   SRCS
36     sinf_test.cpp
37   DEPENDS
38     .exhaustive_test
39     libc.src.math.sinf
40     libc.src.__support.FPUtil.fp_bits
41   LINK_LIBRARIES
42     -lpthread
45 add_fp_unittest(
46   sinpif_test
47   NO_RUN_POSTBUILD
48   NEED_MPFR
49   SUITE
50     libc_math_exhaustive_tests
51   SRCS
52     sinpif_test.cpp
53   DEPENDS
54     .exhaustive_test
55     libc.src.math.sinpif
56     libc.src.__support.FPUtil.fp_bits
57   LINK_LIBRARIES
58     -lpthread
61 add_fp_unittest(
62   cosf_test
63   NO_RUN_POSTBUILD
64   NEED_MPFR
65   SUITE
66     libc_math_exhaustive_tests
67   SRCS
68     cosf_test.cpp
69   DEPENDS
70     .exhaustive_test
71     libc.src.math.cosf
72     libc.src.__support.FPUtil.fp_bits
73   LINK_LIBRARIES
74     -lpthread
77 add_fp_unittest(
78   cospif_test
79   NO_RUN_POSTBUILD
80   NEED_MPFR
81   SUITE
82     libc_math_exhaustive_tests
83   SRCS
84     cospif_test.cpp
85   DEPENDS
86     .exhaustive_test
87     libc.src.math.cospif
88     libc.src.__support.FPUtil.fp_bits
89   LINK_LIBRARIES
90     -lpthread
93 add_fp_unittest(
94   sincosf_test
95   NO_RUN_POSTBUILD
96   NEED_MPFR
97   SUITE
98     libc_math_exhaustive_tests
99   SRCS
100     sincosf_test.cpp
101   DEPENDS
102     .exhaustive_test
103     libc.src.math.sincosf
104     libc.src.__support.FPUtil.fp_bits
105   LINK_LIBRARIES
106     -lpthread
109 add_fp_unittest(
110   tanf_test
111   NO_RUN_POSTBUILD
112   NEED_MPFR
113   SUITE
114     libc_math_exhaustive_tests
115   SRCS
116     tanf_test.cpp
117   DEPENDS
118     .exhaustive_test
119     libc.src.math.tanf
120     libc.src.__support.FPUtil.fp_bits
121   LINK_LIBRARIES
122     -lpthread
125 add_fp_unittest(
126   erff_test
127   NO_RUN_POSTBUILD
128   NEED_MPFR
129   SUITE
130     libc_math_exhaustive_tests
131   SRCS
132     erff_test.cpp
133   DEPENDS
134     .exhaustive_test
135     libc.src.math.erff
136     libc.src.__support.FPUtil.fp_bits
137   LINK_LIBRARIES
138     -lpthread
141 add_fp_unittest(
142   expf_test
143   NO_RUN_POSTBUILD
144   NEED_MPFR
145   SUITE
146     libc_math_exhaustive_tests
147   SRCS
148     expf_test.cpp
149   DEPENDS
150     .exhaustive_test
151     libc.src.math.expf
152     libc.src.__support.FPUtil.fp_bits
153   LINK_LIBRARIES
154     -lpthread
157 add_fp_unittest(
158   exp2f_test
159   NO_RUN_POSTBUILD
160   NEED_MPFR
161   SUITE
162     libc_math_exhaustive_tests
163   SRCS
164     exp2f_test.cpp
165   DEPENDS
166     .exhaustive_test
167     libc.src.math.exp2f
168     libc.src.__support.FPUtil.fp_bits
169   LINK_LIBRARIES
170     -lpthread
173 add_fp_unittest(
174   exp2m1f_test
175   NO_RUN_POSTBUILD
176   NEED_MPFR
177   SUITE
178     libc_math_exhaustive_tests
179   SRCS
180     exp2m1f_test.cpp
181   DEPENDS
182     .exhaustive_test
183     libc.src.math.exp2m1f
184   LINK_LIBRARIES
185     -lpthread
188 add_fp_unittest(
189   exp10f_test
190   NO_RUN_POSTBUILD
191   NEED_MPFR
192   SUITE
193     libc_math_exhaustive_tests
194   SRCS
195     exp10f_test.cpp
196   DEPENDS
197     .exhaustive_test
198     libc.src.math.exp10f
199     libc.src.__support.FPUtil.fp_bits
200   LINK_LIBRARIES
201     -lpthread
204 add_fp_unittest(
205   exp10m1f_test
206   NO_RUN_POSTBUILD
207   NEED_MPFR
208   SUITE
209     libc_math_exhaustive_tests
210   SRCS
211     exp10m1f_test.cpp
212   DEPENDS
213     .exhaustive_test
214     libc.src.math.exp10m1f
215   LINK_LIBRARIES
216     -lpthread
219 add_fp_unittest(
220   expm1f_test
221   NO_RUN_POSTBUILD
222   NEED_MPFR
223   SUITE
224     libc_math_exhaustive_tests
225   SRCS
226     expm1f_test.cpp
227   DEPENDS
228     .exhaustive_test
229     libc.src.math.expm1f
230     libc.src.__support.FPUtil.fp_bits
231   LINK_LIBRARIES
232     -lpthread
235 add_fp_unittest(
236   logf_test
237   NO_RUN_POSTBUILD
238   NEED_MPFR
239   SUITE
240     libc_math_exhaustive_tests
241   SRCS
242     logf_test.cpp
243   DEPENDS
244     .exhaustive_test
245     libc.src.math.logf
246     libc.src.__support.FPUtil.fp_bits
247   LINK_LIBRARIES
248     -lpthread
251 add_fp_unittest(
252   log10f_test
253   NO_RUN_POSTBUILD
254   NEED_MPFR
255   SUITE
256     libc_math_exhaustive_tests
257   SRCS
258     log10f_test.cpp
259   DEPENDS
260     .exhaustive_test
261     libc.src.math.log10f
262     libc.src.__support.FPUtil.fp_bits
263   LINK_LIBRARIES
264     -lpthread
267 add_fp_unittest(
268   log1pf_test
269   NO_RUN_POSTBUILD
270   NEED_MPFR
271   SUITE
272     libc_math_exhaustive_tests
273   SRCS
274     log1pf_test.cpp
275   DEPENDS
276     .exhaustive_test
277     libc.src.math.log1pf
278     libc.src.__support.FPUtil.fp_bits
279   LINK_LIBRARIES
280     -lpthread
283 add_fp_unittest(
284   log2f_test
285   NO_RUN_POSTBUILD
286   NEED_MPFR
287   SUITE
288     libc_math_exhaustive_tests
289   SRCS
290     log2f_test.cpp
291   DEPENDS
292     .exhaustive_test
293     libc.src.math.log2f
294     libc.src.__support.FPUtil.fp_bits
295   LINK_LIBRARIES
296     -lpthread
299 add_fp_unittest(
300   hypotf_test
301   NO_RUN_POSTBUILD
302   NEED_MPFR
303   SUITE
304     libc_math_exhaustive_tests
305   SRCS
306     hypotf_test.cpp
307   COMPILE_OPTIONS
308     ${libc_opt_high_flag}
309   DEPENDS
310     .exhaustive_test
311     libc.src.math.hypotf
312     libc.src.__support.FPUtil.fp_bits
313   LINK_LIBRARIES
314     -lpthread
317 add_fp_unittest(
318   fmod_generic_impl_test
319   NO_RUN_POSTBUILD
320   NEED_MPFR
321   SUITE
322     libc_math_exhaustive_tests
323   SRCS
324     fmod_generic_impl_test.cpp
325   DEPENDS
326     libc.src.__support.FPUtil.fp_bits
327     libc.src.__support.FPUtil.manipulation_functions
328     libc.src.__support.FPUtil.generic.fmod
331 add_fp_unittest(
332   fmodf16_test
333   NO_RUN_POSTBUILD
334   NEED_MPFR
335   SUITE
336     libc_math_exhaustive_tests
337   SRCS
338     fmodf16_test.cpp
339   DEPENDS
340     .exhaustive_test
341     libc.src.math.fmodf16
342   LINK_LIBRARIES
343     -lpthread
346 add_fp_unittest(
347   coshf_test
348   NO_RUN_POSTBUILD
349   NEED_MPFR
350   SUITE
351     libc_math_exhaustive_tests
352   SRCS
353     coshf_test.cpp
354   DEPENDS
355     .exhaustive_test
356     libc.src.math.coshf
357     libc.src.__support.FPUtil.fp_bits
358   LINK_LIBRARIES
359     -lpthread
362 add_fp_unittest(
363   sinhf_test
364   NO_RUN_POSTBUILD
365   NEED_MPFR
366   SUITE
367     libc_math_exhaustive_tests
368   SRCS
369     sinhf_test.cpp
370   DEPENDS
371     .exhaustive_test
372     libc.src.math.sinhf
373     libc.src.__support.FPUtil.fp_bits
374   LINK_LIBRARIES
375     -lpthread
378 add_fp_unittest(
379   tanhf_test
380   NO_RUN_POSTBUILD
381   NEED_MPFR
382   SUITE
383     libc_math_exhaustive_tests
384   SRCS
385     tanhf_test.cpp
386   DEPENDS
387     .exhaustive_test
388     libc.src.math.tanhf
389     libc.src.__support.FPUtil.fp_bits
390   LINK_LIBRARIES
391     -lpthread
394 add_fp_unittest(
395   acoshf_test
396   NO_RUN_POSTBUILD
397   NEED_MPFR
398   SUITE
399     libc_math_exhaustive_tests
400   SRCS
401     acoshf_test.cpp
402   DEPENDS
403     .exhaustive_test
404     libc.src.math.acoshf
405     libc.src.__support.FPUtil.fp_bits
406   LINK_LIBRARIES
407     -lpthread
410 add_fp_unittest(
411   asinhf_test
412   NO_RUN_POSTBUILD
413   NEED_MPFR
414   SUITE
415     libc_math_exhaustive_tests
416   SRCS
417     asinhf_test.cpp
418   DEPENDS
419     .exhaustive_test
420     libc.src.math.asinhf
421     libc.src.__support.FPUtil.fp_bits
422   LINK_LIBRARIES
423     -lpthread
426 add_fp_unittest(
427   atanhf_test
428   NO_RUN_POSTBUILD
429   NEED_MPFR
430   SUITE
431     libc_math_exhaustive_tests
432   SRCS
433     atanhf_test.cpp
434   DEPENDS
435     .exhaustive_test
436     libc.src.math.atanhf
437     libc.src.__support.FPUtil.fp_bits
438   LINK_LIBRARIES
439     -lpthread
442 add_fp_unittest(
443   atanf_test
444   NO_RUN_POSTBUILD
445   NEED_MPFR
446   SUITE
447     libc_math_exhaustive_tests
448   SRCS
449     atanf_test.cpp
450   DEPENDS
451     .exhaustive_test
452     libc.src.math.atanf
453     libc.src.__support.FPUtil.fp_bits
454   LINK_LIBRARIES
455     -lpthread
458 add_fp_unittest(
459   asinf_test
460   NO_RUN_POSTBUILD
461   NEED_MPFR
462   SUITE
463     libc_math_exhaustive_tests
464   SRCS
465     asinf_test.cpp
466   DEPENDS
467     .exhaustive_test
468     libc.src.math.asinf
469     libc.src.__support.FPUtil.fp_bits
470   LINK_LIBRARIES
471     -lpthread
474 add_fp_unittest(
475   acosf_test
476   NO_RUN_POSTBUILD
477   NEED_MPFR
478   SUITE
479     libc_math_exhaustive_tests
480   SRCS
481     acosf_test.cpp
482   DEPENDS
483     .exhaustive_test
484     libc.src.math.acosf
485     libc.src.__support.FPUtil.fp_bits
486   LINK_LIBRARIES
487     -lpthread
490 add_fp_unittest(
491   f16sqrtf_test
492   NO_RUN_POSTBUILD
493   NEED_MPFR
494   SUITE
495     libc_math_exhaustive_tests
496   SRCS
497     f16sqrtf_test.cpp
498   DEPENDS
499     .exhaustive_test
500     libc.src.math.f16sqrtf
501   LINK_LIBRARIES
502     -lpthread
505 add_fp_unittest(
506   cbrtf_test
507   NO_RUN_POSTBUILD
508   NEED_MPFR
509   SUITE
510     libc_math_exhaustive_tests
511   SRCS
512     cbrtf_test.cpp
513   DEPENDS
514     .exhaustive_test
515     libc.src.math.cbrtf
516     libc.src.__support.FPUtil.fp_bits
517   LINK_LIBRARIES
518     -lpthread