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