2017-08-23 11:17:59 +08:00
|
|
|
# RUN: llc -o - %s -run-pass=block-placement -mtriple=thumbv7k-apple-ios8.0.0 -verify-machineinstrs -O3 | FileCheck %s
|
|
|
|
---
|
|
|
|
# CHECK-LABEL: name: func
|
|
|
|
# Make sure the bundle gets duplicated correctly
|
2018-02-01 06:04:26 +08:00
|
|
|
# CHECK: BUNDLE implicit-def dead $itstate, implicit-def $cpsr, implicit killed $r0, implicit killed $cpsr {
|
|
|
|
# CHECK: t2IT 1, 24, implicit-def $itstate
|
|
|
|
# CHECK: t2CMPri killed $r0, 9, 1, killed $cpsr, implicit-def $cpsr, implicit internal killed $itstate
|
2017-08-23 11:17:59 +08:00
|
|
|
# CHECK: }
|
2018-02-01 06:04:26 +08:00
|
|
|
# CHECK: BUNDLE implicit-def dead $itstate, implicit-def $cpsr, implicit killed $r0, implicit killed $cpsr {
|
|
|
|
# CHECK: t2IT 1, 24, implicit-def $itstate
|
|
|
|
# CHECK: t2CMPri killed $r0, 9, 1, killed $cpsr, implicit-def $cpsr, implicit internal killed $itstate
|
2017-08-23 11:17:59 +08:00
|
|
|
# CHECK: }
|
|
|
|
name: func
|
|
|
|
tracksRegLiveness: true
|
|
|
|
body: |
|
|
|
|
bb.0:
|
2018-02-01 06:04:26 +08:00
|
|
|
liveins: $r0, $lr, $r7
|
2017-08-23 11:17:59 +08:00
|
|
|
|
|
|
|
bb.1:
|
2018-02-01 06:04:26 +08:00
|
|
|
liveins: $r0
|
2017-08-23 11:17:59 +08:00
|
|
|
|
2018-02-01 06:04:26 +08:00
|
|
|
t2CMPri $r0, 32, 14, $noreg, implicit-def $cpsr
|
|
|
|
BUNDLE implicit-def dead $itstate, implicit-def $cpsr, implicit killed $r0, implicit killed $cpsr {
|
|
|
|
t2IT 1, 24, implicit-def $itstate
|
|
|
|
t2CMPri killed $r0, 9, 1, killed $cpsr, implicit-def $cpsr, implicit internal killed $itstate
|
2017-08-23 11:17:59 +08:00
|
|
|
}
|
2018-02-01 06:04:26 +08:00
|
|
|
t2Bcc %bb.3, 1, killed $cpsr
|
2017-08-23 11:17:59 +08:00
|
|
|
|
|
|
|
bb.2:
|
2018-02-01 06:04:26 +08:00
|
|
|
$r0 = IMPLICIT_DEF
|
|
|
|
t2B %bb.1, 14, $noreg
|
2017-08-23 11:17:59 +08:00
|
|
|
|
|
|
|
bb.3:
|
2018-02-01 06:04:26 +08:00
|
|
|
$r0 = IMPLICIT_DEF
|
|
|
|
t2B %bb.1, 14, $noreg
|
2017-08-23 11:17:59 +08:00
|
|
|
...
|