[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)
commit3ee0673e4f5f0324ecd0a65507009b0748ed072c
tree7dd01bbdd995ec7d1e33b71556b4ac7a84cc1f07
parentc48b55a33dc5cd898dc9e58c0a1650b8f24c3879
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186070 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/SystemZ/SystemZInstrFormats.td
test/MC/Disassembler/SystemZ/insns.txt
test/MC/SystemZ/insn-bad.s
test/MC/SystemZ/insn-good.s