aboutsummaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorJulian Brown <julian@codesourcery.com>2006-06-12 15:31:28 +0000
committerJulian Brown <julian@codesourcery.com>2006-06-12 15:31:28 +0000
commit4e9d3b813b857193778390d2a0f56000215bbab0 (patch)
tree0a5bd9934da48a6aa266ca9d9107d8db47071954 /opcodes
parentce28273f99d0dd06bb896e521e4ba15c0fd3a189 (diff)
downloadgdb-4e9d3b813b857193778390d2a0f56000215bbab0.zip
gdb-4e9d3b813b857193778390d2a0f56000215bbab0.tar.gz
gdb-4e9d3b813b857193778390d2a0f56000215bbab0.tar.bz2
* arm-dis.c (print_insn_neon): Disassemble 32-bit immediates as signed
on 64-bit hosts.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/ChangeLog5
-rw-r--r--opcodes/arm-dis.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 2d383ae..0357828 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,8 @@
+2006-06-12 Julian Brown <julian@codesourcery.com>
+
+ * arm-dis.c (print_insn_neon): Disassemble 32-bit immediates as signed
+ on 64-bit hosts.
+
2006-06-10 H.J. Lu <hongjiu.lu@intel.com>
* i386.c (GRP10): Renamed to ...
diff --git a/opcodes/arm-dis.c b/opcodes/arm-dis.c
index 4ff99c2..977fcf1 100644
--- a/opcodes/arm-dis.c
+++ b/opcodes/arm-dis.c
@@ -2417,7 +2417,9 @@ print_insn_neon (struct disassemble_info *info, long given, bfd_boolean thumb)
value);
}
else
- func (stream, "#%ld\t; 0x%.8lx", value, value);
+ func (stream, "#%ld\t; 0x%.8lx",
+ (long) ((value & 0x80000000)
+ ? value | ~0xffffffffl : value), value);
break;
case 64: