* d10v-dis.c (print_operand): Disregard OPERAND_SP in register
authorAlexandre Oliva <aoliva@redhat.com>
Tue, 4 Dec 2001 10:08:19 +0000 (10:08 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Tue, 4 Dec 2001 10:08:19 +0000 (10:08 +0000)
predefined value.

opcodes/ChangeLog
opcodes/d10v-dis.c

index c710d32bff859ba6bd12d5a64fc418c605acfe86..b3d72868ad30e26adb18f4a4836366504fe31af3 100644 (file)
@@ -1,5 +1,8 @@
 2001-12-04  Alexandre Oliva  <aoliva@redhat.com>
 
+       * d10v-dis.c (print_operand): Disregard OPERAND_SP in register
+       predefined value.
+
        * d10v-opc.c (RSRC_NOSP): New macro.
        (d10v_operands): Add it.
        (d10v_opcodes): Use RSRC_NOSP in post-decrement "st" and "st2w".
index d337a6b45250463d1bcf7aa2d589d27a60bd12b7..4a89d8f0c844b5e85f96c18237005db5f1d58738 100644 (file)
@@ -123,7 +123,7 @@ print_operand (oper, insn, op, memaddr, info)
        num += num ? OPERAND_ACC1 : OPERAND_ACC0;
       for (i = 0; i < d10v_reg_name_cnt (); i++)
        {
-         if (num == d10v_predefined_registers[i].value)
+         if (num == (d10v_predefined_registers[i].value & ~ OPERAND_SP))
            {
              if (d10v_predefined_registers[i].pname)
                (*info->fprintf_func) (info->stream, "%s",