an opening square brace was printed.
+2011-04-13 Nick Clifton <nickc@redhat.com>
+
+ * gas/v850/v850e1.s: Add a insn using reg+offset addressing.
+ * gas/v850/v850e1.d: Add expected disassembly.
+
2011-04-12 Nick Clifton <nickc@redhat.com>
PR binutils/12534
2011-04-12 Nick Clifton <nickc@redhat.com>
PR binutils/12534
0x0+76 ff 07 e6 00 [ ]*tst1 r0, lp
0x0+7a 83 00 [ ]*zxb sp
0x0+7c c4 00 [ ]*zxh gp
0x0+76 ff 07 e6 00 [ ]*tst1 r0, lp
0x0+7a 83 00 [ ]*zxb sp
0x0+7c c4 00 [ ]*zxh gp
+0x0+7e 63 ff 9d 00[ ]*st.w lp, 156\[sp\]
tst1 r0, [r31]
zxb r3
zxh r4
tst1 r0, [r31]
zxb r3
zxh r4
+2011-04-13 Nick Clifton <nickc@redhat.com>
+
+ * v850-dis.c (disassemble): Always print a closing square brace if
+ an opening square brace was printed.
+
2011-04-12 Nick Clifton <nickc@redhat.com>
PR binutils/12534
2011-04-12 Nick Clifton <nickc@redhat.com>
PR binutils/12534
*opindex_ptr != 0;
opindex_ptr++, opnum++)
{
*opindex_ptr != 0;
opindex_ptr++, opnum++)
{
+ bfd_boolean square = FALSE;
long value;
int flag;
char *prefix;
long value;
int flag;
char *prefix;
}
if (opnum == 1 && opnum == memop)
}
if (opnum == 1 && opnum == memop)
- info->fprintf_func (info->stream, "%s[", prefix);
+ {
+ info->fprintf_func (info->stream, "%s[", prefix);
+ square = TRUE;
+ }
else if (opnum > 1
&& (v850_operands[*(opindex_ptr - 1)].flags & V850_OPERAND_DISP) != 0
&& opnum == memop)
else if (opnum > 1
&& (v850_operands[*(opindex_ptr - 1)].flags & V850_OPERAND_DISP) != 0
&& opnum == memop)
- info->fprintf_func (info->stream, "%s[", prefix);
+ {
+ info->fprintf_func (info->stream, "%s[", prefix);
+ square = TRUE;
+ }
else if (opnum > 1)
info->fprintf_func (info->stream, ", %s", prefix);
else if (opnum > 1)
info->fprintf_func (info->stream, ", %s", prefix);
- if (opnum == 2 && opnum == memop)
(*info->fprintf_func) (info->stream, "]");
}
(*info->fprintf_func) (info->stream, "]");
}