Commit 27f9add3 by Thomas Schwinge Committed by Thomas Schwinge

Improve libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c

	libgomp/
	* testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
	Make failure observable.

From-SVN: r234897
parent b7a120d7
2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
* testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
Make failure observable.
2016-04-12 Jakub Jelinek <jakub@redhat.com> 2016-04-12 Jakub Jelinek <jakub@redhat.com>
* libgomp.h (struct gomp_target_task): Remove firstprivate_copies * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
......
...@@ -19,7 +19,7 @@ main (int argc, char *argv[]) ...@@ -19,7 +19,7 @@ main (int argc, char *argv[])
{ {
#pragma acc loop worker vector reduction(^:res) #pragma acc loop worker vector reduction(^:res)
for (i = 0; i < 1024; i++) for (i = 0; i < 1024; i++)
res ^= arr[j * 1024 + i]; res ^= 3 * arr[j * 1024 + i];
#pragma acc loop worker vector reduction(^:res) #pragma acc loop worker vector reduction(^:res)
for (i = 0; i < 1024; i++) for (i = 0; i < 1024; i++)
...@@ -30,7 +30,7 @@ main (int argc, char *argv[]) ...@@ -30,7 +30,7 @@ main (int argc, char *argv[])
for (j = 0; j < 32; j++) for (j = 0; j < 32; j++)
for (i = 0; i < 1024; i++) for (i = 0; i < 1024; i++)
{ {
hres ^= arr[j * 1024 + i]; hres ^= 3 * arr[j * 1024 + i];
hres ^= arr[j * 1024 + (1023 - i)]; hres ^= arr[j * 1024 + (1023 - i)];
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment