1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -march=amdgcn -mcpu=gfx900 -run-pass si-pre-emit-peephole -amdgpu-skip-threshold=1 -verify-machineinstrs %s -o - | FileCheck %s
3 # Make sure mandatory skips are inserted to ensure GWS ops aren't run with exec = 0
9 ; CHECK-LABEL: name: skip_gws_init
11 ; CHECK-NEXT: successors: %bb.1(0x40000000), %bb.2(0x40000000)
13 ; CHECK-NEXT: S_CBRANCH_EXECZ %bb.2, implicit $exec
16 ; CHECK-NEXT: successors: %bb.2(0x80000000)
18 ; CHECK-NEXT: $vgpr0 = V_MOV_B32_e32 0, implicit $exec
19 ; CHECK-NEXT: DS_GWS_INIT $vgpr0, 0, implicit $m0, implicit $exec
22 ; CHECK-NEXT: S_ENDPGM 0
24 successors: %bb.1, %bb.2
25 S_CBRANCH_EXECZ %bb.2, implicit $exec
29 $vgpr0 = V_MOV_B32_e32 0, implicit $exec
30 DS_GWS_INIT $vgpr0, 0, implicit $m0, implicit $exec
38 name: skip_gws_barrier
40 ; CHECK-LABEL: name: skip_gws_barrier
42 ; CHECK-NEXT: successors: %bb.1(0x40000000), %bb.2(0x40000000)
44 ; CHECK-NEXT: S_CBRANCH_EXECZ %bb.2, implicit $exec
47 ; CHECK-NEXT: successors: %bb.2(0x80000000)
49 ; CHECK-NEXT: $vgpr0 = V_MOV_B32_e32 0, implicit $exec
50 ; CHECK-NEXT: DS_GWS_BARRIER $vgpr0, 0, implicit $m0, implicit $exec
53 ; CHECK-NEXT: S_ENDPGM 0
55 successors: %bb.1, %bb.2
56 S_CBRANCH_EXECZ %bb.2, implicit $exec
60 $vgpr0 = V_MOV_B32_e32 0, implicit $exec
61 DS_GWS_BARRIER $vgpr0, 0, implicit $m0, implicit $exec