~ubuntu-branches/ubuntu/utopic/binutils-arm64-cross/utopic

« back to all changes in this revision

Viewing changes to binutils-2.23.52.20130611/gas/testsuite/gas/z80/z80.exp

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-06-20 17:38:09 UTC
  • Revision ID: package-import@ubuntu.com-20130620173809-app8lzgvymy5fg6c
Tags: 0.7
Build-depend on binutils-source (>= 2.23.52.20130620-1~).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
# run tests for target Z80.
 
19
 
 
20
if [istarget z80-*-*] then {
 
21
# test redefinitions
 
22
    run_dump_test "redef"
 
23
# test parsing of equ definitions
 
24
    run_dump_test "equ"
 
25
# test parsing of " and '
 
26
    run_dump_test "quotes"
 
27
# test suffixes
 
28
    run_dump_test "suffix"
 
29
# test assembling and disassembling instructions involving offsets
 
30
    run_dump_test "offset"
 
31
    gas_test_error "jr-forwf.s" "" "relative jump out of range (jr)"
 
32
    gas_test_error "jr-backf.s" "" "relative jump out of range (jr)"
 
33
    gas_test_error "djnz-backf.s" "" "relative jump out of range (djnz)"
 
34
 
 
35
# test assembling instruction with offset that is a label defined later
 
36
    run_dump_test "atend"
 
37
# test for data transfer instructions
 
38
    run_dump_test "ld-group"
 
39
# test for block instructions
 
40
    run_dump_test "block"
 
41
# test for arithmetic and logic
 
42
    run_dump_test "arith"
 
43
# test for rotate and shift
 
44
    run_dump_test "rotate"
 
45
# test for bit manipulations
 
46
    run_dump_test "bit"
 
47
# test for branch instructions
 
48
    run_dump_test "branch"
 
49
# test for input and output instructions
 
50
    run_dump_test "inout"
 
51
#test for other instructions
 
52
    run_dump_test "misc"
 
53
    gas_test_error "ill_op.s" "" "Illegal operand: ld hl,(sp+0)"
 
54
}