You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.3 KiB

# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
# RUN: llc -march=amdgcn -mcpu=gfx906 -run-pass=post-RA-hazard-rec -o - %s | FileCheck -check-prefix=GFX9 %s
# Make sure the kill is skipped for hazard purposes, so the nop is
# correctly inserted.
---
name: global_store_dwordx4_data_hazard_kill
body: |
bb.0:
liveins: $vgpr0_vgpr1, $vgpr2_vgpr3_vgpr4_vgpr5
; GFX9-LABEL: name: global_store_dwordx4_data_hazard_kill
; GFX9: GLOBAL_STORE_DWORDX4 $vgpr0_vgpr1, $vgpr2_vgpr3_vgpr4_vgpr5, 0, 0, 0, 0, implicit $exec
; GFX9: $vgpr2 = KILL
; GFX9: S_NOP 0
; GFX9: $vgpr2 = V_MOV_B32_e32 0, implicit $exec
GLOBAL_STORE_DWORDX4 $vgpr0_vgpr1, $vgpr2_vgpr3_vgpr4_vgpr5, 0, 0, 0, 0, implicit $exec
$vgpr2 = KILL
$vgpr2 = V_MOV_B32_e32 0, implicit $exec
...
---
name: global_store_dwordx3_data_hazard_kill
body: |
bb.0:
liveins: $vgpr0_vgpr1, $vgpr2_vgpr3_vgpr4
; GFX9-LABEL: name: global_store_dwordx3_data_hazard_kill
; GFX9: GLOBAL_STORE_DWORDX3 $vgpr0_vgpr1, $vgpr2_vgpr3_vgpr4, 0, 0, 0, 0, implicit $exec
; GFX9: $vgpr2 = KILL
; GFX9: S_NOP 0
; GFX9: $vgpr2 = V_MOV_B32_e32 0, implicit $exec
GLOBAL_STORE_DWORDX3 $vgpr0_vgpr1, $vgpr2_vgpr3_vgpr4, 0, 0, 0, 0, implicit $exec
$vgpr2 = KILL
$vgpr2 = V_MOV_B32_e32 0, implicit $exec
...