annotate llvm/test/CodeGen/AMDGPU/syncscopes.ll @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents 1d019706d866
children 5f17cb93ff66
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1 ; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx803 -stop-after=si-late-branch-lowering < %s | FileCheck --check-prefix=GCN %s
150
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 ; GCN-LABEL: name: syncscopes
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
4 ; GCN: FLAT_STORE_DWORD killed renamable $vgpr1_vgpr2, killed renamable $vgpr0, 0, 0, implicit $exec, implicit $flat_scr :: (store syncscope("agent") seq_cst 4 into %ir.agent_out)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
5 ; GCN: FLAT_STORE_DWORD killed renamable $vgpr4_vgpr5, killed renamable $vgpr3, 0, 0, implicit $exec, implicit $flat_scr :: (store syncscope("workgroup") seq_cst 4 into %ir.workgroup_out)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
6 ; GCN: FLAT_STORE_DWORD killed renamable $vgpr7_vgpr8, killed renamable $vgpr6, 0, 0, implicit $exec, implicit $flat_scr :: (store syncscope("wavefront") seq_cst 4 into %ir.wavefront_out)
150
anatofuz
parents:
diff changeset
7 define void @syncscopes(
anatofuz
parents:
diff changeset
8 i32 %agent,
anatofuz
parents:
diff changeset
9 i32* %agent_out,
anatofuz
parents:
diff changeset
10 i32 %workgroup,
anatofuz
parents:
diff changeset
11 i32* %workgroup_out,
anatofuz
parents:
diff changeset
12 i32 %wavefront,
anatofuz
parents:
diff changeset
13 i32* %wavefront_out) {
anatofuz
parents:
diff changeset
14 entry:
anatofuz
parents:
diff changeset
15 store atomic i32 %agent, i32* %agent_out syncscope("agent") seq_cst, align 4
anatofuz
parents:
diff changeset
16 store atomic i32 %workgroup, i32* %workgroup_out syncscope("workgroup") seq_cst, align 4
anatofuz
parents:
diff changeset
17 store atomic i32 %wavefront, i32* %wavefront_out syncscope("wavefront") seq_cst, align 4
anatofuz
parents:
diff changeset
18 ret void
anatofuz
parents:
diff changeset
19 }