diff options
author | Jakub Jelinek <jakub@redhat.com> | 2018-11-08 20:38:21 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2018-11-08 20:38:21 +0100 |
commit | 8991d77974c3278cc7b9bd1352f88ced790d27fa (patch) | |
tree | 1285fccdadb5d42332d9875395b5dada41284c35 | |
parent | ae328840503711f56c109fc0fb43c3a16323f4d6 (diff) | |
download | gcc-8991d77974c3278cc7b9bd1352f88ced790d27fa.zip gcc-8991d77974c3278cc7b9bd1352f88ced790d27fa.tar.gz gcc-8991d77974c3278cc7b9bd1352f88ced790d27fa.tar.bz2 |
task-reduction-8.c (bar): Add in_reduction clause for s[0].
* testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
in_reduction clause for s[0].
From-SVN: r265934
-rw-r--r-- | libgomp/ChangeLog | 3 | ||||
-rw-r--r-- | libgomp/testsuite/libgomp.c-c++-common/task-reduction-8.c | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index b9d1f96..636cb49 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,5 +1,8 @@ 2018-11-08 Jakub Jelinek <jakub@redhat.com> + * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add + in_reduction clause for s[0]. + * affinity.c (gomp_display_affinity_place): New function. * affinity-fmt.c: New file. * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions. diff --git a/libgomp/testsuite/libgomp.c-c++-common/task-reduction-8.c b/libgomp/testsuite/libgomp.c-c++-common/task-reduction-8.c index 7b0859d..52d238a 100644 --- a/libgomp/testsuite/libgomp.c-c++-common/task-reduction-8.c +++ b/libgomp/testsuite/libgomp.c-c++-common/task-reduction-8.c @@ -45,7 +45,8 @@ unsigned long long int bar (int z, int *a, unsigned long long int *b, int *s) { unsigned long long int x = 1; - #pragma omp taskloop reduction (*:x) in_reduction (*:b[0]) + #pragma omp taskloop reduction (*:x) in_reduction (*:b[0]) \ + in_reduction (+:s[0]) for (int i = z; i < z + 8; i++) { #pragma omp task in_reduction (*:x) |