]>
Commit | Line | Data |
---|---|---|
cbe34bb5 | 1 | # Copyright (C) 2013-2017 Free Software Foundation, Inc. |
36536d79 BI |
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 | # Written by Balaji V. Iyer <balaji.v.iyer@intel.com> | |
18 | ||
19 | ||
20 | load_lib gcc-dg.exp | |
9dbdea6b | 21 | load_lib lto.exp |
066adee8 | 22 | load_lib cilk-plus-dg.exp |
36536d79 | 23 | |
1a15a8ca GJL |
24 | if { ![check_effective_target_cilkplus] } { |
25 | return; | |
26 | } | |
27 | ||
36536d79 | 28 | dg-init |
066adee8 TB |
29 | if [cilkplus_init] { |
30 | # Run the tests that are shared with C++. | |
31 | dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/PS/*.c]] " -ftree-vectorize -fcilkplus -std=c99" " " | |
32 | # Run the C-only tests. | |
33 | dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.c]] \ | |
34 | "-ftree-vectorize -fcilkplus -std=c99" " " | |
35 | ||
36 | dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/AN/*.c]] " -fcilkplus" " " | |
37 | dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/AN/*.c]] " -O1 -fcilkplus" " " | |
38 | dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/AN/*.c]] " -O2 -fcilkplus" " " | |
39 | dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/AN/*.c]] " -O3 -fcilkplus" " " | |
40 | dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/AN/*.c]] " -g -fcilkplus" " " | |
41 | dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/AN/*.c]] " -g -O2 -ftree-vectorize -fcilkplus" " " | |
42 | dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/AN/*.c]] " -fcilkplus -std=c99" " " | |
43 | dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/AN/*.c]] " -fcilkplus -O2 -std=c99" " " | |
44 | dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/AN/*.c]] " -fcilkplus -O3 -std=c99" " " | |
45 | dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/AN/*.c]] " -fcilkplus -g -O0 -std=c99" " " | |
46 | ||
713dedcd | 47 | if { [check_effective_target_cilkplus_runtime] } { |
066adee8 TB |
48 | dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/CK/*.c]] " -g " " " |
49 | dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/CK/*.c]] " -O1 " " " | |
50 | dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/CK/*.c]] " -O2 -std=c99 " " " | |
51 | dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/CK/*.c]] " -O2 -ftree-vectorize " " " | |
52 | dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/CK/*.c]] " -O3 -g " " " | |
53 | if { [check_effective_target_lto] } { | |
54 | dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/CK/*.c]] " -O3 -flto -g " " " | |
55 | } | |
56 | } | |
57 | ||
58 | dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/SE/*.c]] " -g" " " | |
59 | dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/SE/*.c]] " -O3 -std=c99" " " | |
60 | dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/SE/*.c]] " -O3 -g" " " | |
9dbdea6b | 61 | } |
066adee8 | 62 | cilkplus_finish |
36536d79 | 63 | dg-finish |