2017-04-29 05:56:33 +08:00
|
|
|
# RUN: llc -march=hexagon -run-pass unreachable-mbb-elimination %s -o - | FileCheck %s
|
|
|
|
|
|
|
|
---
|
|
|
|
name: fred
|
|
|
|
tracksRegLiveness: true
|
|
|
|
body: |
|
|
|
|
bb.0:
|
2018-02-01 06:04:26 +08:00
|
|
|
liveins: $d0
|
2017-04-29 05:56:33 +08:00
|
|
|
successors: %bb.2
|
|
|
|
|
2018-02-01 06:04:26 +08:00
|
|
|
%0 : doubleregs = COPY $d0
|
|
|
|
J2_jump %bb.2, implicit-def $pc
|
2017-04-29 05:56:33 +08:00
|
|
|
|
|
|
|
bb.1:
|
|
|
|
successors: %bb.2
|
|
|
|
A2_nop
|
|
|
|
|
|
|
|
bb.2:
|
|
|
|
; Make sure that the subregister from the PHI operand is preserved.
|
2017-10-25 02:04:54 +08:00
|
|
|
; CHECK: %[[REG:[0-9]+]]:intregs = COPY %0.isub_lo
|
2018-02-01 06:04:26 +08:00
|
|
|
; CHECK: $r0 = COPY %[[REG]]
|
2017-04-29 05:56:33 +08:00
|
|
|
%1 : intregs = PHI %0.isub_lo, %bb.0, %0.isub_hi, %bb.1
|
2018-02-01 06:04:26 +08:00
|
|
|
$r0 = COPY %1
|
2017-04-29 05:56:33 +08:00
|
|
|
...
|