gcc/libgomp/testsuite/libgomp.c
Jakub Jelinek 95782571f3 gimplify.c (gimplify_adjust_omp_clauses_1): Handle GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
* gimplify.c (gimplify_adjust_omp_clauses_1): Handle
	GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
	(gimplify_adjust_omp_clauses): Simd region is never
	directly nested in combined parallel.  Instead, for linear
	with copyin/copyout, if in combined for simd loop, make decl
	firstprivate/lastprivate on OMP_FOR.
	* omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
	expand_omp_for_static_chunk): When setting endvar, also set
	fd->loop.v to the same value.
libgomp/
	* testsuite/libgomp.c/simd-10.c: New test.
	* testsuite/libgomp.c/simd-11.c: New test.
	* testsuite/libgomp.c/simd-12.c: New test.
	* testsuite/libgomp.c/simd-13.c: New test.

From-SVN: r210009
2014-05-02 19:43:40 +02:00
..
appendix-a
affinity-1.c Update copyright years in libgomp/ 2014-01-02 22:25:54 +00:00
atomic-1.c Check ia32 instead of ilp32 for ia32 tests. 2011-07-28 13:35:32 -07:00
atomic-2.c cpuid.h: New file. 2007-09-05 19:43:01 +02:00
atomic-3.c gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes for the same VAR_DECL. 2008-03-06 18:28:54 +01:00
atomic-4.c re PR middle-end/35611 (FAIL: libgomp.c/omp-nested-1.c execution test) 2008-03-18 13:21:02 +01:00
atomic-5.c atomic-5.c: Cleanup cpuid usage. 2009-03-25 14:36:02 +01:00
atomic-6.c Check ia32 instead of ilp32 for ia32 tests. 2011-07-28 13:35:32 -07:00
atomic-10.c default.exp: New file. 2007-03-22 08:00:08 +01:00
atomic-11.c backport: re PR fortran/46752 (OpenMP - Seg fault for unallocated allocatable array in firstprivate clause) 2011-08-02 18:13:29 +02:00
atomic-12.c backport: re PR fortran/46752 (OpenMP - Seg fault for unallocated allocatable array in firstprivate clause) 2011-08-02 18:13:29 +02:00
atomic-13.c backport: re PR fortran/46752 (OpenMP - Seg fault for unallocated allocatable array in firstprivate clause) 2011-08-02 18:13:29 +02:00
atomic-14.c target.c: New file. 2013-10-11 11:26:50 +02:00
atomic-15.c target.c: New file. 2013-10-11 11:26:50 +02:00
atomic-16.c target.c: New file. 2013-10-11 11:26:50 +02:00
atomic-17.c c-parser.c (c_parser_omp_atomic): Allow seq_cst before atomic-clause... 2014-04-24 23:20:28 +02:00
autopar-1.c re PR middle-end/36106 (#pragma omp atomic issues with floating point types) 2008-05-07 09:28:14 +02:00
barrier-1.c barrier-1.c: Change timestamp tests from '<' to '<='. 2006-10-06 08:32:33 +00:00
c.exp libgomp: Prepare for testcases without -fopenmp. 2013-11-07 16:07:58 +01:00
cancel-for-1.c target.c: New file. 2013-10-11 11:26:50 +02:00
cancel-for-2.c target.c: New file. 2013-10-11 11:26:50 +02:00
cancel-parallel-1.c target.c: New file. 2013-10-11 11:26:50 +02:00
cancel-parallel-2.c target.c: New file. 2013-10-11 11:26:50 +02:00
cancel-parallel-3.c target.c: New file. 2013-10-11 11:26:50 +02:00
cancel-sections-1.c target.c: New file. 2013-10-11 11:26:50 +02:00
cancel-taskgroup-1.c target.c: New file. 2013-10-11 11:26:50 +02:00
cancel-taskgroup-2.c target.c: New file. 2013-10-11 11:26:50 +02:00
collapse-1.c * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause. 2008-12-27 16:20:28 +01:00
collapse-2.c c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
collapse-3.c c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
copyin-1.c
copyin-2.c
copyin-3.c
critical-1.c re PR libgomp/27612 (Tests use __sync_lock_test_and_set_4') 2006-05-22 19:10:45 +00:00
critical-2.c
debug-1.c re PR debug/36617 (Debug info for OpenMP code is almost non-existent) 2008-06-27 21:42:32 +02:00
depend-1.c target.c: New file. 2013-10-11 11:26:50 +02:00
depend-2.c target.c: New file. 2013-10-11 11:26:50 +02:00
depend-3.c target.c: New file. 2013-10-11 11:26:50 +02:00
depend-4.c target.c: New file. 2013-10-11 11:26:50 +02:00
for-1.c target.c: New file. 2013-10-11 11:26:50 +02:00
for-1.h target.c: New file. 2013-10-11 11:26:50 +02:00
for-2.c target.c: New file. 2013-10-11 11:26:50 +02:00
for-2.h target.c: New file. 2013-10-11 11:26:50 +02:00
for-3.c target.c: New file. 2013-10-11 11:26:50 +02:00
icv-1.c c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
icv-2.c affinity-1.c: Remove alloca.h inlcude. 2013-12-17 19:05:32 +01:00
lib-1.c lib-1.c (main): Add missing error check. 2013-10-11 12:43:15 +02:00
lib-2.c c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
lock-1.c c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
lock-2.c c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
lock-3.c affinity-1.c: Remove alloca.h inlcude. 2013-12-17 19:05:32 +01:00
loop-1.c re PR libgomp/27612 (Tests use __sync_lock_test_and_set_4') 2006-05-22 19:10:45 +00:00
loop-2.c re PR libgomp/27612 (Tests use __sync_lock_test_and_set_4') 2006-05-22 19:10:45 +00:00
loop-3.c gimplify.c (omp_is_private): Don't return true if decl is not already private on #pragma omp for or #pragma... 2008-06-27 21:45:14 +02:00
loop-4.c c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
loop-5.c c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
loop-6.c c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
loop-7.c c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
loop-8.c c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
loop-9.c c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
loop-10.c gimplify.c (omp_is_private): Don't return true if decl is not already private on #pragma omp for or #pragma... 2008-06-27 21:45:14 +02:00
loop-11.c re PR c/39495 (OMP parallel loop w/ unsigned index var rejected) 2009-03-23 22:05:30 +01:00
loop-12.c re PR c/39495 (OMP parallel loop w/ unsigned index var rejected) 2009-03-23 22:05:30 +01:00
loop-13.c omp-low.c (extract_omp_for_data): For collapsed loops... 2013-05-16 12:43:33 +02:00
loop-14.c omp-low.c (extract_omp_for_data): For collapsed loops... 2013-05-16 12:43:33 +02:00
loop-15.c omp-low.c (extract_omp_for_data): For collapsed loops... 2013-05-16 12:43:33 +02:00
loop-16.c tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define. 2014-04-24 23:17:32 +02:00
nested-1.c
nested-2.c
nested-3.c c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
nestedfn-1.c
nestedfn-2.c
nestedfn-3.c
nestedfn-4.c re PR middle-end/25261 ([gomp] Nested function calls in #pragma omp parallel blocks) 2006-09-26 20:10:58 +02:00
nestedfn-5.c re PR middle-end/25261 ([gomp] Nested function calls in #pragma omp parallel blocks) 2006-09-26 20:10:58 +02:00
nestedfn-6.c c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
nqueens-1.c * testsuite/libgomp.c/nqueens-1.c: New test. 2008-06-19 12:51:30 +02:00
omp-loop01.c
omp-loop02.c
omp-loop03.c
omp-nested-1.c
omp-parallel-for.c
omp-parallel-if.c
omp-single-1.c
omp-single-2.c
omp-single-3.c
omp_hello.c
omp_matvec.c
omp_orphan.c
omp_reduction.c
omp_workshare1.c
omp_workshare2.c
omp_workshare3.c
omp_workshare4.c
ordered-1.c re PR libgomp/27612 (Tests use __sync_lock_test_and_set_4') 2006-05-22 19:10:45 +00:00
ordered-2.c re PR libgomp/27612 (Tests use __sync_lock_test_and_set_4') 2006-05-22 19:10:45 +00:00
ordered-3.c
parallel-1.c
pr24455-1.c
pr24455.c
pr26171.c
pr26943-1.c re PR c++/26943 ([gomp] firstprivate + lastprivate uses inefficient barrier) 2006-05-02 22:03:38 +02:00
pr26943-2.c re PR c/53580 (Internal Segmentation fault in nested "omp parallel", "omp parallel for" and "omp parallel for reduction" Directives) 2012-06-07 08:36:55 +02:00
pr26943-3.c re PR c/53580 (Internal Segmentation fault in nested "omp parallel", "omp parallel for" and "omp parallel for reduction" Directives) 2012-06-07 08:36:55 +02:00
pr26943-4.c re PR c/53580 (Internal Segmentation fault in nested "omp parallel", "omp parallel for" and "omp parallel for reduction" Directives) 2012-06-07 08:36:55 +02:00
pr29947-1.c default.exp: New file. 2007-03-22 08:00:08 +01:00
pr29947-2.c default.exp: New file. 2007-03-22 08:00:08 +01:00
pr30494.c re PR middle-end/30494 (ICE with VLA and openmp) 2007-01-24 21:56:45 +01:00
pr32362-1.c re PR middle-end/32362 (ICE: in lookup_decl_in_outer_ctx, at omp-low.c:1508) 2007-06-21 14:11:00 +02:00
pr32362-2.c re PR middle-end/32362 (ICE: in lookup_decl_in_outer_ctx, at omp-low.c:1508) 2007-06-21 14:11:00 +02:00
pr32362-3.c re PR middle-end/32362 (ICE: in lookup_decl_in_outer_ctx, at omp-low.c:1508) 2007-06-21 14:11:00 +02:00
pr32468.c re PR libgomp/32468 (number of threads in a parallel region depends on number of SECTIONs and MAX_THREADS) 2007-07-02 21:19:28 +02:00
pr33880.c re PR middle-end/33880 (ICE: in extract_omp_for_data, at omp-low.c:162) 2008-01-25 13:54:42 +01:00
pr34513.c re PR c++/34513 (static variable not found for C++ OpenMP) 2007-12-19 13:58:32 +01:00
pr35130.c re PR middle-end/35130 (OpenMP: Private variable passed to subroutine) 2008-02-15 18:36:43 +01:00
pr35196.c re PR middle-end/35196 (lastprivate broken for static non-ordered loops) 2008-02-15 18:42:25 +01:00
pr35549.c re PR middle-end/35549 (Invalid use of copy-in/out for shared vars in nested parallels) 2008-03-12 10:55:48 +01:00
pr35625.c re PR libgomp/35625 (schedule(guided) loops forever if ((end - start) % incr) != 0) 2008-03-18 10:54:21 +01:00
pr36802-1.c re PR middle-end/36802 (pop_gimplify_context ICE using openmp task construct) 2008-12-08 11:36:01 +01:00
pr36802-2.c re PR middle-end/36802 (pop_gimplify_context ICE using openmp task construct) 2008-12-08 11:36:01 +01:00
pr36802-3.c re PR middle-end/36802 (pop_gimplify_context ICE using openmp task construct) 2008-12-08 11:36:01 +01:00
pr38650.c re PR c++/38650 (Trouble with volatile and #pragma omp for) 2008-12-28 21:06:00 +01:00
pr39154.c re PR middle-end/39154 (Miscompilation of VLAs in nested parallel regions) 2009-02-11 22:57:52 +01:00
pr39591-1.c re PR other/39591 (GOMP_loop_end illegally optmized into GOMP_loop_end_nowait) 2009-04-01 08:54:52 +02:00
pr39591-2.c re PR other/39591 (GOMP_loop_end illegally optmized into GOMP_loop_end_nowait) 2009-04-01 08:54:52 +02:00
pr39591-3.c re PR other/39591 (GOMP_loop_end illegally optmized into GOMP_loop_end_nowait) 2009-04-01 08:54:52 +02:00
pr42029.c re PR middle-end/42029 (ICE with complex data type and openmp for reduction clause) 2009-11-13 19:38:36 +01:00
pr42942.c re PR libgomp/42942 (OpenMP omp_set_max_active_levels(0) isn't resetting value) 2010-03-22 16:16:52 +01:00
pr43893.c re PR c/43893 (Error: Invalid controlling predicate with -fopenmp) 2010-04-26 22:07:10 +02:00
pr46886.c re PR tree-optimization/46886 (wrong code with -ftree-parallelize-loops -fno-tree-ch) 2012-02-08 15:28:01 +00:00
pr48591.c affinity-1.c: Remove alloca.h inlcude. 2013-12-17 19:05:32 +01:00
pr49897-1.c re PR middle-end/49897 (nesting lastprivate gives incorrect result) 2011-07-29 19:45:42 +02:00
pr49897-2.c re PR middle-end/49897 (nesting lastprivate gives incorrect result) 2011-07-29 19:45:42 +02:00
pr49898-1.c re PR middle-end/49897 (nesting lastprivate gives incorrect result) 2011-07-29 19:45:42 +02:00
pr49898-2.c re PR middle-end/49897 (nesting lastprivate gives incorrect result) 2011-07-29 19:45:42 +02:00
pr52547.c re PR middle-end/52547 (ICE with openmp with nested function which requires a trampoline) 2012-03-22 20:25:36 +01:00
pr58392.c target.c: New file. 2013-10-11 11:26:50 +02:00
pr58756.c re PR libgomp/58756 (FAIL: libgomp.c/pr58392.c execution test) 2013-12-16 11:34:28 +01:00
private-1.c omp-low.c (lookup_decl_in_outer_ctx): Allow calling this with !ctx->is_nested. 2007-12-04 00:06:55 +01:00
reduction-1.c
reduction-2.c
reduction-3.c
reduction-4.c
reduction-5.c re PR middle-end/36506 (Broken #pragma omp sections reduction (+:x)) 2008-06-12 13:03:50 +02:00
reduction-6.c backport: re PR fortran/46752 (OpenMP - Seg fault for unallocated allocatable array in firstprivate clause) 2011-08-02 18:13:29 +02:00
sections-1.c re PR libgomp/27612 (Tests use __sync_lock_test_and_set_4') 2006-05-22 19:10:45 +00:00
sections-2.c omp-low.c (expand_omp_sections): Always pass len - 1 to GOMP_sections_start, even if !exit_reachable. 2013-09-19 13:52:52 +02:00
shared-1.c
shared-2.c
shared-3.c
simd-1.c target.c: New file. 2013-10-11 11:26:50 +02:00
simd-2.c target.c: New file. 2013-10-11 11:26:50 +02:00
simd-3.c target.c: New file. 2013-10-11 11:26:50 +02:00
simd-4.c target.c: New file. 2013-10-11 11:26:50 +02:00
simd-5.c target.c: New file. 2013-10-11 11:26:50 +02:00
simd-6.c target.c: New file. 2013-10-11 11:26:50 +02:00
simd-7.c tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define. 2014-04-24 23:17:32 +02:00
simd-8.c tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define. 2014-04-24 23:17:32 +02:00
simd-9.c tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define. 2014-04-24 23:17:32 +02:00
simd-10.c gimplify.c (gimplify_adjust_omp_clauses_1): Handle GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE. 2014-05-02 19:43:40 +02:00
simd-11.c gimplify.c (gimplify_adjust_omp_clauses_1): Handle GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE. 2014-05-02 19:43:40 +02:00
simd-12.c gimplify.c (gimplify_adjust_omp_clauses_1): Handle GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE. 2014-05-02 19:43:40 +02:00
simd-13.c gimplify.c (gimplify_adjust_omp_clauses_1): Handle GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE. 2014-05-02 19:43:40 +02:00
single-1.c re PR libgomp/27612 (Tests use __sync_lock_test_and_set_4') 2006-05-22 19:10:45 +00:00
single-2.c
sort-1.c Update copyright years in libgomp/ 2014-01-02 22:25:54 +00:00
target-1.c target.c: New file. 2013-10-11 11:26:50 +02:00
target-2.c target.c: New file. 2013-10-11 11:26:50 +02:00
target-3.c target.c: New file. 2013-10-11 11:26:50 +02:00
target-4.c target.c: New file. 2013-10-11 11:26:50 +02:00
target-5.c target.c: New file. 2013-10-11 11:26:50 +02:00
target-6.c target.c: New file. 2013-10-11 11:26:50 +02:00
target-7.c target.c: New file. 2013-10-11 11:26:50 +02:00
task-1.c c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
task-2.c c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
task-3.c c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
task-4.c c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
task-5.c backport: re PR fortran/46752 (OpenMP - Seg fault for unallocated allocatable array in firstprivate clause) 2011-08-02 18:13:29 +02:00
taskgroup-1.c target.c: New file. 2013-10-11 11:26:50 +02:00
thread-limit-1.c target.c: New file. 2013-10-11 11:26:50 +02:00
thread-limit-2.c target.c: New file. 2013-10-11 11:26:50 +02:00
thread-limit-3.c target.c: New file. 2013-10-11 11:26:50 +02:00
udr-1.c target.c: New file. 2013-10-11 11:26:50 +02:00
udr-2.c target.c: New file. 2013-10-11 11:26:50 +02:00
udr-3.c target.c: New file. 2013-10-11 11:26:50 +02:00
vla-1.c