5224f079177abbfa65863aafc123743a7ef24eec
[deliverable/binutils-gdb.git] / gas / testsuite / gas / lns / lns.exp
1 # Copyright (C) 2012-2017 Free Software Foundation, Inc.
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.
16
17 if ![is_elf_format] then {
18 return
19 }
20
21 run_list_test "lns-diag-1" ""
22 run_dump_test "lns-duplicate"
23
24 # ??? Won't work on targets that don't have a bare "nop" insn.
25 # Perhaps we could arrange for an include file or something that
26 # defined a macro...
27 if {
28 ![istarget i370-*-*]
29 && ![istarget i960-*-*]
30 && ![istarget s390*-*-*]
31 } {
32 # Use alternate file for targets using DW_LNS_fixed_advance_pc opcodes.
33 if { [istarget am3*-*-*]
34 || [istarget avr*-*-*]
35 || [istarget cr16-*-*]
36 || [istarget crx-*-*]
37 || [istarget ft32*-*]
38 || [istarget mn10*-*-*]
39 || [istarget msp430-*-*]
40 || [istarget nds32*-*-*]
41 || [istarget pru-*-*]
42 || [istarget riscv*-*-*]
43 || [istarget rl78-*-*]
44 || [istarget xtensa*-*-*] } {
45 run_dump_test "lns-common-1-alt"
46 run_dump_test "lns-big-delta"
47 } elseif { [istarget ia64*-*-*] } {
48 run_dump_test "lns-common-1" { { source "lns-common-1-ia64.s" } }
49 } elseif { [istarget or1k*-*-*] } {
50 run_dump_test "lns-common-1" { { source "lns-common-1-or1k.s" } }
51 } else {
52 run_dump_test "lns-common-1"
53 }
54 }
This page took 0.032229 seconds and 3 git commands to generate.