|
1 | 1 | ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py |
2 | | -; RUN: opt -passes='require<profile-summary>,function(codegenprepare)' -mtriple=arm64-apple=ios -S -o - %s | FileCheck --check-prefix=OPT %s |
| 2 | +; RUN: opt -passes="require<profile-summary>,function(codegenprepare)" -mtriple=arm64-apple=ios -S -o - %s | FileCheck --check-prefix=OPT %s |
3 | 3 | ; RUN: llc < %s -mtriple=arm64-eabi | FileCheck --check-prefix=LLC %s |
4 | 4 |
|
5 | 5 | %struct.X = type { i8, i8, [2 x i8] } |
@@ -618,7 +618,7 @@ define void @fct16(ptr nocapture %y, i32 %x) nounwind optsize inlinehint ssp { |
618 | 618 | ; LLC-LABEL: fct16: |
619 | 619 | ; LLC: // %bb.0: // %entry |
620 | 620 | ; LLC-NEXT: ldr w8, [x0] |
621 | | -; LLC-NEXT: mov w9, #33120 |
| 621 | +; LLC-NEXT: mov w9, #33120 // =0x8160 |
622 | 622 | ; LLC-NEXT: movk w9, #26, lsl #16 |
623 | 623 | ; LLC-NEXT: and w8, w8, w9 |
624 | 624 | ; LLC-NEXT: bfxil w8, w1, #16, #3 |
@@ -655,7 +655,7 @@ define void @fct16_mask(ptr nocapture %y, i32 %x) nounwind optsize inlinehint ss |
655 | 655 | ; LLC-LABEL: fct16_mask: |
656 | 656 | ; LLC: // %bb.0: // %entry |
657 | 657 | ; LLC-NEXT: ldr w8, [x0] |
658 | | -; LLC-NEXT: mov w9, #33120 |
| 658 | +; LLC-NEXT: mov w9, #33120 // =0x8160 |
659 | 659 | ; LLC-NEXT: movk w9, #26, lsl #16 |
660 | 660 | ; LLC-NEXT: and w8, w8, w9 |
661 | 661 | ; LLC-NEXT: bfxil w8, w1, #16, #3 |
@@ -697,7 +697,7 @@ define void @fct17(ptr nocapture %y, i64 %x) nounwind optsize inlinehint ssp { |
697 | 697 | ; LLC-LABEL: fct17: |
698 | 698 | ; LLC: // %bb.0: // %entry |
699 | 699 | ; LLC-NEXT: ldr x8, [x0] |
700 | | -; LLC-NEXT: mov w9, #33120 |
| 700 | +; LLC-NEXT: mov w9, #33120 // =0x8160 |
701 | 701 | ; LLC-NEXT: movk w9, #26, lsl #16 |
702 | 702 | ; LLC-NEXT: and x8, x8, x9 |
703 | 703 | ; LLC-NEXT: bfxil x8, x1, #16, #3 |
@@ -734,7 +734,7 @@ define void @fct17_mask(ptr nocapture %y, i64 %x) nounwind optsize inlinehint ss |
734 | 734 | ; LLC-LABEL: fct17_mask: |
735 | 735 | ; LLC: // %bb.0: // %entry |
736 | 736 | ; LLC-NEXT: ldr x8, [x0] |
737 | | -; LLC-NEXT: mov w9, #33120 |
| 737 | +; LLC-NEXT: mov w9, #33120 // =0x8160 |
738 | 738 | ; LLC-NEXT: movk w9, #26, lsl #16 |
739 | 739 | ; LLC-NEXT: and x8, x8, x9 |
740 | 740 | ; LLC-NEXT: bfxil x8, x1, #16, #3 |
@@ -819,7 +819,7 @@ define i32 @fct19(i64 %arg1) nounwind readonly ssp { |
819 | 819 | ; LLC-NEXT: add w0, w8, #32 |
820 | 820 | ; LLC-NEXT: ret |
821 | 821 | ; LLC-NEXT: .LBB26_6: |
822 | | -; LLC-NEXT: mov w0, #64 |
| 822 | +; LLC-NEXT: mov w0, #64 // =0x40 |
823 | 823 | ; LLC-NEXT: ret |
824 | 824 | ; OPT-LABEL: @fct19( |
825 | 825 | ; OPT-NEXT: entry: |
@@ -916,20 +916,20 @@ return: ; preds = %if.end13, %if.then1 |
916 | 916 | define i80 @fct20(i128 %a, i128 %b) { |
917 | 917 | ; LLC-LABEL: fct20: |
918 | 918 | ; LLC: // %bb.0: // %entry |
919 | | -; LLC-NEXT: mov x12, #11776 // =0x2e00 |
920 | | -; LLC-NEXT: lsr x8, x1, #18 |
921 | | -; LLC-NEXT: extr x9, x1, x0, #18 |
922 | | -; LLC-NEXT: movk x12, #25856, lsl #16 |
923 | | -; LLC-NEXT: orr x10, x2, x3 |
924 | | -; LLC-NEXT: mov w11, #26220 // =0x666c |
925 | | -; LLC-NEXT: movk x12, #11077, lsl #32 |
926 | | -; LLC-NEXT: and x11, x8, x11 |
927 | | -; LLC-NEXT: cmp x10, #0 |
928 | | -; LLC-NEXT: movk x12, #45, lsl #48 |
929 | | -; LLC-NEXT: csel x1, x11, x8, eq |
930 | | -; LLC-NEXT: and x12, x9, x12 |
931 | | -; LLC-NEXT: csel x0, x12, x9, eq |
932 | | -; LLC-NEXT: ret |
| 919 | +; LLC-NEXT: mov x12, #11776 // =0x2e00 |
| 920 | +; LLC-NEXT: lsr x8, x1, #18 |
| 921 | +; LLC-NEXT: extr x9, x1, x0, #18 |
| 922 | +; LLC-NEXT: movk x12, #25856, lsl #16 |
| 923 | +; LLC-NEXT: orr x10, x2, x3 |
| 924 | +; LLC-NEXT: mov w11, #26220 // =0x666c |
| 925 | +; LLC-NEXT: movk x12, #11077, lsl #32 |
| 926 | +; LLC-NEXT: and x11, x8, x11 |
| 927 | +; LLC-NEXT: cmp x10, #0 |
| 928 | +; LLC-NEXT: movk x12, #45, lsl #48 |
| 929 | +; LLC-NEXT: csel x1, x11, x8, eq |
| 930 | +; LLC-NEXT: and x12, x9, x12 |
| 931 | +; LLC-NEXT: csel x0, x12, x9, eq |
| 932 | +; LLC-NEXT: ret |
933 | 933 | ; OPT-LABEL: @fct20( |
934 | 934 | ; OPT-NEXT: entry: |
935 | 935 | ; OPT-NEXT: [[SHR:%.*]] = lshr i128 [[A:%.*]], 18 |
|
0 commit comments