Commit | Line | Data |
---|---|---|
219d1afa | 1 | # Copyright (C) 2013-2018 Free Software Foundation, Inc. |
5417f71e MR |
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, | |
16 | # MA 02110-1301, USA. | |
17 | ||
dd47d677 | 18 | if {![istarget mips*-*-*] || ![is_elf_format]} { |
5417f71e MR |
19 | return |
20 | } | |
21 | ||
40e5240e MR |
22 | if [is_remote host] { |
23 | set tempfile [remote_download host tmpdir/bintest.o] | |
24 | set copyfile copy | |
25 | } else { | |
26 | set tempfile tmpdir/bintest.o | |
27 | set copyfile tmpdir/copy | |
28 | } | |
29 | ||
e5713223 MR |
30 | set has_newabi [expr [istarget *-*-irix6*] \ |
31 | || [istarget mips*-*-linux*] \ | |
32 | || [istarget mips*-sde-elf*] \ | |
33 | || [istarget mips*-mti-elf*] \ | |
34 | || [istarget mips*-img-elf*]] | |
35 | ||
dd47d677 MR |
36 | run_dump_test "mips-ase-1" |
37 | run_dump_test "mips-ase-2" | |
38 | run_dump_test "mips-ase-3" | |
9785fc2a MR |
39 | run_dump_test "mips-xpa-virt-1" |
40 | run_dump_test "mips-xpa-virt-2" | |
41 | run_dump_test "mips-xpa-virt-3" | |
42 | run_dump_test "mips-xpa-virt-4" | |
dd47d677 MR |
43 | run_dump_test "mixed-mips16" |
44 | run_dump_test "mixed-micromips" | |
45 | run_dump_test "mixed-mips16-micromips" | |
46 | run_dump_test "mips16-undecoded" | |
47 | run_dump_test "mips16e2-undecoded" | |
48 | run_dump_test "mips16-pcrel" | |
49 | run_dump_test "mips16-extend-noinsn" | |
50 | run_dump_test "mips16-extend-insn" | |
51 | run_dump_test "mips16e2-extend-insn" | |
52 | run_dump_test "mips16-alias" | |
53 | run_dump_test "mips16-noalias" | |
e5713223 MR |
54 | |
55 | run_dump_test "mips-note-2" | |
56 | run_dump_test "mips-note-2r" | |
57 | if $has_newabi { | |
58 | run_dump_test "mips-note-2-n32" | |
59 | run_dump_test "mips-note-2-n64" | |
60 | run_dump_test "mips-note-2r-n32" | |
61 | run_dump_test "mips-note-2r-n64" | |
62 | } | |
2d6dda71 MR |
63 | |
64 | run_dump_test "mips-reginfo" | |
65 | if $has_newabi { | |
66 | run_dump_test "mips-reginfo-n32" | |
67 | } |