Debian Codegraph @

gcc/testsuite/gcc.dg/tree-ssa/scev-6.c

raw
1 /* { dg-do run } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
3
4 int main()
5 {
6 int i;
7 signed char result = 0;
8 for (i = 0; i != 8000; ++i)
9 {
10 int tem = result;
11 tem = tem + 2;
12 result = tem;
13 }
14 if (__builtin_abs ((int)(signed char)((unsigned char ) result + 128)) != 0)
15 __builtin_abort ();
16 return 0;
17 }
18
19 /* SCEV constant propagation should be able to compute the overall effect
20 of the loop. */
21
22 /* { dg-final { scan-tree-dump-not "abort" "optimized" } } */