2018-02-08 09:12:46 +08:00
|
|
|
# RUN: llc -march=amdgcn -run-pass si-fold-operands -verify-machineinstrs -o - %s | FileCheck %s
|
|
|
|
---
|
|
|
|
# Make sure there is no crash when trying to fold an immediate into an
|
|
|
|
# implicit use
|
|
|
|
|
|
|
|
# CHECK: %0:vgpr_32 = V_MOV_B32_e32 0, 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
|
|
|
# CHECK-NEXT: S_ENDPGM 0, implicit %0
|
2018-02-08 09:12:46 +08:00
|
|
|
name: fold_imm_implicit_operand
|
|
|
|
body: |
|
|
|
|
bb.0:
|
|
|
|
%0:vgpr_32 = V_MOV_B32_e32 0, 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, implicit %0
|
2018-02-08 09:12:46 +08:00
|
|
|
|
|
|
|
...
|