Mercurial > hg > CbC > CbC_llvm
view llvm/test/CodeGen/AMDGPU/expand-atomicrmw-syncscope.ll @ 223:5f17cb93ff66 llvm-original
LLVM13 (2021/7/18)
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 18 Jul 2021 22:43:00 +0900 |
parents | 79ff65ed7e25 |
children | 1f2b6ac9f198 |
line wrap: on
line source
; RUN: llc -march=amdgcn -mcpu=gfx90a -verify-machineinstrs < %s | FileCheck -check-prefix=GCN %s ; GCN-LABEL: {{^}}expand_atomicrmw_agent: ; GCN: global_atomic_cmpswap v{{[0-9]+}}, v[{{[0-9:]+}}], v[{{[0-9:]+}}], off glc{{$}} define void @expand_atomicrmw_agent(float addrspace(1)* nocapture %arg) { entry: %ret = atomicrmw fadd float addrspace(1)* %arg, float 1.000000e+00 syncscope("agent") monotonic, align 4 ret void } ; GCN-LABEL: {{^}}expand_atomicrmw_workgroup: ; GCN: global_atomic_cmpswap v{{[0-9]+}}, v[{{[0-9:]+}}], v[{{[0-9:]+}}], off glc{{$}} define void @expand_atomicrmw_workgroup(float addrspace(1)* nocapture %arg) { entry: %ret = atomicrmw fadd float addrspace(1)* %arg, float 1.000000e+00 syncscope("workgroup") monotonic, align 4 ret void } ; GCN-LABEL: {{^}}expand_atomicrmw_wavefront: ; GCN: global_atomic_cmpswap v{{[0-9]+}}, v[{{[0-9:]+}}], v[{{[0-9:]+}}], off glc{{$}} define void @expand_atomicrmw_wavefront(float addrspace(1)* nocapture %arg) { entry: %ret = atomicrmw fadd float addrspace(1)* %arg, float 1.000000e+00 syncscope("wavefront") monotonic, align 4 ret void } ; GCN-LABEL: {{^}}expand_atomicrmw_agent_one_as: ; GCN: global_atomic_cmpswap v{{[0-9]+}}, v[{{[0-9:]+}}], v[{{[0-9:]+}}], off glc{{$}} define void @expand_atomicrmw_agent_one_as(float addrspace(1)* nocapture %arg) { entry: %ret = atomicrmw fadd float addrspace(1)* %arg, float 1.000000e+00 syncscope("agent-one-as") monotonic, align 4 ret void } ; GCN-LABEL: {{^}}expand_atomicrmw_workgroup_one_as: ; GCN: global_atomic_cmpswap v{{[0-9]+}}, v[{{[0-9:]+}}], v[{{[0-9:]+}}], off glc{{$}} define void @expand_atomicrmw_workgroup_one_as(float addrspace(1)* nocapture %arg) { entry: %ret = atomicrmw fadd float addrspace(1)* %arg, float 1.000000e+00 syncscope("workgroup-one-as") monotonic, align 4 ret void } ; GCN-LABEL: {{^}}expand_atomicrmw_wavefront_one_as: ; GCN: global_atomic_cmpswap v{{[0-9]+}}, v[{{[0-9:]+}}], v[{{[0-9:]+}}], off glc{{$}} define void @expand_atomicrmw_wavefront_one_as(float addrspace(1)* nocapture %arg) { entry: %ret = atomicrmw fadd float addrspace(1)* %arg, float 1.000000e+00 syncscope("wavefront-one-as") monotonic, align 4 ret void } ; GCN-LABEL: {{^}}expand_atomicrmw_singlethread_one_as: ; GCN: global_atomic_cmpswap v{{[0-9]+}}, v[{{[0-9:]+}}], v[{{[0-9:]+}}], off glc{{$}} define void @expand_atomicrmw_singlethread_one_as(float addrspace(1)* nocapture %arg) { entry: %ret = atomicrmw fadd float addrspace(1)* %arg, float 1.000000e+00 syncscope("singlethread-one-as") monotonic, align 4 ret void } ; GCN-LABEL: {{^}}expand_atomicrmw_one_as: ; GCN: global_atomic_cmpswap v{{[0-9]+}}, v[{{[0-9:]+}}], v[{{[0-9:]+}}], off glc{{$}} define void @expand_atomicrmw_one_as(float addrspace(1)* nocapture %arg) { entry: %ret = atomicrmw fadd float addrspace(1)* %arg, float 1.000000e+00 syncscope("one-as") monotonic, align 4 ret void } ; GCN-LABEL: {{^}}expand_atomicrmw_system: ; GCN: global_atomic_cmpswap v{{[0-9]+}}, v[{{[0-9:]+}}], v[{{[0-9:]+}}], off glc{{$}} define void @expand_atomicrmw_system(float addrspace(1)* nocapture %arg) { entry: %ret = atomicrmw fadd float addrspace(1)* %arg, float 1.000000e+00 monotonic, align 4 ret void }