aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/AMDGPU/gds-unsupported.ll
blob: 8cb1f0ce4cf7940617f984f6045e2e431a872f3b (plain)
1
2
3
4
5
6
7
8
9
10
11
; RUN: not --crash llc -mtriple=amdgcn -mcpu=gfx90a < %s 2>&1 | FileCheck %s
; RUN: not --crash llc -mtriple=amdgcn -mcpu=gfx1200 < %s 2>&1 | FileCheck %s

; GDS is not supported on GFX90A+
; CHECK: LLVM ERROR: Cannot select: {{.*}} AtomicLoadAdd

define amdgpu_kernel void @atomic_add_ret_gds(ptr addrspace(1) %out, ptr addrspace(2) %gds) #1 {
  %val = atomicrmw volatile add ptr addrspace(2) %gds, i32 5 acq_rel
  store i32 %val, ptr addrspace(1) %out
  ret void
}