1724 lines · plain
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-exception4 5# Smoke tests for LLVM libc math.h functions.6 7load("//libc/test/src/math:libc_math_test_rules.bzl", "math_test")8 9package(default_visibility = ["//visibility:public"])10 11licenses(["notice"])12 13math_test(name = "acosf")14 15math_test(name = "acoshf")16 17math_test(name = "acosf16")18 19math_test(name = "asinf")20 21math_test(name = "asinf16")22 23math_test(name = "asinhf")24 25math_test(name = "atan2")26 27math_test(name = "atan2f")28 29math_test(name = "atan")30 31math_test(name = "atanf")32 33math_test(name = "atanhf")34 35math_test(36 name = "canonicalize",37 hdrs = ["CanonicalizeTest.h"],38 deps = [39 "//libc:__support_integer_literals",40 ],41)42 43math_test(44 name = "canonicalizef",45 hdrs = ["CanonicalizeTest.h"],46 deps = [47 "//libc:__support_integer_literals",48 ],49)50 51math_test(52 name = "canonicalizel",53 hdrs = ["CanonicalizeTest.h"],54 deps = [55 "//libc:__support_integer_literals",56 ],57)58 59math_test(60 name = "canonicalizef128",61 hdrs = ["CanonicalizeTest.h"],62 deps = [63 "//libc:__support_integer_literals",64 ],65)66 67math_test(68 name = "canonicalizef16",69 hdrs = ["CanonicalizeTest.h"],70 deps = [71 "//libc:__support_integer_literals",72 ],73)74 75math_test(76 name = "iscanonicalf16",77 hdrs = ["IsCanonicalTest.h"],78)79 80math_test(name = "cbrt")81 82math_test(name = "cbrtf")83 84math_test(85 name = "ceil",86 hdrs = ["CeilTest.h"],87)88 89math_test(90 name = "ceilf",91 hdrs = ["CeilTest.h"],92)93 94math_test(95 name = "ceill",96 hdrs = ["CeilTest.h"],97)98 99math_test(100 name = "ceilf128",101 hdrs = ["CeilTest.h"],102)103 104math_test(105 name = "ceilf16",106 hdrs = ["CeilTest.h"],107)108 109math_test(110 name = "copysign",111 hdrs = ["CopySignTest.h"],112)113 114math_test(115 name = "copysignf",116 hdrs = ["CopySignTest.h"],117)118 119math_test(120 name = "copysignl",121 hdrs = ["CopySignTest.h"],122)123 124math_test(125 name = "copysignf128",126 hdrs = ["CopySignTest.h"],127)128 129math_test(130 name = "copysignf16",131 hdrs = ["CopySignTest.h"],132)133 134math_test(name = "cos")135 136math_test(name = "cosf")137 138math_test(139 name = "coshf",140 deps = [141 "//libc:__support_cpp_array",142 ],143)144 145math_test(name = "cospif")146 147math_test(148 name = "daddl",149 hdrs = ["AddTest.h"],150)151 152math_test(153 name = "daddf128",154 hdrs = ["AddTest.h"],155)156 157math_test(158 name = "f16add",159 hdrs = ["AddTest.h"],160)161 162math_test(163 name = "f16addf",164 hdrs = ["AddTest.h"],165)166 167math_test(168 name = "f16addl",169 hdrs = ["AddTest.h"],170)171 172math_test(173 name = "ddivl",174 hdrs = ["DivTest.h"],175)176 177math_test(178 name = "ddivf128",179 hdrs = ["DivTest.h"],180)181 182math_test(183 name = "f16div",184 hdrs = ["DivTest.h"],185)186 187math_test(188 name = "f16divf",189 hdrs = ["DivTest.h"],190)191 192math_test(193 name = "f16divl",194 hdrs = ["DivTest.h"],195)196 197math_test(198 name = "dfmal",199 hdrs = ["FmaTest.h"],200)201 202math_test(203 name = "dfmaf128",204 hdrs = ["FmaTest.h"],205)206 207math_test(208 name = "f16fma",209 hdrs = ["FmaTest.h"],210)211 212math_test(213 name = "f16fmaf",214 hdrs = ["FmaTest.h"],215)216 217math_test(218 name = "f16fmal",219 hdrs = ["FmaTest.h"],220)221 222math_test(223 name = "dmull",224 hdrs = ["MulTest.h"],225)226 227math_test(228 name = "dmulf128",229 hdrs = ["MulTest.h"],230)231 232math_test(233 name = "f16mul",234 hdrs = ["MulTest.h"],235)236 237math_test(238 name = "f16mulf",239 hdrs = ["MulTest.h"],240)241 242math_test(243 name = "f16mull",244 hdrs = ["MulTest.h"],245)246 247math_test(248 name = "fsqrt",249 hdrs = ["SqrtTest.h"],250)251 252math_test(253 name = "fsqrtl",254 hdrs = ["SqrtTest.h"],255)256 257math_test(258 name = "fsqrtf128",259 hdrs = ["SqrtTest.h"],260)261 262math_test(263 name = "dsqrtl",264 hdrs = ["SqrtTest.h"],265)266 267math_test(268 name = "dsqrtf128",269 hdrs = ["SqrtTest.h"],270)271 272math_test(273 name = "sqrt",274 hdrs = ["SqrtTest.h"],275)276 277math_test(278 name = "sqrtf",279 hdrs = ["SqrtTest.h"],280)281 282math_test(283 name = "sqrtl",284 hdrs = ["SqrtTest.h"],285)286 287math_test(288 name = "sqrtf128",289 hdrs = ["SqrtTest.h"],290)291 292math_test(293 name = "f16sqrt",294 hdrs = ["SqrtTest.h"],295)296 297math_test(298 name = "f16sqrtf",299 hdrs = ["SqrtTest.h"],300)301 302math_test(303 name = "sqrtf16",304 hdrs = ["SqrtTest.h"],305)306 307math_test(308 name = "f16sqrtl",309 hdrs = ["SqrtTest.h"],310)311 312math_test(313 name = "dsubl",314 hdrs = ["SubTest.h"],315)316 317math_test(318 name = "dsubf128",319 hdrs = ["SubTest.h"],320)321 322math_test(323 name = "f16sub",324 hdrs = ["SubTest.h"],325)326 327math_test(328 name = "f16subf",329 hdrs = ["SubTest.h"],330)331 332math_test(333 name = "f16subl",334 hdrs = ["SubTest.h"],335)336 337math_test(name = "erff")338 339math_test(name = "exp")340 341math_test(name = "expf")342 343math_test(name = "exp10")344 345math_test(name = "exp10f")346 347math_test(name = "exp2")348 349math_test(name = "exp2f")350 351math_test(name = "exp2m1f")352 353math_test(name = "expm1")354 355math_test(name = "expm1f")356 357math_test(358 name = "fabs",359 hdrs = ["FAbsTest.h"],360)361 362math_test(363 name = "fabsf",364 hdrs = ["FAbsTest.h"],365)366 367math_test(368 name = "fabsl",369 hdrs = ["FAbsTest.h"],370)371 372math_test(373 name = "fabsf128",374 hdrs = ["FAbsTest.h"],375)376 377math_test(378 name = "fabsf16",379 hdrs = ["FAbsTest.h"],380)381 382math_test(383 name = "fadd",384 hdrs = ["AddTest.h"],385)386 387math_test(388 name = "faddl",389 hdrs = ["AddTest.h"],390)391 392math_test(393 name = "faddf128",394 hdrs = ["AddTest.h"],395)396 397math_test(398 name = "fdim",399 hdrs = ["FDimTest.h"],400)401 402math_test(403 name = "fdimf",404 hdrs = ["FDimTest.h"],405)406 407math_test(408 name = "fdiml",409 hdrs = ["FDimTest.h"],410)411 412math_test(413 name = "fdimf128",414 hdrs = ["FDimTest.h"],415)416 417math_test(418 name = "fdimf16",419 hdrs = ["FDimTest.h"],420)421 422math_test(423 name = "fdiv",424 hdrs = ["DivTest.h"],425)426 427math_test(428 name = "fdivl",429 hdrs = ["DivTest.h"],430)431 432math_test(433 name = "fdivf128",434 hdrs = ["DivTest.h"],435)436 437math_test(438 name = "ffma",439 hdrs = ["FmaTest.h"],440)441 442math_test(443 name = "ffmal",444 hdrs = ["FmaTest.h"],445)446 447math_test(448 name = "ffmaf128",449 hdrs = ["FmaTest.h"],450)451 452math_test(453 name = "floor",454 hdrs = ["FloorTest.h"],455)456 457math_test(458 name = "floorf",459 hdrs = ["FloorTest.h"],460)461 462math_test(463 name = "floorl",464 hdrs = ["FloorTest.h"],465)466 467math_test(468 name = "floorf128",469 hdrs = ["FloorTest.h"],470)471 472math_test(473 name = "floorf16",474 hdrs = ["FloorTest.h"],475)476 477math_test(478 name = "fma",479 hdrs = ["FmaTest.h"],480)481 482math_test(483 name = "fmaf",484 hdrs = ["FmaTest.h"],485)486 487math_test(488 name = "fmaf16",489 hdrs = ["FmaTest.h"],490)491 492math_test(493 name = "fmax",494 hdrs = ["FMaxTest.h"],495)496 497math_test(498 name = "fmaxf",499 hdrs = ["FMaxTest.h"],500)501 502math_test(503 name = "fmaxl",504 hdrs = ["FMaxTest.h"],505)506 507math_test(508 name = "fmaxf128",509 hdrs = ["FMaxTest.h"],510)511 512math_test(513 name = "fmaxf16",514 hdrs = ["FMaxTest.h"],515)516 517math_test(518 name = "fmaximum",519 hdrs = ["FMaximumTest.h"],520)521 522math_test(523 name = "fmaximumf",524 hdrs = ["FMaximumTest.h"],525)526 527math_test(528 name = "fmaximuml",529 hdrs = ["FMaximumTest.h"],530)531 532math_test(533 name = "fmaximumf128",534 hdrs = ["FMaximumTest.h"],535)536 537math_test(538 name = "fmaximum_mag",539 hdrs = ["FMaximumMagTest.h"],540)541 542math_test(543 name = "fmaximum_magf",544 hdrs = ["FMaximumMagTest.h"],545)546 547math_test(548 name = "fmaximum_magl",549 hdrs = ["FMaximumMagTest.h"],550)551 552math_test(553 name = "fmaximum_magf128",554 hdrs = ["FMaximumMagTest.h"],555)556 557math_test(558 name = "fmaximum_mag_num",559 hdrs = ["FMaximumMagNumTest.h"],560)561 562math_test(563 name = "fmaximum_mag_numf",564 hdrs = ["FMaximumMagNumTest.h"],565)566 567math_test(568 name = "fmaximum_mag_numl",569 hdrs = ["FMaximumMagNumTest.h"],570)571 572math_test(573 name = "fmaximum_mag_numf128",574 hdrs = ["FMaximumMagNumTest.h"],575)576 577math_test(578 name = "fmaximum_num",579 hdrs = ["FMaximumNumTest.h"],580)581 582math_test(583 name = "fmaximum_numf",584 hdrs = ["FMaximumNumTest.h"],585)586 587math_test(588 name = "fmaximum_numl",589 hdrs = ["FMaximumNumTest.h"],590)591 592math_test(593 name = "fmaximum_numf128",594 hdrs = ["FMaximumNumTest.h"],595)596 597math_test(598 name = "fmaximum_mag_numf16",599 hdrs = ["FMaximumMagNumTest.h"],600)601 602math_test(603 name = "fmaximum_magf16",604 hdrs = ["FMaximumMagTest.h"],605)606 607math_test(608 name = "fmaximum_numf16",609 hdrs = ["FMaximumNumTest.h"],610)611 612math_test(613 name = "fmaximumf16",614 hdrs = ["FMaximumTest.h"],615)616 617math_test(618 name = "fmin",619 hdrs = ["FMinTest.h"],620)621 622math_test(623 name = "fminf",624 hdrs = ["FMinTest.h"],625)626 627math_test(628 name = "fminl",629 hdrs = ["FMinTest.h"],630)631 632math_test(633 name = "fminf128",634 hdrs = ["FMinTest.h"],635)636 637math_test(638 name = "fminf16",639 hdrs = ["FMinTest.h"],640)641 642math_test(643 name = "fminimum",644 hdrs = ["FMinimumTest.h"],645)646 647math_test(648 name = "fminimumf",649 hdrs = ["FMinimumTest.h"],650)651 652math_test(653 name = "fminimuml",654 hdrs = ["FMinimumTest.h"],655)656 657math_test(658 name = "fminimumf128",659 hdrs = ["FMinimumTest.h"],660)661 662math_test(663 name = "fminimum_mag",664 hdrs = ["FMinimumMagTest.h"],665)666 667math_test(668 name = "fminimum_magf",669 hdrs = ["FMinimumMagTest.h"],670)671 672math_test(673 name = "fminimum_magl",674 hdrs = ["FMinimumMagTest.h"],675)676 677math_test(678 name = "fminimum_magf128",679 hdrs = ["FMinimumMagTest.h"],680)681 682math_test(683 name = "fminimum_magf16",684 hdrs = ["FMinimumMagTest.h"],685)686 687math_test(688 name = "fminimum_mag_num",689 hdrs = ["FMinimumMagNumTest.h"],690)691 692math_test(693 name = "fminimum_mag_numf",694 hdrs = ["FMinimumMagNumTest.h"],695)696 697math_test(698 name = "fminimum_mag_numl",699 hdrs = ["FMinimumMagNumTest.h"],700)701 702math_test(703 name = "fminimum_mag_numf128",704 hdrs = ["FMinimumMagNumTest.h"],705)706 707math_test(708 name = "fminimum_mag_numf16",709 hdrs = ["FMinimumMagNumTest.h"],710)711 712math_test(713 name = "fminimum_num",714 hdrs = ["FMinimumNumTest.h"],715)716 717math_test(718 name = "fminimum_numf",719 hdrs = ["FMinimumNumTest.h"],720)721 722math_test(723 name = "fminimum_numl",724 hdrs = ["FMinimumNumTest.h"],725)726 727math_test(728 name = "fminimum_numf128",729 hdrs = ["FMinimumNumTest.h"],730)731 732math_test(733 name = "fminimum_numf16",734 hdrs = ["FMinimumNumTest.h"],735)736 737math_test(738 name = "fminimumf16",739 hdrs = ["FMinimumTest.h"],740)741 742math_test(743 name = "fmod",744 hdrs = ["FModTest.h"],745)746 747math_test(748 name = "fmodbf16",749 hdrs = [750 "FModTest.h",751 ],752 deps = [753 "//libc:__support_fputil_bfloat16",754 ],755)756 757math_test(758 name = "fmodf",759 hdrs = ["FModTest.h"],760)761 762math_test(763 name = "fmodl",764 hdrs = ["FModTest.h"],765)766 767math_test(768 name = "fmodf128",769 hdrs = ["FModTest.h"],770)771 772math_test(773 name = "fmodf16",774 hdrs = ["FModTest.h"],775)776 777math_test(778 name = "fmul",779 hdrs = ["MulTest.h"],780)781 782math_test(783 name = "fmull",784 hdrs = ["MulTest.h"],785)786 787math_test(788 name = "fmulf128",789 hdrs = ["MulTest.h"],790)791 792math_test(793 name = "frexp",794 hdrs = ["FrexpTest.h"],795)796 797math_test(798 name = "frexpf",799 hdrs = ["FrexpTest.h"],800)801 802math_test(803 name = "frexpl",804 hdrs = ["FrexpTest.h"],805)806 807math_test(808 name = "frexpf128",809 hdrs = ["FrexpTest.h"],810)811 812math_test(813 name = "frexpf16",814 hdrs = ["FrexpTest.h"],815)816 817math_test(818 name = "fromfp",819 hdrs = ["FromfpTest.h"],820)821 822math_test(823 name = "fromfpf",824 hdrs = ["FromfpTest.h"],825)826 827math_test(828 name = "fromfpl",829 hdrs = ["FromfpTest.h"],830)831 832math_test(833 name = "fromfpf128",834 hdrs = ["FromfpTest.h"],835)836 837math_test(838 name = "fromfpf16",839 hdrs = ["FromfpTest.h"],840)841 842math_test(843 name = "fromfpx",844 hdrs = ["FromfpxTest.h"],845)846 847math_test(848 name = "fromfpxf",849 hdrs = ["FromfpxTest.h"],850)851 852math_test(853 name = "fromfpxl",854 hdrs = ["FromfpxTest.h"],855)856 857math_test(858 name = "fromfpxf128",859 hdrs = ["FromfpxTest.h"],860)861 862math_test(863 name = "fromfpxf16",864 hdrs = ["FromfpxTest.h"],865)866 867math_test(868 name = "fsub",869 hdrs = ["SubTest.h"],870)871 872math_test(873 name = "fsubl",874 hdrs = ["SubTest.h"],875)876 877math_test(878 name = "fsubf128",879 hdrs = ["SubTest.h"],880)881 882math_test(883 name = "getpayload",884 hdrs = ["GetPayloadTest.h"],885)886 887math_test(888 name = "getpayloadf",889 hdrs = ["GetPayloadTest.h"],890)891 892math_test(893 name = "getpayloadl",894 hdrs = ["GetPayloadTest.h"],895)896 897math_test(898 name = "getpayloadf128",899 hdrs = ["GetPayloadTest.h"],900)901 902math_test(903 name = "getpayloadf16",904 hdrs = ["GetPayloadTest.h"],905)906 907math_test(908 name = "hypot",909 hdrs = ["HypotTest.h"],910)911 912math_test(913 name = "hypotf",914 hdrs = ["HypotTest.h"],915)916 917math_test(918 name = "hypotf16",919 hdrs = ["HypotTest.h"],920)921 922math_test(923 name = "ilogb",924 hdrs = ["ILogbTest.h"],925)926 927math_test(928 name = "ilogbf",929 hdrs = ["ILogbTest.h"],930)931 932math_test(933 name = "ilogbl",934 hdrs = ["ILogbTest.h"],935)936 937math_test(938 name = "ilogbf128",939 hdrs = ["ILogbTest.h"],940)941 942math_test(943 name = "ldexp",944 hdrs = ["LdExpTest.h"],945)946 947math_test(948 name = "ldexpf",949 hdrs = ["LdExpTest.h"],950)951 952math_test(953 name = "ldexpl",954 hdrs = ["LdExpTest.h"],955)956 957math_test(958 name = "ldexpf128",959 hdrs = ["LdExpTest.h"],960)961 962math_test(963 name = "ldexpf16",964 hdrs = ["LdExpTest.h"],965)966 967math_test(968 name = "llogb",969 hdrs = ["ILogbTest.h"],970)971 972math_test(973 name = "llogbf",974 hdrs = ["ILogbTest.h"],975)976 977math_test(978 name = "llogbl",979 hdrs = ["ILogbTest.h"],980)981 982math_test(983 name = "llogbf128",984 hdrs = ["ILogbTest.h"],985)986 987math_test(988 name = "ilogbf16",989 hdrs = ["ILogbTest.h"],990)991 992math_test(993 name = "llogbf16",994 hdrs = ["ILogbTest.h"],995)996 997math_test(998 name = "llrint",999 hdrs = ["RoundToIntegerTest.h"],1000)1001 1002math_test(1003 name = "llrintf",1004 hdrs = ["RoundToIntegerTest.h"],1005)1006 1007math_test(1008 name = "llrintl",1009 hdrs = ["RoundToIntegerTest.h"],1010)1011 1012math_test(1013 name = "llrintf128",1014 hdrs = ["RoundToIntegerTest.h"],1015)1016 1017math_test(1018 name = "llrintf16",1019 hdrs = ["RoundToIntegerTest.h"],1020)1021 1022math_test(1023 name = "lrintf16",1024 hdrs = ["RoundToIntegerTest.h"],1025)1026 1027math_test(1028 name = "llround",1029 hdrs = ["RoundToIntegerTest.h"],1030)1031 1032math_test(1033 name = "llroundf",1034 hdrs = ["RoundToIntegerTest.h"],1035)1036 1037math_test(1038 name = "llroundl",1039 hdrs = ["RoundToIntegerTest.h"],1040)1041 1042math_test(1043 name = "llroundf128",1044 hdrs = ["RoundToIntegerTest.h"],1045)1046 1047math_test(1048 name = "llroundf16",1049 hdrs = ["RoundToIntegerTest.h"],1050)1051 1052math_test(1053 name = "lroundf16",1054 hdrs = ["RoundToIntegerTest.h"],1055)1056 1057math_test(name = "log")1058 1059math_test(name = "logf")1060 1061math_test(name = "log10")1062 1063math_test(name = "log10f")1064 1065math_test(name = "log1p")1066 1067math_test(name = "log1pf")1068 1069math_test(name = "log2")1070 1071math_test(name = "log2f")1072 1073math_test(1074 name = "logb",1075 hdrs = ["LogbTest.h"],1076)1077 1078math_test(1079 name = "logbf",1080 hdrs = ["LogbTest.h"],1081)1082 1083math_test(1084 name = "logbl",1085 hdrs = ["LogbTest.h"],1086)1087 1088math_test(1089 name = "logbf128",1090 hdrs = ["LogbTest.h"],1091)1092 1093math_test(1094 name = "logbf16",1095 hdrs = ["LogbTest.h"],1096)1097 1098math_test(1099 name = "lrint",1100 hdrs = ["RoundToIntegerTest.h"],1101)1102 1103math_test(1104 name = "lrintf",1105 hdrs = ["RoundToIntegerTest.h"],1106)1107 1108math_test(1109 name = "lrintl",1110 hdrs = ["RoundToIntegerTest.h"],1111)1112 1113math_test(1114 name = "lrintf128",1115 hdrs = ["RoundToIntegerTest.h"],1116)1117 1118math_test(1119 name = "lround",1120 hdrs = ["RoundToIntegerTest.h"],1121)1122 1123math_test(1124 name = "lroundf",1125 hdrs = ["RoundToIntegerTest.h"],1126)1127 1128math_test(1129 name = "lroundl",1130 hdrs = ["RoundToIntegerTest.h"],1131)1132 1133math_test(1134 name = "lroundf128",1135 hdrs = ["RoundToIntegerTest.h"],1136)1137 1138math_test(1139 name = "modf",1140 hdrs = ["ModfTest.h"],1141)1142 1143math_test(1144 name = "modff",1145 hdrs = ["ModfTest.h"],1146)1147 1148math_test(1149 name = "modfl",1150 hdrs = ["ModfTest.h"],1151)1152 1153math_test(1154 name = "modff128",1155 hdrs = ["ModfTest.h"],1156)1157 1158math_test(1159 name = "modff16",1160 hdrs = ["ModfTest.h"],1161)1162 1163# TODO: add nan tests.1164 1165math_test(1166 name = "nearbyint",1167 hdrs = ["NearbyIntTest.h"],1168)1169 1170math_test(1171 name = "nearbyintf",1172 hdrs = ["NearbyIntTest.h"],1173)1174 1175math_test(1176 name = "nearbyintl",1177 hdrs = ["NearbyIntTest.h"],1178)1179 1180math_test(1181 name = "nearbyintf128",1182 hdrs = ["NearbyIntTest.h"],1183)1184 1185math_test(1186 name = "nearbyintf16",1187 hdrs = ["NearbyIntTest.h"],1188)1189 1190math_test(1191 name = "nextafter",1192 hdrs = ["NextAfterTest.h"],1193 deps = ["//libc:__support_sign"],1194)1195 1196math_test(1197 name = "nextafterf",1198 hdrs = ["NextAfterTest.h"],1199 deps = ["//libc:__support_sign"],1200)1201 1202math_test(1203 name = "nextafterl",1204 hdrs = ["NextAfterTest.h"],1205 deps = ["//libc:__support_sign"],1206)1207 1208math_test(1209 name = "nextafterf128",1210 hdrs = ["NextAfterTest.h"],1211 deps = ["//libc:__support_sign"],1212)1213 1214math_test(1215 name = "nextafterf16",1216 hdrs = ["NextAfterTest.h"],1217 deps = ["//libc:__support_sign"],1218)1219 1220math_test(1221 name = "nextdown",1222 hdrs = ["NextDownTest.h"],1223)1224 1225math_test(1226 name = "nextdownf",1227 hdrs = ["NextDownTest.h"],1228)1229 1230math_test(1231 name = "nextdownl",1232 hdrs = ["NextDownTest.h"],1233)1234 1235math_test(1236 name = "nextdownf128",1237 hdrs = ["NextDownTest.h"],1238)1239 1240math_test(1241 name = "nextdownf16",1242 hdrs = ["NextDownTest.h"],1243)1244 1245math_test(1246 name = "nexttoward",1247 hdrs = ["NextTowardTest.h"],1248)1249 1250math_test(1251 name = "nexttowardf",1252 hdrs = ["NextTowardTest.h"],1253)1254 1255math_test(1256 name = "nexttowardl",1257 hdrs = ["NextTowardTest.h"],1258)1259 1260math_test(1261 name = "nexttowardf16",1262 hdrs = ["NextTowardTest.h"],1263)1264 1265math_test(1266 name = "nextup",1267 hdrs = ["NextUpTest.h"],1268)1269 1270math_test(1271 name = "nextupf",1272 hdrs = ["NextUpTest.h"],1273)1274 1275math_test(1276 name = "nextupl",1277 hdrs = ["NextUpTest.h"],1278)1279 1280math_test(1281 name = "nextupf128",1282 hdrs = ["NextUpTest.h"],1283)1284 1285math_test(1286 name = "nextupf16",1287 hdrs = ["NextUpTest.h"],1288)1289 1290math_test(name = "pow")1291 1292math_test(name = "powf")1293 1294math_test(1295 name = "remquo",1296 hdrs = ["RemQuoTest.h"],1297)1298 1299math_test(1300 name = "remquof",1301 hdrs = ["RemQuoTest.h"],1302)1303 1304math_test(1305 name = "remquol",1306 hdrs = ["RemQuoTest.h"],1307)1308 1309math_test(1310 name = "remquof128",1311 hdrs = ["RemQuoTest.h"],1312)1313 1314math_test(1315 name = "remquof16",1316 hdrs = ["RemQuoTest.h"],1317)1318 1319math_test(1320 name = "rint",1321 hdrs = ["RIntTest.h"],1322)1323 1324math_test(1325 name = "rintf",1326 hdrs = ["RIntTest.h"],1327)1328 1329math_test(1330 name = "rintl",1331 hdrs = ["RIntTest.h"],1332)1333 1334math_test(1335 name = "rintf128",1336 hdrs = ["RIntTest.h"],1337)1338 1339math_test(1340 name = "rintf16",1341 hdrs = ["RIntTest.h"],1342)1343 1344math_test(1345 name = "roundeven",1346 hdrs = ["RoundEvenTest.h"],1347)1348 1349math_test(1350 name = "roundevenf",1351 hdrs = ["RoundEvenTest.h"],1352)1353 1354math_test(1355 name = "roundevenl",1356 hdrs = ["RoundEvenTest.h"],1357)1358 1359math_test(1360 name = "roundevenf128",1361 hdrs = ["RoundEvenTest.h"],1362)1363 1364math_test(1365 name = "roundevenf16",1366 hdrs = ["RoundEvenTest.h"],1367)1368 1369math_test(1370 name = "round",1371 hdrs = ["RoundTest.h"],1372)1373 1374math_test(1375 name = "roundf",1376 hdrs = ["RoundTest.h"],1377)1378 1379math_test(1380 name = "roundl",1381 hdrs = ["RoundTest.h"],1382)1383 1384math_test(1385 name = "roundf128",1386 hdrs = ["RoundTest.h"],1387)1388 1389math_test(1390 name = "roundf16",1391 hdrs = ["RoundTest.h"],1392)1393 1394math_test(1395 name = "scalbn",1396 hdrs = [1397 "LdExpTest.h",1398 "ScalbnTest.h",1399 ],1400)1401 1402math_test(1403 name = "scalbnf",1404 hdrs = [1405 "LdExpTest.h",1406 "ScalbnTest.h",1407 ],1408)1409 1410math_test(1411 name = "scalbnl",1412 hdrs = [1413 "LdExpTest.h",1414 "ScalbnTest.h",1415 ],1416)1417 1418math_test(1419 name = "scalbnf128",1420 hdrs = [1421 "LdExpTest.h",1422 "ScalbnTest.h",1423 ],1424)1425 1426math_test(1427 name = "scalblnf16",1428 hdrs = [1429 "LdExpTest.h",1430 "ScalbnTest.h",1431 ],1432)1433 1434math_test(1435 name = "scalbnf16",1436 hdrs = [1437 "LdExpTest.h",1438 "ScalbnTest.h",1439 ],1440)1441 1442math_test(1443 name = "scalbln",1444 hdrs = [1445 "LdExpTest.h",1446 "ScalbnTest.h",1447 ],1448)1449 1450math_test(1451 name = "scalblnf",1452 hdrs = [1453 "LdExpTest.h",1454 "ScalbnTest.h",1455 ],1456)1457 1458math_test(1459 name = "scalblnl",1460 hdrs = [1461 "LdExpTest.h",1462 "ScalbnTest.h",1463 ],1464)1465 1466math_test(1467 name = "scalblnf128",1468 hdrs = [1469 "LdExpTest.h",1470 "ScalbnTest.h",1471 ],1472)1473 1474math_test(1475 name = "setpayload",1476 hdrs = ["SetPayloadTest.h"],1477)1478 1479math_test(1480 name = "setpayloadf",1481 hdrs = ["SetPayloadTest.h"],1482)1483 1484math_test(1485 name = "setpayloadl",1486 hdrs = ["SetPayloadTest.h"],1487)1488 1489math_test(1490 name = "setpayloadf128",1491 hdrs = ["SetPayloadTest.h"],1492)1493 1494math_test(1495 name = "setpayloadf16",1496 hdrs = ["SetPayloadTest.h"],1497)1498 1499math_test(1500 name = "setpayloadsig",1501 hdrs = ["SetPayloadSigTest.h"],1502)1503 1504math_test(1505 name = "setpayloadsigf",1506 hdrs = ["SetPayloadSigTest.h"],1507)1508 1509math_test(1510 name = "setpayloadsigl",1511 hdrs = ["SetPayloadSigTest.h"],1512)1513 1514math_test(1515 name = "setpayloadsigf128",1516 hdrs = ["SetPayloadSigTest.h"],1517)1518 1519math_test(1520 name = "setpayloadsigf16",1521 hdrs = ["SetPayloadSigTest.h"],1522)1523 1524math_test(name = "sin")1525 1526math_test(name = "sinf")1527 1528math_test(name = "sincos")1529 1530math_test(name = "sincosf")1531 1532math_test(1533 name = "sinhf",1534 deps = [1535 "//libc:__support_cpp_array",1536 ],1537)1538 1539math_test(name = "sinpif")1540 1541math_test(name = "tan")1542 1543math_test(name = "tanf")1544 1545math_test(name = "tanhf")1546 1547math_test(name = "tanpif")1548 1549math_test(1550 name = "totalorder",1551 hdrs = ["TotalOrderTest.h"],1552)1553 1554math_test(1555 name = "totalorderf",1556 hdrs = ["TotalOrderTest.h"],1557)1558 1559math_test(1560 name = "totalorderl",1561 hdrs = ["TotalOrderTest.h"],1562)1563 1564math_test(1565 name = "totalorderf128",1566 hdrs = ["TotalOrderTest.h"],1567)1568 1569math_test(1570 name = "totalorderf16",1571 hdrs = ["TotalOrderTest.h"],1572)1573 1574math_test(1575 name = "totalordermag",1576 hdrs = ["TotalOrderMagTest.h"],1577)1578 1579math_test(1580 name = "totalordermagf",1581 hdrs = ["TotalOrderMagTest.h"],1582)1583 1584math_test(1585 name = "totalordermagl",1586 hdrs = ["TotalOrderMagTest.h"],1587)1588 1589math_test(1590 name = "totalordermagf128",1591 hdrs = ["TotalOrderMagTest.h"],1592)1593 1594math_test(1595 name = "totalordermagf16",1596 hdrs = ["TotalOrderMagTest.h"],1597)1598 1599math_test(1600 name = "trunc",1601 hdrs = ["TruncTest.h"],1602)1603 1604math_test(1605 name = "truncf",1606 hdrs = ["TruncTest.h"],1607)1608 1609math_test(1610 name = "truncl",1611 hdrs = ["TruncTest.h"],1612)1613 1614math_test(1615 name = "truncf128",1616 hdrs = ["TruncTest.h"],1617)1618 1619math_test(1620 name = "truncf16",1621 hdrs = ["TruncTest.h"],1622)1623 1624math_test(1625 name = "ufromfp",1626 hdrs = ["UfromfpTest.h"],1627)1628 1629math_test(1630 name = "ufromfpf",1631 hdrs = ["UfromfpTest.h"],1632)1633 1634math_test(1635 name = "ufromfpl",1636 hdrs = ["UfromfpTest.h"],1637)1638 1639math_test(1640 name = "ufromfpf128",1641 hdrs = ["UfromfpTest.h"],1642)1643 1644math_test(1645 name = "ufromfpf16",1646 hdrs = ["UfromfpTest.h"],1647)1648 1649math_test(1650 name = "ufromfpx",1651 hdrs = ["UfromfpxTest.h"],1652)1653 1654math_test(1655 name = "ufromfpxf",1656 hdrs = ["UfromfpxTest.h"],1657)1658 1659math_test(1660 name = "ufromfpxl",1661 hdrs = ["UfromfpxTest.h"],1662)1663 1664math_test(1665 name = "ufromfpxf128",1666 hdrs = ["UfromfpxTest.h"],1667)1668 1669math_test(1670 name = "ufromfpxf16",1671 hdrs = ["UfromfpxTest.h"],1672)1673 1674math_test(name = "cosf16")1675 1676math_test(name = "coshf16")1677 1678math_test(name = "cospif16")1679 1680math_test(name = "exp10f16")1681 1682math_test(name = "exp10m1f16")1683 1684math_test(name = "exp2f16")1685 1686math_test(name = "exp2m1f16")1687 1688math_test(name = "expf16")1689 1690math_test(name = "expm1f16")1691 1692math_test(1693 name = "issignalingf16",1694 hdrs = ["IsSignalingTest.h"],1695)1696 1697math_test(name = "log10f16")1698 1699math_test(name = "log2f16")1700 1701math_test(name = "logf16")1702 1703math_test(1704 name = "nanf16",1705 deps = [1706 "//libc:__support_macros_sanitizer",1707 "//libc:hdr_signal_macros",1708 ],1709)1710 1711# math_test(name = "remainderf16") #TODO: add remainderf16 tests1712 1713math_test(name = "sinf16")1714 1715math_test(name = "sinhf16")1716 1717math_test(name = "sinpif16")1718 1719math_test(name = "tanf16")1720 1721math_test(name = "tanhf16")1722 1723math_test(name = "tanpif16")1724