1# RUN: llc -march=amdgcn -mcpu=gfx1010 -verify-machineinstrs -run-pass branch-folder -o - %s | FileCheck %s 2 3# Designed to provoke calling SIInstrInfo::insertBranch in wave32 mode 4# The implicit $vcc operand should be $vcc_lo in this case 5 6... 7# CHECK-LABEL: bb.1: 8# CHECK: S_CBRANCH_VCCNZ %bb.1, implicit $vcc_lo 9 10name: _amdgpu_cs_main 11body: | 12 bb.0: 13 $vgpr1 = V_MOV_B32_e32 1050, implicit $exec 14 $sgpr0 = S_MOV_B32 1123418112 15 bb.1: 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 20 S_BRANCH %bb.2 21 22 bb.2: 23 $sgpr1 = COPY $sgpr0 24 S_BRANCH %bb.1 25 26... 27 28# CHECK-LABEL: bb.1: 29# CHECK: S_CBRANCH_VCCNZ %bb.1, implicit undef $vcc_lo 30--- 31name: _amdgpu_cs_main_undef 32body: | 33 bb.0: 34 $vgpr1 = V_MOV_B32_e32 1050, implicit $exec 35 $sgpr0 = S_MOV_B32 1123418112 36 bb.1: 37 $vgpr0 = COPY killed $vgpr1, implicit $exec 38 S_CBRANCH_VCCNZ %bb.1, implicit undef $vcc_lo, implicit undef $vcc 39 S_BRANCH %bb.2 40 41 bb.2: 42 $sgpr1 = COPY $sgpr0 43 S_BRANCH %bb.1 44 45... 46