2016-11-03 01:03:11 +08:00
|
|
|
# RUN: llc -march=amdgcn -verify-machineinstrs -run-pass post-RA-sched %s -o - | FileCheck %s
|
|
|
|
|
|
|
|
# This tests a situation where a sub-register of a killed super-register operand
|
|
|
|
# of V_MOVRELS happens to have an undef use later on. This leads to the post RA
|
|
|
|
# scheduler adding additional implicit operands to the V_MOVRELS, which used
|
|
|
|
# to fail machine instruction verification.
|
|
|
|
|
|
|
|
--- |
|
|
|
|
|
|
|
|
define amdgpu_vs void @main(i32 %arg) { ret void }
|
|
|
|
|
|
|
|
...
|
|
|
|
---
|
|
|
|
# CHECK-LABEL: name: main
|
|
|
|
# CHECK-LABEL: bb.0:
|
|
|
|
# CHECK: V_MOVRELS_B32_e32
|
|
|
|
# CHECK: V_MAC_F32_e32
|
|
|
|
|
|
|
|
name: main
|
|
|
|
tracksRegLiveness: true
|
|
|
|
body: |
|
|
|
|
bb.0:
|
2018-02-01 06:04:26 +08:00
|
|
|
$m0 = S_MOV_B32 undef $sgpr0
|
|
|
|
V_MOVRELD_B32_e32 undef $vgpr2, 0, implicit $m0, implicit $exec, implicit-def $vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8, implicit undef $vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8(tied-def 4)
|
|
|
|
$m0 = S_MOV_B32 undef $sgpr0
|
|
|
|
$vgpr1 = V_MOVRELS_B32_e32 undef $vgpr1, implicit $m0, implicit $exec, implicit killed $vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8
|
2020-05-28 01:25:37 +08:00
|
|
|
$vgpr4 = nofpexcept V_MAC_F32_e32 undef $vgpr0, undef $vgpr0, undef $vgpr4, implicit $mode, implicit $exec
|
2018-02-01 06:04:26 +08:00
|
|
|
EXP_DONE 15, undef $vgpr0, killed $vgpr1, killed $vgpr4, undef $vgpr0, 0, 0, 12, implicit $exec
|
[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
|
2016-11-03 01:03:11 +08:00
|
|
|
|
|
|
|
...
|