gcc/libgomp/testsuite/libgomp.oacc-c-c++-common
Chung-Lin Tang 2c71d454eb re PR middle-end/70895 (OpenACC: loop reduction does not work. Output is zero.)
2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>

	PR middle-end/70895
	gcc/
	* gimplify.c (omp_add_variable): Adjust/add variable mapping on
	enclosing parallel construct for reduction variables on OpenACC loop
	directives.

	gcc/testsuite/
	* gfortran.dg/goacc/loop-tree-1.f90: Add gimple scan-tree-dump test.
	* c-c++-common/goacc/reduction-1.c: Likewise.
	* c-c++-common/goacc/reduction-2.c: Likewise.
	* c-c++-common/goacc/reduction-3.c: Likewise.
	* c-c++-common/goacc/reduction-4.c: Likewise.

	libgomp/
	* testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
	firstprivate clauses.
	* testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
	copy clauses.
	* testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.

From-SVN: r239576
2016-08-18 14:46:19 +00:00
..
abort-1.c
abort-2.c
abort-3.c
abort-4.c
abort-5.c
acc_on_device-1.c
acc-on-device-2.c Also test -O0 for OpenACC C, C++ offloading test cases 2016-03-24 22:29:55 +01:00
acc-on-device.c Also test -O0 for OpenACC C, C++ offloading test cases 2016-03-24 22:29:55 +01:00
asyncwait-1.c c-parser.c (c_parser_oacc_declare): Add support for GOMP_MAP_FIRSTPRIVATE_POINTER. 2016-05-24 15:54:21 -07:00
atomic_capture-1.c
atomic_capture-2.c
atomic_rw-1.c
atomic_update-1.c
cache-1.c [PR c/71381] C/C++ OpenACC cache directive rejects valid syntax 2016-06-10 11:22:38 +02:00
clauses-1.c Update OpenACC test cases 2016-03-30 17:08:47 +02:00
clauses-2.c
collapse-1.c
collapse-2.c re PR middle-end/70895 (OpenACC: loop reduction does not work. Output is zero.) 2016-08-18 14:46:19 +00:00
collapse-3.c
collapse-4.c re PR middle-end/70895 (OpenACC: loop reduction does not work. Output is zero.) 2016-08-18 14:46:19 +00:00
combined-directives-1.c
combined-reduction.c re PR middle-end/70626 (bogus results in 'acc parallel loop' reductions) 2016-04-29 10:42:04 -07:00
context-1.c
context-2.c
context-3.c
context-4.c
crash-1.c Make libgomp.oacc-c-c++-common/crash-1.c a "link" test, and don't hardcode -O0 2016-08-04 15:34:57 +02:00
data-1.c
data-2-lib.c c-parser.c (c_parser_oacc_declare): Add support for GOMP_MAP_FIRSTPRIVATE_POINTER. 2016-05-24 15:54:21 -07:00
data-2.c c-parser.c (c_parser_oacc_declare): Add support for GOMP_MAP_FIRSTPRIVATE_POINTER. 2016-05-24 15:54:21 -07:00
data-3.c c-parser.c (c_parser_oacc_declare): Add support for GOMP_MAP_FIRSTPRIVATE_POINTER. 2016-05-24 15:54:21 -07:00
data-already-1.c
data-already-2.c
data-already-3.c
data-already-4.c
data-already-5.c
data-already-6.c
data-already-7.c
data-already-8.c
data-clauses-kernels-ipa-pta.c Update OpenACC test cases 2016-03-30 17:08:47 +02:00
data-clauses-kernels.c Update OpenACC test cases 2016-03-30 17:08:47 +02:00
data-clauses-parallel-ipa-pta.c Update OpenACC test cases 2016-03-30 17:08:47 +02:00
data-clauses-parallel.c Update OpenACC test cases 2016-03-30 17:08:47 +02:00
data-clauses.h Update OpenACC test cases 2016-03-30 17:08:47 +02:00
declare-1.c
declare-2.c
declare-4.c
declare-5.c
default-1.c
deviceptr-1.c Update OpenACC test cases 2016-03-30 17:08:47 +02:00
enter_exit-lib.c c-parser.c (c_parser_oacc_declare): Add support for GOMP_MAP_FIRSTPRIVATE_POINTER. 2016-05-24 15:54:21 -07:00
firstprivate-1.c Update OpenACC test cases 2016-03-30 17:08:47 +02:00
gang-static-1.c Update OpenACC test cases 2016-03-30 17:08:47 +02:00
gang-static-2.c Update OpenACC test cases 2016-03-30 17:08:47 +02:00
host_data-1.c
host_data-2.c
host_data-4.c
host_data-5.c
if-1.c Update OpenACC test cases 2016-03-30 17:08:47 +02:00
kernels-alias-ipa-pta-2.c Also test -O0 for OpenACC C, C++ offloading test cases 2016-03-24 22:29:55 +01:00
kernels-alias-ipa-pta-3.c Also test -O0 for OpenACC C, C++ offloading test cases 2016-03-24 22:29:55 +01:00
kernels-alias-ipa-pta.c Also test -O0 for OpenACC C, C++ offloading test cases 2016-03-24 22:29:55 +01:00
kernels-empty.c
kernels-loop-2.c
kernels-loop-3.c
kernels-loop-and-seq-2.c
kernels-loop-and-seq-3.c
kernels-loop-and-seq-4.c
kernels-loop-and-seq-5.c
kernels-loop-and-seq-6.c
kernels-loop-and-seq.c
kernels-loop-clauses.c Update OpenACC test cases 2016-03-30 17:08:47 +02:00
kernels-loop-collapse.c
kernels-loop-g.c
kernels-loop-mod-not-zero.c
kernels-loop-n.c
kernels-loop-nest.c
kernels-loop.c
kernels-reduction.c
lib-1.c
lib-2.c
lib-3.c
lib-4.c
lib-5.c
lib-6.c
lib-7.c
lib-8.c
lib-9.c
lib-10.c
lib-11.c
lib-12.c
lib-13.c c-parser.c (c_parser_oacc_declare): Add support for GOMP_MAP_FIRSTPRIVATE_POINTER. 2016-05-24 15:54:21 -07:00
lib-14.c c-parser.c (c_parser_oacc_declare): Add support for GOMP_MAP_FIRSTPRIVATE_POINTER. 2016-05-24 15:54:21 -07:00
lib-15.c c-parser.c (c_parser_oacc_declare): Add support for GOMP_MAP_FIRSTPRIVATE_POINTER. 2016-05-24 15:54:21 -07:00
lib-16.c c-parser.c (c_parser_oacc_declare): Add support for GOMP_MAP_FIRSTPRIVATE_POINTER. 2016-05-24 15:54:21 -07:00
lib-17.c c-parser.c (c_parser_oacc_declare): Add support for GOMP_MAP_FIRSTPRIVATE_POINTER. 2016-05-24 15:54:21 -07:00
lib-18.c c-parser.c (c_parser_oacc_declare): Add support for GOMP_MAP_FIRSTPRIVATE_POINTER. 2016-05-24 15:54:21 -07:00
lib-19.c
lib-20.c c-parser.c (c_parser_oacc_declare): Add support for GOMP_MAP_FIRSTPRIVATE_POINTER. 2016-05-24 15:54:21 -07:00
lib-21.c c-parser.c (c_parser_oacc_declare): Add support for GOMP_MAP_FIRSTPRIVATE_POINTER. 2016-05-24 15:54:21 -07:00
lib-22.c c-parser.c (c_parser_oacc_declare): Add support for GOMP_MAP_FIRSTPRIVATE_POINTER. 2016-05-24 15:54:21 -07:00
lib-23.c c-parser.c (c_parser_oacc_declare): Add support for GOMP_MAP_FIRSTPRIVATE_POINTER. 2016-05-24 15:54:21 -07:00
lib-24.c c-parser.c (c_parser_oacc_declare): Add support for GOMP_MAP_FIRSTPRIVATE_POINTER. 2016-05-24 15:54:21 -07:00
lib-25.c c-parser.c (c_parser_oacc_declare): Add support for GOMP_MAP_FIRSTPRIVATE_POINTER. 2016-05-24 15:54:21 -07:00
lib-26.c
lib-27.c
lib-28.c c-parser.c (c_parser_oacc_declare): Add support for GOMP_MAP_FIRSTPRIVATE_POINTER. 2016-05-24 15:54:21 -07:00
lib-29.c c-parser.c (c_parser_oacc_declare): Add support for GOMP_MAP_FIRSTPRIVATE_POINTER. 2016-05-24 15:54:21 -07:00
lib-30.c c-parser.c (c_parser_oacc_declare): Add support for GOMP_MAP_FIRSTPRIVATE_POINTER. 2016-05-24 15:54:21 -07:00
lib-31.c
lib-32.c
lib-33.c
lib-34.c c-parser.c (c_parser_oacc_declare): Add support for GOMP_MAP_FIRSTPRIVATE_POINTER. 2016-05-24 15:54:21 -07:00
lib-35.c
lib-36.c
lib-37.c
lib-38.c
lib-39.c
lib-40.c
lib-41.c
lib-42.c c-parser.c (c_parser_oacc_declare): Add support for GOMP_MAP_FIRSTPRIVATE_POINTER. 2016-05-24 15:54:21 -07:00
lib-43.c c-parser.c (c_parser_oacc_declare): Add support for GOMP_MAP_FIRSTPRIVATE_POINTER. 2016-05-24 15:54:21 -07:00
lib-44.c c-parser.c (c_parser_oacc_declare): Add support for GOMP_MAP_FIRSTPRIVATE_POINTER. 2016-05-24 15:54:21 -07:00
lib-45.c
lib-46.c
lib-47.c c-parser.c (c_parser_oacc_declare): Add support for GOMP_MAP_FIRSTPRIVATE_POINTER. 2016-05-24 15:54:21 -07:00
lib-48.c c-parser.c (c_parser_oacc_declare): Add support for GOMP_MAP_FIRSTPRIVATE_POINTER. 2016-05-24 15:54:21 -07:00
lib-49.c
lib-50.c
lib-51.c
lib-52.c c-parser.c (c_parser_oacc_declare): Add support for GOMP_MAP_FIRSTPRIVATE_POINTER. 2016-05-24 15:54:21 -07:00
lib-53.c c-parser.c (c_parser_oacc_declare): Add support for GOMP_MAP_FIRSTPRIVATE_POINTER. 2016-05-24 15:54:21 -07:00
lib-54.c c-parser.c (c_parser_oacc_declare): Add support for GOMP_MAP_FIRSTPRIVATE_POINTER. 2016-05-24 15:54:21 -07:00
lib-55.c
lib-56.c
lib-57.c
lib-58.c
lib-59.c
lib-60.c
lib-61.c
lib-62.c
lib-63.c
lib-64.c
lib-65.c
lib-66.c
lib-67.c
lib-68.c
lib-69.c
lib-70.c
lib-71.c
lib-72.c
lib-73.c
lib-74.c
lib-75.c
lib-76.c
lib-77.c
lib-78.c
lib-79.c
lib-80.c
lib-81.c
lib-82.c
lib-83.c
lib-84.c
lib-85.c
lib-86.c
lib-87.c
lib-88.c
lib-89.c
lib-90.c
lib-91.c
lib-92.c
loop-auto-1.c omp-low.c (struct oacc_loop): Add 'inner' field. 2016-05-02 13:16:22 +00:00
loop-dim-default.c Also test -O0 for OpenACC C, C++ offloading test cases 2016-03-24 22:29:55 +01:00
loop-g-1.c Also test -O0 for OpenACC C, C++ offloading test cases 2016-03-24 22:29:55 +01:00
loop-g-2.c Also test -O0 for OpenACC C, C++ offloading test cases 2016-03-24 22:29:55 +01:00
loop-gwv-1.c Also test -O0 for OpenACC C, C++ offloading test cases 2016-03-24 22:29:55 +01:00
loop-red-g-1.c re PR middle-end/70895 (OpenACC: loop reduction does not work. Output is zero.) 2016-08-18 14:46:19 +00:00
loop-red-gwv-1.c re PR middle-end/70895 (OpenACC: loop reduction does not work. Output is zero.) 2016-08-18 14:46:19 +00:00
loop-red-v-1.c re PR middle-end/70895 (OpenACC: loop reduction does not work. Output is zero.) 2016-08-18 14:46:19 +00:00
loop-red-v-2.c Also test -O0 for OpenACC C, C++ offloading test cases 2016-03-24 22:29:55 +01:00
loop-red-w-1.c re PR middle-end/70895 (OpenACC: loop reduction does not work. Output is zero.) 2016-08-18 14:46:19 +00:00
loop-red-w-2.c Also test -O0 for OpenACC C, C++ offloading test cases 2016-03-24 22:29:55 +01:00
loop-red-wv-1.c re PR middle-end/70895 (OpenACC: loop reduction does not work. Output is zero.) 2016-08-18 14:46:19 +00:00
loop-v-1.c Also test -O0 for OpenACC C, C++ offloading test cases 2016-03-24 22:29:55 +01:00
loop-w-1.c Also test -O0 for OpenACC C, C++ offloading test cases 2016-03-24 22:29:55 +01:00
loop-wv-1.c Also test -O0 for OpenACC C, C++ offloading test cases 2016-03-24 22:29:55 +01:00
mode-transitions.c Update OpenACC test cases 2016-03-30 17:08:47 +02:00
nested-1.c
nested-2.c
offset-1.c
par-loop-comb-reduction-1.c re PR lto/70289 ([openacc] ICE in input_varpool_node) 2016-04-08 14:09:47 -07:00
par-loop-comb-reduction-2.c Improve libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c 2016-04-12 12:40:22 +02:00
par-loop-comb-reduction-3.c re PR lto/70289 ([openacc] ICE in input_varpool_node) 2016-04-08 14:09:47 -07:00
par-loop-comb-reduction-4.c re PR lto/70289 ([openacc] ICE in input_varpool_node) 2016-04-08 14:09:47 -07:00
par-reduction-1.c re PR lto/70289 ([openacc] ICE in input_varpool_node) 2016-04-08 14:09:47 -07:00
par-reduction-2.c re PR lto/70289 ([openacc] ICE in input_varpool_node) 2016-04-08 14:09:47 -07:00
parallel-dims.c re PR lto/70289 ([openacc] ICE in input_varpool_node) 2016-04-08 14:09:47 -07:00
parallel-empty.c
parallel-reduction.c re PR lto/70289 ([openacc] ICE in input_varpool_node) 2016-04-08 14:09:47 -07:00
pointer-align-1.c
pr70289.c re PR lto/70289 ([openacc] ICE in input_varpool_node) 2016-04-08 14:09:47 -07:00
pr70373.c re PR lto/70289 ([openacc] ICE in input_varpool_node) 2016-04-08 14:09:47 -07:00
pr70688.c re PR c/70688 (bogus OpenACC data clause errors involving reductions) 2016-06-01 13:37:44 -07:00
present-1.c
present-2.c
private-variables.c Update OpenACC test cases 2016-03-30 17:08:47 +02:00
reduction-1.c re PR testsuite/68242 (FAIL: libgomp.oacc-c-c++-common/reduction-2.c, and other OpenACC reduction test case "oddities") 2016-04-13 11:54:41 -07:00
reduction-2.c re PR testsuite/68242 (FAIL: libgomp.oacc-c-c++-common/reduction-2.c, and other OpenACC reduction test case "oddities") 2016-04-13 11:54:41 -07:00
reduction-3.c re PR lto/70289 ([openacc] ICE in input_varpool_node) 2016-04-08 14:09:47 -07:00
reduction-4.c re PR lto/70289 ([openacc] ICE in input_varpool_node) 2016-04-08 14:09:47 -07:00
reduction-5.c re PR lto/70289 ([openacc] ICE in input_varpool_node) 2016-04-08 14:09:47 -07:00
reduction-6.c re PR lto/70289 ([openacc] ICE in input_varpool_node) 2016-04-08 14:09:47 -07:00
reduction-7.c re PR middle-end/70895 (OpenACC: loop reduction does not work. Output is zero.) 2016-08-18 14:46:19 +00:00
reduction-8.c c-typeck.c (c_finish_omp_clauses): Mark OpenACC reduction arguments as addressable when async clause exists. 2016-06-03 14:25:12 +00:00
reduction-cplx-dbl.c re PR middle-end/70895 (OpenACC: loop reduction does not work. Output is zero.) 2016-08-18 14:46:19 +00:00
reduction-cplx-flt.c re PR middle-end/70895 (OpenACC: loop reduction does not work. Output is zero.) 2016-08-18 14:46:19 +00:00
reduction-dbl.c re PR middle-end/70895 (OpenACC: loop reduction does not work. Output is zero.) 2016-08-18 14:46:19 +00:00
reduction-flt.c re PR middle-end/70895 (OpenACC: loop reduction does not work. Output is zero.) 2016-08-18 14:46:19 +00:00
reduction-initial-1.c
reduction.h re PR lto/70289 ([openacc] ICE in input_varpool_node) 2016-04-08 14:09:47 -07:00
routine-1.c C++ OpenACC routine directive testing: templated, and "auto", trailing return type syntax 2016-08-04 15:35:10 +02:00
routine-4.c Update OpenACC test cases 2016-03-30 17:08:47 +02:00
routine-g-1.c Also test -O0 for OpenACC C, C++ offloading test cases 2016-03-24 22:29:55 +01:00
routine-gwv-1.c Also test -O0 for OpenACC C, C++ offloading test cases 2016-03-24 22:29:55 +01:00
routine-v-1.c Also test -O0 for OpenACC C, C++ offloading test cases 2016-03-24 22:29:55 +01:00
routine-w-1.c Also test -O0 for OpenACC C, C++ offloading test cases 2016-03-24 22:29:55 +01:00
routine-wv-1.c Also test -O0 for OpenACC C, C++ offloading test cases 2016-03-24 22:29:55 +01:00
routine-wv-2.c Update OpenACC test cases 2016-03-30 17:08:47 +02:00
subr.h
subr.ptx
timer.h
update-1.c re PR libgomp/69414 ([OpenACC] "!$acc update self" does not provide expected result) 2016-03-23 14:38:55 +00:00
vector-loop.c Update OpenACC test cases 2016-03-30 17:08:47 +02:00
vector-type-1.c
vprop.c
zero_length_subarrays.c c-parser.c (c_parser_oacc_declare): Don't scan for GOMP_MAP_POINTER. 2016-07-15 07:13:48 -07:00