1# RUN: llc -march=amdgcn -mcpu=polaris10 -run-pass si-insert-skips -amdgpu-skip-threshold-legacy=1 %s -o - | FileCheck %s 2# https://bugs.freedesktop.org/show_bug.cgi?id=99019 3--- | 4 define amdgpu_ps void @kill_uncond_branch() { 5 ret void 6 } 7... 8--- 9 10# CHECK-LABEL: name: kill_uncond_branch 11 12# CHECK: bb.0: 13# CHECK: S_CBRANCH_VCCNZ %bb.1, implicit $vcc 14 15# CHECK: bb.1: 16# CHECK: V_CMPX_LE_F32_e32 17# CHECK-NEXT: S_CBRANCH_EXECZ %bb.3, implicit $exec 18 19# CHECK: bb.2: 20# CHECK: S_ENDPGM 0 21 22# CHECK: bb.3: 23# CHECK-NEXT: EXP_DONE 24# CHECK: S_ENDPGM 0 25 26name: kill_uncond_branch 27 28body: | 29 bb.0: 30 successors: %bb.1 31 S_CBRANCH_VCCNZ %bb.1, implicit $vcc 32 33 bb.1: 34 successors: %bb.2 35 $vgpr0 = V_MOV_B32_e32 0, implicit $exec 36 SI_KILL_F32_COND_IMM_TERMINATOR $vgpr0, 0, 3, implicit-def $exec, implicit-def $vcc, implicit-def $scc, implicit $exec 37 S_BRANCH %bb.2 38 39 bb.2: 40 S_ENDPGM 0 41