From bc2fc5f82e1e8dd1928f3b3bd346b7489f1d30f1 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 20 Jan 2010 10:54:03 +0000 Subject: [PATCH] PR 11170 * arm-dis.c (print_arm_address): Do not ignore negative bit in PC based post-indexed addressing. --- opcodes/ChangeLog | 6 ++++++ opcodes/arm-dis.c | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 32a31d36e..a403d40bb 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,9 @@ +2010-01-20 Nick Clifton + + PR 11170 + * arm-dis.c (print_arm_address): Do not ignore negative bit in PC + based post-indexed addressing. + 2010-01-15 Sebastian Pop * i386-opc.tbl: Support all the possible aliases for VPCOM* insns. diff --git a/opcodes/arm-dis.c b/opcodes/arm-dis.c index ba1644307..0318d4a6a 100644 --- a/opcodes/arm-dis.c +++ b/opcodes/arm-dis.c @@ -2294,11 +2294,11 @@ print_arm_address (bfd_vma pc, struct disassemble_info *info, long given) func (stream, "[pc"); + if (NEGATIVE_BIT_SET) + offset = - offset; + if (PRE_BIT_SET) { - if (NEGATIVE_BIT_SET) - offset = - offset; - /* Pre-indexed. */ func (stream, ", #%d]", offset); -- 2.11.4.GIT