32 lines · plain
1; RUN: llc -mtriple=r600 -mcpu=redwood < %s | FileCheck -check-prefix=EG %s2 3; EG-LABEL: {{^}}test_group_barrier:4; EG: GROUP_BARRIER5define amdgpu_kernel void @test_group_barrier(ptr addrspace(1) %out) #0 {6entry:7 %tmp = call i32 @llvm.r600.read.tidig.x()8 %tmp1 = getelementptr i32, ptr addrspace(1) %out, i32 %tmp9 store i32 %tmp, ptr addrspace(1) %tmp110 call void @llvm.r600.group.barrier()11 %tmp2 = call i32 @llvm.r600.read.local.size.x()12 %tmp3 = sub i32 %tmp2, 113 %tmp4 = sub i32 %tmp3, %tmp14 %tmp5 = getelementptr i32, ptr addrspace(1) %out, i32 %tmp415 %tmp6 = load i32, ptr addrspace(1) %tmp516 store i32 %tmp6, ptr addrspace(1) %tmp117 ret void18}19 20; Function Attrs: convergent nounwind21declare void @llvm.r600.group.barrier() #122 23; Function Attrs: nounwind readnone24declare i32 @llvm.r600.read.tidig.x() #225 26; Function Attrs: nounwind readnone27declare i32 @llvm.r600.read.local.size.x() #228 29attributes #0 = { nounwind }30attributes #1 = { convergent nounwind }31attributes #2 = { nounwind readnone }32