2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / scev-6.c
blob5d609082498d2ff610c18ac2bca1e507693532bc
1 /* { dg-do run } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
4 int main()
6 int i;
7 signed char result = 0;
8 for (i = 0; i != 8000; ++i)
10 int tem = result;
11 tem = tem + 2;
12 result = tem;
14 if (__builtin_abs ((int)(signed char)((unsigned char ) result + 128)) != 0)
15 __builtin_abort ();
16 return 0;
19 /* SCEV constant propagation should be able to compute the overall effect
20 of the loop. */
22 /* { dg-final { scan-tree-dump-not "abort" "optimized" } } */