Merge from trunk
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr59390_1.c
blob632eb6f9a4f2ce4f855b9f3ac877be3e08661d13
1 /* { dg-do compile } */
2 /* { dg-options "-std=c99 -O3" } */
4 extern double fma (double, double, double);
5 void fun() __attribute__((target("fma")));
7 __attribute__((target("fma")))
8 void
9 other_fun(double *restrict out, double * restrict a, double * restrict b, double * restrict c, int n)
11 int i;
12 for (i = 0; i < n; i++) {
13 out[i] = fma(a[i], b[i], c[i]);
17 /* { dg-final { scan-assembler "vfmadd" } } */