1 # RUN: llc -march=amdgcn -mcpu=gfx902 -verify-machineinstrs -run-pass post-RA-hazard-rec %s -o - | FileCheck -check-prefixes=GCN,XNACK,GFX9 %s
2 # RUN: llc -march=amdgcn -mcpu=gfx900 -verify-machineinstrs -run-pass post-RA-hazard-rec %s -o - | FileCheck -check-prefixes=GCN,NOXNACK,GFX9 %s
3 # RUN: llc -march=amdgcn -mcpu=gfx1010 -mattr=-WavefrontSize32,+WavefrontSize64 -verify-machineinstrs -run-pass post-RA-hazard-rec %s -o - | FileCheck -check-prefixes=GCN,NOXNACK,GFX10 %s
5 # GCN-LABEL: name: break_smem_clause_max_look_ahead_in_bundle
6 # GCN: S_LOAD_DWORDX2_IMM
14 name: break_smem_clause_max_look_ahead_in_bundle
17 BUNDLE implicit-def $sgpr6_sgpr7 {
18 $sgpr0_sgpr1 = S_LOAD_DWORDX2_IMM $sgpr10_sgpr11, 0, 0, 0
19 S_STORE_DWORD_IMM $sgpr8, $sgpr10_sgpr11, 0, 0, 0
20 S_STORE_DWORD_IMM $sgpr8, $sgpr10_sgpr11, 4, 0, 0
21 S_STORE_DWORD_IMM $sgpr8, $sgpr10_sgpr11, 8, 0, 0
22 S_STORE_DWORD_IMM $sgpr8, $sgpr10_sgpr11, 12, 0, 0
23 S_STORE_DWORD_IMM $sgpr8, $sgpr10_sgpr11, 16, 0, 0
24 $sgpr14_sgpr15 = S_LOAD_DWORDX2_IMM $sgpr12_sgpr13, 0, 0, 0
25 $sgpr16_sgpr17 = S_LOAD_DWORDX2_IMM $sgpr14_sgpr15, 0, 0, 0
30 # GFX10-LABEL: name: hazard_smem_war_in_bundle
31 # GFX10: S_LOAD_DWORD_IMM
32 # GFX10-NEXT: $sgpr_null = S_MOV_B32 0
35 name: hazard_smem_war_in_bundle
38 liveins: $sgpr0, $sgpr1, $vgpr0, $vgpr1
39 BUNDLE implicit-def $sgpr0_sgpr1 {
40 $sgpr2 = S_LOAD_DWORD_IMM $sgpr0_sgpr1, 0, 0, 0
41 $sgpr0_sgpr1 = V_CMP_EQ_F32_e64 0, $vgpr0, 0, $vgpr1, 1, implicit $exec
46 # GFX9-LABEL: name: hazard_ignore_dbg_label_in_bundle
49 # GFX9: S_SENDMSG 3, implicit $exec, implicit $m0
51 name: hazard_ignore_dbg_label_in_bundle
55 $m0 = S_MOV_B32 killed $sgpr12
63 S_SENDMSG 3, implicit $exec, implicit $m0