1 # RUN: llc -o - %s -march=amdgcn -run-pass=si-insert-waitcnts -verify-machineinstrs | FileCheck -check-prefix=GCN %s
3 # Check that the waitcnt propogates info in the case of a single basic block loop
5 # GCN-LABEL: waitcnt-loop-single-basic-block
8 # GCN-NEXT: GLOBAL_STORE_DWORD
10 # GCN-NEXT: GLOBAL_STORE_DWORD
13 name: waitcnt-loop-single-basic-block
18 GLOBAL_STORE_DWORD $vgpr7_vgpr8, $vgpr11, 0, 0, 0, 0, implicit $exec
19 $vgpr21 = GLOBAL_LOAD_DWORD $vgpr4_vgpr5, 0, 0, 0, 0, implicit $exec
20 $vgpr10 = GLOBAL_LOAD_DWORD $vgpr10_vgpr11, 0, 0, 0, 0, implicit $exec
21 GLOBAL_STORE_DWORD $vgpr14_vgpr15, $vgpr21, 0, 0, 0, 0, implicit $exec
22 $vgpr11 = GLOBAL_LOAD_DWORD $vgpr11_vgpr12, 0, 0, 0, 0, implicit $exec
23 S_CBRANCH_SCC1 %bb.1, implicit $scc