Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr68483-1.c
blob29787e94bd3877374ee55f503b37cf627e8363a4
1 /* PR target/68483 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -ftree-vectorize -msse2 -mno-sse3" } */
5 void
6 test (int *input, int *out, unsigned x1, unsigned x2)
8 unsigned i, j;
9 unsigned end = x1;
11 for (i = j = 0; i < 1000; i++)
13 int sum = 0;
14 end += x2;
15 for (; j < end; j++)
16 sum += input[j];
17 out[i] = sum;
21 /* { dg-final { scan-assembler "psrldq\[^\n\r]*(8,|, 8)" { target ia32 } } } */
22 /* { dg-final { scan-assembler "psrldq\[^\n\r]*(4,|, 4)" { target ia32 } } } */