2017-05-19 08:18:03 +08:00
|
|
|
# RUN: llc -o - %s -mtriple=amdgcn-amd-amdhsa-opencl -run-pass=simple-register-coalescing | FileCheck %s
|
|
|
|
---
|
|
|
|
# Checks for a bug where subregister liveranges were not properly pruned for
|
|
|
|
# an IMPLCITI_DEF that gets removed completely.
|
|
|
|
#
|
|
|
|
# CHECK-LABEL: name: func
|
|
|
|
# IMPLICIT_DEF should be gone without llc hitting assertion failures.
|
2017-05-20 01:25:20 +08:00
|
|
|
# CHECK-NOT: IMPLICIT_DEF
|
2017-05-19 08:18:03 +08:00
|
|
|
name: func
|
|
|
|
tracksRegLiveness: true
|
|
|
|
body: |
|
|
|
|
bb.0:
|
2018-02-01 06:04:26 +08:00
|
|
|
undef %5.sub1 = V_MOV_B32_e32 0, implicit $exec
|
2017-05-19 08:18:03 +08:00
|
|
|
%6 = COPY %5
|
2018-02-01 06:04:26 +08:00
|
|
|
S_CBRANCH_VCCZ %bb.2, implicit undef $vcc
|
2017-05-19 08:18:03 +08:00
|
|
|
|
|
|
|
bb.1:
|
|
|
|
%1 : sreg_32_xm0 = S_MOV_B32 0
|
|
|
|
undef %0.sub0 : sreg_64 = COPY %1
|
|
|
|
%0.sub1 = COPY %1
|
|
|
|
%4 : vreg_64 = COPY killed %0
|
|
|
|
%5 : vreg_64 = IMPLICIT_DEF
|
|
|
|
%6 : vreg_64 = COPY killed %4
|
|
|
|
|
|
|
|
bb.2:
|
2020-05-28 01:25:37 +08:00
|
|
|
%2 : vgpr_32 = V_CVT_F32_I32_e32 killed %5.sub1, implicit $mode, implicit $exec
|
2017-05-19 08:18:03 +08:00
|
|
|
|
|
|
|
bb.3:
|
2020-05-28 01:25:37 +08:00
|
|
|
%3 : vgpr_32 = V_CVT_F32_I32_e32 killed %6.sub1, implicit $mode, 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
|
2017-05-19 08:18:03 +08:00
|
|
|
...
|