1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 4
2 ; RUN: not llc -mtriple=amdgcn-amd- -mcpu=gfx803 < %s 2>&1 | FileCheck %s
3 ; RUN: not llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx803 < %s 2>&1 | FileCheck %s
4 ; RUN: not llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx1010 < %s 2>&1 | FileCheck %s
5 ; RUN: not llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx1100 < %s 2>&1 | FileCheck %s
7 ; CHECK: error: <unknown>:0:0: in function invalid_fence void (): Unsupported atomic synchronization scope
8 define amdgpu_kernel void @invalid_fence() {
10 fence syncscope("invalid") seq_cst
14 ; CHECK: error: <unknown>:0:0: in function invalid_load void (ptr, ptr): Unsupported non-inclusive atomic synchronization scope
15 define amdgpu_kernel void @invalid_load(
18 %val = load atomic i32, ptr %in syncscope("invalid") seq_cst, align 4
19 store i32 %val, ptr %out
23 ; CHECK: error: <unknown>:0:0: in function invalid_store void (i32, ptr): Unsupported non-inclusive atomic synchronization scope
24 define amdgpu_kernel void @invalid_store(
27 store atomic i32 %in, ptr %out syncscope("invalid") seq_cst, align 4
31 ; CHECK: error: <unknown>:0:0: in function invalid_cmpxchg void (ptr, i32, i32): Unsupported non-inclusive atomic synchronization scope
32 define amdgpu_kernel void @invalid_cmpxchg(
33 ptr %out, i32 %in, i32 %old) {
35 %gep = getelementptr i32, ptr %out, i32 4
36 %val = cmpxchg volatile ptr %gep, i32 %old, i32 %in syncscope("invalid") seq_cst seq_cst
40 ; CHECK: error: <unknown>:0:0: in function invalid_rmw void (ptr, i32): Unsupported non-inclusive atomic synchronization scope
41 define amdgpu_kernel void @invalid_rmw(
44 %val = atomicrmw volatile xchg ptr %out, i32 %in syncscope("invalid") seq_cst