From ab3306d23cc57c61e1f1ec7489b2f1ca556a1b87 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Sat, 13 Jun 2015 08:05:44 +0000 Subject: [PATCH] Update parloops-exit-first-loop-alt{,-2,-3}.c 2015-06-13 Tom de Vries * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment. * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same. * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment. (N): Define. (main): Use N instead of hardcoded constants. * gcc.dg/parloops-exit-first-loop-alt-2.c: Add comment. (main): Remove superfluous attributes. * gcc.dg/parloops-exit-first-loop-alt-3.c: Same. * gcc.dg/parloops-exit-first-loop-alt.c: Same. From-SVN: r224452 --- gcc/testsuite/ChangeLog | 7 +++++++ gcc/testsuite/gcc.dg/parloops-exit-first-loop-alt-2.c | 6 ++++-- gcc/testsuite/gcc.dg/parloops-exit-first-loop-alt-3.c | 4 +++- gcc/testsuite/gcc.dg/parloops-exit-first-loop-alt.c | 4 +++- libgomp/ChangeLog | 8 ++++++++ .../libgomp.c/parloops-exit-first-loop-alt-2.c | 2 ++ .../libgomp.c/parloops-exit-first-loop-alt-3.c | 10 +++++++--- .../testsuite/libgomp.c/parloops-exit-first-loop-alt.c | 2 ++ 8 files changed, 36 insertions(+), 7 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1865bedf932..03c3c7c924e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2015-06-13 Tom de Vries + + * gcc.dg/parloops-exit-first-loop-alt-2.c: Add comment. + (main): Remove superfluous attributes. + * gcc.dg/parloops-exit-first-loop-alt-3.c: Same. + * gcc.dg/parloops-exit-first-loop-alt.c: Same. + 2015-06-12 Venkataramanan Kumar * gcc.target/i386/monitorx.c: New. diff --git a/gcc/testsuite/gcc.dg/parloops-exit-first-loop-alt-2.c b/gcc/testsuite/gcc.dg/parloops-exit-first-loop-alt-2.c index 956be9b912b..24e605a5877 100644 --- a/gcc/testsuite/gcc.dg/parloops-exit-first-loop-alt-2.c +++ b/gcc/testsuite/gcc.dg/parloops-exit-first-loop-alt-2.c @@ -2,14 +2,16 @@ /* { dg-require-effective-target pthread } */ /* { dg-options "-O2 -ftree-parallelize-loops=2 -fdump-tree-parloops" } */ +/* Constant bound, vector addition. */ + #define N 1000 unsigned int a[N]; unsigned int b[N]; unsigned int c[N]; -void __attribute__((noclone,noinline)) -f (unsigned int n) +void +f (void) { int i; diff --git a/gcc/testsuite/gcc.dg/parloops-exit-first-loop-alt-3.c b/gcc/testsuite/gcc.dg/parloops-exit-first-loop-alt-3.c index 82b0b1d5bfd..b0fde372a14 100644 --- a/gcc/testsuite/gcc.dg/parloops-exit-first-loop-alt-3.c +++ b/gcc/testsuite/gcc.dg/parloops-exit-first-loop-alt-3.c @@ -2,9 +2,11 @@ /* { dg-require-effective-target pthread } */ /* { dg-options "-O2 -ftree-parallelize-loops=2 -fdump-tree-parloops" } */ +/* Variable bound, reduction. */ + unsigned int *a; -unsigned int __attribute__((noclone,noinline)) +unsigned int f (unsigned int n) { int i; diff --git a/gcc/testsuite/gcc.dg/parloops-exit-first-loop-alt.c b/gcc/testsuite/gcc.dg/parloops-exit-first-loop-alt.c index 9be844adef5..b36f01b8f8f 100644 --- a/gcc/testsuite/gcc.dg/parloops-exit-first-loop-alt.c +++ b/gcc/testsuite/gcc.dg/parloops-exit-first-loop-alt.c @@ -2,13 +2,15 @@ /* { dg-require-effective-target pthread } */ /* { dg-options "-O2 -ftree-parallelize-loops=2 -fdump-tree-parloops" } */ +/* Variable bound, vector addition. */ + #define N 1000 unsigned int a[N]; unsigned int b[N]; unsigned int c[N]; -void __attribute__((noclone,noinline)) +void f (unsigned int n) { int i; diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index c0a03c88748..258d2f5fc80 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,11 @@ +2015-06-13 Tom de Vries + + * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment. + * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same. + * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment. + (N): Define. + (main): Use N instead of hardcoded constants. + 2015-06-05 Tom de Vries merge from gomp4 branch: diff --git a/libgomp/testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c b/libgomp/testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c index eb5e11f4c5a..f20cc990e71 100644 --- a/libgomp/testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c +++ b/libgomp/testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c @@ -1,6 +1,8 @@ /* { dg-do run } */ /* { dg-options "-O2 -ftree-parallelize-loops=2" } */ +/* Constant bound, vector addition. */ + #include #include diff --git a/libgomp/testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c b/libgomp/testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c index b426b3f124b..d55589e6df3 100644 --- a/libgomp/testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c +++ b/libgomp/testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c @@ -1,6 +1,10 @@ /* { dg-do run } */ /* { dg-options "-O2 -ftree-parallelize-loops=2" } */ +/* Variable bound, reduction. */ + +#define N 4000 + unsigned int *a; unsigned int __attribute__((noclone,noinline)) @@ -19,11 +23,11 @@ int main (void) { unsigned int res; - unsigned int array[4000]; + unsigned int array[N]; int i; - for (i = 0; i < 4000; ++i) + for (i = 0; i < N; ++i) array[i] = i % 7; a = &array[0]; - res = f (4000); + res = f (N); return !(res == 11995); } diff --git a/libgomp/testsuite/libgomp.c/parloops-exit-first-loop-alt.c b/libgomp/testsuite/libgomp.c/parloops-exit-first-loop-alt.c index d7d400328f1..f5fd3155e4d 100644 --- a/libgomp/testsuite/libgomp.c/parloops-exit-first-loop-alt.c +++ b/libgomp/testsuite/libgomp.c/parloops-exit-first-loop-alt.c @@ -1,6 +1,8 @@ /* { dg-do run } */ /* { dg-options "-O2 -ftree-parallelize-loops=2" } */ +/* Variable bound, vector addition. */ + #include #include -- 2.30.2