1 ; RUN: not --crash llc -march=amdgcn -mcpu=gfx90a < %s 2>&1 | FileCheck %s
3 ; GDS is not supported on GFX90A+
4 ; CHECK: LLVM ERROR: Cannot select: {{.*}} AtomicLoadAdd
6 define amdgpu_kernel void @atomic_add_ret_gds(ptr addrspace(1) %out, ptr addrspace(2) %gds) #1 {
7 %val = atomicrmw volatile add ptr addrspace(2) %gds, i32 5 acq_rel
8 store i32 %val, ptr addrspace(1) %out