[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / CodeGen / AMDGPU / waitcnt-loop-single-basic-block.mir
blobc07fbb9c3c1f959be0a6614e9989b84dc6dd95d8
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
6 # GCN: bb.0
7 # GCN: S_WAITCNT 3952
8 # GCN-NEXT: GLOBAL_STORE_DWORD
9 # GCN: S_WAITCNT 3953
10 # GCN-NEXT: GLOBAL_STORE_DWORD
12 ...
13 name: waitcnt-loop-single-basic-block
14 body: |
15   bb.0:
16     S_BRANCH %bb.1
17   bb.1:
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
24   bb.2:
25     S_ENDPGM 0
26 ...