1# RUN: llc -march=hexagon -run-pass unreachable-mbb-elimination %s -o - | FileCheck %s
2
3---
4name: fred
5tracksRegLiveness: true
6body: |
7  bb.0:
8    liveins: $d0
9    successors: %bb.2
10
11    %0 : doubleregs = COPY $d0
12    J2_jump %bb.2, implicit-def $pc
13
14  bb.1:
15    successors: %bb.2
16    A2_nop
17
18  bb.2:
19    ; Make sure that the subregister from the PHI operand is preserved.
20    ; CHECK: %[[REG:[0-9]+]]:intregs = COPY %0.isub_lo
21    ; CHECK: $r0 = COPY %[[REG]]
22    %1 : intregs = PHI %0.isub_lo, %bb.0, %0.isub_hi, %bb.1
23    $r0 = COPY %1
24...
25