2017-12-08 04:34:25 +08:00
|
|
|
# RUN: llc -mcpu=gfx900 -march=amdgcn -verify-machineinstrs -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.
|
|
|
|
|
|
|
|
...
|
|
|
|
|
|
|
|
# GCN-LABEL: name: hazard-inlineasm
|
|
|
|
# CHECK: FLAT_STORE_DWORDX4
|
|
|
|
# CHECK-NEXT: S_NOP 0
|
|
|
|
# CHECK-NEXT: INLINEASM
|
|
|
|
|
|
|
|
---
|
|
|
|
name: hazard-inlineasm
|
|
|
|
|
|
|
|
body: |
|
|
|
|
bb.0:
|
2019-05-01 06:08:23 +08:00
|
|
|
FLAT_STORE_DWORDX4 $vgpr49_vgpr50, $vgpr26_vgpr27_vgpr28_vgpr29, 0, 0, 0, 0, implicit $exec, implicit $flat_scr
|
2018-02-01 06:04:26 +08:00
|
|
|
INLINEASM &"v_mad_u64_u32 $0, $1, $2, $3, $4", 0, 2621450, def $vgpr26_vgpr27, 2818058, def dead $sgpr14_sgpr15, 589833, $sgpr12, 327689, killed $vgpr51, 2621449, $vgpr46_vgpr47
|
[AMDGPU] Add support for immediate operand for S_ENDPGM
Summary:
Add support for immediate operand in S_ENDPGM
Change-Id: I0c56a076a10980f719fb2a8f16407e9c301013f6
Reviewers: alexshap
Subscribers: qcolombet, arsenm, kzhuravl, jvesely, wdng, nhaehnle, yaxunl, tpr, t-tye, eraman, arphaman, Petar.Avramovic, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D59213
llvm-svn: 355902
2019-03-12 17:52:58 +08:00
|
|
|
S_ENDPGM 0
|
2017-12-08 04:34:25 +08:00
|
|
|
...
|
|
|
|
|
|
|
|
|