summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20030604-1.c
blob: 7e36bfeb39e91bf88bceebad6e73b57badaabf8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* PR optimization/10876 */
/* Contributed by Christian Ehrhardt */

/* Verify that the SPARC port doesn't emit
   (minus) (reg) (const_int) insns.  */

void f(void)
{
  unsigned int butterfly, block, offset;
  double *Z;

  for (block = 0; block < 512; block += 512) {
    double T1re, T2re;
    offset = butterfly + block;
    T1re += T2re;
    T2re = Z[offset] + T1re;
  }
}