dc57c8c32b01bbcff98989c0452051de5b76211d
[external/binutils.git] / gas / testsuite / gas / z80 / z80.exp
1 # Copyright 2012
2 # Free Software Foundation, Inc.
3
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3 of the License, or
7 # (at your option) any later version.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  
17
18 # run tests for target Z80.
19
20 if [istarget z80-*-*] then {
21 # test redefinitions
22     run_dump_test "redef"
23 # test parsing of equ definitions
24     run_dump_test "equ"
25 # test parsing of " and '
26     run_dump_test "quotes"
27 # test suffixes
28     run_dump_test "suffix"
29 # test assembling and disassembling instructions involving offsets
30     run_dump_test "offset"
31     gas_test_error "jr-forwf.s" "" "relative jump out of range (jr)"
32     gas_test_error "jr-backf.s" "" "relative jump out of range (jr)"
33     gas_test_error "djnz-backf.s" "" "relative jump out of range (djnz)"
34  
35 # test assembling instruction with offset that is a label defined later
36     run_dump_test "atend"
37 # test for data transfer instructions
38     run_dump_test "ld-group"
39 # test for block instructions
40     run_dump_test "block"
41 # test for arithmetic and logic
42     run_dump_test "arith"
43 # test for rotate and shift
44     run_dump_test "rotate"
45 # test for bit manipulations
46     run_dump_test "bit"
47 # test for branch instructions
48     run_dump_test "branch"
49 # test for input and output instructions
50     run_dump_test "inout"
51 #test for other instructions
52     run_dump_test "misc"
53     gas_test_error "ill_op.s" "" "Illegal operand: ld hl,(sp+0)"
54 }