summaryrefslogtreecommitdiff
path: root/opcodes/arm-dis.c
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
commita64abfed593f552156806dc8749c383bc6ec915d (patch)
tree572d7165f2e0d4814923585588c9da866cebe668 /opcodes/arm-dis.c
parentc2458c152fc0f1b3faed0e6a9099309e91b3f202 (diff)
downloadgdb-a64abfed593f552156806dc8749c383bc6ec915d.tar.gz
* arm-dis.c (print_insn_neon): Disassemble 32-bit immediates as signed
on 64-bit hosts.
Diffstat (limited to 'opcodes/arm-dis.c')
-rw-r--r--opcodes/arm-dis.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/opcodes/arm-dis.c b/opcodes/arm-dis.c
index 4ff99c2afef..977fcf11dbd 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: