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 if [istarget z8k-*-*] then {
22 gas_test "eidi.s" "" "" "EI/DI operands"
23 gas_test_error "eidif.s" "" "EI/DI operands"
27 gas_test_error "jr-forwf.s" "" "relative jump out of range (jr)"
28 gas_test_error "jr-backf.s" "" "relative jump out of range (jr)"
29 gas_test_error "djnz-backf.s" "" "relative jump out of range (djnz)"
30 gas_test_error "djnz-backf2.s" "" "relative jump out of range (djnz)"
31 gas_test_error "calr-forwf.s" "" "relative jump out of range (calr)"
32 gas_test_error "calr-backf.s" "" "relative jump out of range (calr)"
34 # 4 bit argument tests
36 gas_test_error "incf.s" "" "immediate 4bit value out of range"
37 gas_test_error "decf.s" "" "immediate 4bit value out of range"
38 gas_test_error "incbf.s" "" "immediate 4bit value out of range"
39 gas_test_error "decbf.s" "" "immediate 4bit value out of range"
40 gas_test_error "ldkf.s" "" "immediate 4bit value out of range"
41 gas_test "inc.s" "" "" "immediate 4bit value"
42 gas_test "dec.s" "" "" "immediate 4bit value"
43 gas_test "ldk.s" "" "" "immediate 4bit value"
51 run_dump_test "jr-forw"
52 run_dump_test "jr-back"
56 # condition code tests
58 run_dump_test "jmp-cc"
59 run_dump_test "ret-cc"
63 run_dump_test "ctrl-names"
65 # labels starting with register names test
67 run_dump_test "reglabel"
69 # translate operations
71 run_dump_test "translate-ops"