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] vectorizer testsuite: add alignment checks


> --- vect-66.c   9 Jan 2005 17:30:23 -0000       1.6
> +++ vect-66.c   16 Jan 2005 11:51:10 -0000
> @@ -52,7 +52,7 @@ int main1 ()
>      {
>        for (j = 0; j < 4; j++)
>          {
> -           ic[2][1][6][j] = 5;
> +           ic[2][1][6][j+1] = 5;
>          }
>      }
>
> @@ -61,7 +61,7 @@ int main1 ()
>      {
>        for (j = 0; j < 4; j++)
>          {
> -           if (ic[2][1][6][j] != 5)
> +           if (ic[2][1][6][j+1] != 5)
>                  abort();
>          }
>      }
>
> (I tested it on powerpc-darwin and i686-pc-linux-gnu).
> I think I prefer the last option, but either is fine with me.

Works for me.  Please install if RTH doesn't mind.

Thanks.

-- 
Eric Botcazou


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