* elf64-ppc.c (dec_dynrel_count): Don't error when elf_gc_sweep_symbol
[external/binutils.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 mn10*-*-*] } {
42       run_dump_test "lns-common-1-alt"
43       run_dump_test "lns-big-delta"
44     } elseif { [istarget ia64*-*-*] } {
45       run_dump_test "lns-common-1" { { source "lns-common-1-ia64.s" } }
46     } else {
47       run_dump_test "lns-common-1"
48     }
49 }