+2003-06-10 Richard Sandiford <rsandifo@redhat.com>
+
+ * config/tc-h8300.c (get_rtsl_operands): Accept unbracketed register
+ lists. Allow single-register ranges.
+
2003-06-10 Richard Sandiford <rsandifo@redhat.com>
* config/tc-h8300.c (h8300sxnmode): New.
as_bad (_("expected register"));
return;
}
- if (type == 1)
+ ptr += len;
+ if (*ptr == '-')
{
- ptr += len;
- if (*ptr++ != '-')
- {
- as_bad (_("expected register list"));
- return;
- }
- len = parse_reg (ptr, &mode, &num2, SRC);
+ len = parse_reg (++ptr, &mode, &num2, SRC);
if (len == 0 || (mode & MODE) != REG)
{
as_bad (_("expected register"));
return;
}
ptr += len;
- if (*ptr++ != ')')
- {
- as_bad (_("expected closing paren"));
- return;
- }
/* CONST_xxx are used as placeholders in the opcode table. */
num = num2 - num;
- if (num < 1 || num > 3)
+ if (num < 0 || num > 3)
{
as_bad (_("invalid register list"));
return;
}
else
num2 = num, num = 0;
+ if (type == 1 && *ptr++ != ')')
+ {
+ as_bad (_("expected closing paren"));
+ return;
+ }
operand[0].mode = RS32;
operand[1].mode = RD32;
operand[0].reg = num;
+2003-06-10 Richard Sandiford <rsandifo@redhat.com>
+
+ * gas/h8300/h8sx_rtsl.[sd]: New test.
+ * gas/h8300/h8300.exp: Run it.
+
2003-06-10 Richard Sandiford <rsandifo@redhat.com>
* gas/h8300/h8sx_disp2.[sd]: New test.
do_h8300h_mov32bug
run_dump_test h8sx_disp2
+ run_dump_test h8sx_rtsl
# Now some random tests
set svr4pic [expr [istarget *-*-elf*] || [istarget *-*-irix5*] ]
--- /dev/null
+# objdump: -dr
+
+.*: *file format elf32-h8300
+
+Disassembly of section \.text:
+
+0+00 <\.text>:
+ *0: 54 00 * 54 00 * rts/l er0
+ *2: 54 01 * 54 01 * rts/l er1
+ *4: 54 03 * 54 03 * rts/l er3
+ *6: 54 05 * 54 05 * rts/l er5
+ *8: 54 16 * 54 16 * rts/l er5-er6
+ *a: 54 25 * 54 25 * rts/l er3-er5
+ *c: 54 34 * 54 34 * rts/l er1-er4
--- /dev/null
+ .h8300sx
+ rts/l er0
+ rts/l er1-er1
+ rts/l (er3)
+ rts/l (er5-er5)
+ rts/l er5-er6
+ rts/l er3-er5
+ rts/l (er1-er4)
+2003-06-10 Richard Sandiford <rsandifo@redhat.com>
+
+ * h8300-dis.c (bfd_h8_disassemble): Don't print brackets round
+ rts/l and rte/l register lists.
+
2003-06-03 Nick Clifton <nickc@redhat.com>
* frv-desc.c: Regenerate.
outfn (stream, "er%d", regno[1]);
else
{
- outfn (stream, "(er%d-er%d)", regno[1] - regno[0],
+ outfn (stream, "er%d-er%d", regno[1] - regno[0],
regno[1]);
}
return qi->length;