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 3--- 4# Make sure the bundle gets duplicated correctly 5name: func 6tracksRegLiveness: true 7body: | 8 ; CHECK-LABEL: name: func 9 ; CHECK: bb.0: 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 16 ; CHECK: } 17 ; CHECK: t2Bcc %bb.3, 1 /* CC::ne */, killed $cpsr 18 ; CHECK: bb.2: 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 25 ; CHECK: } 26 ; CHECK: t2Bcc %bb.2, 0 /* CC::eq */, killed $cpsr 27 ; CHECK: bb.3: 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 34 ; CHECK: } 35 ; CHECK: t2Bcc %bb.3, 1 /* CC::ne */, killed $cpsr 36 ; CHECK: t2B %bb.2, 14 /* CC::al */, $noreg 37 bb.0: 38 liveins: $r0, $lr, $r7 39 40 bb.1: 41 liveins: $r0 42 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 47 } 48 t2Bcc %bb.3, 1, killed $cpsr 49 50 bb.2: 51 $r0 = IMPLICIT_DEF 52 t2B %bb.1, 14, $noreg 53 54 bb.3: 55 $r0 = IMPLICIT_DEF 56 t2B %bb.1, 14, $noreg 57... 58