3467 lines · plain
1add_custom_target(libc-math-unittests)2 3add_fp_unittest(4 cosf_test5 NEED_MPFR6 SUITE7 libc-math-unittests8 SRCS9 cosf_test.cpp10 HDRS11 sdcomp26094.h12 DEPENDS13 libc.hdr.errno_macros14 libc.src.math.cosf15 libc.src.__support.CPP.array16 libc.src.__support.FPUtil.fp_bits17)18 19add_fp_unittest(20 cosf_float_test21 NEED_MPFR22 SUITE23 libc-math-unittests24 SRCS25 cosf_float_test.cpp26 DEPENDS27 libc.src.__support.math.sincosf_utils28 libc.src.__support.FPUtil.fp_bits29 FLAGS30 FMA_OPT__ONLY31)32 33add_fp_unittest(34 cos_test35 NEED_MPFR36 SUITE37 libc-math-unittests38 SRCS39 cos_test.cpp40 DEPENDS41 libc.src.math.cos42 libc.src.__support.FPUtil.fp_bits43)44 45add_fp_unittest(46 cosf16_test47 NEED_MPFR48 SUITE49 libc-math-unittests50 SRCS51 cosf16_test.cpp52 DEPENDS53 libc.src.math.cosf1654)55 56add_fp_unittest(57 cospif_test58 NEED_MPFR59 SUITE60 libc-math-unittests61 SRCS62 cospif_test.cpp63 HDRS64 sdcomp26094.h65 DEPENDS66 libc.hdr.errno_macros67 libc.src.math.cospif68 libc.src.__support.CPP.array69 libc.src.__support.FPUtil.fp_bits70)71 72 73add_fp_unittest(74 cospif16_test75 NEED_MPFR76 SUITE77 libc-math-unittests78 SRCS79 cospif16_test.cpp80 DEPENDS81 libc.src.math.cospif1682)83 84add_fp_unittest(85 daddl_test86 NEED_MPFR87 SUITE88 libc-math-unittests89 SRCS90 daddl_test.cpp91 HDRS92 AddTest.h93 DEPENDS94 libc.src.math.daddl95)96 97add_fp_unittest(98 sinf_test99 NEED_MPFR100 SUITE101 libc-math-unittests102 SRCS103 sinf_test.cpp104 HDRS105 sdcomp26094.h106 DEPENDS107 libc.hdr.errno_macros108 libc.src.math.sinf109 libc.src.__support.CPP.array110 libc.src.__support.FPUtil.fp_bits111)112 113add_fp_unittest(114 sinf_float_test115 NEED_MPFR116 SUITE117 libc-math-unittests118 SRCS119 sinf_float_test.cpp120 DEPENDS121 libc.src.__support.math.sincosf_utils122 libc.src.__support.FPUtil.fp_bits123 FLAGS124 FMA_OPT__ONLY125)126 127add_fp_unittest(128 sinf16_test129 NEED_MPFR130 SUITE131 libc-math-unittests132 SRCS133 sinf16_test.cpp134 DEPENDS135 libc.src.math.sinf16136)137 138add_fp_unittest(139 sinpif_test140 NEED_MPFR141 SUITE142 libc-math-unittests143 SRCS144 sinpif_test.cpp145 HDRS146 sdcomp26094.h147 DEPENDS148 libc.hdr.errno_macros149 libc.src.math.sinpif150 libc.src.__support.CPP.array151 libc.src.__support.FPUtil.fp_bits152)153 154add_fp_unittest(155 sinpif16_test156 NEED_MPFR157 SUITE158 libc-math-unittests159 SRCS160 sinpif16_test.cpp161 DEPENDS162 libc.src.math.sinpif16163)164 165add_fp_unittest(166 sin_test167 NEED_MPFR168 SUITE169 libc-math-unittests170 SRCS171 sin_test.cpp172 DEPENDS173 libc.src.math.sin174 libc.src.__support.FPUtil.fp_bits175)176 177add_fp_unittest(178 sincosf_test179 NEED_MPFR180 SUITE181 libc-math-unittests182 SRCS183 sincosf_test.cpp184 HDRS185 sdcomp26094.h186 DEPENDS187 libc.hdr.errno_macros188 libc.src.math.sincosf189 libc.src.__support.CPP.array190 libc.src.__support.FPUtil.fp_bits191)192 193add_fp_unittest(194 sincos_test195 NEED_MPFR196 SUITE197 libc-math-unittests198 SRCS199 sincos_test.cpp200 DEPENDS201 libc.src.math.sincos202 libc.src.__support.FPUtil.fp_bits203)204 205add_fp_unittest(206 tanf_test207 NEED_MPFR208 SUITE209 libc-math-unittests210 SRCS211 tanf_test.cpp212 HDRS213 sdcomp26094.h214 DEPENDS215 libc.hdr.errno_macros216 libc.src.math.tanf217 libc.src.__support.CPP.array218 libc.src.__support.FPUtil.fp_bits219)220 221add_fp_unittest(222 tanf16_test223 NEED_MPFR224 SUITE225 libc-math-unittests226 SRCS227 tanf16_test.cpp228 DEPENDS229 libc.src.math.tanf16230)231 232add_fp_unittest(233 tanpif_test234 NEED_MPFR235 SUITE236 libc-math-unittests237 SRCS238 tanpif_test.cpp239 HDRS240 sdcomp26094.h241 DEPENDS242 libc.src.math.tanpif243 libc.src.__support.CPP.array244 libc.src.__support.FPUtil.fp_bits245)246 247add_fp_unittest(248 tanpif16_test249 NEED_MPFR250 SUITE251 libc-math-unittests252 SRCS253 tanpif16_test.cpp254 DEPENDS255 libc.src.math.tanpif16256)257 258add_fp_unittest(259 fabs_test260 NEED_MPFR261 SUITE262 libc-math-unittests263 SRCS264 fabs_test.cpp265 HDRS266 FAbsTest.h267 DEPENDS268 libc.src.math.fabs269 libc.src.__support.FPUtil.fp_bits270)271 272add_fp_unittest(273 fabsf_test274 NEED_MPFR275 SUITE276 libc-math-unittests277 SRCS278 fabsf_test.cpp279 HDRS280 FAbsTest.h281 DEPENDS282 libc.src.math.fabsf283 libc.src.__support.FPUtil.fp_bits284)285 286add_fp_unittest(287 fabsl_test288 NEED_MPFR289 SUITE290 libc-math-unittests291 SRCS292 fabsl_test.cpp293 HDRS294 FAbsTest.h295 DEPENDS296 libc.src.math.fabsl297 libc.src.__support.FPUtil.fp_bits298)299 300add_fp_unittest(301 fadd_test302 NEED_MPFR303 SUITE304 libc-math-unittests305 SRCS306 fadd_test.cpp307 HDRS308 AddTest.h309 DEPENDS310 libc.src.math.fadd311 libc.src.__support.FPUtil.basic_operations312)313 314add_fp_unittest(315 faddl_test316 NEED_MPFR317 SUITE318 libc-math-unittests319 SRCS320 faddl_test.cpp321 HDRS322 AddTest.h323 DEPENDS324 libc.src.math.faddl325)326 327add_fp_unittest(328 trunc_test329 NEED_MPFR330 SUITE331 libc-math-unittests332 SRCS333 trunc_test.cpp334 HDRS335 TruncTest.h336 DEPENDS337 libc.src.math.trunc338 libc.src.__support.CPP.algorithm339 libc.src.__support.FPUtil.fp_bits340)341 342add_fp_unittest(343 truncf_test344 NEED_MPFR345 SUITE346 libc-math-unittests347 SRCS348 truncf_test.cpp349 HDRS350 TruncTest.h351 DEPENDS352 libc.src.math.truncf353 libc.src.__support.CPP.algorithm354 libc.src.__support.FPUtil.fp_bits355)356 357add_fp_unittest(358 truncl_test359 NEED_MPFR360 SUITE361 libc-math-unittests362 SRCS363 truncl_test.cpp364 HDRS365 TruncTest.h366 DEPENDS367 libc.src.math.truncl368 libc.src.__support.CPP.algorithm369 libc.src.__support.FPUtil.fp_bits370)371 372add_fp_unittest(373 truncf16_test374 NEED_MPFR375 SUITE376 libc-math-unittests377 SRCS378 truncf16_test.cpp379 HDRS380 TruncTest.h381 DEPENDS382 libc.src.math.truncf16383 libc.src.__support.CPP.algorithm384 libc.src.__support.FPUtil.fp_bits385)386 387add_fp_unittest(388 ceil_test389 NEED_MPFR390 SUITE391 libc-math-unittests392 SRCS393 ceil_test.cpp394 HDRS395 CeilTest.h396 DEPENDS397 libc.src.math.ceil398 libc.src.__support.CPP.algorithm399 libc.src.__support.FPUtil.fp_bits400)401 402add_fp_unittest(403 ceilf_test404 NEED_MPFR405 SUITE406 libc-math-unittests407 SRCS408 ceilf_test.cpp409 HDRS410 CeilTest.h411 DEPENDS412 libc.src.math.ceilf413 libc.src.__support.CPP.algorithm414 libc.src.__support.FPUtil.fp_bits415)416 417add_fp_unittest(418 ceill_test419 NEED_MPFR420 SUITE421 libc-math-unittests422 SRCS423 ceill_test.cpp424 HDRS425 CeilTest.h426 DEPENDS427 libc.src.math.ceill428 libc.src.__support.CPP.algorithm429 libc.src.__support.FPUtil.fp_bits430)431 432add_fp_unittest(433 ceilf16_test434 NEED_MPFR435 SUITE436 libc-math-unittests437 SRCS438 ceilf16_test.cpp439 HDRS440 CeilTest.h441 DEPENDS442 libc.src.math.ceilf16443 libc.src.__support.CPP.algorithm444 libc.src.__support.FPUtil.fp_bits445)446 447add_fp_unittest(448 floor_test449 NEED_MPFR450 SUITE451 libc-math-unittests452 SRCS453 floor_test.cpp454 HDRS455 FloorTest.h456 DEPENDS457 libc.src.math.floor458 libc.src.__support.CPP.algorithm459 libc.src.__support.FPUtil.fp_bits460)461 462add_fp_unittest(463 floorf_test464 NEED_MPFR465 SUITE466 libc-math-unittests467 SRCS468 floorf_test.cpp469 HDRS470 FloorTest.h471 DEPENDS472 libc.src.math.floorf473 libc.src.__support.CPP.algorithm474 libc.src.__support.FPUtil.fp_bits475)476 477add_fp_unittest(478 floorl_test479 NEED_MPFR480 SUITE481 libc-math-unittests482 SRCS483 floorl_test.cpp484 HDRS485 FloorTest.h486 DEPENDS487 libc.src.math.floorl488 libc.src.__support.CPP.algorithm489 libc.src.__support.FPUtil.fp_bits490)491 492add_fp_unittest(493 floorf16_test494 NEED_MPFR495 SUITE496 libc-math-unittests497 SRCS498 floorf16_test.cpp499 HDRS500 FloorTest.h501 DEPENDS502 libc.src.math.floorf16503 libc.src.__support.CPP.algorithm504 libc.src.__support.FPUtil.fp_bits505)506 507add_fp_unittest(508 round_test509 NEED_MPFR510 SUITE511 libc-math-unittests512 SRCS513 round_test.cpp514 HDRS515 RoundTest.h516 DEPENDS517 libc.src.math.round518 libc.src.__support.CPP.algorithm519 libc.src.__support.FPUtil.fp_bits520)521 522add_fp_unittest(523 roundf_test524 NEED_MPFR525 SUITE526 libc-math-unittests527 SRCS528 roundf_test.cpp529 HDRS530 RoundTest.h531 DEPENDS532 libc.src.math.roundf533 libc.src.__support.CPP.algorithm534 libc.src.__support.FPUtil.fp_bits535)536 537add_fp_unittest(538 roundl_test539 NEED_MPFR540 SUITE541 libc-math-unittests542 SRCS543 roundl_test.cpp544 HDRS545 RoundTest.h546 DEPENDS547 libc.src.math.roundl548 libc.src.__support.CPP.algorithm549 libc.src.__support.FPUtil.fp_bits550)551 552add_fp_unittest(553 roundf16_test554 NEED_MPFR555 SUITE556 libc-math-unittests557 SRCS558 roundf16_test.cpp559 HDRS560 RoundTest.h561 DEPENDS562 libc.src.math.roundf16563 libc.src.__support.CPP.algorithm564 libc.src.__support.FPUtil.fp_bits565)566 567add_fp_unittest(568 roundeven_test569 NEED_MPFR570 SUITE571 libc-math-unittests572 SRCS573 roundeven_test.cpp574 HDRS575 RoundEvenTest.h576 DEPENDS577 libc.src.math.roundeven578 libc.src.__support.CPP.algorithm579 libc.src.__support.FPUtil.fp_bits580)581 582add_fp_unittest(583 roundevenf_test584 NEED_MPFR585 SUITE586 libc-math-unittests587 SRCS588 roundevenf_test.cpp589 HDRS590 RoundEvenTest.h591 DEPENDS592 libc.src.math.roundevenf593 libc.src.__support.CPP.algorithm594 libc.src.__support.FPUtil.fp_bits595)596 597add_fp_unittest(598 roundevenl_test599 NEED_MPFR600 SUITE601 libc-math-unittests602 SRCS603 roundevenl_test.cpp604 HDRS605 RoundEvenTest.h606 DEPENDS607 libc.src.math.roundevenl608 libc.src.__support.CPP.algorithm609 libc.src.__support.FPUtil.fp_bits610)611 612add_fp_unittest(613 roundevenf16_test614 NEED_MPFR615 SUITE616 libc-math-unittests617 SRCS618 roundevenf16_test.cpp619 HDRS620 RoundEvenTest.h621 DEPENDS622 libc.src.math.roundevenf16623 libc.src.__support.CPP.algorithm624 libc.src.__support.FPUtil.fp_bits625)626 627add_fp_unittest(628 lround_test629 NEED_MPFR630 SUITE631 libc-math-unittests632 SRCS633 lround_test.cpp634 HDRS635 RoundToIntegerTest.h636 DEPENDS637 libc.hdr.fenv_macros638 libc.src.errno.errno639 libc.src.math.lround640 libc.src.__support.CPP.algorithm641 libc.src.__support.FPUtil.fenv_impl642 libc.src.__support.FPUtil.fp_bits643)644 645add_fp_unittest(646 lroundf_test647 NEED_MPFR648 SUITE649 libc-math-unittests650 SRCS651 lroundf_test.cpp652 HDRS653 RoundToIntegerTest.h654 DEPENDS655 libc.hdr.fenv_macros656 libc.src.errno.errno657 libc.src.math.lroundf658 libc.src.__support.CPP.algorithm659 libc.src.__support.FPUtil.fenv_impl660 libc.src.__support.FPUtil.fp_bits661)662 663add_fp_unittest(664 lroundl_test665 NEED_MPFR666 SUITE667 libc-math-unittests668 SRCS669 lroundl_test.cpp670 HDRS671 RoundToIntegerTest.h672 DEPENDS673 libc.hdr.fenv_macros674 libc.src.errno.errno675 libc.src.math.lroundl676 libc.src.__support.CPP.algorithm677 libc.src.__support.FPUtil.fenv_impl678 libc.src.__support.FPUtil.fp_bits679)680 681add_fp_unittest(682 lroundf16_test683 NEED_MPFR684 SUITE685 libc-math-unittests686 SRCS687 lroundf16_test.cpp688 HDRS689 RoundToIntegerTest.h690 DEPENDS691 libc.hdr.fenv_macros692 libc.src.errno.errno693 libc.src.math.lroundf16694 libc.src.__support.CPP.algorithm695 libc.src.__support.FPUtil.fenv_impl696 libc.src.__support.FPUtil.fp_bits697)698 699add_fp_unittest(700 lroundbf16_test701 NEED_MPFR702 SUITE703 libc-math-unittests704 SRCS705 lroundbf16_test.cpp706 HDRS707 RoundToIntegerTest.h708 DEPENDS709 libc.hdr.fenv_macros710 libc.src.errno.errno711 libc.src.math.lroundbf16712 libc.src.__support.CPP.algorithm713 libc.src.__support.FPUtil.bfloat16714 libc.src.__support.FPUtil.fenv_impl715 libc.src.__support.FPUtil.fp_bits716)717 718add_fp_unittest(719 llround_test720 NEED_MPFR721 SUITE722 libc-math-unittests723 SRCS724 llround_test.cpp725 HDRS726 RoundToIntegerTest.h727 DEPENDS728 libc.hdr.fenv_macros729 libc.src.errno.errno730 libc.src.math.llround731 libc.src.__support.CPP.algorithm732 libc.src.__support.FPUtil.fenv_impl733 libc.src.__support.FPUtil.fp_bits734)735 736add_fp_unittest(737 llroundf_test738 NEED_MPFR739 SUITE740 libc-math-unittests741 SRCS742 llroundf_test.cpp743 HDRS744 RoundToIntegerTest.h745 DEPENDS746 libc.hdr.fenv_macros747 libc.src.errno.errno748 libc.src.math.llroundf749 libc.src.__support.CPP.algorithm750 libc.src.__support.FPUtil.fenv_impl751 libc.src.__support.FPUtil.fp_bits752)753 754add_fp_unittest(755 llroundl_test756 NEED_MPFR757 SUITE758 libc-math-unittests759 SRCS760 llroundl_test.cpp761 HDRS762 RoundToIntegerTest.h763 DEPENDS764 libc.hdr.fenv_macros765 libc.src.errno.errno766 libc.src.math.llroundl767 libc.src.__support.CPP.algorithm768 libc.src.__support.FPUtil.fenv_impl769 libc.src.__support.FPUtil.fp_bits770)771 772add_fp_unittest(773 llroundf16_test774 NEED_MPFR775 SUITE776 libc-math-unittests777 SRCS778 llroundf16_test.cpp779 HDRS780 RoundToIntegerTest.h781 DEPENDS782 libc.hdr.fenv_macros783 libc.src.errno.errno784 libc.src.math.llroundf16785 libc.src.__support.CPP.algorithm786 libc.src.__support.FPUtil.fenv_impl787 libc.src.__support.FPUtil.fp_bits788)789 790add_fp_unittest(791 llroundbf16_test792 NEED_MPFR793 SUITE794 libc-math-unittests795 SRCS796 llroundbf16_test.cpp797 HDRS798 RoundToIntegerTest.h799 DEPENDS800 libc.hdr.fenv_macros801 libc.src.errno.errno802 libc.src.math.llroundbf16803 libc.src.__support.CPP.algorithm804 libc.src.__support.FPUtil.bfloat16805 libc.src.__support.FPUtil.fenv_impl806 libc.src.__support.FPUtil.fp_bits807)808 809add_fp_unittest(810 nearbyint_test811 NEED_MPFR812 SUITE813 libc-math-unittests814 SRCS815 nearbyint_test.cpp816 HDRS817 NearbyIntTest.h818 DEPENDS819 libc.src.math.nearbyint820 libc.src.__support.CPP.algorithm821 libc.src.__support.CPP.array822)823 824add_fp_unittest(825 nearbyintf_test826 NEED_MPFR827 SUITE828 libc-math-unittests829 SRCS830 nearbyintf_test.cpp831 HDRS832 NearbyIntTest.h833 DEPENDS834 libc.src.math.nearbyintf835 libc.src.__support.CPP.algorithm836 libc.src.__support.CPP.array837)838 839add_fp_unittest(840 nearbyintl_test841 NEED_MPFR842 SUITE843 libc-math-unittests844 SRCS845 nearbyintl_test.cpp846 HDRS847 NearbyIntTest.h848 DEPENDS849 libc.src.math.nearbyintl850 libc.src.__support.CPP.algorithm851 libc.src.__support.CPP.array852)853 854add_fp_unittest(855 nearbyintf16_test856 NEED_MPFR857 SUITE858 libc-math-unittests859 SRCS860 nearbyintf16_test.cpp861 HDRS862 NearbyIntTest.h863 DEPENDS864 libc.src.math.nearbyintf16865 libc.src.__support.CPP.algorithm866 libc.src.__support.CPP.array867)868 869add_fp_unittest(870 nearbyintbf16_test871 NEED_MPFR872 SUITE873 libc-math-unittests874 SRCS875 nearbyintbf16_test.cpp876 HDRS877 NearbyIntTest.h878 DEPENDS879 libc.src.math.nearbyintbf16880 libc.src.__support.CPP.algorithm881 libc.src.__support.CPP.array882 libc.src.__support.FPUtil.bfloat16883)884 885add_fp_unittest(886 rint_test887 NEED_MPFR888 SUITE889 libc-math-unittests890 SRCS891 rint_test.cpp892 HDRS893 RIntTest.h894 DEPENDS895 libc.hdr.fenv_macros896 libc.src.math.rint897 libc.src.__support.CPP.algorithm898 libc.src.__support.FPUtil.fenv_impl899 libc.src.__support.FPUtil.fp_bits900)901 902add_fp_unittest(903 rintf_test904 NEED_MPFR905 SUITE906 libc-math-unittests907 SRCS908 rintf_test.cpp909 HDRS910 RIntTest.h911 DEPENDS912 libc.hdr.fenv_macros913 libc.src.math.rintf914 libc.src.__support.CPP.algorithm915 libc.src.__support.FPUtil.fenv_impl916 libc.src.__support.FPUtil.fp_bits917)918 919add_fp_unittest(920 rintl_test921 NEED_MPFR922 SUITE923 libc-math-unittests924 SRCS925 rintl_test.cpp926 HDRS927 RIntTest.h928 DEPENDS929 libc.hdr.fenv_macros930 libc.src.math.rintl931 libc.src.__support.CPP.algorithm932 libc.src.__support.FPUtil.fenv_impl933 libc.src.__support.FPUtil.fp_bits934)935 936add_fp_unittest(937 rintf16_test938 NEED_MPFR939 SUITE940 libc-math-unittests941 SRCS942 rintf16_test.cpp943 HDRS944 RIntTest.h945 DEPENDS946 libc.hdr.fenv_macros947 libc.src.math.rintf16948 libc.src.__support.CPP.algorithm949 libc.src.__support.FPUtil.fenv_impl950 libc.src.__support.FPUtil.fp_bits951)952 953add_fp_unittest(954 rintbf16_test955 NEED_MPFR956 SUITE957 libc-math-unittests958 SRCS959 rintbf16_test.cpp960 HDRS961 RIntTest.h962 DEPENDS963 libc.hdr.fenv_macros964 libc.src.math.rintbf16965 libc.src.__support.CPP.algorithm966 libc.src.__support.FPUtil.bfloat16967 libc.src.__support.FPUtil.fenv_impl968 libc.src.__support.FPUtil.fp_bits969)970 971add_fp_unittest(972 lrint_test973 NEED_MPFR974 SUITE975 libc-math-unittests976 SRCS977 lrint_test.cpp978 HDRS979 RoundToIntegerTest.h980 DEPENDS981 libc.src.math.lrint982 libc.src.__support.CPP.algorithm983 libc.src.__support.FPUtil.fenv_impl984 libc.src.__support.FPUtil.fp_bits985)986 987add_fp_unittest(988 lrintf_test989 NEED_MPFR990 SUITE991 libc-math-unittests992 SRCS993 lrintf_test.cpp994 HDRS995 RoundToIntegerTest.h996 DEPENDS997 libc.src.math.lrintf998 libc.src.__support.CPP.algorithm999 libc.src.__support.FPUtil.fenv_impl1000 libc.src.__support.FPUtil.fp_bits1001)1002 1003add_fp_unittest(1004 lrintl_test1005 NEED_MPFR1006 SUITE1007 libc-math-unittests1008 SRCS1009 lrintl_test.cpp1010 HDRS1011 RoundToIntegerTest.h1012 DEPENDS1013 libc.src.math.lrintl1014 libc.src.__support.CPP.algorithm1015 libc.src.__support.FPUtil.fenv_impl1016 libc.src.__support.FPUtil.fp_bits1017)1018 1019add_fp_unittest(1020 lrintf16_test1021 NEED_MPFR1022 SUITE1023 libc-math-unittests1024 SRCS1025 lrintf16_test.cpp1026 HDRS1027 RoundToIntegerTest.h1028 DEPENDS1029 libc.src.math.lrintf161030 libc.src.__support.CPP.algorithm1031 libc.src.__support.FPUtil.fenv_impl1032 libc.src.__support.FPUtil.fp_bits1033)1034 1035add_fp_unittest(1036 lrintbf16_test1037 NEED_MPFR1038 SUITE1039 libc-math-unittests1040 SRCS1041 lrintbf16_test.cpp1042 HDRS1043 RoundToIntegerTest.h1044 DEPENDS1045 libc.src.math.lrintbf161046 libc.src.__support.CPP.algorithm1047 libc.src.__support.FPUtil.bfloat161048 libc.src.__support.FPUtil.fenv_impl1049 libc.src.__support.FPUtil.fp_bits1050)1051 1052add_fp_unittest(1053 llrint_test1054 NEED_MPFR1055 SUITE1056 libc-math-unittests1057 SRCS1058 llrint_test.cpp1059 HDRS1060 RoundToIntegerTest.h1061 DEPENDS1062 libc.src.math.llrint1063 libc.src.__support.CPP.algorithm1064 libc.src.__support.FPUtil.fenv_impl1065 libc.src.__support.FPUtil.fp_bits1066)1067 1068add_fp_unittest(1069 llrintf_test1070 NEED_MPFR1071 SUITE1072 libc-math-unittests1073 SRCS1074 llrintf_test.cpp1075 HDRS1076 RoundToIntegerTest.h1077 DEPENDS1078 libc.src.math.llrintf1079 libc.src.__support.CPP.algorithm1080 libc.src.__support.FPUtil.fenv_impl1081 libc.src.__support.FPUtil.fp_bits1082)1083 1084add_fp_unittest(1085 llrintl_test1086 NEED_MPFR1087 SUITE1088 libc-math-unittests1089 SRCS1090 llrintl_test.cpp1091 HDRS1092 RoundToIntegerTest.h1093 DEPENDS1094 libc.src.math.llrintl1095 libc.src.__support.CPP.algorithm1096 libc.src.__support.FPUtil.fenv_impl1097 libc.src.__support.FPUtil.fp_bits1098)1099 1100add_fp_unittest(1101 llrintf16_test1102 NEED_MPFR1103 SUITE1104 libc-math-unittests1105 SRCS1106 llrintf16_test.cpp1107 HDRS1108 RoundToIntegerTest.h1109 DEPENDS1110 libc.src.math.llrintf161111 libc.src.__support.CPP.algorithm1112 libc.src.__support.FPUtil.fenv_impl1113 libc.src.__support.FPUtil.fp_bits1114)1115 1116add_fp_unittest(1117 llrintbf16_test1118 NEED_MPFR1119 SUITE1120 libc-math-unittests1121 SRCS1122 llrintbf16_test.cpp1123 HDRS1124 RoundToIntegerTest.h1125 DEPENDS1126 libc.src.math.llrintbf161127 libc.src.__support.CPP.algorithm1128 libc.src.__support.FPUtil.bfloat161129 libc.src.__support.FPUtil.fenv_impl1130 libc.src.__support.FPUtil.fp_bits1131)1132 1133add_fp_unittest(1134 exp_test1135 NEED_MPFR1136 SUITE1137 libc-math-unittests1138 SRCS1139 exp_test.cpp1140 DEPENDS1141 libc.src.math.exp1142 libc.src.__support.FPUtil.fp_bits1143)1144 1145add_fp_unittest(1146 expf_test1147 NEED_MPFR1148 SUITE1149 libc-math-unittests1150 SRCS1151 expf_test.cpp1152 DEPENDS1153 libc.src.errno.errno1154 libc.src.math.expf1155 libc.src.__support.FPUtil.fp_bits1156)1157 1158add_fp_unittest(1159 expf16_test1160 NEED_MPFR1161 SUITE1162 libc-math-unittests1163 SRCS1164 expf16_test.cpp1165 DEPENDS1166 libc.src.math.expf161167)1168 1169add_fp_unittest(1170 exp2_test1171 NEED_MPFR1172 SUITE1173 libc-math-unittests1174 SRCS1175 exp2_test.cpp1176 DEPENDS1177 libc.src.math.exp21178 libc.src.__support.FPUtil.fp_bits1179)1180 1181add_fp_unittest(1182 exp2f_test1183 NEED_MPFR1184 SUITE1185 libc-math-unittests1186 SRCS1187 exp2f_test.cpp1188 DEPENDS1189 libc.src.errno.errno1190 libc.src.math.exp2f1191 libc.src.__support.FPUtil.fp_bits1192)1193 1194add_fp_unittest(1195 exp2f16_test1196 NEED_MPFR1197 SUITE1198 libc-math-unittests1199 SRCS1200 exp2f16_test.cpp1201 DEPENDS1202 libc.src.math.exp2f161203)1204 1205add_fp_unittest(1206 exp2m1f_test1207 NEED_MPFR1208 SUITE1209 libc-math-unittests1210 SRCS1211 exp2m1f_test.cpp1212 DEPENDS1213 libc.src.errno.errno1214 libc.src.math.exp2m1f1215 libc.src.__support.CPP.array1216 libc.src.__support.FPUtil.fp_bits1217)1218 1219add_fp_unittest(1220 exp2m1f16_test1221 NEED_MPFR1222 SUITE1223 libc-math-unittests1224 SRCS1225 exp2m1f16_test.cpp1226 DEPENDS1227 libc.src.math.exp2m1f161228)1229 1230add_fp_unittest(1231 exp10_test1232 NEED_MPFR1233 SUITE1234 libc-math-unittests1235 SRCS1236 exp10_test.cpp1237 DEPENDS1238 libc.src.math.exp101239 libc.src.__support.FPUtil.fp_bits1240)1241 1242add_fp_unittest(1243 exp10f_test1244 NEED_MPFR1245 SUITE1246 libc-math-unittests1247 SRCS1248 exp10f_test.cpp1249 DEPENDS1250 libc.src.errno.errno1251 libc.src.math.exp10f1252 libc.src.__support.FPUtil.fp_bits1253)1254 1255add_fp_unittest(1256 exp10f16_test1257 NEED_MPFR1258 SUITE1259 libc-math-unittests1260 SRCS1261 exp10f16_test.cpp1262 DEPENDS1263 libc.src.math.exp10f161264)1265 1266add_fp_unittest(1267 exp10m1f16_test1268 NEED_MPFR1269 SUITE1270 libc-math-unittests1271 SRCS1272 exp10m1f16_test.cpp1273 DEPENDS1274 libc.src.math.exp10m1f161275)1276 1277add_fp_unittest(1278 exp10m1f_test1279 NEED_MPFR1280 SUITE1281 libc-math-unittests1282 SRCS1283 exp10m1f_test.cpp1284 DEPENDS1285 libc.hdr.math_macros1286 libc.src.errno.errno1287 libc.src.math.exp10m1f1288 libc.src.__support.CPP.array1289 libc.src.__support.FPUtil.fp_bits1290)1291 1292add_fp_unittest(1293 copysign_test1294 SUITE1295 libc-math-unittests1296 SRCS1297 copysign_test.cpp1298 HDRS1299 CopySignTest.h1300 DEPENDS1301 libc.src.math.copysign1302 libc.src.__support.FPUtil.fp_bits1303 # FIXME: Currently fails on the GPU build.1304 UNIT_TEST_ONLY1305)1306 1307add_fp_unittest(1308 copysignf_test1309 SUITE1310 libc-math-unittests1311 SRCS1312 copysignf_test.cpp1313 HDRS1314 CopySignTest.h1315 DEPENDS1316 libc.src.math.copysignf1317 libc.src.__support.FPUtil.fp_bits1318 # FIXME: Currently fails on the GPU build.1319 UNIT_TEST_ONLY1320)1321 1322add_fp_unittest(1323 copysignl_test1324 SUITE1325 libc-math-unittests1326 SRCS1327 copysignl_test.cpp1328 HDRS1329 CopySignTest.h1330 DEPENDS1331 libc.src.math.copysignl1332 libc.src.__support.FPUtil.fp_bits1333 # FIXME: Currently fails on the GPU build.1334 UNIT_TEST_ONLY1335)1336 1337add_fp_unittest(1338 frexp_test1339 NEED_MPFR1340 SUITE1341 libc-math-unittests1342 SRCS1343 frexp_test.cpp1344 HDRS1345 FrexpTest.h1346 DEPENDS1347 libc.src.math.frexp1348 libc.src.__support.FPUtil.basic_operations1349)1350 1351add_fp_unittest(1352 frexpf_test1353 NEED_MPFR1354 SUITE1355 libc-math-unittests1356 SRCS1357 frexpf_test.cpp1358 HDRS1359 FrexpTest.h1360 DEPENDS1361 libc.src.math.frexpf1362 libc.src.__support.FPUtil.basic_operations1363)1364 1365add_fp_unittest(1366 frexpl_test1367 NEED_MPFR1368 SUITE1369 libc-math-unittests1370 SRCS1371 frexpl_test.cpp1372 HDRS1373 FrexpTest.h1374 DEPENDS1375 libc.src.math.frexpl1376 libc.src.__support.FPUtil.basic_operations1377)1378 1379add_fp_unittest(1380 ilogb_test1381 SUITE1382 libc-math-unittests1383 SRCS1384 ilogb_test.cpp1385 HDRS1386 ILogbTest.h1387 DEPENDS1388 libc.src.math.ilogb1389 libc.src.__support.CPP.limits1390 libc.src.__support.FPUtil.fp_bits1391 libc.src.__support.FPUtil.manipulation_functions1392)1393 1394add_fp_unittest(1395 ilogbf_test1396 SUITE1397 libc-math-unittests1398 SRCS1399 ilogbf_test.cpp1400 HDRS1401 ILogbTest.h1402 DEPENDS1403 libc.src.math.ilogbf1404 libc.src.__support.CPP.limits1405 libc.src.__support.FPUtil.fp_bits1406 libc.src.__support.FPUtil.manipulation_functions1407)1408 1409add_fp_unittest(1410 ilogbl_test1411 SUITE1412 libc-math-unittests1413 SRCS1414 ilogbl_test.cpp1415 HDRS1416 ILogbTest.h1417 DEPENDS1418 libc.src.math.ilogbl1419 libc.src.__support.CPP.limits1420 libc.src.__support.FPUtil.fp_bits1421 libc.src.__support.FPUtil.manipulation_functions1422)1423 1424add_fp_unittest(1425 ldexp_test1426 SUITE1427 libc-math-unittests1428 SRCS1429 ldexp_test.cpp1430 HDRS1431 LdExpTest.h1432 DEPENDS1433 libc.src.math.ldexp1434 libc.src.__support.CPP.limits1435 libc.src.__support.FPUtil.fp_bits1436 libc.src.__support.FPUtil.normal_float1437)1438 1439add_fp_unittest(1440 ldexpf_test1441 SUITE1442 libc-math-unittests1443 SRCS1444 ldexpf_test.cpp1445 HDRS1446 LdExpTest.h1447 DEPENDS1448 libc.src.math.ldexpf1449 libc.src.__support.CPP.limits1450 libc.src.__support.FPUtil.fp_bits1451 libc.src.__support.FPUtil.normal_float1452)1453 1454add_fp_unittest(1455 ldexpl_test1456 SUITE1457 libc-math-unittests1458 SRCS1459 ldexpl_test.cpp1460 HDRS1461 LdExpTest.h1462 DEPENDS1463 libc.src.math.ldexpl1464 libc.src.__support.CPP.limits1465 libc.src.__support.FPUtil.fp_bits1466 libc.src.__support.FPUtil.normal_float1467)1468 1469add_fp_unittest(1470 logb_test1471 SUITE1472 libc-math-unittests1473 SRCS1474 logb_test.cpp1475 DEPENDS1476 libc.src.math.logb1477 libc.src.__support.FPUtil.manipulation_functions1478)1479 1480add_fp_unittest(1481 logbf_test1482 SUITE1483 libc-math-unittests1484 SRCS1485 logbf_test.cpp1486 DEPENDS1487 libc.src.math.logbf1488 libc.src.__support.FPUtil.manipulation_functions1489)1490 1491add_fp_unittest(1492 logbl_test1493 SUITE1494 libc-math-unittests1495 SRCS1496 logbl_test.cpp1497 HDRS1498 LogbTest.h1499 DEPENDS1500 libc.src.math.logbl1501 libc.src.__support.FPUtil.manipulation_functions1502)1503 1504add_fp_unittest(1505 modf_test1506 SUITE1507 libc-math-unittests1508 SRCS1509 modf_test.cpp1510 HDRS1511 ModfTest.h1512 DEPENDS1513 libc.src.math.modf1514 libc.src.__support.FPUtil.basic_operations1515 libc.src.__support.FPUtil.nearest_integer_operations1516 # Requires C++ limits.1517 UNIT_TEST_ONLY1518)1519 1520add_fp_unittest(1521 modff_test1522 SUITE1523 libc-math-unittests1524 SRCS1525 modff_test.cpp1526 HDRS1527 ModfTest.h1528 DEPENDS1529 libc.src.math.modff1530 libc.src.__support.FPUtil.basic_operations1531 libc.src.__support.FPUtil.nearest_integer_operations1532 # Requires C++ limits.1533 UNIT_TEST_ONLY1534)1535 1536add_fp_unittest(1537 modfl_test1538 SUITE1539 libc-math-unittests1540 SRCS1541 modfl_test.cpp1542 HDRS1543 ModfTest.h1544 DEPENDS1545 libc.src.math.modfl1546 libc.src.__support.FPUtil.basic_operations1547 libc.src.__support.FPUtil.nearest_integer_operations1548)1549 1550add_fp_unittest(1551 fdimf_test1552 SUITE1553 libc-math-unittests1554 SRCS1555 fdimf_test.cpp1556 HDRS1557 FDimTest.h1558 DEPENDS1559 libc.src.math.fdimf1560 libc.src.__support.FPUtil.basic_operations1561 libc.src.__support.FPUtil.fp_bits1562)1563 1564add_fp_unittest(1565 fdim_test1566 SUITE1567 libc-math-unittests1568 SRCS1569 fdim_test.cpp1570 HDRS1571 FDimTest.h1572 DEPENDS1573 libc.src.math.fdim1574 libc.src.__support.FPUtil.basic_operations1575 libc.src.__support.FPUtil.fp_bits1576)1577 1578add_fp_unittest(1579 fdiml_test1580 SUITE1581 libc-math-unittests1582 SRCS1583 fdiml_test.cpp1584 HDRS1585 FDimTest.h1586 DEPENDS1587 libc.src.math.fdiml1588 libc.src.__support.FPUtil.basic_operations1589 libc.src.__support.FPUtil.fp_bits1590)1591 1592add_fp_unittest(1593 fminf_test1594 SUITE1595 libc-math-unittests1596 SRCS1597 fminf_test.cpp1598 HDRS1599 FMinTest.h1600 DEPENDS1601 libc.src.math.fminf1602 libc.src.__support.FPUtil.fp_bits1603)1604 1605add_fp_unittest(1606 fmin_test1607 SUITE1608 libc-math-unittests1609 SRCS1610 fmin_test.cpp1611 HDRS1612 FMinTest.h1613 DEPENDS1614 libc.src.math.fmin1615 libc.src.__support.FPUtil.fp_bits1616)1617 1618add_fp_unittest(1619 fminl_test1620 SUITE1621 libc-math-unittests1622 SRCS1623 fminl_test.cpp1624 HDRS1625 FMinTest.h1626 DEPENDS1627 libc.src.math.fminl1628 libc.src.__support.FPUtil.fp_bits1629)1630 1631add_fp_unittest(1632 fmaxf_test1633 SUITE1634 libc-math-unittests1635 SRCS1636 fmaxf_test.cpp1637 HDRS1638 FMaxTest.h1639 DEPENDS1640 libc.src.math.fmaxf1641 libc.src.__support.FPUtil.fp_bits1642)1643 1644add_fp_unittest(1645 fmax_test1646 SUITE1647 libc-math-unittests1648 SRCS1649 fmax_test.cpp1650 HDRS1651 FMaxTest.h1652 DEPENDS1653 libc.src.math.fmax1654 libc.src.__support.FPUtil.fp_bits1655)1656 1657add_fp_unittest(1658 fmaxl_test1659 SUITE1660 libc-math-unittests1661 SRCS1662 fmaxl_test.cpp1663 HDRS1664 FMaxTest.h1665 DEPENDS1666 libc.src.math.fmaxl1667 libc.src.__support.FPUtil.fp_bits1668)1669 1670add_fp_unittest(1671 sqrtf_test1672 NEED_MPFR1673 SUITE1674 libc-math-unittests1675 SRCS1676 sqrtf_test.cpp1677 HDRS1678 SqrtTest.h1679 DEPENDS1680 libc.src.math.sqrtf1681)1682 1683add_fp_unittest(1684 sqrt_test1685 NEED_MPFR1686 SUITE1687 libc-math-unittests1688 SRCS1689 sqrt_test.cpp1690 HDRS1691 SqrtTest.h1692 DEPENDS1693 libc.src.math.sqrt1694)1695 1696add_fp_unittest(1697 sqrtl_test1698 NEED_MPFR1699 SUITE1700 libc-math-unittests1701 SRCS1702 sqrtl_test.cpp1703 HDRS1704 SqrtTest.h1705 DEPENDS1706 libc.src.math.sqrtl1707)1708 1709add_fp_unittest(1710 rsqrtf_test1711 NEED_MPFR1712 SUITE1713 libc-math-unittests1714 SRCS1715 rsqrtf_test.cpp1716 DEPENDS1717 libc.src.math.rsqrtf1718)1719 1720add_fp_unittest(1721 rsqrtf16_test1722 NEED_MPFR1723 SUITE1724 libc-math-unittests1725 SRCS1726 rsqrtf16_test.cpp1727 DEPENDS1728 libc.src.math.rsqrtf161729)1730 1731add_fp_unittest(1732 sqrtf16_test1733 NEED_MPFR1734 SUITE1735 libc-math-unittests1736 SRCS1737 sqrtf16_test.cpp1738 DEPENDS1739 libc.src.math.sqrtf161740)1741 1742add_fp_unittest(1743 sqrtf128_test1744 NEED_MPFR1745 SUITE1746 libc-math-unittests1747 SRCS1748 sqrtf128_test.cpp1749 HDRS1750 SqrtTest.h1751 DEPENDS1752 libc.src.math.sqrtf1281753)1754 1755add_fp_unittest(1756 sqrtbf16_test1757 NEED_MPFR1758 SUITE1759 libc-math-unittests1760 SRCS1761 sqrtbf16_test.cpp1762 DEPENDS1763 libc.src.math.sqrtbf161764 libc.src.__support.FPUtil.bfloat161765)1766 1767add_fp_unittest(1768 generic_sqrtf_test1769 NEED_MPFR1770 SUITE1771 libc-math-unittests1772 SRCS1773 generic_sqrtf_test.cpp1774 HDRS1775 SqrtTest.h1776 DEPENDS1777 libc.src.math.sqrtf1778 libc.src.__support.FPUtil.generic.sqrt1779 COMPILE_OPTIONS1780 ${libc_opt_high_flag}1781)1782 1783add_fp_unittest(1784 generic_sqrt_test1785 NEED_MPFR1786 SUITE1787 libc-math-unittests1788 SRCS1789 generic_sqrt_test.cpp1790 HDRS1791 SqrtTest.h1792 DEPENDS1793 libc.src.math.sqrt1794 libc.src.__support.FPUtil.generic.sqrt1795 COMPILE_OPTIONS1796 ${libc_opt_high_flag}1797)1798 1799add_fp_unittest(1800 generic_sqrtl_test1801 NEED_MPFR1802 SUITE1803 libc-math-unittests1804 SRCS1805 generic_sqrtl_test.cpp1806 HDRS1807 SqrtTest.h1808 DEPENDS1809 libc.src.math.sqrtl1810 libc.src.__support.FPUtil.generic.sqrt1811 COMPILE_OPTIONS1812 ${libc_opt_high_flag}1813)1814 1815add_fp_unittest(1816 remquof_test1817 NEED_MPFR1818 SUITE1819 libc-math-unittests1820 SRCS1821 remquof_test.cpp1822 HDRS1823 RemQuoTest.h1824 DEPENDS1825 libc.src.math.remquof1826 libc.src.__support.FPUtil.basic_operations1827 libc.src.__support.FPUtil.fp_bits1828)1829 1830add_fp_unittest(1831 remquo_test1832 NEED_MPFR1833 SUITE1834 libc-math-unittests1835 SRCS1836 remquo_test.cpp1837 HDRS1838 RemQuoTest.h1839 DEPENDS1840 libc.src.math.remquo1841 libc.src.__support.FPUtil.basic_operations1842 libc.src.__support.FPUtil.fp_bits1843)1844 1845add_fp_unittest(1846 remquol_test1847 NEED_MPFR1848 SUITE1849 libc-math-unittests1850 SRCS1851 remquol_test.cpp1852 HDRS1853 RemQuoTest.h1854 DEPENDS1855 libc.src.math.remquol1856 libc.src.__support.FPUtil.basic_operations1857 libc.src.__support.FPUtil.fp_bits1858)1859 1860add_fp_unittest(1861 hypotf_test1862 NEED_MPFR1863 SUITE1864 libc-math-unittests1865 SRCS1866 hypotf_test.cpp1867 DEPENDS1868 libc.src.math.hypotf1869 libc.src.__support.FPUtil.fp_bits1870)1871 1872add_fp_unittest(1873 hypot_test1874 NEED_MPFR1875 SUITE1876 libc-math-unittests1877 SRCS1878 hypot_test.cpp1879 DEPENDS1880 libc.src.math.hypot1881 libc.src.__support.FPUtil.fp_bits1882)1883 1884add_fp_unittest(1885 hypotf16_test1886 NEED_MPFR1887 SUITE1888 libc-math-unittests1889 SRCS1890 hypotf16_test.cpp1891 DEPENDS1892 libc.src.math.hypotf161893)1894 1895add_fp_unittest(1896 nextafter_test1897 SUITE1898 libc-math-unittests1899 SRCS1900 nextafter_test.cpp1901 HDRS1902 NextAfterTest.h1903 DEPENDS1904 libc.src.math.nextafter1905 libc.src.__support.FPUtil.basic_operations1906 libc.src.__support.FPUtil.fp_bits1907)1908 1909add_fp_unittest(1910 nextafterf_test1911 SUITE1912 libc-math-unittests1913 SRCS1914 nextafterf_test.cpp1915 HDRS1916 NextAfterTest.h1917 DEPENDS1918 libc.src.math.nextafterf1919 libc.src.__support.FPUtil.basic_operations1920 libc.src.__support.FPUtil.fp_bits1921)1922 1923add_fp_unittest(1924 nextafterl_test1925 SUITE1926 libc-math-unittests1927 SRCS1928 nextafterl_test.cpp1929 HDRS1930 NextAfterTest.h1931 DEPENDS1932 libc.src.math.nextafterl1933 libc.src.__support.FPUtil.basic_operations1934 libc.src.__support.FPUtil.fp_bits1935)1936 1937add_fp_unittest(1938 nextafterf128_test1939 SUITE1940 libc-math-unittests1941 SRCS1942 nextafterf128_test.cpp1943 HDRS1944 NextAfterTest.h1945 DEPENDS1946 libc.src.math.nextafterf1281947 libc.src.__support.FPUtil.basic_operations1948 libc.src.__support.FPUtil.fp_bits1949)1950 1951# TODO(lntue): The current implementation of fputil::general::fma<float> is only1952# correctly rounded for the default rounding mode round-to-nearest tie-to-even.1953add_fp_unittest(1954 fmaf_test1955 NEED_MPFR1956 SUITE1957 libc-math-unittests1958 SRCS1959 fmaf_test.cpp1960 HDRS1961 FmaTest.h1962 DEPENDS1963 libc.src.math.fmaf1964 libc.src.stdlib.rand1965 libc.src.stdlib.srand1966 FLAGS1967 FMA_OPT__ONLY1968)1969 1970add_fp_unittest(1971 fmaf16_test1972 NEED_MPFR1973 SUITE1974 libc-math-unittests1975 SRCS1976 fmaf16_test.cpp1977 HDRS1978 FmaTest.h1979 DEPENDS1980 libc.src.math.fmaf161981 libc.src.stdlib.rand1982 libc.src.stdlib.srand1983)1984 1985add_fp_unittest(1986 fma_test1987 NEED_MPFR1988 SUITE1989 libc-math-unittests1990 SRCS1991 fma_test.cpp1992 HDRS1993 FmaTest.h1994 DEPENDS1995 libc.src.math.fma1996 libc.src.stdlib.rand1997 libc.src.stdlib.srand1998)1999 2000add_fp_unittest(2001 tan_test2002 NEED_MPFR2003 SUITE2004 libc-math-unittests2005 SRCS2006 tan_test.cpp2007 DEPENDS2008 libc.src.math.tan2009 libc.src.__support.FPUtil.fp_bits2010)2011 2012add_fp_unittest(2013 expm1_test2014 NEED_MPFR2015 SUITE2016 libc-math-unittests2017 SRCS2018 expm1_test.cpp2019 DEPENDS2020 libc.src.math.expm12021 libc.src.__support.FPUtil.fp_bits2022)2023 2024add_fp_unittest(2025 expm1f_test2026 NEED_MPFR2027 SUITE2028 libc-math-unittests2029 SRCS2030 expm1f_test.cpp2031 DEPENDS2032 libc.src.errno.errno2033 libc.src.math.expm1f2034 libc.src.__support.FPUtil.fp_bits2035)2036 2037add_fp_unittest(2038 expm1f16_test2039 NEED_MPFR2040 SUITE2041 libc-math-unittests2042 SRCS2043 expm1f16_test.cpp2044 DEPENDS2045 libc.src.math.expm1f162046)2047 2048add_fp_unittest(2049 log_test2050 NEED_MPFR2051 SUITE2052 libc-math-unittests2053 SRCS2054 log_test.cpp2055 DEPENDS2056 libc.src.math.log2057 libc.src.__support.FPUtil.fp_bits2058)2059 2060add_fp_unittest(2061 logf_test2062 NEED_MPFR2063 SUITE2064 libc-math-unittests2065 SRCS2066 logf_test.cpp2067 DEPENDS2068 libc.src.math.logf2069 libc.src.__support.FPUtil.fp_bits2070)2071 2072add_fp_unittest(2073 logf16_test2074 NEED_MPFR2075 SUITE2076 libc-math-unittests2077 SRCS2078 logf16_test.cpp2079 DEPENDS2080 libc.src.math.logf162081)2082 2083add_fp_unittest(2084 log_bf16_test2085 NEED_MPFR2086 SUITE2087 libc-math-unittests2088 SRCS2089 log_bf16_test.cpp2090 DEPENDS2091 libc.src.math.log_bf162092 libc.src.__support.FPUtil.bfloat162093)2094 2095add_fp_unittest(2096log2_test2097 NEED_MPFR2098 SUITE2099 libc-math-unittests2100 SRCS2101 log2_test.cpp2102 DEPENDS2103 libc.src.math.log22104 libc.src.__support.FPUtil.fp_bits2105)2106 2107add_fp_unittest(2108 log2f_test2109 NEED_MPFR2110 SUITE2111 libc-math-unittests2112 SRCS2113 log2f_test.cpp2114 DEPENDS2115 libc.src.errno.errno2116 libc.src.math.log2f2117 libc.src.__support.FPUtil.fp_bits2118)2119 2120add_fp_unittest(2121 log2f16_test2122 NEED_MPFR2123 SUITE2124 libc-math-unittests2125 SRCS2126 log2f16_test.cpp2127 DEPENDS2128 libc.src.math.log2f162129)2130 2131add_fp_unittest(2132 log10_test2133 NEED_MPFR2134 SUITE2135 libc-math-unittests2136 SRCS2137 log10_test.cpp2138 DEPENDS2139 libc.src.math.log102140 libc.src.__support.FPUtil.fp_bits2141)2142 2143add_fp_unittest(2144 log10f_test2145 NEED_MPFR2146 SUITE2147 libc-math-unittests2148 SRCS2149 log10f_test.cpp2150 DEPENDS2151 libc.src.math.log10f2152 libc.src.__support.FPUtil.fp_bits2153)2154 2155add_fp_unittest(2156 log10f16_test2157 NEED_MPFR2158 SUITE2159 libc-math-unittests2160 SRCS2161 log10f16_test.cpp2162 DEPENDS2163 libc.src.math.log10f162164)2165 2166add_fp_unittest(2167log1p_test2168 NEED_MPFR2169 SUITE2170 libc-math-unittests2171 SRCS2172 log1p_test.cpp2173 DEPENDS2174 libc.src.math.log1p2175 libc.src.__support.FPUtil.fp_bits2176)2177 2178add_fp_unittest(2179 log1pf_test2180 NEED_MPFR2181 SUITE2182 libc-math-unittests2183 SRCS2184 log1pf_test.cpp2185 DEPENDS2186 libc.src.math.log1pf2187 libc.src.__support.FPUtil.fp_bits2188)2189 2190add_fp_unittest(2191 fmodf_test2192 SUITE2193 libc-math-unittests2194 SRCS2195 fmodf_test.cpp2196 HDRS2197 FModTest.h2198 DEPENDS2199 libc.hdr.errno_macros2200 libc.src.math.fmodf2201 libc.src.__support.FPUtil.basic_operations2202 libc.src.__support.FPUtil.nearest_integer_operations2203 # FIXME: Currently fails on the GPU build.2204 UNIT_TEST_ONLY2205)2206 2207add_fp_unittest(2208 fmod_test2209 SUITE2210 libc-math-unittests2211 SRCS2212 fmod_test.cpp2213 HDRS2214 FModTest.h2215 DEPENDS2216 libc.hdr.errno_macros2217 libc.src.math.fmod2218 libc.src.__support.FPUtil.basic_operations2219 libc.src.__support.FPUtil.nearest_integer_operations2220 # FIXME: Currently fails on the GPU build.2221 UNIT_TEST_ONLY2222)2223 2224add_fp_unittest(2225 explogxf_test2226 NEED_MPFR2227 SUITE2228 libc-math-unittests2229 HDRS2230 in_float_range_test_helper.h2231 SRCS2232 explogxf_test.cpp2233 DEPENDS2234 libc.src.math.generic.explogxf2235 libc.src.math.fabs2236 libc.src.math.fabsf2237 libc.src.__support.FPUtil.fp_bits2238)2239 2240add_fp_unittest(2241 coshf_test2242 NEED_MPFR2243 SUITE2244 libc-math-unittests2245 SRCS2246 coshf_test.cpp2247 HDRS2248 sdcomp26094.h2249 DEPENDS2250 libc.hdr.errno_macros2251 libc.src.math.coshf2252 libc.src.__support.CPP.array2253 libc.src.__support.FPUtil.fp_bits2254)2255 2256add_fp_unittest(2257 coshf16_test2258 NEED_MPFR2259 SUITE2260 libc-math-unittests2261 SRCS2262 coshf16_test.cpp2263 DEPENDS2264 libc.src.math.coshf162265)2266 2267add_fp_unittest(2268 sinhf_test2269 NEED_MPFR2270 SUITE2271 libc-math-unittests2272 SRCS2273 sinhf_test.cpp2274 HDRS2275 sdcomp26094.h2276 DEPENDS2277 libc.hdr.errno_macros2278 libc.src.math.sinhf2279 libc.src.__support.CPP.array2280 libc.src.__support.FPUtil.fp_bits2281)2282 2283add_fp_unittest(2284 sinhf16_test2285 NEED_MPFR2286 SUITE2287 libc-math-unittests2288 SRCS2289 sinhf16_test.cpp2290 DEPENDS2291 libc.src.math.sinhf162292)2293 2294add_fp_unittest(2295 tanhf_test2296 NEED_MPFR2297 SUITE2298 libc-math-unittests2299 SRCS2300 tanhf_test.cpp2301 DEPENDS2302 libc.src.math.tanhf2303 libc.src.__support.FPUtil.fp_bits2304)2305 2306add_fp_unittest(2307 tanhf16_test2308 NEED_MPFR2309 SUITE2310 libc-math-unittests2311 SRCS2312 tanhf16_test.cpp2313 DEPENDS2314 libc.src.math.tanhf162315)2316 2317add_fp_unittest(2318 atanhf_test2319 NEED_MPFR2320 SUITE2321 libc-math-unittests2322 SRCS2323 atanhf_test.cpp2324 DEPENDS2325 libc.hdr.errno_macros2326 libc.src.math.atanhf2327 libc.src.__support.FPUtil.fp_bits2328)2329 2330add_fp_unittest(2331 atanhf16_test2332 NEED_MPFR2333 SUITE2334 libc-math-unittests2335 SRCS2336 atanhf16_test.cpp2337 DEPENDS2338 libc.src.math.atanhf162339)2340 2341add_fp_unittest(2342 atanpif16_test2343 NEED_MPFR2344 SUITE2345 libc-math-unittests2346 SRCS2347 atanpif16_test.cpp2348 DEPENDS2349 libc.src.math.atanpif162350)2351 2352add_fp_unittest(2353 fmul_test2354 NEED_MPFR2355 SUITE2356 libc-math-unittests2357 SRCS2358 fmul_test.cpp2359 HDRS2360 MulTest.h2361 DEPENDS2362 libc.src.math.fmul2363 libc.src.stdlib.rand2364 libc.src.stdlib.srand2365)2366 2367add_fp_unittest(2368 fmull_test2369 NEED_MPFR2370 SUITE2371 libc-math-unittests2372 SRCS2373 fmull_test.cpp2374 HDRS2375 MulTest.h2376 DEPENDS2377 libc.src.math.fmull2378 libc.src.stdlib.rand2379 libc.src.stdlib.srand2380)2381 2382add_fp_unittest(2383 asinhf_test2384 NEED_MPFR2385 SUITE2386 libc-math-unittests2387 SRCS2388 asinhf_test.cpp2389 DEPENDS2390 libc.src.math.asinhf2391 libc.src.__support.FPUtil.fp_bits2392)2393 2394add_fp_unittest(2395 asinhf16_test2396 NEED_MPFR2397 SUITE2398 libc-math-unittests2399 SRCS2400 asinhf16_test.cpp2401 DEPENDS2402 libc.src.math.asinhf162403)2404 2405add_fp_unittest(2406 acoshf_test2407 NEED_MPFR2408 SUITE2409 libc-math-unittests2410 SRCS2411 acoshf_test.cpp2412 DEPENDS2413 libc.hdr.errno_macros2414 libc.src.math.acoshf2415 libc.src.__support.FPUtil.fp_bits2416)2417 2418add_fp_unittest(2419 acoshf16_test2420 NEED_MPFR2421 SUITE2422 libc-math-unittests2423 SRCS2424 acoshf16_test.cpp2425 DEPENDS2426 libc.src.math.acoshf162427)2428 2429add_fp_unittest(2430 asinf_test2431 NEED_MPFR2432 SUITE2433 libc-math-unittests2434 SRCS2435 asinf_test.cpp2436 DEPENDS2437 libc.hdr.errno_macros2438 libc.src.math.asinf2439 libc.src.__support.FPUtil.fp_bits2440)2441 2442add_fp_unittest(2443 asin_test2444 NEED_MPFR2445 SUITE2446 libc-math-unittests2447 SRCS2448 asin_test.cpp2449 DEPENDS2450 libc.src.math.asin2451)2452 2453add_fp_unittest(2454 asinf16_test2455 NEED_MPFR2456 SUITE2457 libc-math-unittests2458 SRCS2459 asinf16_test.cpp2460 DEPENDS2461 libc.src.math.asinf16 2462)2463 2464add_fp_unittest(2465 asinpif16_test2466 NEED_MPFR2467 SUITE2468 libc-math-unittests2469 SRCS2470 asinpif16_test.cpp2471 DEPENDS2472 libc.src.math.asinpif162473)2474 2475add_fp_unittest(2476 acosf_test2477 NEED_MPFR2478 SUITE2479 libc-math-unittests2480 SRCS2481 acosf_test.cpp2482 DEPENDS2483 libc.hdr.errno_macros2484 libc.src.math.acosf2485 libc.src.__support.FPUtil.fp_bits2486)2487 2488add_fp_unittest(2489 acos_test2490 NEED_MPFR2491 SUITE2492 libc-math-unittests2493 SRCS2494 acos_test.cpp2495 DEPENDS2496 libc.src.math.acos2497)2498 2499add_fp_unittest(2500 acosf16_test2501 NEED_MPFR2502 SUITE2503 libc-math-unittests2504 SRCS2505 acosf16_test.cpp2506 DEPENDS2507 libc.src.math.acosf16 2508)2509 2510add_fp_unittest(2511 acospif16_test2512 NEED_MPFR2513 SUITE2514 libc-math-unittests2515 SRCS2516 acospif16_test.cpp2517 DEPENDS2518 libc.src.math.acospif16 2519)2520 2521add_fp_unittest(2522 atanf_test2523 NEED_MPFR2524 SUITE2525 libc-math-unittests2526 SRCS2527 atanf_test.cpp2528 DEPENDS2529 libc.src.math.atanf2530 libc.src.__support.FPUtil.fp_bits2531)2532 2533add_fp_unittest(2534 atan_test2535 NEED_MPFR2536 SUITE2537 libc-math-unittests2538 SRCS2539 atan_test.cpp2540 DEPENDS2541 libc.src.math.atan2542 libc.src.__support.FPUtil.fp_bits2543)2544 2545add_fp_unittest(2546 atanf16_test2547 NEED_MPFR2548 SUITE2549 libc-math-unittests2550 SRCS2551 atanf16_test.cpp2552 DEPENDS2553 libc.src.math.atanf162554)2555 2556add_fp_unittest(2557 scalbn_test2558 NEED_MPFR2559 SUITE2560 libc-math-unittests2561 SRCS2562 scalbn_test.cpp2563 HDRS2564 ScalbnTest.h2565 DEPENDS2566 libc.src.math.scalbn2567 libc.src.__support.FPUtil.fp_bits2568 libc.src.__support.FPUtil.normal_float2569)2570 2571add_fp_unittest(2572 scalbnf_test2573 NEED_MPFR2574 SUITE2575 libc-math-unittests2576 SRCS2577 scalbnf_test.cpp2578 HDRS2579 ScalbnTest.h2580 DEPENDS2581 libc.src.math.scalbnf2582 libc.src.__support.FPUtil.fp_bits2583 libc.src.__support.FPUtil.normal_float2584)2585 2586add_fp_unittest(2587 scalbnl_test2588 NEED_MPFR2589 SUITE2590 libc-math-unittests2591 SRCS2592 scalbnl_test.cpp2593 HDRS2594 ScalbnTest.h2595 DEPENDS2596 libc.src.math.scalbnl2597 libc.src.__support.FPUtil.fp_bits2598 libc.src.__support.FPUtil.normal_float2599)2600 2601add_fp_unittest(2602 scalbnf128_test2603 NEED_MPFR2604 SUITE2605 libc-math-unittests2606 SRCS2607 scalbnf128_test.cpp2608 HDRS2609 ScalbnTest.h2610 DEPENDS2611 libc.src.math.scalbnf1282612 libc.src.__support.FPUtil.fp_bits2613 libc.src.__support.FPUtil.normal_float2614)2615 2616add_fp_unittest(2617 erff_test2618 NEED_MPFR2619 SUITE2620 libc-math-unittests2621 SRCS2622 erff_test.cpp2623 DEPENDS2624 libc.src.math.erff2625 libc.src.__support.FPUtil.fp_bits2626)2627 2628add_fp_unittest(2629 pow_test2630 NEED_MPFR2631 SUITE2632 libc-math-unittests2633 SRCS2634 pow_test.cpp2635 DEPENDS2636 libc.src.math.pow2637)2638 2639add_fp_unittest(2640 powf_test2641 NEED_MPFR2642 SUITE2643 libc-math-unittests2644 SRCS2645 powf_test.cpp2646 DEPENDS2647 libc.src.math.powf2648 libc.src.__support.FPUtil.fp_bits2649)2650 2651add_fp_unittest(2652 atan2f_test2653 NEED_MPFR2654 SUITE2655 libc-math-unittests2656 SRCS2657 atan2f_test.cpp2658 DEPENDS2659 libc.src.math.atan2f2660 libc.src.__support.FPUtil.fp_bits2661)2662 2663add_fp_unittest(2664 atan2_test2665 NEED_MPFR2666 SUITE2667 libc-math-unittests2668 SRCS2669 atan2_test.cpp2670 DEPENDS2671 libc.src.math.atan22672 libc.src.__support.FPUtil.fp_bits2673)2674 2675add_fp_unittest(2676 atan2f128_test2677 NEED_MPFR2678 SUITE2679 libc-math-unittests2680 SRCS2681 atan2f128_test.cpp2682 DEPENDS2683 libc.src.math.atan2f1282684 libc.src.__support.FPUtil.fp_bits2685)2686 2687add_fp_unittest(2688 f16add_test2689 NEED_MPFR2690 SUITE2691 libc-math-unittests2692 SRCS2693 f16add_test.cpp2694 HDRS2695 AddTest.h2696 DEPENDS2697 libc.src.math.f16add2698)2699 2700add_fp_unittest(2701 f16addf_test2702 NEED_MPFR2703 SUITE2704 libc-math-unittests2705 SRCS2706 f16addf_test.cpp2707 HDRS2708 AddTest.h2709 DEPENDS2710 libc.src.math.f16addf2711)2712 2713add_fp_unittest(2714 f16addl_test2715 NEED_MPFR2716 SUITE2717 libc-math-unittests2718 SRCS2719 f16addl_test.cpp2720 HDRS2721 AddTest.h2722 DEPENDS2723 libc.src.math.f16addl2724)2725 2726add_fp_unittest(2727 f16sub_test2728 NEED_MPFR2729 SUITE2730 libc-math-unittests2731 SRCS2732 f16sub_test.cpp2733 HDRS2734 SubTest.h2735 DEPENDS2736 libc.src.math.f16sub2737)2738 2739add_fp_unittest(2740 f16subf_test2741 NEED_MPFR2742 SUITE2743 libc-math-unittests2744 SRCS2745 f16subf_test.cpp2746 HDRS2747 SubTest.h2748 DEPENDS2749 libc.src.math.f16subf2750)2751 2752add_fp_unittest(2753 f16subl_test2754 NEED_MPFR2755 SUITE2756 libc-math-unittests2757 SRCS2758 f16subl_test.cpp2759 HDRS2760 SubTest.h2761 DEPENDS2762 libc.src.math.f16subl2763)2764 2765add_fp_unittest(2766 f16div_test2767 NEED_MPFR2768 SUITE2769 libc-math-unittests2770 SRCS2771 f16div_test.cpp2772 HDRS2773 DivTest.h2774 DEPENDS2775 libc.src.math.f16div2776)2777 2778add_fp_unittest(2779 f16divf_test2780 NEED_MPFR2781 SUITE2782 libc-math-unittests2783 SRCS2784 f16divf_test.cpp2785 HDRS2786 DivTest.h2787 DEPENDS2788 libc.src.math.f16divf2789)2790 2791add_fp_unittest(2792 f16divl_test2793 NEED_MPFR2794 SUITE2795 libc-math-unittests2796 SRCS2797 f16divl_test.cpp2798 HDRS2799 DivTest.h2800 DEPENDS2801 libc.src.math.f16divl2802)2803 2804add_fp_unittest(2805 f16fma_test2806 NEED_MPFR2807 SUITE2808 libc-math-unittests2809 SRCS2810 f16fma_test.cpp2811 HDRS2812 FmaTest.h2813 DEPENDS2814 libc.src.math.f16fma2815 libc.src.stdlib.rand2816 libc.src.stdlib.srand2817)2818 2819add_fp_unittest(2820 f16fmaf_test2821 NEED_MPFR2822 SUITE2823 libc-math-unittests2824 SRCS2825 f16fmaf_test.cpp2826 HDRS2827 FmaTest.h2828 DEPENDS2829 libc.src.math.f16fmaf2830 libc.src.stdlib.rand2831 libc.src.stdlib.srand2832)2833 2834add_fp_unittest(2835 f16fmal_test2836 NEED_MPFR2837 SUITE2838 libc-math-unittests2839 SRCS2840 f16fmal_test.cpp2841 HDRS2842 FmaTest.h2843 DEPENDS2844 libc.src.math.f16fmal2845 libc.src.stdlib.rand2846 libc.src.stdlib.srand2847)2848 2849add_fp_unittest(2850 f16sqrt_test2851 NEED_MPFR2852 SUITE2853 libc-math-unittests2854 SRCS2855 f16sqrt_test.cpp2856 HDRS2857 SqrtTest.h2858 DEPENDS2859 libc.src.math.f16sqrt2860)2861 2862add_fp_unittest(2863 f16sqrtf_test2864 NEED_MPFR2865 SUITE2866 libc-math-unittests2867 SRCS2868 f16sqrtf_test.cpp2869 HDRS2870 SqrtTest.h2871 DEPENDS2872 libc.src.math.f16sqrtf2873)2874 2875add_fp_unittest(2876 f16sqrtl_test2877 NEED_MPFR2878 SUITE2879 libc-math-unittests2880 SRCS2881 f16sqrtl_test.cpp2882 HDRS2883 SqrtTest.h2884 DEPENDS2885 libc.src.math.f16sqrtl2886)2887 2888add_fp_unittest(2889 fsqrt_test2890 NEED_MPFR2891 SUITE2892 libc-math-unittests2893 SRCS2894 fsqrt_test.cpp2895 HDRS2896 SqrtTest.h2897 DEPENDS2898 libc.src.math.fsqrt2899)2900 2901add_fp_unittest(2902 fsqrtl_test2903 NEED_MPFR2904 SUITE2905 libc-math-unittests2906 SRCS2907 fsqrtl_test.cpp2908 HDRS2909 SqrtTest.h2910 DEPENDS2911 libc.src.math.fsqrtl2912)2913 2914add_fp_unittest(2915 fsub_test2916 NEED_MPFR2917 SUITE2918 libc-math-unittests2919 SRCS2920 fsub_test.cpp2921 HDRS2922 SubTest.h2923 DEPENDS2924 libc.src.math.fsub2925)2926 2927add_fp_unittest(2928 fsubl_test2929 NEED_MPFR2930 SUITE2931 libc-math-unittests2932 SRCS2933 fsubl_test.cpp2934 HDRS2935 SubTest.h2936 DEPENDS2937 libc.src.math.fsubl2938)2939 2940add_fp_unittest(2941 dsqrtl_test2942 NEED_MPFR2943 SUITE2944 libc-math-unittests2945 SRCS2946 dsqrtl_test.cpp2947 HDRS2948 SqrtTest.h2949 DEPENDS2950 libc.src.math.dsqrtl2951)2952 2953add_fp_unittest(2954 cbrtf_test2955 NEED_MPFR2956 SUITE2957 libc-math-unittests2958 SRCS2959 cbrtf_test.cpp2960 DEPENDS2961 libc.src.math.cbrtf2962 libc.src.__support.FPUtil.fp_bits2963)2964 2965add_fp_unittest(2966 cbrt_test2967 NEED_MPFR2968 SUITE2969 libc-math-unittests2970 SRCS2971 cbrt_test.cpp2972 DEPENDS2973 libc.src.math.cbrt2974 libc.src.__support.FPUtil.fp_bits2975)2976 2977add_fp_unittest(2978 dmull_test2979 NEED_MPFR2980 SUITE2981 libc-math-unittests2982 SRCS2983 dmull_test.cpp2984 HDRS2985 MulTest.h2986 DEPENDS2987 libc.src.math.dmull2988 libc.src.stdlib.rand2989 libc.src.stdlib.srand2990)2991 2992add_fp_unittest(2993 f16mul_test2994 NEED_MPFR2995 SUITE2996 libc-math-unittests2997 SRCS2998 f16mul_test.cpp2999 HDRS3000 MulTest.h3001 DEPENDS3002 libc.src.math.f16mul3003 libc.src.stdlib.rand3004 libc.src.stdlib.srand3005)3006 3007add_fp_unittest(3008 f16mulf_test3009 NEED_MPFR3010 SUITE3011 libc-math-unittests3012 SRCS3013 f16mulf_test.cpp3014 HDRS3015 MulTest.h3016 DEPENDS3017 libc.src.math.f16mulf3018 libc.src.stdlib.rand3019 libc.src.stdlib.srand3020)3021 3022add_fp_unittest(3023 f16mull_test3024 NEED_MPFR3025 SUITE3026 libc-math-unittests3027 SRCS3028 f16mull_test.cpp3029 HDRS3030 MulTest.h3031 DEPENDS3032 libc.src.math.f16mull3033 libc.src.stdlib.rand3034 libc.src.stdlib.srand3035)3036 3037add_fp_unittest(3038 ddivl_test3039 NEED_MPFR3040 SUITE3041 libc-math-unittests3042 SRCS3043 ddivl_test.cpp3044 HDRS3045 DivTest.h3046 DEPENDS3047 libc.src.math.ddivl3048)3049 3050add_fp_unittest(3051 dfmal_test3052 NEED_MPFR3053 SUITE3054 libc-math-unittests3055 SRCS3056 dfmal_test.cpp3057 HDRS3058 FmaTest.h3059 DEPENDS3060 libc.src.math.dfmal3061 libc.src.stdlib.rand3062 libc.src.stdlib.srand3063)3064 3065add_fp_unittest(3066 dsubl_test3067 NEED_MPFR3068 SUITE3069 libc-math-unittests3070 SRCS3071 dsubl_test.cpp3072 HDRS3073 SubTest.h3074 DEPENDS3075 libc.src.math.dsubl3076)3077 3078add_fp_unittest(3079 fdiv_test3080 NEED_MPFR3081 SUITE3082 libc-math-unittests3083 SRCS3084 fdiv_test.cpp3085 HDRS3086 DivTest.h3087 DEPENDS3088 libc.src.math.fdiv3089)3090 3091add_fp_unittest(3092 fdivl_test3093 NEED_MPFR3094 SUITE3095 libc-math-unittests3096 SRCS3097 fdivl_test.cpp3098 HDRS3099 DivTest.h3100 DEPENDS3101 libc.src.math.fdivl3102)3103 3104add_fp_unittest(3105 ffma_test3106 NEED_MPFR3107 SUITE3108 libc-math-unittests3109 SRCS3110 ffma_test.cpp3111 HDRS3112 FmaTest.h3113 DEPENDS3114 libc.src.math.ffma3115 libc.src.stdlib.rand3116 libc.src.stdlib.srand3117)3118 3119add_fp_unittest(3120 ffmal_test3121 NEED_MPFR3122 SUITE3123 libc-math-unittests3124 SRCS3125 ffmal_test.cpp3126 HDRS3127 FmaTest.h3128 DEPENDS3129 libc.src.math.ffmal3130 libc.src.stdlib.rand3131 libc.src.stdlib.srand3132)3133 3134add_fp_unittest(3135 add_same_type_test3136 NEED_MPFR3137 SUITE3138 libc-math-unittests3139 SRCS3140 add_same_type_test.cpp3141 HDRS3142 AddTest.h3143 DEPENDS3144 libc.src.__support.CPP.algorithm3145 libc.src.__support.FPUtil.generic.add_sub3146 libc.src.__support.macros.properties.types3147)3148 3149add_fp_unittest(3150 sub_same_type_test3151 NEED_MPFR3152 SUITE3153 libc-math-unittests3154 SRCS3155 sub_same_type_test.cpp3156 HDRS3157 SubTest.h3158 DEPENDS3159 libc.src.__support.CPP.algorithm3160 libc.src.__support.FPUtil.generic.add_sub3161 libc.src.__support.macros.properties.types3162)3163 3164add_fp_unittest(3165 bf16add_test3166 NEED_MPFR3167 SUITE3168 libc-math-unittests3169 SRCS3170 bf16add_test.cpp3171 HDRS3172 AddTest.h3173 DEPENDS3174 libc.src.math.bf16add3175 libc.src.__support.FPUtil.bfloat163176)3177 3178add_fp_unittest(3179 bf16addf_test3180 NEED_MPFR3181 SUITE3182 libc-math-unittests3183 SRCS3184 bf16addf_test.cpp3185 HDRS3186 AddTest.h3187 DEPENDS3188 libc.src.math.bf16addf3189 libc.src.__support.FPUtil.bfloat163190)3191 3192add_fp_unittest(3193 bf16addl_test3194 NEED_MPFR3195 SUITE3196 libc-math-unittests3197 SRCS3198 bf16addl_test.cpp3199 HDRS3200 AddTest.h3201 DEPENDS3202 libc.src.math.bf16addl3203 libc.src.__support.FPUtil.bfloat163204)3205 3206add_fp_unittest(3207 bf16addf128_test3208 NEED_MPFR3209 SUITE3210 libc-math-unittests3211 SRCS3212 bf16addf128_test.cpp3213 HDRS3214 AddTest.h3215 DEPENDS3216 libc.src.math.bf16addf1283217 libc.src.__support.FPUtil.bfloat163218)3219 3220add_fp_unittest(3221 bf16div_test3222 NEED_MPFR3223 SUITE3224 libc-math-unittests3225 SRCS3226 bf16div_test.cpp3227 HDRS3228 DivTest.h3229 DEPENDS3230 libc.src.math.bf16div3231 libc.src.__support.FPUtil.bfloat163232)3233 3234add_fp_unittest(3235 bf16divf_test3236 NEED_MPFR3237 SUITE3238 libc-math-unittests3239 SRCS3240 bf16divf_test.cpp3241 HDRS3242 DivTest.h3243 DEPENDS3244 libc.src.math.bf16divf3245 libc.src.__support.FPUtil.bfloat163246)3247 3248add_fp_unittest(3249 bf16divl_test3250 NEED_MPFR3251 SUITE3252 libc-math-unittests3253 SRCS3254 bf16divl_test.cpp3255 HDRS3256 DivTest.h3257 DEPENDS3258 libc.src.math.bf16divl3259 libc.src.__support.FPUtil.bfloat163260)3261 3262add_fp_unittest(3263 bf16divf128_test3264 NEED_MPFR3265 SUITE3266 libc-math-unittests3267 SRCS3268 bf16divf128_test.cpp3269 HDRS3270 DivTest.h3271 DEPENDS3272 libc.src.math.bf16divf1283273 libc.src.__support.FPUtil.bfloat163274)3275 3276add_fp_unittest(3277 bf16fma_test3278 NEED_MPFR3279 SUITE3280 libc-math-unittests3281 SRCS3282 bf16fma_test.cpp3283 HDRS3284 FmaTest.h3285 DEPENDS3286 libc.src.math.bf16fma3287 libc.src.stdlib.rand3288 libc.src.stdlib.srand3289 libc.src.__support.FPUtil.bfloat163290)3291 3292add_fp_unittest(3293 bf16fmaf_test3294 NEED_MPFR3295 SUITE3296 libc-math-unittests3297 SRCS3298 bf16fmaf_test.cpp3299 HDRS3300 FmaTest.h3301 DEPENDS3302 libc.src.math.bf16fmaf3303 libc.src.stdlib.rand3304 libc.src.stdlib.srand3305 libc.src.__support.FPUtil.bfloat163306)3307 3308add_fp_unittest(3309 bf16fmal_test3310 NEED_MPFR3311 SUITE3312 libc-math-unittests3313 SRCS3314 bf16fmal_test.cpp3315 HDRS3316 FmaTest.h3317 DEPENDS3318 libc.src.math.bf16fmal3319 libc.src.stdlib.rand3320 libc.src.stdlib.srand3321 libc.src.__support.FPUtil.bfloat163322)3323 3324add_fp_unittest(3325 bf16fmaf128_test3326 NEED_MPFR3327 SUITE3328 libc-math-unittests3329 SRCS3330 bf16fmaf128_test.cpp3331 HDRS3332 FmaTest.h3333 DEPENDS3334 libc.src.math.bf16fmaf1283335 libc.src.stdlib.rand3336 libc.src.stdlib.srand3337 libc.src.__support.FPUtil.bfloat163338)3339 3340add_fp_unittest(3341 bf16mul_test3342 NEED_MPFR3343 SUITE3344 libc-math-unittests3345 SRCS3346 bf16mul_test.cpp3347 HDRS3348 MulTest.h3349 DEPENDS3350 libc.src.math.bf16mul3351 libc.src.stdlib.rand3352 libc.src.stdlib.srand3353 libc.src.__support.FPUtil.bfloat163354)3355 3356add_fp_unittest(3357 bf16mulf_test3358 NEED_MPFR3359 SUITE3360 libc-math-unittests3361 SRCS3362 bf16mulf_test.cpp3363 HDRS3364 MulTest.h3365 DEPENDS3366 libc.src.math.bf16mulf3367 libc.src.stdlib.rand3368 libc.src.stdlib.srand3369 libc.src.__support.FPUtil.bfloat163370)3371 3372add_fp_unittest(3373 bf16mull_test3374 NEED_MPFR3375 SUITE3376 libc-math-unittests3377 SRCS3378 bf16mull_test.cpp3379 HDRS3380 MulTest.h3381 DEPENDS3382 libc.src.math.bf16mull3383 libc.src.stdlib.rand3384 libc.src.stdlib.srand3385 libc.src.__support.FPUtil.bfloat163386)3387 3388add_fp_unittest(3389 bf16mulf128_test3390 NEED_MPFR3391 SUITE3392 libc-math-unittests3393 SRCS3394 bf16mulf128_test.cpp3395 HDRS3396 MulTest.h3397 DEPENDS3398 libc.src.math.bf16mulf1283399 libc.src.stdlib.rand3400 libc.src.stdlib.srand3401 libc.src.__support.FPUtil.bfloat163402)3403 3404add_fp_unittest(3405 bf16sub_test3406 NEED_MPFR3407 SUITE3408 libc-math-unittests3409 SRCS3410 bf16sub_test.cpp3411 HDRS3412 SubTest.h3413 DEPENDS3414 libc.src.math.bf16sub3415 libc.src.__support.FPUtil.bfloat163416)3417 3418add_fp_unittest(3419 bf16subf_test3420 NEED_MPFR3421 SUITE3422 libc-math-unittests3423 SRCS3424 bf16subf_test.cpp3425 HDRS3426 SubTest.h3427 DEPENDS3428 libc.src.math.bf16subf3429 libc.src.__support.FPUtil.bfloat163430)3431 3432add_fp_unittest(3433 bf16subl_test3434 NEED_MPFR3435 SUITE3436 libc-math-unittests3437 SRCS3438 bf16subl_test.cpp3439 HDRS3440 SubTest.h3441 DEPENDS3442 libc.src.math.bf16subl3443 libc.src.__support.FPUtil.bfloat163444)3445 3446add_fp_unittest(3447 bf16subf128_test3448 NEED_MPFR3449 SUITE3450 libc-math-unittests3451 SRCS3452 bf16subf128_test.cpp3453 HDRS3454 SubTest.h3455 DEPENDS3456 libc.src.math.bf16subf1283457 libc.src.__support.FPUtil.bfloat163458)3459 3460add_subdirectory(generic)3461add_subdirectory(smoke)3462 3463if(NOT LLVM_LIBC_FULL_BUILD)3464 add_subdirectory(exhaustive)3465 add_subdirectory(performance_testing)3466endif()3467