1 ; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx90a < %s
3 define protected amdgpu_kernel void @foo(ptr addrspace(1) %arg, ptr addrspace(1) %arg1) {
5 %tmp = addrspacecast ptr addrspace(5) null to ptr
6 %tmp2 = call i64 @eggs(ptr undef) #1
7 %tmp3 = load ptr, ptr %tmp, align 8
8 %tmp4 = getelementptr inbounds i64, ptr %tmp3, i64 undef
9 store i64 %tmp2, ptr %tmp4, align 8
13 declare hidden i64 @eggs(ptr)