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
This commit is contained in:
Thomas Schwinge 2016-04-12 12:40:22 +02:00 committed by Thomas Schwinge
parent b7a120d7a8
commit 27f9add31b
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
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>
* libgomp.h (struct gomp_target_task): Remove firstprivate_copies

View File

@ -19,7 +19,7 @@ main (int argc, char *argv[])
{
#pragma acc loop worker vector reduction(^:res)
for (i = 0; i < 1024; i++)
res ^= arr[j * 1024 + i];
res ^= 3 * arr[j * 1024 + i];
#pragma acc loop worker vector reduction(^:res)
for (i = 0; i < 1024; i++)
@ -30,7 +30,7 @@ main (int argc, char *argv[])
for (j = 0; j < 32; j++)
for (i = 0; i < 1024; i++)
{
hres ^= arr[j * 1024 + i];
hres ^= 3 * arr[j * 1024 + i];
hres ^= arr[j * 1024 + (1023 - i)];
}