Add support for the Infineon XC16X.
[deliverable/binutils-gdb.git] / ld / testsuite / ld-xc16x / xc16x.exp
CommitLineData
d70c5fc7
NC
1# Expect script for ld-xstormy16 tests
2# Copyright (C) 2003 Free Software Foundation
3#
4# This file 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 2 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17#
18
19# Test xc16x linking of pc-relative relocs. This tests the assembler and
20# tools like objdump as well as the linker.
21
22if {!([istarget "xc16x*-*-*"]) } {
23 return
24}
25
26# Set up a list as described in ld-lib.exp
27
28set xc16x_tests {
29 {
30 "xc16x pc-relative relocs linker test"
31 ""
32 ""
33 { "pcreloc.s" }
34 { {objdump -Dz pcreloc.d} }
35 "pcreloc"
36 }
37}
38
39set xc16xabs_tests {
40 {
41 "xc16x absolute relative address linker test"
42 ""
43 ""
44 { "absrel.s" }
45 { {objdump -Dz absrel.d} }
46 "absrel"
47 }
48}
49
50set xc16xoffset_tests {
51 {
52 "xc16x offset linker test"
53 ""
54 ""
55 { "offset.s" }
56 { {objdump -Dz offset.d} }
57 "offset"
58 }
59}
60
61 run_ld_link_tests $xc16x_tests
62 run_ld_link_tests $xc16xabs_tests
63 run_ld_link_tests $xc16xoffset_tests
64
65
This page took 0.054259 seconds and 4 git commands to generate.