Fixes a compile time warnng about left shifting a negative value.
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Tue, 16 Jun 2015 12:35:33 +0000 (13:35 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 16 Jun 2015 12:35:33 +0000 (13:35 +0100)
* arm-dis.c (print_insn_coprocessor): Avoid negative shift.

opcodes/ChangeLog
opcodes/arm-dis.c

index bf54219f6e307608d2039c1c161fa2be8fb7ffaf..fe9134d403204d714a015c1a8c7483e6cb165447 100644 (file)
@@ -1,3 +1,7 @@
+2015-06-16  Szabolcs Nagy  <szabolcs.nagy@arm.com>
+
+       * arm-dis.c (print_insn_coprocessor): Avoid negative shift.
+
 2015-06-12  Peter Bergner  <bergner@vnet.ibm.com>
 
        * ppc-opc.c: Add comment accidentally removed by old commit.
index e9f4425a152e5f0a53ce3cc12de54d5bac78fb4c..818847dd552c6b8b2ba35ad7b632132fcdfc3277 100644 (file)
@@ -3352,7 +3352,7 @@ print_insn_coprocessor (bfd_vma pc,
 
                    /* Is ``imm'' a negative number?  */
                    if (imm & 0x40)
-                     imm |= (-1 << 7);
+                     imm -= 0x80;
 
                    func (stream, "%d", imm);
                  }
This page took 0.029098 seconds and 4 git commands to generate.