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


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

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

/* FIXME. */