Update parloops-exit-first-loop-alt{,-2,-3}.c
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
This commit is contained in:
parent
522b7b88b2
commit
ab3306d23c
8 changed files with 36 additions and 7 deletions
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
/* { dg-do run } */
|
||||
/* { dg-options "-O2 -ftree-parallelize-loops=2" } */
|
||||
|
||||
/* Constant bound, vector addition. */
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
/* { dg-do run } */
|
||||
/* { dg-options "-O2 -ftree-parallelize-loops=2" } */
|
||||
|
||||
/* Variable bound, vector addition. */
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue