diff options
author | Matthew Gretton-Dann <matthew.gretton-dann@arm.com> | 2010-05-28 16:04:21 +0000 |
---|---|---|
committer | Matthew Gretton-Dann <matthew.gretton-dann@arm.com> | 2010-05-28 16:04:21 +0000 |
commit | 9d82ec38013ba007963adfae2de0d1a88f965009 (patch) | |
tree | 2a89788f89e01ac767252362c74aea0ac2ad5f27 /opcodes/arm-dis.c | |
parent | 941a8a522b9c4b38eea58bc00e6c4948be8d8c65 (diff) | |
download | gdb-9d82ec38013ba007963adfae2de0d1a88f965009.zip gdb-9d82ec38013ba007963adfae2de0d1a88f965009.tar.gz gdb-9d82ec38013ba007963adfae2de0d1a88f965009.tar.bz2 |
* opcodes/arm-dis.c (print_insn_neon): Ensure disassembly of Neon
constants is the same on 32-bit and 64-bit hosts.
Diffstat (limited to 'opcodes/arm-dis.c')
-rw-r--r-- | opcodes/arm-dis.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/opcodes/arm-dis.c b/opcodes/arm-dis.c index c5b00da..3763c1e 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; |