* d10v-dis.c (print_operand): Apply REGISTER_MASK to `num' of
authorAlexandre Oliva <aoliva@redhat.com>
Tue, 4 Dec 2001 12:30:55 +0000 (12:30 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Tue, 4 Dec 2001 12:30:55 +0000 (12:30 +0000)
unmatched register.

opcodes/ChangeLog
opcodes/d10v-dis.c

index b3d72868ad30e26adb18f4a4836366504fe31af3..d6cc2319fcd457884f62902ad52c329fe65725ca 100644 (file)
@@ -1,5 +1,8 @@
 2001-12-04  Alexandre Oliva  <aoliva@redhat.com>
 
+       * d10v-dis.c (print_operand): Apply REGISTER_MASK to `num' of
+       unmatched register.
+
        * d10v-dis.c (print_operand): Disregard OPERAND_SP in register
        predefined value.
 
index 4a89d8f0c844b5e85f96c18237005db5f1d58738..433fd518326e93904b62f42980339360e8cfbbb1 100644 (file)
@@ -145,7 +145,7 @@ print_operand (oper, insn, op, memaddr, info)
            (*info->fprintf_func) (info->stream, "cr");
          else if (oper->flags & OPERAND_REG)
            (*info->fprintf_func) (info->stream, "r");
-         (*info->fprintf_func) (info->stream, "%d", num);
+         (*info->fprintf_func) (info->stream, "%d", num & REGISTER_MASK);
        }
     }
   else