aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2015-11-10 13:51:09 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2015-11-10 13:51:09 +0000
commitd350c40cfd58e9e8f44e3260c19f35f773457d5a (patch)
treeba9171f1fe5edf0dfc0975dcf4fa998baf6a6b75
parent8bd37a2ec9774884a4609a7832b2293f62936962 (diff)
downloadgcc-d350c40cfd58e9e8f44e3260c19f35f773457d5a.zip
gcc-d350c40cfd58e9e8f44e3260c19f35f773457d5a.tar.gz
gcc-d350c40cfd58e9e8f44e3260c19f35f773457d5a.tar.bz2
firstprivate-1.c: Remove inadvertent commit.
* testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove inadvertent commit. From-SVN: r230107
-rw-r--r--libgomp/ChangeLog6
-rw-r--r--libgomp/testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c41
2 files changed, 5 insertions, 42 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog
index 08d467b..ed86943 100644
--- a/libgomp/ChangeLog
+++ b/libgomp/ChangeLog
@@ -1,6 +1,10 @@
2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
- * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
+ * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
+ inadvertent commit.
+
+2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
+
* testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
* testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
* testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c
deleted file mode 100644
index 7f5d3d3..0000000
--- a/libgomp/testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c
+++ /dev/null
@@ -1,41 +0,0 @@
-/* { dg-do run } */
-
-#include <openacc.h>
-
-int main ()
-{
- int ok = 1;
- int val = 2;
- int ary[32];
- int ondev = 0;
-
- for (int i = 0; i < 32; i++)
- ary[i] = ~0;
-
-#pragma acc parallel num_gangs (32) copy (ok) firstprivate (val) copy(ary, ondev)
- {
- ondev = acc_on_device (acc_device_not_host);
-#pragma acc loop gang(static:1)
- for (unsigned i = 0; i < 32; i++)
- {
- if (val != 2)
- ok = 0;
- val += i;
- ary[i] = val;
- }
- }
-
- if (ondev)
- {
- if (!ok)
- return 1;
- if (val != 2)
- return 1;
-
- for (int i = 0; i < 32; i++)
- if (ary[i] != 2 + i)
- return 1;
- }
-
- return 0;
-}