]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gas/testsuite/gas/z8k/z8k.exp
Add copyright notices
[thirdparty/binutils-gdb.git] / gas / testsuite / gas / z8k / z8k.exp
1 # Copyright 2012
2 # Free Software Foundation, Inc.
3
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.
8 #
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.
13 #
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.
17
18 if [istarget z8k-*-*] then {
19
20 # EI/DI test
21
22 gas_test "eidi.s" "" "" "EI/DI operands"
23 gas_test_error "eidif.s" "" "EI/DI operands"
24
25 # pcrel range test
26
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)"
33
34 # 4 bit argument tests
35
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"
44
45 # in/out opcodes test
46
47 run_dump_test "inout"
48
49 # pcrel tests
50
51 run_dump_test "jr-forw"
52 run_dump_test "jr-back"
53 run_dump_test "djnz"
54 run_dump_test "calr"
55
56 # condition code tests
57
58 run_dump_test "jmp-cc"
59 run_dump_test "ret-cc"
60
61 # ctrl names test
62
63 run_dump_test "ctrl-names"
64
65 # labels starting with register names test
66
67 run_dump_test "reglabel"
68
69 # translate operations
70
71 run_dump_test "translate-ops"
72 }