summaryrefslogtreecommitdiffstats
path: root/opcodes/alpha-dis.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2002-01-22 09:44:09 +0000
committerRichard Henderson <rth@redhat.com>2002-01-22 09:44:09 +0000
commit98c0272052bcc9ae92d9474d8a10ac82163aabe7 (patch)
tree44404aff901c315b9ab2ca3afca0e052e24ca091 /opcodes/alpha-dis.c
parent60ee0d4a8bc8de293b6161b6154b746388633029 (diff)
downloadppe42-binutils-98c0272052bcc9ae92d9474d8a10ac82163aabe7.tar.gz
ppe42-binutils-98c0272052bcc9ae92d9474d8a10ac82163aabe7.zip
* alpha-dis.c (print_insn_alpha): Also mask the base opcode for
comparison.
Diffstat (limited to 'opcodes/alpha-dis.c')
-rw-r--r--opcodes/alpha-dis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/opcodes/alpha-dis.c b/opcodes/alpha-dis.c
index 630454d2b8..49b5f20d2e 100644
--- a/opcodes/alpha-dis.c
+++ b/opcodes/alpha-dis.c
@@ -118,7 +118,7 @@ print_insn_alpha (memaddr, info)
opcode_end = opcode_index[op + 1];
for (opcode = opcode_index[op]; opcode < opcode_end; ++opcode)
{
- if ((insn & opcode->mask) != opcode->opcode)
+ if ((insn ^ opcode->opcode) & opcode->mask)
continue;
if (!(opcode->flags & isa_mask))
OpenPOWER on IntegriCloud