Commit | Line | Data |
---|---|---|
a657e7c1 CD |
1 | # Expect script for MIPS ELF linker tests |
2 | # Copyright 2002 Free Software Foundation, Inc. | |
3 | # | |
4 | # This file 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 2 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
17 | # | |
18 | ||
19 | if { [istarget mips*-*-*] } then { | |
20 | ||
21 | # Run embedded-pic tests only if generic ELF. | |
22 | if { [istarget mips*-*-elf] } { | |
23 | # Check basic PC-relative HI/LO relocs. | |
24 | run_dump_test "empic1-ln" | |
25 | run_dump_test "empic1-lp" | |
26 | run_dump_test "empic1-mn" | |
27 | run_dump_test "empic1-mp" | |
28 | run_dump_test "empic1-sn" | |
29 | run_dump_test "empic1-sp" | |
30 | ||
31 | # PC-relative HI/LO reloc edge-case regression tests. | |
32 | # As of 2001-12-26, the linker botches the fwd-0 and rev-1 tests. | |
33 | run_dump_test "empic2-fwd-0" | |
34 | run_dump_test "empic2-fwd-1" | |
35 | run_dump_test "empic2-rev-0" | |
36 | run_dump_test "empic2-rev-1" | |
37 | } | |
38 | } |