summaryrefslogtreecommitdiff
path: root/test/CodeGen/R600/llvm.AMDGPU.barrier.local.ll
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2015-01-06 19:52:07 +0000
committerTom Stellard <thomas.stellard@amd.com>2015-01-06 19:52:07 +0000
commitbac89f3dd285221109d1907d352d290b25c1c63c (patch)
tree329ad505e7f6512064f69a5e8bb4eff4c00db8e1 /test/CodeGen/R600/llvm.AMDGPU.barrier.local.ll
parentfad04531a9ce9fa816f65ec8fc902e4392cfcb4b (diff)
R600/SI: Insert s_waitcnt before s_barrier instructions.
This ensures that all memory operations are complete when all threads reach the barrier. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225290 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/R600/llvm.AMDGPU.barrier.local.ll')
-rw-r--r--test/CodeGen/R600/llvm.AMDGPU.barrier.local.ll3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/CodeGen/R600/llvm.AMDGPU.barrier.local.ll b/test/CodeGen/R600/llvm.AMDGPU.barrier.local.ll
index 94b3cbc86eb..76c2453d089 100644
--- a/test/CodeGen/R600/llvm.AMDGPU.barrier.local.ll
+++ b/test/CodeGen/R600/llvm.AMDGPU.barrier.local.ll
@@ -3,6 +3,9 @@
; FUNC-LABEL: {{^}}test_barrier_local:
; EG: GROUP_BARRIER
+
+; SI: buffer_store_dword
+; SI: s_waitcnt
; SI: s_barrier
define void @test_barrier_local(i32 addrspace(1)* %out) {