summaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog173
-rw-r--r--gcc/testsuite/c-c++-common/attr-simd-3.c5
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/an-if.c51
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/array_test1.c84
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/array_test2.c128
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/array_test_ND.c102
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/builtin_fn_custom.c70
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/builtin_fn_mutating.c70
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/builtin_func_double.c124
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/builtin_func_double2.c77
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/comma_exp.c55
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/conditional.c44
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/decl-ptr-colon.c19
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/dimensionless-arrays.c10
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/exec-once.c44
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/exec-once2.c87
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/fn_ptr-2.c14
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/fn_ptr.c21
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/fp_triplet_values.c28
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/gather-scatter-errors.c19
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/gather_scatter.c60
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/if_test.c306
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/if_test_errors.c56
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/misc.c112
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/n-ptr-test.c48
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/parser_errors.c11
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/parser_errors2.c13
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/parser_errors3.c13
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/parser_errors4.c11
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/pr57457-2.c15
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/pr57457.c39
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/pr57490.c28
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/pr57541-2.c15
-rwxr-xr-xgcc/testsuite/c-c++-common/cilk-plus/AN/pr57541.c21
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/pr57577.c12
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/pr58942.c8
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/pr61191.c11
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/pr61455-2.c13
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/pr61455.c9
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/pr61962.c14
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/pr61963.c9
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/pr62008.c10
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/pr63884.c10
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/rank_mismatch.c18
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/rank_mismatch2.c27
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/rank_mismatch3.c19
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/sec_implicit.c11
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/sec_implicit2.c11
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/sec_implicit_ex.c29
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/sec_reduce_ind_same_value.c21
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/sec_reduce_max_min_ind.c17
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/sec_reduce_return.c29
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/side-effects-1.c26
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/test_builtin_return.c73
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/test_sec_limits.c18
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/tst_lngth.c19
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/AN/vla.c20
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/CK/Wparentheses-1.c69
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/CK/cilk-for-2.c393
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/CK/cilk-for-3.c19
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/CK/cilk-fors.c87
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/CK/cilk_for_errors.c53
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/CK/cilk_for_grain.c35
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/CK/cilk_for_grain_errors.c48
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/CK/cilk_for_ptr_iter.c35
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/CK/compound_cilk_spawn.c26
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/CK/concec_cilk_spawn.c20
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/CK/errors.c56
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/CK/fib.c54
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/CK/fib_init_expr_xy.c68
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/CK/fib_no_return.c73
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/CK/fib_no_sync.c67
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/CK/invalid_spawns.c14
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/CK/invalid_sync.cc9
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/CK/nested_cilk_for.c79
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/CK/no_args_error.c11
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/CK/pr59631.c15
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/CK/pr60197-2.c35
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/CK/pr60197.c66
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/CK/pr60469.c18
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/CK/pr60586.c28
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/CK/pr63307.c4
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/CK/pr69826-1.c25
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/CK/pr69826-2.c6
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/CK/pr79428-4.c3
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/CK/pr79428-7.c3
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/CK/spawn_in_return.c8
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/CK/spawnee_inline.c80
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/CK/spawner_inline.c67
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/CK/spawning_arg.c52
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/CK/steal_check.c54
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/CK/sync_wo_spawn.c9
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/CK/test__cilk.c10
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/CK/varargs_test.c47
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/PS/Wparentheses-1.c41
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/PS/body.c34
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/PS/clauses1.c80
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/PS/clauses2.c17
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/PS/clauses3.c39
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/PS/clauses4.c36
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/PS/for1.c132
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/PS/for2.c8
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/PS/for3.c14
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/PS/pr69363.c13
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/PS/reduction-1.c38
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/PS/reduction-2.c36
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/PS/reduction-3.c41
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/PS/run-1.c28
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/PS/safelen.c13
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/PS/vectorlength-2.c12
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/PS/vectorlength-3.c13
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/PS/vectorlength.c21
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/SE/ef_error.c32
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/SE/ef_error2.c15
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/SE/ef_error3.c13
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/SE/ef_test.c78
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/SE/ef_test2.c16
-rw-r--r--gcc/testsuite/c-c++-common/cilk-plus/SE/vlength_errors.c59
-rw-r--r--gcc/testsuite/g++.dg/cilk-plus/AN/array_function.cc8
-rw-r--r--gcc/testsuite/g++.dg/cilk-plus/AN/array_test1_tplt.cc118
-rw-r--r--gcc/testsuite/g++.dg/cilk-plus/AN/array_test2_tplt.cc141
-rw-r--r--gcc/testsuite/g++.dg/cilk-plus/AN/array_test_ND_tplt.cc115
-rw-r--r--gcc/testsuite/g++.dg/cilk-plus/AN/braced_list.cc13
-rw-r--r--gcc/testsuite/g++.dg/cilk-plus/AN/builtin_fn_custom_tplt.cc126
-rw-r--r--gcc/testsuite/g++.dg/cilk-plus/AN/builtin_fn_mutating_tplt.cc136
-rw-r--r--gcc/testsuite/g++.dg/cilk-plus/AN/fp_triplet_values_tplt.c36
-rw-r--r--gcc/testsuite/g++.dg/cilk-plus/AN/postincr_test.cc107
-rw-r--r--gcc/testsuite/g++.dg/cilk-plus/AN/preincr_test.cc106
-rw-r--r--gcc/testsuite/g++.dg/cilk-plus/CK/catch_exc.cc81
-rw-r--r--gcc/testsuite/g++.dg/cilk-plus/CK/cf3.cc96
-rw-r--r--gcc/testsuite/g++.dg/cilk-plus/CK/cilk-for-tplt.cc25
-rw-r--r--gcc/testsuite/g++.dg/cilk-plus/CK/const_spawn.cc78
-rw-r--r--gcc/testsuite/g++.dg/cilk-plus/CK/fib-opr-overload.cc94
-rw-r--r--gcc/testsuite/g++.dg/cilk-plus/CK/fib-tplt.cc53
-rw-r--r--gcc/testsuite/g++.dg/cilk-plus/CK/for1.cc376
-rw-r--r--gcc/testsuite/g++.dg/cilk-plus/CK/lambda_spawns.cc238
-rw-r--r--gcc/testsuite/g++.dg/cilk-plus/CK/lambda_spawns_tplt.cc174
-rw-r--r--gcc/testsuite/g++.dg/cilk-plus/CK/pr60586.cc89
-rw-r--r--gcc/testsuite/g++.dg/cilk-plus/CK/pr66326.cc32
-rw-r--r--gcc/testsuite/g++.dg/cilk-plus/CK/pr68001.cc18
-rw-r--r--gcc/testsuite/g++.dg/cilk-plus/CK/pr68997.cc68
-rw-r--r--gcc/testsuite/g++.dg/cilk-plus/CK/pr69024.cc38
-rw-r--r--gcc/testsuite/g++.dg/cilk-plus/CK/pr69048.cc14
-rw-r--r--gcc/testsuite/g++.dg/cilk-plus/CK/pr69267.cc10
-rw-r--r--gcc/testsuite/g++.dg/cilk-plus/CK/pr80038.cc47
-rw-r--r--gcc/testsuite/g++.dg/cilk-plus/CK/stl_iter.cc50
-rw-r--r--gcc/testsuite/g++.dg/cilk-plus/CK/stl_rev_iter.cc68
-rw-r--r--gcc/testsuite/g++.dg/cilk-plus/CK/stl_test.cc50
-rw-r--r--gcc/testsuite/g++.dg/cilk-plus/cilk-plus.exp71
-rw-r--r--gcc/testsuite/g++.dg/cilk-plus/ef_test.C37
-rw-r--r--gcc/testsuite/g++.dg/cilk-plus/for.C26
-rw-r--r--gcc/testsuite/g++.dg/cilk-plus/for2.C43
-rw-r--r--gcc/testsuite/g++.dg/cilk-plus/for3.C18
-rw-r--r--gcc/testsuite/g++.dg/cilk-plus/for4.C22
-rw-r--r--gcc/testsuite/g++.dg/cilk-plus/pr60967.C9
-rw-r--r--gcc/testsuite/g++.dg/cilk-plus/pr69028.C13
-rw-r--r--gcc/testsuite/g++.dg/cilk-plus/pr70565.C9
-rw-r--r--gcc/testsuite/g++.dg/pr57662.C3
-rw-r--r--gcc/testsuite/gcc.dg/cilk-plus/cilk-plus.exp63
-rw-r--r--gcc/testsuite/gcc.dg/cilk-plus/for1.c12
-rw-r--r--gcc/testsuite/gcc.dg/cilk-plus/for2.c11
-rw-r--r--gcc/testsuite/gcc.dg/cilk-plus/jump-openmp.c49
-rw-r--r--gcc/testsuite/gcc.dg/cilk-plus/jump.c27
-rw-r--r--gcc/testsuite/gcc.dg/cilk-plus/pr69798-1.c73
-rw-r--r--gcc/testsuite/gcc.dg/cilk-plus/pr69798-2.c72
-rw-r--r--gcc/testsuite/gcc.dg/cilk-plus/pr78306.c30
-rw-r--r--gcc/testsuite/gcc.dg/cilk-plus/pr79116.c9
-rw-r--r--gcc/testsuite/gcc.dg/graphite/id-28.c73
-rw-r--r--gcc/testsuite/lib/cilk-plus-dg.exp105
-rw-r--r--gcc/testsuite/lib/target-supports.exp37
170 files changed, 174 insertions, 8225 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 6f3b47585d5..95bcafeb781 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,176 @@
+2017-11-28 Julia Koval <julia.koval@intel.com>
+ Sebastian Peryt <sebastian.peryt@intel.com>
+
+ * c-c++-common/attr-simd-3.c: Delete.
+ * c-c++-common/cilk-plus/AN/an-if.c: Delete.
+ * c-c++-common/cilk-plus/AN/array_test1.c: Delete.
+ * c-c++-common/cilk-plus/AN/array_test2.c: Delete.
+ * c-c++-common/cilk-plus/AN/array_test_ND.c: Delete.
+ * c-c++-common/cilk-plus/AN/builtin_fn_custom.c: Delete.
+ * c-c++-common/cilk-plus/AN/builtin_fn_mutating.c: Delete.
+ * c-c++-common/cilk-plus/AN/builtin_func_double.c: Delete.
+ * c-c++-common/cilk-plus/AN/builtin_func_double2.c: Delete.
+ * c-c++-common/cilk-plus/AN/comma_exp.c: Delete.
+ * c-c++-common/cilk-plus/AN/conditional.c: Delete.
+ * c-c++-common/cilk-plus/AN/decl-ptr-colon.c: Delete.
+ * c-c++-common/cilk-plus/AN/dimensionless-arrays.c: Delete.
+ * c-c++-common/cilk-plus/AN/exec-once.c: Delete.
+ * c-c++-common/cilk-plus/AN/exec-once2.c: Delete.
+ * c-c++-common/cilk-plus/AN/fn_ptr-2.c: Delete.
+ * c-c++-common/cilk-plus/AN/fn_ptr.c: Delete.
+ * c-c++-common/cilk-plus/AN/fp_triplet_values.c: Delete.
+ * c-c++-common/cilk-plus/AN/gather-scatter-errors.c: Delete.
+ * c-c++-common/cilk-plus/AN/gather_scatter.c: Delete.
+ * c-c++-common/cilk-plus/AN/if_test.c: Delete.
+ * c-c++-common/cilk-plus/AN/if_test_errors.c: Delete.
+ * c-c++-common/cilk-plus/AN/misc.c: Delete.
+ * c-c++-common/cilk-plus/AN/n-ptr-test.c: Delete.
+ * c-c++-common/cilk-plus/AN/parser_errors.c: Delete.
+ * c-c++-common/cilk-plus/AN/parser_errors2.c: Delete.
+ * c-c++-common/cilk-plus/AN/parser_errors3.c: Delete.
+ * c-c++-common/cilk-plus/AN/parser_errors4.c: Delete.
+ * c-c++-common/cilk-plus/AN/pr57457-2.c: Delete.
+ * c-c++-common/cilk-plus/AN/pr57457.c: Delete.
+ * c-c++-common/cilk-plus/AN/pr57490.c: Delete.
+ * c-c++-common/cilk-plus/AN/pr57541-2.c: Delete.
+ * c-c++-common/cilk-plus/AN/pr57541.c: Delete.
+ * c-c++-common/cilk-plus/AN/pr57577.c: Delete.
+ * c-c++-common/cilk-plus/AN/pr58942.c: Delete.
+ * c-c++-common/cilk-plus/AN/pr61191.c: Delete.
+ * c-c++-common/cilk-plus/AN/pr61455-2.c: Delete.
+ * c-c++-common/cilk-plus/AN/pr61455.c: Delete.
+ * c-c++-common/cilk-plus/AN/pr61962.c: Delete.
+ * c-c++-common/cilk-plus/AN/pr61963.c: Delete.
+ * c-c++-common/cilk-plus/AN/pr62008.c: Delete.
+ * c-c++-common/cilk-plus/AN/pr63884.c: Delete.
+ * c-c++-common/cilk-plus/AN/rank_mismatch.c: Delete.
+ * c-c++-common/cilk-plus/AN/rank_mismatch2.c: Delete.
+ * c-c++-common/cilk-plus/AN/rank_mismatch3.c: Delete.
+ * c-c++-common/cilk-plus/AN/sec_implicit.c: Delete.
+ * c-c++-common/cilk-plus/AN/sec_implicit2.c: Delete.
+ * c-c++-common/cilk-plus/AN/sec_implicit_ex.c: Delete.
+ * c-c++-common/cilk-plus/AN/sec_reduce_ind_same_value.c: Delete.
+ * c-c++-common/cilk-plus/AN/sec_reduce_max_min_ind.c: Delete.
+ * c-c++-common/cilk-plus/AN/sec_reduce_return.c: Delete.
+ * c-c++-common/cilk-plus/AN/side-effects-1.c: Delete.
+ * c-c++-common/cilk-plus/AN/test_builtin_return.c: Delete.
+ * c-c++-common/cilk-plus/AN/test_sec_limits.c: Delete.
+ * c-c++-common/cilk-plus/AN/tst_lngth.c: Delete.
+ * c-c++-common/cilk-plus/AN/vla.c: Delete.
+ * c-c++-common/cilk-plus/CK/Wparentheses-1.c: Delete.
+ * c-c++-common/cilk-plus/CK/cilk-for-2.c: Delete.
+ * c-c++-common/cilk-plus/CK/cilk-for-3.c: Delete.
+ * c-c++-common/cilk-plus/CK/cilk-fors.c: Delete.
+ * c-c++-common/cilk-plus/CK/cilk_for_errors.c: Delete.
+ * c-c++-common/cilk-plus/CK/cilk_for_grain.c: Delete.
+ * c-c++-common/cilk-plus/CK/cilk_for_grain_errors.c: Delete.
+ * c-c++-common/cilk-plus/CK/cilk_for_ptr_iter.c: Delete.
+ * c-c++-common/cilk-plus/CK/compound_cilk_spawn.c: Delete.
+ * c-c++-common/cilk-plus/CK/concec_cilk_spawn.c: Delete.
+ * c-c++-common/cilk-plus/CK/errors.c: Delete.
+ * c-c++-common/cilk-plus/CK/fib.c: Delete.
+ * c-c++-common/cilk-plus/CK/fib_init_expr_xy.c: Delete.
+ * c-c++-common/cilk-plus/CK/fib_no_return.c: Delete.
+ * c-c++-common/cilk-plus/CK/fib_no_sync.c: Delete.
+ * c-c++-common/cilk-plus/CK/invalid_spawns.c: Delete.
+ * c-c++-common/cilk-plus/CK/invalid_sync.c: Delete.c
+ * c-c++-common/cilk-plus/CK/nested_cilk_for.c: Delete.
+ * c-c++-common/cilk-plus/CK/no_args_error.c: Delete.
+ * c-c++-common/cilk-plus/CK/pr59631.c: Delete.
+ * c-c++-common/cilk-plus/CK/pr60197-2.c: Delete.
+ * c-c++-common/cilk-plus/CK/pr60197.c: Delete.
+ * c-c++-common/cilk-plus/CK/pr60469.c: Delete.
+ * c-c++-common/cilk-plus/CK/pr60586.c: Delete.
+ * c-c++-common/cilk-plus/CK/pr63307.c: Delete.
+ * c-c++-common/cilk-plus/CK/pr69826-1.c: Delete.
+ * c-c++-common/cilk-plus/CK/pr69826-2.c: Delete.
+ * c-c++-common/cilk-plus/CK/pr79428-4.c: Delete.
+ * c-c++-common/cilk-plus/CK/pr79428-7.c: Delete.
+ * c-c++-common/cilk-plus/CK/spawn_in_return.c: Delete.
+ * c-c++-common/cilk-plus/CK/spawnee_inline.c: Delete.
+ * c-c++-common/cilk-plus/CK/spawner_inline.c: Delete.
+ * c-c++-common/cilk-plus/CK/spawning_arg.c: Delete.
+ * c-c++-common/cilk-plus/CK/steal_check.c: Delete.
+ * c-c++-common/cilk-plus/CK/sync_wo_spawn.c: Delete.
+ * c-c++-common/cilk-plus/CK/test__cilk.c: Delete.
+ * c-c++-common/cilk-plus/CK/varargs_test.c: Delete.
+ * c-c++-common/cilk-plus/PS/Wparentheses-1.c: Delete.
+ * c-c++-common/cilk-plus/PS/body.c: Delete.
+ * c-c++-common/cilk-plus/PS/clauses1.c: Delete.
+ * c-c++-common/cilk-plus/PS/clauses2.c: Delete.
+ * c-c++-common/cilk-plus/PS/clauses3.c: Delete.
+ * c-c++-common/cilk-plus/PS/clauses4.c: Delete.
+ * c-c++-common/cilk-plus/PS/for1.c: Delete.
+ * c-c++-common/cilk-plus/PS/for2.c: Delete.
+ * c-c++-common/cilk-plus/PS/for3.c: Delete.
+ * c-c++-common/cilk-plus/PS/pr69363.c: Delete.
+ * c-c++-common/cilk-plus/PS/reduction-1.c: Delete.
+ * c-c++-common/cilk-plus/PS/reduction-2.c: Delete.
+ * c-c++-common/cilk-plus/PS/reduction-3.c: Delete.
+ * c-c++-common/cilk-plus/PS/run-1.c: Delete.
+ * c-c++-common/cilk-plus/PS/safelen.c: Delete.
+ * c-c++-common/cilk-plus/PS/vectorlength-2.c: Delete.
+ * c-c++-common/cilk-plus/PS/vectorlength-3.c: Delete.
+ * c-c++-common/cilk-plus/PS/vectorlength.c: Delete.
+ * c-c++-common/cilk-plus/SE/ef_error.c: Delete.
+ * c-c++-common/cilk-plus/SE/ef_error2.c: Delete.
+ * c-c++-common/cilk-plus/SE/ef_error3.c: Delete.
+ * c-c++-common/cilk-plus/SE/ef_test.c: Delete.
+ * c-c++-common/cilk-plus/SE/ef_test2.c: Delete.
+ * c-c++-common/cilk-plus/SE/vlength_errors.c: Delete.
+ * g++.dg/cilk-plus/AN/array_function.c: Delete.
+ * g++.dg/cilk-plus/AN/array_test1_tplt.c: Delete.
+ * g++.dg/cilk-plus/AN/array_test2_tplt.c: Delete.
+ * g++.dg/cilk-plus/AN/array_test_ND_tplt.c: Delete.
+ * g++.dg/cilk-plus/AN/braced_list.c: Delete.
+ * g++.dg/cilk-plus/AN/builtin_fn_custom_tplt.c: Delete.
+ * g++.dg/cilk-plus/AN/builtin_fn_mutating_tplt.c: Delete.
+ * g++.dg/cilk-plus/AN/fp_triplet_values_tplt.c: Delete.
+ * g++.dg/cilk-plus/AN/postincr_test.c: Delete.
+ * g++.dg/cilk-plus/AN/preincr_test.c: Delete.
+ * g++.dg/cilk-plus/CK/catch_exc.c: Delete.
+ * g++.dg/cilk-plus/CK/cf3.c: Delete.
+ * g++.dg/cilk-plus/CK/cilk-for-tplt.c: Delete.
+ * g++.dg/cilk-plus/CK/const_spawn.c: Delete.
+ * g++.dg/cilk-plus/CK/fib-opr-overload.c: Delete.
+ * g++.dg/cilk-plus/CK/fib-tplt.c: Delete.
+ * g++.dg/cilk-plus/CK/for1.c: Delete.
+ * g++.dg/cilk-plus/CK/lambda_spawns.c: Delete.
+ * g++.dg/cilk-plus/CK/lambda_spawns_tplt.c: Delete.
+ * g++.dg/cilk-plus/CK/pr60586.c: Delete.
+ * g++.dg/cilk-plus/CK/pr66326.c: Delete.
+ * g++.dg/cilk-plus/CK/pr68001.c: Delete.
+ * g++.dg/cilk-plus/CK/pr68997.c: Delete.
+ * g++.dg/cilk-plus/CK/pr69024.c: Delete.
+ * g++.dg/cilk-plus/CK/pr69048.c: Delete.
+ * g++.dg/cilk-plus/CK/pr69267.c: Delete.
+ * g++.dg/cilk-plus/CK/pr80038.c: Delete.
+ * g++.dg/cilk-plus/CK/stl_iter.c: Delete.
+ * g++.dg/cilk-plus/CK/stl_rev_iter.c: Delete.
+ * g++.dg/cilk-plus/CK/stl_test.c: Delete.
+ * g++.dg/cilk-plus/cilk-plus.exp
+ * g++.dg/cilk-plus/ef_test.C: Delete.
+ * g++.dg/cilk-plus/for.C: Delete.
+ * g++.dg/cilk-plus/for2.C: Delete.
+ * g++.dg/cilk-plus/for3.C: Delete.
+ * g++.dg/cilk-plus/for4.C: Delete.
+ * g++.dg/cilk-plus/pr60967.C: Delete.
+ * g++.dg/cilk-plus/pr69028.C: Delete.
+ * g++.dg/cilk-plus/pr70565.C: Delete.
+ * g++.dg/pr57662.C: Delete.
+ * gcc.dg/cilk-plus/cilk-plus.exp
+ * gcc.dg/cilk-plus/for1.c: Delete.
+ * gcc.dg/cilk-plus/for2.c: Delete.
+ * gcc.dg/cilk-plus/jump-openmp.c: Delete.
+ * gcc.dg/cilk-plus/jump.c: Delete.
+ * gcc.dg/cilk-plus/pr69798-1.c: Delete.
+ * gcc.dg/cilk-plus/pr69798-2.c: Delete.
+ * gcc.dg/cilk-plus/pr78306.c: Delete.
+ * gcc.dg/cilk-plus/pr79116.c: Delete.
+ * gcc.dg/graphite/id-28.c: Delete.
+ * lib/cilk-plus-dg.exp: Delete.
+ * lib/target-supports.exp (cilkplus_runtime): Delete.
+
2017-11-28 Jakub Jelinek <jakub@redhat.com>
PR rtl-optimization/81020
diff --git a/gcc/testsuite/c-c++-common/attr-simd-3.c b/gcc/testsuite/c-c++-common/attr-simd-3.c
deleted file mode 100644
index 56552bd7e08..00000000000
--- a/gcc/testsuite/c-c++-common/attr-simd-3.c
+++ /dev/null
@@ -1,5 +0,0 @@
-/* { dg-do compile { target cilkplus } } */
-/* { dg-options "-fcilkplus" } */
-/* { dg-prune-output "undeclared here \\(not in a function\\)|\[^\n\r\]* was not declared in this scope" } */
-
-void f () __attribute__((__simd__, __vector__)); /* { dg-error "in the same function marked as a Cilk Plus" "PR68158" } */
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/an-if.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/an-if.c
deleted file mode 100644
index 4ac46abc404..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/an-if.c
+++ /dev/null
@@ -1,51 +0,0 @@
-/* { dg-do run } */
-/* { dg-options "-fcilkplus -fdump-tree-original" } */
-
-#if HAVE_IO
-#include <stdio.h>
-#endif
-#include <assert.h>
-
-const int n = 8;
-
-float x[8], y[8], z[8];
-
-int main() {
- int i = 0;
- float x_sum =0;
- for(i=1; i<=5; i+=4 ) {
- x[0:n] = 3;
- y[0:n] = i;
- z[0:n] = 0;
-#if HAVE_IO
- printf("x\ty\tz\n");
- for( size_t k=0; k<n; ++k ) {
- printf("%g\t%g\t%g\n",x[k],y[k],z[k]);
- }
- x_sum = __sec_reduce_add (x[0:n]);
- printf("sec_reduce_add (x[0:n]) = %6.3f\n", x_sum);
-#endif
- assert( __sec_reduce_add(x[0:n])==3*n );
- assert( __sec_reduce_add(y[0:n])==i*n );
- assert( __sec_reduce_add(z[0:n])==0 );
-
- if (x[0:n] >= y[0:n]) {
- z[0:n] = x[0:n] - y[0:n];
- } else {
- z[0:n] = x[0:n] + y[0:n];
- }
-#if HAVE_IO
- printf("x\ty\tz\n");
- for( size_t k=0; k<n; ++k ) {
- printf("%g\t%g\t%g\n",x[k],y[k],z[k]);
- }
-#endif
- assert( __sec_reduce_add(x[0:n])==3*n );
- assert( __sec_reduce_add(y[0:n])==i*n );
- assert( __sec_reduce_add(z[0:n])==(3>=i?3-i:3+i)*n );
- }
- return 0;
-}
-
-/* The C++ FE once emitted a bogus error_mark_node for this test case. */
-/* { dg-final { scan-tree-dump-not "<<< error >>>" "original" } } */
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/array_test1.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/array_test1.c
deleted file mode 100644
index 282a55d6fc6..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/array_test1.c
+++ /dev/null
@@ -1,84 +0,0 @@
-/* { dg-do run } */
-/* { dg-options "-fcilkplus" } */
-
-#include <stdlib.h>
-
-int main2 (char **argv);
-
-int main(void)
-{
- int x = 0;
- const char *array[] = {"a.out", "5"};
- x = main2 ((char **)array);
- return x;
-}
-
-int main2 (char **argv)
-{
- int array[10], ii = 0, x = 2, z= 0 , y = 0 ;
- for (ii = 0; ii < 10; ii++)
- array[ii] = 10;
-
- array[0:10:1] = 15;
-
- for (ii = 0; ii < 10; ii++)
- if (array[ii] != 15)
- return 5;
- array[0:5:2] = 20;
-
- for (ii = 0; ii < 10; ii += 2)
- if (array[ii] != 20)
- return 4;
-
-
- x = atoi(argv[1]);
- z = (10-atoi(argv[1]))/atoi(argv[1]);
-
- array[x:5:z] = 50;
-
- for (ii = x; ii < 10; ii += z)
- if (array[ii] != 50)
- return 3;
-
- x = atoi(argv[1]);
- z = (10-atoi(argv[1]))/atoi(argv[1]);
- y = 10-atoi(argv[1]);
-
- array[x:y:z] = 505;
- for (ii = x; ii < 10; ii += z)
- if (array[ii] != 505)
- return 4;
-
- x = atoi(argv[1]);
- z = (10-atoi(argv[1]))/atoi(argv[1]);
- y = 10-atoi(argv[1]);
-
- array[x:y:((10-atoi(argv[1]))/atoi(argv[1]))] = 25;
-
- for (ii = x; ii < 10; ii += z)
- if (array[ii] != 25)
- return 5;
- x = atoi(argv[1]);
- z = (10-atoi(argv[1]))/atoi(argv[1]);
- y = 10-atoi(argv[1]);
-
- array[atoi(argv[1]):(10-atoi(argv[1])):((10-atoi(argv[1]))/atoi(argv[1]))] =
- 1400;
- for (ii = x; ii < 10; ii += z)
- if (array[ii] != 1400)
- return 6;
-
-
- array[atoi("5"):5:1] = 5555;
-
- for (ii = atoi ("5"); ii < 10; ii++)
- if (array[ii] != 5555)
- return 7;
-
-
- array[atoi("5"):atoi("5"):atoi("1")] = 9999;
- for (ii = atoi ("5"); ii < (atoi ("5") + atoi ("5")); ii += atoi ("1"))
- if (array[ii] != 9999)
- return 8;
- return 0;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/array_test2.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/array_test2.c
deleted file mode 100644
index 60f2de2834a..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/array_test2.c
+++ /dev/null
@@ -1,128 +0,0 @@
-/* { dg-do run } */
-/* { dg-options "-fcilkplus" } */
-
-#include <stdlib.h>
-int main2 (char **argv);
-int main(void)
-{
- int x = 0;
- const char *array[] = {"a.out", "5"};
- x = main2 ((char **)array);
- return x;
-}
-
-
-int main2(char **argv)
-{
- int array[10], array2[10], ii = 0, x = 2, z= 0 , y = 0 ;
-
- for (ii = 0; ii < 10; ii++)
- {
- array[ii] = 10;
- array2[ii] = 5000000;
- }
-
- array2[0:10:1] = array[0:10:1];
-
- for (ii = 0; ii < 10; ii++)
- if (array2[ii] != array[ii])
- return 1;
-
- for (ii = 0; ii < 10; ii++)
- {
- array[ii] = 10;
- array2[ii] = 5000000;
- }
-
- array2[0:5:2] = array[0:5:2];
-
- for (ii = 0; ii < 10; ii += 2)
- if (array[ii] != array2[ii])
- return 2;
-
- for (ii = 0; ii < 10; ii++)
- {
- array[ii] = 10;
- array2[ii] = 5000000;
- }
- x = atoi(argv[1]);
- z = (10-atoi(argv[1]))/atoi(argv[1]);
-
- array2[x:5:z] = array[x:5:z];
-
- for (ii = x; ii < 5; ii += z)
- if (array2[ii] != array[ii])
- return 3;
-
- for (ii = 0; ii < 10; ii++)
- {
- array[ii] = 500;
- array2[ii] = 1000000;
- }
- x = atoi(argv[1]);
- z = (10-atoi(argv[1]))/atoi(argv[1]);
- y = 10-atoi(argv[1]);
-
- array2[x:y:z] = array[x:y:z];
- for (ii = x; ii < 10; ii = ii + z)
- if (array2[ii] != array[ii])
- return 4;
-
- for (ii = 0; ii < 10; ii++)
- {
- array[ii] = 500;
- array2[ii] = 1000000;
- }
- x = atoi(argv[1]);
- z = (10-atoi(argv[1]))/atoi(argv[1]);
- y = 10-atoi(argv[1]);
-
- array[x:y:((10-atoi(argv[1]))/atoi(argv[1]))] =
- array2[x:y:((10-atoi(argv[1]))/atoi(argv[1]))];
-
- for (ii = x; ii < 10; ii += z)
- if (array[ii] != array2[ii])
- return 5;
-
-
- x = atoi(argv[1]);
- z = (10-atoi(argv[1]))/atoi(argv[1]);
- y = 10-atoi(argv[1]);
-
- for (ii = 0; ii < 10; ii++)
- {
- array[ii] = 500;
- array2[ii] = 1000000;
- }
-
- array[atoi(argv[1]):(10-atoi(argv[1])):((10-atoi(argv[1]))/atoi(argv[1]))] =
- array2[atoi(argv[1]):(10-atoi(argv[1])):((10-atoi(argv[1]))/atoi(argv[1]))];
- for (ii = x; ii < 10; ii += z)
- if (array[ii] != array2[ii])
- return 6;
-
- for (ii = 0; ii < 10; ii++)
- {
- array[ii] = 4;
- array2[ii] = 2;
- }
-
- array[atoi("5"):5:1] = array2[atoi("5"):5:1];
-
- for (ii = atoi ("5"); ii < 10; ii++)
- if (array[ii] != array2[ii])
- return (7);
-
- for (ii = 0; ii < 10; ii++)
- {
- array[ii] = 5;
- array2[ii] = 1;
- }
- array[atoi("5"):atoi("5"):atoi("1")] = array2[atoi("5"):atoi("5"):atoi("1")];
-
- for (ii = 5; ii < 10; ii++)
- if (array2[ii] != array[ii])
- return 8;
-
- return 0;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/array_test_ND.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/array_test_ND.c
deleted file mode 100644
index e89bbab268b..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/array_test_ND.c
+++ /dev/null
@@ -1,102 +0,0 @@
-/* { dg-do run } */
-/* { dg-options "-fcilkplus" } */
-
-#include <stdlib.h>
-int main2(char **argv);
-int main(void)
-{
- int x = 0;
- const char *array[] = {"a.out", "10", "15"};
- x = main2 ((char **)array);
- return x;
-}
-
-int main2(char **argv)
-{
- int array[10][15], ii = 0, jj = 0,x = 0, z= 1 , y = 10 ;
- int array_2[10][15];
- int argc = 3;
- __asm volatile ("" : "+r" (argc));
-
- for (ii = 0; ii < 10; ii++) {
- for (jj = 0; jj< 15; jj++) {
- array[ii][jj] = ii+jj;
- array_2[ii][jj] = 0;
- }
- }
- array_2[0:5:2][0:5:3] = array[0:5:2][0:5:3] + 1 + 5 + array[0][5] + x;
-
- for (ii = 0; ii < 10; ii += 2)
- {
- for (jj = 0; jj < 15; jj += 3)
- {
- if (array_2[ii][jj] != array[ii][jj] + 1 + 5 + array[0][5] + x)
- return 2;
- }
- }
-
-
- for (ii = 0; ii < 10; ii++) {
- for (jj = 0; jj< 15; jj++) {
- array[ii][jj] = ii+jj;
- array_2[ii][jj] = 0;
- }
- }
- x = atoi(argv[1]);
- y = atoi(argv[2]);
- array_2[0:x:1][0:y:1] = array[0:x:1][0:y:1] + x + y + array[0:x:1][0:y:1];
-
- for (ii = 0; ii < x; ii++)
- {
- for (jj = 0; jj < y; jj++)
- {
- if (array_2[ii][jj] != array[ii][jj] + x + y + array[ii][jj])
- return 3;
- }
- }
-
- for (ii = 0; ii < 10; ii++) {
- for (jj = 0; jj< 15; jj++) {
- array[ii][jj] = ii+jj;
- array_2[ii][jj] = 0;
- }
- }
- x = atoi(argv[1]);
- y = atoi(argv[2]);
- z = (20- atoi (argv[1]))/atoi(argv[1]);
- /* (20-10)/10 evaluates to 1 all the time :-). */
- array_2[0:x:z][0:y:z] = array[0:x:z][0:y:z] + array[0:x:z][0:y:z] + y + z;
-
- for (ii = 0; ii < x; ii += z)
- {
- for (jj = 0; jj < y; jj += z)
- {
- if (array_2[ii][jj] != array[ii][jj] + array[ii][jj] + y + z)
- return 4;
- }
- }
-
-
-
- for (ii = 0; ii < 10; ii++) {
- for (jj = 0; jj< 15; jj++) {
- array[ii][jj] = ii+jj;
- array_2[ii][jj] = 0;
- }
- }
- x = argc-3;
- y = 20-atoi(argv[1]);
- z = (20- atoi (argv[1]))/atoi(argv[1]);
- /* (20-10)/10 evaluates to 1 all the time :-). */
- array_2[(argc-3):(20-atoi(argv[1])):(20-atoi(argv[1]))/atoi(argv[1])][(argc-3):(30-atoi(argv[2])): ((30-atoi(argv[2]))/atoi(argv[2]))] = array[(argc-3):20-atoi(argv[1]):(20-atoi(argv[1]))/atoi(argv[1])][(argc-3):(30-atoi(argv[2])): (30-atoi(argv[2]))/atoi(argv[2])] + array[(argc-3):20-atoi(argv[1]):(20-atoi(argv[1]))/atoi(argv[1])][(argc-3):(30-atoi(argv[2])): (30-atoi(argv[2]))/atoi(argv[2])] * array[(argc-3):20-atoi(argv[1]):(20-atoi(argv[1]))/atoi(argv[1])][(argc-3):(30-atoi(argv[2])): (30-atoi(argv[2]))/atoi(argv[2])];
-
- for (ii = 0; ii < 10; ii++)
- {
- for (jj = 0; jj < 15; jj++)
- {
- if (array_2[ii][jj] != array[ii][jj] + array[ii][jj] * array[ii][jj])
- return 5;
- }
- }
- return 0;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/builtin_fn_custom.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/builtin_fn_custom.c
deleted file mode 100644
index 8f6770b870e..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/builtin_fn_custom.c
+++ /dev/null
@@ -1,70 +0,0 @@
-/* { dg-do run } */
-/* { dg-options "-fcilkplus" } */
-/* { dg-additional-options "-ffloat-store" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
-
-#define NUMBER 100
-#if HAVE_IO
-#include <stdio.h>
-#endif
-/* #include <stdlib.h> */
-
-double my_func (double x, double y)
-{
- if (x > y)
- return x;
- else
- return y;
-}
-
-
-/* char __sec_reduce_add (int *); */
-int main(void)
-{
- int ii,array[NUMBER], y = 0, y_int = 0, array2[NUMBER];
- double x, yy, array3[NUMBER], array4[NUMBER];
- double max_value = 0.000, min_value = 0.000, add_value, mul_value = 1.00;
- int max_index = 0, min_index = 0;
- for (ii = 0; ii < NUMBER; ii++)
- {
- array[ii] = 1+ii;
- array2[ii]= 2;
- }
-
- for (ii = 0; ii < NUMBER; ii++)
- {
- if (ii%2 && ii)
- array3[ii] = (double)(1.0000/(double)ii);
- else
- array3[ii] = (double) ii + 0.10;
- array4[ii] = (double) (1.00000/ (double)(ii+1));
- }
-
- /* array[:] = 5; */
- x = __sec_reduce (0, array3[:] * array4[:], my_func);
- y = __sec_reduce_max_ind ( array3[:] * array4[:]);
-
- /* Initialize it to the first variable. */
- max_value = array3[0] * array4[0];
- for (ii = 0; ii < NUMBER; ii++)
- if (array3[ii] * array4[ii] > max_value) {
- max_value = array3[ii] * array4[ii];
- max_index = ii;
- }
-
-
-
-#if HAVE_IO
- for (ii = 0; ii < NUMBER; ii++)
- printf("%5.3f ", array3[ii] * array4[ii]);
- printf("\n");
- printf("Max = %5.3f\t Max Index = %2d\n", x, y);
-#endif
-
- if (x != max_value)
- return 1;
-
- if (y != max_index)
- return 2;
-
- return 0;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/builtin_fn_mutating.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/builtin_fn_mutating.c
deleted file mode 100644
index 760d315d54c..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/builtin_fn_mutating.c
+++ /dev/null
@@ -1,70 +0,0 @@
-/* { dg-do run } */
-/* { dg-options "-fcilkplus" } */
-/* { dg-additional-options "-ffloat-store" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
-
-#define NUMBER 100
-#if HAVE_IO
-#include <stdio.h>
-#endif
-/* #include <stdlib.h> */
-
-void my_func (double *x, double y)
-{
- if (*x < y)
- *x = y;
-}
-
-
-int main(void)
-{
- int ii,array[NUMBER], y = 0, y_int = 0, array2[NUMBER];
- double x = 0.000, yy, array3[NUMBER], array4[NUMBER];
- double max_value = 0.000, min_value = 0.000, add_value, mul_value = 1.00;
- int max_index = 0, min_index = 0;
-#if 1
- for (ii = 0; ii < NUMBER; ii++)
- {
- array[ii] = 1+ii;
- array2[ii]= 2;
- }
-
- for (ii = 0; ii < NUMBER; ii++)
- {
- if (ii%2 && ii)
- array3[ii] = (double)(1.0000/(double)ii);
- else
- array3[ii] = (double) ii + 0.10;
- array4[ii] = (double) (1.00000/ (double)(ii+1));
- }
-#endif
- /* array[:] = 5; */
- __sec_reduce_mutating (&x, array3[:] * array4[:], my_func);
-#if 1
- y = __sec_reduce_max_ind ( array3[:] * array4[:]);
-
- /* Initialize it to the first variable. */
- max_value = array3[0] * array4[0];
- for (ii = 0; ii < NUMBER; ii++)
- if (array3[ii] * array4[ii] > max_value) {
- max_index = ii;
- }
-
- for (ii = 0; ii < NUMBER; ii++)
- my_func (&max_value, array3[ii] * array4[ii]);
-
-#if HAVE_IO
- for (ii = 0; ii < NUMBER; ii++)
- printf("%5.3f ", array3[ii] * array4[ii]);
- printf("\n");
- printf("Max = %5.3f\t Max Index = %2d\n", x, y);
- printf("Max = %5.3f\t Max Index = %2d\n", max_value, max_index);
-#endif
-
- if (x != max_value)
- return 1;
-
- if (y != max_index)
- return 2;
-#endif
- return 0;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/builtin_func_double.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/builtin_func_double.c
deleted file mode 100644
index 0c05994ee30..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/builtin_func_double.c
+++ /dev/null
@@ -1,124 +0,0 @@
-#if HAVE_IO
-#include <stdio.h>
-#endif
-/* #include <stdlib.h> */
-
-/* char __sec_reduce_add (int *); */
-int main(void)
-{
- int ii,array[10], y = 0, y_int = 0, array2[10];
- double x, yy, array3[10], array4[10];
- double max_value = 0.000, min_value = 0.000, add_value, mul_value = 1.00;
- int max_index = 0, min_index = 0;
- for (ii = 0; ii < 10; ii++)
- {
- array[ii] = 1+ii;
- array2[ii]= 2;
- }
-
- for (ii = 0; ii < 10; ii++)
- {
- if (ii%2 && ii)
- array3[ii] = (double)(1.0000/(double)ii);
- else
- array3[ii] = (double) ii + 0.10;
- array4[ii] = (double) (1.00000/ (double)(ii+1));
- }
-
- /* array[:] = 5; */
- x = __sec_reduce_max (array3[:] * array4[:]);
- y = __sec_reduce_max_ind ( array3[:] * array4[:]);
-
- /* Initialize it to the first variable. */
- max_value = array3[0] * array4[0];
- for (ii = 0; ii < 10; ii++)
- if (array3[ii] * array4[ii] > max_value) {
- max_value = array3[ii] * array4[ii];
- max_index = ii;
- }
-
-
-
-#if HAVE_IO
- for (ii = 0; ii < 10; ii++)
- printf("%5.3f ", array3[ii] * array4[ii]);
- printf("\n");
- printf("Max = %5.3f\t Max Index = %2d\n", x, y);
-#endif
-
- if (x != max_value)
- return 1;
-
- if (y != max_index)
- return 2;
-
- x = __sec_reduce_min (array3[:] * array4[:]);
- y = __sec_reduce_min_ind ( array3[:] * array4[:]);
-#if HAVE_IO
- for (ii = 0; ii < 10; ii++)
- printf("%5.3f ", array3[ii] * array4[ii]);
- printf("\n");
- printf("Min = %5.3f\t Min Index = %2d\n", x, y);
-#endif
-
- /* Initialize it to the first variable. */
- min_value = array3[0] * array4[0];
- for (ii = 0; ii < 10; ii++)
- if (array3[ii] * array4[ii] < min_value) {
- min_value = array3[ii] * array4[ii];
- min_index = ii;
- }
-
- if (x != min_value)
- return 3;
- if (y != min_index)
- return 4;
-
- x = __sec_reduce_add (array3[:] * array4[:]);
- yy = __sec_reduce_mul ( array3[:] * array4[:]);
-#if HAVE_IO
- for (ii = 0; ii < 10; ii++)
- printf("%5.3f ", array3[ii] * array4[ii]);
- printf("\n");
- printf("Add = %5.3f\t Mul = %f\n", x, yy);
-#endif
-
- /* Initialize it to the first variable. */
- add_value = 0.0000;
- mul_value = 1.0000;
- for (ii = 0; ii < 10; ii++)
- {
- add_value += (array3[ii] * array4[ii]);
- mul_value *= (array3[ii] * array4[ii]);
- }
-
- if (x != add_value)
- return 5;
- if (yy != mul_value)
- return 6;
-
- for (ii = 0; ii < 10; ii++)
- {
- if (ii%2 && ii)
- array3[ii] = (double)(1.0000/(double)ii);
- else
- array3[ii] = (double) ii + 0.00;
- array4[ii] = (double) (1.00000/ (double)(ii+1));
- }
- y_int = __sec_reduce_any_zero (array3[:] * array4[:]);
- y = __sec_reduce_all_zero ( array3[:] * array4[:]);
-
- if (y_int != 1)
- return 7;
-
- if (y != 0)
- return 8;
-
-#if HAVE_IO
- for (ii = 0; ii < 10; ii++)
- printf("%5.3f ", array3[ii] * array4[ii]);
- printf("\n");
- printf("Any Zeros = %d\t All Zeros = %d\n", y_int, y);
-#endif
- return 0;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/builtin_func_double2.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/builtin_func_double2.c
deleted file mode 100644
index 65549121b19..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/builtin_func_double2.c
+++ /dev/null
@@ -1,77 +0,0 @@
-/* { dg-do run } */
-/* { dg-options "-fcilkplus" } */
-
-#define NUMBER 100
-#if HAVE_IO
-#include <stdio.h>
-#endif
-
-int main(void)
-{
- int argc = 1;
- int ii,array[NUMBER], y = 0, y_int = 0, array2[NUMBER], y_int2=0, y2=0;
- double x, yy, array3[NUMBER], array4[NUMBER];
- int all_zero, all_nonzero, any_zero, any_nonzero;
- for (ii = 0; ii < NUMBER; ii++)
- {
- array[ii] = 0;
- array2[ii] = 5;
- if (ii%2 && ii)
- array3[ii] = (double)(1.0000/(double)ii);
- else
- array3[ii] = (double) ii + 0.00;
- array4[ii] = (double) (1.00000/ (double)(ii+1));
- }
- __asm volatile ("" : "+r" (argc));
- y_int = __sec_reduce_any_nonzero (array3[:] + array[4]);
- y_int2 = __sec_reduce_any_zero (array3[:] + array[4]);
- y = __sec_reduce_all_nonzero ((array3[:] + array4[:]) * (argc-1));
- y2 = __sec_reduce_all_zero ((array3[:] + array4[:]) * (argc-1));
-
- any_zero = 0;
- any_nonzero = 0;
- for (ii = 0; ii < NUMBER; ii++)
- {
- if ((array3[ii] + array[4]) == 0)
- any_zero = 1;
- else
- any_nonzero = 1;
- }
-
- if (any_nonzero != y_int)
- return 1;
- if (any_zero != y_int2)
- return 2;
-
-
- all_zero = 0;
- all_nonzero = 0;
- for (ii = 0; ii < NUMBER; ii++)
- {
- if (((array3[ii] + array4[ii]) * (argc-1)) == 0)
- all_zero = 1;
- else
- all_nonzero = 1;
- }
-
- if (y != all_nonzero)
- return 3;
- if (all_zero != y2)
- return 4;
-
-
-#if HAVE_IO
- for (ii = 0; ii < NUMBER; ii++) {
- printf("%5.3f ", array3[ii] +array4[ii]);
- }
- printf("\n");
- for (ii = 0; ii < NUMBER; ii++) {
- printf("%5.3f ", (array3[ii] + array4[ii]) * (argc-1));
- }
- printf("\n");
- printf("Any Non-zeros (1st line) = %d\t All non-zeros (1st line) = %d\n",
- y_int, y);
- printf("Any zeros (2nd line) = %d\t All zeros (2nd line) = %d\n", y_int2, y2);
-#endif
- return 0;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/comma_exp.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/comma_exp.c
deleted file mode 100644
index 845d916ab96..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/comma_exp.c
+++ /dev/null
@@ -1,55 +0,0 @@
-/* { dg-do run } */
-/* { dg-options "-fcilkplus" } */
-
-#include <stdlib.h>
-
-int main2 (char **argv);
-int main(void)
-{
- int x = 0;
- const char *array[] = {"a.out", "5"};
- x = main2 ((char **)array);
- return x;
-}
-
-int main2 (char **argv)
-{
- int argc = 2;
- int array[10], array2[10], ii = 0, x = 2, z= 0 , y = 0 ;
- __asm volatile ("" : "+r" (argc));
- for (ii = 0; ii < 10; ii++)
- array[ii] = 10;
-
- for (ii = 0; ii < 10; ii++)
- array2[ii] = 1;
-
- array[0:10:1] = (array[:], 15);
-
- for (ii = 0; ii < 10; ii++)
- if (array[ii] != 15)
- return 1;
- array[0:5:2] = (argc+2, 20);
-
- for (ii = 0; ii < 10; ii += 2)
- if (array[ii] != 20)
- return 2;
-
-
- x = atoi(argv[1]);
- z = (10-atoi(argv[1]))/atoi(argv[1]);
-
- array[x:5:z] = 50;
-
- array[:] = (atoi(argv[1]), (array2[0:10]+5));
-
- for (ii = 0; ii < 10; ii++)
- if (array[ii] != 6)
- return (3);
-
- array[:] = (atoi(argv[1]), (array2[0:10]+array2[0:10]));
- for (ii = 0; ii < 10; ii++)
- if (array[ii] != 2)
- return 4;
-
- return 0;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/conditional.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/conditional.c
deleted file mode 100644
index 07c50173bfb..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/conditional.c
+++ /dev/null
@@ -1,44 +0,0 @@
-/* { dg-do run } */
-/* { dg-options "-fcilkplus" } */
-
-#include <stdlib.h>
-int main(void)
-{
- int argc = 1;
- short array[1000], array2[1000], *array3, cond[1000], ii = 0;
-
- __asm volatile ("" : "+r" (argc));
- for (ii = 0; ii < 1000; ii++) {
- cond[ii] = 1;
- array[ii] = 1000;
- array2[ii] = 2000;
- }
- array2[:] = cond[:] ? array[:] : array2[:];
-
- for (ii = 0; ii < 1000; ii++) {
- if (array2[ii] != 1000)
- return 1;
- }
-
- array2[0:500:2] = cond[0:500] ? array[0:500:1] : array2[0:500:2];
-
- for (ii = 0; ii < 1000; ii++) {
- if (array2[ii] != 1000)
- return 2;
- }
-
- for (ii = 0; ii < 1000; ii++) {
- cond[ii] = ii % 2; /* This should give 0, 1, 0, 1, 0, 1, 0,... */
- array2[ii] = 5;
- array[ii] = 3;
- }
- array3 = (short *) malloc (sizeof (short) * 1000);
- array3[0:1000:argc] = cond[:] ? array[0:(argc * 1000)] : array2[argc-1:1000];
-
- for (ii = 0; ii < 1000; ii++) {
- if ((cond[ii] == 0 && array3[ii] != 5)
- || (cond[ii] == 1 && array3[ii] != 3))
- return 3;
- }
- return 0;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/decl-ptr-colon.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/decl-ptr-colon.c
deleted file mode 100644
index 4b54f4d06f7..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/decl-ptr-colon.c
+++ /dev/null
@@ -1,19 +0,0 @@
-/* { dg-do compile { target c } } */
-/* { dg-options "-fcilkplus" } */
-
-int main(void)
-{
- extern int func(int);
- int array3[:], x, q; /* { dg-error "array notations cannot be used in declaration" } */
- int array3[1:2:x]; /* { dg-error "array notations cannot be used in declaration" } */
- extern char array3[1:func(x)]; /* { dg-error "array notations cannot be used in declaration" } */
- int *a, ***b;
- extern char *c;
- int array2[10];
-
- a[:] = 5; /* { dg-error "start-index and length fields necessary for using array notations in pointers" } */
- c[1:2] = 3; /* This is OK. */
- (array2)[:] = 5; /* This is OK. */
- b[1:2][1:func(x)][:] = 3; /* { dg-error "start-index and length fields necessary for using array notations in pointers" } */
-}
-
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/dimensionless-arrays.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/dimensionless-arrays.c
deleted file mode 100644
index 690e89a27d7..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/dimensionless-arrays.c
+++ /dev/null
@@ -1,10 +0,0 @@
-/* { dg-options "-fcilkplus" } */
-
-extern int a[];
-extern int *b;
-
-void foo()
-{
- a[:] = 5; // { dg-error "start-index and length fields necessary for using array notation" }
- b[:] = 5; // { dg-error "start-index and length fields necessary for using" }
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/exec-once.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/exec-once.c
deleted file mode 100644
index 00b018a2c85..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/exec-once.c
+++ /dev/null
@@ -1,44 +0,0 @@
-/* { dg-do run } */
-/* { dg-options "-fcilkplus" } */
-
-#define NUMBER 1000
-
-#if HAVE_IO
-#include <stdio.h>
-#endif
-
-int func (int *x)
-{
- int q = *x;
- q++;
- *x = q;
-#if HAVE_IO
- printf("%d\n", (q));
-#endif
- return *x;
-}
-int main (void)
-{
- char array[NUMBER], array2[NUMBER];
- int ii, d = 2;
-#if 1
- for (ii = 0; ii < NUMBER; ii++) {
- array[ii] = 5;
- array2[ii]= 2;
- }
-#endif
- d = func (&d); /* d = 1 */
- array2[:] = d * array[:] + (char) func (&d); /* 3 * 5 + 4 */
-#if HAVE_IO
- for (ii = 0; ii < NUMBER; ii++)
- printf("array2[%d] = %d\n", ii, array2[ii]);
-#endif
- for (ii = 0; ii < NUMBER; ii++)
- if (array2[ii] != (3 * 5 + 4))
- return 1;
-
- return 0;
-}
-
-
-
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/exec-once2.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/exec-once2.c
deleted file mode 100644
index d9f39dd66a8..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/exec-once2.c
+++ /dev/null
@@ -1,87 +0,0 @@
-/* { dg-do run } */
-/* { dg-options "-fcilkplus" } */
-
-#ifdef HAVE_IO
-#include <stdio.h>
-#endif
-
-
-int func1(int x)
-{
- /* If x == 2 then it should return 0. */
- return (x - 2);
-}
-
-int func2(int x)
-{
- /* If x == 2 then it should return 1000. */
- return (x * 500);
-}
-
-int func3 (int x)
-{
- /* If x == 2 then it should return 1. */
- /* If x == 1 then it should return 0. */
- return (x-1);
-}
-
-int func4(int x)
-{
- if (x > 0)
- return x;
- else
- return x--;
-}
-
-
-/* This program makes an assumption that argc == 1. */
-int main (void)
-{
- int argc = 1;
- int array[2500];
-
- /* This is done to make sure the compiler does not optimize out argc. */
- __asm volatile ("" : "+r" (argc));
- /* This should set array[0->999] to 5. */
- array[argc-1:func2(++argc):1] = 5;
- array[1000:500:1] = 10; /* set all variables in array[1000-->1499] to 10. */
- array[1500:500:1] = 15; /* set all variables in array[1500-->1999] to 15. */
- array[2000:500:1] = 20; /* set all variables in array[2000-->2499] to 20. */
- array[2000:500:1] = 25; /* set all variables in array[2500-->2999] to 25. */
- array[2000:500:1] = 30; /* set all variables in array[3000-->3499] to 30. */
-
- argc = func3 (argc); /* This will set argc back to 1. */
-#if HAVE_IO
- printf("argc = %d\n", argc);
-#endif
- /* If the parameters inside the function get evaluated only once, then this
- if statement must work fine, i.e. the triplet values will be 0, 1000, 1.
-
- Otherwise, the program should crash or give some uneasy value. */
-
- /* If done correctly, it should boil down to: array[0:1000:1]. */
- if (array[func3(argc):func2(++argc)] != 5) {
-#ifdef HAVE_IO
- printf ("Should not be there(1).\n");
-#endif
- return 1;
- }
-
- /* If done correctly, it should boil down to: array[999:500:-1]. */
- if (func4(array[func2(argc)-1:func2(argc--):func1(argc)]) != 5) {
-#ifdef HAVE_IO
- printf ("Should not be there(2).\n");
-#endif
- return 2;
- }
-
- /* If done correctly, it should boil down to: array[1000:500:1]. */
- if (func4 (func4(array[func2(argc++):500: func1(argc--)])) != 5) {
-#ifdef HAVE_IO
- printf ("Should not be there(3).\n");
-#endif
- return 3;
- }
-
- return 0;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/fn_ptr-2.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/fn_ptr-2.c
deleted file mode 100644
index 4e1990fcc34..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/fn_ptr-2.c
+++ /dev/null
@@ -1,14 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus" } */
-
-typedef void (*f) (void *);
-f b[1024];
-void *c[1024][1024];
-
-int
-main (void)
-{
- (b[:]) (c[:][:]); /* { dg-error "rank mismatch" "" { xfail *-*-* } } */
- return 0;
-}
-
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/fn_ptr.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/fn_ptr.c
deleted file mode 100644
index fa6d9003a00..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/fn_ptr.c
+++ /dev/null
@@ -1,21 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus" } */
-
-typedef int (*foo)(int);
-
-int main(void)
-{
- int array[10], array2[10][10];
- foo func_array[10];
- foo func_array2[10][10];
- foo ***func_array_ptr;
- int argc = 5;
-
- array[:] = func_array[:](10);
- func_array[0:5](10);
- func_array2[0:5][:](10);
- array2[0:5][:] = func_array2[0:5][:](10);
- func_array_ptr[0:5][0:4][0:argc:2](argc);
-
- return 0;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/fp_triplet_values.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/fp_triplet_values.c
deleted file mode 100644
index b2ac7bcc85a..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/fp_triplet_values.c
+++ /dev/null
@@ -1,28 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus" } */
-
-float q;
-
-void func (int *x)
-{
- *x = 5;
-}
-
-int main (void)
-{
- int array[10], array2[10];
- array2[:] = array[1.5:2]; /* { dg-error "start-index of array notation triplet is not an integer" } */
- array2[:] = array[1:2.32333333333]; /* { dg-error "length of array notation triplet is not an integer" } */
- array2[1:2:1.5] = array[:]; /* { dg-error "stride of array notation triplet is not an integer" } */
- func (&array2[1:2.34:3]); /* { dg-error "length of array notation triplet is not an integer" } */
- array2[1.43:9]++; /* { dg-error "start-index of array notation triplet is not an integer" } */
- array2[1:9.3]++; /* { dg-error "length of array notation triplet is not an integer" } */
- array2[1:9:0.3]++; /* { dg-error "stride of array notation triplet is not an integer" } */
-
- ++array2[1:q:3]; /* { dg-error "length of array notation triplet is not an integer" } */
- array2[:] = array[q:1:3]; /* { dg-error "start-index of array notation triplet is not an integer" } */
- array2[:] = array[1:q:3]; /* { dg-error "length of array notation triplet is not an integer" } */
- array2[:] = array[1:3:q]; /* { dg-error "stride of array notation triplet is not an integer" } */
- func (&array2[1:q:3]); /* { dg-error "length of array notation triplet is not an integer" } */
- return 0;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/gather-scatter-errors.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/gather-scatter-errors.c
deleted file mode 100644
index f425fbec0f5..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/gather-scatter-errors.c
+++ /dev/null
@@ -1,19 +0,0 @@
-/* { dg-options "-fcilkplus" } */
-
-int main (void)
-{
- extern int func (int);
- int array[10][10], array2[10];
- int argc = 1;
- array2[array[:][:]] = 5; /* { dg-error "rank of the array's index is greater than 1" } */
-
- array2[array[:][:]] = 5; /* { dg-error "rank of the array's index is greater than 1" } */
- func (array2[array[:][:]]); /* { dg-error "rank of the array's index is greater than 1" } */
- func (array2[array[argc:func(5)][0:10:2]]); /* { dg-error "rank of the array's index is greater than 1" } */
-
- array[array2[:]][array2[:]] = 5; /* This is OK. */
- array[array2[:]][array2[:]] = array2[array[:][:]]; /* { dg-error "rank of the array's index is greater than 1" } */
- array[array2[:]][array2[:]] = array2[array[0:10:1][:]]; /* { dg-error "rank of the array's index is greater than 1" } */
- array[array2[:]][array2[:]] = array2[array[:][argc:func (argc)]]; /* { dg-error "rank of the array's index is greater than 1" } */
- return 0;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/gather_scatter.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/gather_scatter.c
deleted file mode 100644
index faee3fcebf6..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/gather_scatter.c
+++ /dev/null
@@ -1,60 +0,0 @@
-/* { dg-do run } */
-/* { dg-options "-fcilkplus" } */
-
-#define NUMBER 20
-#if HAVE_IO
-#include <stdio.h>
-#endif
-
-float array4[NUMBER][NUMBER][NUMBER][NUMBER];
-int main(void)
-{
- int array[NUMBER][NUMBER], array2[NUMBER], array3[NUMBER], x = 0, y;
- int x_correct, y_correct, ii, jj = 0, kk = 0, ll = 0;
- for (ii = 0; ii < NUMBER; ii++)
- {
- for (jj = 0; jj < NUMBER; jj++)
- {
- array[ii][jj] = 1+ii;
- array2[ii]= 2;
- array3[ii]= 3;
- }
- }
-
- array[array2[:]][array3[:]] = 1000;
-
- for (ii = 0; ii < NUMBER; ii++)
- if (array[array2[ii]][array3[ii]] != 1000)
- return 1;
-
-#if HAVE_IO
- for (ii = 0; ii < NUMBER; ii++) {
- for (jj = 0; jj < NUMBER; jj++) {
- printf("%4d\t", array[ii][jj]);
- }
- printf("\n");
- }
-#endif
-
- array4[array2[:]][array3[0:NUMBER:1]][array2[0:NUMBER:1]][array3[0:NUMBER:1]] =
- (float)array[array2[:]][array3[:]];
-
- for (ii = 0; ii < NUMBER; ii++)
- if (array4[array2[ii]][array3[ii]][array2[ii]][array3[ii]] !=
- (float)array[array2[ii]][array3[ii]])
- return 2;
-
-#if HAVE_IO
- for (ii = 0; ii < NUMBER; ii++) {
- for (jj = 0; jj < NUMBER; jj++) {
- for (kk = 0; kk < NUMBER; kk++) {
- for (ll = 0; ll < NUMBER; ll++) {
- printf("%4d\n", array4[ii][jj][kk][ll]);
- }
- }
- }
- }
-#endif
-
- return 0;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/if_test.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/if_test.c
deleted file mode 100644
index 4e5b1583778..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/if_test.c
+++ /dev/null
@@ -1,306 +0,0 @@
-/* { dg-do run } */
-/* { dg-options "-fcilkplus" } */
-
-#if HAVE_IO
-#include <stdio.h>
-#endif
-#include <stdlib.h>
-int main2 (char **argv);
-int main(int argc, char **argv)
-{
- int x = 0;
- const char *array[] = {"a.out", "10", "15"};
- x = main2 ((char **) array);
- return x;
-}
-
-
-int main2 (char **argv)
-{
- int x = 3, y, z, array[10], array2[10], TwodArray[10][10], jj,kk,ll ;
- int array2_check[10], array2d_check[10][10], array2d[10][10];
- int FourDArray[10][10][10][10], array4[10][10][10][10];
- int array4_check[10][10][10][10];
- int ii = 0, argc = 3;
-
- __asm volatile ("" : "+r" (argc));
-
- for (ii = 0; ii < 10; ii++)
- {
- array[ii] = argc%3;
- array2[ii]= 10;
- array2_check[ii] = 10;
- }
-
- if (!array[:])
- array2[:] = 5;
- else
- array2[:] = 10;
-
-
- for (ii = 0; ii < 10; ii++)
- {
- if (!array[ii])
- array2_check[ii] = 5;
- else
- array2_check[ii] = 10;
- }
-
- for (ii = 0; ii < 10; ii++)
- if (array2_check[ii] != array2[ii])
- return 2;
-
-
-
- if (!(array[0:10:1] + array[0:10:1]))
- array2[:] = 5;
- else
- array2[:] = 10;
-
- for (ii = 0; ii < 10; ii++)
- {
- if (!(array[ii]+ array[ii]))
- array2_check[ii] = 5;
- else
- array2_check[ii] = 10;
- }
-
- for (ii = 0; ii < 10; ii++)
- if (array2_check[ii] != array2[ii])
- return 3;
-
- x = atoi (argv[1])-10;
- y = atoi (argv[1])/2;
- z = (atoi (argv[1]))/5;
-
- for (ii = 0; ii < 10; ii++)
- {
- if (ii % 2)
- array[ii] = 0;
- else
- array[ii] = 1;
- }
-
- /*printf("x = %2d y = %2d z = %2d\n", x, y, z); */
-
- for (ii = 0; ii < 10; ii++)
- array[ii] = 10;
-
- /* This if loop will change all the 10's to 5's */
- if (array[x:y:z] != 9)
- array2[:] = 5;
- else
- array2[:] = 10;
-
- for (ii = x; ii < (x+y); ii += z)
- {
- if (array[ii] != 9)
- array2_check[ii] = 5;
- else
- array2_check[ii] = 10;
- }
-
- for (ii = 0; ii < 10; ii++)
- if (array2_check[ii] != array2[ii])
- return 4;
-
- for (ii = 0; ii < 10; ii++) {
- array2[ii] = 10;
- array2_check[ii] = 10;
- }
-
- /* This if loop will change all the 10's to 5's */
- if (array[atoi(argv[1])-10:atoi(argv[1])/2: atoi(argv[1])/5])
- array2[atoi(argv[1])-10: atoi (argv[1])/2: atoi(argv[1])/5] = 5;
- else
- array2[atoi(argv[1])-10: atoi (argv[1])/2: atoi(argv[1])/5] = 10;
-
- for (ii = atoi(argv[1])-10; ii < atoi(argv[1]) + (atoi (argv[1])-10);
- ii +=atoi(argv[1])/5)
- if (array[ii])
- array2_check[ii] = 5;
- else
- array2_check[ii] = 10;
-
- for (ii = 0; ii < 10; ii++)
- if (array2_check[ii] != array2[ii]) {
-#if HAVE_IO
- printf("array2[%2d] = %2d array2_check[%2d] = %2d\n", ii, array2[ii],
- ii, array2_check[ii]);
-#endif
- return 5;
- }
-
- for (ii = 0; ii < 10; ii++)
- for (jj = 0; jj < 10; jj++)
- TwodArray[ii][jj] = atoi(argv[1]);
-
-
- for (ii = 0; ii < 10; ii++)
- for (ii = 0; ii < 10; ii++) {
- array2d[ii][jj] = 10;
- array2d_check[ii][jj] = 10;
- }
-
- /* atoi(argv[1]) == 10, so it will convert all 10's to 5's */
- if (TwodArray[:][:] != 10)
- array2d[:][:] = 10;
- else
- array2d[:][:] = 5;
-
- for (ii = 0; ii < 10; ii++) {
- for (jj = 0; jj < 10; jj++) {
- if (TwodArray[ii][jj] != 10)
- array2d_check[ii][jj] = 10;
- else
- array2d_check[ii][jj] = 5;
- }
- }
-
- for (ii = 0; ii < 10; ii++)
- for (jj = 0; jj < 10; jj++)
- if (array2d[ii][jj] != array2d_check[ii][jj])
- return 6;
-
- for (ii = 0; ii < 10; ii++)
- for (jj = 0; jj < 10; jj++)
- for (kk = 0; kk < 10; kk++)
- for (ll = 0; ll < 10; ll++)
- {
- array4[ii][jj][kk][ll] = 10;
- array4_check[ii][jj][kk][ll] = 10;
- }
-
- for (ii = 0; ii < 10; ii++)
- for (jj = 0; jj < 10; jj++)
- for (kk = 0; kk < 10; kk++)
- for (ll = 0; ll < 10; ll++)
- FourDArray[ii][jj][kk][ll] = atoi(argv[1]);
-
- /* atoi(argv[1]) == 10, so it will convert all 10's to 5's */
- if (FourDArray[:][:][:][:] != 10)
- array4[:][:][:][:] = 10;
- else
- array4[:][:][:][:] = 5;
-
- for (ii = 0; ii < 10; ii++) {
- for (jj = 0; jj < 10; jj++) {
- for (kk = 0; kk < 10; kk++) {
- for (ll = 0; ll < 10; ll++) {
- if (FourDArray[ii][jj][kk][ll] != 10)
- array4_check[ii][jj][kk][ll] = 10;
- else
- array4_check[ii][jj][kk][ll] = 5;
- }
- }
- }
- }
-
- for (ii = 0; ii < 10; ii++)
- for (jj = 0; jj < 10; jj++)
- for (kk = 0; kk < 10; kk++)
- for (ll = 0; ll < 10; ll++)
- if (array4_check[ii][jj][kk][ll] != array4[ii][jj][kk][ll])
- return 7;
-
- for (ii = 0; ii < 10; ii++)
- for (jj = 0; jj < 10; jj++)
- for (kk = 0; kk < 10; kk++)
- for (ll = 0; ll < 10; ll++)
- {
- array4[ii][jj][kk][ll] = 10;
- array4_check[ii][jj][kk][ll] = 10;
- }
-
- for (ii = 0; ii < 10; ii++)
- for (jj = 0; jj < 10; jj++)
- for (kk = 0; kk < 10; kk++)
- for (ll = 0; ll < 10; ll++)
- FourDArray[ii][jj][kk][ll] = atoi(argv[1]);
-
- /* atoi(argv[1]) == 10, so it will convert all 10's to 5's */
- if (FourDArray[0:10:1][0:5:2][9:10:-1][0:5:2] != 10)
- array4[0:10:1][0:5:2][9:10:-1][0:5:2] = 10;
- else
- array4[0:10:1][0:5:2][9:10:-1][0:5:2] = 5;
-
- for (ii = 0; ii < 10; ii++) {
- for (jj = 0; jj < 10; jj += 2) {
- for (kk = 9; kk >= 0; kk--) {
- for (ll = 0; ll < 10; ll += 2) {
- if (FourDArray[ii][jj][kk][ll] != 10)
- array4_check[ii][jj][kk][ll] = 10;
- else
- array4_check[ii][jj][kk][ll] = 5;
- }
- }
- }
- }
-
- for (ii = 0; ii < 10; ii++)
- for (jj = 0; jj < 10; jj++)
- for (kk = 0; kk < 10; kk++)
- for (ll = 0; ll < 10; ll++)
- if (array4_check[ii][jj][kk][ll] != array4[ii][jj][kk][ll]) {
-#if HAVE_IO
- printf("array4_check[%d][%d][%d][%d] = %d\n",ii, jj, kk, ll,
- array4_check[ii][jj][kk][ll]);
- printf("array4[%d][%d][%d][%d] = %d\n",ii, jj, kk, ll,
- array4[ii][jj][kk][ll]);
-#endif
- return 8;
- }
-
- for (ii = 0; ii < 10; ii++)
- for (jj = 0; jj < 10; jj++)
- for (kk = 0; kk < 10; kk++)
- for (ll = 0; ll < 10; ll++)
- FourDArray[ii][jj][kk][ll] = atoi(argv[1]);
-
- for (ii = 0; ii < 10; ii++)
- for (jj = 0; jj < 10; jj++)
- for (kk = 0; kk < 10; kk++)
- for (ll = 0; ll < 10; ll++)
- {
- array4[ii][jj][kk][ll] = 10;
- array4_check[ii][jj][kk][ll] = 10;
- }
-
-
- /* atoi(argv[1]) == 10, so it will convert all 10's to 5's */
- if (FourDArray[0:10:1][0:5:2][9:10:-1][x:y:z] +
- FourDArray[0:10:1][0:5:2][9:10:-1][x:y:z] != 20)
- array4[0:10:1][0:5:2][9:10:-1][x:y:z] = 10;
- else
- array4[0:10][0:5:2][9:10:-1][x:y:z] = 5;
-
- for (ii = 0; ii < 10; ii++) {
- for (jj = 0; jj < 10; jj += 2) {
- for (kk = 9; kk >= 0; kk--) {
- for (ll = 0; ll < 10; ll += 2) {
- if (FourDArray[ii][jj][kk][ll] != 10)
- array4_check[ii][jj][kk][ll] = 10;
- else
- array4_check[ii][jj][kk][ll] = 5;
- }
- }
- }
- }
-
- for (ii = 0; ii < 10; ii++)
- for (jj = 0; jj < 10; jj++)
- for (kk = 0; kk < 10; kk++)
- for (ll = 0; ll < 10; ll++)
- if (array4_check[ii][jj][kk][ll] != array4[ii][jj][kk][ll]) {
-#if HAVE_IO
- printf("array4_check[%d][%d][%d][%d] = %d\n",ii, jj, kk, ll,
- array4_check[ii][jj][kk][ll]);
- printf("array4[%d][%d][%d][%d] = %d\n",ii, jj, kk, ll,
- array4[ii][jj][kk][ll]);
-#endif
- return 9;
- }
-
-
- return 0;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/if_test_errors.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/if_test_errors.c
deleted file mode 100644
index 579d396948e..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/if_test_errors.c
+++ /dev/null
@@ -1,56 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus" } */
-
-#include <stdlib.h>
-int main (void)
-{
- int x = 3, y, z, array[10], array2[10], TwodArray[10][10], jj,kk,ll ;
- int array2_check[10], array2d_check[10][10], array2d[10][10];
- int FourDArray[10][10][10][10], array4[10][10][10][10];
- int array4_check[10][10][10][10];
- int ii = 0;
-
- x = 5;
- y = 10;
- z = 2;
-
- if (!array[:]) /* This is OK! */
- array2[:] = 5;
- else
- array2[:] = 10;
- if (!(array[0:10:1] + array[0:10:1])) /* { dg-error "condition and the then-block" "" { target c } } */
- array2d[:][:] = 5; /* { dg-error "rank mismatch with controlling expression of parent" "" { target c++ } } */
- else
- array2[:] = 10;
-
- if (!(array[0:10:1] + array[0:10:1])) /* { dg-error "condition and the else-block" "" { target c } } */
- array2[:] = 5;
- else
- array2d[:][:] = 10; /* { dg-error "rank mismatch with controlling expression of parent" "" { target c++ } } */
-
-
- if (TwodArray[:][:] != 10) /* { dg-error "condition and the then-block" "" { target c } } */
- array2[:] = 10; /* { dg-error "rank mismatch with controlling expression of parent" "" { target c++ } } */
- else
- array2[:] = 5;
-
- if (FourDArray[43][:][:][:] != 10) /* This is OK! */
- array4[45][:][:][:] = 10;
- else
- array4[32][:][:][:] = 5;
-
- /* atoi(argv[1]) == 10, so it will convert all 10's to 5's */
- if (FourDArray[42][0:10:1][9:10:-1][0:5:2] != 10) /* { dg-error "condition and the then-block" "" { target c } } */
- array4[0:10:1][0:5:2][9:10:-1][0:5:2] = 10; /* { dg-error "rank mismatch with controlling expression of parent" "" { target c++ } } */
- else
- array4[0:10:1][0:5:2][9:10:-1][0:5:2] = 5;
-
- /* atoi(argv[1]) == 10, so it will convert all 10's to 5's */
- if (FourDArray[0:10:1][0:5:2][9:10:-1][x:y:z] +
- FourDArray[0:10:1][0:5:2][9:-10:1][x:y:z] != 20)
- array4[0:10:1][0:5:2][9:10:-1][x:y:z] = 10;
- else
- array4[0:10][0:5:2][9:10:-1][x:y:z] = 5;
-
- return 0;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/misc.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/misc.c
deleted file mode 100644
index dcc414f1209..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/misc.c
+++ /dev/null
@@ -1,112 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus" } */
-
-int main (void)
-{
- int array[10], array2[10][10];
- int x, ii, jj ;
-
- switch (array[:]) { /* { dg-error "cannot be used as a condition for switch statement" } */
- case 1:
- x = 5;
- break;
- case 2:
- x = 2;
- break;
- default:
- x = 9;
- }
-
- switch (array2[:][:]) { /* { dg-error "cannot be used as a condition for switch statement" } */
- case 1:
- x = 5;
- break;
- case 2:
- x = 2;
- break;
- default:
- x = 9;
- }
-
- switch (array[:] + x) { /* { dg-error "cannot be used as a condition for switch statement" } */
- case 1:
- x = 5;
- break;
- case 2:
- x = 2;
- break;
- default:
- x = 9;
- }
-
- switch (array2[:][1:x:4] + x) { /* { dg-error "cannot be used as a condition for switch statement" } */
- case 1:
- x = 5;
- break;
- case 2:
- x = 2;
- break;
- default:
- x = 9;
- }
-
- for (ii = 0; ii < array[:]; ii++) /* { dg-error "cannot be used in a condition for a for-loop" } */
- {
- x = 2;
- }
-
- for (ii = 0; ii < array2[:][:]; ii++) /* { dg-error "cannot be used in a condition for a for-loop" } */
- {
- x = 3;
- }
-
- for (; array2[:][:] < 2;) /* { dg-error "cannot be used in a condition for a for-loop" } */
- x = 4;
-
-
- while (array2[:][:]) /* { dg-error "cannot be used as a condition for while statement" } */
- x = 3;
-
- while (array[1:1:1]) /* { dg-error "cannot be used as a condition for while statement" } */
- x = 1;
-
- while (ii != array2[1:x:3][1:2:1]) /* { dg-error "cannot be used as a condition for while statement" } */
- x = 2;
-
- do {
- x = 3;
- } while (ii != array2[:][:]); /* { dg-error "cannot be used as a condition for a do-while statement" } */
-
- do {
- x = 2;
- } while (ii != (x + array2[:][1:x:2]) + 2); /* { dg-error "cannot be used as a condition for a do-while statement" } */
-
- do {
- x += 3;
- if (x == 5)
- return array2[:][:]; /* { dg-error "array notation expression cannot be used as a return value" } */
- } while (ii != 0);
-
- for (ii = 0; ii < 10; ii++)
- if (ii % 2)
- return array[1:x:ii]; /* { dg-error "array notation expression cannot be used as a return value" } */
-
- for (ii = 0; ii < x; ii++)
- if (ii)
- return array2[:][:]; /* { dg-error "array notation expression cannot be used as a return value" } */
-
- for (array[:] = 0; ii < x; ii++) /* This should be OK. */
- x= 2;
-
- for (ii = 0; ii < 10; array[:]++) /* This is OK. */
- x = 5;
-
- for (jj = 0; jj < 10; array2[:][:]++) /* This is OK. */
- x = 3;
-
- for (jj = 0; jj < 10; array2[:][1:x:4]++, jj++) /* This is OK. */
- x = 3;
-
- return x;
-}
-
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/n-ptr-test.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/n-ptr-test.c
deleted file mode 100644
index 750446c87d2..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/n-ptr-test.c
+++ /dev/null
@@ -1,48 +0,0 @@
-/* { dg-do run } */
-/* { dg-options "-fcilkplus" } */
-
-#define NUMBER 10
-#include <stdlib.h>
-
-int ***func2 (int ***a1, int ***a2, int size)
-{
- a1[0:size:1][0:size:1][0:size] += (a2[0:size][0:size][0:size:1] + size);
- return a1;
-}
-
-int main (void)
-{
- int ii, jj, kk;
- int ***array3, ***array2 = NULL, ***array = NULL;
-
- array = (int ***) malloc (sizeof (int **) * NUMBER);
- array2 = (int ***) malloc (sizeof (int **) * NUMBER);
- for (ii = 0; ii < NUMBER; ii++) {
- array[ii] = (int **) malloc (sizeof (int *) * NUMBER);
- array2[ii] = (int **) malloc (sizeof (int *) * NUMBER);
- for (jj = 0; jj < NUMBER; jj++) {
- array[ii][jj] = (int *) malloc (sizeof (int) * NUMBER);
- array2[ii][jj] = (int *) malloc (sizeof (int) * NUMBER);
- }
- }
-
- for (ii = 0; ii < NUMBER; ii++) {
- for (jj = 0; jj < NUMBER; jj++) {
- for (kk = 0; kk < NUMBER; kk++) {
- array[ii][jj][kk] = 5;
- array2[ii][jj][kk]= 2;
- }
- }
- }
- array3 = func2 ((int ***)array, (int ***)array2, NUMBER);
-
- for (ii = 0; ii < NUMBER; ii++) {
- for (jj = 0; jj < NUMBER; jj++) {
- for (kk = 0; kk < NUMBER; kk++) {
- if (array3[ii][jj][kk] != (7 + NUMBER))
- return 1;
- }
- }
- }
- return 0;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/parser_errors.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/parser_errors.c
deleted file mode 100644
index fd4fe5419b6..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/parser_errors.c
+++ /dev/null
@@ -1,11 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus" } */
-
-int main (void)
-{
- int array[10][10], array2[10];
-
- array2[:] = array2[: ; /* { dg-error "expected ']'" } */
-
- return 0; /* { dg-error "expected ';' before" "" { target c } } */
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/parser_errors2.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/parser_errors2.c
deleted file mode 100644
index d003d7cc2bb..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/parser_errors2.c
+++ /dev/null
@@ -1,13 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus" } */
-
-int main (void)
-{
- int array[10][10], array2[10];
-
- array2[:] = array2[1:2:] ; /* { dg-error "expected expression before" "" { target c } } */
- /* { dg-error "expected primary-expression before" "" { target c++ } .-1 } */
- /* { dg-error "expected ';' before" "" { target c } .-2 } */
-
- return 0;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/parser_errors3.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/parser_errors3.c
deleted file mode 100644
index 14256e9579e..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/parser_errors3.c
+++ /dev/null
@@ -1,13 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus" } */
-
-int main (void)
-{
- int array[10][10], array2[10];
-
- array2[:] = array2[1: :] ; /* { dg-error "expected expression before" "" { target c } } */
- /* { dg-error "expected primary-expression before" "" { target c++ } .-1 } */
- /* { dg-error "expected ';' before" "" { target c } .-2 } */
-
- return 0;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/parser_errors4.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/parser_errors4.c
deleted file mode 100644
index a0efc04d25e..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/parser_errors4.c
+++ /dev/null
@@ -1,11 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus" } */
-
-int main (void)
-{
- int array[10][10], array2[10];
-
- array2[:] = array2[ : : ] ; /* { dg-error " expected ']' before ':' token" } */
-
- return 0;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/pr57457-2.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/pr57457-2.c
deleted file mode 100644
index ac11b9209b1..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/pr57457-2.c
+++ /dev/null
@@ -1,15 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus" } */
-
-/* Test-case contains no array notation but is compiled with -fcilkplus.
- It will still print the too few arguments func, thereby saying the
- if-statement after the for-loop to check for !flag_enable_cilkplus ||
- !is_cilkplus_reduce_function (fundecl) is not valid is always taken. */
-
-int func (int, int); /* { dg-message "declared here" } */
-
-int main (void)
-{
- int a = 5, b = 2;
- return func (a); /* { dg-error "too few arguments to function" } */
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/pr57457.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/pr57457.c
deleted file mode 100644
index 68a1fd81185..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/pr57457.c
+++ /dev/null
@@ -1,39 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus" } */
-
-/* This test has no array notation components in it and thus should compile
- fine without crashing. */
-
-typedef unsigned int size_t;
-typedef int (*__compar_fn_t) (const void *, const void *);
-extern void *bsearch (const void *__key, const void *__base,
- size_t __nmemb, size_t __size, __compar_fn_t
- __compar)
- __attribute__ ((__nonnull__ (1, 2, 5))) ;
-extern __inline __attribute__ ((__gnu_inline__)) void *
-bsearch (const void *__key, const void *__base, size_t __nmemb, size_t
- __size,
- __compar_fn_t __compar)
-{
- size_t __l, __u, __idx;
- const void *__p;
- int __comparison;
- __l = 0;
- __u = __nmemb;
- while (__l < __u)
- {
- __idx = (__l + __u) / 2;
- __p = (void *) (((const char *) __base) +
- (__idx * __size));
- __comparison = (*__compar) (__key,
- __p);
- if (__comparison < 0)
- __u = __idx;
- else if (__comparison > 0)
- __l = __idx + 1;
- else
- return (void *)
- __p;
- }
- return ((void *)0);
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/pr57490.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/pr57490.c
deleted file mode 100644
index db38b30b5f3..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/pr57490.c
+++ /dev/null
@@ -1,28 +0,0 @@
-/* { dg-do run } */
-/* { dg-options "-fcilkplus" } */
-
-const int n = 8;
-float x[8], y[8], z[8];
-int main() {
- int i = 0;
- float x_sum =0;
- for(i=1; i<=5; i+=4 ) {
- x[0:n] = 3;
- y[0:n] = i;
- z[0:n] = 0;
- (void)((__sec_reduce_add(x[0:n])==3*n) || (__builtin_abort (), 0));
- (void)((__sec_reduce_add(y[0:n])==i*n) || (__builtin_abort (), 0));
- (void)((__sec_reduce_add(z[0:n])==0) || (__builtin_abort (), 0));
-
- if (x[0:n] >= y[0:n]) {
- z[0:n] = x[0:n] - y[0:n];
- } else {
- z[0:n] = x[0:n] + y[0:n];
- }
- (void)((__sec_reduce_add(x[0:n])==3*n) || (__builtin_abort (), 0));
- (void)((__sec_reduce_add(y[0:n])==i*n) || (__builtin_abort (), 0));
- (void)((__sec_reduce_add(z[0:n])==(3>=i?3-i:3+i)*n)
- || (__builtin_abort (), 0));
- }
- return 0;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/pr57541-2.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/pr57541-2.c
deleted file mode 100644
index 89a3d57ebdd..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/pr57541-2.c
+++ /dev/null
@@ -1,15 +0,0 @@
-/* PR middle-end/57541 */
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus" } */
-
-void foo1 ()
-{
- int a;
- a = __sec_reduce_add (1); /* { dg-error "Invalid builtin arguments" } */
-}
-
-void foo2 ()
-{
- int a;
- a = __sec_reduce_add (); /* { dg-error "Invalid builtin arguments" } */
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/pr57541.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/pr57541.c
deleted file mode 100755
index b47de1e7ebc..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/pr57541.c
+++ /dev/null
@@ -1,21 +0,0 @@
-/* PR middle-end/57541 */
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus" } */
-
-int A[10];
-
-void foo () {
- /* C compiler uses the term "undeclared" whereas C++ compiler uses
- "not declared". Thus, grepping for declared seem to be the easiest. */
- char c = (char)N; /* { dg-error "declared" } */
- /* { dg-message "note: each" "defined" { target c } .-1 } */
- short s = (short)N;
- long l = (long)N;
- A[l:s:c];
-}
-
-void foo1 (int N) {
- char c = (char)N;
- short s = (short)N;
- A[l:s:c]; /* { dg-error "declared" } */
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/pr57577.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/pr57577.c
deleted file mode 100644
index 98ab9e1665e..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/pr57577.c
+++ /dev/null
@@ -1,12 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus" } */
-
-#define NUMBER 100
-int A[NUMBER], B[NUMBER][NUMBER];
-int foo (int a);
-
-int main () {
- A[:] = foo (B[:][:]); /* { dg-error "rank mismatch between" } */
- A[0] = foo (B[:][:]); /* { dg-error "cannot be scalar when" } */
- return 0;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/pr58942.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/pr58942.c
deleted file mode 100644
index 87903af3c86..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/pr58942.c
+++ /dev/null
@@ -1,8 +0,0 @@
-/* PR c/58942 */
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus" } */
-
-int foo (int*p, int i)
-{
- return __sec_reduce_max_ind(p[1:i]);
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/pr61191.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/pr61191.c
deleted file mode 100644
index 8c32ad9a267..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/pr61191.c
+++ /dev/null
@@ -1,11 +0,0 @@
-/* PR c/61191 */
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus" } */
-
-double f(double * A, double * B)
-{
- return __sec_reduce_add((B[0:500])(; /* { dg-error "called object" "" { target c } } */
-/* { dg-error "expected expression before ';' token" "" { target c } .-1 } */
-/* { dg-error "expected primary-expression before ';' token" "" { target c++ } .-2 } */
-/* { dg-error "expected" "" { target c } .-3 } */
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/pr61455-2.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/pr61455-2.c
deleted file mode 100644
index 60b424873d9..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/pr61455-2.c
+++ /dev/null
@@ -1,13 +0,0 @@
-/* PR c++/61455 */
-/* { dg-options "-fcilkplus" } */
-
-int a[3] = {2, 3, 4};
-
-int main ()
-{
- int c = 10;
- int b = __sec_reduce_add(a[:]);
- if (b+c != 19)
- __builtin_abort();
- return 0;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/pr61455.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/pr61455.c
deleted file mode 100644
index 35a11b66c91..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/pr61455.c
+++ /dev/null
@@ -1,9 +0,0 @@
-/* PR c++/61455 */
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus" } */
-
-void foo ()
-{
- int a[2];
- int b = a[:]; /* { dg-error "cannot be scalar" } */
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/pr61962.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/pr61962.c
deleted file mode 100644
index 08d4fe23628..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/pr61962.c
+++ /dev/null
@@ -1,14 +0,0 @@
-/* PR other/61962 */
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus" } */
-
-struct FloatStruct
-{
- float *f;
-};
-
-/* Either SRC or DST must be a struct, otherwise the bug does not occur. */
-void f (struct FloatStruct* dst, float *src, unsigned int length)
-{
- dst->f[0:length] = src[0:length];
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/pr61963.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/pr61963.c
deleted file mode 100644
index 205671a5b50..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/pr61963.c
+++ /dev/null
@@ -1,9 +0,0 @@
-/* PR other/61963 */
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus" } */
-
-void f (int * int *a) /* { dg-error "expected" } */
-{
- a[0:64] = 0; /* { dg-error "was not declared" "" { target c++ } } */
- a[0:64] = 0;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/pr62008.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/pr62008.c
deleted file mode 100644
index eec57dc0359..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/pr62008.c
+++ /dev/null
@@ -1,10 +0,0 @@
-/* PR other/62008 */
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus" } */
-
-void f(int *a, int w, int h)
-{
- int tmp[w][h];
- tmp[:][:] = a[0:w][0:h]; /* { dg-error "base of array section must be pointer or array type" } */
- /* { dg-error "start-index and length fields necessary" "" { target c } .-1 } */
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/pr63884.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/pr63884.c
deleted file mode 100644
index c876a8dec00..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/pr63884.c
+++ /dev/null
@@ -1,10 +0,0 @@
-/* PR middle-end/63884 */
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus" } */
-
-int
-foo (int x, int y)
-{
- int r;
- return __builtin_sadd_overflow (x, y, &r);
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/rank_mismatch.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/rank_mismatch.c
deleted file mode 100644
index 29dee807396..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/rank_mismatch.c
+++ /dev/null
@@ -1,18 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus -w" } */
-
-/* We use -w because in the first error, there will be a warning of setting an
- integer to a pointer. Just ignore it to expose the rank mismatch error. */
-
-int main (void)
-{
- int x = 0;
- int array[10][10], array2[10];
-
- array[:][:] = array[:]; /* { dg-error "rank mismatch between" } */
- /* { dg-error "invalid conversion" "" { target c++ } .-1 } */
-
- x = array2[:]; /* { dg-error "cannot be scalar when" } */
-
- return 0;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/rank_mismatch2.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/rank_mismatch2.c
deleted file mode 100644
index 4a4882dbae6..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/rank_mismatch2.c
+++ /dev/null
@@ -1,27 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus" } */
-
-int function_call (int x);
-int function_call (int x)
-{
- return x;
-}
-
-int main (void)
-{
- int array[100], array2[100][100];
- int argc = 4;
- array[:] = array[:] + array2[:][:]; /* { dg-error "rank mismatch between" } */
-
- if (array[:] + array2[:][:]) /* { dg-error "rank mismatch between" } */
- return argc == 5;
-
- argc += function_call (array[:] + array2[5:10:2][:]); /* { dg-error "rank mismatch between" } */
-
- argc += function_call (function_call (array[:] + array2[5:10:2][:])); /* { dg-error "rank mismatch between" } */
-
- argc += __sec_reduce_add (array[:], array2[:][:]); /* { dg-error "rank mismatch between" } */
-
- argc += __sec_reduce_add (array2[:][:]) + argc; /* This is OK. */
- return argc;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/rank_mismatch3.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/rank_mismatch3.c
deleted file mode 100644
index de335922f8a..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/rank_mismatch3.c
+++ /dev/null
@@ -1,19 +0,0 @@
-/* { dg-options "-fcilkplus" } */
-
-int funct (int x, int y);
-void funct_void (int x, int y, int z);
-int main(void)
-{
- int y, array[100], array2[100], array3[100][100], array4[100];
-
- array[:] = ((array2[:] + array[:]) * array4[:]) + array3[:][:]; /* { dg-error "rank mismatch between" } */
- array[:] = funct (array2[:], array3[:][:]); /* { dg-error "rank mismatch between" } */
- array[:] = array3[:][:]; /* { dg-error "rank mismatch between" } */
- array3[:][:] = array[:]; /* { dg-error "rank mismatch between" } */
- array3[:][:] = array[5]; /* This is OK! */
- funct_void (array2[:], array3[:][:], array[:]); /* { dg-error "rank mismatch between" } */
- funct_void (array2[:], array3[:][:], array[:]); /* { dg-error "rank mismatch between" } */
- funct_void (array3[:][:], array2[:], array[:]); /* { dg-error "rank mismatch between" } */
- funct_void (array2[:], array[:], array3[:][0:10:1]); /* { dg-error "rank mismatch between" } */
- return 0;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/sec_implicit.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/sec_implicit.c
deleted file mode 100644
index bacbf350566..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/sec_implicit.c
+++ /dev/null
@@ -1,11 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus" } */
-
-int main (void)
-{
- int array[10][10], array2[10];
-
- array[:][:] = __sec_implicit_index(5) + array[:][:]; /* { dg-error "__sec_implicit_index argument" } */
-
- return 0;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/sec_implicit2.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/sec_implicit2.c
deleted file mode 100644
index 0aef0c29aca..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/sec_implicit2.c
+++ /dev/null
@@ -1,11 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus" } */
-
-int main (void)
-{
- int argc = 2;
- int array[10][10], array2[10];
- __asm volatile ("" : "+r" (argc));
- array[:][:] = __sec_implicit_index(argc) + array[:][:]; /* { dg-error "__sec_implicit_index parameter" } */
- return 0;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/sec_implicit_ex.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/sec_implicit_ex.c
deleted file mode 100644
index 419799a3b2b..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/sec_implicit_ex.c
+++ /dev/null
@@ -1,29 +0,0 @@
-/* { dg-do run } */
-/* { dg-options "-fcilkplus" } */
-
-#define NUMBER 20
-
-int main(void)
-{
- int jj, kk, array_3C[NUMBER][NUMBER][NUMBER];
- int ii,array[NUMBER], y = 0, y_int = 0, array2[NUMBER],
- array_3[NUMBER][NUMBER][NUMBER];
- double x, yy, array3[NUMBER], array4[NUMBER];
-
- array[:] = __sec_implicit_index (0);
- array_3[:][:][:] = __sec_implicit_index (1) + __sec_implicit_index(0) +
- __sec_implicit_index (2);
-
- for (ii = 0; ii < NUMBER; ii++)
- for (jj = 0; jj < NUMBER; jj++)
- for (kk = 0; kk < NUMBER; kk++)
- array_3C[ii][jj][kk] = ii+jj+kk;
-
- for (ii = 0; ii < NUMBER; ii++)
- for (jj = 0; jj < NUMBER; jj++)
- for (kk = 0; kk < NUMBER; kk++)
- if (array_3[ii][jj][kk] != array_3C[ii][jj][kk])
- return 1;
-
- return 0;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/sec_reduce_ind_same_value.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/sec_reduce_ind_same_value.c
deleted file mode 100644
index 34c6f12846d..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/sec_reduce_ind_same_value.c
+++ /dev/null
@@ -1,21 +0,0 @@
-/* { dg-do run } */
-/* { dg-options "-fcilkplus" } */
-
-int A[256];
-
-int main () {
- A[:] = 2;
- int max_index = 0, min_index = 0;
-
- max_index = __sec_reduce_max_ind (A[:]);
-
- if (max_index != 255)
- return 1;
-
- min_index = __sec_reduce_min_ind (A[:]);
- if (min_index != 255)
- return 2;
-
- return 0;
-}
-
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/sec_reduce_max_min_ind.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/sec_reduce_max_min_ind.c
deleted file mode 100644
index 9652e1594b4..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/sec_reduce_max_min_ind.c
+++ /dev/null
@@ -1,17 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus" } */
-
-int main (void)
-{
- int array[10][10], array2[10];
- int x, y;
- x = __sec_reduce_max_ind (array[:][:]); /* { dg-error "cannot have arrays with dimension greater than" } */
-
- y = __sec_reduce_max_ind (array2[:]); /* this should be OK. */
-
- x = __sec_reduce_min_ind (array[:][:]); /* { dg-error "cannot have arrays with dimension greater than" } */
-
- y = __sec_reduce_min_ind (array2[:]); /* this should be OK. */
-
- return 0;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/sec_reduce_return.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/sec_reduce_return.c
deleted file mode 100644
index 034017146f3..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/sec_reduce_return.c
+++ /dev/null
@@ -1,29 +0,0 @@
-/* { dg-do run } */
-/* { dg-options "-fcilkplus" } */
-
-int add_all (int *my_array, int size)
-{
- return __sec_reduce_add (my_array[0:size]);
-}
-
-int mult_all (int *my_array, int size)
-{
- return __sec_reduce_mul (my_array[0:size]);
-}
-
-int main (void)
-{
- int argc = 1;
- int array[10000];
-
- __asm volatile ("" : "+r" (argc));
- array[:] = argc; /* All elements should be one. */
-
- if (add_all (array, 10000) != 10000)
- return 1;
-
- if (mult_all (array, 10000) != 1)
- return 2;
-
- return 0;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/side-effects-1.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/side-effects-1.c
deleted file mode 100644
index 8b0034e727b..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/side-effects-1.c
+++ /dev/null
@@ -1,26 +0,0 @@
-/* { dg-do run } */
-/* { dg-options "-fcilkplus" } */
-
-/* Test that the array index, limit, and stride are evaluated only
- once. */
-
-int array[1000];
-
-int func1_times = 0;
-int func2_times = 0;
-int func3_times = 0;
-int func1() { func1_times++; return 0; }
-int func2() { func2_times++; return 0; }
-int func3() { func3_times++; return 0; }
-
-int main()
-{
- array[func1() + 11 : func2() + 22 : func3() + 33] = 666;
-
- if (func1_times != 1
- || func2_times != 1
- || func3_times != 1)
- return 1;
-
- return 0;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/test_builtin_return.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/test_builtin_return.c
deleted file mode 100644
index b9f9f8d6507..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/test_builtin_return.c
+++ /dev/null
@@ -1,73 +0,0 @@
-/* { dg-options "-lm -fcilkplus" } */
-/* { dg-do run } */
-
-#if HAVE_IO
-#include <stdio.h>
-#endif
-#include <math.h>
-#define NUMBER 5
-
-int func1 (int *a1, int *a2)
-{
- return __sec_reduce_add (a1[0:NUMBER] * a2[0:NUMBER:1]);
-}
-
-int func2 (int *a1, int *a2)
-{
- return (__sec_reduce_add (a1[0:NUMBER] * a2[0:NUMBER]) +
- __sec_reduce_mul (a1[0:NUMBER] + a2[0:NUMBER]));
-}
-
-int func3 (int *a1, int *a2)
-{
- return (int) sqrt ((double)(__sec_reduce_add (a1[0:NUMBER] * a2[0:NUMBER]) +
- a2[0] + a2[1] + a2[3]));
-}
-
-int func4 (int *a1, int *a2)
-{
- return a1[NUMBER-1] * (__sec_reduce_add (a1[0:NUMBER] * a2[0:NUMBER]) + a2[0] + a2[1] + a2[3])/a1[NUMBER-2];
-}
-int main(void)
-{
- int array[NUMBER], array2[NUMBER];
- int return_value = 0;
- int ii = 0;
- int argc = 1;
- __asm volatile ("" : "+r" (argc));
- for (ii = 0; ii < NUMBER; ii++)
- {
- array[ii] = argc; /* This should calculate to 1. */
- array2[ii] = argc * argc + argc; /* This should calculate to 2. */
- }
-
- return_value = func1 (array, array2);
-#if HAVE_IO
- printf("Return_value = %d\n", return_value);
-#endif
- if (return_value != (2+2+2+2+2))
- return 1;
-
- return_value = func2 (array2, array);
-#if HAVE_IO
- printf("Return_value = %d\n", return_value);
-#endif
- if (return_value != (3*3*3*3*3) + (2+2+2+2+2))
- return 2;
-
- return_value = func3 (array, array2);
-#if HAVE_IO
- printf("Return_value = %d\n", return_value);
-#endif
- if (return_value != 4)
- return 3;
-
- return_value = func4 (array, array2);
-#if HAVE_IO
- printf("Return_value = %d\n", return_value);
-#endif
- if (return_value != 16)
- return 4;
-
- return 0;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/test_sec_limits.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/test_sec_limits.c
deleted file mode 100644
index f4f3ca5a6bb..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/test_sec_limits.c
+++ /dev/null
@@ -1,18 +0,0 @@
-/* { dg-do run } */
-/* { dg-options "-fcilkplus" } */
-
-#include <limits.h>
-int A[16];
-int a = 0;
-
-int main () {
- if (__sec_reduce_max(A[0:0:2]) != INT_MIN)
- a++;
-
- if (__sec_reduce_min(A[0:0:2]) != INT_MAX)
- a++;
-
- return a;
-}
-
-
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/tst_lngth.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/tst_lngth.c
deleted file mode 100644
index 015a7eb7370..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/tst_lngth.c
+++ /dev/null
@@ -1,19 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options " -fcilkplus " } */
-
-#if HAVE_IO
-#include <stdio.h>
-#endif
-
-#define N 256
-int A[N], B[N];
-
-int
-main ()
-{
- A[0:(N / 4)] = A[4]+ B[0:(N / 2):2]; /* { dg-error "length mismatch between" } */
- A[0:(N / 4)] = B[0:(N / 2):2] + N; /* { dg-error "length mismatch between" } */
- A[0:(N / 4)] = B[0:(N / 2):2] + A[4]; /* { dg-error "length mismatch between" } */
- return 0;
-}
-
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/vla.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/vla.c
deleted file mode 100644
index 3b0777e0f3b..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/vla.c
+++ /dev/null
@@ -1,20 +0,0 @@
-/* { dg-do compile { target c } } */
-/* { dg-options "-fcilkplus -std=c99 -w" } */
-
-int func (int x)
-{
- return x++;
-}
-int main(void)
-{
- int argc = 1;
- __asm volatile ("" : "+r" (argc));
- int array[argc];
-
- array[:] = 5; /* { dg-error "start-index and length fields necessary for using array notations in variable-length arrays." } */
- array[0:argc] = 5; /* This is OK. */
- array[0:5:2] = 5; /* This is OK. */
- array[0:argc:2] = 5; /* This is OK. */
- array[0:argc:func (argc-2)] = 5; /* This is OK. */
- return 0;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/CK/Wparentheses-1.c b/gcc/testsuite/c-c++-common/cilk-plus/CK/Wparentheses-1.c
deleted file mode 100644
index f07b49a2775..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/CK/Wparentheses-1.c
+++ /dev/null
@@ -1,69 +0,0 @@
-/* PR c/70436 */
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus -Wparentheses" } */
-/* { dg-additional-options "-std=gnu99" { target c } } */
-
-int a, b, c;
-void bar (void);
-void baz (void);
-
-void
-f1 (void)
-{
- if (a) /* { dg-warning "ambiguous" } */
- _Cilk_for (int i = 0; i < 10; i++)
- if (b)
- bar ();
- else
- baz ();
-
- if (a)
- _Cilk_for (int i = 0; i < 10; i++)
- {
- if (b)
- bar ();
- else
- baz ();
- }
-
- if (a)
- _Cilk_for (int i = 0; i < 10; i++)
- {
- if (b)
- bar ();
- }
- else
- baz ();
-}
-
-void
-f2 (void)
-{
- if (a) /* { dg-warning "ambiguous" } */
- #pragma cilk grainsize = 2
- _Cilk_for (int i = 0; i < 10; i++)
- if (b)
- bar ();
- else
- baz ();
-
- if (a)
- #pragma cilk grainsize = 2
- _Cilk_for (int i = 0; i < 10; i++)
- {
- if (b)
- bar ();
- else
- baz ();
- }
-
- if (a)
- #pragma cilk grainsize = 2
- _Cilk_for (int i = 0; i < 10; i++)
- {
- if (b)
- bar ();
- }
- else
- baz ();
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/CK/cilk-for-2.c b/gcc/testsuite/c-c++-common/cilk-plus/CK/cilk-for-2.c
deleted file mode 100644
index 32e4b9a5769..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/CK/cilk-for-2.c
+++ /dev/null
@@ -1,393 +0,0 @@
-/* { dg-do run } */
-/* { dg-require-effective-target cilkplus_runtime } */
-/* { dg-options "-fcilkplus" } */
-/* { dg-additional-options "-std=gnu99" { target c } } */
-
-int msk;
-
-#define BODY \
- do { \
- int j = (i >= 30U) ? 30 : i; \
- if (__atomic_fetch_or (&msk, 1 << j, __ATOMIC_RELAXED) & (1 << j)) \
- __builtin_abort (); \
- } while (0)
-#define TEST(x) if (msk != (x)) __builtin_abort (); msk = 0
-
-__attribute__((noinline, noclone)) void
-test (int seven, int three, int two, int minustwo, int ten,
- int zero, int eleven, int six, int one, int threealt,
- unsigned long int sevenUL, unsigned long int threeUL,
- unsigned long int twoUL, unsigned long int minustwoUL,
- unsigned long int tenUL, unsigned long int zeroUL,
- unsigned long int elevenUL, unsigned long int sixUL,
- unsigned long int oneUL, unsigned long int threealtUL)
-{
- _Cilk_for (int i = seven; i < three; ++i)
- __builtin_abort ();
- _Cilk_for (int i = seven; i <= three; ++i)
- __builtin_abort ();
- _Cilk_for (int i = three; i != threealt; ++i)
- __builtin_abort ();
- _Cilk_for (int i = seven; i < three; i += two)
- __builtin_abort ();
- _Cilk_for (int i = seven; i <= three; i += two)
- __builtin_abort ();
- _Cilk_for (int i = three; i != threealt; i += two)
- __builtin_abort ();
- _Cilk_for (int i = seven; i < three; i -= minustwo)
- __builtin_abort ();
- _Cilk_for (int i = seven; i <= three; i -= minustwo)
- __builtin_abort ();
- _Cilk_for (int i = three; i != threealt; i -= minustwo)
- __builtin_abort ();
- _Cilk_for (int i = three; i > seven; --i)
- __builtin_abort ();
- _Cilk_for (int i = three; i >= seven; i--)
- __builtin_abort ();
- _Cilk_for (int i = three; i != threealt; i--)
- __builtin_abort ();
- _Cilk_for (int i = three; i > seven; i -= two)
- __builtin_abort ();
- _Cilk_for (int i = three; i >= seven; i -= two)
- __builtin_abort ();
- _Cilk_for (int i = three; i != threealt; i -= two)
- __builtin_abort ();
- _Cilk_for (int i = three; i > seven; i += minustwo)
- __builtin_abort ();
- _Cilk_for (int i = three; i >= seven; i += minustwo)
- __builtin_abort ();
- _Cilk_for (int i = three; i != threealt; i += minustwo)
- __builtin_abort ();
- _Cilk_for (int i = three; i < seven; ++i)
- BODY;
- TEST (0x78);
- _Cilk_for (int i = three; i <= seven; i++)
- BODY;
- TEST (0xf8);
- _Cilk_for (int i = three; i != seven; i++)
- BODY;
- TEST (0x78);
- _Cilk_for (int i = zero; i < ten; i += two)
- BODY;
- TEST (0x155);
- _Cilk_for (int i = zero; i <= ten; i += two)
- BODY;
- TEST (0x555);
- _Cilk_for (int i = zero; i != ten; i += two)
- BODY;
- TEST (0x155);
- _Cilk_for (int i = zero; i < ten; i -= minustwo)
- BODY;
- TEST (0x155);
- _Cilk_for (int i = zero; i <= ten; i -= minustwo)
- BODY;
- TEST (0x555);
- _Cilk_for (int i = zero; i != ten; i -= minustwo)
- BODY;
- TEST (0x155);
- _Cilk_for (int i = six; i > two; --i)
- BODY;
- TEST (0x78);
- _Cilk_for (int i = seven; i >= three; i--)
- BODY;
- TEST (0xf8);
- _Cilk_for (int i = seven; i != three; i--)
- BODY;
- TEST (0xf0);
- _Cilk_for (int i = eleven; i > one; i += minustwo)
- BODY;
- TEST (0xaa8);
- _Cilk_for (int i = eleven; i >= two; i += minustwo)
- BODY;
- TEST (0xaa8);
- _Cilk_for (int i = eleven; i != one; i += minustwo)
- BODY;
- TEST (0xaa8);
- _Cilk_for (int i = eleven; i > one; i -= two)
- BODY;
- TEST (0xaa8);
- _Cilk_for (int i = eleven; i >= two; i -= two)
- BODY;
- TEST (0xaa8);
- _Cilk_for (int i = eleven; i != one; i -= two)
- BODY;
- TEST (0xaa8);
- _Cilk_for (unsigned long int i = sevenUL; i < threeUL; ++i)
- __builtin_abort ();
- _Cilk_for (unsigned long int i = sevenUL; i <= threeUL; ++i)
- __builtin_abort ();
- _Cilk_for (unsigned long int i = threeUL; i != threealtUL; ++i)
- __builtin_abort ();
- _Cilk_for (unsigned long int i = sevenUL; i < threeUL; i += twoUL)
- __builtin_abort ();
- _Cilk_for (unsigned long int i = sevenUL; i <= threeUL; i += twoUL)
- __builtin_abort ();
- _Cilk_for (unsigned long int i = threeUL; i != threealtUL; i += twoUL)
- __builtin_abort ();
- _Cilk_for (unsigned long int i = sevenUL; i < threeUL; i -= minustwoUL)
- __builtin_abort ();
- _Cilk_for (unsigned long int i = sevenUL; i <= threeUL; i -= minustwoUL)
- __builtin_abort ();
- _Cilk_for (unsigned long int i = threeUL; i != threealtUL; i -= minustwoUL)
- __builtin_abort ();
- _Cilk_for (unsigned long int i = threeUL; i > sevenUL; --i)
- __builtin_abort ();
- _Cilk_for (unsigned long int i = threeUL; i >= sevenUL; i--)
- __builtin_abort ();
- _Cilk_for (unsigned long int i = threeUL; i != threealtUL; i--)
- __builtin_abort ();
- _Cilk_for (unsigned long int i = threeUL; i > sevenUL; i -= twoUL)
- __builtin_abort ();
- _Cilk_for (unsigned long int i = threeUL; i >= sevenUL; i -= twoUL)
- __builtin_abort ();
- _Cilk_for (unsigned long int i = threeUL; i != threealtUL; i -= twoUL)
- __builtin_abort ();
- _Cilk_for (unsigned long int i = threeUL; i > sevenUL; i += minustwoUL)
- __builtin_abort ();
- _Cilk_for (unsigned long int i = threeUL; i >= sevenUL; i += minustwoUL)
- __builtin_abort ();
- _Cilk_for (unsigned long int i = threeUL; i != threealtUL; i += minustwoUL)
- __builtin_abort ();
- _Cilk_for (unsigned long int i = threeUL; i < sevenUL; ++i)
- BODY;
- TEST (0x78);
- _Cilk_for (unsigned long int i = threeUL; i <= sevenUL; i++)
- BODY;
- TEST (0xf8);
- _Cilk_for (unsigned long int i = threeUL; i != sevenUL; i++)
- BODY;
- TEST (0x78);
- _Cilk_for (unsigned long int i = zeroUL; i < tenUL; i += twoUL)
- BODY;
- TEST (0x155);
- _Cilk_for (unsigned long int i = zeroUL; i <= tenUL; i += twoUL)
- BODY;
- TEST (0x555);
- _Cilk_for (unsigned long int i = zeroUL; i != tenUL; i += twoUL)
- BODY;
- TEST (0x155);
- _Cilk_for (unsigned long int i = zeroUL; i < tenUL; i -= minustwoUL)
- BODY;
- TEST (0x155);
- _Cilk_for (unsigned long int i = zeroUL; i <= tenUL; i -= minustwoUL)
- BODY;
- TEST (0x555);
- _Cilk_for (unsigned long int i = zeroUL; i != tenUL; i -= minustwoUL)
- BODY;
- TEST (0x155);
- _Cilk_for (unsigned long int i = sixUL; i > twoUL; --i)
- BODY;
- TEST (0x78);
- _Cilk_for (unsigned long int i = sevenUL; i >= threeUL; i--)
- BODY;
- TEST (0xf8);
- _Cilk_for (unsigned long int i = sevenUL; i != threeUL; i--)
- BODY;
- TEST (0xf0);
- _Cilk_for (unsigned long int i = elevenUL; i > oneUL; i += minustwoUL)
- BODY;
- TEST (0xaa8);
- _Cilk_for (unsigned long int i = elevenUL; i >= twoUL; i += minustwoUL)
- BODY;
- TEST (0xaa8);
- _Cilk_for (unsigned long int i = elevenUL; i != oneUL; i += minustwoUL)
- BODY;
- TEST (0xaa8);
- _Cilk_for (unsigned long int i = elevenUL; i > oneUL; i -= twoUL)
- BODY;
- TEST (0xaa8);
- _Cilk_for (unsigned long int i = elevenUL; i >= twoUL; i -= twoUL)
- BODY;
- TEST (0xaa8);
- _Cilk_for (unsigned long int i = elevenUL; i != oneUL; i -= twoUL)
- BODY;
- TEST (0xaa8);
-}
-
-int
-main ()
-{
- _Cilk_for (int i = 7; i < 3; ++i)
- __builtin_abort ();
- _Cilk_for (int i = 7; i <= 3; ++i)
- __builtin_abort ();
- _Cilk_for (int i = 3; i != 3; ++i)
- __builtin_abort ();
- _Cilk_for (int i = 7; i < 3; i += 2)
- __builtin_abort ();
- _Cilk_for (int i = 7; i <= 3; i += 2)
- __builtin_abort ();
- _Cilk_for (int i = 3; i != 3; i += 2)
- __builtin_abort ();
- _Cilk_for (int i = 7; i < 3; i -= -2)
- __builtin_abort ();
- _Cilk_for (int i = 7; i <= 3; i -= -2)
- __builtin_abort ();
- _Cilk_for (int i = 3; i != 3; i -= -2)
- __builtin_abort ();
- _Cilk_for (int i = 3; i > 7; --i)
- __builtin_abort ();
- _Cilk_for (int i = 3; i >= 7; i--)
- __builtin_abort ();
- _Cilk_for (int i = 3; i != 3; i--)
- __builtin_abort ();
- _Cilk_for (int i = 3; i > 7; i -= 2)
- __builtin_abort ();
- _Cilk_for (int i = 3; i >= 7; i -= 2)
- __builtin_abort ();
- _Cilk_for (int i = 3; i != 3; i -= 2)
- __builtin_abort ();
- _Cilk_for (int i = 3; i > 7; i += -2)
- __builtin_abort ();
- _Cilk_for (int i = 3; i >= 7; i += -2)
- __builtin_abort ();
- _Cilk_for (int i = 3; i != 3; i += -2)
- __builtin_abort ();
- _Cilk_for (int i = 3; i < 7; ++i)
- BODY;
- TEST (0x78);
- _Cilk_for (int i = 3; i <= 7; i++)
- BODY;
- TEST (0xf8);
- _Cilk_for (int i = 3; i != 7; i++)
- BODY;
- TEST (0x78);
- _Cilk_for (int i = 0; i < 10; i += 2)
- BODY;
- TEST (0x155);
- _Cilk_for (int i = 0; i <= 10; i += 2)
- BODY;
- TEST (0x555);
- _Cilk_for (int i = 0; i != 10; i += 2)
- BODY;
- TEST (0x155);
- _Cilk_for (int i = 0; i < 10; i -= -2)
- BODY;
- TEST (0x155);
- _Cilk_for (int i = 0; i <= 10; i -= -2)
- BODY;
- TEST (0x555);
- _Cilk_for (int i = 0; i != 10; i -= -2)
- BODY;
- TEST (0x155);
- _Cilk_for (int i = 6; i > 2; --i)
- BODY;
- TEST (0x78);
- _Cilk_for (int i = 7; i >= 3; i--)
- BODY;
- TEST (0xf8);
- _Cilk_for (int i = 7; i != 3; i--)
- BODY;
- TEST (0xf0);
- _Cilk_for (int i = 11; i > 1; i += -2)
- BODY;
- TEST (0xaa8);
- _Cilk_for (int i = 11; i >= 2; i += -2)
- BODY;
- TEST (0xaa8);
- _Cilk_for (int i = 11; i != 1; i += -2)
- BODY;
- TEST (0xaa8);
- _Cilk_for (int i = 11; i > 1; i -= 2)
- BODY;
- TEST (0xaa8);
- _Cilk_for (int i = 11; i >= 2; i -= 2)
- BODY;
- TEST (0xaa8);
- _Cilk_for (int i = 11; i != 1; i -= 2)
- BODY;
- TEST (0xaa8);
- _Cilk_for (unsigned long int i = 7UL; i < 3UL; ++i)
- __builtin_abort ();
- _Cilk_for (unsigned long int i = 7UL; i <= 3UL; ++i)
- __builtin_abort ();
- _Cilk_for (unsigned long int i = 3UL; i != 3UL; ++i)
- __builtin_abort ();
- _Cilk_for (unsigned long int i = 7UL; i < 3UL; i += 2UL)
- __builtin_abort ();
- _Cilk_for (unsigned long int i = 7UL; i <= 3UL; i += 2UL)
- __builtin_abort ();
- _Cilk_for (unsigned long int i = 3UL; i != 3UL; i += 2UL)
- __builtin_abort ();
- _Cilk_for (unsigned long int i = 7UL; i < 3UL; i -= -2UL)
- __builtin_abort ();
- _Cilk_for (unsigned long int i = 7UL; i <= 3UL; i -= -2UL)
- __builtin_abort ();
- _Cilk_for (unsigned long int i = 3UL; i != 3UL; i -= -2UL)
- __builtin_abort ();
- _Cilk_for (unsigned long int i = 3UL; i > 7UL; --i)
- __builtin_abort ();
- _Cilk_for (unsigned long int i = 3UL; i >= 7UL; i--)
- __builtin_abort ();
- _Cilk_for (unsigned long int i = 3UL; i != 3UL; i--)
- __builtin_abort ();
- _Cilk_for (unsigned long int i = 3UL; i > 7UL; i -= 2UL)
- __builtin_abort ();
- _Cilk_for (unsigned long int i = 3UL; i >= 7UL; i -= 2UL)
- __builtin_abort ();
- _Cilk_for (unsigned long int i = 3UL; i != 3UL; i -= 2UL)
- __builtin_abort ();
- _Cilk_for (unsigned long int i = 3UL; i > 7UL; i += -2UL)
- __builtin_abort ();
- _Cilk_for (unsigned long int i = 3UL; i >= 7UL; i += -2UL)
- __builtin_abort ();
- _Cilk_for (unsigned long int i = 3UL; i != 3UL; i += -2UL)
- __builtin_abort ();
- _Cilk_for (unsigned long int i = 3UL; i < 7UL; ++i)
- BODY;
- TEST (0x78);
- _Cilk_for (unsigned long int i = 3UL; i <= 7UL; i++)
- BODY;
- TEST (0xf8);
- _Cilk_for (unsigned long int i = 3UL; i != 7UL; i++)
- BODY;
- TEST (0x78);
- _Cilk_for (unsigned long int i = 0UL; i < 10UL; i += 2UL)
- BODY;
- TEST (0x155);
- _Cilk_for (unsigned long int i = 0UL; i <= 10UL; i += 2UL)
- BODY;
- TEST (0x555);
- _Cilk_for (unsigned long int i = 0UL; i != 10UL; i += 2UL)
- BODY;
- TEST (0x155);
- _Cilk_for (unsigned long int i = 0UL; i < 10UL; i -= -2UL)
- BODY;
- TEST (0x155);
- _Cilk_for (unsigned long int i = 0UL; i <= 10UL; i -= -2UL)
- BODY;
- TEST (0x555);
- _Cilk_for (unsigned long int i = 0UL; i != 10UL; i -= -2UL)
- BODY;
- TEST (0x155);
- _Cilk_for (unsigned long int i = 6UL; i > 2UL; --i)
- BODY;
- TEST (0x78);
- _Cilk_for (unsigned long int i = 7UL; i >= 3UL; i--)
- BODY;
- TEST (0xf8);
- _Cilk_for (unsigned long int i = 7UL; i != 3UL; i--)
- BODY;
- TEST (0xf0);
- _Cilk_for (unsigned long int i = 11UL; i > 1UL; i += -2UL)
- BODY;
- TEST (0xaa8);
- _Cilk_for (unsigned long int i = 11UL; i >= 2UL; i += -2UL)
- BODY;
- TEST (0xaa8);
- _Cilk_for (unsigned long int i = 11UL; i != 1UL; i += -2UL)
- BODY;
- TEST (0xaa8);
- _Cilk_for (unsigned long int i = 11UL; i > 1UL; i -= 2UL)
- BODY;
- TEST (0xaa8);
- _Cilk_for (unsigned long int i = 11UL; i >= 2UL; i -= 2UL)
- BODY;
- TEST (0xaa8);
- _Cilk_for (unsigned long int i = 11UL; i != 1UL; i -= 2UL)
- BODY;
- TEST (0xaa8);
- test (7, 3, 2, -2, 10, 0, 11, 6, 1, 3,
- 7UL, 3UL, 2UL, -2UL, 10UL, 0UL, 11UL, 6UL, 1UL, 3UL);
- return 0;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/CK/cilk-for-3.c b/gcc/testsuite/c-c++-common/cilk-plus/CK/cilk-for-3.c
deleted file mode 100644
index 04c1635b012..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/CK/cilk-for-3.c
+++ /dev/null
@@ -1,19 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus" } */
-/* { dg-additional-options "-std=gnu99" { target c } } */
-
-void bar (int *, int *, int *, int *);
-void baz (char **, char **, char **, int *);
-
-void
-foo ()
-{
- int a, b, c;
- char *d, *e;
- bar (0, &a, &b, &c);
- _Cilk_for (int i = a; i < b; i += c)
- bar (&i, &a, &b, &c);
- baz (0, &d, &e, &c);
- _Cilk_for (char *p = d; p != e; p += c)
- baz (&p, &d, &e, &c);
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/CK/cilk-fors.c b/gcc/testsuite/c-c++-common/cilk-plus/CK/cilk-fors.c
deleted file mode 100644
index 6b2bbf779ae..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/CK/cilk-fors.c
+++ /dev/null
@@ -1,87 +0,0 @@
-/* { dg-do run } */
-/* { dg-require-effective-target cilkplus_runtime } */
-/* { dg-options "-fcilkplus" } */
-/* { dg-additional-options "-std=gnu99" { target c } } */
-
-#if HAVE_IO
-#include <stdio.h>
-#endif
-
-static void check (int *Array, int start, int end, int incr, int value)
-{
- int ii = 0;
- for (ii = start; ii < end; ii = ii + incr)
- if (Array[ii] != value)
- __builtin_abort ();
-#if HAVE_IO
- printf ("Passed\n");
-#endif
-}
-
-static void check_reverse (int *Array, int start, int end, int incr, int value)
-{
- int ii = 0;
- for (ii = start; ii >= end; ii = ii - incr)
- if (Array[ii] != value)
- __builtin_abort ();
-#if HAVE_IO
- printf ("Passed\n");
-#endif
-}
-
-
-int main (void)
-{
- int Array[10];
- int x = 9, y = 0, z = 3;
-
-
- _Cilk_for (int ii = 0; ii < 10; ii++)
- Array[ii] = 1133;
- check (Array, 0, 10, 1, 1133);
-
- _Cilk_for (int ii = 0; ii < 10; ++ii)
- Array[ii] = 3311;
- check (Array, 0, 10, 1, 3311);
-
- _Cilk_for (int ii = 9; ii > -1; ii--)
- Array[ii] = 4433;
- check_reverse (Array, 9, 0, 1, 4433);
-
- _Cilk_for (int ii = 9; ii > -1; --ii)
- Array[ii] = 9988;
- check_reverse (Array, 9, 0, 1, 9988);
-
- _Cilk_for (int ii = 0; ii < 10; ++ii)
- Array[ii] = 3311;
- check (Array, 0, 10, 1, 3311);
-
- _Cilk_for (int ii = 0; ii < 10; ii += 2)
- Array[ii] = 1328;
- check (Array, 0, 10, 2, 1328);
-
- _Cilk_for (int ii = 9; ii >= 0; ii -= 2)
- Array[ii] = 1738;
- check_reverse (Array, 9, 0, 2, 1738);
-
-
- _Cilk_for (int ii = 0; ii < 10; ii++)
- {
- if (ii % 2)
- Array[ii] = 1343;
- else
- Array[ii] = 3413;
- }
-
- check (Array, 1, 10, 2, 1343);
- check (Array, 0, 10, 2, 3413);
-
- _Cilk_for (short cc = 0; cc < 10; cc++)
- Array[cc] = 1343;
- check (Array, 0, 10, 1,1343);
-
- _Cilk_for (short cc = 9; cc >= 0; cc--)
- Array[cc] = 1348;
- check_reverse (Array, 9, 0, 1, 1348);
- return 0;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/CK/cilk_for_errors.c b/gcc/testsuite/c-c++-common/cilk-plus/CK/cilk_for_errors.c
deleted file mode 100644
index ca080c8f27a..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/CK/cilk_for_errors.c
+++ /dev/null
@@ -1,53 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus" } */
-/* { dg-additional-options "-std=c99" { target c } } */
-
-
-int main (void)
-{
- int q = 0, ii = 0, jj = 0;
-
- _Cilk_for (int ii; ii < 10; ii++) /* { dg-error "is not initialized" "" { target c } } */
- /* { dg-error "expected" "" { target c++ } .-1 } */
- q = 5;
-
- _Cilk_for (; ii < 10; ii++) /* { dg-error "expected iteration declaration" } */
- q = 2;
-
- _Cilk_for (int ii = 0; ; ii++) /* { dg-error "missing controlling predicate" } */
- q = 2;
-
- _Cilk_for (int ii = 0; ii < 10, jj < 10; ii++) /* { dg-error "expected ';' before ',' token" "" { target c } } */
- /* { dg-error "invalid controlling predicate" "" { target c++ } .-1 } */
- q = 5;
-
- _Cilk_for (int ii = 0; ii < 10; ) /* { dg-error "missing increment" } */
- q = 5;
-
- _Cilk_for (int ii = 0, jj = 0; ii < 10; ii++) /* { dg-error "expected|invalid" } */
- q = 5;
-
- _Cilk_for (volatile int vii = 0; vii < 10; vii++) /* { dg-error "iteration variable cannot be volatile" } */
- q = 5;
-
- _Cilk_for (static int sii = 0; sii < 10; sii++) /* { dg-error "static|expected|declared|expression" } */
- q = 5;
-
- _Cilk_for (float fii = 3.47; fii < 5.23; fii++) /* { dg-error "invalid type for iteration variable" } */
- q = 5;
-
- _Cilk_for (int ii = 0; 10 > jj; ii++) /* { dg-error "invalid controlling predicate" } */
- q = 5;
-
- _Cilk_for (int ii = 0; ii < 10; ii >> 1) /* { dg-error "invalid increment expression" } */
- q = 5;
-
- _Cilk_for (int ii = 10; ii >= 0; ii--) /* This is OK! */
- q = 5;
-
- _Cilk_for (int ii; ii < 10; ii++) /* { dg-error "is not initialized" "" { target c } } */
- /* { dg-error "expected" "" { target c++ } .-1 } */
- q = 5;
-
- return 0;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/CK/cilk_for_grain.c b/gcc/testsuite/c-c++-common/cilk-plus/CK/cilk_for_grain.c
deleted file mode 100644
index 5a95a06274f..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/CK/cilk_for_grain.c
+++ /dev/null
@@ -1,35 +0,0 @@
-/* { dg-do run } */
-/* { dg-require-effective-target cilkplus_runtime } */
-/* { dg-options "-fcilkplus" } */
-/* { dg-additional-options "-std=gnu99" { target c } } */
-
-
-int grain_value = 2;
-int main (void)
-{
- int Array1[200], Array1_Serial[200];
-
- for (int ii = 0; ii < 200; ii++)
- {
- Array1_Serial[ii] = 2;
- Array1[ii] = 1;
- }
-
-#pragma cilk grainsize = 2
- _Cilk_for (int ii = 0; ii < 200; ii++)
- Array1[ii] = 2;
-
- for (int ii = 0; ii < 200; ii++)
- if (Array1[ii] != Array1_Serial[ii])
- return (ii+1);
-
-#pragma cilk grainsize = grain_value
- _Cilk_for (int ii = 0; ii < 200; ii++)
- Array1[ii] = 2;
-
- for (int ii = 0; ii < 200; ii++)
- if (Array1[ii] != Array1_Serial[ii])
- return (ii+1);
-
- return 0;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/CK/cilk_for_grain_errors.c b/gcc/testsuite/c-c++-common/cilk-plus/CK/cilk_for_grain_errors.c
deleted file mode 100644
index bb722811202..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/CK/cilk_for_grain_errors.c
+++ /dev/null
@@ -1,48 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus -Wunknown-pragmas" } */
-/* { dg-additional-options "-std=c99" { target c } } */
-
-
-char Array1[26];
-
-#pragma cilk grainsize = 2 /* { dg-error "must be inside a function" } */
-
-int main(int argc, char **argv)
-{
-/* This is OK. */
-#pragma cilk grainsize = 2
- _Cilk_for (int ii = 0; ii < 10; ii++)
- Array1[ii] = 0;
-
-#pragma cilk grainsize 2 /* { dg-error "expected '=' before numeric constant" } */
- _Cilk_for (int ii = 0; ii < 10; ii++)
- Array1[ii] = 0;
-
-#pragma cilk grainsiz = 2 /* { dg-warning "-:ignoring #pragma cilk grainsiz" } */
- _Cilk_for (int ii = 0; ii < 10; ii++)
- Array1[ii] = 0;
-
-
-/* This is OK, it will do a type conversion to long int. */
-#pragma cilk grainsize = 0.5
- _Cilk_for (int ii = 0; ii < 10; ii++)
- Array1[ii] = 0;
-
-#pragma cilk grainsize = 1
- while (Array1[5] != 0) /* { dg-warning "is not followed by" } */
- {
- /* Blah */
- }
-
-#pragma cilk grainsize = 1
- int q = 0; /* { dg-warning "is not followed by" } */
- _Cilk_for (q = 0; q < 10; q++) /* { dg-error "allows expression instead of declaration" "" { target c++ } } */
- Array1[q] = 5;
-
- while (Array1[5] != 0)
- {
- /* Blah */
- }
-
- return 0;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/CK/cilk_for_ptr_iter.c b/gcc/testsuite/c-c++-common/cilk-plus/CK/cilk_for_ptr_iter.c
deleted file mode 100644
index 1f8e84ee3d5..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/CK/cilk_for_ptr_iter.c
+++ /dev/null
@@ -1,35 +0,0 @@
-/* { dg-do run } */
-/* { dg-require-effective-target cilkplus_runtime } */
-/* { dg-options "-fcilkplus" } */
-/* { dg-additional-options "-std=gnu99" { target c } } */
-
-
-
-/* <feature> loop control variable must have integer, pointer or class type
- </feature>
-*/
-
-#define ARRAY_SIZE 10000
-int a[ARRAY_SIZE];
-
-int main(void)
-{
- int ii = 0;
-
- for (ii =0; ii < ARRAY_SIZE; ii++)
- a[ii] = 5;
- _Cilk_for(int *aa = a; aa < a + ARRAY_SIZE; aa++)
- *aa = 0;
- for (ii = 0; ii < ARRAY_SIZE; ii++)
- if (a[ii] != 0)
- __builtin_abort ();
-
- _Cilk_for (int *aa = a; aa < a + ARRAY_SIZE; aa = aa + 2)
- *aa = 4;
-
- for (ii = 0; ii < ARRAY_SIZE; ii = ii + 2)
- if (a[ii] != 4)
- __builtin_abort ();
-
- return 0;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/CK/compound_cilk_spawn.c b/gcc/testsuite/c-c++-common/cilk-plus/CK/compound_cilk_spawn.c
deleted file mode 100644
index 5e687bd0a0c..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/CK/compound_cilk_spawn.c
+++ /dev/null
@@ -1,26 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus" } */
-
-/* <feature>
- A program is considered ill formed if the _Cilk_spawn form of this
- expression appears other than in one of the following contexts:
- as the entire body of an expression statement,
- as the entire right hand side of an assignment expression that is the entire
- body of an expression statement, or as the entire initializer-clause in a
- simple declaration.
- </feature>
-*/
-
-int spawn_func (int arg)
-{
- return arg + 1;
-}
-
-int check()
-{
- int z;
- z = 23, _Cilk_spawn spawn_func (3), 3424; /* { dg-error "spawned function call cannot be part of a comma expression" } */
- 23, spawn_func (5), _Cilk_spawn spawn_func (3); /* { dg-error "spawned function call cannot be part of a comma expression" } */
- _Cilk_spawn spawn_func (0), _Cilk_spawn spawn_func (3), 3, spawn_func (0); /* { dg-error "spawned function call cannot be part of a comma expression" } */
- return 23;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/CK/concec_cilk_spawn.c b/gcc/testsuite/c-c++-common/cilk-plus/CK/concec_cilk_spawn.c
deleted file mode 100644
index b93c9626d18..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/CK/concec_cilk_spawn.c
+++ /dev/null
@@ -1,20 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus" } */
-
-/* <feature> Consecutive _Cilk_spawn tokens are not permitted
- </feature>
-*/
-
-int spawn_func (int arg)
-{
- return arg + 1;
-}
-
-void func ()
-{
- int a;
- a = _Cilk_spawn _Cilk_spawn spawn_func (4); /* { dg-error "consecutive" } */
- a = _Cilk_spawn _Cilk_spawn _Cilk_spawn spawn_func (4); /* { dg-error "consecutive" } */
- a = _Cilk_spawn _Cilk_spawn _Cilk_spawn _Cilk_spawn spawn_func (4); /* { dg-error "consecutive" } */
- return;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/CK/errors.c b/gcc/testsuite/c-c++-common/cilk-plus/CK/errors.c
deleted file mode 100644
index d637924e9e1..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/CK/errors.c
+++ /dev/null
@@ -1,56 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus -Wno-return-type" } */
-
-int func_2(void);
-
-int check_spawn(int v)
-{
- if (_Cilk_spawn func_2()) /* { dg-error "cannot contain" "" { target c } } */
- /* XXX: no error in C++ */
- ;
- if (v + _Cilk_spawn func_2()) /* { dg-error "cannot contain" "" { target c } } */
- /* { dg-error "invalid use" "" { target c++ } .-1 } */
- ;
- if (v, _Cilk_spawn func_2()) /* { dg-error "spawned function call cannot be part" } */
- ;
- v, _Cilk_spawn func_2(); /* { dg-error "spawned function call cannot be part" } */
- while (_Cilk_spawn func_2()) /* { dg-error "a condition for while statement" } */
- ;
- while (v + _Cilk_spawn func_2()) /* { dg-error "a condition for while statement" } */
- ;
- for (; _Cilk_spawn func_2() ;) /* { dg-error "cannot be used" } */
- ;
- for (; v + _Cilk_spawn func_2() ;) /* { dg-error "cannot be used" } */
- ;
- v + _Cilk_spawn func_2(); /* { dg-error } */
- for (_Cilk_spawn func_2() ;;)
- ;
- for (;; _Cilk_spawn func_2())
- ;
- do {} while(_Cilk_spawn func_2()); /* { dg-error "cannot be used" } */
- do {} while(v + _Cilk_spawn func_2()); /* { dg-error "cannot be used" } */
- switch (_Cilk_spawn func_2()) /* { dg-error "cannot be used" } */
- {
- default: break;
- }
- goto *(_Cilk_spawn func_2()); /* { dg-error "cannot be used" } */
-
- return _Cilk_spawn func_2(); /* { dg-error "is not allowed" } */
-}
-
-int check_array_notation(int x[100], int y[100])
-{
- x[0:100] = y[0:100];
- for (; x[0:100] = y[0:100]; ) /* { dg-error "cannot be used" } */
- ;
- while (x[0:100] = y[0:100]) /* { dg-error "cannot be used" } */
- ;
- switch (x[0:100] = y[0:100]) /* { dg-error "cannot be used" } */
- {
- default: break;
- }
- do {} while (x[0:100] = y[0:100]); /* { dg-error "cannot be used" } */
- if (x[0:100] = y[0:100]) /* allowed */
- ;
- return x[0:100] = y[0:100]; /* { dg-error "cannot be used" } */
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/CK/fib.c b/gcc/testsuite/c-c++-common/cilk-plus/CK/fib.c
deleted file mode 100644
index 40e1cb48c25..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/CK/fib.c
+++ /dev/null
@@ -1,54 +0,0 @@
-/* { dg-do run } */
-/* { dg-require-effective-target cilkplus_runtime } */
-/* { dg-options "-fcilkplus" } */
-
-#if HAVE_IO
-#include <stdio.h>
-#endif
-
-int fib (int);
-int fib_serial (int);
-
-#define FIB_ITERATION 30
-
-int main(void)
-{
- int ii = 0;
- int fib_result[FIB_ITERATION+1], fib_serial_result[FIB_ITERATION+1];
-#if HAVE_IO
-
- for (ii = 0; ii <= FIB_ITERATION; ii++)
- printf("fib (%2d) = %10d\n", ii, fib (ii));
-#else
- for (ii = 0; ii <= FIB_ITERATION; ii++)
- {
- fib_result[ii] = fib (ii);
- }
-
- fib_serial_result[0] = 0;
- fib_serial_result[1] = 1;
- for (ii = 2; ii <= FIB_ITERATION; ii++)
- fib_serial_result[ii] = fib_serial_result[ii-1] + fib_serial_result[ii-2];
-
- for (ii = 0; ii <= FIB_ITERATION; ii++)
- {
- if (fib_result[ii] != fib_serial_result[ii])
- __builtin_abort ();
- }
-#endif
- return 0;
-}
-
-int fib(int n)
-{
- int x = 0, y = 0;
- if (n < 2)
- return n;
- else
- {
- x = _Cilk_spawn fib(n-1);
- y = fib(n-2);
- _Cilk_sync;
- return (x+y);
- }
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/CK/fib_init_expr_xy.c b/gcc/testsuite/c-c++-common/cilk-plus/CK/fib_init_expr_xy.c
deleted file mode 100644
index 41fd0dbe1d6..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/CK/fib_init_expr_xy.c
+++ /dev/null
@@ -1,68 +0,0 @@
-/* { dg-do run } */
-/* { dg-require-effective-target cilkplus_runtime } */
-/* { dg-options "-fcilkplus" } */
-
-#if HAVE_IO
-#include <stdio.h>
-#endif
-
-int fib (int);
-int fib_serial (int);
-
-#define FIB_ITERATION 30
-
-int main(void)
-{
- int ii = 0;
- int fib_result[FIB_ITERATION+1], fib_serial_result[FIB_ITERATION+1];
-#if HAVE_IO
-
- for (ii = 0; ii <= FIB_ITERATION; ii++)
- printf("fib (%2d) = %10d\n", ii, fib (ii));
-#else
- for (ii = 0; ii <= FIB_ITERATION; ii++)
- {
- fib_result[ii] = fib (ii);
- }
-
- fib_serial_result[0] = 0;
- fib_serial_result[1] = 1;
-
- for (ii = 2; ii <= FIB_ITERATION; ii++)
- fib_serial_result[ii] = fib_serial_result[ii-1] + fib_serial_result[ii-2];
-
- for (ii = 0; ii <= FIB_ITERATION; ii++)
- {
- if (fib_result[ii] != fib_serial_result[ii])
- __builtin_abort ();
- }
-
-#endif
- return 0;
-}
-
-int fib_serial (int n)
-{
- int x = 0, y = 0;
- if (n < 2)
- return n;
- else
- {
- x = fib_serial (n-1);
- y = fib_serial (n-2);
- return (x+y);
- }
-}
-
-int fib(int n)
-{
- if (n < 2)
- return n;
- else
- {
- int x = _Cilk_spawn fib(n-1);
- int y = fib(n-2);
- _Cilk_sync;
- return (x+y);
- }
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/CK/fib_no_return.c b/gcc/testsuite/c-c++-common/cilk-plus/CK/fib_no_return.c
deleted file mode 100644
index ccdbcfdce66..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/CK/fib_no_return.c
+++ /dev/null
@@ -1,73 +0,0 @@
-/* { dg-do run } */
-/* { dg-require-effective-target cilkplus_runtime } */
-/* { dg-options "-fcilkplus" } */
-
-#if HAVE_IO
-#include <stdio.h>
-#endif
-
-#define FIB_ITERATION 30
-
-void fib (int *, int);
-int fib_serial (int);
-
-int main(void)
-{
- int ii = 0, error = 0;
- int fib_result[FIB_ITERATION+1], fib_serial_result[FIB_ITERATION+1];
-
-#if HAVE_IO
- for (ii = 0; ii <= FIB_ITERATION; ii++)
- {
- int result = 0;
- fib (&result, ii);
- printf("fib (%2d) = %10d\n", ii, result);
- }
-#else
- for (ii = 0; ii <= FIB_ITERATION; ii++)
- {
- fib (&fib_result[ii], ii);
- }
-
- fib_serial_result[0] = 0;
- fib_serial_result[1] = 1;
-
- for (ii = 2; ii <= FIB_ITERATION; ii++)
- fib_serial_result[ii] = fib_serial_result[ii-1] + fib_serial_result[ii-2];
-
- for (ii = 0; ii <= FIB_ITERATION; ii++)
- {
- if (fib_result[ii] != fib_serial_result[ii])
- __builtin_abort ();
- }
-#endif
-
- return 0;
-}
-
-int fib_serial (int n)
-{
- int x = 0, y = 0;
- if (n < 2)
- return n;
- else
- {
- x = fib_serial (n-1);
- y = fib_serial (n-2);
- return (x+y);
- }
-}
-
-void fib(int *result, int n)
-{
- int x = 0, y = 0;
- if (n < 2)
- x = n;
- else
- {
- _Cilk_spawn fib(&x, n-1);
- fib(&y, n-2);
- _Cilk_sync;
- }
- *result = (x+y);
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/CK/fib_no_sync.c b/gcc/testsuite/c-c++-common/cilk-plus/CK/fib_no_sync.c
deleted file mode 100644
index 2c2a94b27a5..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/CK/fib_no_sync.c
+++ /dev/null
@@ -1,67 +0,0 @@
-/* { dg-do run } */
-/* { dg-require-effective-target cilkplus_runtime } */
-/* { dg-options "-fcilkplus" } */
-
-#if HAVE_IO
-#include <stdio.h>
-#endif
-
-#define FIB_ITERATION 30
-
-int fib (int);
-int fib_serial (int);
-
-int main(void)
-{
- int ii = 0;
- int fib_result[FIB_ITERATION+1], fib_serial_result[FIB_ITERATION+1];
-#if HAVE_IO
-
- for (ii = 0; ii <= FIB_ITERATION; ii++)
- printf("fib (%2d) = %10d\n", ii, fib (ii));
-#else
- for (ii = 0; ii <= FIB_ITERATION; ii++)
- {
- fib_result[ii] = fib (ii);
- }
-
- fib_serial_result[0] = 0;
- fib_serial_result[1] = 1;
-
- for (ii = 2; ii <= FIB_ITERATION; ii++)
- fib_serial_result[ii] = fib_serial_result[ii-1] + fib_serial_result[ii-2];
-
- for (ii = 0; ii <= FIB_ITERATION; ii++)
- {
- if (fib_result[ii] != fib_serial_result[ii])
- __builtin_abort ();
- }
-
-#endif
- return 0;
-}
-
-int fib_serial (int n)
-{
- int x = 0, y = 0;
- if (n < 2)
- return n;
- else
- {
- x = fib_serial (n-1);
- y = fib_serial (n-2);
- return (x+y);
- }
-}
-
-int fib(int n)
-{
- if (n < 2)
- return n;
- else
- {
- int x = _Cilk_spawn fib(n-1);
- int y = fib(n-2);
- return (x+y);
- }
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/CK/invalid_spawns.c b/gcc/testsuite/c-c++-common/cilk-plus/CK/invalid_spawns.c
deleted file mode 100644
index 5b43be76010..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/CK/invalid_spawns.c
+++ /dev/null
@@ -1,14 +0,0 @@
-/* { dg-options "-fcilkplus" } */
-
-extern int foo ();
-int bar = _Cilk_spawn foo (); /* { dg-error "may only be used inside a function" } */
-
-
-int main (void)
-{
- int x;
-
- _Cilk_spawn foo; /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn x; /* { dg-error "only function calls can be spawned" } */
- return x;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/CK/invalid_sync.cc b/gcc/testsuite/c-c++-common/cilk-plus/CK/invalid_sync.cc
deleted file mode 100644
index cf1caf12b31..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/CK/invalid_sync.cc
+++ /dev/null
@@ -1,9 +0,0 @@
-/* PR c/60189 */
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus" } */
-
-int main (void)
-{
- _Cilk_sync return; /* { dg-error " expected ';' before 'return'" } */
- return 0;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/CK/nested_cilk_for.c b/gcc/testsuite/c-c++-common/cilk-plus/CK/nested_cilk_for.c
deleted file mode 100644
index 8f080a11252..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/CK/nested_cilk_for.c
+++ /dev/null
@@ -1,79 +0,0 @@
-/* { dg-do run } */
-/* { dg-require-effective-target cilkplus_runtime } */
-/* { dg-options "-fcilkplus" } */
-/* { dg-additional-options "-std=gnu99" { target c } } */
-
-#if HAVE_IO
-#include <stdio.h>
-#endif
-
-int main (void)
-{
- int Array[10][10];
-
-
- for (int ii = 0; ii < 10; ii++)
- for (int jj = 0; jj < 10; jj++)
- {
- Array[ii][jj] = 0;
- }
-
- _Cilk_for (int ii = 0; ii < 10; ii++)
- _Cilk_for (int jj = 0; jj < 5; jj++)
- Array[ii][jj] = 5;
-
- for (int ii = 0; ii < 10; ii++)
- for (int jj = 0; jj < 5; jj++)
- if (Array[ii][jj] != 5)
-#if HAVE_IO
- printf("Array[%d][%d] = %d\n", ii, jj, Array[ii][jj]);
-#else
- __builtin_abort ();
-#endif
-
-
- /* One goes up and one goes down. */
- _Cilk_for (int ii = 0; ii < 10; ii++)
- _Cilk_for (int jj = 9; jj >= 0; jj--)
- Array[ii][jj] = 7;
-
- for (int ii = 0; ii < 10; ii++)
- for (int jj = 9; jj >= 0; jj--)
- if (Array[ii][jj] != 7)
-#if HAVE_IO
- printf("Array[%d][%d] = %d\n", ii, jj, Array[ii][jj]);
-#else
- __builtin_abort ();
-#endif
-
- /* different step sizes. */
- _Cilk_for (int ii = 0; ii < 10; ii++)
- _Cilk_for (int jj = 0; jj < 10; jj += 2)
- Array[ii][jj] = 9;
-
- for (int ii = 0; ii < 10; ii++)
- for (int jj = 0; jj < 10; jj += 2)
- if (Array[ii][jj] != 9)
-#if HAVE_IO
- printf("Array[%d][%d] = %d\n", ii, jj, Array[ii][jj]);
-#else
- __builtin_abort ();
-#endif
-
- /* different step sizes. */
- _Cilk_for (int ii = 0; ii < 10; ii += 2)
- _Cilk_for (int jj = 5; jj < 9; jj++)
- Array[ii][jj] = 11;
-
- for (int ii = 0; ii < 10; ii += 2)
- for (int jj = 5; jj < 9; jj++)
- if (Array[ii][jj] != 11)
-#if HAVE_IO
- printf("Array[%d][%d] = %d\n", ii, jj, Array[ii][jj]);
-#else
- __builtin_abort ();
-#endif
-
- return 0;
-}
-
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/CK/no_args_error.c b/gcc/testsuite/c-c++-common/cilk-plus/CK/no_args_error.c
deleted file mode 100644
index a2f20d22238..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/CK/no_args_error.c
+++ /dev/null
@@ -1,11 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus" } */
-
-int spawn_1 ();
-typedef int(*func) (int);
-
-void check () {
- func var = spawn_1; /* { dg-error "invalid conversion from" "" { target c++ } } */
- _Cilk_spawn var (); /* { dg-error "too few arguments to function" } */
-}
-
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/CK/pr59631.c b/gcc/testsuite/c-c++-common/cilk-plus/CK/pr59631.c
deleted file mode 100644
index 389ee7c5dab..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/CK/pr59631.c
+++ /dev/null
@@ -1,15 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options " " } */
-
-/* Tests the errors when Cilk keywords are used without -fcilkplus. */
-
-void foo()
-{
- _Cilk_spawn foo(); /* { dg-error "must be enabled to use" } */
-}
-
-void foo2 ()
-{
- _Cilk_spawn foo (); /* { dg-error "must be enabled to use" } */
- _Cilk_sync; /* { dg-error "must be enabled to use" } */
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/CK/pr60197-2.c b/gcc/testsuite/c-c++-common/cilk-plus/CK/pr60197-2.c
deleted file mode 100644
index 1e5ca00a40b..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/CK/pr60197-2.c
+++ /dev/null
@@ -1,35 +0,0 @@
-/* PR c/60197 */
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus" } */
-
-extern int foo (void);
-
-int
-fn1 (void)
-{
- int i;
- i = (_Cilk_spawn foo ()) + 1; /* { dg-error "invalid use of" } */
- return i;
-}
-
-int
-fn2 (void)
-{
- int i = (_Cilk_spawn foo ()) + 1; /* { dg-error "invalid use of" } */
- return i;
-}
-
-int
-fn3 (int j, int k, int l)
-{
- int i = (((((_Cilk_spawn foo ()) + 1) - l) * k) / j); /* { dg-error "invalid use of" } */
- return i;
-}
-
-int
-fn4 (int j, int k, int l)
-{
- int i;
- i = (((((_Cilk_spawn foo ()) + 1) - l) * k) / j); /* { dg-error "invalid use of" } */
- return i;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/CK/pr60197.c b/gcc/testsuite/c-c++-common/cilk-plus/CK/pr60197.c
deleted file mode 100644
index 301a6f2e9d1..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/CK/pr60197.c
+++ /dev/null
@@ -1,66 +0,0 @@
-/* PR c/60197 */
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus -Wno-return-type" } */
-
-extern int foo (void);
-extern int bar (int);
-
-int
-fn1 (void)
-{
- return (_Cilk_spawn foo ()) * 2; /* { dg-error "in a return statement is not allowed" } */
-}
-
-int
-fn2 (void)
-{
- return (_Cilk_spawn foo ()) > 2; /* { dg-error "in a return statement is not allowed" } */
-}
-
-int
-fn3 (int i, int j, int k)
-{
- return ((((((_Cilk_spawn foo () + i) - j) * k) / j) | i) ^ k) ; /* { dg-error "in a return statement is not allowed" } */
-}
-
-int
-fn4 (int i, int j, int k)
-{
- return (((((i - _Cilk_spawn foo ()) * k) / j) | i) ^ k); /* { dg-error "in a return statement is not allowed" } */
-}
-
-int
-fn5 (void)
-{
- return _Cilk_spawn foo (); /* { dg-error "in a return statement is not allowed" } */
-}
-
-int
-fn6 (void)
-{
- return _Cilk_spawn foo () + _Cilk_spawn foo (); /* { dg-error "in a return statement is not allowed" } */
-}
-
-int
-fn7 (void)
-{
- return 5 % _Cilk_spawn foo (); /* { dg-error "in a return statement is not allowed" } */
-}
-
-int
-fn8 (void)
-{
- return !_Cilk_spawn foo (); /* { dg-error "in a return statement is not allowed" } */
-}
-
-int
-fn9 (void)
-{
- return foo () && _Cilk_spawn foo (); /* { dg-error "in a return statement is not allowed" } */
-}
-
-int
-fn10 (void)
-{
- return bar (_Cilk_spawn foo ()); /* { dg-error "in a return statement is not allowed" } */
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/CK/pr60469.c b/gcc/testsuite/c-c++-common/cilk-plus/CK/pr60469.c
deleted file mode 100644
index 670df17faa2..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/CK/pr60469.c
+++ /dev/null
@@ -1,18 +0,0 @@
-/* PR middle-end/60469 */
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus -fdump-tree-original" } */
-
-void foo() {}
-
-#define ALEN 1024
-
-int main(int argc, char* argv[])
-{
- int b[ALEN];
- b[:] = 100;
- _Cilk_spawn foo();
- return 0;
-}
-
-/* The C++ FE once emitted a bogus error_mark_node for this test case. */
-/* { dg-final { scan-tree-dump-not "<<< error >>>" "original" } } */
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/CK/pr60586.c b/gcc/testsuite/c-c++-common/cilk-plus/CK/pr60586.c
deleted file mode 100644
index e2dc7b0c9d5..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/CK/pr60586.c
+++ /dev/null
@@ -1,28 +0,0 @@
-/* { dg-do run } */
-/* { dg-require-effective-target cilkplus_runtime } */
-/* { dg-options "-fcilkplus -O2" } */
-
-int noop(int x)
-{
- return x;
-}
-
-int post_increment(int *x)
-{
- return (*x)++;
-}
-
-int main(int argc, char *argv[])
-{
- int m = 5;
- int n = m;
- int r = _Cilk_spawn noop(post_increment(&n));
- int n2 = n;
- _Cilk_sync;
-
- if (r != m || n2 != m + 1)
- return 1;
- else
- return 0;
-}
-
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/CK/pr63307.c b/gcc/testsuite/c-c++-common/cilk-plus/CK/pr63307.c
deleted file mode 100644
index 6db5386eaf0..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/CK/pr63307.c
+++ /dev/null
@@ -1,4 +0,0 @@
-/* { dg-options "-fcilkplus -fcompare-debug" } */
-/* { dg-do compile } */
-
-#include "fib_no_return.c"
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/CK/pr69826-1.c b/gcc/testsuite/c-c++-common/cilk-plus/CK/pr69826-1.c
deleted file mode 100644
index 97775243ccd..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/CK/pr69826-1.c
+++ /dev/null
@@ -1,25 +0,0 @@
-/* { dg-do run } */
-/* { dg-require-effective-target cilkplus_runtime } */
-/* { dg-options "-fcilkplus" } */
-/* { dg-additional-options "-std=gnu99" { target c } } */
-
-#define GRAINSIZE 2
-
-int
-main ()
-{
- int a[64];
- #pragma cilk grainsize=GRAINSIZE
- _Cilk_for (int i = 0; i < 64; i++)
- a[i] = 0;
- #pragma cilk grainsize =GRAINSIZE
- _Cilk_for (int i = 0; i < 64; i++)
- a[i]++;
- #pragma cilk grainsize = GRAINSIZE
- _Cilk_for (int i = 0; i < 64; i++)
- a[i]++;
- for (int i = 0; i < 64; i++)
- if (a[i] != 2)
- __builtin_abort ();
- return 0;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/CK/pr69826-2.c b/gcc/testsuite/c-c++-common/cilk-plus/CK/pr69826-2.c
deleted file mode 100644
index 64d59291975..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/CK/pr69826-2.c
+++ /dev/null
@@ -1,6 +0,0 @@
-/* { dg-do run } */
-/* { dg-require-effective-target cilkplus_runtime } */
-/* { dg-options "-fcilkplus -save-temps" } */
-/* { dg-additional-options "-std=gnu99" { target c } } */
-
-#include "pr69826-1.c"
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/CK/pr79428-4.c b/gcc/testsuite/c-c++-common/cilk-plus/CK/pr79428-4.c
deleted file mode 100644
index cd4d40686a5..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/CK/pr79428-4.c
+++ /dev/null
@@ -1,3 +0,0 @@
-/* PR c/79428 */
-/* { dg-options "-fcilkplus" } */
-#pragma cilk grainsize /* { dg-error "must be inside a function" } */
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/CK/pr79428-7.c b/gcc/testsuite/c-c++-common/cilk-plus/CK/pr79428-7.c
deleted file mode 100644
index bc36f51d914..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/CK/pr79428-7.c
+++ /dev/null
@@ -1,3 +0,0 @@
-/* PR c/79428 */
-/* { dg-options "-fcilkplus" } */
-#pragma simd /* { dg-error "must be inside a function" } */
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/CK/spawn_in_return.c b/gcc/testsuite/c-c++-common/cilk-plus/CK/spawn_in_return.c
deleted file mode 100644
index 602971e02c9..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/CK/spawn_in_return.c
+++ /dev/null
@@ -1,8 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus -Wno-return-type" } */
-
-int main (void)
-{
- extern int foo ();
- return _Cilk_spawn foo (); /* { dg-error "return statement is not allowed" } */
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/CK/spawnee_inline.c b/gcc/testsuite/c-c++-common/cilk-plus/CK/spawnee_inline.c
deleted file mode 100644
index 416d77abb11..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/CK/spawnee_inline.c
+++ /dev/null
@@ -1,80 +0,0 @@
-/* { dg-do run } */
-/* { dg-require-effective-target cilkplus_runtime } */
-/* { dg-options "-fcilkplus -w" } */
-
-#include <stdio.h>
-#include <stdlib.h>
-#define DEFAULT_VALUE "30"
-
-int fib (char *n_char)
-{
- int n;
- char n_char_minus_one[20], n_char_minus_two[20];
- if (n_char)
- n = atoi (n_char);
- else
- n = atoi(DEFAULT_VALUE);
-
- if (n < 2)
- return n;
- else
- {
- int x, y;
- sprintf (n_char_minus_one,"%d", n-1);
- sprintf (n_char_minus_two,"%d", n-2);
- x = _Cilk_spawn fib (n_char_minus_one);
- y = _Cilk_spawn fib (n_char_minus_two);
- _Cilk_sync;
- return (x+y);
- }
-}
-
-int fib_serial (int n)
-{
- int x, y;
- if (n < 2)
- return n;
- else
- {
- x = fib_serial (n-1);
- y = fib_serial (n-2);
- return (x+y);
- }
- return 0;
-}
-
-int main2_parallel (int argc, char *argv[])
-{
- int n, result_parallel = 0;
-
- if (argc == 2)
- {
- result_parallel = _Cilk_spawn fib (argv[1]);
- _Cilk_sync;
- }
- else
- {
- result_parallel = _Cilk_spawn fib((char *)"30");
- _Cilk_sync;
- }
- return result_parallel;
-}
-
-int main2_serial (int argc, char *argv[])
-{
- int n, result_serial = 0;
- if (argc == 2)
- result_serial = fib_serial (atoi (argv[1]));
- else
- result_serial = fib_serial (atoi (DEFAULT_VALUE));
-
- return result_serial;
-}
-
-int main (void)
-{
- if (main2_serial (1, 0) != main2_parallel (1,0))
- return 1;
- return 0;
-}
-
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/CK/spawner_inline.c b/gcc/testsuite/c-c++-common/cilk-plus/CK/spawner_inline.c
deleted file mode 100644
index 49592c9e979..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/CK/spawner_inline.c
+++ /dev/null
@@ -1,67 +0,0 @@
-/* { dg-do run } */
-/* { dg-require-effective-target cilkplus_runtime } */
-/* { dg-options "-fcilkplus" } */
-
-#include <stdlib.h>
-#define DEFAULT_VALUE 30
-int fib (int n)
-{
- if (n<2)
- return n;
- else
- {
- int x, y;
- x = _Cilk_spawn fib (n-1);
- y = _Cilk_spawn fib (n-2);
- _Cilk_sync;
- return (x+y);
- return 5;
- }
-}
-
-int main_parallel (int argc, char *argv[])
-{
- int n, result;
- if (argc == 2)
- n = atoi(argv[1]);
- else
- n = DEFAULT_VALUE;
- result = _Cilk_spawn fib(n);
- _Cilk_sync;
- return result;
-}
-
-int fib_serial (int n)
-{
- int x, y;
- if (n < 2)
- return n;
- else
- {
- x = fib (n-1);
- y = fib (n-2);
- return (x+y);
- }
-}
-
-int main_serial (int argc, char *argv[])
-{
- int n, result;
-
- if (argc == 2)
- n = atoi (argv[1]);
- else
- n = DEFAULT_VALUE;
- result = fib_serial (n);
-
- return result;
-}
-
-int main (void)
-{
- if (main_serial (1, 0) != main_parallel (1,0))
- return 1;
- else
- return 0;
-}
-
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/CK/spawning_arg.c b/gcc/testsuite/c-c++-common/cilk-plus/CK/spawning_arg.c
deleted file mode 100644
index f5f062c32b3..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/CK/spawning_arg.c
+++ /dev/null
@@ -1,52 +0,0 @@
-/* { dg-do run } */
-/* { dg-require-effective-target cilkplus_runtime } */
-/* { dg-options "-fcilkplus" } */
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-extern int __cilkrts_set_param (const char *, const char *);
-
-#ifdef __cplusplus
-}
-#endif
-
-
-void f0(volatile int *steal_flag)
-{
- int i = 0;
- /* Wait for steal_flag to be set */
- while (!*steal_flag)
- ;
-}
-
-int f1()
-{
-
- volatile int steal_flag = 0;
- _Cilk_spawn f0(&steal_flag);
- steal_flag = 1; // Indicate stolen
- _Cilk_sync;
- return 0;
-}
-
-void f2(int q)
-{
- q = 5;
-}
-
-void f3()
-{
- _Cilk_spawn f2(f1());
-}
-
-int main()
-{
- /* Ensure more than one worker. */
- if (__cilkrts_set_param("nworkers", "2") != 0)
- __builtin_abort();
-
- f3();
- return 0;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/CK/steal_check.c b/gcc/testsuite/c-c++-common/cilk-plus/CK/steal_check.c
deleted file mode 100644
index 00b3c791833..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/CK/steal_check.c
+++ /dev/null
@@ -1,54 +0,0 @@
-/* { dg-do run } */
-/* { dg-require-effective-target cilkplus_runtime } */
-/* { dg-options "-fcilkplus" } */
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-extern int __cilkrts_set_param (const char *, const char *);
-
-#ifdef __cplusplus
-}
-#endif
-
-
-void foo(volatile int *);
-
-void main2(void);
-
-int main(void)
-{
- /* Ensure more than one worker. */
- if (__cilkrts_set_param("nworkers", "2") != 0)
- __builtin_abort();
-
- main2();
- return 0;
-}
-
-
-void main2(void)
-{
- int some_var = 0;
-
- _Cilk_spawn foo(&some_var);
-
- some_var=1;
- some_var=5;
- some_var=3;
- some_var=4;
-
- _Cilk_sync;
- return;
-}
-
-void foo(volatile int *some_other_var)
-{
- while (*some_other_var == 0)
- {
- ;
- }
-}
-
-
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/CK/sync_wo_spawn.c b/gcc/testsuite/c-c++-common/cilk-plus/CK/sync_wo_spawn.c
deleted file mode 100644
index 51be796e562..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/CK/sync_wo_spawn.c
+++ /dev/null
@@ -1,9 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus" } */
-
-int main (void)
-{
- _Cilk_sync; /* { dg-error "expected '_Cilk_spawn' before '_Cilk_sync'" } */
- return 0;
-}
-
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/CK/test__cilk.c b/gcc/testsuite/c-c++-common/cilk-plus/CK/test__cilk.c
deleted file mode 100644
index 3157473fff4..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/CK/test__cilk.c
+++ /dev/null
@@ -1,10 +0,0 @@
-/* { dg-do compile } */
-/* { dg-do run { target cilkplus_runtime } } */
-/* { dg-options "-fcilkplus" } */
-
-int main (void)
-{
- if (__cilk == 200)
- return 0;
- return 1;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/CK/varargs_test.c b/gcc/testsuite/c-c++-common/cilk-plus/CK/varargs_test.c
deleted file mode 100644
index d97280043de..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/CK/varargs_test.c
+++ /dev/null
@@ -1,47 +0,0 @@
-/* { dg-do run } */
-/* { dg-require-effective-target cilkplus_runtime } */
-/* { dg-options "-fcilkplus" } */
-
-#include <stdarg.h>
-#include <stdlib.h>
-
-
-double compute_total (int no_elements, ...);
-
-int main(void)
-{
- double array[5] = {5.0, 4.0, 9.0, 3.0, 4.0};
- double array2[5] = {5.0, 6.0, 8.0, 6.0};
- double yy=0, xx=0, xx_serial, yy_serial;
-
- yy = _Cilk_spawn compute_total(5,array[0],array[1],array[2],
- array[3], array[4]);
- xx= compute_total(4,array2[0],array2[1],array2[2], array2[3]);
-
- _Cilk_sync;
-
- yy_serial = compute_total(5,array[0],array[1],array[2], array[3], array[4]);
- xx_serial = compute_total(4,array2[0],array2[1],array2[2], array2[3]);
-
- if ((xx + yy) != (xx_serial + yy_serial))
- return 1;
- return 0;
-
-}
-
-
-double compute_total (int no_elements, ...)
-{
- double total = 0;
- va_list args;
- va_start(args, no_elements);
- int ii = 0;
- for (ii = 0; ii < no_elements; ii++)
- {
- total += va_arg(args,double);
- }
- va_end(args);
-
- return total;
-}
-
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/PS/Wparentheses-1.c b/gcc/testsuite/c-c++-common/cilk-plus/PS/Wparentheses-1.c
deleted file mode 100644
index d391d7b1eed..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/PS/Wparentheses-1.c
+++ /dev/null
@@ -1,41 +0,0 @@
-/* PR c/70436 */
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus -Wparentheses" } */
-
-int a, b, c;
-void bar (void);
-void baz (void);
-
-void
-f1 (void)
-{
- int i;
-
- if (a) /* { dg-warning "ambiguous" } */
- #pragma simd
- for (i = 0; i < 10; i++)
- if (b)
- bar ();
- else
- baz ();
-
- if (a)
- #pragma simd
- for (i = 0; i < 10; i++)
- {
- if (b)
- bar ();
- else
- baz ();
- }
-
- if (a)
- #pragma simd
- for (i = 0; i < 10; i++)
- {
- if (b)
- bar ();
- }
- else
- baz ();
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/PS/body.c b/gcc/testsuite/c-c++-common/cilk-plus/PS/body.c
deleted file mode 100644
index ed85a7a65eb..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/PS/body.c
+++ /dev/null
@@ -1,34 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus -fopenmp" } */
-/* { dg-require-effective-target fopenmp } */
-
-int *a, *b, c;
-void *jmpbuf[10];
-
-void foo()
-{
- int j;
-
-#pragma simd
- for (int i=0; i < 1000; ++i)
- {
- if (c == 6)
- __builtin_setjmp (jmpbuf); /* { dg-error "setjmp" } */
- a[i] = b[i];
- }
-
-#pragma simd
- for (int i=0; i < 1000; ++i)
- {
- if (c==5)
- break; /* { dg-error "break statement " } */
- }
-
-#pragma simd
- for (int i=0; i < 1000; ++i)
- {
-#pragma omp for /* { dg-error "OpenMP constructs other than" } */
- for (j=0; j < 1000; ++j)
- a[i] = b[i];
- }
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/PS/clauses1.c b/gcc/testsuite/c-c++-common/cilk-plus/PS/clauses1.c
deleted file mode 100644
index 332e01cbdde..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/PS/clauses1.c
+++ /dev/null
@@ -1,80 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-O3 -Werror -Wunknown-pragmas -fcilkplus" } */
-
-volatile int *a, *b;
-
-void foo()
-{
- int i, j, k;
-
-#pragma simd assert /* { dg-error "expected '#pragma simd' clause" } */
- for (i=0; i < 100; ++i)
- a[i] = b[i];
-
-#pragma simd vectorlength /* { dg-error "expected '\\('" } */
- for (int i=0; i < 1000; ++i)
- a[i] = b[j];
-
-#pragma simd vectorlength /* { dg-error "expected '\\('" } */
- for (int i=0; i < 1000; ++i)
- a[i] = b[j];
-
-#pragma simd vectorlength(sizeof (a) == sizeof (float) ? 4 : 8)
- for (int i=0; i < 1000; ++i)
- a[i] = b[j];
-
-#pragma simd vectorlength(4,8) /* { dg-error "expected '\\)'" } */
- for (int i=0; i < 1000; ++i)
- a[i] = b[j];
-
-#pragma simd vectorlength(i) /* { dg-error "\(vectorlength must be an integer\|in a constant\)" } */
- for (int i=0; i < 1000; ++i)
- a[i] = b[j];
-
-#pragma simd linear(35) /* { dg-error "expected identifier" } */
- for (int i=0; i < 1000; ++i)
- a[i] = b[j];
-
-#pragma simd linear(blah) /* { dg-error "'blah' \(undeclared\|has not been\)" } */
- for (int i=0; i < 1000; ++i)
- a[i] = b[j];
-
-#pragma simd linear(j, 36, k) /* { dg-error "expected" } */
- for (int i=0; i < 1000; ++i)
- a[i] = b[j];
-
-#pragma simd linear(i, j)
- for (int i=0; i < 1000; ++i)
- a[i] = b[j];
-
-#pragma simd linear(i)
- for (int i=0; i < 1000; ++i)
- a[i] = b[j];
-
-#pragma simd linear(i : 4)
- for (int i=0; i < 1000; ++i)
- a[i] = b[j];
-
-#pragma simd linear(i : 2, j : 4, k)
- for (int i=0; i < 1000; ++i)
- a[i] = b[j];
-
-#pragma simd linear(j : sizeof (a) == sizeof (float) ? 4 : 8)
- for (int i=0; i < 1000; ++i)
- a[i] = b[j];
-
- // And now everyone in unison!
-#pragma simd linear(j : 4) vectorlength(4)
- for (int i=0; i < 1000; ++i)
- a[i] = b[j];
-
-#pragma simd linear(blah2, 36)
- /* { dg-error "'blah2' \(undeclared\|has not been\)" "undeclared" { target *-*-* } .-1 } */
- /* { dg-error "expected" "expected" { target *-*-* } .-2 } */
- for (int i=0; i < 1000; ++i)
- a[i] = b[j];
-
-#pragma simd linear(j : k)
- for (int i=0; i < 1234; ++i)
- a[i] = b[j];
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/PS/clauses2.c b/gcc/testsuite/c-c++-common/cilk-plus/PS/clauses2.c
deleted file mode 100644
index 0f7b5006254..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/PS/clauses2.c
+++ /dev/null
@@ -1,17 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-O3 -fdump-tree-original -fcilkplus" } */
-
-volatile int *a, *b;
-
-void foo()
-{
- int j, k;
-
-#pragma simd linear(j : 4, k) vectorlength(4)
- for (int i=0; i < 1000; ++i)
- a[i] = b[j];
-}
-
-/* { dg-final { scan-tree-dump-times "linear\\(j:4\\)" 1 "original" } } */
-/* { dg-final { scan-tree-dump-times "linear\\(k:1\\)" 1 "original" } } */
-/* { dg-final { scan-tree-dump-times "safelen\\(4\\)" 1 "original" } } */
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/PS/clauses3.c b/gcc/testsuite/c-c++-common/cilk-plus/PS/clauses3.c
deleted file mode 100644
index 0b5ace6a1a0..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/PS/clauses3.c
+++ /dev/null
@@ -1,39 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-O3 -fcilkplus" } */
-
-#define N 1000
-
-int A[N], B[N], C[N];
-int main (void)
-{
-#pragma simd private (B) linear(B:1) /* { dg-error "applied to non-integral" } */
- for (int ii = 0; ii < N; ii++)
- {
- A[ii] = B[ii] + C[ii];
- }
-
-#pragma simd private (B, C) linear(B:1) /* { dg-error "applied to non-integral" } */
- for (int ii = 0; ii < N; ii++)
- {
- A[ii] = B[ii] + C[ii];
- }
-
-#pragma simd private (B) linear(C:2, B:1) /* { dg-error "applied to non-integral" } */
- for (int ii = 0; ii < N; ii++)
- {
- A[ii] = B[ii] + C[ii];
- }
-
-#pragma simd reduction (+:B) linear(B:1) /* { dg-error "applied to non-integral" } */
- for (int ii = 0; ii < N; ii++)
- {
- A[ii] = B[ii] + C[ii];
- }
-
-#pragma simd reduction (+:B) linear(B) /* { dg-error "applied to non-integral" } */
- for (int ii = 0; ii < N; ii++)
- {
- A[ii] = B[ii] + C[ii];
- }
- return 0;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/PS/clauses4.c b/gcc/testsuite/c-c++-common/cilk-plus/PS/clauses4.c
deleted file mode 100644
index 45dcb9f606a..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/PS/clauses4.c
+++ /dev/null
@@ -1,36 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus" } */
-
-#define N 1000
-
-int B, C;
-double D;
-
-int main (void)
-{
- #pragma simd linear (D:10)
- for (int ii = 0; ii < N; ii++)
- ;
-
- #pragma simd private (B) linear(B:1) /* { dg-error "more than once" } */
- for (int ii = 0; ii < N; ii++)
- ;
-
- #pragma simd private (B, C) linear(B:1) /* { dg-error "more than once" } */
- for (int ii = 0; ii < N; ii++)
- ;
-
- #pragma simd private (B) linear(C:2, B:1) /* { dg-error "more than once" } */
- for (int ii = 0; ii < N; ii++)
- ;
-
- #pragma simd reduction (+:B) linear(B:1) /* { dg-error "more than once" } */
- for (int ii = 0; ii < N; ii++)
- ;
-
- #pragma simd reduction (+:B) linear(B) /* { dg-error "more than once" } */
- for (int ii = 0; ii < N; ii++)
- ;
-
- return 0;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/PS/for1.c b/gcc/testsuite/c-c++-common/cilk-plus/PS/for1.c
deleted file mode 100644
index 3b678952c72..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/PS/for1.c
+++ /dev/null
@@ -1,132 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-O3 -fcilkplus" } */
-
-int *a, *b, *c;
-int something;
-
-void foo()
-{
- int i, j;
-
- // Declaration and initialization is allowed.
-#pragma simd
- for (int i=0; i < 1000; i++)
- a[i] = b[j];
-
- // Empty initialization is not allowed.
-#pragma simd
- for (; i < 5; ++i) // { dg-error "expected iteration" }
- a[i] = i;
-
- // Empty condition is not allowed.
-#pragma simd
- for (int i=0; ; ++i) /* { dg-error "missing controlling" } */
- a[i] = i;
-
- // Empty increment is not allowed.
-#pragma simd
- for (int i=0; i < 1234; ) /* { dg-error "missing increment" } */
- a[i] = i*2;
-
-#pragma simd
- i = 5; /* { dg-error "for statement expected" } */
-
- // Initialization variables must be either integral or pointer types.
- struct S {
- int i;
- };
-#pragma simd
- for (struct S ss = { 0 }; ss.i <= 1000; ++ss.i) /* { dg-error "invalid controlling\|invalid type for iteration\|invalid increment" } */
- a[ss.i] = b[ss.i];
-
- #pragma simd
- for (float f=0.0; f < 15.0; ++f) /* { dg-error "invalid type" } */
- a[(int)f] = (int) f;
-
- // Pointers are OK.
- #pragma simd
- for (int *i=c; i < &c[100]; ++i)
- *a = '5';
-
- // Condition of '==' is not allowed.
-#pragma simd
- for (int i=j; i == 5; ++i) /* { dg-error "invalid controlling predicate" } */
- a[i] = b[i];
-
- // The LHS or RHS of the condition must be the initialization variable.
-#pragma simd
- for (int i=0; i+j < 1234; ++i) /* { dg-error "invalid controlling predicate" } */
- a[i] = b[i];
-
- // Likewise.
-#pragma simd
- for (int i=0; 1234 < i + j; ++i) /* { dg-error "invalid controlling predicate" } */
- a[i] = b[i];
-
- // Likewise, this is ok.
-#pragma simd
- for (int i=0; 1234 + j < i; ++i)
- a[i] = b[i];
-
- // According to the CilkPlus forum, casts are not allowed, even if
- // they are no-ops.
-#pragma simd
- for (int i=0; (char)i < 1234; ++i) /* { dg-error "invalid controlling predicate" } */
- a[i] = b[i];
-
-#pragma simd
- for (int i=255; i != something; --i)
- a[i] = b[i];
-
-#pragma simd
- for (int i=100; i != 5; i += something)
- a[i] = b[i];
-
- // Increment must be on the induction variable.
-#pragma simd
- for (int i=0; i < 100; j++) /* { dg-error "invalid increment expression" } */
- a[i] = b[i];
-
- // Likewise.
-#pragma simd
- for (int i=0; i < 100; j = i + 1) /* { dg-error "invalid increment expression" } */
- a[i] = b[i];
-
- // Likewise.
-#pragma simd
- for (int i=0; i < 100; i = j + 1) /* { dg-error "invalid increment expression" } */
- a[i] = b[i];
-
-#pragma simd
- for (int i=0; i < 100; i = i + 5)
- a[i] = b[i];
-
- // Only PLUS and MINUS increments are allowed.
-#pragma simd
- for (int i=0; i < 100; i *= 5) /* { dg-error "invalid increment expression" } */
- a[i] = b[i];
-
-#pragma simd
- for (int i=0; i < 100; i -= j)
- a[i] = b[i];
-
-#pragma simd
- for (int i=0; i < 100; i = i + j)
- a[i] = b[i];
-
-#pragma simd
- for (int i=0; i < 100; i = j + i)
- a[i] = b[i];
-
-#pragma simd
- for (int i=0; i < 100; ++i, ++j) /* { dg-error "invalid increment expression" } */
- a[i] = b[i];
-
-#pragma simd
- for (int *point=0; point < b; ++point)
- *point = 555;
-
-#pragma simd
- for (int *point=0; point > b; --point)
- *point = 555;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/PS/for2.c b/gcc/testsuite/c-c++-common/cilk-plus/PS/for2.c
deleted file mode 100644
index 86606275ac4..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/PS/for2.c
+++ /dev/null
@@ -1,8 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-O3 -fcilkplus" } */
-
-#pragma simd /* { dg-error "must be inside a function" } */
-
-void foo()
-{
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/PS/for3.c b/gcc/testsuite/c-c++-common/cilk-plus/PS/for3.c
deleted file mode 100644
index 2da8235f319..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/PS/for3.c
+++ /dev/null
@@ -1,14 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-O3 -fcilkplus" } */
-
-int *a, *c;
-
-void foo()
-{
- int i, j;
-
- // Pointers are OK.
- #pragma simd
- for (int *i=c; i < c; ++i)
- *a = '5';
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/PS/pr69363.c b/gcc/testsuite/c-c++-common/cilk-plus/PS/pr69363.c
deleted file mode 100644
index 1d1bb048e49..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/PS/pr69363.c
+++ /dev/null
@@ -1,13 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus" } */
-
-double t1 (double *x, int N)
-{
- double result = 0.0;
-
- #pragma simd reduction (max: result)
- for (int i = 0; i < N; ++i)
- result = x[i] > result ? x[i] : result;
-
- return result;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/PS/reduction-1.c b/gcc/testsuite/c-c++-common/cilk-plus/PS/reduction-1.c
deleted file mode 100644
index d8cec84f149..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/PS/reduction-1.c
+++ /dev/null
@@ -1,38 +0,0 @@
-/* { dg-do run } */
-/* { dg-options "-O3 -fcilkplus" } */
-
-/* FIXME: This test has been xfailed until reductions are fixed. */
-
-int argc = 1;
-
-/* This is a simple vectorization test. It tests if reduction works
- and if it can vectorize the loop in func correctly. */
-#define N 1000
-
-int func (int *p, int *q) {
- int x = 0;
-#pragma simd reduction (+:x)
- for (int ii = 0; ii < N; ii++) {
- x += (q[ii] + p[ii]);
- }
- return x;
-
-}
-
-int main ()
-{
- int ii = 0, x;
- int Array[N], Array2[N];
-
- for (ii = 0; ii < N; ii++)
- {
- Array[ii] = 5 + argc;
- Array2[ii] = argc;
- }
- x = func (Array, Array2);
-
- if (x != N * 7)
- return 1;
- return 0;
-}
-
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/PS/reduction-2.c b/gcc/testsuite/c-c++-common/cilk-plus/PS/reduction-2.c
deleted file mode 100644
index f5554f6b1ae..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/PS/reduction-2.c
+++ /dev/null
@@ -1,36 +0,0 @@
-/* { dg-do run } */
-/* { dg-options "-O3 -fcilkplus" } */
-
-/* FIXME: This test has been xfailed until reductions are fixed. */
-
-#include <stdio.h>
-
-#define ARRAY_SIZE (256)
-int a[ARRAY_SIZE];
-
-__attribute__((noinline))
-int addit (int *arr, int N)
-{
- int s=0;
-#pragma simd reduction (+:s)
- for (int i = 0; i < N; i++)
- s += arr[i];
- return s;
-}
-
-int main () {
- int i, s = 0, r = 0;
- for (i = 0; i < ARRAY_SIZE; i++)
- {
- a[i] = i;
- }
-
- s = addit (a, ARRAY_SIZE);
-
- for (i = 0; i < ARRAY_SIZE; i++)
- r += i;
-
- if (s == r)
- return 0;
- return 1;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/PS/reduction-3.c b/gcc/testsuite/c-c++-common/cilk-plus/PS/reduction-3.c
deleted file mode 100644
index 35cb904a540..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/PS/reduction-3.c
+++ /dev/null
@@ -1,41 +0,0 @@
-/* { dg-do run } */
-/* { dg-options "-O3 -fcilkplus" } */
-
-#define N 256
-#if HAVE_IO
-#include <stdio.h>
-#endif
-#include <stdlib.h>
-
-int
-reduction_simd (int *a)
-{
- int s = 0;
-
-#pragma simd reduction (+:s)
- for (int i = 0; i < N; i++)
- {
- s += a[i];
- }
-
- return s;
-}
-
-int
-main ()
-{
- int *a = (int *) malloc (N * sizeof (int));
- int i, s = (N - 1) * N / 2;
-
- for (i = 0; i < N; i++)
- {
- a[i] = i;
- }
-#if HAVE_IO
- printf ("%d, %d\n", s, reduction_simd (a));
-#endif
- if (s == reduction_simd (a))
- return 0;
- else
- return 1;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/PS/run-1.c b/gcc/testsuite/c-c++-common/cilk-plus/PS/run-1.c
deleted file mode 100644
index c8fe1c762bc..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/PS/run-1.c
+++ /dev/null
@@ -1,28 +0,0 @@
-/* { dg-do run } */
-/* { dg-options "-fcilkplus -O3" } */
-
-#include <stdlib.h>
-
-#define N 4
-
-float f1[] = { 2.0, 3.0, 4.0, 5.0 };
-float f2[] = { 1.0, 6.0, -1.0, -2.0 };
-float res[] = { 3.0, 9.0, 3.0, 3.0 };
-
-__attribute__((noinline))
-void verify (float *sum)
-{
- for (int i=0; i < N; ++i)
- if (sum[i] != res[i])
- abort ();
-}
-
-int main()
-{
- float sum[N];
-#pragma simd
- for (int i=0; i < N; ++i)
- sum[i] = f1[i] + f2[i];
- verify (sum);
- return 0;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/PS/safelen.c b/gcc/testsuite/c-c++-common/cilk-plus/PS/safelen.c
deleted file mode 100644
index 5af2909d2ec..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/PS/safelen.c
+++ /dev/null
@@ -1,13 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-O3 -fdump-tree-gimple -fcilkplus" } */
-
-int *a, *b;
-
-void foo()
-{
-#pragma simd vectorlength(8)
- for (int i=0; i < 1000; ++i)
- a[i] = b[i];
-}
-
-/* { dg-final { scan-tree-dump-times "safelen\\(8\\)" 1 "gimple" } } */
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/PS/vectorlength-2.c b/gcc/testsuite/c-c++-common/cilk-plus/PS/vectorlength-2.c
deleted file mode 100644
index d90397717ac..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/PS/vectorlength-2.c
+++ /dev/null
@@ -1,12 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-O2 -fcilkplus" } */
-
-#define vl(n) vectorlength(2*n)
-void
-foo (int *a, int *b, int *c)
-{
- int i;
-#pragma simd vl(4)
- for (i = 0; i < 64; i++)
- a[i] = b[i] * c[i];
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/PS/vectorlength-3.c b/gcc/testsuite/c-c++-common/cilk-plus/PS/vectorlength-3.c
deleted file mode 100644
index d219a85acd5..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/PS/vectorlength-3.c
+++ /dev/null
@@ -1,13 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-O2 -fcilkplus -save-temps" } */
-
-#define vl(n) vectorlength(2*n)
-void
-foo (int *a, int *b, int *c)
-{
- int i;
-#pragma simd vl(4)
- for (i = 0; i < 64; i++)
- a[i] = b[i] * c[i];
-}
-
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/PS/vectorlength.c b/gcc/testsuite/c-c++-common/cilk-plus/PS/vectorlength.c
deleted file mode 100644
index 9aa4a68290d..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/PS/vectorlength.c
+++ /dev/null
@@ -1,21 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-O3 -fcilkplus" } */
-
-volatile int *a, *b, N;
-typedef int tint;
-struct someclass {
- int a;
- char b;
- int *p;
-};
-
-void foo()
-{
-#pragma simd vectorlength(4) vectorlength(8) /* { dg-error "too many 'vectorlength' clauses" } */
- for (int i=0; i < N; ++i)
- a[i] = b[i];
-
-#pragma simd vectorlength(3) /* { dg-error "must be a power of 2" } */
- for (int i=0; i < N; ++i)
- a[i] = b[i];
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/SE/ef_error.c b/gcc/testsuite/c-c++-common/cilk-plus/SE/ef_error.c
deleted file mode 100644
index 5312992ff66..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/SE/ef_error.c
+++ /dev/null
@@ -1,32 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus -fopenmp-simd" } */
-
-#pragma omp declare simd linear(y:1) simdlen(4)
-__attribute__((vector (linear (y:1), vectorlength(4))))
-int func (int x, int y) { /* { dg-error "cannot be used in the same function marked as a Cilk Plus SIMD-enabled" } */
- return (x+y);
-}
-__attribute__((vector (linear (y:1), private (x)))) /* { dg-error "is not valid for" } */
-int func2 (int x, int y) {
- return (x+y);
-}
-
-__attribute__((vector (linear (y:1), simdlen (4)))) /* { dg-error "is not valid for" } */
-int func2_1 (int x, int y) {
- return (x+y);
-}
-
-__attribute__((vector (linear (y:1), inbranch))) /* { dg-error "is not valid for" } */
-int func2_3 (int x, int y) {
- return (x+y);
-}
-
-__attribute__((vector (notinbranch, vectorlength (4)))) /* { dg-error "is not valid for" } */
-int func2_2 (int x, int y) {
- return (x+y);
-}
-
-int main (void)
-{
- return (func (5,6));
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/SE/ef_error2.c b/gcc/testsuite/c-c++-common/cilk-plus/SE/ef_error2.c
deleted file mode 100644
index 28c3c987418..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/SE/ef_error2.c
+++ /dev/null
@@ -1,15 +0,0 @@
-/* The warning is x86-only. */
-/* { dg-do compile { target { i?86-*-* x86_64-*-* } } } */
-/* { dg-options "-fcilkplus -Wall" } */
-
-__attribute__((vector (vectorlength(128))))
-//#pragma omp simd simdlen (128)
-int func2 (int x, int y) /* { dg-warning "unsupported simdlen" } */
-{
- return (x+y);
-}
-
-int main (void)
-{
- return (func2 (5,6));
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/SE/ef_error3.c b/gcc/testsuite/c-c++-common/cilk-plus/SE/ef_error3.c
deleted file mode 100644
index 789e2bc013d..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/SE/ef_error3.c
+++ /dev/null
@@ -1,13 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus -Wall" } */
-
-__attribute__((vector (linear (x:y)))) /* { dg-message "parameter" "" { target c++ } } */
-int func2 (int x, int y)
-{ /* { dg-message "using parameters for" "" { target c } } */
- return (x+y);
-}
-
-int main (void)
-{
- return (func2 (5,6));
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/SE/ef_test.c b/gcc/testsuite/c-c++-common/cilk-plus/SE/ef_test.c
deleted file mode 100644
index e606acac16f..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/SE/ef_test.c
+++ /dev/null
@@ -1,78 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus -Wunknown-pragmas" } */
-
-/* Tests the clauses in several combinations put in different locations. */
-/* This is mostly a parser test. */
-#define Q 4
-
-int z = Q;
-
- __attribute__ ((vector (uniform(x), linear (y:1), vectorlength (4) )))
-int func (int x, int y)
-{
- int zq = 5;
- return x + (y*zq);
-}
- __attribute__ ((__vector__ (uniform(x), vectorlength (2), linear (y:1) )))
-int func2 (int x, int y)
-{
- int zq = 5;
- return x + (y*zq);
-}
-
-__attribute__ ((vector (uniform(y), linear (x), vectorlength (4) )))
-int func3 (int x, int y)
-{
- int zq = 5;
- return x + (y*zq);
-}
-
-__attribute__ ((vector (uniform(x), linear (y:1), mask)))
-int func4 (int x, int y)
-{
- int zq = 5;
- return x + (y*zq);
-}
-
-__attribute__ ((vector (uniform(x), linear (y:1), nomask)))
-int func5 (int x, int y)
-{
- int zq = 5;
- return x + (y*zq);
-}
-
-__attribute__ ((vector (uniform(x), mask, linear (y:1))))
-int func6 (int x, int y)
-{
- int zq = 5;
- return x + (y*zq);
-}
-
-__attribute__ ((vector (uniform (x), mask, linear (y:1)), vector))
-int func7 (int x, int y)
-{
- int zq = 5;
- return x + (y*zq);
-}
-
-__attribute__ ((vector (uniform (x), mask, linear (y:1)), vector (uniform (y), mask)))
-int func8 (int x, int y)
-{
- int zq = 5;
- return x + (y*zq);
-}
-
-__attribute__ ((vector, vector (uniform (y), mask)))
-int func9 (int x, int y)
-{
- int zq = 5;
- return x + (y*zq);
-}
-
-int main (int argc, char *argv[])
-{
- int ii = 0, q = 5;
- for (ii = 0; ii < 10; ii++)
- q += func (argc, ii);
- return q;
-}
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/SE/ef_test2.c b/gcc/testsuite/c-c++-common/cilk-plus/SE/ef_test2.c
deleted file mode 100644
index 7ec0578b412..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/SE/ef_test2.c
+++ /dev/null
@@ -1,16 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus" } */
-void func (int x, int y) __attribute__((vector(linear(x:1), uniform (y)),
- vector));
-
-int q;
-int main (void)
-{
- int ii = 0;
- q = 5;
- for (ii = 0; ii < 100; ii++)
- func (ii, q);
-
- return 0;
-}
-
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/SE/vlength_errors.c b/gcc/testsuite/c-c++-common/cilk-plus/SE/vlength_errors.c
deleted file mode 100644
index 88e4678552b..00000000000
--- a/gcc/testsuite/c-c++-common/cilk-plus/SE/vlength_errors.c
+++ /dev/null
@@ -1,59 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus -Wunknown-pragmas" } */
-
-#define Q 4
-
-int z = Q;
-
-__attribute__ ((vector (uniform(x), vectorlength (), linear (y:1) ))) /* { dg-error "expected expression" "" { target c } } */
- /* { dg-error "expected primary-expression" "" { target c++ } .-1 } */
-int func2 (int x, int y)
-{
- int zq = 5;
- return x + (y*zq);
-}
-
-__attribute__ ((vector (uniform(x), linear (y:1), vectorlength (4.5) ))) /* { dg-error "vectorlength must be an integer" } */
-int func3 (int x, int y)
-{
- int zq = 5;
- return x + (y*zq);
-}
-
-__attribute__ ((vector (uniform(x), linear (y:1), vectorlength (z) ))) /* { dg-error "vectorlength must be an integer" "" { target c } } */
- /* { dg-error "constant" "" { target c++ } .-1 } */
-int func4 (int x, int y)
-{
- int zq = 5;
- return x + (y*zq);
-}
-
-__attribute__ ((vector (uniform(x), linear (y:1), vectorlength (Q) ))) /* This is OK! */
-int func5 (int x, int y)
-{
- int zq = 5;
- return x + (y*zq);
-}
-
-__attribute__ ((vector (uniform(x), vectorlength (z), linear (y:1)))) /* { dg-error "vectorlength must be an integer" "" { target c } } */
- /* { dg-error "constant" "" { target c++ } .-1 } */
-int func6 (int x, int y)
-{
- int zq = 5;
- return x + (y*zq);
-}
-
-__attribute__ ((vector (uniform(x), linear (y:1), vectorlength (sizeof (int)) ))) /* This is OK too! */
-int func7 (int x, int y)
-{
- int zq = 5;
- return x + (y*zq);
-}
-
-int main (void)
-{
- int ii = 0, q = 5;
- for (ii = 0; ii < 10; ii++)
- q += func2 (z, ii);
- return q;
-}
diff --git a/gcc/testsuite/g++.dg/cilk-plus/AN/array_function.cc b/gcc/testsuite/g++.dg/cilk-plus/AN/array_function.cc
deleted file mode 100644
index b111e217cfc..00000000000
--- a/gcc/testsuite/g++.dg/cilk-plus/AN/array_function.cc
+++ /dev/null
@@ -1,8 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus" } */
-
-void f() { }
-int main()
-{
- f[0:1:1]; // { dg-error "function type" }
-}
diff --git a/gcc/testsuite/g++.dg/cilk-plus/AN/array_test1_tplt.cc b/gcc/testsuite/g++.dg/cilk-plus/AN/array_test1_tplt.cc
deleted file mode 100644
index e9ee7ec6385..00000000000
--- a/gcc/testsuite/g++.dg/cilk-plus/AN/array_test1_tplt.cc
+++ /dev/null
@@ -1,118 +0,0 @@
-/* { dg-do run } */
-/* { dg-options "-fcilkplus" } */
-
-#include <cstdlib>
-#include <string.h>
-#if HAVE_IO
-#include <cstdio>
-#endif
-template <class T> int main2 (char **argv);
-
-int main (void)
-{
- int x = 1, y = 1, z = 1;
- char *array[2];
- array[0] = strdup ("a.out");
- array[1] = strdup ("5");
- x = main2<unsigned char> (array);
- x += main2<char> (array);
- y = main2<short> (array);
- y += main2<unsigned short> (array);
- y += main2<int> (array);
- y += main2<unsigned int> (array);
- z = main2<long> (array);
- z += main2<long long> (array);
- y += main2<float> (array);
- z += main2<double> (array);
-
- return x+y+z;
-}
-template <class T>
-int main2 (char **argv)
-{
- T array[10];
- int ii = 0, x = 2, z= 0 , y = 0;
-
- for (ii = 0; ii < 10; ii++)
- array[ii] = 10;
-
- array[0:10:1] = (T)15;
-
- for (ii = 0; ii < 10; ii++)
- if (array[ii] != (T)15)
- return 1;
-
-
- array[0:5:2] = (T)20;
-
- for (ii = 0; ii < 10; ii += 2)
- if (array[ii] != (T)20)
- return 2;
-
-
- x = atoi(argv[1]);
- z = (10-atoi(argv[1]))/atoi(argv[1]);
-
- array[x:5:z] = (T)50;
-
- for (ii = x; ii < 10; ii += z)
- if (array[ii] != (T)50)
- return 3;
-
- x = atoi(argv[1]);
- z = (10-atoi(argv[1]))/atoi(argv[1]); /* (10 - 5) / 5 = 1 */
- y = 10-atoi(argv[1]);
-
- array[x:y:z] = (T)52;
-#if HAVE_IO
- for (ii = atoi ("5"); ii < (atoi ("5") + atoi ("5")); ii += atoi ("1"))
- std::printf("%d\t", (int)array[ii]);
- std::printf("\n");
-#endif
- for (ii = x; ii < 10; ii += z)
- if (array[ii] != (T)52)
- return 4;
-
-
- x = atoi(argv[1]);
- z = (10-atoi(argv[1]))/atoi(argv[1]);
- y = 10-atoi(argv[1]);
-
- array[x:y:((10-atoi(argv[1]))/atoi(argv[1]))] = (T)25;
-
- for (ii = x; ii < 10; ii += z)
- if (array[ii] != (T)25)
- return 5;
-
- x = atoi(argv[1]);
- z = (10-atoi(argv[1]))/atoi(argv[1]);
- y = 10-atoi(argv[1]);
-
- array[atoi(argv[1]):(10-atoi(argv[1])):((10-atoi(argv[1]))/atoi(argv[1]))] =
- (T)14;
- for (ii = x; ii < 10; ii += z)
- if (array[ii] != (T)14)
- return 6;
-
-
- array[atoi("5"):5:1] = (T)65;
-
- for (ii = atoi ("5"); ii < 10; ii++)
- if (array[ii] != (T)65)
- return 7;
-
-
- array[atoi("5"):atoi("5"):atoi("1")] = 99;
-
-#if HAVE_IO
- for (ii = atoi ("5"); ii < (atoi ("5") + atoi ("5")); ii += atoi ("1"))
- std::printf("%d\t", (int)array[ii]);
- std::printf("\n");
-#endif
-
- for (ii = atoi ("5"); ii < (atoi ("5") + atoi ("5")); ii += atoi ("1"))
- if (array[ii] != (T)99)
- return 8;
-
- return 0;
-}
diff --git a/gcc/testsuite/g++.dg/cilk-plus/AN/array_test2_tplt.cc b/gcc/testsuite/g++.dg/cilk-plus/AN/array_test2_tplt.cc
deleted file mode 100644
index 041c0528976..00000000000
--- a/gcc/testsuite/g++.dg/cilk-plus/AN/array_test2_tplt.cc
+++ /dev/null
@@ -1,141 +0,0 @@
-/* { dg-do run } */
-/* { dg-options "-fcilkplus -Wno-overflow" } */
-
-#include <cstdlib>
-#include <string.h>
-template <class T> int main2(char **argv);
-int main(void)
-{
- int x = 1, y = 1, z = 1, w = 1;
- char *array[2];
- array[0] = strdup ("a.out");
- array[1] = strdup ("5");
- w = main2<short>(array);
- w += main2<unsigned short> (array);
- x = main2<char> (array);
- x += main2<unsigned char> (array);
- y = main2<int> (array);
- y += main2<unsigned int> (array);
- z = main2<long> (array);
- z += main2<unsigned long> (array);
- z += main2<long long> (array);
-
- return (w+x+y+z);
-}
-
-template<class T>
-int main2(char **argv)
-{
- T array[10], array2[10];
- int ii = 0, x = 2, z= 0 , y = 0 ;
-
- for (ii = 0; ii < 10; ii++)
- {
- array[ii] = 10;
- array2[ii] = 5000000;
- }
-
- array2[0:10:1] = array[0:10:1];
-
- for (ii = 0; ii < 10; ii++)
- if (array2[ii] != array[ii])
- return 1;
-
- for (ii = 0; ii < 10; ii++)
- {
- array[ii] = 10;
- array2[ii] = 5000000;
- }
-
- array2[0:5:2] = array[0:5:2];
-
- for (ii = 0; ii < 10; ii += 2)
- if (array[ii] != array2[ii])
- return 2;
-
- for (ii = 0; ii < 10; ii++)
- {
- array[ii] = 10;
- array2[ii] = 5000000;
- }
- x = atoi(argv[1]);
- z = (10-atoi(argv[1]))/atoi(argv[1]);
-
- array2[x:5:z] = array[x:5:z];
-
- for (ii = x; ii < 5; ii += z)
- if (array2[ii] != array[ii])
- return 3;
-
- for (ii = 0; ii < 10; ii++)
- {
- array[ii] = 500;
- array2[ii] = 1000000;
- }
- x = atoi(argv[1]);
- z = (10-atoi(argv[1]))/atoi(argv[1]);
- y = 10-atoi(argv[1]);
-
- array2[x:y:z] = array[x:y:z];
- for (ii = x; ii < 10; ii = ii + z)
- if (array2[ii] != array[ii])
- return 4;
-
- for (ii = 0; ii < 10; ii++)
- {
- array[ii] = 500;
- array2[ii] = 1000000;
- }
- x = atoi(argv[1]);
- z = (10-atoi(argv[1]))/atoi(argv[1]);
- y = 10-atoi(argv[1]);
-
- array[x:y:((10-atoi(argv[1]))/atoi(argv[1]))] =
- array2[x:y:((10-atoi(argv[1]))/atoi(argv[1]))];
-
- for (ii = x; ii < 10; ii += z)
- if (array[ii] != array2[ii])
- return 6;
-
-
- x = atoi(argv[1]);
- z = (10-atoi(argv[1]))/atoi(argv[1]);
- y = 10-atoi(argv[1]);
-
- for (ii = 0; ii < 10; ii++)
- {
- array[ii] = 500;
- array2[ii] = 1000000;
- }
-
- array[atoi(argv[1]):(10-atoi(argv[1])):((10-atoi(argv[1]))/atoi(argv[1]))] =
- array2[atoi(argv[1]):(10-atoi(argv[1])):((10-atoi(argv[1]))/atoi(argv[1]))];
- for (ii = x; ii < 10; ii += z)
- if (array[ii] != array2[ii])
- return 6;
-
- for (ii = 0; ii < 10; ii++)
- {
- array[ii] = 4;
- array2[ii] = 2;
- }
-
- array[atoi("5"):5:1] = array2[atoi("5"):5:1];
-
- for (ii = atoi ("5"); ii < 10; ii++)
- if (array[ii] != array2[ii])
- return 7;
-
- for (ii = 0; ii < 10; ii++)
- {
- array[ii] = 5;
- array2[ii] = 1;
- }
- array[atoi("5"):atoi("5"):atoi("1")] = array2[atoi("5"):atoi("5"):atoi("1")];
-
- for (ii = 5; ii < 10; ii++)
- if (array2[ii] != array[ii])
- return 8;
-
- return 0;
-}
diff --git a/gcc/testsuite/g++.dg/cilk-plus/AN/array_test_ND_tplt.cc b/gcc/testsuite/g++.dg/cilk-plus/AN/array_test_ND_tplt.cc
deleted file mode 100644
index 479ba134899..00000000000
--- a/gcc/testsuite/g++.dg/cilk-plus/AN/array_test_ND_tplt.cc
+++ /dev/null
@@ -1,115 +0,0 @@
-/* { dg-do run } */
-/* { dg-options "-fcilkplus" } */
-
-#include <cstdlib>
-#include<string.h>
-template <class T> int main2(char **argv);
-
-int main(void)
-{
- int x = 1, y=1, z=1, w = 1;
- char *array[3];
- array[0] = strdup ("a.out");
- array[1] = strdup ("10");
- array[2] = strdup ("15");
- w = main2<char> (array);
- w += main2<unsigned char> (array);
- x = main2<int> (array);
- x += main2<unsigned int> (array);
- y = main2<long> (array);
- y += main2<unsigned long> (array);
- z = main2<short> (array);
- z += main2<unsigned short> (array);
- return x+y+z;
-}
-
-template <class T>
-int main2(char **argv)
-{
- T array[10][15];
- T array_2[10][15];
- int ii = 0, jj = 0,x = 0, z= 1 , y = 10 ,argc = 3;
-
-
- for (ii = 0; ii < 10; ii++) {
- for (jj = 0; jj< 15; jj++) {
- array[ii][jj] = ii+jj;
- array_2[ii][jj] = 0;
- }
- }
- array_2[0:5:2][0:5:3] = array[0:5:2][0:5:3] + 1 + 5 + array[0][5] + x;
-
- for (ii = 0; ii < 10; ii += 2)
- {
- for (jj = 0; jj < 15; jj += 3)
- {
- if (array_2[ii][jj] != array[ii][jj] + 1 + 5 + array[0][5] + x)
- return 1;
- }
- }
-
-
- for (ii = 0; ii < 10; ii++) {
- for (jj = 0; jj< 15; jj++) {
- array[ii][jj] = ii+jj;
- array_2[ii][jj] = 0;
- }
- }
- x = atoi(argv[1]);
- y = atoi(argv[2]);
- array_2[0:x:1][0:y:1] = array[0:x:1][0:y:1] + x + y + array[0:x:1][0:y:1];
-
- for (ii = 0; ii < x; ii++)
- {
- for (jj = 0; jj < y; jj++)
- {
- if (array_2[ii][jj] != array[ii][jj] + x + y + array[ii][jj])
- return 2;
- }
- }
-
- for (ii = 0; ii < 10; ii++) {
- for (jj = 0; jj< 15; jj++) {
- array[ii][jj] = ii+jj;
- array_2[ii][jj] = 0;
- }
- }
- x = atoi(argv[1]);
- y = atoi(argv[2]);
- z = (20- atoi (argv[1]))/atoi(argv[1]);
- /* (20-10)/10 evaluates to 1 all the time :-). */
- array_2[0:x:z][0:y:z] = array[0:x:z][0:y:z] + array[0:x:z][0:y:z] + y + z;
-
- for (ii = 0; ii < x; ii += z)
- {
- for (jj = 0; jj < y; jj += z)
- {
- if (array_2[ii][jj] != array[ii][jj] + array[ii][jj] + y + z)
- return 3;
- }
- }
-
-
-
- for (ii = 0; ii < 10; ii++) {
- for (jj = 0; jj< 15; jj++) {
- array[ii][jj] = ii+jj;
- array_2[ii][jj] = 0;
- }
- }
- x = argc-3;
- y = 20-atoi(argv[1]);
- z = (20- atoi (argv[1]))/atoi(argv[1]);
- /* (20-10)/10 evaluates to 1 all the time :-). */
- array_2[(argc-3):(20-atoi(argv[1])):(20-atoi(argv[1]))/atoi(argv[1])][(argc-3):(30-atoi(argv[2])): ((30-atoi(argv[2]))/atoi(argv[2]))] = array[(argc-3):20-atoi(argv[1]):(20-atoi(argv[1]))/atoi(argv[1])][(argc-3):(30-atoi(argv[2])): (30-atoi(argv[2]))/atoi(argv[2])] + array[(argc-3):20-atoi(argv[1]):(20-atoi(argv[1]))/atoi(argv[1])][(argc-3):(30-atoi(argv[2])): (30-atoi(argv[2]))/atoi(argv[2])] * array[(argc-3):20-atoi(argv[1]):(20-atoi(argv[1]))/atoi(argv[1])][(argc-3):(30-atoi(argv[2])): (30-atoi(argv[2]))/atoi(argv[2])];
-
- for (ii = 0; ii < 10; ii++)
- {
- for (jj = 0; jj < 15; jj++)
- {
- if (array_2[ii][jj] != array[ii][jj] + array[ii][jj] * array[ii][jj])
- return 4;
- }
- }
- return 0;
-}
diff --git a/gcc/testsuite/g++.dg/cilk-plus/AN/braced_list.cc b/gcc/testsuite/g++.dg/cilk-plus/AN/braced_list.cc
deleted file mode 100644
index 3521f87258a..00000000000
--- a/gcc/testsuite/g++.dg/cilk-plus/AN/braced_list.cc
+++ /dev/null
@@ -1,13 +0,0 @@
-/* { dg-do compile { target c++11 } } */
-/* { dg-options "-fcilkplus" } */
-
-int main (void)
-{
- int Array[100], Array2[100];
-
- Array[{1,2}:2] = 5; /* { dg-error "braced list index is not allowed" } */
- Array[1:{1,2}:2] = 5; /* { dg-error "expected primary-expression before" } */
- Array[1:10:{1,2}] = 5; /* { dg-error "expected primary-expression before" } */
-
- return 0;
-}
diff --git a/gcc/testsuite/g++.dg/cilk-plus/AN/builtin_fn_custom_tplt.cc b/gcc/testsuite/g++.dg/cilk-plus/AN/builtin_fn_custom_tplt.cc
deleted file mode 100644
index 3d9e87bceb5..00000000000
--- a/gcc/testsuite/g++.dg/cilk-plus/AN/builtin_fn_custom_tplt.cc
+++ /dev/null
@@ -1,126 +0,0 @@
-/* { dg-do run } */
-/* { dg-options "-fcilkplus " } */
-
-#if HAVE_IO
-#include <cstdio>
-#endif
-
-#include <cstdlib>
-
-template <class T>
-T my_func (T x, T y)
-{
- if (x > y)
- return x;
- else
- return y;
-}
-
-template <class T>
-T main_func (T *array, T *array2, T identity_val, int size)
-{
- T result;
-
- result = __sec_reduce (identity_val, array[0:size:1] * array2[0:size:1],
- my_func); // my_func (identity_val, array[5] * array2[5]);
- return result;
-}
-int main (void)
-{
- int i_index = 0, f_index = 0, d_index = 0, l_index = 0;
- int iarray[10], iarray2[10], i_result, i_max;
- long larray[10], larray2[10], l_result, l_max;
- float farray[10], farray2[10], f_result, f_max;
- double darray[10], darray2[10], d_result, d_max;
- for (int ii = 0; ii < 10; ii++)
- {
- if (ii%2 && ii)
- {
- darray[ii] = (double)(1.0000/(double)ii);
- farray[ii] = (float)(1.00/(float)ii);
- }
- else
- {
- darray[ii] = (double) ii + 0.10;
- farray[ii] = (float) (1.00/((float)(ii+1.000)));
- }
- darray2[ii] = (double) (1.00000/ (double)(ii+1));
- farray2[ii] = (float) (1.00/ (float)(ii+1));
- }
-
- for (int ii = 0; ii < 10; ii++)
- {
- iarray[ii] = ii;
- larray[ii] = (long)ii;
- }
-
- for (int ii = 0; ii < 10; ii++)
- {
- iarray2[ii] = (ii-5);
- larray2[ii] = long (ii-5);
- }
-#if HAVE_IO
- printf("Int: ");
- for (int ii=0; ii < 10; ii++)
- {
- printf("%2d ", iarray[ii] * iarray2[ii]);
- }
- printf("\nfloat: ");
- for (int ii=0; ii < 10; ii++)
- {
- printf("%4.3f ", farray[ii] * farray2[ii]);
- }
-
- printf("\nlong: ");
- for (int ii=0; ii < 10; ii++)
- {
- printf("%2d ", larray[ii] * larray2[ii]);
- }
-
- printf("\ndouble: ");
- for (int ii=0; ii < 10; ii++)
- {
- printf("%4.3f ", (float) (darray[ii] * darray2[ii]));
- }
- printf("\n");
-#endif
-
- i_result = main_func<int> (iarray, iarray2, iarray[0] * iarray2[0], 10);
- f_result = main_func<float>(farray, farray2, 0.00, 10);
- d_result = main_func<double>(darray, darray2, 0.0000, 10);
- l_result = main_func<long>(larray, larray2, 0, 10);
-
-#if HAVE_IO
- printf("int result = %2d\n", i_result);
- printf ("long result = %2d\n", l_result);
- printf("float result = %4.3f\n", f_result);
- printf("double result = %4.3lf\n", d_result);
-#endif
-
- i_max = iarray[0] * iarray2[0];
- f_max = farray[0] * farray2[0];
- d_max = darray[0] * darray2[0];
- l_max = larray[0] * larray2[0];
- for (int ii = 0; ii < 10; ii++)
- {
- if (i_max < iarray[ii] * iarray2[ii])
- i_max = iarray[ii] * iarray2[ii];
- if (f_max < farray[ii] * farray2[ii])
- f_max = farray[ii] * farray2[ii];
- if (d_max < darray[ii] * darray2[ii])
- d_max = darray[ii] * darray2[ii];
- if (l_max < larray[ii] * larray2[ii])
- l_max = larray[ii] * larray2[ii];
- }
-
- if (i_max != i_result)
- return 1;
- if (f_max != f_result)
- return 2;
- if (d_max != d_result)
- return 3;
- if (l_max != l_result)
- return 4;
- return 0;
-}
-
diff --git a/gcc/testsuite/g++.dg/cilk-plus/AN/builtin_fn_mutating_tplt.cc b/gcc/testsuite/g++.dg/cilk-plus/AN/builtin_fn_mutating_tplt.cc
deleted file mode 100644
index 111a2a29686..00000000000
--- a/gcc/testsuite/g++.dg/cilk-plus/AN/builtin_fn_mutating_tplt.cc
+++ /dev/null
@@ -1,136 +0,0 @@
-/* { dg-do run } */
-/* { dg-options "-fcilkplus" } */
-
-#if HAVE_IO
-#include <cstdio>
-#include<iostream>
-#endif
-
-#include <cstdlib>
-
-template <class T>
-T my_func (T *x, T y)
-{
- if (*x < y)
- *x = y;
- else
- *x = *x;
-
- return T();
-}
-
-template <class T> T my_func (T *x, T y);
-template <class T>
-T main_func (T *array, T *array2, T identity_val, int size)
-{
- T result = identity_val;
-
- __sec_reduce_mutating (&result, array[0:size] * array2[0:size:1], my_func);
-
-#if HAVE_IO
- std::cout << "Result = " << result << std::endl;
-#endif
- return result;
-}
-
-int main (void)
-{
- int iarray[10], iarray2[10], i_result = 0, i_max;
- long larray[10], larray2[10], l_result = 0, l_max;
- float farray[10], farray2[10], f_result = 0, f_max;
- double darray[10], darray2[10], d_result = 0, d_max;
- for (int ii = 0; ii < 10; ii++)
- {
- if (ii%2 && ii)
- {
- darray[ii] = (double)(1.0000/(double)(ii));
- farray[ii] = (float)(1.00/(float)(ii));
- }
- else
- {
- darray[ii] = (double) ii + 0.10;
- farray[ii] = (float) (1.00/((float)(ii) + 0.10));
- }
- darray2[ii] = (double) (1.00000/ (double)(ii+1));
- farray2[ii] = (float) (1.00/ (float)(ii+1));
- }
-
- for (int ii = 0; ii < 10; ii++)
- {
- iarray[ii] = ii;
- larray[ii] = (long)ii;
- }
-
- for (int ii = 0; ii < 10; ii++)
- {
- iarray2[ii] = (ii-5);
- larray2[ii] = (long)ii-5;
- }
-#if HAVE_IO
- printf("\nInt: ");
- for (int ii=0; ii < 10; ii++)
- {
- printf("%2d ", iarray[ii] * iarray2[ii]);
- }
- printf("\nfloat: ");
- for (int ii=0; ii < 10; ii++)
- {
- printf("%3.2f ", farray[ii] * farray2[ii]);
- }
-
- printf("\nlong: ");
- for (int ii=0; ii < 10; ii++)
- {
- printf("%2d ", larray[ii] * larray2[ii]);
- }
-
- printf("\ndouble: ");
- for (int ii=0; ii < 10; ii++)
- {
- printf("%4.3lf ", (float) (darray[ii] * darray2[ii]));
- }
- printf("\n");
-#endif
-
- i_result = main_func<int> (iarray, iarray2, 0, 10);
- l_result = main_func<long>(larray, larray2, 0, 10);
- f_result = main_func<float>(farray, farray2, 0.00, 10);
- d_result = main_func<double>(darray, darray2, 0.0000, 10);
-
- i_max = iarray[0] * iarray2[0];
- d_max = darray[0] * darray2[0];
- f_max = farray[0] * farray2[0];
- l_max = larray[0] * larray2[0];
- for (int ii = 0; ii < 10; ii++)
- {
- if (iarray[ii] * iarray2[ii] > i_max)
- i_max = iarray[ii] * iarray2[ii];
- if (darray[ii] * darray2[ii] > d_max)
- d_max = darray[ii] * darray2[ii];
- if (farray[ii] * farray2[ii] > f_max)
- f_max = farray[ii] * farray2[ii];
- if (larray[ii] * larray2[ii] > l_max)
- l_max = larray[ii] * larray2[ii];
- }
-#if HAVE_IO
- printf("int result = %2d\n", i_max);
- printf("long result = %2d\n", l_max);
- printf("float result = %4.3f\n", f_max);
- printf("double result = %4.3lf\n", (float)d_max);
-#endif
-
- if (i_max != i_result)
- return 1;
-
- if (f_max != f_result)
- return 2;
-
- if (l_max != l_result)
- return 3;
-
- if (d_max != d_result)
- return 4;
-
- return 0;
-}
-
diff --git a/gcc/testsuite/g++.dg/cilk-plus/AN/fp_triplet_values_tplt.c b/gcc/testsuite/g++.dg/cilk-plus/AN/fp_triplet_values_tplt.c
deleted file mode 100644
index 1387558a834..00000000000
--- a/gcc/testsuite/g++.dg/cilk-plus/AN/fp_triplet_values_tplt.c
+++ /dev/null
@@ -1,36 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus" } */
-
-float q;
-
-void func (int *x)
-{
- *x = 5;
-}
-template <class T> int main2 (T x, T y, T z);
-
-int main (void)
-{
- main2 <float> (1.5, 2.3, 3.443);
- main2 <double> (1.34393, 2.38383, 4.38383);
- return 0;
-}
-template <class T>
-int main2 (T x, T y, T z)
-{
- int array[10], array2[10];
- array2[:] = array[x:2]; /* { dg-error "start-index of array notation triplet is not an integer" } */
- array2[:] = array[1:y]; /* { dg-error "length of array notation triplet is not an integer" } */
- array2[1:2:z] = array[:]; /* { dg-error "stride of array notation triplet is not an integer" } */
- func (&array2[1:x:3]); /* { dg-error "length of array notation triplet is not an integer" } */
- array2[y:9]++; /* { dg-error "start-index of array notation triplet is not an integer" } */
- array2[1:x]++; /* { dg-error "length of array notation triplet is not an integer" } */
- array2[1:9:x]++; /* { dg-error "stride of array notation triplet is not an integer" } */
-
- ++array2[1:q:3]; /* { dg-error "length of array notation triplet is not an integer" } */
- array2[:] = array[q:1:3]; /* { dg-error "start-index of array notation triplet is not an integer" } */
- array2[:] = array[1:q:3]; /* { dg-error "length of array notation triplet is not an integer" } */
- array2[:] = array[1:3:q]; /* { dg-error "stride of array notation triplet is not an integer" } */
- func (&array2[1:q:3]); /* { dg-error "length of array notation triplet is not an integer" } */
- return 0;
-}
diff --git a/gcc/testsuite/g++.dg/cilk-plus/AN/postincr_test.cc b/gcc/testsuite/g++.dg/cilk-plus/AN/postincr_test.cc
deleted file mode 100644
index b0952c71bca..00000000000
--- a/gcc/testsuite/g++.dg/cilk-plus/AN/postincr_test.cc
+++ /dev/null
@@ -1,107 +0,0 @@
-/* { dg-do run } */
-/* { dg-options "-fcilkplus" } */
-
-#define HAVE_IO 0
-
-#if HAVE_IO
-#include <cstdio>
-#endif
-
-#include <cstdlib>
-template <class T> int main2(int argc);
-
-int main (void)
-{
- return (main2<int>(1) + main2<long> (1) + main2<long long> (1));
-}
-
-#if HAVE_IO
-template <class T> int print_array (T *array, int size);
-template <class T> int print_array (T *array, int size)
-{
- for (int ii = 0; ii < size; ii++)
- printf("%d ", array[ii]);
- printf("\n");
- return 0;
-}
-#endif
-
-template <class T>
-int main2(int argc)
-{
- T array[10], array_serial[10];
-
- for (int ii = 0; ii < 10; ii++) {
- array[ii] = 0;
- array_serial[ii] = 0;
- }
-
- array[:] = 19383;
- for (int ii = 0; ii < 10; ii++)
- array_serial[ii] = 19383;
-
- array[:]++;
-
- for (int ii = 0; ii < 10; ii++)
- array_serial[ii]++;
-
-#if HAVE_IO
- print_array<T>(array, 10);
- print_array<T>(array_serial, 10);
-#endif
-
- for (int ii = 0; ii < 10; ii++)
- if (array_serial[ii] != array[ii])
- return 1;
-
- for (int ii = 0; ii < 10; ii++)
- array[:]++;
-
- for (int ii = 0; ii < 10; ii++)
- for (int jj = 0; jj < 10; jj++)
- array_serial[jj]++;
-
-#if HAVE_IO
- print_array<T>(array, 10);
- print_array<T>(array_serial, 10);
-#endif
-
- for (int ii = 0; ii < 10; ii++)
- if (array_serial[ii] != array[ii])
- return 2;
-
- if (argc == 2)
- array[0:10:1]++;
-
- if (argc == 2)
- {
- for (int ii = 0; ii < 10; ii++)
- array_serial[ii]++;
- }
-
-#if HAVE_IO
- print_array<T>(array, 10);
- print_array<T>(array_serial, 10);
-#endif
-
- for (int ii = 0; ii < 10; ii++)
- if (array_serial[ii] != array[ii])
- return 3;
-
- array[0:10/argc:argc]++;
-
- for (int ii = 0; ii < 10; ii += argc)
- array_serial[ii]++;
-
-
- for (int ii = 0; ii < 10; ii++)
- if (array_serial[ii] != array[ii])
- return 4;
-
-#if HAVE_IO
- print_array<T>(array, 10);
- print_array<T>(array_serial, 10);
-#endif
-
- return 0;
-}
diff --git a/gcc/testsuite/g++.dg/cilk-plus/AN/preincr_test.cc b/gcc/testsuite/g++.dg/cilk-plus/AN/preincr_test.cc
deleted file mode 100644
index f5552c7ed0e..00000000000
--- a/gcc/testsuite/g++.dg/cilk-plus/AN/preincr_test.cc
+++ /dev/null
@@ -1,106 +0,0 @@
-/* { dg-do run } */
-/* { dg-options "-fcilkplus" } */
-
-
-#define HAVE_IO 0
-
-#if HAVE_IO
-#include <cstdio>
-#endif
-
-#include <cstdlib>
-template <class T> int main2(int argc);
-
-int main (void)
-{
- return (main2<int>(1) + main2<long> (1) + main2<long long> (1));
-}
-
-#if HAVE_IO
-template <class T> int print_array (T *array, int size);
-template <class T> int print_array (T *array, int size)
-{
- for (int ii = 0; ii < size; ii++)
- printf("%d ", array[ii]);
- printf("\n");
- return 0;
-}
-#endif
-
-template <class T>
-int main2(int argc)
-{
- int array[10], array_serial[10];
-
- for (int ii = 0; ii < 10; ii++) {
- array[ii] = 0;
- array_serial[ii] = 0;
- }
-
- array[:] = 19383;
- for (int ii = 0; ii < 10; ii++)
- array_serial[ii] = 19383;
-
- ++array[:];
-
- for (int ii = 0; ii < 10; ii++)
- ++array_serial[ii];
-
-#if HAVE_IO
- print_array<T>(array, 10);
- print_array<T>(array_serial, 10);
-#endif
- for (int ii = 0; ii < 10; ii++)
- if (array_serial[ii] != array[ii])
- return 1;
-
- for (int ii = 0; ii < 10; ii++)
- ++array[:];
-
- for (int ii = 0; ii < 10; ii++)
- for (int jj = 0; jj < 10; jj++)
- ++array_serial[jj];
-
-#if HAVE_IO
- print_array<T>(array, 10);
- print_array<T>(array_serial, 10);
-#endif
- for (int ii = 0; ii < 10; ii++)
- if (array_serial[ii] != array[ii])
- return 2;
-
- if (argc == 2)
- ++array[0:10:1];
-
- if (argc == 2)
- {
- for (int ii = 0; ii < 10; ii++)
- ++array_serial[ii];
- }
-
-#if HAVE_IO
- print_array<T>(array, 10);
- print_array<T>(array_serial, 10);
-#endif
- for (int ii = 0; ii < 10; ii++)
- if (array_serial[ii] != array[ii])
- return 3;
-
- ++array[0:10/argc:argc];
-
- for (int ii = 0; ii < 10; ii += argc)
- {
- ++array_serial[ii];
- }
-
-#if HAVE_IO
- print_array<T>(array, 10);
- print_array<T>(array_serial, 10);
-#endif
-
- for (int ii = 0; ii < 10; ii++)
- if (array_serial[ii] != array[ii])
- return 4;
-
- return 0;
-}
diff --git a/gcc/testsuite/g++.dg/cilk-plus/CK/catch_exc.cc b/gcc/testsuite/g++.dg/cilk-plus/CK/catch_exc.cc
deleted file mode 100644
index 82b74886ded..00000000000
--- a/gcc/testsuite/g++.dg/cilk-plus/CK/catch_exc.cc
+++ /dev/null
@@ -1,81 +0,0 @@
-/* { dg-options "-fcilkplus" } */
-/* { dg-do run } */
-/* { dg-require-effective-target cilkplus_runtime } */
-
-#include <assert.h>
-#include <unistd.h>
-#if HAVE_IO
-#include <cstdio>
-#include <cilk/cilk_api.h>
-#endif
-#include <cstdlib>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-extern int __cilkrts_set_param (const char *, const char *);
-
-#ifdef __cplusplus
-}
-#endif
-
-
-void func(int volatile* steal_me)
-{
- while (! (*steal_me))
- {
- usleep(2000);
- }
-#if HAVE_IO
- printf("Foo executing on %d\n", __cilkrts_get_worker_number());
-#endif
- throw 5;
-}
-
-void my_test()
-{
- volatile int steal_me = 0;
-
- try
- {
- _Cilk_spawn func(&steal_me);
-#if HAVE_IO
- printf("Continuation executing on %d\n",
- __cilkrts_get_worker_number());
-#endif
- steal_me = 1;
- _Cilk_sync;
- goto bad;
- }
-
- catch (int x)
- {
-#if HAVE_IO
- printf("We caught x = %d\n", x);
-#endif
- assert(x == 5);
- }
- if (0)
- {
- bad:
-#if HAVE_IO
- printf("We should not be here!\n");
-#endif
- __builtin_abort ();
- }
-}
-
-
-int main()
-{
- /* Ensure more than one worker. */
- if (__cilkrts_set_param("nworkers", "2") != 0)
- __builtin_abort();
-
- my_test();
-#if HAVE_IO
- printf("PASSED\n");
-#endif
- return 0;
-}
diff --git a/gcc/testsuite/g++.dg/cilk-plus/CK/cf3.cc b/gcc/testsuite/g++.dg/cilk-plus/CK/cf3.cc
deleted file mode 100644
index 8d88c5f346c..00000000000
--- a/gcc/testsuite/g++.dg/cilk-plus/CK/cf3.cc
+++ /dev/null
@@ -1,96 +0,0 @@
-/* { dg-options "-fcilkplus" } */
-
-typedef __PTRDIFF_TYPE__ ptrdiff_t;
-
-template <typename T>
-class I
-{
-public:
- typedef ptrdiff_t difference_type;
- I ();
- ~I ();
- I (T *);
- I (const I &);
- T &operator * ();
- T *operator -> ();
- T &operator [] (const difference_type &) const;
- I &operator = (const I &);
- I &operator ++ ();
- I operator ++ (int);
- I &operator -- ();
- I operator -- (int);
- I &operator += (const difference_type &);
- I &operator -= (const difference_type &);
- I operator + (const difference_type &) const;
- I operator - (const difference_type &) const;
- template <typename S> friend bool operator == (I<S> &, I<S> &);
- template <typename S> friend bool operator == (const I<S> &, const I<S> &);
- template <typename S> friend bool operator < (I<S> &, I<S> &);
- template <typename S> friend bool operator < (const I<S> &, const I<S> &);
- template <typename S> friend bool operator <= (I<S> &, I<S> &);
- template <typename S> friend bool operator <= (const I<S> &, const I<S> &);
- template <typename S> friend bool operator > (I<S> &, I<S> &);
- template <typename S> friend bool operator > (const I<S> &, const I<S> &);
- template <typename S> friend bool operator >= (I<S> &, I<S> &);
- template <typename S> friend bool operator >= (const I<S> &, const I<S> &);
- template <typename S> friend typename I<S>::difference_type operator - (I<S> &, I<S> &);
- template <typename S> friend typename I<S>::difference_type operator - (const I<S> &, const I<S> &);
- template <typename S> friend I<S> operator + (typename I<S>::difference_type , const I<S> &);
-private:
- T *p;
-};
-template <typename T> I<T>::I () : p (0) {}
-template <typename T> I<T>::~I () {}
-template <typename T> I<T>::I (T *x) : p (x) {}
-template <typename T> I<T>::I (const I &x) : p (x.p) {}
-template <typename T> T &I<T>::operator * () { return *p; }
-template <typename T> T *I<T>::operator -> () { return p; }
-template <typename T> T &I<T>::operator [] (const difference_type &x) const { return p[x]; }
-template <typename T> I<T> &I<T>::operator = (const I &x) { p = x.p; return *this; }
-template <typename T> I<T> &I<T>::operator ++ () { ++p; return *this; }
-template <typename T> I<T> I<T>::operator ++ (int) { return I (p++); }
-template <typename T> I<T> &I<T>::operator -- () { --p; return *this; }
-template <typename T> I<T> I<T>::operator -- (int) { return I (p--); }
-template <typename T> I<T> &I<T>::operator += (const difference_type &x) { p += x; return *this; }
-template <typename T> I<T> &I<T>::operator -= (const difference_type &x) { p -= x; return *this; }
-template <typename T> I<T> I<T>::operator + (const difference_type &x) const { return I (p + x); }
-template <typename T> I<T> I<T>::operator - (const difference_type &x) const { return I (p - x); }
-template <typename T> bool operator == (I<T> &x, I<T> &y) { return x.p == y.p; }
-template <typename T> bool operator == (const I<T> &x, const I<T> &y) { return x.p == y.p; }
-template <typename T> bool operator != (I<T> &x, I<T> &y) { return !(x == y); }
-template <typename T> bool operator != (const I<T> &x, const I<T> &y) { return !(x == y); }
-template <typename T> bool operator < (I<T> &x, I<T> &y) { return x.p < y.p; }
-template <typename T> bool operator < (const I<T> &x, const I<T> &y) { return x.p < y.p; }
-template <typename T> bool operator <= (I<T> &x, I<T> &y) { return x.p <= y.p; }
-template <typename T> bool operator <= (const I<T> &x, const I<T> &y) { return x.p <= y.p; }
-template <typename T> bool operator > (I<T> &x, I<T> &y) { return x.p > y.p; }
-template <typename T> bool operator > (const I<T> &x, const I<T> &y) { return x.p > y.p; }
-template <typename T> bool operator >= (I<T> &x, I<T> &y) { return x.p >= y.p; }
-template <typename T> bool operator >= (const I<T> &x, const I<T> &y) { return x.p >= y.p; }
-template <typename T> typename I<T>::difference_type operator - (I<T> &x, I<T> &y) { return x.p - y.p; }
-template <typename T> typename I<T>::difference_type operator - (const I<T> &x, const I<T> &y) { return x.p - y.p; }
-template <typename T> I<T> operator + (typename I<T>::difference_type x, const I<T> &y) { return I<T> (x + y.p); }
-
-template <typename T>
-class J
-{
-public:
- J(const I<T> &x, const I<T> &y) : b (x), e (y) {}
- const I<T> &begin ();
- const I<T> &end ();
-private:
- I<T> b, e;
-};
-
-template <typename T> const I<T> &J<T>::begin () { return b; }
-template <typename T> const I<T> &J<T>::end () { return e; }
-
-template <typename T>
-void baz (I<T> &i);
-
-void
-foo (J<int> j)
-{
- _Cilk_for (I<int> i = j.begin (); i < j.end (); i += 2)
- baz (i);
-}
diff --git a/gcc/testsuite/g++.dg/cilk-plus/CK/cilk-for-tplt.cc b/gcc/testsuite/g++.dg/cilk-plus/CK/cilk-for-tplt.cc
deleted file mode 100644
index 9481dbef74e..00000000000
--- a/gcc/testsuite/g++.dg/cilk-plus/CK/cilk-for-tplt.cc
+++ /dev/null
@@ -1,25 +0,0 @@
-/* { dg-do run } */
-/* { dg-require-effective-target cilkplus_runtime } */
-/* { dg-options "-fcilkplus" } */
-
-#define SIZE 100
-#define CHECK_VALUE 5
-
-template <class T>
-int func (T start, T end)
-{
- int Array[SIZE];
- _Cilk_for (T ii = 0; ii < end; ii++)
- Array[ii] = CHECK_VALUE;
-
- for (T ii = 0; ii < end; ii++)
- if (Array[ii] != CHECK_VALUE)
- __builtin_abort ();
-
- return 0;
-}
-
-int main (void)
-{
- return func <int> (0, 100) + func <long> (0, 100);
-}
diff --git a/gcc/testsuite/g++.dg/cilk-plus/CK/const_spawn.cc b/gcc/testsuite/g++.dg/cilk-plus/CK/const_spawn.cc
deleted file mode 100644
index c654826b3d9..00000000000
--- a/gcc/testsuite/g++.dg/cilk-plus/CK/const_spawn.cc
+++ /dev/null
@@ -1,78 +0,0 @@
-/* { dg-do run } */
-/* { dg-require-effective-target cilkplus_runtime } */
-/* { dg-options "-fcilkplus" } */
-
-class Rectangle
-{
- int area_val, h, w;
- public:
- Rectangle (int, int);
- Rectangle (int, int, int);
- ~Rectangle ();
- int area ();
-};
-Rectangle::~Rectangle ()
-{
- h = 0;
- w = 0;
- area_val = 0;
-}
-Rectangle::Rectangle (int height, int width)
-{
- h = height;
- w = width;
- area_val = 0;
-}
-
-Rectangle::Rectangle (int height, int width, int area_orig)
-{
- h = height;
- w = width;
- area_val = area_orig;
-}
-
-int Rectangle::area()
-{
- return (area_val += (h*w));
-}
-
-/* Spawning constructor. */
-int main1 (void)
-{
- Rectangle r = _Cilk_spawn Rectangle (4, 3);
- return r.area();
-}
-
-/* Spawning constructor 2. */
-int main2 (void)
-{
- Rectangle r (_Cilk_spawn Rectangle (4, 3));
- return r.area();
-}
-
-/* Spawning copy constructor. */
-int main3 (void)
-{
- Rectangle r = _Cilk_spawn Rectangle (4, 3, 2);
- return r.area ();
-}
-
-/* Spawning copy constructor 2. */
-int main4 (void)
-{
- Rectangle r ( _Cilk_spawn Rectangle (4, 3, 2));
- return r.area();
-}
-
-int main (void)
-{
- if (main1 () != 12)
- __builtin_abort ();
- if (main2 () != 12)
- __builtin_abort ();
- if (main3 () != 14)
- __builtin_abort ();
- if (main4() != 14)
- __builtin_abort ();
- return 0;
-}
diff --git a/gcc/testsuite/g++.dg/cilk-plus/CK/fib-opr-overload.cc b/gcc/testsuite/g++.dg/cilk-plus/CK/fib-opr-overload.cc
deleted file mode 100644
index 88ecff8d0ea..00000000000
--- a/gcc/testsuite/g++.dg/cilk-plus/CK/fib-opr-overload.cc
+++ /dev/null
@@ -1,94 +0,0 @@
-/* { dg-do run } */
-/* { dg-require-effective-target cilkplus_runtime } */
-/* { dg-options "-fcilkplus" } */
-
-#if HAVE_IO
-#include <iostream>
-#endif
-
-class Some_Struct
-{
- int calculated_value;
- short some_unused_value;
-public:
- Some_Struct () {
- this->calculated_value = 0;
- }
- Some_Struct (int value) {
- this->calculated_value = value;
- }
- Some_Struct operator=(Some_Struct f) {
- this->calculated_value = f.calculated_value;
- return *this;
- }
- bool operator!=(Some_Struct f) {
- return (this->calculated_value != f.calculated_value);
- }
- Some_Struct operator+(Some_Struct &f) {
- Some_Struct z;
- z.calculated_value = this->calculated_value + f.calculated_value;
- return z;
- }
- Some_Struct operator-(int x) {
- Some_Struct z;
- z.calculated_value = this->calculated_value - x;
- return z;
- }
- bool operator<(int x) {
- return (this->calculated_value < x);
- }
- int get_calculated_value () {
- return this->calculated_value;
- }
-};
-
-
-template <class T>
-T fibonacci_serial (T f)
-{
- if (f < 2)
- return f;
- T a = fibonacci_serial (f-1);
- T b = fibonacci_serial (f-2);
- return (a+b);
-}
-
-template <class T>
-T fibonacci (T f)
-{
- if (f < 2)
- return f;
- T a = _Cilk_spawn fibonacci (f-1);
- T b = fibonacci (f-2);
- _Cilk_sync;
- return (a+b);
-}
-
-int main (void)
-{
- Some_Struct f (32), f_serial(32);
- f = fibonacci (f);
- f_serial = fibonacci_serial (f_serial);
-
- if (f != f_serial)
- __builtin_abort ();
-
- int t = 32, t_serial = 32;
- t = fibonacci (t);
- t_serial = fibonacci_serial (t_serial);
- if (t != t_serial)
- __builtin_abort ();
-
- short s = 20, s_serial = 20;
- s = fibonacci (s);
- s_serial = fibonacci_serial (s_serial);
- if (s != s_serial)
- __builtin_abort ();
-
-#if HAVE_IO
- std::cout << "Fib_Parallel (32) = " << f.get_calculated_value() << std::endl;
- std::cout << "Fib_Serial (32) = " << f_serial.get_calculated_value()
- << std::endl;
-#endif
- return 0;
-}
diff --git a/gcc/testsuite/g++.dg/cilk-plus/CK/fib-tplt.cc b/gcc/testsuite/g++.dg/cilk-plus/CK/fib-tplt.cc
deleted file mode 100644
index 66b1dfa9eb1..00000000000
--- a/gcc/testsuite/g++.dg/cilk-plus/CK/fib-tplt.cc
+++ /dev/null
@@ -1,53 +0,0 @@
-/* { dg-do run } */
-/* { dg-require-effective-target cilkplus_runtime } */
-/* { dg-options "-fcilkplus" } */
-
-struct fib_struct
-{
- int x;
- int *y;
- int z[3];
- struct fib_struct *ptr_next;
- struct fib_struct operator+(struct fib_struct &other) {
- struct fib_struct z ;
- z.x = (*this).x + (other.x);
- return z;
- }
- struct fib_struct operator-(int other) {
- struct fib_struct z ;
- z.x = this->x - other;
- return z;
- }
- bool operator<(int number) {
- return (this->x < number);
- }
-
-};
-
-template <typename T>
-T fib (T z) {
- if (z < 2) return z;
- T a = _Cilk_spawn fib<T>(z - 1);
- T b = fib<T>(z - 2);
- T c = a + b;
- return (a+b);
-}
-
-
-int sfib(int x)
-{
- if (x < 2) return x;
- int a = sfib(x-1);
- int b = sfib(x-2);
- return (a+b);
-}
-
-int main () {
- int z = 30;
- int parallel_fib = fib<int>(z);
- int serial_fib = sfib(z);
- if (serial_fib != parallel_fib)
- __builtin_abort ();
-
- return 0;
-}
diff --git a/gcc/testsuite/g++.dg/cilk-plus/CK/for1.cc b/gcc/testsuite/g++.dg/cilk-plus/CK/for1.cc
deleted file mode 100644
index b2f76c7019f..00000000000
--- a/gcc/testsuite/g++.dg/cilk-plus/CK/for1.cc
+++ /dev/null
@@ -1,376 +0,0 @@
-/* { dg-do run } */
-/* { dg-require-effective-target cilkplus_runtime } */
-/* { dg-options "-fcilkplus" } */
-
-#if HAVE_IO
-#include <cstdio>
-#endif
-
-typedef __PTRDIFF_TYPE__ ptrdiff_t;
-extern "C" void abort ();
-
-template <typename T>
-class I
-{
-public:
- typedef ptrdiff_t difference_type;
- I ();
- ~I ();
- I (T *);
- I (const I &);
- T &operator * ();
- T *operator -> ();
- T &operator [] (const difference_type &) const;
- I &operator = (const I &);
- I &operator ++ ();
- I operator ++ (int);
- I &operator -- ();
- I operator -- (int);
- I &operator += (const difference_type &);
- I &operator -= (const difference_type &);
- I operator + (const difference_type &) const;
- I operator - (const difference_type &) const;
- template <typename S> friend bool operator == (I<S> &, I<S> &);
- template <typename S> friend bool operator == (const I<S> &, const I<S> &);
- template <typename S> friend bool operator < (I<S> &, I<S> &);
- template <typename S> friend bool operator < (const I<S> &, const I<S> &);
- template <typename S> friend bool operator <= (I<S> &, I<S> &);
- template <typename S> friend bool operator <= (const I<S> &, const I<S> &);
- template <typename S> friend bool operator > (I<S> &, I<S> &);
- template <typename S> friend bool operator > (const I<S> &, const I<S> &);
- template <typename S> friend bool operator >= (I<S> &, I<S> &);
- template <typename S> friend bool operator >= (const I<S> &, const I<S> &);
- template <typename S> friend typename I<S>::difference_type operator - (I<S> &, I<S> &);
- template <typename S> friend typename I<S>::difference_type operator - (const I<S> &, const I<S> &);
- template <typename S> friend I<S> operator + (typename I<S>::difference_type , const I<S> &);
-private:
- T *p;
-};
-template <typename T> I<T>::I () : p (0) {}
-template <typename T> I<T>::~I () {}
-template <typename T> I<T>::I (T *x) : p (x) {}
-template <typename T> I<T>::I (const I &x) : p (x.p) {}
-template <typename T> T &I<T>::operator * () { return *p; }
-template <typename T> T *I<T>::operator -> () { return p; }
-template <typename T> T &I<T>::operator [] (const difference_type &x) const { return p[x]; }
-template <typename T> I<T> &I<T>::operator = (const I &x) { p = x.p; return *this; }
-template <typename T> I<T> &I<T>::operator ++ () { ++p; return *this; }
-template <typename T> I<T> I<T>::operator ++ (int) { return I (p++); }
-template <typename T> I<T> &I<T>::operator -- () { --p; return *this; }
-template <typename T> I<T> I<T>::operator -- (int) { return I (p--); }
-template <typename T> I<T> &I<T>::operator += (const difference_type &x) { p += x; return *this; }
-template <typename T> I<T> &I<T>::operator -= (const difference_type &x) { p -= x; return *this; }
-template <typename T> I<T> I<T>::operator + (const difference_type &x) const { return I (p + x); }
-template <typename T> I<T> I<T>::operator - (const difference_type &x) const { return I (p - x); }
-template <typename T> bool operator == (I<T> &x, I<T> &y) { return x.p == y.p; }
-template <typename T> bool operator == (const I<T> &x, const I<T> &y) { return x.p == y.p; }
-template <typename T> bool operator != (I<T> &x, I<T> &y) { return !(x == y); }
-template <typename T> bool operator != (const I<T> &x, const I<T> &y) { return !(x == y); }
-template <typename T> bool operator < (I<T> &x, I<T> &y) { return x.p < y.p; }
-template <typename T> bool operator < (const I<T> &x, const I<T> &y) { return x.p < y.p; }
-template <typename T> bool operator <= (I<T> &x, I<T> &y) { return x.p <= y.p; }
-template <typename T> bool operator <= (const I<T> &x, const I<T> &y) { return x.p <= y.p; }
-template <typename T> bool operator > (I<T> &x, I<T> &y) { return x.p > y.p; }
-template <typename T> bool operator > (const I<T> &x, const I<T> &y) { return x.p > y.p; }
-template <typename T> bool operator >= (I<T> &x, I<T> &y) { return x.p >= y.p; }
-template <typename T> bool operator >= (const I<T> &x, const I<T> &y) { return x.p >= y.p; }
-template <typename T> typename I<T>::difference_type operator - (I<T> &x, I<T> &y) { return x.p - y.p; }
-template <typename T> typename I<T>::difference_type operator - (const I<T> &x, const I<T> &y) { return x.p - y.p; }
-template <typename T> I<T> operator + (typename I<T>::difference_type x, const I<T> &y) { return I<T> (x + y.p); }
-
-template <typename T>
-class J
-{
-public:
- J(const I<T> &x, const I<T> &y) : b (x), e (y) {}
- const I<T> &begin ();
- const I<T> &end ();
-private:
- I<T> b, e;
-};
-
-template <typename T> const I<T> &J<T>::begin () { return b; }
-template <typename T> const I<T> &J<T>::end () { return e; }
-
-int results[2000];
-
-template <typename T>
-void
-baz (I<T> &i)
-{
- if (*i < 0 || *i >= 2000)
- {
-#if HAVE_IO
- printf ("*i(%d) is < 0 or >= 2000\n", *i);
- fflush (stdout);
-#endif
- __builtin_abort ();
- }
- else
- results[*i]++;
-}
-
-void
-f1 (const I<int> &x, const I<int> &y)
-{
- _Cilk_for (I<int> i = x; i <= y; i += 6)
- {
- baz (i);
- }
-
-#if HAVE_IO
- printf("===== Starting F1 =========\n");
- for (I<int> i = x; i <= y; i+= 6) {
- printf("Result[%4d] = %2d\n", *i, results[*i]);
- fflush (stdout);
- }
-#endif
-}
-
-void
-f2 (const I<int> &x, const I<int> &y)
-{
- _Cilk_for (I<int> i = x; i < y - 1; i += 2)
- baz (i);
-
-#if HAVE_IO
- printf("===== Starting F2 =========\n");
- for (int ii = 0; ii < 1998; ii += 2) {
- printf("Result[%4d] = %2d\n", ii, results[ii]);
- fflush (stdout);
- }
-#endif
-}
-
-template <typename T>
-void
-f3 (const I<int> &x, const I<int> &y)
-{
- _Cilk_for (I<int> i = x; i <= y; i += 1)
- baz (i);
-#if HAVE_IO
- printf("===== Starting F3 =========\n");
- for (int ii = 20; ii < 1987; ii += 1) {
- printf("Result[%4d] = %2d\n", ii, results[ii]);
- fflush (stdout);
- }
-
-#endif
-}
-
-template <typename T>
-void
-f4 (const I<int> &x, const I<int> &y)
-{
- _Cilk_for (I<int> i = x + (2000 - 64); i > y + 10; --i)
- baz (i);
-#if HAVE_IO
- printf("===== Starting F3 =========\n");
- for (I<int> i = x + (2000 - 64); i > y + 10; --i) {
- printf("Result[%4d] = %2d\n", *i, results[*i]);
- fflush (stdout);
- }
-#endif
-}
-void
-f5 (const I<int> &x, const I<int> &y)
-{
- _Cilk_for (I<int> i = x + 2000 - 64; i > y + 10; i -= 10)
- baz (i);
-#if HAVE_IO
- for (I<int> i = x + 2000 - 64; i > y + 10; i -= 10) {
- printf("Result[%4d] = %2d\n", *i, results[*i]);
- fflush (stdout);
- }
-#endif
-}
-
-template <int N>
-void
-f6 (const I<int> &x, const I<int> &y)
-{
- _Cilk_for (I<int> i = x + 2000 - 64; i > y + 10; i -= 10)
- {
- I<int> j = i + N;
- baz (j);
- }
-#if HAVE_IO
- for (I<int> i = x + 2000 - 64; i > y + 10; i = i - 12 + 2)
- {
- I<int> j = i + N;
- printf("Result[%4d] = %2d\n", *j, results[*j]);
- fflush (stdout);
- }
-#endif
-}
-template <int N>
-void
-f7 (I<int> ii, const I<int> &x, const I<int> &y)
-{
- _Cilk_for (I <int> i = x - 10; i <= y + 10; i += N)
- baz (i);
-#if HAVE_IO
- for (I<int> i = x - 10; i <= y + 10; i += N)
- {
- printf("Result[%4d] = %2d\n", *i, results[*i]);
- fflush (stdout);
- }
-#endif
-}
-
-template <int N>
-void
-f8 (J<int> j)
-{
- _Cilk_for (I<int> i = j.begin (); i <= j.end () + N; i += 2)
- baz (i);
-#if HAVE_IO
- for (I<int> i = j.begin (); i <= j.end () + N; i += 2) {
- printf("Result[%4d] = %2d\n", *i, results[*i]);
- fflush (stdout);
- }
-#endif
-
-}
-
-template <typename T, int N>
-void
-f9 (const I<T> &x, const I<T> &y)
-{
- _Cilk_for (I<T> i = x; i <= y; i += N)
- baz (i);
-#if HAVE_IO
- for (I<T> i = x; i <= y; i = i + N)
- {
- printf("Result[%4d] = %2d\n", *i, results[*i]);
- fflush (stdout);
- }
-#endif
-}
-
-template <typename T, int N>
-void
-f10 (const I<T> &x, const I<T> &y)
-{
- _Cilk_for (I<T> i = x; i > y; i += N)
- baz (i);
-#if HAVE_IO
- for (I<T> i = x; i > y; i = i + N) {
- printf("Result[%4d] = %2d\n", *i, results[*i]);
- fflush (stdout);
- }
-#endif
-}
-
-template <typename T>
-void
-f11 (const T &x, const T &y)
-{
- _Cilk_for (T i = x; i <= y; i += 3)
- baz (i);
-
-#if HAVE_IO
- for (T i = x; i <= y; i += 3) {
- printf("Result[%4d] = %2d\n", *i, results[*i]);
- fflush (stdout);
- }
-#endif
- T j = y + 3;
- baz (j);
-
-}
-
-template <typename T>
-void
-f12 (const T &x, const T &y)
-{
- _Cilk_for (T i = x; i > y; --i)
- baz (i);
-#if HAVE_IO
- for (T i = x; i > y; --i) {
- printf("Result[%4d] = %2d\n", *i, results[*i]);
- fflush (stdout);
- }
-#endif
-}
-template <int N>
-struct K
-{
- template <typename T>
- static void
- f13 (const T &x, const T &y)
- {
- _Cilk_for (T i = x; i <= y + N; i += N)
- baz (i);
-#if HAVE_IO
- for (T i = x; i < y+N; i += N) {
- printf("Result[%4d] = %2d\n", *i, results[*i]);
- fflush (stdout);
- }
-#endif
- }
-};
-
-#define check(expr) \
- for (int i = 0; i < 2000; i++) \
- if (expr) \
- { \
- if (results[i] != 1) { \
- __builtin_abort (); \
- } \
- results[i] = 0; \
- } \
- else if (results[i]) \
- abort ()
-
-int
-main ()
-{
- int a[2000];
- long b[2000];
- for (int i = 0; i < 2000; i++)
- {
- a[i] = i;
- b[i] = i;
- }
- f1 (&a[10], &a[1990]);
- check (i >= 10 && i <= 1990 && (i - 10) % 6 == 0);
- f2 (&a[0], &a[1999]);
- check (i < 1998 && (i & 1) == 0);
- f3<int> (&a[20], &a[1837]);
- check (i >= 20 && i <= 1837);
- f4<int> (&a[0], &a[30]);
- check (i > 40 && i <= 2000 - 64);
-
- f5 (&a[0], &a[100]);
- check (i >= 116 && i <= 2000 - 64 && (i - 116) % 10 == 0);
- f6<-10> (&a[10], &a[110]);
- check (i >= 116 && i <= 2000 - 64 && (i - 116) % 10 == 0);
-
- f7<6> (I<int> (), &a[12], &a[1800]);
- check (i >= 2 && i <= 1808 && (i - 2) % 6 == 0);
-
- f8<121> (J<int> (&a[14], &a[1803]));
- check (i >= 14 && i <= 1924 && (i & 1) == 0);
- f9<int, 7> (&a[33], &a[1967]);
- check (i >= 33 && i <= 1967 && (i - 33) % 7 == 0);
- f10<int, -7> (&a[1939], &a[17]);
- check (i >= 21 && i <= 1939 && (i - 21) % 7 == 0);
- f11<I<int> > (&a[16], &a[1981]);
- check (i >= 16 && i <= 1984 && (i - 16) % 3 == 0);
- f12<I<int> > (&a[1761], &a[37]);
- check (i > 37 && i <= 1761);
- K<5>::f13<I<int> > (&a[1], &a[1935]);
- check (i >= 1 && i <= 1936 && (i - 1) % 5 == 0);
- f9<long, 7> (&b[33], &b[1967]);
- check (i >= 33 && i <= 1967 && (i - 33) % 7 == 0);
- f10<long, -7> (&b[1939], &b[17]);
- check (i >= 21 && i <= 1939 && (i - 21) % 7 == 0);
- f11<I<long> > (&b[16], &b[1981]);
- check (i >= 16 && i <= 1984 && (i - 16) % 3 == 0);
- f12<I<long> > (&b[1761], &b[37]);
- check (i > 37 && i <= 1761);
- K<5>::f13<I<long> > (&b[1], &b[1935]);
- check (i >= 1 && i <= 1936 && (i - 1) % 5 == 0);
- return 0;
-}
diff --git a/gcc/testsuite/g++.dg/cilk-plus/CK/lambda_spawns.cc b/gcc/testsuite/g++.dg/cilk-plus/CK/lambda_spawns.cc
deleted file mode 100644
index 96d2ea19c11..00000000000
--- a/gcc/testsuite/g++.dg/cilk-plus/CK/lambda_spawns.cc
+++ /dev/null
@@ -1,238 +0,0 @@
-/* { dg-do run } */
-/* { dg-require-effective-target cilkplus_runtime } */
-/* { dg-require-effective-target c++11 } */
-/* { dg-options "-fcilkplus" } */
-
-#define FIRST_NUMBER 5
-#define SECOND_NUMBER 3
-#define HAVE_IO 0
-#if HAVE_IO
-#include <stdio.h>
-#endif
-
-#include <stdlib.h>
-
-int global_var;
-
-void foo1(int *array, int size)
-{
-#if HAVE_IO
- for (int ii = 0; ii < size; ii++)
- printf("%2d\t", array[ii]);
- printf("\n");
- fflush (stdout);
-#else
- if (size != 2)
- __builtin_abort ();
- if (array[0] != FIRST_NUMBER)
- __builtin_abort ();
- if (array[1] != SECOND_NUMBER)
- __builtin_abort ();
-#endif
- global_var++;
-}
-void foo1_c(const int *array, int size)
-{
-#if HAVE_IO
- for (int ii = 0; ii < size; ii++)
- printf("%2d\t", array[ii]);
- printf("\n");
- fflush (stdout);
-#else
- if (size != 2)
- __builtin_abort ();
- if (array[0] != FIRST_NUMBER)
- __builtin_abort ();
- if (array[1] != SECOND_NUMBER)
- __builtin_abort ();
-#endif
- global_var++;
-}
-
-
-int main2 (int argc) {
- int A[2] = {FIRST_NUMBER, SECOND_NUMBER};
- int B[2] = {FIRST_NUMBER, SECOND_NUMBER};
- int main_size = argc+1; /* We know argc is 1, and so 1+1 = 2. */
- int q = 0;
-
- global_var = 0;
- auto func0 = [=](){ foo1_c(A, 2); };
- _Cilk_spawn func0();
- foo1 (A, 2);
- _Cilk_sync;
- if (global_var != 2)
- return (++q);
-
- global_var = 0;
- auto func1 = [=](int *Aa){ foo1(Aa, 2); };
- _Cilk_spawn func1 (A);
- foo1 (A, 2);
- _Cilk_sync;
- if (global_var != 2)
- return (++q);
-
- global_var = 0;
- auto func2 = [=](int *Aa, int size){ foo1(Aa, size); };
- _Cilk_spawn func2 (A, 2);
- foo1 (A, 2);
- _Cilk_sync;
- if (global_var != 2)
- return (++q);
-
- global_var = 0;
- auto func3 = [=](int *Aa, int size){ int new_size = (size % 2 + 2);
- foo1(Aa, size); };
- _Cilk_spawn func3 (A, 2);
- foo1 (A, 2);
- _Cilk_sync;
- if (global_var != 2)
- return (++q);
-
- global_var = 0;
- auto func4 = [](int *Aa){ foo1(Aa, 2); };
- _Cilk_spawn func4 (A);
- foo1 (A, 2);
- _Cilk_sync;
- if (global_var != 2)
- return (++q);
-
- global_var = 0;
- auto func5 = [](int *Aa, int size){ foo1(Aa, size); };
- _Cilk_spawn func5 (A, 2);
- foo1 (A, 2);
- _Cilk_sync;
- if (global_var != 2)
- return (++q);
-
- global_var = 0;
- auto func6 = [&](int *Aa){ foo1(Aa, 2); };
- _Cilk_spawn func6 (A);
- foo1 (A, 2);
- _Cilk_sync;
- if (global_var != 2)
- return (++q);
-
- global_var = 0;
- auto func7 = [&](int *Aa, int size){ foo1(Aa, size); };
- _Cilk_spawn func7 (A, 2);
- foo1 (A, 2);
- _Cilk_sync;
- if (global_var != 2)
- return (++q);
-
- global_var = 0;
- auto func8 = [&](){ foo1(A, 2); };
- _Cilk_spawn func8 ();
- foo1 (A, 2);
- _Cilk_sync;
- if (global_var != 2)
- return (++q);
-
- global_var = 0;
- /* We ignore the first param here and pass in A from the outer fn. */
- auto func9 = [&](int *Aa, int size){ foo1(A, size); };
- _Cilk_spawn func9 (A, 2);
- foo1 (A, 2);
- _Cilk_sync;
- if (global_var != 2)
- return (++q);
-
- global_var = 0;
- auto func10 = [=](){ foo1_c(A, main_size); };
- _Cilk_spawn func10 ();
- foo1 (A, 2);
- _Cilk_sync;
- if (global_var != 2)
- return (++q);
-
- global_var = 0;
- auto func11 = [&](){ foo1(A, main_size); };
- _Cilk_spawn func11 ();
- foo1 (A, 2);
- _Cilk_sync;
- if (global_var != 2)
- return (++q);
-
- global_var = 0;
- /* We ignore the first & second param here and pass in A from the
- outer fn. */
- auto func12 = [&](int *Aa, int size){ foo1(A, main_size); };
- _Cilk_spawn func12 (A, 2);
- foo1 (A, 2);
- _Cilk_sync;
- if (global_var != 2)
- return (++q);
-
- global_var = 0;
- _Cilk_spawn [&](int *Aa){ foo1(Aa, 2); }(A);
- foo1 (A, 2);
- _Cilk_sync;
- if (global_var != 2)
- return (++q);
-
- global_var = 0;
- _Cilk_spawn [&](int *Aa, int size){ foo1(Aa, size); }(A, 2);
- foo1 (A, 2);
- _Cilk_sync;
- if (global_var != 2)
- return (++q);
-
- global_var = 0;
- _Cilk_spawn [=](int *Aa){ foo1(Aa, 2); }(A);
- foo1 (A, 2);
- _Cilk_sync;
- if (global_var != 2)
- return (++q);
-
- global_var = 0;
- _Cilk_spawn [=](int *Aa, int size){ foo1(Aa, size); }(A, 2);
- foo1 (A, 2);
- _Cilk_sync;
- if (global_var != 2)
- return (++q);
-
- global_var = 0;
- /* We ignore the first param here. */
- _Cilk_spawn [=](int *Aa, int size){ foo1_c(A, size); }(A, 2);
- foo1 (A, 2);
- _Cilk_sync;
- if (global_var != 2)
- return (++q);
-
- global_var = 0;
- /* We ignore the first and second param here. */
- _Cilk_spawn [=](int *Aa, int size){ foo1_c(A, size); }(B, 2);
- foo1 (A, 2);
- _Cilk_sync;
- if (global_var != 2)
- return (++q);
-
- global_var = 0;
- _Cilk_spawn [&](){ foo1(A, 2); }();
- [&](){ foo1(A, 2); }();
- _Cilk_sync;
- if (global_var != 2)
- return (++q);
-
- global_var = 0;
- _Cilk_spawn [=](){ foo1_c (A, main_size); }();
- foo1 (A, 2);
- _Cilk_sync;
- if (global_var != 2)
- return (++q);
-
- global_var = 0;
- _Cilk_spawn [&](){ foo1(A, main_size); }();
- [&](){ foo1(A, 2); }();
- _Cilk_sync;
- if (global_var != 2)
- return (++q);
-
- return q;
-}
-
-int main (void)
-{
- return main2 (1);
-}
diff --git a/gcc/testsuite/g++.dg/cilk-plus/CK/lambda_spawns_tplt.cc b/gcc/testsuite/g++.dg/cilk-plus/CK/lambda_spawns_tplt.cc
deleted file mode 100644
index 1a36262dc6d..00000000000
--- a/gcc/testsuite/g++.dg/cilk-plus/CK/lambda_spawns_tplt.cc
+++ /dev/null
@@ -1,174 +0,0 @@
-/* { dg-do run } */
-/* { dg-require-effective-target cilkplus_runtime } */
-/* { dg-require-effective-target c++11 } */
-/* { dg-options "-fcilkplus" } */
-
-#define FIRST_NUMBER 5
-#define SECOND_NUMBER 3
-#define HAVE_IO 0
-#if HAVE_IO
-#include <stdio.h>
-#endif
-
-#include <stdlib.h>
-
-template <class T>
-void foo1(T *array, int size)
-{
-#if HAVE_IO
- for (int ii = 0; ii < size; ii++)
- printf("%2d\t", (int)array[ii]);
- printf("\n");
- fflush (stdout);
-#else
- if (size != 2)
- __builtin_abort ();
- if (array[0] != FIRST_NUMBER)
- __builtin_abort ();
- if (array[1] != SECOND_NUMBER)
- __builtin_abort ();
-#endif
-}
-template <class T>
-void foo1_c(const T *array, int size)
-{
-#if HAVE_IO
- for (int ii = 0; ii < size; ii++)
- printf("%2d\t", (int)array[ii]);
- printf("\n");
- fflush (stdout);
-#else
- if (size != 2)
- __builtin_abort ();
- if (array[0] != FIRST_NUMBER)
- __builtin_abort ();
- if (array[1] != SECOND_NUMBER)
- __builtin_abort ();
-#endif
-}
-template <class T>
-int main2 (int argc, char **argv) {
- T A[2] = {FIRST_NUMBER, SECOND_NUMBER};
- int main_size = argc+1; /* We know argc is 1, and so 1+1 = 2. */
- auto func0 = [=](){ foo1_c(A, 2); };
- _Cilk_spawn func0();
- foo1 (A, 2);
- _Cilk_sync;
-
- auto func1 = [=](T *Aa){ foo1(Aa, 2); };
- _Cilk_spawn func1 (A);
- foo1 (A, 2);
- _Cilk_sync;
-
- auto func2 = [=](T *Aa, int size){ foo1(Aa, size); };
- _Cilk_spawn func2 (A, 2);
- foo1 (A, 2);
- _Cilk_sync;
-
- auto func3 = [=](T *Aa, int size){ int new_size = (size % 2 + 2);
- foo1(Aa, size); };
- _Cilk_spawn func3 (A, 2);
- foo1 (A, 2);
- _Cilk_sync;
-
- auto func4 = [](T *Aa){ foo1(Aa, 2); };
- _Cilk_spawn func4 (A);
- foo1 (A, 2);
- _Cilk_sync;
-
- auto func5 = [](T *Aa, int size){ foo1(Aa, size); };
- _Cilk_spawn func5 (A, 2);
- foo1 (A, 2);
- _Cilk_sync;
-
- auto func6 = [&](T *Aa){ foo1(Aa, 2); };
- _Cilk_spawn func6 (A);
- foo1 (A, 2);
- _Cilk_sync;
-
- auto func7 = [&](T *Aa, int size){ foo1(Aa, size); };
- _Cilk_spawn func7 (A, 2);
- foo1 (A, 2);
- _Cilk_sync;
-
- auto func8 = [&](){ foo1(A, 2); };
- _Cilk_spawn func8 ();
- foo1 (A, 2);
- _Cilk_sync;
-
- /* We ignore the first param here and pass in A from the outer fn. */
- auto func9 = [&](T *Aa, int size){ foo1(A, size); };
- _Cilk_spawn func9 (A, 2);
- foo1 (A, 2);
- _Cilk_sync;
-
- auto func10 = [=](){ foo1_c(A, main_size); };
- _Cilk_spawn func10 ();
- foo1 (A, 2);
- _Cilk_sync;
-
- auto func11 = [&](){ foo1(A, main_size); };
- _Cilk_spawn func11 ();
- foo1 (A, 2);
- _Cilk_sync;
-
- /* We ignore the first & second param here and pass in A from the
- outer fn. */
- auto func12 = [&](T *Aa, int size){ foo1(A, main_size); };
- _Cilk_spawn func12 (A, 2);
- foo1 (A, 2);
- _Cilk_sync;
-
- _Cilk_spawn [&](T *Aa){ foo1(Aa, 2); }(A);
- foo1 (A, 2);
- _Cilk_sync;
-
- _Cilk_spawn [&](T *Aa, int size){ foo1(Aa, size); }(A, 2);
- foo1 (A, 2);
- _Cilk_sync;
-
- _Cilk_spawn [=](T *Aa){ foo1(Aa, 2); }(A);
- foo1 (A, 2);
- _Cilk_sync;
-
- _Cilk_spawn [=](T *Aa, int size){ foo1(Aa, size); }(A, 2);
- foo1 (A, 2);
- _Cilk_sync;
-
- /* We ignore the first param here. */
- _Cilk_spawn [=](T *Aa, int size){ foo1_c(A, size); }(A, 2);
- foo1 (A, 2);
- _Cilk_sync;
-
- /* We ignore the first and second param here. */
- _Cilk_spawn [=](T *Aa, int size){ foo1_c(A, main_size); }(A, 2);
- foo1 (A, 2);
- _Cilk_sync;
-
- _Cilk_spawn [&](){ foo1(A, 2); }();
- [&](){ foo1(A, 2); }();
- _Cilk_sync;
-
- _Cilk_spawn [=](){ foo1_c(A, main_size); }();
- foo1 (A, 2);
- _Cilk_sync;
-
- _Cilk_spawn [&](){ foo1(A, main_size); }();
- [&](){ foo1(A, 2); }();
- _Cilk_sync;
-
- return 0;
-}
-
-int main (void)
-{
- int argc = 1;
- char **argv = NULL;
- int x = 1, y = 1, z = 1, q = 1, p = 1;
- x = main2<char>(argc,argv);
- y = main2<short>(argc,argv);
- z = main2<int>(argc,argv);
- p = main2<long>(argc,argv);
- q = main2<long long>(argc,argv);
- return (x+y+z+p+q);
-}
diff --git a/gcc/testsuite/g++.dg/cilk-plus/CK/pr60586.cc b/gcc/testsuite/g++.dg/cilk-plus/CK/pr60586.cc
deleted file mode 100644
index 47c78281300..00000000000
--- a/gcc/testsuite/g++.dg/cilk-plus/CK/pr60586.cc
+++ /dev/null
@@ -1,89 +0,0 @@
-/* { dg-do run } */
-/* { dg-require-effective-target cilkplus_runtime } */
-/* { dg-options "-fcilkplus" } */
-
-class Rectangle
-{
- int area_val, h, w;
- public:
- Rectangle (int, int);
- Rectangle (int, int, int);
- ~Rectangle ();
- int area ();
-};
-Rectangle::~Rectangle ()
-{
- h = 0;
- w = 0;
- area_val = 0;
-}
-Rectangle::Rectangle (int height, int width)
-{
- h = height;
- w = width;
- area_val = 0;
-}
-
-int some_func(int &x)
-{
- x++;
- return x;
-}
-
-Rectangle::Rectangle (int height, int width, int area_orig)
-{
- h = height;
- w = width;
- area_val = area_orig;
-}
-
-int Rectangle::area()
-{
- return (area_val += (h*w));
-}
-
-
-int some_func (int &);
-
-/* Spawning constructor. */
-int main1 (void)
-{
- int x = 3;
- Rectangle r = _Cilk_spawn Rectangle (some_func(x), 3);
- return r.area();
-}
-
-/* Spawning constructor 2. */
-int main2 (void)
-{
- Rectangle r (_Cilk_spawn Rectangle (4, 3));
- return r.area();
-}
-
-/* Spawning copy constructor. */
-int main3 (void)
-{
- int x = 3;
- Rectangle r = _Cilk_spawn Rectangle (some_func(x), 3, 2);
- return r.area ();
-}
-
-/* Spawning copy constructor 2. */
-int main4 (void)
-{
- Rectangle r ( _Cilk_spawn Rectangle (4, 3, 2));
- return r.area();
-}
-
-int main (void)
-{
- if (main1 () != 12)
- __builtin_abort ();
- if (main2 () != 12)
- __builtin_abort ();
- if (main3 () != 14)
- __builtin_abort ();
- if (main4() != 14)
- __builtin_abort ();
- return 0;
-}
diff --git a/gcc/testsuite/g++.dg/cilk-plus/CK/pr66326.cc b/gcc/testsuite/g++.dg/cilk-plus/CK/pr66326.cc
deleted file mode 100644
index 102b9734275..00000000000
--- a/gcc/testsuite/g++.dg/cilk-plus/CK/pr66326.cc
+++ /dev/null
@@ -1,32 +0,0 @@
-/* { dg-do run } */
-/* { dg-require-effective-target cilkplus_runtime } */
-/* { dg-options "-fcilkplus" } */
-
-#include <vector>
-#include <random>
-
-template <class T>
-void do_not_optimize_away(T&& x) {
- asm volatile("" : "+r"(x));
-}
-
-const int N = 1'000'000;
-
-auto compute() {
- std::vector<double> v(N);
- auto rng = std::mt19937{std::random_device{}()};
- std::uniform_real_distribution<double> dist(0, 1);
- for (int i = 0; i < N; ++i) v[i] = std::log(std::sqrt(dist(rng)));
- return v;
-}
-
-int main() {
- std::vector<double> v1, v2, v3;
- _Cilk_spawn [&] { v1 = compute(); }();
- _Cilk_spawn [&] { v2 = compute(); }();
- v3 = compute();
- do_not_optimize_away(v1.data());
- do_not_optimize_away(v2.data());
- do_not_optimize_away(v3.data());
- return 0;
-}
diff --git a/gcc/testsuite/g++.dg/cilk-plus/CK/pr68001.cc b/gcc/testsuite/g++.dg/cilk-plus/CK/pr68001.cc
deleted file mode 100644
index bf2fefa03b4..00000000000
--- a/gcc/testsuite/g++.dg/cilk-plus/CK/pr68001.cc
+++ /dev/null
@@ -1,18 +0,0 @@
-/* PR middle-end/68001 */
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus" } */
-
-#include <vector>
-
-std::vector<double> f() {
- std::vector<double> v;
- return v;
-}
-
-int main()
-{
- std::vector<double> x = _Cilk_spawn f ();
- std::vector<double> y = f();
- _Cilk_sync;
- return 0;
-}
diff --git a/gcc/testsuite/g++.dg/cilk-plus/CK/pr68997.cc b/gcc/testsuite/g++.dg/cilk-plus/CK/pr68997.cc
deleted file mode 100644
index a9a8a51ce7e..00000000000
--- a/gcc/testsuite/g++.dg/cilk-plus/CK/pr68997.cc
+++ /dev/null
@@ -1,68 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-std=c++11 -fcilkplus" } */
-
-struct A1 {
- A1 () {}
- A1 (const A1&) {}
-};
-
-A1 fa1 () {
- return A1 ();
-}
-
-struct A2 {
- A2 () {}
- A2 (A2&&) {}
-};
-
-A2 fa2 () {
- return A2 ();
-}
-
-struct B1 {
-};
-
-B1 fb1 () {
- return B1 ();
-}
-
-struct A3 {
- A3 (const B1&) {}
-};
-
-struct A4 {
- A4 (B1) {}
-};
-
-struct B2 {
- B2 () {}
- B2 (const B2&) {}
-};
-
-B2 fb2 () {
- return B2 ();
-}
-
-struct A5 {
- A5 (B2) {}
-};
-
-void t1 () {
- A1 a1 = _Cilk_spawn fa1 ();
-}
-
-void t2 () {
- A2 a2 = _Cilk_spawn fa2 ();
-}
-
-void t3 () {
- A3 a3 = _Cilk_spawn fb1 ();
-}
-
-void t4 () {
- A4 a4 = _Cilk_spawn fb1 ();
-}
-
-void t5 () {
- A5 a5 = _Cilk_spawn fb2 ();
-}
diff --git a/gcc/testsuite/g++.dg/cilk-plus/CK/pr69024.cc b/gcc/testsuite/g++.dg/cilk-plus/CK/pr69024.cc
deleted file mode 100644
index b87dc1ace87..00000000000
--- a/gcc/testsuite/g++.dg/cilk-plus/CK/pr69024.cc
+++ /dev/null
@@ -1,38 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus" } */
-
-struct A1 {
-};
-
-struct A2 {
- A2 () {}
- A2 (const A2&) {}
-};
-
-struct B1 {
- operator A1 () {
- return A1 ();
- }
-};
-
-B1 fb1 () {
- return B1 ();
-}
-
-struct B2 {
- operator A2 () {
- return A2 ();
- }
-};
-
-B2 fb2 () {
- return B2 ();
-}
-
-void t1 () {
- A1 a1 = _Cilk_spawn fb1 ();
-}
-
-void t2 () {
- A2 a2 = _Cilk_spawn fb2 ();
-}
diff --git a/gcc/testsuite/g++.dg/cilk-plus/CK/pr69048.cc b/gcc/testsuite/g++.dg/cilk-plus/CK/pr69048.cc
deleted file mode 100644
index b6c57fca9a4..00000000000
--- a/gcc/testsuite/g++.dg/cilk-plus/CK/pr69048.cc
+++ /dev/null
@@ -1,14 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus" } */
-
-struct A {
- ~A () {}
-};
-
-A f () {
- return A ();
-}
-
-void t1 () {
- _Cilk_spawn f ();
-}
diff --git a/gcc/testsuite/g++.dg/cilk-plus/CK/pr69267.cc b/gcc/testsuite/g++.dg/cilk-plus/CK/pr69267.cc
deleted file mode 100644
index 7d00e49bf38..00000000000
--- a/gcc/testsuite/g++.dg/cilk-plus/CK/pr69267.cc
+++ /dev/null
@@ -1,10 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus" } */
-
-struct A {};
-
-void f (A) {}
-
-void g () {
- _Cilk_spawn f (A ());
-}
diff --git a/gcc/testsuite/g++.dg/cilk-plus/CK/pr80038.cc b/gcc/testsuite/g++.dg/cilk-plus/CK/pr80038.cc
deleted file mode 100644
index 85990e5a007..00000000000
--- a/gcc/testsuite/g++.dg/cilk-plus/CK/pr80038.cc
+++ /dev/null
@@ -1,47 +0,0 @@
-/* { dg-options "-fcilkplus" } */
-/* { dg-do run } */
-/* { dg-require-effective-target cilkplus_runtime } */
-
-#include <unistd.h>
-extern "C" {
- extern int __cilkrts_set_param (const char *, const char *);
-}
-
-int objcnt = 0;
-
-struct foo
-{
- int live;
- foo ()
- { objcnt++; }
- foo (const foo &)
- { objcnt++; }
- ~foo ()
- { objcnt--; }
-};
-
-void
-spawnee (foo f)
-{
- usleep(2000);
- /* Now both my_test::f and spawnee::f should be alive. */
- if (objcnt != 2)
- __builtin_abort ();
-}
-
-void
-my_test ()
-{
- foo f;
- _Cilk_spawn spawnee (f);
- _Cilk_sync ;
-}
-
-int
-main ()
-{
- if (__cilkrts_set_param ("nworkers", "2") != 0)
- __builtin_abort ();
-
- my_test ();
-}
diff --git a/gcc/testsuite/g++.dg/cilk-plus/CK/stl_iter.cc b/gcc/testsuite/g++.dg/cilk-plus/CK/stl_iter.cc
deleted file mode 100644
index ed489d8b00a..00000000000
--- a/gcc/testsuite/g++.dg/cilk-plus/CK/stl_iter.cc
+++ /dev/null
@@ -1,50 +0,0 @@
-/* { dg-do run } */
-/* { dg-require-effective-target cilkplus_runtime } */
-/* { dg-options "-fcilkplus" } */
-
-#include <vector>
-#include <cstdio>
-#include <iostream>
-#include <algorithm>
-
-using namespace std;
-
-
-int main(void)
-{
-vector <int> array;
-vector <int> array_serial;
-
-for (int ii = -1; ii < 10; ii++)
-{
- array.push_back(ii);
- array_serial.push_back (ii);
-}
-_Cilk_for (vector<int>::iterator iter = array.begin(); iter != array.end();
- iter++)
-{
- if (*iter == 6)
- *iter = 13;
-}
-for (vector<int>::iterator iter = array_serial.begin();
- iter != array_serial.end(); iter++)
-{
- if (*iter == 6)
- *iter = 13;
-}
-sort (array.begin(), array.end());
-sort (array_serial.begin(), array_serial.end());
-
-vector <int>::iterator iter = array.begin ();
-vector <int>::iterator iter_serial = array_serial.begin ();
-
-while (iter != array.end () && iter_serial != array_serial.end ())
-{
- if (*iter != *iter_serial)
- __builtin_abort ();
- iter++;
- iter_serial++;
-}
-
-return 0;
-}
diff --git a/gcc/testsuite/g++.dg/cilk-plus/CK/stl_rev_iter.cc b/gcc/testsuite/g++.dg/cilk-plus/CK/stl_rev_iter.cc
deleted file mode 100644
index ddc96d1223d..00000000000
--- a/gcc/testsuite/g++.dg/cilk-plus/CK/stl_rev_iter.cc
+++ /dev/null
@@ -1,68 +0,0 @@
-/* { dg-do run } */
-/* { dg-require-effective-target cilkplus_runtime } */
-/* { dg-options "-fcilkplus" } */
-
-
-#include <vector>
-#include <cstdio>
-#include <iostream>
-#include <algorithm>
-
-using namespace std;
-
-
-int main(void)
-{
-vector <int> array,array_serial;
-
-for (int ii = -1; ii < 10; ii++)
-{
- array.push_back(ii);
- array_serial.push_back(ii);
-}
-_Cilk_for (vector<int>::reverse_iterator iter4 = array.rbegin();
- iter4 != array.rend(); iter4++)
-{
- if (*iter4 == 0x8) {
- *iter4 = 9;
- }
-}
-
-_Cilk_for (vector<int>::reverse_iterator iter4 = array_serial.rbegin();
- iter4 != array_serial.rend(); iter4++)
-{
- if (*iter4 == 0x8) {
- *iter4 = 9;
- }
-}
-_Cilk_for (vector<int>::reverse_iterator iter2 = array.rbegin();
- iter2 != array.rend();
- iter2 += 1)
-{
- if ((*iter2 == 0x4) || (*iter2 == 0x7)) {
- *iter2 = 0x3;
- }
-}
-for (vector<int>::reverse_iterator iter2 = array_serial.rbegin();
- iter2 != array_serial.rend();
- iter2 += 1)
-{
- if ((*iter2 == 0x4) || (*iter2 == 0x7)) {
- *iter2 = 0x3;
- }
-}
-sort (array.begin(), array.end());
-sort (array_serial.begin(), array_serial.end());
-
-vector <int>::iterator iter = array.begin ();
-vector <int>::iterator iter_serial = array_serial.begin ();
-while (iter != array.end () && iter_serial != array_serial.end ())
-{
- if (*iter != *iter_serial)
- __builtin_abort ();
- iter++;
- iter_serial++;
-}
-
-return 0;
-}
diff --git a/gcc/testsuite/g++.dg/cilk-plus/CK/stl_test.cc b/gcc/testsuite/g++.dg/cilk-plus/CK/stl_test.cc
deleted file mode 100644
index 02b57c33a66..00000000000
--- a/gcc/testsuite/g++.dg/cilk-plus/CK/stl_test.cc
+++ /dev/null
@@ -1,50 +0,0 @@
-/* { dg-do run } */
-/* { dg-require-effective-target cilkplus_runtime } */
-/* { dg-options "-fcilkplus" } */
-
-
-#include <iostream>
-#include <cstdio>
-#include <cstdlib>
-#include <vector>
-#include <algorithm>
-#include <list>
-
-using namespace std;
-
-
-int main(int argc, char **argv)
-{
- vector <int> number_list, number_list_serial;
- int new_number = 0;
- int no_elements = 0;
-
- if (argc != 2)
- {
- no_elements = 10;
- }
-
-
- number_list.clear();
- number_list_serial.clear();
- for (int ii = 0; ii < no_elements; ii++)
- {
- number_list.push_back(new_number);
- number_list_serial.push_back(new_number);
- }
-
- _Cilk_for (int jj = 0; jj < no_elements; jj++)
- {
- number_list[jj] = jj + no_elements;
- }
- for (int jj = 0; jj < no_elements; jj++)
- {
- number_list_serial[jj] = jj + no_elements;
- }
-
- for (int jj = 0; jj < no_elements; jj++)
- if (number_list_serial[jj] != number_list[jj])
- __builtin_abort ();
-
- return 0;
-}
diff --git a/gcc/testsuite/g++.dg/cilk-plus/cilk-plus.exp b/gcc/testsuite/g++.dg/cilk-plus/cilk-plus.exp
deleted file mode 100644
index bc6c18ee967..00000000000
--- a/gcc/testsuite/g++.dg/cilk-plus/cilk-plus.exp
+++ /dev/null
@@ -1,71 +0,0 @@
-# Copyright (C) 2013-2017 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with GCC; see the file COPYING3. If not see
-# <http://www.gnu.org/licenses/>.
-
-# Written by Balaji V. Iyer <balaji.v.iyer@intel.com>
-
-load_lib g++-dg.exp
-load_lib cilk-plus-dg.exp
-
-if { ![check_effective_target_cilkplus] } {
- return;
-}
-
-dg-init
-if [cilkplus_init] {
- # Run the tests that are shared with C.
- g++-dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/PS/*.c]] "" ""
- dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/SE/*.c]] "-O3" " "
- dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/SE/*.c]] " " " "
- dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/SE/*.c]] "-g -O2" " "
- # Run the C++ only tests.
- g++-dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.C]] "" ""
-
- dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/AN/*.c]] " -fcilkplus" " "
- dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/AN/*.c]] " -O1 -fcilkplus" " "
- dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/AN/*.c]] " -O2 -ftree-vectorize -fcilkplus" " "
- dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/AN/*.c]] " -O3 -fcilkplus" " "
- dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/AN/*.c]] " -g -fcilkplus" " "
- dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/AN/*.c]] " -g -O1 -fcilkplus" " "
- dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/AN/*.c]] " -g -O2 -ftree-vectorize -fcilkplus" " "
- dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/AN/*.c]] " -g -O3 -fcilkplus" " "
- dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/AN/*.c]] " -O3 -ftree-vectorize -fcilkplus -g" " "
-
- dg-runtest [lsort [glob -nocomplain $srcdir/g++.dg/cilk-plus/AN/*.cc]] " -fcilkplus" " "
- dg-runtest [lsort [glob -nocomplain $srcdir/g++.dg/cilk-plus/AN/*.cc]] " -O0 -fcilkplus" " "
- dg-runtest [lsort [glob -nocomplain $srcdir/g++.dg/cilk-plus/AN/*.cc]] " -O1 -fcilkplus" " "
- dg-runtest [lsort [glob -nocomplain $srcdir/g++.dg/cilk-plus/AN/*.cc]] " -O2 -ftree-vectorize -fcilkplus" " "
- dg-runtest [lsort [glob -nocomplain $srcdir/g++.dg/cilk-plus/AN/*.cc]] " -O3 -fcilkplus" " "
- dg-runtest [lsort [glob -nocomplain $srcdir/g++.dg/cilk-plus/AN/*.cc]] " -g -fcilkplus" " "
- dg-runtest [lsort [glob -nocomplain $srcdir/g++.dg/cilk-plus/AN/*.cc]] " -g -O0 -fcilkplus" " "
- dg-runtest [lsort [glob -nocomplain $srcdir/g++.dg/cilk-plus/AN/*.cc]] " -g -O1 -fcilkplus" " "
- dg-runtest [lsort [glob -nocomplain $srcdir/g++.dg/cilk-plus/AN/*.cc]] " -g -O2 -ftree-vectorize -fcilkplus" " "
- dg-runtest [lsort [glob -nocomplain $srcdir/g++.dg/cilk-plus/AN/*.cc]] " -g -O3 -fcilkplus" " "
- dg-runtest [lsort [glob -nocomplain $srcdir/g++.dg/cilk-plus/AN/*.cc]] " -O3 -ftree-vectorize -fcilkplus -g" " "
-
- if { [check_effective_target_cilkplus_runtime] } {
- dg-runtest [lsort [glob -nocomplain $srcdir/g++.dg/cilk-plus/CK/*.cc]] " -O1 -fcilkplus" " "
- dg-runtest [lsort [glob -nocomplain $srcdir/g++.dg/cilk-plus/CK/*.cc]] " -O3 -fcilkplus" " "
- dg-runtest [lsort [glob -nocomplain $srcdir/g++.dg/cilk-plus/CK/*.cc]] " -g -fcilkplus" " "
- dg-runtest [lsort [glob -nocomplain $srcdir/g++.dg/cilk-plus/CK/*.cc]] " -g -O2 -fcilkplus" " "
-
- dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/CK/*.c]] " -O1" " "
- dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/CK/*.c]] " -O3" " "
- dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/CK/*.c]] " -g" " "
- dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/CK/*.c]] " -g -O2" " "
- }
-}
-cilkplus_finish
-dg-finish
diff --git a/gcc/testsuite/g++.dg/cilk-plus/ef_test.C b/gcc/testsuite/g++.dg/cilk-plus/ef_test.C
deleted file mode 100644
index 3e75cbd9253..00000000000
--- a/gcc/testsuite/g++.dg/cilk-plus/ef_test.C
+++ /dev/null
@@ -1,37 +0,0 @@
-/* { dg-do run } */
-/* { dg-options "-fcilkplus" } */
-
-
-__attribute__((vector (nomask), vector(mask), vector(mask,linear(x:1))))
-int func (int x)
-{
- return x+5;
-}
-
-
-__attribute__((vector(mask,uniform (y), linear(x:1))))
-__attribute__((vector (nomask, uniform (x), linear(y:1))))
-int func2 (int x, int y)
-{
- return x+y;
-}
-
-int func4 (int x, int y) __attribute__((vector, vector (nomask), vector (uniform(y), linear(x:1))));
-
-
-template <class T, class R>
-__attribute__((vector, vector(mask,uniform (y), linear(x:1))))
-T func3 (T x, R y)
-{
- return x+(T)y;
-}
-
-
-
-int main (void)
-{
- if ((func3 (5, 4) + func2 (5, 4) + func (5) + (int) func3<long, int> (5, 4)) !=
- (5 + 4) + (5 + 4) + (5 + 5) + (int) ((long)5 +(int)4))
- __builtin_abort ();
- return 0;
-}
diff --git a/gcc/testsuite/g++.dg/cilk-plus/for.C b/gcc/testsuite/g++.dg/cilk-plus/for.C
deleted file mode 100644
index 6e16cfcd1d1..00000000000
--- a/gcc/testsuite/g++.dg/cilk-plus/for.C
+++ /dev/null
@@ -1,26 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-O3 -fcilkplus" } */
-
-// Test storage classes in the initialization of a <#pragma simd> for
-// loop.
-
-int *a, *b;
-
-void foo()
-{
-#pragma simd
- for (static int tt=5; tt < 10; ++tt) /* { dg-error "before 'static'\|not declared\|expected" } */
- a[tt] = b[tt];
-
-#pragma simd
- for (extern int var=0; var < 1000; ++var) /* { dg-error "before 'extern'\|not declared\|expected" } */
- a[var] = var;
-
-#pragma simd
- for (register int regj = 0; regj < 1000; ++regj) /* { dg-error "before 'register'\|not declared\|expected" } */
- b[regj] = a[regj] * 2;
-
-#pragma simd
- for (volatile int vj=0; vj<1000; ++vj) /* { dg-error "iteration variable cannot be volatile" } */
- a[vj] = b[vj];
-}
diff --git a/gcc/testsuite/g++.dg/cilk-plus/for2.C b/gcc/testsuite/g++.dg/cilk-plus/for2.C
deleted file mode 100644
index 345e54236f8..00000000000
--- a/gcc/testsuite/g++.dg/cilk-plus/for2.C
+++ /dev/null
@@ -1,43 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus" } */
-
-int *p;
-extern int stuff();
-
-template <int value>
-void foobar(int a)
-{
-#pragma simd
- for (int i=0; i < a; ++i)
- p[i] = value;
-}
-
-template <int value>
-void foobar2(int a)
-{
- int j = 123;
-#pragma simd linear(j : value)
- for (int i=0; i < a; ++i)
- {
- p[i] = value;
- j += stuff();
- }
-}
-
-void funky()
-{
- foobar <69> (1000);
- foobar2 <123> (2000);
-}
-
-void foobar3(int a)
-{
- int j = 123;
-#pragma simd linear(j : a + a) /* { dg-error "step size must be an integer" } */
- for (int i=0; i < a; ++i)
- {
- p[i] = 1234;
- extern int bar();
- j += bar();
- }
-}
diff --git a/gcc/testsuite/g++.dg/cilk-plus/for3.C b/gcc/testsuite/g++.dg/cilk-plus/for3.C
deleted file mode 100644
index 28dbdee4339..00000000000
--- a/gcc/testsuite/g++.dg/cilk-plus/for3.C
+++ /dev/null
@@ -1,18 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-O3 -fcilkplus" } */
-
-// Test storage classes in the initialization of a <#pragma simd> for
-// loop.
-
-int *a, *b;
-
-void foo()
-{
-#pragma simd
- for (int tt=5; tt < 10; ++tt)
- {
- a[tt] = b[tt];
- if (tt == 8)
- throw 1; /* { dg-error "throw expressions are not allowed" } */
- }
-}
diff --git a/gcc/testsuite/g++.dg/cilk-plus/for4.C b/gcc/testsuite/g++.dg/cilk-plus/for4.C
deleted file mode 100644
index 5b86b9f7db5..00000000000
--- a/gcc/testsuite/g++.dg/cilk-plus/for4.C
+++ /dev/null
@@ -1,22 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus" } */
-
-int *p;
-extern int stuff();
-
-template <int value>
-void foobar(int a)
-{
- int j = 123;
-#pragma simd linear(j : value + 1)
- for (int i=0; i < a; ++i)
- {
- p[i] = value;
- j += stuff();
- }
-}
-
-void funky()
-{
- foobar <69> (1000);
-}
diff --git a/gcc/testsuite/g++.dg/cilk-plus/pr60967.C b/gcc/testsuite/g++.dg/cilk-plus/pr60967.C
deleted file mode 100644
index 1724424ff0a..00000000000
--- a/gcc/testsuite/g++.dg/cilk-plus/pr60967.C
+++ /dev/null
@@ -1,9 +0,0 @@
-// PR c++/60967
-// { dg-require-effective-target c++11 }
-// { dg-options "-fcilkplus" }
-
-int container[] = {};
-template <class foo>
-void bar() {
- for (int &v : container) { }
-}
diff --git a/gcc/testsuite/g++.dg/cilk-plus/pr69028.C b/gcc/testsuite/g++.dg/cilk-plus/pr69028.C
deleted file mode 100644
index 31542f34e9a..00000000000
--- a/gcc/testsuite/g++.dg/cilk-plus/pr69028.C
+++ /dev/null
@@ -1,13 +0,0 @@
-// PR c++/69028
-// { dg-require-effective-target c++11 }
-// { dg-options "-fcilkplus -fprofile-arcs" }
-
-void parallel()
-{
-}
-
-int main()
-{
- _Cilk_spawn parallel();
- _Cilk_sync;
-}
diff --git a/gcc/testsuite/g++.dg/cilk-plus/pr70565.C b/gcc/testsuite/g++.dg/cilk-plus/pr70565.C
deleted file mode 100644
index 781ce2c1649..00000000000
--- a/gcc/testsuite/g++.dg/cilk-plus/pr70565.C
+++ /dev/null
@@ -1,9 +0,0 @@
-// { dg-do compile } */
-// { dg-options "-fcilkplus" }
-
-int array[999];
-void foo()
-{
- _Cilk_for (int i=0; i < 999; ++i)
- array[:] = 0;
-}
diff --git a/gcc/testsuite/g++.dg/pr57662.C b/gcc/testsuite/g++.dg/pr57662.C
index 1592433d0d7..2180914ce46 100644
--- a/gcc/testsuite/g++.dg/pr57662.C
+++ b/gcc/testsuite/g++.dg/pr57662.C
@@ -32,7 +32,6 @@ enum tree_code {
ERROR_MARK,
IDENTIFIER_NODE,
OMP_SIMD,
- CILK_SIMD,
MAX_TREE_CODES
};
struct tree_identifier {
@@ -192,7 +191,7 @@ cp_parser_omp_for_loop(cp_parser * parser, enum tree_code code, tree clauses,
for (i = 0; i < collapse; i++) {
bool add_private_clause = false;
add_private_clause |=
- cp_parser_omp_for_loop_init(parser, code != CILK_SIMD,
+ cp_parser_omp_for_loop_init(parser, true,
this_pre_body, for_block, init,
decl, real_decl);
}
diff --git a/gcc/testsuite/gcc.dg/cilk-plus/cilk-plus.exp b/gcc/testsuite/gcc.dg/cilk-plus/cilk-plus.exp
deleted file mode 100644
index 447ed04f028..00000000000
--- a/gcc/testsuite/gcc.dg/cilk-plus/cilk-plus.exp
+++ /dev/null
@@ -1,63 +0,0 @@
-# Copyright (C) 2013-2017 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with GCC; see the file COPYING3. If not see
-# <http://www.gnu.org/licenses/>.
-
-# Written by Balaji V. Iyer <balaji.v.iyer@intel.com>
-
-
-load_lib gcc-dg.exp
-load_lib lto.exp
-load_lib cilk-plus-dg.exp
-
-if { ![check_effective_target_cilkplus] } {
- return;
-}
-
-dg-init
-if [cilkplus_init] {
- # Run the tests that are shared with C++.
- dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/PS/*.c]] " -ftree-vectorize -fcilkplus -std=c99" " "
- # Run the C-only tests.
- dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.c]] \
- "-ftree-vectorize -fcilkplus -std=c99" " "
-
- dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/AN/*.c]] " -fcilkplus" " "
- dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/AN/*.c]] " -O1 -fcilkplus" " "
- dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/AN/*.c]] " -O2 -fcilkplus" " "
- dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/AN/*.c]] " -O3 -fcilkplus" " "
- dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/AN/*.c]] " -g -fcilkplus" " "
- dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/AN/*.c]] " -g -O2 -ftree-vectorize -fcilkplus" " "
- dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/AN/*.c]] " -fcilkplus -std=c99" " "
- dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/AN/*.c]] " -fcilkplus -O2 -std=c99" " "
- dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/AN/*.c]] " -fcilkplus -O3 -std=c99" " "
- dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/AN/*.c]] " -fcilkplus -g -O0 -std=c99" " "
-
- if { [check_effective_target_cilkplus_runtime] } {
- dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/CK/*.c]] " -g " " "
- dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/CK/*.c]] " -O1 " " "
- dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/CK/*.c]] " -O2 -std=c99 " " "
- dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/CK/*.c]] " -O2 -ftree-vectorize " " "
- dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/CK/*.c]] " -O3 -g " " "
- if { [check_effective_target_lto] } {
- dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/CK/*.c]] " -O3 -flto -g " " "
- }
- }
-
- dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/SE/*.c]] " -g" " "
- dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/SE/*.c]] " -O3 -std=c99" " "
- dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/SE/*.c]] " -O3 -g" " "
-}
-cilkplus_finish
-dg-finish
diff --git a/gcc/testsuite/gcc.dg/cilk-plus/for1.c b/gcc/testsuite/gcc.dg/cilk-plus/for1.c
deleted file mode 100644
index 4fb534286d9..00000000000
--- a/gcc/testsuite/gcc.dg/cilk-plus/for1.c
+++ /dev/null
@@ -1,12 +0,0 @@
-/* { dg-do compile } */
-
-int *a, *b, *c;
-
-void foo()
-{
- int i, j;
- // The initialization shall declare or initialize a *SINGLE* variable.
-#pragma simd
- for (i=0, j=5; i < 1000; i++) // { dg-error "expected ';' before ','" }
- a[i] = b[j];
-}
diff --git a/gcc/testsuite/gcc.dg/cilk-plus/for2.c b/gcc/testsuite/gcc.dg/cilk-plus/for2.c
deleted file mode 100644
index 285f35a5079..00000000000
--- a/gcc/testsuite/gcc.dg/cilk-plus/for2.c
+++ /dev/null
@@ -1,11 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-O3 -fcilkplus" } */
-
-int *a, *b;
-
-void foo()
-{
-#pragma simd
- for (const int ci=0; ci<1000; ++ci) /* { dg-error "increment of read-only var\|invalid controlling\|invalid increment\|assignment of read" } */
- a[ci] = b[ci];
-}
diff --git a/gcc/testsuite/gcc.dg/cilk-plus/jump-openmp.c b/gcc/testsuite/gcc.dg/cilk-plus/jump-openmp.c
deleted file mode 100644
index 6adabf4ae06..00000000000
--- a/gcc/testsuite/gcc.dg/cilk-plus/jump-openmp.c
+++ /dev/null
@@ -1,49 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus -fopenmp" } */
-/* { dg-require-effective-target fopenmp } */
-
-int *a, *b, c;
-
-void foo()
-{
-#pragma simd
- for (int i=0; i < 1000; ++i)
- {
- a[i] = b[i];
- if (c == 5)
- return; /* { dg-error "invalid branch to/from Cilk Plus structured block" } */
- }
-}
-
-void bar()
-{
-#pragma simd
- for (int i=0; i < 1000; ++i)
- {
- lab:
- a[i] = b[i];
- }
- if (c == 6)
- goto lab; /* { dg-error "invalid entry to Cilk Plus structured block" } */
-}
-
-void baz()
-{
- bad1:
- #pragma omp parallel
- goto bad1; /* { dg-error "invalid branch to/from OpenMP structured block" } */
-
- goto bad2; /* { dg-error "invalid entry to OpenMP structured block" } */
- #pragma omp parallel
- {
- bad2: ;
- }
-
- #pragma omp parallel
- {
- int i;
- goto ok1;
- for (i = 0; i < 10; ++i)
- { ok1: break; }
- }
-}
diff --git a/gcc/testsuite/gcc.dg/cilk-plus/jump.c b/gcc/testsuite/gcc.dg/cilk-plus/jump.c
deleted file mode 100644
index 1ca886a645f..00000000000
--- a/gcc/testsuite/gcc.dg/cilk-plus/jump.c
+++ /dev/null
@@ -1,27 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus" } */
-
-int *a, *b, c;
-
-void foo()
-{
-#pragma simd
- for (int i=0; i < 1000; ++i)
- {
- a[i] = b[i];
- if (c == 5)
- return; /* { dg-error "invalid branch to/from Cilk Plus structured block" } */
- }
-}
-
-void bar()
-{
-#pragma simd
- for (int i=0; i < 1000; ++i)
- {
- lab:
- a[i] = b[i];
- }
- if (c == 6)
- goto lab; /* { dg-error "invalid entry to Cilk Plus structured block" } */
-}
diff --git a/gcc/testsuite/gcc.dg/cilk-plus/pr69798-1.c b/gcc/testsuite/gcc.dg/cilk-plus/pr69798-1.c
deleted file mode 100644
index c5a37a86a21..00000000000
--- a/gcc/testsuite/gcc.dg/cilk-plus/pr69798-1.c
+++ /dev/null
@@ -1,73 +0,0 @@
-/* PR c/69798 */
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus" } */
-
-extern int foo (void);
-
-void
-fn1 (int i, int *p)
-{
-l:
- _Cilk_spawn (void); /* { dg-error "expected expression" } */
- _Cilk_spawn (char []); /* { dg-error "expected expression" } */
- _Cilk_spawn (int *); /* { dg-error "expected expression" } */
- _Cilk_spawn (int) 1; /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn ({}); /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn ++i; /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn i++; /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn --i; /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn i--; /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn &i; /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn +i; /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn -i; /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn ~i; /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn !i; /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn *p; /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn &&l; /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn sizeof (i); /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn sizeof (short); /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn __alignof__ (i); /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn __alignof__ (short); /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn __extension__ i; /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn __func__; /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn p[0]; /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn __real__ i; /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn __imag__ i; /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn !foo (); /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn ~foo (); /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn (unsigned) foo (); /* { dg-error "only function calls can be spawned" } */
-}
-
-void
-fn2 (int i, int *p)
-{
-l:
- _Cilk_spawn _Cilk_spawn (void); /* { dg-error "consecutive|expected expression" } */
- _Cilk_spawn _Cilk_spawn (char []); /* { dg-error "consecutive|expected expression" } */
- _Cilk_spawn _Cilk_spawn (int *); /* { dg-error "consecutive|expected expression" } */
- _Cilk_spawn _Cilk_spawn (int) 1; /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn ({}); /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn ++i; /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn i++; /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn --i; /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn i--; /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn &i; /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn +i; /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn -i; /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn ~i; /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn !i; /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn *p; /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn &&l; /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn sizeof (i); /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn sizeof (short); /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn __alignof__ (i); /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn __alignof__ (short); /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn __extension__ i; /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn __func__; /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn p[0]; /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn __real__ i; /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn __imag__ i; /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn !foo (); /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn ~foo (); /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn (unsigned) foo (); /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
-}
diff --git a/gcc/testsuite/gcc.dg/cilk-plus/pr69798-2.c b/gcc/testsuite/gcc.dg/cilk-plus/pr69798-2.c
deleted file mode 100644
index 6719225dd7a..00000000000
--- a/gcc/testsuite/gcc.dg/cilk-plus/pr69798-2.c
+++ /dev/null
@@ -1,72 +0,0 @@
-/* PR c/69798 */
-/* { dg-do compile } */
-
-extern int foo (void);
-
-void
-fn1 (int i, int *p)
-{
-l:
- _Cilk_spawn (void); /* { dg-error "expected expression" } */
- _Cilk_spawn (char []); /* { dg-error "expected expression" } */
- _Cilk_spawn (int *); /* { dg-error "expected expression" } */
- _Cilk_spawn (int) 1; /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn ({}); /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn ++i; /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn i++; /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn --i; /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn i--; /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn &i; /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn +i; /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn -i; /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn ~i; /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn !i; /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn *p; /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn &&l; /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn sizeof (i); /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn sizeof (short); /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn __alignof__ (i); /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn __alignof__ (short); /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn __extension__ i; /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn __func__; /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn p[0]; /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn __real__ i; /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn __imag__ i; /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn !foo (); /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn ~foo (); /* { dg-error "only function calls can be spawned" } */
- _Cilk_spawn (unsigned) foo (); /* { dg-error "only function calls can be spawned" } */
-}
-
-void
-fn2 (int i, int *p)
-{
-l:
- _Cilk_spawn _Cilk_spawn (void); /* { dg-error "consecutive|expected expression" } */
- _Cilk_spawn _Cilk_spawn (char []); /* { dg-error "consecutive|expected expression" } */
- _Cilk_spawn _Cilk_spawn (int *); /* { dg-error "consecutive|expected expression" } */
- _Cilk_spawn _Cilk_spawn (int) 1; /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn ({}); /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn ++i; /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn i++; /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn --i; /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn i--; /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn &i; /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn +i; /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn -i; /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn ~i; /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn !i; /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn *p; /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn &&l; /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn sizeof (i); /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn sizeof (short); /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn __alignof__ (i); /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn __alignof__ (short); /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn __extension__ i; /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn __func__; /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn p[0]; /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn __real__ i; /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn __imag__ i; /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn !foo (); /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn ~foo (); /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
- _Cilk_spawn _Cilk_spawn (unsigned) foo (); /* { dg-error "consecutive ._Cilk_spawn. keywords are not permitted" } */
-}
diff --git a/gcc/testsuite/gcc.dg/cilk-plus/pr78306.c b/gcc/testsuite/gcc.dg/cilk-plus/pr78306.c
deleted file mode 100644
index 4604271441c..00000000000
--- a/gcc/testsuite/gcc.dg/cilk-plus/pr78306.c
+++ /dev/null
@@ -1,30 +0,0 @@
-/* { dg-do run } */
-/* { dg-options "-O2 -fcilkplus" } */
-
-#define _FORTIFY_SOURCE 2
-#include <string.h>
-
-int sum(int low, int high)
-{
- if(low == high) {
- return low;
- }
-
- int mid = low + (high-low)/2;
- int a = _Cilk_spawn sum(low, mid);
- int b = sum(mid+1, high);
-
- // Some very expensive computation here
- int foo[64];
- memset(foo, 0, 64*sizeof(int)); // <--- Fails
-
- _Cilk_sync;
-
- return a+b;
-}
-
-int main(void) {
- if (sum(0, 100) != 5050)
- __builtin_abort ();
- return 0;
-}
diff --git a/gcc/testsuite/gcc.dg/cilk-plus/pr79116.c b/gcc/testsuite/gcc.dg/cilk-plus/pr79116.c
deleted file mode 100644
index 9206aaf3a1f..00000000000
--- a/gcc/testsuite/gcc.dg/cilk-plus/pr79116.c
+++ /dev/null
@@ -1,9 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-fcilkplus" } */
-
-int array[1024];
-void foo()
-{
- _Cilk_for (int i = 0; i < 512; ++i)
- array[:] = __sec_implicit_index(0);
-}
diff --git a/gcc/testsuite/gcc.dg/graphite/id-28.c b/gcc/testsuite/gcc.dg/graphite/id-28.c
deleted file mode 100644
index dd5fb9f70e2..00000000000
--- a/gcc/testsuite/gcc.dg/graphite/id-28.c
+++ /dev/null
@@ -1,73 +0,0 @@
-/* { dg-do compile { target cilkplus } } */
-/* { dg-options "-fcilkplus -floop-nest-optimize -O3" } */
-
-#if HAVE_IO
-#include <stdio.h>
-#endif
-#include <math.h>
-#define NUMBER 5
-
-int func1 (int *a1, int *a2)
-{
- return __sec_reduce_add (a1[0:NUMBER] * a2[0:NUMBER:1]);
-}
-
-int func2 (int *a1, int *a2)
-{
- return (__sec_reduce_add (a1[0:NUMBER] * a2[0:NUMBER]) +
- __sec_reduce_mul (a1[0:NUMBER] + a2[0:NUMBER]));
-}
-
-int func3 (int *a1, int *a2)
-{
- return (int) sqrt ((double)(__sec_reduce_add (a1[0:NUMBER] * a2[0:NUMBER]) +
- a2[0] + a2[1] + a2[3]));
-}
-
-int func4 (int *a1, int *a2)
-{
- return a1[NUMBER-1] * (__sec_reduce_add (a1[0:NUMBER] * a2[0:NUMBER]) + a2[0] + a2[1] + a2[3])/a1[NUMBER-2];
-}
-int main(void)
-{
- int array[NUMBER], array2[NUMBER];
- int return_value = 0;
- int ii = 0;
- int argc = 1;
- __asm volatile ("" : "+r" (argc));
- for (ii = 0; ii < NUMBER; ii++)
- {
- array[ii] = argc; /* This should calculate to 1. */
- array2[ii] = argc * argc + argc; /* This should calculate to 2. */
- }
-
- return_value = func1 (array, array2);
-#if HAVE_IO
- printf("Return_value = %d\n", return_value);
-#endif
- if (return_value != (2+2+2+2+2))
- return 1;
-
- return_value = func2 (array2, array);
-#if HAVE_IO
- printf("Return_value = %d\n", return_value);
-#endif
- if (return_value != (3*3*3*3*3) + (2+2+2+2+2))
- return 2;
-
- return_value = func3 (array, array2);
-#if HAVE_IO
- printf("Return_value = %d\n", return_value);
-#endif
- if (return_value != 4)
- return 3;
-
- return_value = func4 (array, array2);
-#if HAVE_IO
- printf("Return_value = %d\n", return_value);
-#endif
- if (return_value != 16)
- return 4;
-
- return 0;
-}
diff --git a/gcc/testsuite/lib/cilk-plus-dg.exp b/gcc/testsuite/lib/cilk-plus-dg.exp
deleted file mode 100644
index 04b4f218431..00000000000
--- a/gcc/testsuite/lib/cilk-plus-dg.exp
+++ /dev/null
@@ -1,105 +0,0 @@
-# Copyright (C) 2014-2017 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with GCC; see the file COPYING3. If not see
-# <http://www.gnu.org/licenses/>.
-
-#
-# cilkplus_link_flags -- compute library path and flags to find libcilkrts.
-# (originally from g++.exp)
-#
-
-proc cilkplus_link_flags { paths } {
- global srcdir
- global ld_library_path
- global shlib_ext
-
- set gccpath ${paths}
- set flags ""
-
- set shlib_ext [get_shlib_extension]
-
- if { $gccpath != "" } {
- if { [file exists "${gccpath}/libcilkrts/.libs/libcilkrts.a"]
- || [file exists "${gccpath}/libcilkrts/.libs/libcilkrts.${shlib_ext}"] } {
- append flags " -B${gccpath}/libcilkrts/ "
- append flags " -L${gccpath}/libcilkrts/.libs"
- append ld_library_path ":${gccpath}/libcilkrts/.libs"
- }
- } else {
- global tool_root_dir
-
- set libcilkrts [lookfor_file ${tool_root_dir} libcilkrts]
- if { $libcilkrts != "" } {
- append flags "-L${libcilkrts} "
- append ld_library_path ":${libcilkrts}"
- }
- }
-
- set_ld_library_path_env_vars
-
- return "$flags"
-}
-
-#
-# cilkplus_init -- called at the start of each subdir of tests
-#
-
-proc cilkplus_init { args } {
- global TEST_ALWAYS_FLAGS
- global ALWAYS_CXXFLAGS
- global TOOL_OPTIONS
- global cilkplus_saved_TEST_ALWAYS_FLAGS
-
- set link_flags ""
- if ![is_remote host] {
- if [info exists TOOL_OPTIONS] {
- set link_flags "[cilkplus_link_flags [get_multilibs ${TOOL_OPTIONS}]]"
- } else {
- set link_flags "[cilkplus_link_flags [get_multilibs]]"
- }
- }
-
- if [info exists TEST_ALWAYS_FLAGS] {
- set cilkplus_saved_TEST_ALWAYS_FLAGS $TEST_ALWAYS_FLAGS
- }
- if [info exists ALWAYS_CXXFLAGS] {
- set ALWAYS_CXXFLAGS [concat "{ldflags=$link_flags}" $ALWAYS_CXXFLAGS]
- } else {
- if [info exists TEST_ALWAYS_FLAGS] {
- set TEST_ALWAYS_FLAGS "$link_flags $TEST_ALWAYS_FLAGS"
- } else {
- set TEST_ALWAYS_FLAGS "$link_flags"
- }
- }
- if { $link_flags != "" } {
- return 1
- }
- return 0
-}
-
-#
-# cilkplus_finish -- called at the end of each subdir of tests
-#
-
-proc cilkplus_finish { args } {
- global TEST_ALWAYS_FLAGS
- global cilkplus_saved_TEST_ALWAYS_FLAGS
-
- if [info exists cilkplus_saved_TEST_ALWAYS_FLAGS] {
- set TEST_ALWAYS_FLAGS $cilkplus_saved_TEST_ALWAYS_FLAGS
- } else {
- unset TEST_ALWAYS_FLAGS
- }
- clear_effective_target_cache
-}
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index d30fd368922..6242ce95469 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -1391,20 +1391,6 @@ proc check_iconv_available { test_what } {
}] $libiconv]
}
-# Return true if Cilk Library is supported on the target.
-proc check_effective_target_cilkplus_runtime { } {
- return [ check_no_compiler_messages_nocache cilkplus_runtime executable {
- #ifdef __cplusplus
- extern "C"
- #endif
- int __cilkrts_set_param (const char *, const char *);
- int main (void) {
- int x = __cilkrts_set_param ("nworkers", "0");
- return x;
- }
- } "-fcilkplus -lcilkrts" ]
-}
-
# Return true if the atomic library is supported on the target.
proc check_effective_target_libatomic_available { } {
return [check_no_compiler_messages libatomic_available executable {
@@ -1561,29 +1547,6 @@ proc check_effective_target_rdynamic { } {
} "-rdynamic"]
}
-# Return 1 if cilk-plus is supported by the target, 0 otherwise.
-
-proc check_effective_target_cilkplus { } {
- # Skip cilk-plus tests on int16 and size16 targets for now.
- # The cilk-plus tests are not generic enough to cover these
- # cases and would throw hundreds of FAILs.
- if { [check_effective_target_int16]
- || ![check_effective_target_size32plus] } {
- return 0;
- }
-
- # Skip AVR, its RAM is too small and too many tests would fail.
- if { [istarget avr-*-*] } {
- return 0;
- }
-
- if { ! [check_effective_target_pthread] } {
- return 0;
- }
-
- return 1
-}
-
proc check_linker_plugin_available { } {
return [check_no_compiler_messages_nocache linker_plugin executable {
int main() { return 0; }