[SystemZ] Allow 8-bit operands to RISBG
authorRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Thu, 11 Jul 2013 08:37:13 +0000 (08:37 +0000)
committerRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Thu, 11 Jul 2013 08:37:13 +0000 (08:37 +0000)
commit67ddcd6dd08f31c74b4c6662aeb9574651d0c7c7
tree5c2c73f5305834cba8df11bf6ee6ac74ad83612c
parente773c08021b38b185a7eacc0a1ee78ae3237f062
[SystemZ] Allow 8-bit operands to RISBG

RISBG has three 8-bit operands (I3, I4 and I5).  I'd originally
restricted all three to 6 bits, since that's the only range we intended
to use at the time.  However, the top bit of I4 acts as a "zero" flag for
RISBG, while the top bit of I3 acts as a "test" flag for RNSBG & co.
This patch therefore allows them to have the full 8-bit range.
I've left the fifth operand as a 6-bit value for now since the
upper 2 bits have no defined meaning.

llvm-svn: 186070
llvm/lib/Target/SystemZ/SystemZInstrFormats.td
llvm/test/MC/Disassembler/SystemZ/insns.txt
llvm/test/MC/SystemZ/insn-bad.s
llvm/test/MC/SystemZ/insn-good.s