Commit | Line | Data |
---|---|---|
5bf135a7 NC |
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 | ||
bd0eb99b RH |
18 | if ![is_elf_format] then { |
19 | return | |
20 | } | |
21 | ||
22 | run_list_test "lns-diag-1" "" | |
800f6ec8 | 23 | run_dump_test "lns-duplicate" |
851feff8 | 24 | |
69444d9f AM |
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... | |
c5d07591 | 28 | if { |
800f6ec8 | 29 | ![istarget i370-*-*] |
7c48b4f1 NC |
30 | && ![istarget i960-*-*] |
31 | && ![istarget mcore-*-*] | |
32 | && ![istarget or32-*-*] | |
c7927a3c | 33 | && ![istarget rx-*-*] |
c5d07591 NC |
34 | && ![istarget s390*-*-*] |
35 | } { | |
36 | # Use alternate file for targets using DW_LNS_fixed_advance_pc opcodes. | |
453dc3f0 NC |
37 | if { [istarget xtensa*-*-*] |
38 | || [istarget am3*-*-*] | |
39 | || [istarget cr16-*-*] | |
b9e10fe0 | 40 | || [istarget crx-*-*] |
13761a11 | 41 | || [istarget msp430-*-*] |
35c08157 | 42 | || [istarget nds32*-*-*] |
453dc3f0 | 43 | || [istarget mn10*-*-*] } { |
c5d07591 | 44 | run_dump_test "lns-common-1-alt" |
7ddd14de | 45 | run_dump_test "lns-big-delta" |
661ba50f BW |
46 | } elseif { [istarget ia64*-*-*] } { |
47 | run_dump_test "lns-common-1" { { source "lns-common-1-ia64.s" } } | |
c5d07591 NC |
48 | } else { |
49 | run_dump_test "lns-common-1" | |
50 | } | |
bd0eb99b | 51 | } |