summaryrefslogtreecommitdiff
path: root/opcodes/mips-dis.c
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@nildram.co.uk>2013-07-07 10:15:08 +0000
committerRichard Sandiford <rsandifo@nildram.co.uk>2013-07-07 10:15:08 +0000
commitb2e3f322072bf85522e5fc1bd95df32c9b5eac83 (patch)
treec33958a0c64f82376fc9186f1d54910d67f3adec /opcodes/mips-dis.c
parentfc309cea152f42d511039ef70d367d8ebc7a43fb (diff)
downloadbinutils-redhat-b2e3f322072bf85522e5fc1bd95df32c9b5eac83.tar.gz
include/opcode/
* mips.h: Remove documentation of "[" and "]". Update documentation of "k" and the MDMX formats. opcodes/ * mips-opc.c (mips_builtin_opcodes): Use "Q" for the INSN_5400 MDMX-like instructions. * mips-dis.c (print_insn_arg): Use "$f" rather than "$v" when printing "Q" operands for INSN_5400 instructions. gas/ * config/tc-mips.c (validate_mips_insn): Remove "[" and "]" handling. (mips_ip): Likewise. Do not set is_mdmx for INSN_5400 instructions. Check constraints on the VR5400 RZU.OB, SLL.OB and SRL.OB instructions. gas/testsuite/ * gas/mips/vr5400-ill.s, gas/mips/vr5400-ill.l: New test. * gas/mips/mips.exp: Run it.
Diffstat (limited to 'opcodes/mips-dis.c')
-rw-r--r--opcodes/mips-dis.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/opcodes/mips-dis.c b/opcodes/mips-dis.c
index 5777232b93..7e3d123232 100644
--- a/opcodes/mips-dis.c
+++ b/opcodes/mips-dis.c
@@ -992,8 +992,6 @@ print_insn_args (const char *d,
case ',':
case '(':
case ')':
- case '[':
- case ']':
infprintf (is, "%c", *d);
break;
@@ -1396,7 +1394,9 @@ print_insn_args (const char *d,
case 'Q':
{
unsigned int vsel = GET_OP (l, VSEL);
+ char prefix;
+ prefix = opp->membership & INSN_5400 ? 'f' : 'v';
if ((vsel & 0x10) == 0)
{
int fmt;
@@ -1405,11 +1405,11 @@ print_insn_args (const char *d,
for (fmt = 0; fmt < 3; fmt++, vsel >>= 1)
if ((vsel & 1) == 0)
break;
- infprintf (is, "$v%d[%d]", GET_OP (l, FT), vsel >> 1);
+ infprintf (is, "$%c%d[%d]", prefix, GET_OP (l, FT), vsel >> 1);
}
else if ((vsel & 0x08) == 0)
{
- infprintf (is, "$v%d", GET_OP (l, FT));
+ infprintf (is, "$%c%d", prefix, GET_OP (l, FT));
}
else
{