aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa-chrec/ssa-chrec-21.c
blob: 1f8d0e600d34b9588d5e313f271dc5923cfaf2ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* { dg-do compile } */ 
/* { dg-options "-O1 -fscalar-evolutions -fdump-tree-scev-details" } */


int main ()
{
  int a = 3;
  int b = 2;
  
  while (b)
    {
      a *= 4;
      b *= a;
    }
}

/* a  ->  {3, *, 4}_1
   b  ->  {{2, *, 12}_1, *, 4}_1
*/

/* FIXME. */