mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
bbae73ce2c
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
23 lines
690 B
YAML
23 lines
690 B
YAML
# RUN: not llc -mtriple=amdgcn-amd-amdhsa -verify-machineinstrs -o /dev/null %s 2>&1 | FileCheck -check-prefix=ERROR %s
|
|
# REQUIRES: amdgpu-registered-target
|
|
|
|
# When the verifier was detecting the invalid liveness for vcc, it would assert when trying to iterate the subregisters of the implicit virtual register use.
|
|
|
|
|
|
# ERROR: *** Bad machine code: Using an undefined physical register ***
|
|
# ERROR: instruction: S_ENDPGM 0, implicit %0:vgpr_32, implicit $vcc
|
|
# ERROR: operand 2: implicit $vcc
|
|
|
|
...
|
|
|
|
name: invalid_implicit_physreg_use_with_implicit_virtreg
|
|
tracksRegLiveness: true
|
|
|
|
body: |
|
|
bb.0:
|
|
%0:vgpr_32 = IMPLICIT_DEF
|
|
S_ENDPGM 0, implicit %0, implicit $vcc
|
|
|
|
...
|
|
|