1 ; RUN: llc -march=amdgcn -mcpu=gfx90a -verify-machineinstrs < %s | FileCheck -check-prefix=GCN %s
3 ; GCN-LABEL: {{^}}expand_atomicrmw_agent:
4 ; GCN: global_atomic_cmpswap v{{[0-9]+}}, v[{{[0-9:]+}}], v[{{[0-9:]+}}], off glc{{$}}
5 define void @expand_atomicrmw_agent(float addrspace(1)* nocapture %arg) {
7 %ret = atomicrmw fadd float addrspace(1)* %arg, float 1.000000e+00 syncscope("agent") monotonic, align 4
11 ; GCN-LABEL: {{^}}expand_atomicrmw_workgroup:
12 ; GCN: global_atomic_cmpswap v{{[0-9]+}}, v[{{[0-9:]+}}], v[{{[0-9:]+}}], off glc{{$}}
13 define void @expand_atomicrmw_workgroup(float addrspace(1)* nocapture %arg) {
15 %ret = atomicrmw fadd float addrspace(1)* %arg, float 1.000000e+00 syncscope("workgroup") monotonic, align 4
19 ; GCN-LABEL: {{^}}expand_atomicrmw_wavefront:
20 ; GCN: global_atomic_cmpswap v{{[0-9]+}}, v[{{[0-9:]+}}], v[{{[0-9:]+}}], off glc{{$}}
21 define void @expand_atomicrmw_wavefront(float addrspace(1)* nocapture %arg) {
23 %ret = atomicrmw fadd float addrspace(1)* %arg, float 1.000000e+00 syncscope("wavefront") monotonic, align 4
27 ; GCN-LABEL: {{^}}expand_atomicrmw_agent_one_as:
28 ; GCN: global_atomic_cmpswap v{{[0-9]+}}, v[{{[0-9:]+}}], v[{{[0-9:]+}}], off glc{{$}}
29 define void @expand_atomicrmw_agent_one_as(float addrspace(1)* nocapture %arg) {
31 %ret = atomicrmw fadd float addrspace(1)* %arg, float 1.000000e+00 syncscope("agent-one-as") monotonic, align 4
35 ; GCN-LABEL: {{^}}expand_atomicrmw_workgroup_one_as:
36 ; GCN: global_atomic_cmpswap v{{[0-9]+}}, v[{{[0-9:]+}}], v[{{[0-9:]+}}], off glc{{$}}
37 define void @expand_atomicrmw_workgroup_one_as(float addrspace(1)* nocapture %arg) {
39 %ret = atomicrmw fadd float addrspace(1)* %arg, float 1.000000e+00 syncscope("workgroup-one-as") monotonic, align 4
43 ; GCN-LABEL: {{^}}expand_atomicrmw_wavefront_one_as:
44 ; GCN: global_atomic_cmpswap v{{[0-9]+}}, v[{{[0-9:]+}}], v[{{[0-9:]+}}], off glc{{$}}
45 define void @expand_atomicrmw_wavefront_one_as(float addrspace(1)* nocapture %arg) {
47 %ret = atomicrmw fadd float addrspace(1)* %arg, float 1.000000e+00 syncscope("wavefront-one-as") monotonic, align 4
51 ; GCN-LABEL: {{^}}expand_atomicrmw_singlethread_one_as:
52 ; GCN: global_atomic_cmpswap v{{[0-9]+}}, v[{{[0-9:]+}}], v[{{[0-9:]+}}], off glc{{$}}
53 define void @expand_atomicrmw_singlethread_one_as(float addrspace(1)* nocapture %arg) {
55 %ret = atomicrmw fadd float addrspace(1)* %arg, float 1.000000e+00 syncscope("singlethread-one-as") monotonic, align 4
59 ; GCN-LABEL: {{^}}expand_atomicrmw_one_as:
60 ; GCN: global_atomic_cmpswap v{{[0-9]+}}, v[{{[0-9:]+}}], v[{{[0-9:]+}}], off glc{{$}}
61 define void @expand_atomicrmw_one_as(float addrspace(1)* nocapture %arg) {
63 %ret = atomicrmw fadd float addrspace(1)* %arg, float 1.000000e+00 syncscope("one-as") monotonic, align 4
67 ; GCN-LABEL: {{^}}expand_atomicrmw_system:
68 ; GCN: global_atomic_cmpswap v{{[0-9]+}}, v[{{[0-9:]+}}], v[{{[0-9:]+}}], off glc{{$}}
69 define void @expand_atomicrmw_system(float addrspace(1)* nocapture %arg) {
71 %ret = atomicrmw fadd float addrspace(1)* %arg, float 1.000000e+00 monotonic, align 4