[SystemZ] Don't build a PPA instruction with an immediate 0 operand.
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>
Tue, 26 Nov 2019 10:16:48 +0000 (11:16 +0100)
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>
Tue, 26 Nov 2019 10:21:01 +0000 (11:21 +0100)
commit3ec193fb527e697faac4ef8f30934dd7bce849a7
tree2e8611ff38aa52710e0c2196d61f14aa50a02cd6
parentcced971fd3d6713ec4989990e1b2f42c8539f0f3
[SystemZ]  Don't build a PPA instruction with an immediate 0 operand.

The improvement in the machine verifier for operand types (D63973) discovered
a bad operand in a test using a PPA instruction. It was an immediate 0 where
a register was expected.

This patch fixes this (NFC) by now making the PPA second register operand
NoRegister instead of a zero immediate in the MIR.

Review: Ulrich Weigand
https://reviews.llvm.org/D70501
llvm/lib/Target/SystemZ/MCTargetDesc/SystemZInstPrinter.cpp
llvm/lib/Target/SystemZ/SystemZInstrInfo.td