OSDN Git Service

* config/i386/i386-protos.h (split_double_mode): New prototype.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.target / xstormy16 / xstormy16.exp
1 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
2 #
3 # This file is part of GCC.
4 #
5 # GCC is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3, or (at your option)
8 # any later version.
9 #
10 # GCC is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with GCC; see the file COPYING3.  If not see
17 # <http://www.gnu.org/licenses/>.
18
19 # Tests for the xstormy16
20
21 if {![istarget xstormy16-*-*]} {
22     return 0
23 }
24
25 load_lib gcc-dg.exp
26
27 # Initialize `dg'.
28 dg-init
29
30 # Assemble the below100.S file which contains
31 # support code for the rest of the tests.
32 set old-dg-do-what-default "${dg-do-what-default}"
33 set dg-do-what-default assemble
34 dg-test -keep-output "$srcdir/$subdir/below100.S" "" ""
35 set dg-do-what-default run
36
37
38 # Main loop.
39 foreach testcase [lsort [find $srcdir/$subdir *.c]] {
40     global test_counts
41
42     set base "[file rootname [file tail $testcase]]"
43
44     if ![runtest_file_p $runtests $testcase] {
45         continue
46     }
47
48     set fails_before $test_counts(FAIL,count)
49     dg-test $testcase "--save-temps -fno-inline-functions -L$srcdir/$subdir" ""
50     set fails_after $test_counts(FAIL,count)
51
52     if { $fails_before == $fails_after } {
53         catch "exec rm -f $base.i $base.s $base.o"
54     }
55 }
56
57 set dg-do-what-default "${old-dg-do-what-default}"
58
59 # All done.
60 dg-finish