annotate gcc/testsuite/g++.dg/graphite/graphite.exp @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children 84e7813d76e9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 # Copyright (C) 2009-2017 Free Software Foundation, Inc.
kono
parents:
diff changeset
2
kono
parents:
diff changeset
3 # This program is free software; you can redistribute it and/or modify
kono
parents:
diff changeset
4 # it under the terms of the GNU General Public License as published by
kono
parents:
diff changeset
5 # the Free Software Foundation; either version 3 of the License, or
kono
parents:
diff changeset
6 # (at your option) any later version.
kono
parents:
diff changeset
7 #
kono
parents:
diff changeset
8 # This program is distributed in the hope that it will be useful,
kono
parents:
diff changeset
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
kono
parents:
diff changeset
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
kono
parents:
diff changeset
11 # GNU General Public License for more details.
kono
parents:
diff changeset
12 #
kono
parents:
diff changeset
13 # You should have received a copy of the GNU General Public License
kono
parents:
diff changeset
14 # along with GCC; see the file COPYING3. If not see
kono
parents:
diff changeset
15 # <http://www.gnu.org/licenses/>.
kono
parents:
diff changeset
16
kono
parents:
diff changeset
17 # GCC testsuite that uses the `dg.exp' driver.
kono
parents:
diff changeset
18
kono
parents:
diff changeset
19 # Load support procs.
kono
parents:
diff changeset
20 load_lib g++-dg.exp
kono
parents:
diff changeset
21
kono
parents:
diff changeset
22 if ![check_effective_target_fgraphite] {
kono
parents:
diff changeset
23 return
kono
parents:
diff changeset
24 }
kono
parents:
diff changeset
25
kono
parents:
diff changeset
26 # Remove VALUE from LIST_VARIABLE.
kono
parents:
diff changeset
27 proc lremove {list_variable value} {
kono
parents:
diff changeset
28 upvar 1 $list_variable var
kono
parents:
diff changeset
29 set idx [lsearch -exact $var $value]
kono
parents:
diff changeset
30 set var [lreplace $var $idx $idx]
kono
parents:
diff changeset
31 }
kono
parents:
diff changeset
32
kono
parents:
diff changeset
33 # The default action for a test is 'compile'. Save current default.
kono
parents:
diff changeset
34 global dg-do-what-default
kono
parents:
diff changeset
35 set save-dg-do-what-default ${dg-do-what-default}
kono
parents:
diff changeset
36
kono
parents:
diff changeset
37 # Initialize `dg'.
kono
parents:
diff changeset
38 dg-init
kono
parents:
diff changeset
39
kono
parents:
diff changeset
40 set wait_to_run_files [lsort [glob -nocomplain $srcdir/$subdir/*.C ] ]
kono
parents:
diff changeset
41 set scop_files [lsort [glob -nocomplain $srcdir/$subdir/scop-*.C ] ]
kono
parents:
diff changeset
42 set id_files [lsort [glob -nocomplain $srcdir/$subdir/id-*.C ] ]
kono
parents:
diff changeset
43 set run_id_files [lsort [glob -nocomplain $srcdir/$subdir/run-id-*.C ] ]
kono
parents:
diff changeset
44 set opt_files [lsort [glob -nocomplain $srcdir/$subdir/interchange-*.C \
kono
parents:
diff changeset
45 $srcdir/$subdir/block-*.C ] ]
kono
parents:
diff changeset
46
kono
parents:
diff changeset
47 # Tests to be compiled.
kono
parents:
diff changeset
48 set dg-do-what-default compile
kono
parents:
diff changeset
49 g++-dg-runtest $scop_files "" "-O2 -fgraphite -fdump-tree-graphite-all"
kono
parents:
diff changeset
50 g++-dg-runtest $id_files "" "-O2 -fgraphite-identity -ffast-math"
kono
parents:
diff changeset
51
kono
parents:
diff changeset
52 # Tests to be run.
kono
parents:
diff changeset
53 set dg-do-what-default run
kono
parents:
diff changeset
54 g++-dg-runtest $run_id_files "" "-O2 -fgraphite-identity"
kono
parents:
diff changeset
55 g++-dg-runtest $opt_files "" "-O2 -floop-nest-optimize -ffast-math -fdump-tree-graphite-all"
kono
parents:
diff changeset
56
kono
parents:
diff changeset
57 # The default action for the rest of the files is 'compile'.
kono
parents:
diff changeset
58 set dg-do-what-default compile
kono
parents:
diff changeset
59 foreach f $scop_files {lremove wait_to_run_files $f}
kono
parents:
diff changeset
60 foreach f $id_files {lremove wait_to_run_files $f}
kono
parents:
diff changeset
61 foreach f $run_id_files {lremove wait_to_run_files $f}
kono
parents:
diff changeset
62 foreach f $opt_files {lremove wait_to_run_files $f}
kono
parents:
diff changeset
63 g++-dg-runtest $wait_to_run_files "" "-pedantic-errors"
kono
parents:
diff changeset
64
kono
parents:
diff changeset
65 # Clean up.
kono
parents:
diff changeset
66 set dg-do-what-default ${save-dg-do-what-default}
kono
parents:
diff changeset
67
kono
parents:
diff changeset
68 # All done.
kono
parents:
diff changeset
69 dg-finish