blob: 5ebba03c2cc73eff6697dc028fd8a6b93fae2a95 [file] [edit]
; RUN: not opt -disable-output -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -passes=atomic-expand %s 2>&1 | FileCheck --implicit-check-not=error %s
; CHECK: error: unsupported atomic load
define i32 @atomic_load_global_align1(ptr addrspace(1) %ptr) {
%val = load atomic i32, ptr addrspace(1) %ptr seq_cst, align 1
ret i32 %val
}
; FIXME: 2nd error not emitted in next function
define void @atomic_store_global_align1(ptr addrspace(1) %ptr, i32 %val) {
store atomic i32 %val, ptr addrspace(1) %ptr monotonic, align 1
ret void
}