Commit | Line | Data |
---|---|---|
b90efa5b | 1 | # Copyright (C) 2012-2015 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" | |
a39571ad AM |
22 | # test parsing of equ definitions |
23 | run_dump_test "equ" | |
3c9b82ba NC |
24 | # test parsing of " and ' |
25 | run_dump_test "quotes" | |
5baab855 AM |
26 | # test suffixes |
27 | run_dump_test "suffix" | |
3170c51c | 28 | # test assembling and disassembling instructions involving offsets |
ae33e02d | 29 | run_dump_test "offset" |
35c011e3 AM |
30 | gas_test_error "jr-forwf.s" "" "relative jump out of range (jr)" |
31 | gas_test_error "jr-backf.s" "" "relative jump out of range (jr)" | |
32 | gas_test_error "djnz-backf.s" "" "relative jump out of range (djnz)" | |
33 | ||
761025be AM |
34 | # test assembling instruction with offset that is a label defined later |
35 | run_dump_test "atend" | |
c3229d38 AM |
36 | # test for data transfer instructions |
37 | run_dump_test "ld-group" | |
38 | # test for block instructions | |
39 | run_dump_test "block" | |
40 | # test for arithmetic and logic | |
41 | run_dump_test "arith" | |
42 | # test for rotate and shift | |
43 | run_dump_test "rotate" | |
44 | # test for bit manipulations | |
45 | run_dump_test "bit" | |
46 | # test for branch instructions | |
47 | run_dump_test "branch" | |
48 | # test for input and output instructions | |
49 | run_dump_test "inout" | |
50 | #test for other instructions | |
51 | run_dump_test "misc" | |
35c011e3 | 52 | gas_test_error "ill_op.s" "" "Illegal operand: ld hl,(sp+0)" |
3c9b82ba | 53 | } |