* elflink.c (_bfd_elf_merge_symbol): Use local var holding value
[binutils-gdb.git] / opcodes / tic6x-dis.c
index 05626df2275ff4d8d590c72daf5711542d53bc27..73ac2e041e8c4c0be241b2601e34faa52fe7e646 100644 (file)
@@ -1,6 +1,5 @@
 /* TI C6X disassembler.
-   Copyright 2010
-   Free Software Foundation, Inc.
+   Copyright 2010-2013 Free Software Foundation, Inc.
    Contributed by Joseph Myers <joseph@codesourcery.com>
                  Bernd Schmidt  <bernds@codesourcery.com>
 
@@ -632,6 +631,15 @@ print_insn_tic6x (bfd_vma addr, struct disassemble_info *info)
                  operands_addresses[op_num] = fp_addr + signed_fld_val;
                  break;
 
+               case tic6x_coding_regpair_msb:
+                 if (opc->operand_info[op_num].form != tic6x_operand_regpair)
+                   abort ();
+                 operands_text[op_num] = TRUE;
+                 snprintf (operands[op_num], 24, "%c%u:%c%u",
+                           (func_unit_side == 2 ? 'b' : 'a'), (fld_val | 0x1),
+                           (func_unit_side == 2 ? 'b' : 'a'), (fld_val | 0x1) - 1);
+                 break;
+
                case tic6x_coding_reg_shift:
                  fld_val <<= 1;
                  /* Fall through.  */