1 # RUN: llc -mtriple=amdgcn -mcpu=gfx1010 -verify-machineinstrs -run-pass branch-folder -o - %s | FileCheck %s
2 # RUN: llc -mtriple=amdgcn -mcpu=gfx1100 -verify-machineinstrs -run-pass branch-folder -o - %s | FileCheck %s
4 # Designed to provoke calling SIInstrInfo::insertBranch in wave32 mode
5 # The implicit $vcc operand should be $vcc_lo in this case
9 # CHECK: S_CBRANCH_VCCNZ %bb.1, implicit $vcc_lo
14 $vgpr1 = V_MOV_B32_e32 1050, implicit $exec
15 $sgpr0 = S_MOV_B32 1123418112
17 $vgpr0 = COPY killed $vgpr1, implicit $exec
18 V_CMP_GT_U32_e32 5, $vgpr1, implicit-def $vcc_lo, implicit $exec, implicit-def $vcc
19 $vcc_lo = S_AND_B32 $exec_lo, $vcc_lo, implicit-def dead $scc
20 S_CBRANCH_VCCNZ %bb.1, implicit $vcc_lo, implicit $vcc
30 # CHECK: S_CBRANCH_VCCNZ %bb.1, implicit undef $vcc_lo
32 name: _amdgpu_cs_main_undef
35 $vgpr1 = V_MOV_B32_e32 1050, implicit $exec
36 $sgpr0 = S_MOV_B32 1123418112
38 $vgpr0 = COPY killed $vgpr1, implicit $exec
39 S_CBRANCH_VCCNZ %bb.1, implicit undef $vcc_lo, implicit undef $vcc