libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / loop-bound-6.c
blob74f88f17f78e90b40af374baed1a96e394b5873b
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fno-tree-vectorize -fdump-tree-ivopts-details" } */
4 int *a;
6 int
7 foo (signed char s)
9 signed char i;
10 int sum = 0;
12 for (i = s; i > 0; i--)
14 sum += a[i];
17 return sum;
20 /* Check loop niter bound information. */
21 /* { dg-final { scan-tree-dump "bounded by 126" "ivopts" } } */
22 /* { dg-final { scan-tree-dump-not "bounded by 127" "ivopts" } } */
23 /* { dg-final { scan-tree-dump-not "zero if " "ivopts" } } */