1 # RUN: llc -mtriple=amdgcn -mcpu=gfx1030 -verify-machineinstrs -run-pass=greedy -stress-regalloc=2 %s -o - | FileCheck -check-prefix=GCN %s
3 # Make sure there's no verifier error after register allocation
4 # introduces vreg defs when the MIR parser infers SSA.
7 name: ra_introduces_vreg_def
8 tracksRegLiveness: true
10 scratchRSrcReg: '$sgpr0_sgpr1_sgpr2_sgpr3'
11 frameOffsetReg: '$sgpr33'
12 stackPtrOffsetReg: '$sgpr32'
14 privateSegmentBuffer: { reg: '$sgpr0_sgpr1_sgpr2_sgpr3' }
16 ; GCN-LABEL: name: ra_introduces_vreg_def
17 ; GCN: [[COPY_V0:%[0-9]+]]:vgpr_32 = COPY $vgpr0
18 ; GCN: [[COPY_V1:%[0-9]+]]:vgpr_32 = COPY $vgpr1
20 liveins: $vgpr0, $vgpr1
21 %0:vgpr_32 = COPY $vgpr0
22 %1:vgpr_32 = COPY $vgpr1
27 $vgpr0 = V_MOV_B32_e32 0, implicit $exec
28 $vgpr1 = V_MOV_B32_e32 1, implicit $exec
33 S_CBRANCH_EXECNZ %bb.1, implicit $exec
36 $exec_lo = S_OR_B32 $exec_lo, undef $sgpr4, implicit-def $scc
38 S_SETPC_B64_return undef $sgpr30_sgpr31, implicit $vgpr0