@@ -1,3 +1,9 @@
+2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
+
+ * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
+ Make failure observable. Add data clause next to parallel
+ construct's reduction clause.
+
2016-03-11 Cesar Philippidis <cesar@codesourcery.com>
* testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
@@ -12,14 +12,14 @@ main (int argc, char *argv[])
arr[i] = i;
#pragma acc parallel num_gangs(32) num_workers(32) vector_length(32) \
- reduction(^:res)
+ reduction(^:res) copy(res)
{
#pragma acc loop gang
for (j = 0; j < 32; j++)
{
#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)];
}