blob: ce4522f4b4ad7cdef98bff162d89f475e42b0e5a [file] [edit]
; RUN: not llc -global-isel=0 -mtriple=amdgcn -mcpu=gfx942 -filetype=null < %s 2>&1 | FileCheck %s
; RUN: not llc -global-isel=1 -mtriple=amdgcn -mcpu=gfx942 -filetype=null < %s 2>&1 | FileCheck %s
; CHECK: error: {{.*}}: in function av_load_bad_scope {{.*}}: Unsupported non-inclusive atomic synchronization scope
; CHECK: error: {{.*}}: in function av_store_bad_scope {{.*}}: Unsupported non-inclusive atomic synchronization scope
define <4 x i32> @av_load_bad_scope(ptr addrspace(1) %p) {
%v = call <4 x i32> @llvm.amdgcn.av.load.b128.p1(ptr addrspace(1) %p, metadata !0)
ret <4 x i32> %v
}
define void @av_store_bad_scope(ptr addrspace(1) %p, <4 x i32> %v) {
call void @llvm.amdgcn.av.store.b128.p1(ptr addrspace(1) %p, <4 x i32> %v, metadata !0)
ret void
}
!0 = !{!"xyzzy"}