]>
Commit | Line | Data |
---|---|---|
b3adc24a | 1 | # Copyright (C) 2012-2020 Free Software Foundation, Inc. |
5bf135a7 NC |
2 | |
3 | # This program is free software; you can redistribute it and/or modify | |
4 | # it under the terms of the GNU General Public License as published by | |
5 | # the Free Software Foundation; either version 3 of the License, or | |
6 | # (at your option) any later version. | |
7 | # | |
8 | # This program is distributed in the hope that it will be useful, | |
9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
11 | # GNU General Public License for more details. | |
12 | # | |
13 | # You should have received a copy of the GNU General Public License | |
14 | # along with this program; if not, write to the Free Software | |
15 | # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. | |
16 | ||
5baab855 | 17 | # run tests for target Z80. |
3c9b82ba | 18 | |
be751194 | 19 | if [istarget z80-*-*] then { |
3c9b82ba NC |
20 | # test redefinitions |
21 | run_dump_test "redef" | |
6655dba2 SB |
22 | # test .set redefinitions |
23 | run_dump_test "set" | |
a39571ad AM |
24 | # test parsing of equ definitions |
25 | run_dump_test "equ" | |
3c9b82ba NC |
26 | # test parsing of " and ' |
27 | run_dump_test "quotes" | |
6655dba2 SB |
28 | # test data definition directives |
29 | run_dump_test "data" | |
5baab855 AM |
30 | # test suffixes |
31 | run_dump_test "suffix" | |
3170c51c | 32 | # test assembling and disassembling instructions involving offsets |
ae33e02d | 33 | run_dump_test "offset" |
35c011e3 AM |
34 | gas_test_error "jr-forwf.s" "" "relative jump out of range (jr)" |
35 | gas_test_error "jr-backf.s" "" "relative jump out of range (jr)" | |
36 | gas_test_error "djnz-backf.s" "" "relative jump out of range (djnz)" | |
37 | ||
761025be AM |
38 | # test assembling instruction with offset that is a label defined later |
39 | run_dump_test "atend" | |
c3229d38 AM |
40 | # test for data transfer instructions |
41 | run_dump_test "ld-group" | |
42 | # test for block instructions | |
43 | run_dump_test "block" | |
44 | # test for arithmetic and logic | |
45 | run_dump_test "arith" | |
46 | # test for rotate and shift | |
47 | run_dump_test "rotate" | |
48 | # test for bit manipulations | |
49 | run_dump_test "bit" | |
50 | # test for branch instructions | |
51 | run_dump_test "branch" | |
52 | # test for input and output instructions | |
53 | run_dump_test "inout" | |
6655dba2 SB |
54 | # test for strings |
55 | run_dump_test "strings" | |
56 | # test for dollar labels | |
57 | run_dump_test "dollar" | |
58 | # test for relocations | |
59 | run_dump_test "z80_reloc" | |
60 | # test for absolutely all documented instructions of Z80 | |
61 | run_dump_test "z80_doc" | |
62 | # test for undocumented instructions like RLC (IX+3),A | |
63 | run_dump_test "z80_op_ii_ld" | |
64 | # test for undocumented instructions SLI/SLL | |
65 | run_dump_test "z80_sli" | |
66 | # test for undocumented instruction IN F,(C) | |
67 | run_dump_test "z80_in_f_c" | |
68 | # test for undocumented instruction OUT (C),0 | |
69 | run_dump_test "z80_out_c_0" | |
70 | # test for instructions with index register halves | |
71 | run_dump_test "z80_ii8" | |
c3229d38 AM |
72 | #test for other instructions |
73 | run_dump_test "misc" | |
35c011e3 | 74 | gas_test_error "ill_op.s" "" "Illegal operand: ld hl,(sp+0)" |
6655dba2 SB |
75 | # test for all Z80 documented instructions for R800 |
76 | run_dump_test "r800_z80_doc" | |
77 | # test for R800 instructions with index register halves | |
78 | run_dump_test "r800_ii8" | |
79 | # test for R800 extra instructions | |
80 | run_dump_test "r800_extra" | |
81 | #test for Z180 instructions | |
82 | run_dump_test "z180" | |
83 | #test for Z80 instructions while compiling for Z180 | |
84 | run_dump_test "z180_z80_doc" | |
85 | #test for eZ80 instructions in Z80 mode | |
86 | run_dump_test "ez80_z80_all" | |
87 | #test for eZ80 instructions with sufficies in Z80 mode | |
88 | run_dump_test "ez80_z80_suf" | |
89 | #test for eZ80 instructions in ADL mode | |
90 | run_dump_test "ez80_adl_all" | |
91 | #test for eZ80 instructions with sufficies in ADL mode | |
92 | run_dump_test "ez80_adl_suf" | |
7a6bf3be SB |
93 | #test for eZ80 opcode prefixes as multiple bytes before instruction |
94 | run_dump_test "ez80_pref_dis" | |
9fc0b501 SB |
95 | #test for GBZ80 instruction set |
96 | run_dump_test "gbz80_all" | |
97 | #test for Z80N instruction set | |
98 | run_dump_test "z80n_all" | |
99 | #test for Z80N push nn relocation test | |
100 | run_dump_test "z80n_reloc" | |
6655dba2 SB |
101 | # test for SDCC compatibility mode |
102 | run_dump_test "sdcc" | |
103 | # test for colonless labels | |
104 | run_dump_test "colonless" | |
105 | # test for FP math48 | |
106 | run_dump_test "fp_math48" | |
107 | # test for FP zeda32 | |
108 | run_dump_test "fp_zeda32" | |
3c9b82ba | 109 | } |