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