summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr84687.c
blob: f3ac9ac27dda681cb83cc6c721d1c9e10c997964 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* PR tree-optimization/84687 */
/* { dg-do compile } */
/* { dg-options "-Ofast" } */

int a[64], b;
double pow (double, double);
__attribute__((__simd__)) double exp (double);

void
foo (double x)
{
  int i;
  double c = exp (x);
  for (i = 0; i < 64; i++)
    {
      b = i;
      a[i] = pow (12.0, b) * pow (c, i);
    }
}