1# RUN: llc -march=amdgcn -mcpu=gfx1010 -verify-machineinstrs -run-pass si-insert-waitcnts -o - %s | FileCheck -check-prefix=GFX10 %s 2 3# GFX10-LABEL: waitcnt-vscnt 4# GFX10: GLOBAL_ATOMIC_ADD_RTN 5# GFX10-NEXT: S_WAITCNT 49279 6--- 7name: waitcnt-vscnt 8machineFunctionInfo: 9 isEntryFunction: true 10body: | 11 bb.0: 12 liveins: $sgpr0_sgpr1 13 $sgpr4 = S_LOAD_DWORD_IMM $sgpr0_sgpr1, 4, 0, 0 :: (dereferenceable invariant load 4 from `i32 addrspace(4)* undef`) 14 S_WAITCNT_VSCNT undef $sgpr_null, 0 15 $vgpr0 = GLOBAL_ATOMIC_ADD_RTN $vgpr0_vgpr1, $vgpr2, 0, 1, 0, implicit $exec :: (load store syncscope("agent") seq_cst 4, addrspace 1) 16 S_CMP_LG_U32 killed $sgpr4, 0, implicit-def $scc 17... 18