aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa-chrec/ssa-chrec-42.c
blob: 33378ddfa9c4693af7be3395896a0697885db156 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* APPLE LOCAL file lno */
/* { dg-do compile } */ 
/* { dg-options "-O1 -floop-test -fdump-tree-lptest-details" } */


int main ()
{
  int a = 1;
  int b = 2;
  int c = 0;
  int d = 5;
  
  while (a) 
    {
      a += b;
      a += d;
      
      b += c;
      c += 1;
      d += 9;
    }
}

/* 
   c  ->  {0, +, 1}_1
   b  ->  {2, +, 0, +, 1}_1
   d  ->  {5, +, 9}_1
   a  ->  {1, +, 7, +, 9, +, 1}_1
*/

/* FIXME. */