|
| 1 | +# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 5 |
| 2 | +# RUN: llc --mtriple=hexagon %s -run-pass=pipeliner -o -| FileCheck %s |
| 3 | + |
| 4 | +... |
| 5 | +--- |
| 6 | +name: test_swp_ws_live_intervals |
| 7 | +tracksRegLiveness: true |
| 8 | +body: | |
| 9 | + ; CHECK-LABEL: name: test_swp_ws_live_intervals |
| 10 | + ; CHECK: bb.0: |
| 11 | + ; CHECK-NEXT: successors: %bb.1(0x80000000) |
| 12 | + ; CHECK-NEXT: liveins: $r0 |
| 13 | + ; CHECK-NEXT: {{ $}} |
| 14 | + ; CHECK-NEXT: [[COPY:%[0-9]+]]:intregs = COPY $r0 |
| 15 | + ; CHECK-NEXT: J2_loop0i %bb.1, 1, implicit-def $lc0, implicit-def $sa0, implicit-def $usr |
| 16 | + ; CHECK-NEXT: {{ $}} |
| 17 | + ; CHECK-NEXT: bb.1: |
| 18 | + ; CHECK-NEXT: successors: %bb.2(0x04000000), %bb.1(0x7c000000) |
| 19 | + ; CHECK-NEXT: {{ $}} |
| 20 | + ; CHECK-NEXT: [[L2_loadri_io:%[0-9]+]]:intregs = L2_loadri_io [[COPY]], 0 |
| 21 | + ; CHECK-NEXT: [[L2_loadrub_io:%[0-9]+]]:intregs = L2_loadrub_io [[L2_loadri_io]], 0 |
| 22 | + ; CHECK-NEXT: [[PS_loadriabs:%[0-9]+]]:intregs = PS_loadriabs 0 |
| 23 | + ; CHECK-NEXT: S2_storerb_io [[PS_loadriabs]], 0, [[L2_loadrub_io]] |
| 24 | + ; CHECK-NEXT: ENDLOOP0 %bb.1, implicit-def $pc, implicit-def $lc0, implicit $sa0, implicit $lc0 |
| 25 | + ; CHECK-NEXT: {{ $}} |
| 26 | + ; CHECK-NEXT: bb.2: |
| 27 | + ; CHECK-NEXT: successors: %bb.5(0x80000000) |
| 28 | + ; CHECK-NEXT: {{ $}} |
| 29 | + ; CHECK-NEXT: [[A2_tfrsi:%[0-9]+]]:intregs = A2_tfrsi 0 |
| 30 | + ; CHECK-NEXT: [[A2_tfrsi1:%[0-9]+]]:intregs = A2_tfrsi -1 |
| 31 | + ; CHECK-NEXT: J2_jump %bb.5, implicit-def $pc |
| 32 | + ; CHECK-NEXT: {{ $}} |
| 33 | + ; CHECK-NEXT: bb.3: |
| 34 | + ; CHECK-NEXT: S2_storeri_io [[COPY]], 0, %18 |
| 35 | + ; CHECK-NEXT: PS_jmpret $r31, implicit-def dead $pc |
| 36 | + ; CHECK-NEXT: {{ $}} |
| 37 | + ; CHECK-NEXT: bb.5: |
| 38 | + ; CHECK-NEXT: successors: %bb.7(0x80000000) |
| 39 | + ; CHECK-NEXT: {{ $}} |
| 40 | + ; CHECK-NEXT: [[A2_addi:%[0-9]+]]:intregs = A2_addi [[A2_tfrsi1]], 1 |
| 41 | + ; CHECK-NEXT: J2_jump %bb.7, implicit-def $pc |
| 42 | + ; CHECK-NEXT: {{ $}} |
| 43 | + ; CHECK-NEXT: bb.7: |
| 44 | + ; CHECK-NEXT: successors: %bb.3(0x80000000) |
| 45 | + ; CHECK-NEXT: {{ $}} |
| 46 | + ; CHECK-NEXT: [[PHI:%[0-9]+]]:intregs = PHI [[A2_tfrsi]], %bb.5 |
| 47 | + ; CHECK-NEXT: J2_jump %bb.3, implicit-def $pc |
| 48 | + bb.0: |
| 49 | + successors: %bb.1(0x80000000) |
| 50 | + liveins: $r0 |
| 51 | +
|
| 52 | + %0:intregs = COPY $r0 |
| 53 | + J2_loop0i %bb.1, 1, implicit-def $lc0, implicit-def $sa0, implicit-def $usr |
| 54 | +
|
| 55 | + bb.1: |
| 56 | + successors: %bb.2(0x04000000), %bb.1(0x7c000000) |
| 57 | +
|
| 58 | + %1:intregs = L2_loadri_io %0, 0 |
| 59 | + %2:intregs = L2_loadrub_io killed %1, 0 |
| 60 | + %3:intregs = PS_loadriabs 0 |
| 61 | + S2_storerb_io killed %3, 0, killed %2 |
| 62 | + ENDLOOP0 %bb.1, implicit-def $pc, implicit-def $lc0, implicit $sa0, implicit $lc0 |
| 63 | +
|
| 64 | + bb.2: |
| 65 | + successors: %bb.4(0x80000000) |
| 66 | +
|
| 67 | + %4:intregs = A2_tfrsi 0 |
| 68 | + %5:intregs = A2_tfrsi -1 |
| 69 | + J2_loop0i %bb.4, 1, implicit-def $lc0, implicit-def $sa0, implicit-def $usr |
| 70 | + J2_jump %bb.4, implicit-def $pc |
| 71 | +
|
| 72 | + bb.3: |
| 73 | + S2_storeri_io %0, 0, %6 |
| 74 | + PS_jmpret $r31, implicit-def dead $pc |
| 75 | +
|
| 76 | + bb.4: |
| 77 | + successors: %bb.3(0x04000000), %bb.4(0x7c000000) |
| 78 | +
|
| 79 | + %7:intregs = PHI %5, %bb.2, %8, %bb.4 |
| 80 | + %6:intregs = PHI %4, %bb.2, %9, %bb.4 |
| 81 | + %8:intregs = A2_addi %7, 1 |
| 82 | + %9:intregs = S2_setbit_i %8, 0 |
| 83 | + ENDLOOP0 %bb.4, implicit-def $pc, implicit-def $lc0, implicit $sa0, implicit $lc0 |
| 84 | + J2_jump %bb.3, implicit-def $pc |
| 85 | +
|
| 86 | +... |
0 commit comments