aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa-chrec/ssa-chrec-40.c
blob: 6603a96027555922cca7726f09b87acfa4e497d2 (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 compile } */ 
/* { dg-options "-O1 -fscalar-evolutions -fdump-tree-scev-details" } */


int main ()
{
  int a = 1;
  int b = 1;
  
  while (a)
    {
      a += b;
      b *= 2;
    }
}

/* 
   b  ->  {1, *, 2}_1
   a  ->  {1, +, {1, *, 2}_1}_1
*/

/* FIXME. */