718 lines · plain
1add_libc_exhaustive_testsuite(libc_math_exhaustive_tests)2 3add_header_library(4 exhaustive_test5 HDRS6 exhaustive_test.h7 DEPENDS8 libc.src.__support.CPP.type_traits9 libc.src.__support.FPUtil.fp_bits10 libc.src.__support.macros.properties.types11)12 13add_fp_unittest(14 sqrtf_test15 NO_RUN_POSTBUILD16 NEED_MPFR17 SUITE18 libc_math_exhaustive_tests19 SRCS20 sqrtf_test.cpp21 DEPENDS22 .exhaustive_test23 libc.src.math.sqrtf24 libc.src.__support.FPUtil.fp_bits25 LINK_LIBRARIES26 -lpthread27)28 29add_fp_unittest(30 rsqrtf_test31 NO_RUN_POSTBUILD32 NEED_MPFR33 SUITE34 libc_math_exhaustive_tests35 SRCS36 rsqrtf_test.cpp37 DEPENDS38 .exhaustive_test39 libc.src.math.rsqrtf40 LINK_LIBRARIES41 -lpthread42)43 44add_fp_unittest(45 sinf_test46 NO_RUN_POSTBUILD47 NEED_MPFR48 SUITE49 libc_math_exhaustive_tests50 SRCS51 sinf_test.cpp52 DEPENDS53 .exhaustive_test54 libc.src.math.sinf55 libc.src.__support.FPUtil.fp_bits56 LINK_LIBRARIES57 -lpthread58)59 60add_fp_unittest(61 sinf_float_test62 NO_RUN_POSTBUILD63 NEED_MPFR64 SUITE65 libc_math_exhaustive_tests66 SRCS67 sinf_float_test.cpp68 LINK_LIBRARIES69 -lpthread70 DEPENDS71 .exhaustive_test72 libc.src.__support.math.sincosf_utils73)74 75add_fp_unittest(76 sinpif_test77 NO_RUN_POSTBUILD78 NEED_MPFR79 SUITE80 libc_math_exhaustive_tests81 SRCS82 sinpif_test.cpp83 DEPENDS84 .exhaustive_test85 libc.src.math.sinpif86 libc.src.__support.FPUtil.fp_bits87 LINK_LIBRARIES88 -lpthread89)90 91add_fp_unittest(92 cosf_test93 NO_RUN_POSTBUILD94 NEED_MPFR95 SUITE96 libc_math_exhaustive_tests97 SRCS98 cosf_test.cpp99 DEPENDS100 .exhaustive_test101 libc.src.math.cosf102 libc.src.__support.FPUtil.fp_bits103 LINK_LIBRARIES104 -lpthread105)106 107add_fp_unittest(108 cosf_float_test109 NO_RUN_POSTBUILD110 NEED_MPFR111 SUITE112 libc_math_exhaustive_tests113 SRCS114 cosf_float_test.cpp115 LINK_LIBRARIES116 -lpthread117 DEPENDS118 .exhaustive_test119 libc.src.__support.math.sincosf_utils120)121 122add_fp_unittest(123 cospif_test124 NO_RUN_POSTBUILD125 NEED_MPFR126 SUITE127 libc_math_exhaustive_tests128 SRCS129 cospif_test.cpp130 DEPENDS131 .exhaustive_test132 libc.src.math.cospif133 libc.src.__support.FPUtil.fp_bits134 LINK_LIBRARIES135 -lpthread136)137 138add_fp_unittest(139 sincosf_test140 NO_RUN_POSTBUILD141 NEED_MPFR142 SUITE143 libc_math_exhaustive_tests144 SRCS145 sincosf_test.cpp146 DEPENDS147 .exhaustive_test148 libc.src.math.sincosf149 libc.src.__support.FPUtil.fp_bits150 LINK_LIBRARIES151 -lpthread152)153 154add_fp_unittest(155 tanf_test156 NO_RUN_POSTBUILD157 NEED_MPFR158 SUITE159 libc_math_exhaustive_tests160 SRCS161 tanf_test.cpp162 DEPENDS163 .exhaustive_test164 libc.src.math.tanf165 libc.src.__support.FPUtil.fp_bits166 LINK_LIBRARIES167 -lpthread168)169 170add_fp_unittest(171 tanpif_test172 NO_RUN_POSTBUILD173 NEED_MPFR174 SUITE175 libc_math_exhaustive_tests176 SRCS177 tanpif_test.cpp178 DEPENDS179 .exhaustive_test180 libc.src.math.tanpif181 libc.src.__support.FPUtil.fp_bits182 LINK_LIBRARIES183 -lpthread184)185 186add_fp_unittest(187 erff_test188 NO_RUN_POSTBUILD189 NEED_MPFR190 SUITE191 libc_math_exhaustive_tests192 SRCS193 erff_test.cpp194 DEPENDS195 .exhaustive_test196 libc.src.math.erff197 libc.src.__support.FPUtil.fp_bits198 LINK_LIBRARIES199 -lpthread200)201 202add_fp_unittest(203 expf_test204 NO_RUN_POSTBUILD205 NEED_MPFR206 SUITE207 libc_math_exhaustive_tests208 SRCS209 expf_test.cpp210 DEPENDS211 .exhaustive_test212 libc.src.math.expf213 libc.src.__support.FPUtil.fp_bits214 LINK_LIBRARIES215 -lpthread216)217 218add_fp_unittest(219 exp2f_test220 NO_RUN_POSTBUILD221 NEED_MPFR222 SUITE223 libc_math_exhaustive_tests224 SRCS225 exp2f_test.cpp226 DEPENDS227 .exhaustive_test228 libc.src.math.exp2f229 libc.src.__support.FPUtil.fp_bits230 LINK_LIBRARIES231 -lpthread232)233 234add_fp_unittest(235 exp2m1f_test236 NO_RUN_POSTBUILD237 NEED_MPFR238 SUITE239 libc_math_exhaustive_tests240 SRCS241 exp2m1f_test.cpp242 DEPENDS243 .exhaustive_test244 libc.src.math.exp2m1f245 LINK_LIBRARIES246 -lpthread247)248 249add_fp_unittest(250 exp10f_test251 NO_RUN_POSTBUILD252 NEED_MPFR253 SUITE254 libc_math_exhaustive_tests255 SRCS256 exp10f_test.cpp257 DEPENDS258 .exhaustive_test259 libc.src.math.exp10f260 libc.src.__support.FPUtil.fp_bits261 LINK_LIBRARIES262 -lpthread263)264 265add_fp_unittest(266 exp10m1f_test267 NO_RUN_POSTBUILD268 NEED_MPFR269 SUITE270 libc_math_exhaustive_tests271 SRCS272 exp10m1f_test.cpp273 DEPENDS274 .exhaustive_test275 libc.src.math.exp10m1f276 LINK_LIBRARIES277 -lpthread278)279 280add_fp_unittest(281 expm1f_test282 NO_RUN_POSTBUILD283 NEED_MPFR284 SUITE285 libc_math_exhaustive_tests286 SRCS287 expm1f_test.cpp288 DEPENDS289 .exhaustive_test290 libc.src.math.expm1f291 libc.src.__support.FPUtil.fp_bits292 LINK_LIBRARIES293 -lpthread294)295 296add_fp_unittest(297 logf_test298 NO_RUN_POSTBUILD299 NEED_MPFR300 SUITE301 libc_math_exhaustive_tests302 SRCS303 logf_test.cpp304 DEPENDS305 .exhaustive_test306 libc.src.math.logf307 libc.src.__support.FPUtil.fp_bits308 LINK_LIBRARIES309 -lpthread310)311 312add_fp_unittest(313 log10f_test314 NO_RUN_POSTBUILD315 NEED_MPFR316 SUITE317 libc_math_exhaustive_tests318 SRCS319 log10f_test.cpp320 DEPENDS321 .exhaustive_test322 libc.src.math.log10f323 libc.src.__support.FPUtil.fp_bits324 LINK_LIBRARIES325 -lpthread326)327 328add_fp_unittest(329 log1pf_test330 NO_RUN_POSTBUILD331 NEED_MPFR332 SUITE333 libc_math_exhaustive_tests334 SRCS335 log1pf_test.cpp336 DEPENDS337 .exhaustive_test338 libc.src.math.log1pf339 libc.src.__support.FPUtil.fp_bits340 LINK_LIBRARIES341 -lpthread342)343 344add_fp_unittest(345 log2f_test346 NO_RUN_POSTBUILD347 NEED_MPFR348 SUITE349 libc_math_exhaustive_tests350 SRCS351 log2f_test.cpp352 DEPENDS353 .exhaustive_test354 libc.src.math.log2f355 libc.src.__support.FPUtil.fp_bits356 LINK_LIBRARIES357 -lpthread358)359 360add_fp_unittest(361 hypotf_test362 NO_RUN_POSTBUILD363 NEED_MPFR364 SUITE365 libc_math_exhaustive_tests366 SRCS367 hypotf_test.cpp368 COMPILE_OPTIONS369 ${libc_opt_high_flag}370 DEPENDS371 .exhaustive_test372 libc.src.math.hypotf373 libc.src.__support.FPUtil.fp_bits374 LINK_LIBRARIES375 -lpthread376)377 378add_fp_unittest(379 hypotf16_test380 NO_RUN_POSTBUILD381 NEED_MPFR382 SUITE383 libc_math_exhaustive_tests384 SRCS385 hypotf16_test.cpp386 COMPILE_OPTIONS387 ${libc_opt_high_flag}388 DEPENDS389 .exhaustive_test390 libc.src.math.hypotf16391 libc.src.__support.FPUtil.fp_bits392 LINK_LIBRARIES393 -lpthread394)395 396add_fp_unittest(397 fmod_generic_impl_test398 NO_RUN_POSTBUILD399 NEED_MPFR400 SUITE401 libc_math_exhaustive_tests402 SRCS403 fmod_generic_impl_test.cpp404 DEPENDS405 libc.src.__support.FPUtil.fp_bits406 libc.src.__support.FPUtil.manipulation_functions407 libc.src.__support.FPUtil.generic.fmod408)409 410add_fp_unittest(411 fmodf16_test412 NO_RUN_POSTBUILD413 NEED_MPFR414 SUITE415 libc_math_exhaustive_tests416 SRCS417 fmodf16_test.cpp418 DEPENDS419 .exhaustive_test420 libc.src.math.fmodf16421 LINK_LIBRARIES422 -lpthread423)424 425add_fp_unittest(426 fmodbf16_test427 NO_RUN_POSTBUILD428 NEED_MPFR429 SUITE430 libc_math_exhaustive_tests431 SRCS432 fmodbf16_test.cpp433 DEPENDS434 .exhaustive_test435 libc.src.math.fmodbf16436 libc.src.__support.FPUtil.bfloat16437 LINK_LIBRARIES438 -lpthread439)440 441add_fp_unittest(442 coshf_test443 NO_RUN_POSTBUILD444 NEED_MPFR445 SUITE446 libc_math_exhaustive_tests447 SRCS448 coshf_test.cpp449 DEPENDS450 .exhaustive_test451 libc.src.math.coshf452 libc.src.__support.FPUtil.fp_bits453 LINK_LIBRARIES454 -lpthread455)456 457add_fp_unittest(458 sinhf_test459 NO_RUN_POSTBUILD460 NEED_MPFR461 SUITE462 libc_math_exhaustive_tests463 SRCS464 sinhf_test.cpp465 DEPENDS466 .exhaustive_test467 libc.src.math.sinhf468 libc.src.__support.FPUtil.fp_bits469 LINK_LIBRARIES470 -lpthread471)472 473add_fp_unittest(474 tanhf_test475 NO_RUN_POSTBUILD476 NEED_MPFR477 SUITE478 libc_math_exhaustive_tests479 SRCS480 tanhf_test.cpp481 DEPENDS482 .exhaustive_test483 libc.src.math.tanhf484 libc.src.__support.FPUtil.fp_bits485 LINK_LIBRARIES486 -lpthread487)488 489add_fp_unittest(490 acoshf_test491 NO_RUN_POSTBUILD492 NEED_MPFR493 SUITE494 libc_math_exhaustive_tests495 SRCS496 acoshf_test.cpp497 DEPENDS498 .exhaustive_test499 libc.src.math.acoshf500 libc.src.__support.FPUtil.fp_bits501 LINK_LIBRARIES502 -lpthread503)504 505add_fp_unittest(506 asinhf_test507 NO_RUN_POSTBUILD508 NEED_MPFR509 SUITE510 libc_math_exhaustive_tests511 SRCS512 asinhf_test.cpp513 DEPENDS514 .exhaustive_test515 libc.src.math.asinhf516 libc.src.__support.FPUtil.fp_bits517 LINK_LIBRARIES518 -lpthread519)520 521add_fp_unittest(522 atanhf_test523 NO_RUN_POSTBUILD524 NEED_MPFR525 SUITE526 libc_math_exhaustive_tests527 SRCS528 atanhf_test.cpp529 DEPENDS530 .exhaustive_test531 libc.src.math.atanhf532 libc.src.__support.FPUtil.fp_bits533 LINK_LIBRARIES534 -lpthread535)536 537add_fp_unittest(538 atanf_test539 NO_RUN_POSTBUILD540 NEED_MPFR541 SUITE542 libc_math_exhaustive_tests543 SRCS544 atanf_test.cpp545 DEPENDS546 .exhaustive_test547 libc.src.math.atanf548 libc.src.__support.FPUtil.fp_bits549 LINK_LIBRARIES550 -lpthread551)552 553add_fp_unittest(554 atanf_float_test555 NO_RUN_POSTBUILD556 NEED_MPFR557 SUITE558 libc_math_exhaustive_tests559 SRCS560 atanf_float_test.cpp561 LINK_LIBRARIES562 -lpthread563 DEPENDS564 .exhaustive_test565 libc.src.__support.math.atanf566)567 568add_fp_unittest(569 asinf_test570 NO_RUN_POSTBUILD571 NEED_MPFR572 SUITE573 libc_math_exhaustive_tests574 SRCS575 asinf_test.cpp576 DEPENDS577 .exhaustive_test578 libc.src.math.asinf579 libc.src.__support.FPUtil.fp_bits580 LINK_LIBRARIES581 -lpthread582)583 584add_fp_unittest(585 acosf_test586 NO_RUN_POSTBUILD587 NEED_MPFR588 SUITE589 libc_math_exhaustive_tests590 SRCS591 acosf_test.cpp592 DEPENDS593 .exhaustive_test594 libc.src.math.acosf595 libc.src.__support.FPUtil.fp_bits596 LINK_LIBRARIES597 -lpthread598)599 600add_fp_unittest(601 f16sqrtf_test602 NO_RUN_POSTBUILD603 NEED_MPFR604 SUITE605 libc_math_exhaustive_tests606 SRCS607 f16sqrtf_test.cpp608 DEPENDS609 .exhaustive_test610 libc.src.math.f16sqrtf611 LINK_LIBRARIES612 -lpthread613)614 615add_fp_unittest(616 cbrtf_test617 NO_RUN_POSTBUILD618 NEED_MPFR619 SUITE620 libc_math_exhaustive_tests621 SRCS622 cbrtf_test.cpp623 DEPENDS624 .exhaustive_test625 libc.src.math.cbrtf626 libc.src.__support.FPUtil.fp_bits627 LINK_LIBRARIES628 -lpthread629)630 631add_fp_unittest(632 bfloat16_test633 NO_RUN_POSTBUILD634 NEED_MPFR635 SUITE636 libc_math_exhaustive_tests637 SRCS638 bfloat16_test.cpp639 DEPENDS640 .exhaustive_test641 libc.src.__support.FPUtil.bfloat16642 libc.src.__support.FPUtil.fp_bits643 LINK_LIBRARIES644 -lpthread645)646 647add_fp_unittest(648 bfloat16_add_test649 NO_RUN_POSTBUILD650 NEED_MPFR651 SUITE652 libc_math_exhaustive_tests653 SRCS654 bfloat16_add_test.cpp655 COMPILE_OPTIONS656 ${libc_opt_high_flag}657 DEPENDS658 .exhaustive_test659 libc.src.__support.FPUtil.bfloat16660 libc.src.__support.FPUtil.fp_bits661 LINK_LIBRARIES662 -lpthread663)664 665add_fp_unittest(666 bfloat16_div_test667 NO_RUN_POSTBUILD668 NEED_MPFR669 SUITE670 libc_math_exhaustive_tests671 SRCS672 bfloat16_div_test.cpp673 COMPILE_OPTIONS674 ${libc_opt_high_flag}675 DEPENDS676 .exhaustive_test677 libc.src.__support.FPUtil.bfloat16678 libc.src.__support.FPUtil.fp_bits679 LINK_LIBRARIES680 -lpthread681)682 683add_fp_unittest(684 bfloat16_mul_test685 NO_RUN_POSTBUILD686 NEED_MPFR687 SUITE688 libc_math_exhaustive_tests689 SRCS690 bfloat16_mul_test.cpp691 COMPILE_OPTIONS692 ${libc_opt_high_flag}693 DEPENDS694 .exhaustive_test695 libc.src.__support.FPUtil.bfloat16696 libc.src.__support.FPUtil.fp_bits697 LINK_LIBRARIES698 -lpthread699)700 701add_fp_unittest(702 bfloat16_sub_test703 NO_RUN_POSTBUILD704 NEED_MPFR705 SUITE706 libc_math_exhaustive_tests707 SRCS708 bfloat16_sub_test.cpp709 COMPILE_OPTIONS710 ${libc_opt_high_flag}711 DEPENDS712 .exhaustive_test713 libc.src.__support.FPUtil.bfloat16714 libc.src.__support.FPUtil.fp_bits715 LINK_LIBRARIES716 -lpthread717)718