1 ; RUN: opt -S --amdgpu-annotate-uniform < %s | FileCheck -check-prefix=OPT %s
2 target datalayout = "A5"
5 ; OPT-LABEL: @amdgpu_noclobber_global(
6 ; OPT-NEXT: %load = load i32, ptr addrspace(1) %in, align 4, !amdgpu.noclobber !0
7 define amdgpu_kernel void @amdgpu_noclobber_global( ptr addrspace(1) %in, ptr addrspace(1) %out) {
8 %load = load i32, ptr addrspace(1) %in, align 4
9 store i32 %load, ptr addrspace(1) %out, align 4
13 ; OPT-LABEL: @amdgpu_noclobber_local(
14 ; OPT-NEXT: %load = load i32, ptr addrspace(3) %in, align 4
15 define amdgpu_kernel void @amdgpu_noclobber_local( ptr addrspace(3) %in, ptr addrspace(1) %out) {
16 %load = load i32, ptr addrspace(3) %in, align 4
17 store i32 %load, ptr addrspace(1) %out, align 4
21 ; OPT-LABEL: @amdgpu_noclobber_private(
22 ; OPT-NEXT: %load = load i32, ptr addrspace(5) %in, align 4
23 define amdgpu_kernel void @amdgpu_noclobber_private( ptr addrspace(5) %in, ptr addrspace(1) %out) {
24 %load = load i32, ptr addrspace(5) %in, align 4
25 store i32 %load, ptr addrspace(1) %out, align 4
29 ; OPT-LABEL: @amdgpu_noclobber_flat(
30 ; OPT-NEXT: %load = load i32, ptr addrspace(4) %in, align 4
31 define amdgpu_kernel void @amdgpu_noclobber_flat( ptr addrspace(4) %in, ptr addrspace(1) %out) {
32 %load = load i32, ptr addrspace(4) %in, align 4
33 store i32 %load, ptr addrspace(1) %out, align 4