From: Richard Henderson Date: Tue, 22 Jan 2002 09:44:09 +0000 (+0000) Subject: * alpha-dis.c (print_insn_alpha): Also mask the base opcode for X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=98c0272052bcc9ae92d9474d8a10ac82163aabe7;p=binutils-gdb.git * alpha-dis.c (print_insn_alpha): Also mask the base opcode for comparison. --- diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 3caef39bd18..95c5df23c3b 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,8 @@ +2002-01-22 Richard Henderson + + * alpha-dis.c (print_insn_alpha): Also mask the base opcode for + comparison. + 2002-01-19 Richard Earnshaw * arm-opc.h (arm_opcodes): Use generic rule %5?hb instead of %h. diff --git a/opcodes/alpha-dis.c b/opcodes/alpha-dis.c index 630454d2b86..49b5f20d2e7 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))