1 ; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx803 -stop-after=si-late-branch-lowering < %s | FileCheck --check-prefix=GCN %s
3 ; GCN-LABEL: name: syncscopes
4 ; GCN: FLAT_STORE_DWORD killed renamable $vgpr1_vgpr2, killed renamable $vgpr0, 0, 0, implicit $exec, implicit $flat_scr :: (store syncscope("agent") seq_cst (s32) into %ir.agent_out)
5 ; GCN: FLAT_STORE_DWORD killed renamable $vgpr4_vgpr5, killed renamable $vgpr3, 0, 0, implicit $exec, implicit $flat_scr :: (store syncscope("workgroup") seq_cst (s32) into %ir.workgroup_out)
6 ; GCN: FLAT_STORE_DWORD killed renamable $vgpr7_vgpr8, killed renamable $vgpr6, 0, 0, implicit $exec, implicit $flat_scr :: (store syncscope("wavefront") seq_cst (s32) into %ir.wavefront_out)
7 define void @syncscopes(
13 i32* %wavefront_out) {
15 store atomic i32 %agent, i32* %agent_out syncscope("agent") seq_cst, align 4
16 store atomic i32 %workgroup, i32* %workgroup_out syncscope("workgroup") seq_cst, align 4
17 store atomic i32 %wavefront, i32* %wavefront_out syncscope("wavefront") seq_cst, align 4