]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gas/testsuite/gas/lns/lns.exp
* archures.c: Add some more MSP430 machine numbers.
[thirdparty/binutils-gdb.git] / gas / testsuite / gas / lns / lns.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 ![is_elf_format] then {
19 return
20 }
21
22 run_list_test "lns-diag-1" ""
23 run_dump_test "lns-duplicate"
24
25 # ??? Won't work on targets that don't have a bare "nop" insn.
26 # Perhaps we could arrange for an include file or something that
27 # defined a macro...
28 if {
29 ![istarget i370-*-*]
30 && ![istarget i960-*-*]
31 && ![istarget mcore-*-*]
32 && ![istarget or32-*-*]
33 && ![istarget rx-*-*]
34 && ![istarget s390*-*-*]
35 } {
36 # Use alternate file for targets using DW_LNS_fixed_advance_pc opcodes.
37 if { [istarget xtensa*-*-*]
38 || [istarget am3*-*-*]
39 || [istarget cr16-*-*]
40 || [istarget crx-*-*]
41 || [istarget msp430-*-*]
42 || [istarget mn10*-*-*] } {
43 run_dump_test "lns-common-1-alt"
44 run_dump_test "lns-big-delta"
45 } elseif { [istarget ia64*-*-*] } {
46 run_dump_test "lns-common-1" { { source "lns-common-1-ia64.s" } }
47 } else {
48 run_dump_test "lns-common-1"
49 }
50 }