1# RUN: llc -mtriple=amdgcn-amd-amdhsa -verify-machineinstrs -run-pass=si-i1-copies -o - %s | FileCheck -check-prefixes=GCN %s
2
3# GCN-LABEL: name: lcssa_phi
4---
5name:              lcssa_phi
6tracksRegLiveness: true
7body:             |
8  bb.0:
9    %0:sreg_64 = S_MOV_B64 0
10    %8:vreg_1 = IMPLICIT_DEF
11    %10:sreg_64 = IMPLICIT_DEF
12    %11:sreg_64 = SI_IF %10, %bb.3, implicit-def dead $exec, implicit-def dead $scc, implicit $exec
13    S_BRANCH %bb.1
14
15  bb.1:
16    %1:sreg_64 = PHI %0, %bb.0, %3, %bb.1
17    %2:sreg_64 = IMPLICIT_DEF
18    %3:sreg_64 = SI_IF_BREAK %2, %1, implicit-def dead $scc
19    %4:sreg_64 = IMPLICIT_DEF
20    %5:vreg_1 = COPY %4
21    SI_LOOP %3, %bb.1, implicit-def dead $exec, implicit-def dead $scc, implicit $exec
22    S_BRANCH %bb.2
23
24  bb.2:
25    %6:vreg_1 = PHI %5, %bb.1
26    SI_END_CF %3, implicit-def dead $exec, implicit-def dead $scc, implicit $exec
27
28  bb.3:
29    %7:vreg_1 = PHI %6, %bb.2, %8, %bb.0
30    SI_END_CF %11, implicit-def dead $exec, implicit-def dead $scc, implicit $exec
31    S_ENDPGM 0
32
33...
34