* alpha-dis.c (print_insn_alpha): Also mask the base opcode for
authorRichard Henderson <rth@redhat.com>
Tue, 22 Jan 2002 09:44:09 +0000 (09:44 +0000)
committerRichard Henderson <rth@redhat.com>
Tue, 22 Jan 2002 09:44:09 +0000 (09:44 +0000)
        comparison.

opcodes/ChangeLog
opcodes/alpha-dis.c

index 3caef39bd180aa2402587866b9163799754a3cf0..95c5df23c3bbccb74330aa215d62ec2821c5a51e 100644 (file)
@@ -1,3 +1,8 @@
+2002-01-22  Richard Henderson  <rth@redhat.com>
+
+       * alpha-dis.c (print_insn_alpha): Also mask the base opcode for
+       comparison.
+
 2002-01-19  Richard Earnshaw  <rearnsha@arm.com>
 
        * arm-opc.h (arm_opcodes): Use generic rule %5?hb instead of %h.
index 630454d2b86b6712c37f358a8be4b5c0f53fd2c6..49b5f20d2e7608afa775744da591a4413ed7e5a7 100644 (file)
@@ -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))