summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/vectorize5.c
blob: 04f044f621dadbbb6937596529abc2bc127f8613 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do compile } */
/* { dg-require-effective-target lp64 } */
/* { dg-options "-O2 -ftree-vectorize -mveclibabi=acml -ffast-math -mtune=generic" } */

double x[256];

extern double sin(double);

void foo(void)
{
  int i;

  for (i=0; i<256; ++i)
    x[i] = sin(x[i]);
}

/* { dg-final { scan-assembler "__vrd2_sin" } } */