diff options
author | Christian Groessler <chris@groessler.org> | 2012-10-26 08:14:07 +0000 |
---|---|---|
committer | Christian Groessler <chris@groessler.org> | 2012-10-26 08:14:07 +0000 |
commit | 747a4ac1f42fa0fc458b07ca0370c87f9cd7ad44 (patch) | |
tree | 4b94f90d8c2fc239c239e969b180ed8dbd2bc5e3 /gas | |
parent | 1fe532cf6090bf2babd3c630e07b3c8f01c2c333 (diff) | |
download | ppe42-binutils-747a4ac1f42fa0fc458b07ca0370c87f9cd7ad44.tar.gz ppe42-binutils-747a4ac1f42fa0fc458b07ca0370c87f9cd7ad44.zip |
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/ChangeLog | 6 | ||||
-rw-r--r-- | gas/testsuite/gas/z8k/translate-ops.d | 17 | ||||
-rw-r--r-- | gas/testsuite/gas/z8k/translate-ops.s | 15 | ||||
-rw-r--r-- | gas/testsuite/gas/z8k/z8k.exp | 4 |
4 files changed, 42 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 715628bd7d..847c87be66 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 0000000000..304d5c105b --- /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 0000000000..3f3126022c --- /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 3f966328fa..e5cf9b149c 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" } |