1 /* { dg-do compile } */
2 /* { dg-options "-O -ftree-vectorize -msse2" } */
3
foo(int * p,int N)4 void foo(int *p, int N)
5 {
6 int i;
7 for (i=0; i<8; ++i, ++p)
8 {
9 int j = N+2*(N+p[0]), k = 2*N+p[0];
10 p[0] = j+N;
11 p[5] = j+k;
12 }
13 }
14
15