1 # RUN: llc -march=amdgcn -mcpu=gfx1010 -verify-machineinstrs -run-pass branch-folder -o - %s | FileCheck %s
3 # Designed to provoke calling SIInstrInfo::insertBranch in wave32 mode
4 # The implicit $vcc operand should be $vcc_lo in this case
8 # CHECK: S_CBRANCH_VCCNZ %bb.1, implicit $vcc_lo
13 $vgpr1 = V_MOV_B32_e32 1050, implicit $exec
14 $sgpr0 = S_MOV_B32 1123418112
16 $vgpr0 = COPY killed $vgpr1, implicit $exec
17 V_CMP_GT_U32_e32 5, $vgpr1, implicit-def $vcc_lo, implicit $exec, implicit-def $vcc
18 $vcc_lo = S_AND_B32 $exec_lo, $vcc_lo, implicit-def dead $scc
19 S_CBRANCH_VCCNZ %bb.1, implicit $vcc_lo, implicit $vcc
29 # CHECK: S_CBRANCH_VCCNZ %bb.1, implicit undef $vcc_lo
31 name: _amdgpu_cs_main_undef
34 $vgpr1 = V_MOV_B32_e32 1050, implicit $exec
35 $sgpr0 = S_MOV_B32 1123418112
37 $vgpr0 = COPY killed $vgpr1, implicit $exec
38 S_CBRANCH_VCCNZ %bb.1, implicit undef $vcc_lo, implicit undef $vcc