1/* { dg-do compile } */ 2/* { dg-options "-std=c99 -O3" } */ 3 4extern double fma (double, double, double); 5void fun() __attribute__((target("fma"))); 6 7__attribute__((target("fma"))) 8void 9other_fun(double *restrict out, double * restrict a, double * restrict b, double * restrict c, int n) 10{ 11 int i; 12 for (i = 0; i < n; i++) { 13 out[i] = fma(a[i], b[i], c[i]); 14 } 15} 16 17/* { dg-final { scan-assembler "vfmadd" } } */ 18