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:
parent
b7a120d7a8
commit
27f9add31b
|
@ -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
|
||||
|
|
|
@ -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)];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue