2
# Free Software Foundation, Inc.
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.
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.
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.
18
# run tests for target Z80.
20
if [istarget z80-*-*] then {
23
# test parsing of equ definitions
25
# test parsing of " and '
26
run_dump_test "quotes"
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)"
35
# test assembling instruction with offset that is a label defined later
37
# test for data transfer instructions
38
run_dump_test "ld-group"
39
# test for block instructions
41
# test for arithmetic and logic
43
# test for rotate and shift
44
run_dump_test "rotate"
45
# test for bit manipulations
47
# test for branch instructions
48
run_dump_test "branch"
49
# test for input and output instructions
51
#test for other instructions
53
gas_test_error "ill_op.s" "" "Illegal operand: ld hl,(sp+0)"