PR 11170
authorNick Clifton <nickc@redhat.com>
Wed, 20 Jan 2010 10:54:03 +0000 (10:54 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 20 Jan 2010 10:54:03 +0000 (10:54 +0000)
        * arm-dis.c (print_arm_address): Do not ignore negative bit in PC
        based post-indexed addressing.

opcodes/ChangeLog
opcodes/arm-dis.c

index 32a31d36ebc491359640b20546d9e9bcd5cc582b..a403d40bb6981f827f334d5594317002e11fd6b6 100644 (file)
@@ -1,3 +1,9 @@
+2010-01-20  Nick Clifton  <nickc@redhat.com>
+
+       PR 11170
+       * arm-dis.c (print_arm_address): Do not ignore negative bit in PC
+       based post-indexed addressing.
+
 2010-01-15  Sebastian Pop  <sebastian.pop@amd.com>
 
        * i386-opc.tbl: Support all the possible aliases for VPCOM* insns.
index ba1644307b5d260e9d4ed4249433b01e1e28709e..0318d4a6aab9f2b98902e3ede2bbc60bc2ee0499 100644 (file)
@@ -2294,11 +2294,11 @@ print_arm_address (bfd_vma pc, struct disassemble_info *info, long given)
 
       func (stream, "[pc");
 
+      if (NEGATIVE_BIT_SET)
+       offset = - offset;
+
       if (PRE_BIT_SET)
        {
-         if (NEGATIVE_BIT_SET)
-           offset = - offset;
-
          /* Pre-indexed.  */
          func (stream, ", #%d]", offset);