aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/20040621-1.c
blob: cefa9cedf68037d649e1d52362feb2bd4685fa2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* This test would cause partial redundancies too complex for PRE
   to insert using a single temporary due to them not being GIMPLE
   expressions.  */
int ssbgst (int c, int k)
{
  int a, i, j;

  a = 0;
  i = 1;
  j = k;
  while (j)
    {
      a += (j + i) * (k + i + c) + (j + i + c);
      j = j - 1;
    }
  return a;
}