forked from OSchip/llvm-project
[ARM] Addition jump table plus while loop block placement pass test.
Also regenerated the file, whilst here.
This commit is contained in:
parent
a64e46880c
commit
a5211bf365
|
@ -46,6 +46,12 @@
|
||||||
unreachable
|
unreachable
|
||||||
}
|
}
|
||||||
|
|
||||||
|
; Checks that blocks after jump tables work
|
||||||
|
define void @jump_table(i32 %d, i32 %e, i32 %f) {
|
||||||
|
entry:
|
||||||
|
unreachable
|
||||||
|
}
|
||||||
|
|
||||||
declare dso_local i32 @g(...)
|
declare dso_local i32 @g(...)
|
||||||
|
|
||||||
declare dso_local i32 @h(...)
|
declare dso_local i32 @h(...)
|
||||||
|
@ -57,25 +63,31 @@ tracksRegLiveness: true
|
||||||
body: |
|
body: |
|
||||||
; CHECK-LABEL: name: backwards_branch
|
; CHECK-LABEL: name: backwards_branch
|
||||||
; CHECK: bb.0:
|
; CHECK: bb.0:
|
||||||
; CHECK: successors: %bb.1(0x80000000)
|
; CHECK-NEXT: successors: %bb.1(0x80000000)
|
||||||
; CHECK: liveins: $r0, $r1, $r2, $lr
|
; CHECK-NEXT: liveins: $r0, $r1, $r2, $lr
|
||||||
; CHECK: tCMPi8 renamable $r0, 1, 14 /* CC::al */, $noreg, implicit-def $cpsr
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: t2IT 11, 8, implicit-def $itstate
|
; CHECK-NEXT: tCMPi8 renamable $r0, 1, 14 /* CC::al */, $noreg, implicit-def $cpsr
|
||||||
; CHECK: frame-destroy tPOP_RET 11 /* CC::lt */, killed $cpsr, def $r7, def $pc, implicit killed $itstate
|
; CHECK-NEXT: t2IT 11, 8, implicit-def $itstate
|
||||||
; CHECK: bb.1:
|
; CHECK-NEXT: frame-destroy tPOP_RET 11 /* CC::lt */, killed $cpsr, def $r7, def $pc, implicit killed $itstate
|
||||||
; CHECK: successors: %bb.3(0x80000000)
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: liveins: $r0, $r1, $r2
|
; CHECK-NEXT: bb.1:
|
||||||
; CHECK: $lr = t2WhileLoopStartLR killed renamable $r0, %bb.2, implicit-def dead $cpsr
|
; CHECK-NEXT: successors: %bb.3(0x80000000)
|
||||||
; CHECK: t2B %bb.3, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: liveins: $r0, $r1, $r2
|
||||||
; CHECK: bb.2:
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: frame-destroy tPOP_RET 14 /* CC::al */, $noreg, def $r7, def $pc
|
; CHECK-NEXT: $lr = t2WhileLoopStartLR killed renamable $r0, %bb.2, implicit-def dead $cpsr
|
||||||
; CHECK: bb.3:
|
; CHECK-NEXT: t2B %bb.3, 14 /* CC::al */, $noreg
|
||||||
; CHECK: successors: %bb.3(0x7c000000), %bb.2(0x04000000)
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: liveins: $lr, $r1, $r2
|
; CHECK-NEXT: bb.2:
|
||||||
; CHECK: renamable $r0 = tLDRi renamable $r2, 0, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: frame-destroy tPOP_RET 14 /* CC::al */, $noreg, def $r7, def $pc
|
||||||
; CHECK: tSTRi killed renamable $r0, renamable $r1, 0, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: renamable $lr = t2LoopEndDec killed renamable $lr, %bb.3, implicit-def dead $cpsr
|
; CHECK-NEXT: bb.3:
|
||||||
; CHECK: t2B %bb.2, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: successors: %bb.3(0x7c000000), %bb.2(0x04000000)
|
||||||
|
; CHECK-NEXT: liveins: $lr, $r1, $r2
|
||||||
|
; CHECK-NEXT: {{ $}}
|
||||||
|
; CHECK-NEXT: renamable $r0 = tLDRi renamable $r2, 0, 14 /* CC::al */, $noreg
|
||||||
|
; CHECK-NEXT: tSTRi killed renamable $r0, renamable $r1, 0, 14 /* CC::al */, $noreg
|
||||||
|
; CHECK-NEXT: renamable $lr = t2LoopEndDec killed renamable $lr, %bb.3, implicit-def dead $cpsr
|
||||||
|
; CHECK-NEXT: t2B %bb.2, 14 /* CC::al */, $noreg
|
||||||
bb.0:
|
bb.0:
|
||||||
successors: %bb.2(0x80000000)
|
successors: %bb.2(0x80000000)
|
||||||
liveins: $r0, $r1, $r2, $lr
|
liveins: $r0, $r1, $r2, $lr
|
||||||
|
@ -109,24 +121,30 @@ tracksRegLiveness: true
|
||||||
body: |
|
body: |
|
||||||
; CHECK-LABEL: name: backwards_branch_entry_block
|
; CHECK-LABEL: name: backwards_branch_entry_block
|
||||||
; CHECK: bb.0:
|
; CHECK: bb.0:
|
||||||
; CHECK: successors: %bb.2(0x80000000)
|
; CHECK-NEXT: successors: %bb.2(0x80000000)
|
||||||
; CHECK: liveins: $r0, $r1, $r2, $lr
|
; CHECK-NEXT: liveins: $r0, $r1, $r2, $lr
|
||||||
; CHECK: tCMPi8 renamable $r0, 1, 14 /* CC::al */, $noreg, implicit-def $cpsr
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: t2IT 11, 8, implicit-def $itstate
|
; CHECK-NEXT: tCMPi8 renamable $r0, 1, 14 /* CC::al */, $noreg, implicit-def $cpsr
|
||||||
; CHECK: frame-destroy tPOP_RET 11 /* CC::lt */, killed $cpsr, def $r7, def $pc, implicit killed $itstate
|
; CHECK-NEXT: t2IT 11, 8, implicit-def $itstate
|
||||||
; CHECK: bb.1:
|
; CHECK-NEXT: frame-destroy tPOP_RET 11 /* CC::lt */, killed $cpsr, def $r7, def $pc, implicit killed $itstate
|
||||||
; CHECK: frame-destroy tPOP_RET 14 /* CC::al */, $noreg, def $r7, def $pc
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: bb.2:
|
; CHECK-NEXT: bb.1:
|
||||||
; CHECK: successors: %bb.3(0x80000000)
|
; CHECK-NEXT: frame-destroy tPOP_RET 14 /* CC::al */, $noreg, def $r7, def $pc
|
||||||
; CHECK: liveins: $r0, $r1, $r2
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: $lr = t2WhileLoopStartLR killed renamable $r0, %bb.0, implicit-def dead $cpsr
|
; CHECK-NEXT: bb.2:
|
||||||
; CHECK: bb.3:
|
; CHECK-NEXT: successors: %bb.3(0x80000000)
|
||||||
; CHECK: successors: %bb.3(0x7c000000), %bb.1(0x04000000)
|
; CHECK-NEXT: liveins: $r0, $r1, $r2
|
||||||
; CHECK: liveins: $lr, $r1, $r2
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: renamable $r0 = tLDRi renamable $r2, 0, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: $lr = t2WhileLoopStartLR killed renamable $r0, %bb.0, implicit-def dead $cpsr
|
||||||
; CHECK: tSTRi killed renamable $r0, renamable $r1, 0, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: renamable $lr = t2LoopEndDec killed renamable $lr, %bb.3, implicit-def dead $cpsr
|
; CHECK-NEXT: bb.3:
|
||||||
; CHECK: t2B %bb.1, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: successors: %bb.3(0x7c000000), %bb.1(0x04000000)
|
||||||
|
; CHECK-NEXT: liveins: $lr, $r1, $r2
|
||||||
|
; CHECK-NEXT: {{ $}}
|
||||||
|
; CHECK-NEXT: renamable $r0 = tLDRi renamable $r2, 0, 14 /* CC::al */, $noreg
|
||||||
|
; CHECK-NEXT: tSTRi killed renamable $r0, renamable $r1, 0, 14 /* CC::al */, $noreg
|
||||||
|
; CHECK-NEXT: renamable $lr = t2LoopEndDec killed renamable $lr, %bb.3, implicit-def dead $cpsr
|
||||||
|
; CHECK-NEXT: t2B %bb.1, 14 /* CC::al */, $noreg
|
||||||
bb.0:
|
bb.0:
|
||||||
successors: %bb.2(0x80000000)
|
successors: %bb.2(0x80000000)
|
||||||
liveins: $r0, $r1, $r2, $lr
|
liveins: $r0, $r1, $r2, $lr
|
||||||
|
@ -160,38 +178,50 @@ tracksRegLiveness: true
|
||||||
body: |
|
body: |
|
||||||
; CHECK-LABEL: name: backwards_branch_backwards_wls
|
; CHECK-LABEL: name: backwards_branch_backwards_wls
|
||||||
; CHECK: bb.0:
|
; CHECK: bb.0:
|
||||||
; CHECK: successors: %bb.2(0x80000000)
|
; CHECK-NEXT: successors: %bb.2(0x80000000)
|
||||||
; CHECK: liveins: $r0, $r1, $r2, $lr
|
; CHECK-NEXT: liveins: $r0, $r1, $r2, $lr
|
||||||
; CHECK: tCMPi8 renamable $r0, 1, 14 /* CC::al */, $noreg, implicit-def $cpsr
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: t2IT 11, 8, implicit-def $itstate
|
; CHECK-NEXT: tCMPi8 renamable $r0, 1, 14 /* CC::al */, $noreg, implicit-def $cpsr
|
||||||
; CHECK: frame-destroy tPOP_RET 11 /* CC::lt */, killed $cpsr, def $r7, def $pc, implicit killed $itstate
|
; CHECK-NEXT: t2IT 11, 8, implicit-def $itstate
|
||||||
; CHECK: bb.1:
|
; CHECK-NEXT: frame-destroy tPOP_RET 11 /* CC::lt */, killed $cpsr, def $r7, def $pc, implicit killed $itstate
|
||||||
; CHECK: frame-destroy tPOP_RET 14 /* CC::al */, $noreg, def $r7, def $pc
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: bb.2:
|
; CHECK-NEXT: bb.1:
|
||||||
; CHECK: successors: %bb.3(0x40000000), %bb.6(0x40000000)
|
; CHECK-NEXT: frame-destroy tPOP_RET 14 /* CC::al */, $noreg, def $r7, def $pc
|
||||||
; CHECK: liveins: $r0, $r1, $r2
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: $lr = t2WhileLoopStartLR killed renamable $r0, %bb.3, implicit-def dead $cpsr
|
; CHECK-NEXT: bb.2:
|
||||||
; CHECK: t2B %bb.6, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: successors: %bb.3(0x40000000), %bb.6(0x40000000)
|
||||||
; CHECK: bb.3:
|
; CHECK-NEXT: liveins: $r0, $r1, $r2
|
||||||
; CHECK: successors: %bb.1(0x7c000000), %bb.4(0x04000000)
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: liveins: $lr, $r0, $r1, $r2
|
; CHECK-NEXT: $lr = t2WhileLoopStartLR killed renamable $r0, %bb.3, implicit-def dead $cpsr
|
||||||
; CHECK: t2CMPri renamable $r0, 0, 14 /* CC::al */, $noreg, implicit-def $cpsr
|
; CHECK-NEXT: t2B %bb.6, 14 /* CC::al */, $noreg
|
||||||
; CHECK: t2Bcc %bb.1, 0 /* CC::eq */, $cpsr
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: bb.4:
|
; CHECK-NEXT: bb.3:
|
||||||
; CHECK: successors: %bb.5(0x80000000)
|
; CHECK-NEXT: successors: %bb.1(0x7c000000), %bb.4(0x04000000)
|
||||||
; CHECK: liveins: $r2, $r1, $r0
|
; CHECK-NEXT: liveins: $lr, $r0, $r1, $r2
|
||||||
; CHECK: $lr = t2DoLoopStart renamable $r0
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: t2B %bb.5, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: t2CMPri renamable $r0, 0, 14 /* CC::al */, $noreg, implicit-def $cpsr
|
||||||
; CHECK: bb.5:
|
; CHECK-NEXT: t2Bcc %bb.1, 0 /* CC::eq */, $cpsr
|
||||||
; CHECK: successors: %bb.1(0x40000000), %bb.5(0x40000000)
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: liveins: $lr, $r1, $r2
|
; CHECK-NEXT: bb.4:
|
||||||
; CHECK: renamable $lr = t2LoopEndDec killed renamable $lr, %bb.5, implicit-def dead $cpsr
|
; CHECK-NEXT: successors: %bb.5(0x80000000)
|
||||||
; CHECK: t2B %bb.1, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: liveins: $r2, $r1, $r0
|
||||||
; CHECK: bb.6:
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: successors: %bb.6(0x40000000), %bb.3(0x40000000)
|
; CHECK-NEXT: $lr = t2DoLoopStart renamable $r0
|
||||||
; CHECK: liveins: $lr, $r1, $r2
|
; CHECK-NEXT: t2B %bb.5, 14 /* CC::al */, $noreg
|
||||||
; CHECK: renamable $lr = t2LoopEndDec killed renamable $lr, %bb.6, implicit-def dead $cpsr
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: t2B %bb.3, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: bb.5:
|
||||||
|
; CHECK-NEXT: successors: %bb.1(0x40000000), %bb.5(0x40000000)
|
||||||
|
; CHECK-NEXT: liveins: $lr, $r1, $r2
|
||||||
|
; CHECK-NEXT: {{ $}}
|
||||||
|
; CHECK-NEXT: renamable $lr = t2LoopEndDec killed renamable $lr, %bb.5, implicit-def dead $cpsr
|
||||||
|
; CHECK-NEXT: t2B %bb.1, 14 /* CC::al */, $noreg
|
||||||
|
; CHECK-NEXT: {{ $}}
|
||||||
|
; CHECK-NEXT: bb.6:
|
||||||
|
; CHECK-NEXT: successors: %bb.6(0x40000000), %bb.3(0x40000000)
|
||||||
|
; CHECK-NEXT: liveins: $lr, $r1, $r2
|
||||||
|
; CHECK-NEXT: {{ $}}
|
||||||
|
; CHECK-NEXT: renamable $lr = t2LoopEndDec killed renamable $lr, %bb.6, implicit-def dead $cpsr
|
||||||
|
; CHECK-NEXT: t2B %bb.3, 14 /* CC::al */, $noreg
|
||||||
bb.0:
|
bb.0:
|
||||||
successors: %bb.2(0x80000000)
|
successors: %bb.2(0x80000000)
|
||||||
liveins: $r0, $r1, $r2, $lr
|
liveins: $r0, $r1, $r2, $lr
|
||||||
|
@ -237,44 +267,54 @@ tracksRegLiveness: true
|
||||||
body: |
|
body: |
|
||||||
; CHECK-LABEL: name: no_predecessor
|
; CHECK-LABEL: name: no_predecessor
|
||||||
; CHECK: bb.0:
|
; CHECK: bb.0:
|
||||||
; CHECK: successors: %bb.2(0x30000000), %bb.1(0x50000000)
|
; CHECK-NEXT: successors: %bb.2(0x30000000), %bb.1(0x50000000)
|
||||||
; CHECK: liveins: $r0, $r4, $r5, $r7, $lr
|
; CHECK-NEXT: liveins: $r0, $r4, $r5, $r7, $lr
|
||||||
; CHECK: frame-setup tPUSH 14 /* CC::al */, $noreg, killed $r4, killed $r5, $r7, killed $lr, implicit-def $sp, implicit $sp
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: frame-setup CFI_INSTRUCTION def_cfa_offset 16
|
; CHECK-NEXT: frame-setup tPUSH 14 /* CC::al */, $noreg, killed $r4, killed $r5, $r7, killed $lr, implicit-def $sp, implicit $sp
|
||||||
; CHECK: frame-setup CFI_INSTRUCTION offset $lr, -4
|
; CHECK-NEXT: frame-setup CFI_INSTRUCTION def_cfa_offset 16
|
||||||
; CHECK: frame-setup CFI_INSTRUCTION offset $r7, -8
|
; CHECK-NEXT: frame-setup CFI_INSTRUCTION offset $lr, -4
|
||||||
; CHECK: frame-setup CFI_INSTRUCTION offset $r5, -12
|
; CHECK-NEXT: frame-setup CFI_INSTRUCTION offset $r7, -8
|
||||||
; CHECK: frame-setup CFI_INSTRUCTION offset $r4, -16
|
; CHECK-NEXT: frame-setup CFI_INSTRUCTION offset $r5, -12
|
||||||
; CHECK: $r7 = frame-setup tADDrSPi $sp, 2, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: frame-setup CFI_INSTRUCTION offset $r4, -16
|
||||||
; CHECK: frame-setup CFI_INSTRUCTION def_cfa $r7, 8
|
; CHECK-NEXT: $r7 = frame-setup tADDrSPi $sp, 2, 14 /* CC::al */, $noreg
|
||||||
; CHECK: $r4 = tMOVr killed $r0, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: frame-setup CFI_INSTRUCTION def_cfa $r7, 8
|
||||||
; CHECK: tBL 14 /* CC::al */, $noreg, @g, csr_aapcs, implicit-def dead $lr, implicit $sp, implicit-def $sp, implicit-def $r0
|
; CHECK-NEXT: $r4 = tMOVr killed $r0, 14 /* CC::al */, $noreg
|
||||||
; CHECK: tCMPi8 killed renamable $r0, 0, 14 /* CC::al */, $noreg, implicit-def $cpsr
|
; CHECK-NEXT: tBL 14 /* CC::al */, $noreg, @g, csr_aapcs, implicit-def dead $lr, implicit $sp, implicit-def $sp, implicit-def $r0
|
||||||
; CHECK: t2Bcc %bb.2, 0 /* CC::eq */, killed $cpsr
|
; CHECK-NEXT: tCMPi8 killed renamable $r0, 0, 14 /* CC::al */, $noreg, implicit-def $cpsr
|
||||||
; CHECK: bb.1:
|
; CHECK-NEXT: t2Bcc %bb.2, 0 /* CC::eq */, killed $cpsr
|
||||||
; CHECK: successors: %bb.4(0x80000000)
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: liveins: $r4
|
; CHECK-NEXT: bb.1:
|
||||||
; CHECK: renamable $r0, dead $cpsr = tMOVi8 4, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: successors: %bb.4(0x80000000)
|
||||||
; CHECK: renamable $r5 = t2LDRSHi12 killed renamable $r0, 0, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: liveins: $r4
|
||||||
; CHECK: t2B %bb.4, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: bb.2:
|
; CHECK-NEXT: renamable $r0, dead $cpsr = tMOVi8 4, 14 /* CC::al */, $noreg
|
||||||
; CHECK: successors: %bb.4(0x80000000)
|
; CHECK-NEXT: renamable $r5 = t2LDRSHi12 killed renamable $r0, 0, 14 /* CC::al */, $noreg
|
||||||
; CHECK: liveins: $r4
|
; CHECK-NEXT: t2B %bb.4, 14 /* CC::al */, $noreg
|
||||||
; CHECK: renamable $r5, dead $cpsr = tMOVi8 0, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: t2B %bb.4, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: bb.2:
|
||||||
; CHECK: bb.3:
|
; CHECK-NEXT: successors: %bb.4(0x80000000)
|
||||||
; CHECK: successors: %bb.4(0x80000000)
|
; CHECK-NEXT: liveins: $r4
|
||||||
; CHECK: liveins: $r4, $r5
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: $r0 = tMOVr $r5, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: renamable $r5, dead $cpsr = tMOVi8 0, 14 /* CC::al */, $noreg
|
||||||
; CHECK: tBL 14 /* CC::al */, $noreg, @h, csr_aapcs, implicit-def dead $lr, implicit $sp, implicit killed $r0, implicit-def $sp, implicit-def dead $r0
|
; CHECK-NEXT: t2B %bb.4, 14 /* CC::al */, $noreg
|
||||||
; CHECK: bb.4:
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: successors: %bb.5(0x04000000), %bb.3(0x7c000000)
|
; CHECK-NEXT: bb.3:
|
||||||
; CHECK: liveins: $r4, $r5
|
; CHECK-NEXT: successors: %bb.4(0x80000000)
|
||||||
; CHECK: renamable $r0 = tLDRi renamable $r4, 0, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: liveins: $r4, $r5
|
||||||
; CHECK: tCMPi8 killed renamable $r0, 0, 14 /* CC::al */, $noreg, implicit-def $cpsr
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: t2Bcc %bb.3, 1 /* CC::ne */, killed $cpsr
|
; CHECK-NEXT: $r0 = tMOVr $r5, 14 /* CC::al */, $noreg
|
||||||
; CHECK: bb.5:
|
; CHECK-NEXT: tBL 14 /* CC::al */, $noreg, @h, csr_aapcs, implicit-def dead $lr, implicit $sp, implicit killed $r0, implicit-def $sp, implicit-def dead $r0
|
||||||
; CHECK: frame-destroy tPOP_RET 14 /* CC::al */, $noreg, def $r4, def $r5, def $r7, def $pc
|
; CHECK-NEXT: {{ $}}
|
||||||
|
; CHECK-NEXT: bb.4:
|
||||||
|
; CHECK-NEXT: successors: %bb.5(0x04000000), %bb.3(0x7c000000)
|
||||||
|
; CHECK-NEXT: liveins: $r4, $r5
|
||||||
|
; CHECK-NEXT: {{ $}}
|
||||||
|
; CHECK-NEXT: renamable $r0 = tLDRi renamable $r4, 0, 14 /* CC::al */, $noreg
|
||||||
|
; CHECK-NEXT: tCMPi8 killed renamable $r0, 0, 14 /* CC::al */, $noreg, implicit-def $cpsr
|
||||||
|
; CHECK-NEXT: t2Bcc %bb.3, 1 /* CC::ne */, killed $cpsr
|
||||||
|
; CHECK-NEXT: {{ $}}
|
||||||
|
; CHECK-NEXT: bb.5:
|
||||||
|
; CHECK-NEXT: frame-destroy tPOP_RET 14 /* CC::al */, $noreg, def $r4, def $r5, def $r7, def $pc
|
||||||
bb.0:
|
bb.0:
|
||||||
successors: %bb.1(0x30000000), %bb.2(0x50000000)
|
successors: %bb.1(0x30000000), %bb.2(0x50000000)
|
||||||
liveins: $r0, $r4, $r5, $r7, $lr
|
liveins: $r0, $r4, $r5, $r7, $lr
|
||||||
|
@ -353,76 +393,94 @@ machineFunctionInfo: {}
|
||||||
body: |
|
body: |
|
||||||
; CHECK-LABEL: name: nested_loops
|
; CHECK-LABEL: name: nested_loops
|
||||||
; CHECK: bb.0:
|
; CHECK: bb.0:
|
||||||
; CHECK: successors: %bb.1(0x80000000)
|
; CHECK-NEXT: successors: %bb.1(0x80000000)
|
||||||
; CHECK: liveins: $r0, $r1, $r2, $r3, $r4, $r5, $r6, $r7, $r8, $r9, $r10, $lr
|
; CHECK-NEXT: liveins: $r0, $r1, $r2, $r3, $r4, $r5, $r6, $r7, $r8, $r9, $r10, $lr
|
||||||
; CHECK: $sp = frame-setup t2STMDB_UPD $sp, 14 /* CC::al */, $noreg, killed $r4, killed $r5, killed $r6, killed $r7, killed $r8, killed $r9, killed $r10, killed $lr
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: frame-setup CFI_INSTRUCTION def_cfa_offset 32
|
; CHECK-NEXT: $sp = frame-setup t2STMDB_UPD $sp, 14 /* CC::al */, $noreg, killed $r4, killed $r5, killed $r6, killed $r7, killed $r8, killed $r9, killed $r10, killed $lr
|
||||||
; CHECK: frame-setup CFI_INSTRUCTION offset $lr, -4
|
; CHECK-NEXT: frame-setup CFI_INSTRUCTION def_cfa_offset 32
|
||||||
; CHECK: frame-setup CFI_INSTRUCTION offset $r10, -8
|
; CHECK-NEXT: frame-setup CFI_INSTRUCTION offset $lr, -4
|
||||||
; CHECK: frame-setup CFI_INSTRUCTION offset $r9, -12
|
; CHECK-NEXT: frame-setup CFI_INSTRUCTION offset $r10, -8
|
||||||
; CHECK: frame-setup CFI_INSTRUCTION offset $r8, -16
|
; CHECK-NEXT: frame-setup CFI_INSTRUCTION offset $r9, -12
|
||||||
; CHECK: frame-setup CFI_INSTRUCTION offset $r7, -20
|
; CHECK-NEXT: frame-setup CFI_INSTRUCTION offset $r8, -16
|
||||||
; CHECK: frame-setup CFI_INSTRUCTION offset $r6, -24
|
; CHECK-NEXT: frame-setup CFI_INSTRUCTION offset $r7, -20
|
||||||
; CHECK: frame-setup CFI_INSTRUCTION offset $r5, -28
|
; CHECK-NEXT: frame-setup CFI_INSTRUCTION offset $r6, -24
|
||||||
; CHECK: frame-setup CFI_INSTRUCTION offset $r4, -32
|
; CHECK-NEXT: frame-setup CFI_INSTRUCTION offset $r5, -28
|
||||||
; CHECK: tCMPi8 renamable $r0, 1, 14 /* CC::al */, $noreg, implicit-def $cpsr
|
; CHECK-NEXT: frame-setup CFI_INSTRUCTION offset $r4, -32
|
||||||
; CHECK: t2IT 11, 8, implicit-def $itstate
|
; CHECK-NEXT: tCMPi8 renamable $r0, 1, 14 /* CC::al */, $noreg, implicit-def $cpsr
|
||||||
; CHECK: $sp = frame-destroy t2LDMIA_RET $sp, 11 /* CC::lt */, killed $cpsr, def $r4, def $r5, def $r6, def $r7, def $r8, def $r9, def $r10, def $pc, implicit killed $itstate
|
; CHECK-NEXT: t2IT 11, 8, implicit-def $itstate
|
||||||
; CHECK: bb.1:
|
; CHECK-NEXT: $sp = frame-destroy t2LDMIA_RET $sp, 11 /* CC::lt */, killed $cpsr, def $r4, def $r5, def $r6, def $r7, def $r8, def $r9, def $r10, def $pc, implicit killed $itstate
|
||||||
; CHECK: successors: %bb.3(0x80000000)
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: liveins: $r0, $r1, $r2, $r3
|
; CHECK-NEXT: bb.1:
|
||||||
; CHECK: renamable $r12 = t2LDRi12 $sp, 32, 14 /* CC::al */, $noreg :: (load (s32) from %fixed-stack.0, align 8)
|
; CHECK-NEXT: successors: %bb.3(0x80000000)
|
||||||
; CHECK: $r9 = tMOVr killed $r2, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: liveins: $r0, $r1, $r2, $r3
|
||||||
; CHECK: renamable $r8 = t2MOVi 0, 14 /* CC::al */, $noreg, $noreg
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: t2B %bb.3, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: renamable $r12 = t2LDRi12 $sp, 32, 14 /* CC::al */, $noreg :: (load (s32) from %fixed-stack.0, align 8)
|
||||||
; CHECK: bb.2:
|
; CHECK-NEXT: $r9 = tMOVr killed $r2, 14 /* CC::al */, $noreg
|
||||||
; CHECK: successors: %bb.9(0x04000000), %bb.3(0x7c000000)
|
; CHECK-NEXT: renamable $r8 = t2MOVi 0, 14 /* CC::al */, $noreg, $noreg
|
||||||
; CHECK: liveins: $r0, $r1, $r3, $r8, $r9, $r12
|
; CHECK-NEXT: t2B %bb.3, 14 /* CC::al */, $noreg
|
||||||
; CHECK: renamable $r8 = nuw nsw t2ADDri killed renamable $r8, 1, 14 /* CC::al */, $noreg, $noreg
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: renamable $r3, dead $cpsr = tADDi8 killed renamable $r3, 1, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: bb.2:
|
||||||
; CHECK: tCMPhir renamable $r8, renamable $r0, 14 /* CC::al */, $noreg, implicit-def $cpsr
|
; CHECK-NEXT: successors: %bb.9(0x04000000), %bb.3(0x7c000000)
|
||||||
; CHECK: renamable $r12 = t2ADDri killed renamable $r12, 1, 14 /* CC::al */, $noreg, $noreg
|
; CHECK-NEXT: liveins: $r0, $r1, $r3, $r8, $r9, $r12
|
||||||
; CHECK: t2Bcc %bb.9, 0 /* CC::eq */, killed $cpsr
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: bb.3:
|
; CHECK-NEXT: renamable $r8 = nuw nsw t2ADDri killed renamable $r8, 1, 14 /* CC::al */, $noreg, $noreg
|
||||||
; CHECK: successors: %bb.4(0x50000000), %bb.2(0x30000000)
|
; CHECK-NEXT: renamable $r3, dead $cpsr = tADDi8 killed renamable $r3, 1, 14 /* CC::al */, $noreg
|
||||||
; CHECK: liveins: $r0, $r1, $r3, $r8, $r9, $r12
|
; CHECK-NEXT: tCMPhir renamable $r8, renamable $r0, 14 /* CC::al */, $noreg, implicit-def $cpsr
|
||||||
; CHECK: tCMPi8 renamable $r1, 1, 14 /* CC::al */, $noreg, implicit-def $cpsr
|
; CHECK-NEXT: renamable $r12 = t2ADDri killed renamable $r12, 1, 14 /* CC::al */, $noreg, $noreg
|
||||||
; CHECK: t2Bcc %bb.2, 11 /* CC::lt */, killed $cpsr
|
; CHECK-NEXT: t2Bcc %bb.9, 0 /* CC::eq */, killed $cpsr
|
||||||
; CHECK: bb.4:
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: successors: %bb.5(0x80000000)
|
; CHECK-NEXT: bb.3:
|
||||||
; CHECK: liveins: $r0, $r1, $r3, $r8, $r9, $r12
|
; CHECK-NEXT: successors: %bb.4(0x50000000), %bb.2(0x30000000)
|
||||||
; CHECK: renamable $r4, dead $cpsr = tMOVi8 0, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: liveins: $r0, $r1, $r3, $r8, $r9, $r12
|
||||||
; CHECK: $r10 = tMOVr $r12, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: $r2 = tMOVr $r3, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: tCMPi8 renamable $r1, 1, 14 /* CC::al */, $noreg, implicit-def $cpsr
|
||||||
; CHECK: t2B %bb.5, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: t2Bcc %bb.2, 11 /* CC::lt */, killed $cpsr
|
||||||
; CHECK: bb.5:
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: successors: %bb.7(0x50000000), %bb.6(0x30000000)
|
; CHECK-NEXT: bb.4:
|
||||||
; CHECK: liveins: $r0, $r1, $r2, $r3, $r4, $r8, $r9, $r10, $r12
|
; CHECK-NEXT: successors: %bb.5(0x80000000)
|
||||||
; CHECK: renamable $lr = t2WhileLoopStartLR killed renamable $r9, %bb.6, implicit-def dead $cpsr
|
; CHECK-NEXT: liveins: $r0, $r1, $r3, $r8, $r9, $r12
|
||||||
; CHECK: t2B %bb.7, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: bb.6:
|
; CHECK-NEXT: renamable $r4, dead $cpsr = tMOVi8 0, 14 /* CC::al */, $noreg
|
||||||
; CHECK: successors: %bb.2(0x04000000), %bb.5(0x7c000000)
|
; CHECK-NEXT: $r10 = tMOVr $r12, 14 /* CC::al */, $noreg
|
||||||
; CHECK: liveins: $r0, $r1, $r2, $r3, $r4, $r8, $r9, $r10, $r12
|
; CHECK-NEXT: $r2 = tMOVr $r3, 14 /* CC::al */, $noreg
|
||||||
; CHECK: renamable $r4, dead $cpsr = nuw nsw tADDi8 killed renamable $r4, 1, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: t2B %bb.5, 14 /* CC::al */, $noreg
|
||||||
; CHECK: renamable $r2, dead $cpsr = tADDi8 killed renamable $r2, 1, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: tCMPr renamable $r4, renamable $r1, 14 /* CC::al */, $noreg, implicit-def $cpsr
|
; CHECK-NEXT: bb.5:
|
||||||
; CHECK: renamable $r10 = t2ADDri killed renamable $r10, 1, 14 /* CC::al */, $noreg, $noreg
|
; CHECK-NEXT: successors: %bb.7(0x50000000), %bb.6(0x30000000)
|
||||||
; CHECK: t2Bcc %bb.2, 0 /* CC::eq */, killed $cpsr
|
; CHECK-NEXT: liveins: $r0, $r1, $r2, $r3, $r4, $r8, $r9, $r10, $r12
|
||||||
; CHECK: t2B %bb.5, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: bb.7:
|
; CHECK-NEXT: renamable $lr = t2WhileLoopStartLR killed renamable $r9, %bb.6, implicit-def dead $cpsr
|
||||||
; CHECK: successors: %bb.8(0x80000000)
|
; CHECK-NEXT: t2B %bb.7, 14 /* CC::al */, $noreg
|
||||||
; CHECK: liveins: $r0, $r1, $r2, $r3, $r4, $r8, $r9, $r10, $r12
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: $r5 = tMOVr $r10, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: bb.6:
|
||||||
; CHECK: $r6 = tMOVr $r2, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: successors: %bb.2(0x04000000), %bb.5(0x7c000000)
|
||||||
; CHECK: t2B %bb.8, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: liveins: $r0, $r1, $r2, $r3, $r4, $r8, $r9, $r10, $r12
|
||||||
; CHECK: bb.8:
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: successors: %bb.8(0x7c000000), %bb.6(0x04000000)
|
; CHECK-NEXT: renamable $r4, dead $cpsr = nuw nsw tADDi8 killed renamable $r4, 1, 14 /* CC::al */, $noreg
|
||||||
; CHECK: liveins: $lr, $r0, $r1, $r2, $r3, $r4, $r5, $r6, $r8, $r9, $r10, $r12
|
; CHECK-NEXT: renamable $r2, dead $cpsr = tADDi8 killed renamable $r2, 1, 14 /* CC::al */, $noreg
|
||||||
; CHECK: tSTRi killed $r0, $r1, 0, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: tCMPr renamable $r4, renamable $r1, 14 /* CC::al */, $noreg, implicit-def $cpsr
|
||||||
; CHECK: renamable $lr = t2LoopEndDec killed renamable $lr, %bb.8, implicit-def dead $cpsr
|
; CHECK-NEXT: renamable $r10 = t2ADDri killed renamable $r10, 1, 14 /* CC::al */, $noreg, $noreg
|
||||||
; CHECK: t2B %bb.6, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: t2Bcc %bb.2, 0 /* CC::eq */, killed $cpsr
|
||||||
; CHECK: bb.9:
|
; CHECK-NEXT: t2B %bb.5, 14 /* CC::al */, $noreg
|
||||||
; CHECK: $sp = frame-destroy t2LDMIA_RET $sp, 14 /* CC::al */, $noreg, def $r4, def $r5, def $r6, def $r7, def $r8, def $r9, def $r10, def $pc
|
; CHECK-NEXT: {{ $}}
|
||||||
|
; CHECK-NEXT: bb.7:
|
||||||
|
; CHECK-NEXT: successors: %bb.8(0x80000000)
|
||||||
|
; CHECK-NEXT: liveins: $r0, $r1, $r2, $r3, $r4, $r8, $r9, $r10, $r12
|
||||||
|
; CHECK-NEXT: {{ $}}
|
||||||
|
; CHECK-NEXT: $r5 = tMOVr $r10, 14 /* CC::al */, $noreg
|
||||||
|
; CHECK-NEXT: $r6 = tMOVr $r2, 14 /* CC::al */, $noreg
|
||||||
|
; CHECK-NEXT: t2B %bb.8, 14 /* CC::al */, $noreg
|
||||||
|
; CHECK-NEXT: {{ $}}
|
||||||
|
; CHECK-NEXT: bb.8:
|
||||||
|
; CHECK-NEXT: successors: %bb.8(0x7c000000), %bb.6(0x04000000)
|
||||||
|
; CHECK-NEXT: liveins: $lr, $r0, $r1, $r2, $r3, $r4, $r5, $r6, $r8, $r9, $r10, $r12
|
||||||
|
; CHECK-NEXT: {{ $}}
|
||||||
|
; CHECK-NEXT: tSTRi killed $r0, $r1, 0, 14 /* CC::al */, $noreg
|
||||||
|
; CHECK-NEXT: renamable $lr = t2LoopEndDec killed renamable $lr, %bb.8, implicit-def dead $cpsr
|
||||||
|
; CHECK-NEXT: t2B %bb.6, 14 /* CC::al */, $noreg
|
||||||
|
; CHECK-NEXT: {{ $}}
|
||||||
|
; CHECK-NEXT: bb.9:
|
||||||
|
; CHECK-NEXT: $sp = frame-destroy t2LDMIA_RET $sp, 14 /* CC::al */, $noreg, def $r4, def $r5, def $r6, def $r7, def $r8, def $r9, def $r10, def $pc
|
||||||
bb.0:
|
bb.0:
|
||||||
successors: %bb.1
|
successors: %bb.1
|
||||||
liveins: $r0, $r1, $r2, $r3, $r4, $r5, $r6, $r7, $r8, $r9, $r10, $lr
|
liveins: $r0, $r1, $r2, $r3, $r4, $r5, $r6, $r7, $r8, $r9, $r10, $lr
|
||||||
|
@ -515,33 +573,43 @@ tracksRegLiveness: true
|
||||||
body: |
|
body: |
|
||||||
; CHECK-LABEL: name: backwards_branch_forwards_wls
|
; CHECK-LABEL: name: backwards_branch_forwards_wls
|
||||||
; CHECK: bb.0:
|
; CHECK: bb.0:
|
||||||
; CHECK: successors: %bb.1(0x80000000)
|
; CHECK-NEXT: successors: %bb.1(0x80000000)
|
||||||
; CHECK: liveins: $r0, $r1, $r2, $lr
|
; CHECK-NEXT: liveins: $r0, $r1, $r2, $lr
|
||||||
; CHECK: tCMPi8 renamable $r0, 1, 14 /* CC::al */, $noreg, implicit-def $cpsr
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: t2IT 11, 8, implicit-def $itstate
|
; CHECK-NEXT: tCMPi8 renamable $r0, 1, 14 /* CC::al */, $noreg, implicit-def $cpsr
|
||||||
; CHECK: frame-destroy tPOP_RET 11 /* CC::lt */, killed $cpsr, def $r7, def $pc, implicit killed $itstate
|
; CHECK-NEXT: t2IT 11, 8, implicit-def $itstate
|
||||||
; CHECK: bb.1:
|
; CHECK-NEXT: frame-destroy tPOP_RET 11 /* CC::lt */, killed $cpsr, def $r7, def $pc, implicit killed $itstate
|
||||||
; CHECK: successors: %bb.2(0x40000000), %bb.5(0x40000000)
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: liveins: $r0, $r1, $r2
|
; CHECK-NEXT: bb.1:
|
||||||
; CHECK: $lr = t2WhileLoopStartLR killed renamable $r0, %bb.2, implicit-def dead $cpsr
|
; CHECK-NEXT: successors: %bb.2(0x40000000), %bb.5(0x40000000)
|
||||||
; CHECK: t2B %bb.5, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: liveins: $r0, $r1, $r2
|
||||||
; CHECK: bb.2:
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: successors: %bb.4(0x40000000), %bb.3(0x40000000)
|
; CHECK-NEXT: $lr = t2WhileLoopStartLR killed renamable $r0, %bb.2, implicit-def dead $cpsr
|
||||||
; CHECK: liveins: $lr, $r0, $r1, $r2
|
; CHECK-NEXT: t2B %bb.5, 14 /* CC::al */, $noreg
|
||||||
; CHECK: $lr = t2WhileLoopStartLR killed renamable $r0, %bb.3, implicit-def dead $cpsr
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: t2B %bb.4, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: bb.2:
|
||||||
; CHECK: bb.3:
|
; CHECK-NEXT: successors: %bb.4(0x40000000), %bb.3(0x40000000)
|
||||||
; CHECK: frame-destroy tPOP_RET 14 /* CC::al */, $noreg, def $r7, def $pc
|
; CHECK-NEXT: liveins: $lr, $r0, $r1, $r2
|
||||||
; CHECK: bb.4:
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: successors: %bb.3(0x40000000), %bb.4(0x40000000)
|
; CHECK-NEXT: $lr = t2WhileLoopStartLR killed renamable $r0, %bb.3, implicit-def dead $cpsr
|
||||||
; CHECK: liveins: $lr, $r1, $r2
|
; CHECK-NEXT: t2B %bb.4, 14 /* CC::al */, $noreg
|
||||||
; CHECK: renamable $lr = t2LoopEndDec killed renamable $lr, %bb.4, implicit-def dead $cpsr
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: t2B %bb.3, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: bb.3:
|
||||||
; CHECK: bb.5:
|
; CHECK-NEXT: frame-destroy tPOP_RET 14 /* CC::al */, $noreg, def $r7, def $pc
|
||||||
; CHECK: successors: %bb.5(0x40000000), %bb.2(0x40000000)
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: liveins: $lr, $r1, $r2
|
; CHECK-NEXT: bb.4:
|
||||||
; CHECK: renamable $lr = t2LoopEndDec killed renamable $lr, %bb.5, implicit-def dead $cpsr
|
; CHECK-NEXT: successors: %bb.3(0x40000000), %bb.4(0x40000000)
|
||||||
; CHECK: t2B %bb.2, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: liveins: $lr, $r1, $r2
|
||||||
|
; CHECK-NEXT: {{ $}}
|
||||||
|
; CHECK-NEXT: renamable $lr = t2LoopEndDec killed renamable $lr, %bb.4, implicit-def dead $cpsr
|
||||||
|
; CHECK-NEXT: t2B %bb.3, 14 /* CC::al */, $noreg
|
||||||
|
; CHECK-NEXT: {{ $}}
|
||||||
|
; CHECK-NEXT: bb.5:
|
||||||
|
; CHECK-NEXT: successors: %bb.5(0x40000000), %bb.2(0x40000000)
|
||||||
|
; CHECK-NEXT: liveins: $lr, $r1, $r2
|
||||||
|
; CHECK-NEXT: {{ $}}
|
||||||
|
; CHECK-NEXT: renamable $lr = t2LoopEndDec killed renamable $lr, %bb.5, implicit-def dead $cpsr
|
||||||
|
; CHECK-NEXT: t2B %bb.2, 14 /* CC::al */, $noreg
|
||||||
bb.0:
|
bb.0:
|
||||||
successors: %bb.2
|
successors: %bb.2
|
||||||
liveins: $r0, $r1, $r2, $lr
|
liveins: $r0, $r1, $r2, $lr
|
||||||
|
@ -588,56 +656,70 @@ tracksRegLiveness: true
|
||||||
body: |
|
body: |
|
||||||
; CHECK-LABEL: name: multiple_predecessors
|
; CHECK-LABEL: name: multiple_predecessors
|
||||||
; CHECK: bb.0:
|
; CHECK: bb.0:
|
||||||
; CHECK: successors: %bb.3(0x55555555), %bb.2(0x2aaaaaab)
|
; CHECK-NEXT: successors: %bb.3(0x55555555), %bb.2(0x2aaaaaab)
|
||||||
; CHECK: liveins: $r0, $r1, $r2, $r7, $lr
|
; CHECK-NEXT: liveins: $r0, $r1, $r2, $r7, $lr
|
||||||
; CHECK: frame-setup tPUSH 14 /* CC::al */, $noreg, killed $r7, killed $lr, implicit-def $sp, implicit $sp
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: frame-setup CFI_INSTRUCTION def_cfa_offset 8
|
; CHECK-NEXT: frame-setup tPUSH 14 /* CC::al */, $noreg, killed $r7, killed $lr, implicit-def $sp, implicit $sp
|
||||||
; CHECK: frame-setup CFI_INSTRUCTION offset $lr, -4
|
; CHECK-NEXT: frame-setup CFI_INSTRUCTION def_cfa_offset 8
|
||||||
; CHECK: frame-setup CFI_INSTRUCTION offset $r7, -8
|
; CHECK-NEXT: frame-setup CFI_INSTRUCTION offset $lr, -4
|
||||||
; CHECK: $sp = frame-setup tSUBspi $sp, 1, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: frame-setup CFI_INSTRUCTION offset $r7, -8
|
||||||
; CHECK: frame-setup CFI_INSTRUCTION def_cfa_offset 12
|
; CHECK-NEXT: $sp = frame-setup tSUBspi $sp, 1, 14 /* CC::al */, $noreg
|
||||||
; CHECK: tCMPi8 killed renamable $r0, 0, 14 /* CC::al */, $noreg, implicit-def $cpsr
|
; CHECK-NEXT: frame-setup CFI_INSTRUCTION def_cfa_offset 12
|
||||||
; CHECK: t2IT 0, 8, implicit-def $itstate
|
; CHECK-NEXT: tCMPi8 killed renamable $r0, 0, 14 /* CC::al */, $noreg, implicit-def $cpsr
|
||||||
; CHECK: tCMPi8 killed renamable $r1, 8, 0 /* CC::eq */, killed $cpsr, implicit-def $cpsr, implicit killed $itstate
|
; CHECK-NEXT: t2IT 0, 8, implicit-def $itstate
|
||||||
; CHECK: t2Bcc %bb.2, 0 /* CC::eq */, killed $cpsr
|
; CHECK-NEXT: tCMPi8 killed renamable $r1, 8, 0 /* CC::eq */, killed $cpsr, implicit-def $cpsr, implicit killed $itstate
|
||||||
; CHECK: t2B %bb.3, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: t2Bcc %bb.2, 0 /* CC::eq */, killed $cpsr
|
||||||
; CHECK: bb.1:
|
; CHECK-NEXT: t2B %bb.3, 14 /* CC::al */, $noreg
|
||||||
; CHECK: successors: %bb.6(0x40000000), %bb.3(0x40000000)
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: liveins: $r0, $r1, $r2
|
; CHECK-NEXT: bb.1:
|
||||||
; CHECK: renamable $lr = t2WhileLoopStartLR killed renamable $r2, %bb.3, implicit-def dead $cpsr
|
; CHECK-NEXT: successors: %bb.6(0x40000000), %bb.3(0x40000000)
|
||||||
; CHECK: t2B %bb.6, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: liveins: $r0, $r1, $r2
|
||||||
; CHECK: bb.2:
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: successors: %bb.4(0x40000000), %bb.3(0x40000000)
|
; CHECK-NEXT: renamable $lr = t2WhileLoopStartLR killed renamable $r2, %bb.3, implicit-def dead $cpsr
|
||||||
; CHECK: liveins: $r2
|
; CHECK-NEXT: t2B %bb.6, 14 /* CC::al */, $noreg
|
||||||
; CHECK: renamable $lr = t2WhileLoopStartLR renamable $r2, %bb.3, implicit-def dead $cpsr
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: t2B %bb.4, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: bb.2:
|
||||||
; CHECK: bb.3:
|
; CHECK-NEXT: successors: %bb.4(0x40000000), %bb.3(0x40000000)
|
||||||
; CHECK: $sp = frame-destroy tADDspi $sp, 1, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: liveins: $r2
|
||||||
; CHECK: frame-destroy tPOP_RET 14 /* CC::al */, $noreg, def $r7, def $pc, implicit undef $r0
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: bb.4:
|
; CHECK-NEXT: renamable $lr = t2WhileLoopStartLR renamable $r2, %bb.3, implicit-def dead $cpsr
|
||||||
; CHECK: successors: %bb.5(0x80000000)
|
; CHECK-NEXT: t2B %bb.4, 14 /* CC::al */, $noreg
|
||||||
; CHECK: liveins: $lr, $r2
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: renamable $r3, dead $cpsr = tMOVi8 0, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: bb.3:
|
||||||
; CHECK: renamable $r1 = t2ADDri $sp, 2, 14 /* CC::al */, $noreg, $noreg
|
; CHECK-NEXT: $sp = frame-destroy tADDspi $sp, 1, 14 /* CC::al */, $noreg
|
||||||
; CHECK: renamable $r0 = IMPLICIT_DEF
|
; CHECK-NEXT: frame-destroy tPOP_RET 14 /* CC::al */, $noreg, def $r7, def $pc, implicit undef $r0
|
||||||
; CHECK: bb.5:
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: successors: %bb.5(0x7c000000), %bb.1(0x04000000)
|
; CHECK-NEXT: bb.4:
|
||||||
; CHECK: liveins: $lr, $r0, $r1, $r2, $r3
|
; CHECK-NEXT: successors: %bb.5(0x80000000)
|
||||||
; CHECK: renamable $q0, renamable $r0 = MVE_VIWDUPu16 killed renamable $r0, renamable $r3, 1, 0, $noreg, $noreg, undef renamable $q0
|
; CHECK-NEXT: liveins: $lr, $r2
|
||||||
; CHECK: MVE_VSTRH16_rq undef renamable $q0, renamable $r1, killed renamable $q0, 0, $noreg, $noreg
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: renamable $lr = t2LoopEndDec killed renamable $lr, %bb.5, implicit-def dead $cpsr
|
; CHECK-NEXT: renamable $r3, dead $cpsr = tMOVi8 0, 14 /* CC::al */, $noreg
|
||||||
; CHECK: t2B %bb.1, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: renamable $r1 = t2ADDri $sp, 2, 14 /* CC::al */, $noreg, $noreg
|
||||||
; CHECK: bb.6:
|
; CHECK-NEXT: renamable $r0 = IMPLICIT_DEF
|
||||||
; CHECK: successors: %bb.7(0x80000000)
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: liveins: $lr, $r0, $r1
|
; CHECK-NEXT: bb.5:
|
||||||
; CHECK: renamable $r3, dead $cpsr = tMOVi8 0, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: successors: %bb.5(0x7c000000), %bb.1(0x04000000)
|
||||||
; CHECK: bb.7:
|
; CHECK-NEXT: liveins: $lr, $r0, $r1, $r2, $r3
|
||||||
; CHECK: successors: %bb.7(0x7c000000), %bb.3(0x04000000)
|
; CHECK-NEXT: {{ $}}
|
||||||
; CHECK: liveins: $lr, $r0, $r1, $r3
|
; CHECK-NEXT: renamable $q0, renamable $r0 = MVE_VIWDUPu16 killed renamable $r0, renamable $r3, 1, 0, $noreg, $noreg, undef renamable $q0
|
||||||
; CHECK: renamable $q0, renamable $r0 = MVE_VIWDUPu16 killed renamable $r0, renamable $r3, 2, 0, $noreg, $noreg, undef renamable $q0
|
; CHECK-NEXT: MVE_VSTRH16_rq undef renamable $q0, renamable $r1, killed renamable $q0, 0, $noreg, $noreg
|
||||||
; CHECK: MVE_VSTRH16_rq undef renamable $q0, renamable $r1, killed renamable $q0, 0, $noreg, $noreg
|
; CHECK-NEXT: renamable $lr = t2LoopEndDec killed renamable $lr, %bb.5, implicit-def dead $cpsr
|
||||||
; CHECK: renamable $lr = t2LoopEndDec killed renamable $lr, %bb.7, implicit-def dead $cpsr
|
; CHECK-NEXT: t2B %bb.1, 14 /* CC::al */, $noreg
|
||||||
; CHECK: t2B %bb.3, 14 /* CC::al */, $noreg
|
; CHECK-NEXT: {{ $}}
|
||||||
|
; CHECK-NEXT: bb.6:
|
||||||
|
; CHECK-NEXT: successors: %bb.7(0x80000000)
|
||||||
|
; CHECK-NEXT: liveins: $lr, $r0, $r1
|
||||||
|
; CHECK-NEXT: {{ $}}
|
||||||
|
; CHECK-NEXT: renamable $r3, dead $cpsr = tMOVi8 0, 14 /* CC::al */, $noreg
|
||||||
|
; CHECK-NEXT: {{ $}}
|
||||||
|
; CHECK-NEXT: bb.7:
|
||||||
|
; CHECK-NEXT: successors: %bb.7(0x7c000000), %bb.3(0x04000000)
|
||||||
|
; CHECK-NEXT: liveins: $lr, $r0, $r1, $r3
|
||||||
|
; CHECK-NEXT: {{ $}}
|
||||||
|
; CHECK-NEXT: renamable $q0, renamable $r0 = MVE_VIWDUPu16 killed renamable $r0, renamable $r3, 2, 0, $noreg, $noreg, undef renamable $q0
|
||||||
|
; CHECK-NEXT: MVE_VSTRH16_rq undef renamable $q0, renamable $r1, killed renamable $q0, 0, $noreg, $noreg
|
||||||
|
; CHECK-NEXT: renamable $lr = t2LoopEndDec killed renamable $lr, %bb.7, implicit-def dead $cpsr
|
||||||
|
; CHECK-NEXT: t2B %bb.3, 14 /* CC::al */, $noreg
|
||||||
bb.0:
|
bb.0:
|
||||||
successors: %bb.7(0x80000000), %bb.1(0x40000000)
|
successors: %bb.7(0x80000000), %bb.1(0x40000000)
|
||||||
liveins: $r0, $r1, $r2, $r7, $lr
|
liveins: $r0, $r1, $r2, $r7, $lr
|
||||||
|
@ -704,3 +786,83 @@ body: |
|
||||||
t2B %bb.7, 14 /* CC::al */, $noreg
|
t2B %bb.7, 14 /* CC::al */, $noreg
|
||||||
|
|
||||||
...
|
...
|
||||||
|
---
|
||||||
|
name: jump_table
|
||||||
|
tracksRegLiveness: true
|
||||||
|
jumpTable:
|
||||||
|
kind: inline
|
||||||
|
entries:
|
||||||
|
- id: 0
|
||||||
|
blocks: [ '%bb.3', '%bb.1' ]
|
||||||
|
body: |
|
||||||
|
; CHECK-LABEL: name: jump_table
|
||||||
|
; CHECK: bb.0:
|
||||||
|
; CHECK-NEXT: successors: %bb.3(0x80000000)
|
||||||
|
; CHECK-NEXT: liveins: $r0, $r1, $r2, $lr
|
||||||
|
; CHECK-NEXT: {{ $}}
|
||||||
|
; CHECK-NEXT: tCMPi8 renamable $r0, 1, 14 /* CC::al */, $noreg, implicit-def $cpsr
|
||||||
|
; CHECK-NEXT: t2IT 11, 8, implicit-def $itstate
|
||||||
|
; CHECK-NEXT: frame-destroy tPOP_RET 11 /* CC::lt */, killed $cpsr, def $r7, def $pc, implicit killed $itstate
|
||||||
|
; CHECK-NEXT: {{ $}}
|
||||||
|
; CHECK-NEXT: bb.1:
|
||||||
|
; CHECK-NEXT: successors: %bb.4(0x80000000)
|
||||||
|
; CHECK-NEXT: liveins: $r0, $r1, $r2
|
||||||
|
; CHECK-NEXT: {{ $}}
|
||||||
|
; CHECK-NEXT: $lr = t2WhileLoopStartLR killed renamable $r0, %bb.2, implicit-def dead $cpsr
|
||||||
|
; CHECK-NEXT: t2B %bb.4, 14 /* CC::al */, $noreg
|
||||||
|
; CHECK-NEXT: {{ $}}
|
||||||
|
; CHECK-NEXT: bb.2:
|
||||||
|
; CHECK-NEXT: frame-destroy tPOP_RET 14 /* CC::al */, $noreg, def $r7, def $pc
|
||||||
|
; CHECK-NEXT: {{ $}}
|
||||||
|
; CHECK-NEXT: bb.3:
|
||||||
|
; CHECK-NEXT: successors: %bb.1(0x7c000000), %bb.2(0x04000000)
|
||||||
|
; CHECK-NEXT: liveins: $r0
|
||||||
|
; CHECK-NEXT: {{ $}}
|
||||||
|
; CHECK-NEXT: renamable $r5 = t2LEApcrelJT %jump-table.0, 14 /* CC::al */, $noreg
|
||||||
|
; CHECK-NEXT: renamable $r5 = t2ADDrs killed renamable $r5, renamable $r0, 18, 14 /* CC::al */, $noreg, $noreg
|
||||||
|
; CHECK-NEXT: t2BR_JT killed renamable $r5, killed renamable $r0, %jump-table.0
|
||||||
|
; CHECK-NEXT: t2B %bb.1, 14 /* CC::al */, $noreg
|
||||||
|
; CHECK-NEXT: {{ $}}
|
||||||
|
; CHECK-NEXT: bb.4:
|
||||||
|
; CHECK-NEXT: successors: %bb.4(0x7c000000), %bb.2(0x04000000)
|
||||||
|
; CHECK-NEXT: liveins: $lr, $r1, $r2
|
||||||
|
; CHECK-NEXT: {{ $}}
|
||||||
|
; CHECK-NEXT: renamable $r0 = tLDRi renamable $r2, 0, 14 /* CC::al */, $noreg
|
||||||
|
; CHECK-NEXT: tSTRi killed renamable $r0, renamable $r1, 0, 14 /* CC::al */, $noreg
|
||||||
|
; CHECK-NEXT: renamable $lr = t2LoopEndDec killed renamable $lr, %bb.4, implicit-def dead $cpsr
|
||||||
|
; CHECK-NEXT: t2B %bb.2, 14 /* CC::al */, $noreg
|
||||||
|
bb.0:
|
||||||
|
successors: %bb.2(0x80000000)
|
||||||
|
liveins: $r0, $r1, $r2, $lr
|
||||||
|
|
||||||
|
tCMPi8 renamable $r0, 1, 14 /* CC::al */, $noreg, implicit-def $cpsr
|
||||||
|
t2IT 11, 8, implicit-def $itstate
|
||||||
|
frame-destroy tPOP_RET 11 /* CC::lt */, killed $cpsr, def $r7, def $pc, implicit killed $itstate
|
||||||
|
|
||||||
|
bb.1:
|
||||||
|
frame-destroy tPOP_RET 14 /* CC::al */, $noreg, def $r7, def $pc
|
||||||
|
|
||||||
|
bb.2:
|
||||||
|
successors: %bb.3(0x7c000000), %bb.1(0x04000000)
|
||||||
|
liveins: $r0
|
||||||
|
|
||||||
|
renamable $r5 = t2LEApcrelJT %jump-table.0, 14 /* CC::al */, $noreg
|
||||||
|
renamable $r5 = t2ADDrs killed renamable $r5, renamable $r0, 18, 14 /* CC::al */, $noreg, $noreg
|
||||||
|
t2BR_JT killed renamable $r5, killed renamable $r0, %jump-table.0
|
||||||
|
|
||||||
|
bb.3:
|
||||||
|
successors: %bb.4(0x80000000)
|
||||||
|
liveins: $r0, $r1, $r2
|
||||||
|
|
||||||
|
$lr = t2WhileLoopStartLR killed renamable $r0, %bb.1, implicit-def dead $cpsr
|
||||||
|
|
||||||
|
bb.4:
|
||||||
|
successors: %bb.4(0x7c000000), %bb.1(0x04000000)
|
||||||
|
liveins: $lr, $r1, $r2
|
||||||
|
|
||||||
|
renamable $r0 = tLDRi renamable $r2, 0, 14 /* CC::al */, $noreg
|
||||||
|
tSTRi killed renamable $r0, renamable $r1, 0, 14 /* CC::al */, $noreg
|
||||||
|
renamable $lr = t2LoopEndDec killed renamable $lr, %bb.4, implicit-def dead $cpsr
|
||||||
|
t2B %bb.1, 14 /* CC::al */, $noreg
|
||||||
|
|
||||||
|
...
|
||||||
|
|
Loading…
Reference in New Issue