summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr26600.c
blob: bbe0663da7e07bde0bc24fc88d1e5299849ea0ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-options "-O -ftree-vectorize -msse2" } */

void foo(int *p, int N)
{
    int i;
    for (i=0; i<8; ++i, ++p)
    {
        int j = N+2*(N+p[0]), k = 2*N+p[0];
        p[0] = j+N;
        p[5] = j+k;
    }
}