|
51 | 51 | ; CHECK-NEXT: .quad -1 |
52 | 52 | ; CHECK-NEXT: .quad 1 |
53 | 53 | ; CHECK-NEXT: .quad floats |
54 | | -; CHECK-NEXT: .quad 16 |
| 54 | +; CHECK-NEXT: .quad 32 |
55 | 55 | ; CHECK-NEXT: .quad 1 |
56 | 56 |
|
57 | 57 | ; Num LargeConstants |
@@ -386,54 +386,98 @@ declare void @escape_values(...) |
386 | 386 | ; CHECK-LABEL: .word .L{{.*}}-floats |
387 | 387 | ; CHECK-NEXT: .half 0 |
388 | 388 | ; Num Locations |
389 | | -; CHECK-NEXT: .half 6 |
| 389 | +; CHECK-NEXT: .half 12 |
390 | 390 | ; Loc 0: constant float as constant integer |
391 | 391 | ; CHECK-NEXT: .byte 4 |
392 | 392 | ; CHECK-NEXT: .byte 0 |
393 | 393 | ; CHECK-NEXT: .half 8 |
394 | 394 | ; CHECK-NEXT: .half 0 |
395 | 395 | ; CHECK-NEXT: .half 0 |
396 | 396 | ; CHECK-NEXT: .word |
397 | | -; Loc 0: constant double as large constant integer |
| 397 | +; Loc 1: constant double as large constant integer |
398 | 398 | ; CHECK-NEXT: .byte 5 |
399 | 399 | ; CHECK-NEXT: .byte 0 |
400 | 400 | ; CHECK-NEXT: .half 8 |
401 | 401 | ; CHECK-NEXT: .half 0 |
402 | 402 | ; CHECK-NEXT: .half 0 |
403 | 403 | ; CHECK-NEXT: .word |
404 | | -; Loc 1: float value in X register |
| 404 | +; Loc 2: constant half as constant integer |
| 405 | +; CHECK-NEXT: .byte 4 |
| 406 | +; CHECK-NEXT: .byte 0 |
| 407 | +; CHECK-NEXT: .half 8 |
| 408 | +; CHECK-NEXT: .half 0 |
| 409 | +; CHECK-NEXT: .half 0 |
| 410 | +; CHECK-NEXT: .word |
| 411 | +; Loc 3: constant bfloat as constant integer |
| 412 | +; CHECK-NEXT: .byte 4 |
| 413 | +; CHECK-NEXT: .byte 0 |
| 414 | +; CHECK-NEXT: .half 8 |
| 415 | +; CHECK-NEXT: .half 0 |
| 416 | +; CHECK-NEXT: .half 0 |
| 417 | +; CHECK-NEXT: .word |
| 418 | +; Loc 4: float value in X register |
405 | 419 | ; CHECK-NEXT: .byte 1 |
406 | 420 | ; CHECK-NEXT: .byte 0 |
407 | 421 | ; CHECK-NEXT: .half 8 |
408 | 422 | ; CHECK-NEXT: .half 10 |
409 | 423 | ; CHECK-NEXT: .half 0 |
410 | 424 | ; CHECK-NEXT: .word |
411 | | -; Loc 2: double value in X register |
| 425 | +; Loc 5: double value in X register |
412 | 426 | ; CHECK-NEXT: .byte 1 |
413 | 427 | ; CHECK-NEXT: .byte 0 |
414 | 428 | ; CHECK-NEXT: .half 8 |
415 | 429 | ; CHECK-NEXT: .half 11 |
416 | 430 | ; CHECK-NEXT: .half 0 |
417 | 431 | ; CHECK-NEXT: .word |
418 | | -; Loc 3: float on stack |
| 432 | +; Loc 6: half value in X register |
| 433 | +; CHECK-NEXT: .byte 1 |
| 434 | +; CHECK-NEXT: .byte 0 |
| 435 | +; CHECK-NEXT: .half 8 |
| 436 | +; CHECK-NEXT: .half 12 |
| 437 | +; CHECK-NEXT: .half 0 |
| 438 | +; CHECK-NEXT: .word |
| 439 | +; Loc 7: bfloat value in X register |
| 440 | +; CHECK-NEXT: .byte 1 |
| 441 | +; CHECK-NEXT: .byte 0 |
| 442 | +; CHECK-NEXT: .half 8 |
| 443 | +; CHECK-NEXT: .half 13 |
| 444 | +; CHECK-NEXT: .half 0 |
| 445 | +; CHECK-NEXT: .word |
| 446 | +; Loc 8: float on stack |
| 447 | +; CHECK-NEXT: .byte 2 |
| 448 | +; CHECK-NEXT: .byte 0 |
| 449 | +; CHECK-NEXT: .half 8 |
| 450 | +; CHECK-NEXT: .half 2 |
| 451 | +; CHECK-NEXT: .half 0 |
| 452 | +; CHECK-NEXT: .word |
| 453 | +; Loc 9: double on stack |
| 454 | +; CHECK-NEXT: .byte 2 |
| 455 | +; CHECK-NEXT: .byte 0 |
| 456 | +; CHECK-NEXT: .half 8 |
| 457 | +; CHECK-NEXT: .half 2 |
| 458 | +; CHECK-NEXT: .half 0 |
| 459 | +; CHECK-NEXT: .word |
| 460 | +; Loc 10: half on stack |
419 | 461 | ; CHECK-NEXT: .byte 2 |
420 | 462 | ; CHECK-NEXT: .byte 0 |
421 | 463 | ; CHECK-NEXT: .half 8 |
422 | 464 | ; CHECK-NEXT: .half 2 |
423 | 465 | ; CHECK-NEXT: .half 0 |
424 | 466 | ; CHECK-NEXT: .word |
425 | | -; Loc 4: double on stack |
| 467 | +; Loc 11: bfloat on stack |
426 | 468 | ; CHECK-NEXT: .byte 2 |
427 | 469 | ; CHECK-NEXT: .byte 0 |
428 | 470 | ; CHECK-NEXT: .half 8 |
429 | 471 | ; CHECK-NEXT: .half 2 |
430 | 472 | ; CHECK-NEXT: .half 0 |
431 | 473 | ; CHECK-NEXT: .word |
432 | | -define void @floats(float %f, double %g) { |
| 474 | +define void @floats(float %f, double %g, half %h, bfloat %i) { |
433 | 475 | %ff = alloca float |
434 | 476 | %gg = alloca double |
| 477 | + %hh = alloca half |
| 478 | + %ii = alloca bfloat |
435 | 479 | call void (i64, i32, ...) @llvm.experimental.stackmap(i64 888, i32 0, float 1.25, |
436 | | - double 1.5, float %f, double %g, ptr %ff, ptr %gg) |
| 480 | + double 1.5, half 1.5, bfloat 1.5, float %f, double %g, half %h, bfloat %i, ptr %ff, ptr %gg, ptr %hh, ptr %ii) |
437 | 481 | ret void |
438 | 482 | } |
439 | 483 |
|
|
0 commit comments