From d350c40cfd58e9e8f44e3260c19f35f773457d5a Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Tue, 10 Nov 2015 13:51:09 +0000 Subject: [PATCH] firstprivate-1.c: Remove inadvertent commit. * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove inadvertent commit. From-SVN: r230107 --- libgomp/ChangeLog | 6 ++- .../firstprivate-1.c | 41 ------------------- 2 files changed, 5 insertions(+), 42 deletions(-) delete mode 100644 libgomp/testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 08d467b1055..ed86943bb32 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,6 +1,10 @@ 2015-11-09 Nathan Sidwell - * 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 + * 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 7f5d3d37617..00000000000 --- a/libgomp/testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c +++ /dev/null @@ -1,41 +0,0 @@ -/* { dg-do run } */ - -#include - -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; -} -- 2.30.2