1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -o - %s -run-pass=block-placement -mtriple=thumbv7k-apple-ios8.0.0 -verify-machineinstrs -O3 | FileCheck %s
4 # Make sure the bundle gets duplicated correctly
6 tracksRegLiveness: true
8 ; CHECK-LABEL: name: func
10 ; CHECK: successors: %bb.3(0x40000000), %bb.2(0x40000000)
11 ; CHECK: liveins: $r0, $lr, $r7
12 ; CHECK: t2CMPri $r0, 32, 14 /* CC::al */, $noreg, implicit-def $cpsr
13 ; CHECK: BUNDLE implicit-def dead $itstate, implicit-def $cpsr, implicit killed $r0, implicit killed $cpsr {
14 ; CHECK: t2IT 1, 24, implicit-def $itstate
15 ; CHECK: t2CMPri killed $r0, 9, 1 /* CC::ne */, killed $cpsr, implicit-def $cpsr, implicit internal killed $itstate
17 ; CHECK: t2Bcc %bb.3, 1 /* CC::ne */, killed $cpsr
19 ; CHECK: successors: %bb.3(0x40000000), %bb.2(0x40000000)
20 ; CHECK: $r0 = IMPLICIT_DEF
21 ; CHECK: t2CMPri $r0, 32, 14 /* CC::al */, $noreg, implicit-def $cpsr
22 ; CHECK: BUNDLE implicit-def dead $itstate, implicit-def $cpsr, implicit killed $r0, implicit killed $cpsr {
23 ; CHECK: t2IT 1, 24, implicit-def $itstate
24 ; CHECK: t2CMPri killed $r0, 9, 1 /* CC::ne */, killed $cpsr, implicit-def $cpsr, implicit internal killed $itstate
26 ; CHECK: t2Bcc %bb.2, 0 /* CC::eq */, killed $cpsr
28 ; CHECK: successors: %bb.3(0x40000000), %bb.2(0x40000000)
29 ; CHECK: $r0 = IMPLICIT_DEF
30 ; CHECK: t2CMPri $r0, 32, 14 /* CC::al */, $noreg, implicit-def $cpsr
31 ; CHECK: BUNDLE implicit-def dead $itstate, implicit-def $cpsr, implicit killed $r0, implicit killed $cpsr {
32 ; CHECK: t2IT 1, 24, implicit-def $itstate
33 ; CHECK: t2CMPri killed $r0, 9, 1 /* CC::ne */, killed $cpsr, implicit-def $cpsr, implicit internal killed $itstate
35 ; CHECK: t2Bcc %bb.3, 1 /* CC::ne */, killed $cpsr
36 ; CHECK: t2B %bb.2, 14 /* CC::al */, $noreg
38 liveins: $r0, $lr, $r7
43 t2CMPri $r0, 32, 14, $noreg, implicit-def $cpsr
44 BUNDLE implicit-def dead $itstate, implicit-def $cpsr, implicit killed $r0, implicit killed $cpsr {
45 t2IT 1, 24, implicit-def $itstate
46 t2CMPri killed $r0, 9, 1, killed $cpsr, implicit-def $cpsr, implicit internal killed $itstate
48 t2Bcc %bb.3, 1, killed $cpsr