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
This commit is contained in:
Jakub Jelinek 2018-11-08 20:38:21 +01:00 committed by Jakub Jelinek
parent ae32884050
commit 8991d77974
2 changed files with 5 additions and 1 deletions

View File

@ -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.

View File

@ -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)