aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/pr46843.c
blob: 3b0d76d134f03f6565ddad455f453ca7c873d9a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "-O2 -fschedule-insns" } */

void foo (double *d1, double *u1, double *u2, double *d2, int s, int j, int i)
{
  int n = 1 << s;
  double x = 0;

  for (; j < n; j++)
    x += d1[j] * d2[i];
  d1[i] = x;
}