Commit | Line | Data |
---|---|---|
6f2750fe | 1 | # Copyright (C) 2012-2016 Free Software Foundation, Inc. |
5bf135a7 NC |
2 | |
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. | |
7 | # | |
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. | |
12 | # | |
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. | |
373bbd04 CG |
16 | |
17 | if [istarget z8k-*-*] then { | |
18 | ||
19 | # EI/DI test | |
20 | ||
21 | gas_test "eidi.s" "" "" "EI/DI operands" | |
22 | gas_test_error "eidif.s" "" "EI/DI operands" | |
23 | ||
249ad7a7 | 24 | # pcrel range test |
373bbd04 | 25 | |
249ad7a7 CG |
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)" | |
373bbd04 CG |
32 | |
33 | # 4 bit argument tests | |
34 | ||
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" | |
43 | ||
44 | # in/out opcodes test | |
45 | ||
46 | run_dump_test "inout" | |
47 | ||
249ad7a7 | 48 | # pcrel tests |
373bbd04 | 49 | |
249ad7a7 CG |
50 | run_dump_test "jr-forw" |
51 | run_dump_test "jr-back" | |
52 | run_dump_test "djnz" | |
53 | run_dump_test "calr" | |
0f03428a CG |
54 | |
55 | # condition code tests | |
56 | ||
57 | run_dump_test "jmp-cc" | |
58 | run_dump_test "ret-cc" | |
24bc63c5 CG |
59 | |
60 | # ctrl names test | |
61 | ||
62 | run_dump_test "ctrl-names" | |
00df03dc CG |
63 | |
64 | # labels starting with register names test | |
65 | ||
66 | run_dump_test "reglabel" | |
747a4ac1 CG |
67 | |
68 | # translate operations | |
69 | ||
70 | run_dump_test "translate-ops" | |
249ad7a7 | 71 | } |