comparison gcc/testsuite/gcc.dg/vect/no-tree-pre-pr45241.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 /* PR tree-optimization/45241 */
2 /* { dg-do compile } */
3
4 int
5 foo (short x)
6 {
7 short i, y;
8 int sum;
9
10 for (i = 0; i < x; i++)
11 y = x * i;
12
13 for (i = x; i > 0; i--)
14 sum += y;
15
16 return sum;
17 }
18