Add compile command to each testcase
[gcc-vect-testsuite.git] / no-tree-pre-pr45241.c
blob289a930cd7babfb9ee09311f3f63c66f9072a679
1 /* PR tree-optimization/45241 */
2 /* { dg-do compile } */
3 /* { dg-options "-ftree-vectorize" } */
5 int
6 foo (short x)
8 short i, y;
9 int sum;
11 for (i = 0; i < x; i++)
12 y = x * i;
14 for (i = x; i > 0; i--)
15 sum += y;
17 return sum;
20 /* { dg-final { cleanup-tree-dump "vect" } } */