summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr84452.c
blob: 6e961cb04e8caf3ead5753e2608b9264d537efb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* PR tree-optimization/84452 */
/* { dg-do compile } */
/* { dg-options "-Ofast" } */

double pow (double, double) __attribute__((simd));
double exp (double) __attribute__((simd));
extern double a[1024], b[1024];

void
foo (void)
{
  for (int i = 0; i < 1024; ++i)
    a[i] = pow (2.0, b[i]);
}