1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2# RUN: llc -march=amdgcn -mcpu=gfx906 -run-pass=post-RA-hazard-rec -o - %s | FileCheck -check-prefix=GFX9 %s
3
4# Make sure the kill is skipped for hazard purposes, so the nop is
5# correctly inserted.
6
7---
8
9name: global_store_dwordx4_data_hazard_kill
10
11body:             |
12  bb.0:
13    liveins: $vgpr0_vgpr1, $vgpr2_vgpr3_vgpr4_vgpr5
14    ; GFX9-LABEL: name: global_store_dwordx4_data_hazard_kill
15    ; GFX9: GLOBAL_STORE_DWORDX4 $vgpr0_vgpr1, $vgpr2_vgpr3_vgpr4_vgpr5, 0, 0, 0, 0, implicit $exec
16    ; GFX9: $vgpr2 = KILL
17    ; GFX9: S_NOP 0
18    ; GFX9: $vgpr2 = V_MOV_B32_e32 0, implicit $exec
19    GLOBAL_STORE_DWORDX4 $vgpr0_vgpr1, $vgpr2_vgpr3_vgpr4_vgpr5, 0, 0, 0, 0, implicit $exec
20    $vgpr2 = KILL
21    $vgpr2 = V_MOV_B32_e32 0, implicit $exec
22
23...
24
25---
26
27name: global_store_dwordx3_data_hazard_kill
28
29body:             |
30  bb.0:
31    liveins: $vgpr0_vgpr1, $vgpr2_vgpr3_vgpr4
32    ; GFX9-LABEL: name: global_store_dwordx3_data_hazard_kill
33    ; GFX9: GLOBAL_STORE_DWORDX3 $vgpr0_vgpr1, $vgpr2_vgpr3_vgpr4, 0, 0, 0, 0, implicit $exec
34    ; GFX9: $vgpr2 = KILL
35    ; GFX9: S_NOP 0
36    ; GFX9: $vgpr2 = V_MOV_B32_e32 0, implicit $exec
37    GLOBAL_STORE_DWORDX3 $vgpr0_vgpr1, $vgpr2_vgpr3_vgpr4, 0, 0, 0, 0, implicit $exec
38    $vgpr2 = KILL
39    $vgpr2 = V_MOV_B32_e32 0, implicit $exec
40
41...
42