]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/graphite/graphite.exp
Generate in priority signed types for integer constants.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / graphite / graphite.exp
CommitLineData
f8bf9252
SP
1# Copyright (C) 2006, 2007, 2008 Free Software Foundation, Inc.
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 GCC; see the file COPYING3. If not see
15# <http://www.gnu.org/licenses/>.
16
17# GCC testsuite that uses the `dg.exp' driver.
18
19# Load support procs.
20load_lib gcc-dg.exp
21
22if ![check_effective_target_fgraphite] {
23 return
24}
25
2ac57409
SP
26# Remove VALUE from LIST_VARIABLE.
27proc lremove {list_variable value} {
28 upvar 1 $list_variable var
29 set idx [lsearch -exact $var $value]
30 set var [lreplace $var $idx $idx]
31}
32
f8bf9252
SP
33# The default action for a test is 'compile'. Save current default.
34global dg-do-what-default
35set save-dg-do-what-default ${dg-do-what-default}
f8bf9252 36
f8bf9252
SP
37# Initialize `dg'.
38dg-init
39
2ac57409 40set wait_to_run_files [lsort [glob -nocomplain $srcdir/$subdir/*.c ] ]
64630e61
SP
41set scop_files [lsort [glob -nocomplain $srcdir/$subdir/scop-*.c ] ]
42set id_files [lsort [glob -nocomplain $srcdir/$subdir/id-*.c ] ]
43set run_id_files [lsort [glob -nocomplain $srcdir/$subdir/run-id-*.c ] ]
2ac57409 44set interchange_files [lsort [glob -nocomplain $srcdir/$subdir/interchange-*.c ] ]
64630e61 45set block_files [lsort [glob -nocomplain $srcdir/$subdir/block-*.c ] ]
2ac57409 46
64630e61
SP
47# Tests to be compiled.
48set dg-do-what-default compile
49dg-runtest $scop_files "" "-O2 -fgraphite -fdump-tree-graphite-all"
50dg-runtest $id_files "" "-O2 -fgraphite-identity -ffast-math"
2ac57409 51
64630e61 52# Tests to be run.
2ac57409 53set dg-do-what-default run
64630e61
SP
54dg-runtest $run_id_files "" "-O2 -fgraphite-identity"
55dg-runtest $interchange_files "" "-O2 -floop-interchange -fno-loop-block -fno-loop-strip-mine -ffast-math -fdump-tree-graphite-all"
56dg-runtest $block_files "" "-O2 -floop-block -fno-loop-strip-mine -fno-loop-interchange -ffast-math -fdump-tree-graphite-all"
2ac57409
SP
57
58# The default action for the rest of the files is 'compile'.
59set dg-do-what-default compile
64630e61
SP
60foreach f $scop_files {lremove wait_to_run_files $f}
61foreach f $id_files {lremove wait_to_run_files $f}
62foreach f $run_id_files {lremove wait_to_run_files $f}
63foreach f $interchange_files {lremove wait_to_run_files $f}
64foreach f $block_files {lremove wait_to_run_files $f}
65dg-runtest $wait_to_run_files "" "-ansi -pedantic-errors"
f8bf9252
SP
66
67# Clean up.
68set dg-do-what-default ${save-dg-do-what-default}
69
70# All done.
71dg-finish