Debian Codegraph @

gcc/testsuite/gcc.dg/vect/pr49352.c

raw
1 /* PR tree-optimization/49352 */
2 /* { dg-do compile } */
3 /* { dg-additional-options "-O2 -fcompare-debug" } */
4
5 int
6 foo (int *x, int *y, int n)
7 {
8 int i, j;
9 int dot = 0;
10 for (i = 0; i < n; i++)
11 for (j = 0; j < 2; j++)
12 dot += *(x++) * *(y++);
13 return dot;
14 }