summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20040621-1.c
blob: 8a2ebb07ecd9082da230a63d6654d946216e8069 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* This test woudl 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;
}