2018-01-16 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr49352.c
blobb784b8a09644c49fe676b9ded9ded3264b2d62d0
1 /* PR tree-optimization/49352 */
2 /* { dg-do compile } */
3 /* { dg-additional-options "-O2 -fcompare-debug" } */
4 /* { dg-xfail-if "" { powerpc-ibm-aix* } } */
6 int
7 foo (int *x, int *y, int n)
9 int i, j;
10 int dot = 0;
11 for (i = 0; i < n; i++)
12 for (j = 0; j < 2; j++)
13 dot += *(x++) * *(y++);
14 return dot;