* opcodes/arm-dis.c (print_insn_neon): Ensure disassembly of Neon
authorMatthew Gretton-Dann <matthew.gretton-dann@arm.com>
Fri, 28 May 2010 16:04:21 +0000 (16:04 +0000)
committerMatthew Gretton-Dann <matthew.gretton-dann@arm.com>
Fri, 28 May 2010 16:04:21 +0000 (16:04 +0000)
constants is the same on 32-bit and 64-bit hosts.

opcodes/ChangeLog
opcodes/arm-dis.c

index 79137329f70e126800af1cec4d1859ed145d4ef5..9ec2d501000bf585905f3e01202ce314582de52c 100644 (file)
@@ -1,3 +1,8 @@
+2010-05-28  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
+
+       * arm-dis.c (print_insn_neon):  Ensure disassembly of Neon 
+       constants is the same on 32-bit and 64-bit hosts.
+
 2010-05-27  Jason Duerstock  <jason.duerstock+binutils@gmail.com>
 
        * m68k-dis.c (print_insn_m68k): Emit undefined instructions as
index c5b00da0ecbfa00b7154dd9d271deb9ee07e8825..3763c1ee7c6fd62937c6e581c8625668ac3f50c1 100644 (file)
@@ -2720,7 +2720,8 @@ print_insn_neon (struct disassemble_info *info, long given, bfd_boolean thumb)
                               }
                             else
                               func (stream, "#%ld\t; 0x%.8lx",
-                                   (long) (NEGATIVE_BIT_SET ? value | ~0xffffffffL : value),
+                                   (long) (((value & 0x80000000L) != 0) 
+                                           ? value | ~0xffffffffL : value),
                                    value);
                             break;