aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2003-06-10 07:27:56 +0000
committerRichard Sandiford <rdsandiford@googlemail.com>2003-06-10 07:27:56 +0000
commit0613284fd49388e6d5938e76e471362485c6c93e (patch)
tree701fe75ed8d9bad2d580b3ca9eff768f97a5ffa8 /gas/testsuite
parent28d7dee9f8d1335bac2a2c51ea152d4d3db46823 (diff)
downloadfsf-binutils-gdb-0613284fd49388e6d5938e76e471362485c6c93e.zip
fsf-binutils-gdb-0613284fd49388e6d5938e76e471362485c6c93e.tar.gz
fsf-binutils-gdb-0613284fd49388e6d5938e76e471362485c6c93e.tar.bz2
opcodes/
* h8300-dis.c (bfd_h8_disassemble): Don't print brackets round rts/l and rte/l register lists. gas/ * config/tc-h8300.c (get_rtsl_operands): Accept unbracketed register lists. Allow single-register ranges. testsuite/ * gas/h8300/h8sx_rtsl.[sd]: New test. * gas/h8300/h8300.exp: Run it.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog5
-rw-r--r--gas/testsuite/gas/h8300/h8300.exp1
-rw-r--r--gas/testsuite/gas/h8300/h8sx_rtsl.d14
-rw-r--r--gas/testsuite/gas/h8300/h8sx_rtsl.s8
4 files changed, 28 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index d72b21a..4ea3d4b 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,5 +1,10 @@
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.
* gas/h8300/h8300.exp: Run it.
diff --git a/gas/testsuite/gas/h8300/h8300.exp b/gas/testsuite/gas/h8300/h8300.exp
index 8162f48..e167a3f 100644
--- a/gas/testsuite/gas/h8300/h8300.exp
+++ b/gas/testsuite/gas/h8300/h8300.exp
@@ -2168,6 +2168,7 @@ if [istarget h8300*-*-*] then {
do_h8300h_mov32bug
run_dump_test h8sx_disp2
+ run_dump_test h8sx_rtsl
# Now some random tests
set svr4pic [expr [istarget *-*-elf*] || [istarget *-*-irix5*] ]
diff --git a/gas/testsuite/gas/h8300/h8sx_rtsl.d b/gas/testsuite/gas/h8300/h8sx_rtsl.d
new file mode 100644
index 0000000..648faf9
--- /dev/null
+++ b/gas/testsuite/gas/h8300/h8sx_rtsl.d
@@ -0,0 +1,14 @@
+# 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
diff --git a/gas/testsuite/gas/h8300/h8sx_rtsl.s b/gas/testsuite/gas/h8300/h8sx_rtsl.s
new file mode 100644
index 0000000..b5f4788
--- /dev/null
+++ b/gas/testsuite/gas/h8300/h8sx_rtsl.s
@@ -0,0 +1,8 @@
+ .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)