This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch] Fix the test libgomp.graphite/force-parallel-6.c


On Oct 23, 2012, at 6:33 AM, Dominique Dhumieres <dominiq@lps.ens.fr> wrote:
> The test libgomp.graphite/force-parallel-6.c is not valid as it tries
> to write Y[2*N] for Y defined as

Ok.  [ Could someone check it in for Dominique? ]

> 2012-10-23  Dominique d'Humieres  <dominiq@lps.ens.fr>
> 
> 	* testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
> 
> --- ../_clean/libgomp/testsuite/libgomp.graphite/force-parallel-6.c	2011-12-06 15:36:08.000000000 +0100
> +++ libgomp/testsuite/libgomp.graphite/force-parallel-6.c	2012-10-23 14:55:12.000000000 +0200
> @@ -7,13 +7,13 @@ int foo(void)
> {
>   int i, j, k;
> 
> -  for (i = 1; i <= N; i++)
> +  for (i = 0; i < N; i++)
>     {
>       X[i] = Y[i] + 10;
> -      for (j = 1; j <= N; j++)
> +      for (j = 0; j < N; j++)
> 	{
> 	  B[j] = A[j][N];
> -	  for (k = 1; k <= N; k++)
> +	  for (k = 0; k < N; k++)
> 	    {
> 	      A[j+1][k] = B[j] + C[j][k];
> 	    }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]