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