1 # Copyright (C) 2012-2018 Free Software Foundation, Inc.
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.
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.
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.
17 if [istarget z8k-*-*] then {
21 gas_test "eidi.s" "" "" "EI/DI operands"
22 gas_test_error "eidif.s" "" "EI/DI operands"
26 gas_test_error "jr-forwf.s" "" "relative jump out of range (jr)"
27 gas_test_error "jr-backf.s" "" "relative jump out of range (jr)"
28 gas_test_error "djnz-backf.s" "" "relative jump out of range (djnz)"
29 gas_test_error "djnz-backf2.s" "" "relative jump out of range (djnz)"
30 gas_test_error "calr-forwf.s" "" "relative jump out of range (calr)"
31 gas_test_error "calr-backf.s" "" "relative jump out of range (calr)"
33 # 4 bit argument tests
35 gas_test_error "incf.s" "" "immediate 4bit value out of range"
36 gas_test_error "decf.s" "" "immediate 4bit value out of range"
37 gas_test_error "incbf.s" "" "immediate 4bit value out of range"
38 gas_test_error "decbf.s" "" "immediate 4bit value out of range"
39 gas_test_error "ldkf.s" "" "immediate 4bit value out of range"
40 gas_test "inc.s" "" "" "immediate 4bit value"
41 gas_test "dec.s" "" "" "immediate 4bit value"
42 gas_test "ldk.s" "" "" "immediate 4bit value"
50 run_dump_test "jr-forw"
51 run_dump_test "jr-back"
55 # condition code tests
57 run_dump_test "jmp-cc"
58 run_dump_test "ret-cc"
62 run_dump_test "ctrl-names"
64 # labels starting with register names test
66 run_dump_test "reglabel"
68 # translate operations
70 run_dump_test "translate-ops"