PR binutils/12329
authorNick Clifton <nickc@redhat.com>
Fri, 1 Jul 2011 16:11:27 +0000 (16:11 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 1 Jul 2011 16:11:27 +0000 (16:11 +0000)
* avr-dis.c (avr_operand): Fix disassembly of ELPM, LPM and SPM
insns using post-increment addressing.

* avr.h (AVR_ISA_AVR6): Fix typo, adding AVR_ISA_SPMX.

include/opcode/ChangeLog
include/opcode/avr.h
opcodes/ChangeLog
opcodes/arm-dis.c
opcodes/avr-dis.c

index 5474c8569ad22c9a1304dd867743f868fad5e2a9..71ea157bacfa27fb12782328d8cee065d395d54e 100644 (file)
@@ -1,3 +1,7 @@
+2011-07-01  Nick Clifton  <nickc@redhat.com>
+
+       * avr.h (AVR_ISA_AVR6): Fix typo, adding AVR_ISA_SPMX.
+
 2011-06-18  Robin Getz  <robin.getz@analog.com>
 
        * bfin.h (is_macmod_signed): New func
index c754234bd6a23bd7a8df7270484d927f92cd3790..cc03c8018a0430261e3de8f72f8aa6df8c5625c7 100644 (file)
@@ -68,7 +68,7 @@
 #define AVR_ISA_AVR6   (AVR_ISA_1200 | AVR_ISA_LPM | AVR_ISA_LPMX | \
                         AVR_ISA_SRAM | AVR_ISA_MEGA | AVR_ISA_MUL | \
                         AVR_ISA_ELPM | AVR_ISA_ELPMX | AVR_ISA_SPM | \
-                        AVR_ISA_SPM | AVR_ISA_BRK | AVR_ISA_EIND | \
+                        AVR_ISA_SPMX | AVR_ISA_BRK | AVR_ISA_EIND | \
                         AVR_ISA_MOVW)
 
 #define REGISTER_P(x) ((x) == 'r'              \
index 2e04791f931809296d5c13e474eab14aa7c4a2e0..16e907542d0835364ea112e8cff283fba001d952 100644 (file)
@@ -1,3 +1,9 @@
+2011-07-01  Nick Clifton  <nickc@redhat.com>
+
+       PR binutils/12329
+       * avr-dis.c (avr_operand): Fix disassembly of ELPM, LPM and SPM
+       insns using post-increment addressing.
+
 2011-06-30  H.J. Lu  <hongjiu.lu@intel.com>
 
        * i386-dis.c (vex_len_table): Update rorxS.
index fafa7f6853d8ecf242ef2164e2ad5edb491890ba..2e6d4e8ef38a50a591f4e3dfe7027d250bb367f2 100644 (file)
@@ -2997,6 +2997,9 @@ print_insn_arm (bfd_vma pc, struct disassemble_info *info, long given)
                           /* PC relative with immediate offset.  */
                          bfd_vma offset = ((given & 0xf00) >> 4) | (given & 0xf);
 
+                         if (NEGATIVE_BIT_SET)
+                           offset = - offset;
+
                          if (PRE_BIT_SET)
                            {
                              /* Elide positive zero offset.  */
index 85d7ab3fec61fdc71526c3a6b7fd11bcb1febf41..b895ad53fffb22628b324adb69001dd7f9f6f1b3 100644 (file)
@@ -125,7 +125,8 @@ avr_operand (unsigned int insn, unsigned int insn2, unsigned int pc, int constra
         {
           if (*s == '+')
             {
-       *buf++ = '+';
+             if (insn & (1 << (15 - (s - opcode_str))))
+               *buf++ = '+';
               break;
             }
         }