diff options
Diffstat (limited to 'test/CodeGen/R600/llvm.AMDGPU.barrier.local.ll')
-rw-r--r-- | test/CodeGen/R600/llvm.AMDGPU.barrier.local.ll | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/test/CodeGen/R600/llvm.AMDGPU.barrier.local.ll b/test/CodeGen/R600/llvm.AMDGPU.barrier.local.ll index 8d3c9ca..92fe9f2 100644 --- a/test/CodeGen/R600/llvm.AMDGPU.barrier.local.ll +++ b/test/CodeGen/R600/llvm.AMDGPU.barrier.local.ll @@ -1,8 +1,11 @@ -; RUN: llc < %s -march=r600 -mcpu=redwood | FileCheck %s +; RUN: llc -march=r600 -mcpu=SI < %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s +; RUN: llc -march=r600 -mcpu=redwood < %s | FileCheck -check-prefix=EG -check-prefix=FUNC %s -; CHECK: GROUP_BARRIER +; FUNC-LABEL: {{^}}test_barrier_local: +; EG: GROUP_BARRIER +; SI: s_barrier -define void @test(i32 addrspace(1)* %out) { +define void @test_barrier_local(i32 addrspace(1)* %out) { entry: %0 = call i32 @llvm.r600.read.tidig.x() %1 = getelementptr i32 addrspace(1)* %out, i32 %0 @@ -17,8 +20,9 @@ entry: ret void } -declare i32 @llvm.r600.read.tidig.x() #0 declare void @llvm.AMDGPU.barrier.local() + +declare i32 @llvm.r600.read.tidig.x() #0 declare i32 @llvm.r600.read.local.size.x() #0 attributes #0 = { readnone } |