]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Update parloops-exit-first-loop-alt{,-2,-3}.c
authorTom de Vries <tom@codesourcery.com>
Sat, 13 Jun 2015 08:05:44 +0000 (08:05 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Sat, 13 Jun 2015 08:05:44 +0000 (08:05 +0000)
2015-06-13  Tom de Vries  <tom@codesourcery.com>

* 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
gcc/testsuite/gcc.dg/parloops-exit-first-loop-alt-2.c
gcc/testsuite/gcc.dg/parloops-exit-first-loop-alt-3.c
gcc/testsuite/gcc.dg/parloops-exit-first-loop-alt.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c
libgomp/testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c
libgomp/testsuite/libgomp.c/parloops-exit-first-loop-alt.c

index 1865bedf93231132d750516b06d21092dd994441..03c3c7c924e3c42135a40fab180b8a3ff298c88b 100644 (file)
@@ -1,3 +1,10 @@
+2015-06-13  Tom de Vries  <tom@codesourcery.com>
+
+       * 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  <venkataramanan.kumar@amd.com>
 
        * gcc.target/i386/monitorx.c: New.
index 956be9b912be37f4c711601c790c64386bfcaa08..24e605a58774459308de48cd9cba75fac4a97592 100644 (file)
@@ -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;
 
index 82b0b1d5bfd4de296492608e3effff31dca38500..b0fde372a141f4bd030e29c2f059e9aedbf7db07 100644 (file)
@@ -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;
index 9be844adef52d30cba0d2f06edec4a5012a57a3d..b36f01b8f8f3284290f47562ebe53a6c2d15232e 100644 (file)
@@ -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;
index c0a03c8874898cfa6b13fa7b8ed3e27a90f9e2e8..258d2f5fc80c03a0ec231cda9d9dea2548561cc8 100644 (file)
@@ -1,3 +1,11 @@
+2015-06-13  Tom de Vries  <tom@codesourcery.com>
+
+       * 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  <tom@codesourcery.com>
 
        merge from gomp4 branch:
index eb5e11f4c5ac9b0dfacca7d6b0eca21fd517d7d2..f20cc990e71c1bcf5121da02f85bdd580aea1d7d 100644 (file)
@@ -1,6 +1,8 @@
 /* { dg-do run } */
 /* { dg-options "-O2 -ftree-parallelize-loops=2" } */
 
+/* Constant bound, vector addition.  */
+
 #include <stdio.h>
 #include <stdlib.h>
 
index b426b3f124ba31a4346258b0fdf8bac21d2efa10..d55589e6df35f8752e32ef0c1b91c1e158d43b3d 100644 (file)
@@ -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);
 }
index d7d400328f10f317f13243e238377a08d5204d02..f5fd3155e4dd8cb6724510cbfab4851b892d1cf3 100644 (file)
@@ -1,6 +1,8 @@
 /* { dg-do run } */
 /* { dg-options "-O2 -ftree-parallelize-loops=2" } */
 
+/* Variable bound, vector addition.  */
+
 #include <stdio.h>
 #include <stdlib.h>