Fix value in comment of disassembled ARM type A opcodes.
[deliverable/binutils-gdb.git] / opcodes / arm-dis.c
index a3e53db01bc6366d808c4fe4817bc3c422bae199..a0a03ee1f87fa87ebeb85aa12e3f1f6b711e5838 100644 (file)
@@ -5733,7 +5733,7 @@ print_insn_thumb32 (bfd_vma pc, struct disassemble_info *info, long given)
                      if (off || !U)
                        {
                          func (stream, ", #%c%u", U ? '+' : '-', off * 4);
-                         value_in_comment = (off && U) ? 1 : -1;
+                         value_in_comment = off * 4 * (U ? 1 : -1);
                        }
                      func (stream, "]");
                      if (W)
@@ -5745,7 +5745,7 @@ print_insn_thumb32 (bfd_vma pc, struct disassemble_info *info, long given)
                      if (W)
                        {
                          func (stream, "#%c%u", U ? '+' : '-', off * 4);
-                         value_in_comment = (off && U) ? 1 : -1;
+                         value_in_comment = off * 4 * (U ? 1 : -1);
                        }
                      else
                        {
This page took 0.023406 seconds and 4 git commands to generate.