From 9d82ec38013ba007963adfae2de0d1a88f965009 Mon Sep 17 00:00:00 2001 From: Matthew Gretton-Dann Date: Fri, 28 May 2010 16:04:21 +0000 Subject: [PATCH] * opcodes/arm-dis.c (print_insn_neon): Ensure disassembly of Neon constants is the same on 32-bit and 64-bit hosts. --- opcodes/ChangeLog | 5 +++++ opcodes/arm-dis.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 79137329f70..9ec2d501000 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,8 @@ +2010-05-28 Matthew Gretton-Dann + + * 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 * m68k-dis.c (print_insn_m68k): Emit undefined instructions as diff --git a/opcodes/arm-dis.c b/opcodes/arm-dis.c index c5b00da0ecb..3763c1ee7c6 100644 --- a/opcodes/arm-dis.c +++ b/opcodes/arm-dis.c @@ -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; -- 2.30.2