+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.
/* { 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;
/* { 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;
/* { 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;
+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:
/* { dg-do run } */
/* { dg-options "-O2 -ftree-parallelize-loops=2" } */
+/* Constant bound, vector addition. */
+
#include <stdio.h>
#include <stdlib.h>
/* { dg-do run } */
/* { dg-options "-O2 -ftree-parallelize-loops=2" } */
+/* Variable bound, reduction. */
+
+#define N 4000
+
unsigned int *a;
unsigned int __attribute__((noclone,noinline))
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);
}
/* { dg-do run } */
/* { dg-options "-O2 -ftree-parallelize-loops=2" } */
+/* Variable bound, vector addition. */
+
#include <stdio.h>
#include <stdlib.h>