blob: 211eb1a6e6365dfedeb6be62c0826534ea64d825 [file]
# RUN: llc -mtriple=amdgpu9.00 -run-pass post-RA-hazard-rec %s -o - | FileCheck %s
# If an INLINEASM statement is preceded by a vmem store of more than 8 bytes *and*
# the INLINEASM defs the vregs holding the data-to-be-stored by that preceding store,
# then the hazard recognizer should insert a s_nop in between them.
...
# CHECK-LABEL: name: hazard-inlineasm
# CHECK: FLAT_STORE_DWORDX4
# CHECK-NEXT: S_NOP 0
# CHECK-NEXT: INLINEASM
---
name: hazard-inlineasm
tracksRegLiveness: false
body: |
bb.0:
FLAT_STORE_DWORDX4 $vgpr49_vgpr50, $vgpr26_vgpr27_vgpr28_vgpr29, 0, 0, implicit $exec, implicit $flat_scr
INLINEASM &"v_mad_u64_u32 $0, $1, $2, $3, $4", 0, 2752522, def $vgpr26_vgpr27, 4718602, def dead $sgpr14_sgpr15, 1900553, $sgpr12, 1376265, killed $vgpr51, 2752521, $vgpr46_vgpr47
S_ENDPGM 0
...