]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.c-torture/execute/ieee/ieee.exp
* gcc.c-torture/execute/ieee/ieee.exp: Don't run ieee tests on VAX.
[thirdparty/gcc.git] / gcc / testsuite / gcc.c-torture / execute / ieee / ieee.exp
CommitLineData
921e5a0e
JL
1#
2# Expect driver script for GCC Regression Tests
e7288e18 3# Copyright (C) 1993, 1996, 2001 Free Software Foundation
921e5a0e
JL
4#
5# This file 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 2 of the License, or
8# (at your option) any later version.
9#
10# This program 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 this program; if not, write to the Free Software
17# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18#
19# Written by Jeffrey Wheat (cassidy@cygnus.com)
20#
21
22#
23# These tests come from Torbjorn Granlund's (tege@cygnus.com)
24# C torture test suite, and other contributors.
25#
26
e7288e18
JDA
27# VAX does not have hardware support for IEEE arithmetic.
28if { [istarget "vax-*-*"] } { return }
29
921e5a0e
JL
30if $tracelevel then {
31 strace $tracelevel
32}
33
15ec0729
JL
34if [target_info exists ieee_multilib_flags] {
35 set additional_flags [target_info ieee_multilib_flags];
36} else {
37 set additional_flags "";
38}
39
edddcea2
JL
40# We must use -ffloat-store to ensure that excess precision on some machines
41# does not cause problems
42lappend additional_flags "-ffloat-store"
43
921e5a0e
JL
44# load support procs
45load_lib c-torture.exp
46
47# initialize harness
15ec0729 48gcc_init
921e5a0e
JL
49
50#
51# main test loop
52#
53
54foreach src [lsort [glob -nocomplain $srcdir/$subdir/*.c]] {
55 # If we're only testing specific files and this isn't one of them, skip it.
56 if ![runtest_file_p $runtests $src] then {
57 continue
58 }
59
15ec0729 60 c-torture-execute $src $additional_flags
921e5a0e
JL
61}
62
63# All done.
64gcc_finish