1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -march=amdgcn -mcpu=gfx900 -verify-machineinstrs -run-pass=si-insert-waitcnts -o - %s | FileCheck -check-prefix=GCN %s
4 # Make sure no waitcnt is inserted for meta instruction uses.
13 ; GCN-LABEL: name: waitcnt_kill
15 ; GCN: $vgpr0 = GLOBAL_LOAD_DWORD $vgpr0_vgpr1, 0, 0, implicit $exec
17 $vgpr0 = GLOBAL_LOAD_DWORD $vgpr0_vgpr1, 0, 0, implicit $exec
23 name: waitcnt_implicit_def
28 ; GCN-LABEL: name: waitcnt_implicit_def
30 ; GCN: $vgpr0 = GLOBAL_LOAD_DWORD $vgpr0_vgpr1, 0, 0, implicit $exec
31 ; GCN: $vgpr0 = IMPLICIT_DEF
32 $vgpr0 = GLOBAL_LOAD_DWORD $vgpr0_vgpr1, 0, 0, implicit $exec
38 name: waitcnt_eh_label
42 liveins: $vgpr0_vgpr1, $vgpr2
43 ; GCN-LABEL: name: waitcnt_eh_label
45 ; GCN: $vgpr0 = GLOBAL_LOAD_DWORD $vgpr0_vgpr1, 0, 0, implicit $exec
46 ; GCN: EH_LABEL <mcsymbol Ltmp0>, implicit $vgpr0
47 $vgpr0 = GLOBAL_LOAD_DWORD $vgpr0_vgpr1, 0, 0, implicit $exec
48 EH_LABEL <mcsymbol Ltmp0>, implicit $vgpr0
58 liveins: $vgpr0_vgpr1, $vgpr2
59 ; GCN-LABEL: name: waitcnt_cfi
61 ; GCN: $vgpr0 = GLOBAL_LOAD_DWORD $vgpr0_vgpr1, 0, 0, implicit $exec
62 ; GCN: CFI_INSTRUCTION offset $vgpr0_lo16, 16
63 $vgpr0 = GLOBAL_LOAD_DWORD $vgpr0_vgpr1, 0, 0, implicit $exec
64 CFI_INSTRUCTION offset $vgpr0, 16