]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gas/testsuite/gas/z80/z80.exp
Update year range in copyright notice of binutils files
[thirdparty/binutils-gdb.git] / gas / testsuite / gas / z80 / z80.exp
1 # Copyright (C) 2012-2020 Free Software Foundation, Inc.
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
17 # run tests for target Z80.
18
19 if [istarget z80-*-*] then {
20 # test redefinitions
21 run_dump_test "redef"
22 # test parsing of equ definitions
23 run_dump_test "equ"
24 # test parsing of " and '
25 run_dump_test "quotes"
26 # test suffixes
27 run_dump_test "suffix"
28 # test assembling and disassembling instructions involving offsets
29 run_dump_test "offset"
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
34 # test assembling instruction with offset that is a label defined later
35 run_dump_test "atend"
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"
52 gas_test_error "ill_op.s" "" "Illegal operand: ld hl,(sp+0)"
53 }