+# Copyright (C) 2012-2020 Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
+
# run tests for target Z80.
if [istarget z80-*-*] then {
# test redefinitions
run_dump_test "redef"
+# test .set redefinitions
+ run_dump_test "set"
# test parsing of equ definitions
run_dump_test "equ"
# test parsing of " and '
run_dump_test "quotes"
+# test data definition directives
+ run_dump_test "data"
# test suffixes
run_dump_test "suffix"
# test assembling and disassembling instructions involving offsets
run_dump_test "branch"
# test for input and output instructions
run_dump_test "inout"
+# test for strings
+ run_dump_test "strings"
+# test for dollar labels
+ run_dump_test "dollar"
+# test for relocations
+ run_dump_test "z80_reloc"
+# test for absolutely all documented instructions of Z80
+ run_dump_test "z80_doc"
+# test for undocumented instructions like RLC (IX+3),A
+ run_dump_test "z80_op_ii_ld"
+# test for undocumented instructions SLI/SLL
+ run_dump_test "z80_sli"
+# test for undocumented instruction IN F,(C)
+ run_dump_test "z80_in_f_c"
+# test for undocumented instruction OUT (C),0
+ run_dump_test "z80_out_c_0"
+# test for instructions with index register halves
+ run_dump_test "z80_ii8"
#test for other instructions
run_dump_test "misc"
gas_test_error "ill_op.s" "" "Illegal operand: ld hl,(sp+0)"
+# test for all Z80 documented instructions for R800
+ run_dump_test "r800_z80_doc"
+# test for R800 instructions with index register halves
+ run_dump_test "r800_ii8"
+# test for R800 extra instructions
+ run_dump_test "r800_extra"
+#test for Z180 instructions
+ run_dump_test "z180"
+#test for Z80 instructions while compiling for Z180
+ run_dump_test "z180_z80_doc"
+#test for eZ80 instructions in Z80 mode
+ run_dump_test "ez80_z80_all"
+#test for eZ80 instructions with sufficies in Z80 mode
+ run_dump_test "ez80_z80_suf"
+#test for eZ80 instructions in ADL mode
+ run_dump_test "ez80_adl_all"
+#test for eZ80 instructions with sufficies in ADL mode
+ run_dump_test "ez80_adl_suf"
+# test for SDCC compatibility mode
+ run_dump_test "sdcc"
+# test for colonless labels
+ run_dump_test "colonless"
+# test for FP math48
+ run_dump_test "fp_math48"
+# test for FP zeda32
+ run_dump_test "fp_zeda32"
}