blob: 749c61a58ff5210e6e51b0135155a6926b2c9e94 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-std=c99 -O3 -mno-fma -mno-fma4" } */
extern double fma (double, double, double);
void fun() __attribute__((target("fma")));
void
other_fun(double *restrict out, double * restrict a, double * restrict b, double * restrict c, int n)
{
int i;
for (i = 0; i < n; i++) {
out[i] = fma(a[i], b[i], c[i]);
}
}
/* { dg-final { scan-assembler-not "vfmadd" } } */