Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / slsr-19.c
blobd943b7c7cd8b59d9845926d3818ca08c3a7fc7bd
1 /* Verify straight-line strength reduction for multiply candidates
2 with stride in RHS1 position. */
4 /* { dg-do compile } */
5 /* { dg-options "-O3 -fdump-tree-optimized" } */
7 int
8 f (int c, int s)
10 int x1, x2, y1, y2;
12 y1 = c + 2;
13 x1 = s * y1;
14 y2 = y1 + 2;
15 x2 = s * y2;
16 return x1 + x2;
19 /* { dg-final { scan-tree-dump-times " \\* " 2 "optimized" } } */
20 /* { dg-final { scan-tree-dump-times " \\* 2;" 1 "optimized" } } */