summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Hexagon/unreachable-mbb-phi-subreg.mir
blob: 2f78a6d9542a063708b891810ce43fcfb6e836a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# RUN: llc -march=hexagon -run-pass unreachable-mbb-elimination %s -o - | FileCheck %s

---
name: fred
tracksRegLiveness: true
body: |
  bb.0:
    liveins: $d0
    successors: %bb.2

    %0 : doubleregs = COPY $d0
    J2_jump %bb.2, implicit-def $pc

  bb.1:
    successors: %bb.2
    A2_nop

  bb.2:
    ; Make sure that the subregister from the PHI operand is preserved.
    ; CHECK: %[[REG:[0-9]+]]:intregs = COPY %0.isub_lo
    ; CHECK: $r0 = COPY %[[REG]]
    %1 : intregs = PHI %0.isub_lo, %bb.0, %0.isub_hi, %bb.1
    $r0 = COPY %1
...
OpenPOWER on IntegriCloud