1 ; RUN: llc -march=amdgcn -mcpu=verde -verify-machineinstrs < %s | FileCheck %s
2 ; RUN: llc -march=amdgcn -mcpu=tonga -mattr=-flat-for-global -verify-machineinstrs < %s | FileCheck %s
4 ; CHECK-LABEL: {{^}}test1:
8 define amdgpu_vs void @test1(i32 %v) #0 {
9 %p1 = getelementptr i32, ptr addrspace(3) null, i32 1
11 store i32 %v, ptr addrspace(3) null
13 call void @llvm.amdgcn.raw.ptr.tbuffer.store.i32(i32 %v, ptr addrspace(8) undef, i32 0, i32 0, i32 68, i32 1)
15 %w = load i32, ptr addrspace(3) null
16 store i32 %w, ptr addrspace(3) %p1
20 declare void @llvm.amdgcn.raw.ptr.tbuffer.store.i32(i32, ptr addrspace(8), i32, i32, i32 immarg, i32 immarg) #1
22 attributes #0 = { nounwind }
23 attributes #1 = { nounwind willreturn writeonly }