Recommit r310809 with a fix for the spill problem
[llvm-core.git] / test / CodeGen / Hexagon / unreachable-mbb-phi-subreg.mir
blob6d6549201abf1f128b2723f5064157960a5d366b
1 # RUN: llc -march=hexagon -run-pass unreachable-mbb-elimination %s -o - | FileCheck %s
3 ---
4 name: fred
5 tracksRegLiveness: true
6 body: |
7   bb.0:
8     liveins: %d0
9     successors: %bb.2
11     %0 : doubleregs = COPY %d0
12     J2_jump %bb.2, implicit-def %pc
14   bb.1:
15     successors: %bb.2
16     A2_nop
18   bb.2:
19     ; Make sure that the subregister from the PHI operand is preserved.
20     ; CHECK: %[[REG:[0-9]+]] = 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 ...