aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorChristian Groessler <chris@groessler.org>2012-10-26 08:14:07 +0000
committerChristian Groessler <chris@groessler.org>2012-10-26 08:14:07 +0000
commit747a4ac1f42fa0fc458b07ca0370c87f9cd7ad44 (patch)
tree4b94f90d8c2fc239c239e969b180ed8dbd2bc5e3 /gas
parent1fe532cf6090bf2babd3c630e07b3c8f01c2c333 (diff)
downloadgdb-747a4ac1f42fa0fc458b07ca0370c87f9cd7ad44.zip
gdb-747a4ac1f42fa0fc458b07ca0370c87f9cd7ad44.tar.gz
gdb-747a4ac1f42fa0fc458b07ca0370c87f9cd7ad44.tar.bz2
gas/testsuite:
* gas/z8k/z8k.exp: Run translate-ops test. * gas/z8k/translate-ops.s: New file. * gas/z8k/translate-ops.d: New file. opcodes: * z8kgen.c (struct op): Fix encoding for translate opcodes (trdb, trdrb, trib, trirb, trtdb, trtdrb, trtib, trtirb). Remove non-existing opcode trtrb. * z8k-opc.h: Regenerate.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog6
-rw-r--r--gas/testsuite/gas/z8k/translate-ops.d17
-rw-r--r--gas/testsuite/gas/z8k/translate-ops.s15
-rw-r--r--gas/testsuite/gas/z8k/z8k.exp4
4 files changed, 42 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 715628b..847c87b 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2012-10-26 Christian Groessler <chris@groessler.org>
+
+ * gas/z8k/z8k.exp: Run translate-ops test.
+ * gas/z8k/translate-ops.s: New file.
+ * gas/z8k/translate-ops.d: New file.
+
2012-10-26 Alan Modra <amodra@gmail.com>
* gas/ppc/power4.s: Fix invalid lq offsets.
diff --git a/gas/testsuite/gas/z8k/translate-ops.d b/gas/testsuite/gas/z8k/translate-ops.d
new file mode 100644
index 0000000..304d5c1
--- /dev/null
+++ b/gas/testsuite/gas/z8k/translate-ops.d
@@ -0,0 +1,17 @@
+#as:
+#objdump: -dr
+#name: translate-ops
+
+.*: +file format coff-z8k
+
+Disassembly of section \.text:
+
+0*00000000 <\.text>:
+ 0: b828 0640 trdb @rr2,@rr4,r6
+ 4: b82c 0640 trdrb @rr2,@rr4,r6
+ 8: b8c0 07a0 trib @rr12,@rr10,r7
+ c: b8c4 08a0 trirb @rr12,@rr10,r8
+ 10: b86a 0a80 trtdb @rr6,@rr8,r10
+ 14: b88e 034e trtdrb @rr8,@rr4,r3
+ 18: b8a2 0c20 trtib @rr10,@rr2,r12
+ 1c: b826 064e trtirb @rr2,@rr4,r6
diff --git a/gas/testsuite/gas/z8k/translate-ops.s b/gas/testsuite/gas/z8k/translate-ops.s
new file mode 100644
index 0000000..3f31260
--- /dev/null
+++ b/gas/testsuite/gas/z8k/translate-ops.s
@@ -0,0 +1,15 @@
+! translate opcodes
+
+ .text
+ .z8001
+
+ trdb @rr2,@rr4,r6
+ trdrb @rr2,@rr4,r6
+ trib @rr12,@rr10,r7
+ trirb @rr12,@rr10,r8
+ trtdb @rr6,@rr8,r10
+ trtdrb @rr8,@rr4,r3
+ trtib @rr10,@rr2,r12
+ trtirb @rr2,@rr4,r6
+
+ .end
diff --git a/gas/testsuite/gas/z8k/z8k.exp b/gas/testsuite/gas/z8k/z8k.exp
index 3f96632..e5cf9b1 100644
--- a/gas/testsuite/gas/z8k/z8k.exp
+++ b/gas/testsuite/gas/z8k/z8k.exp
@@ -49,4 +49,8 @@ if [istarget z8k-*-*] then {
# labels starting with register names test
run_dump_test "reglabel"
+
+# translate operations
+
+ run_dump_test "translate-ops"
}