PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr59390.c
blob749c61a58ff5210e6e51b0135155a6926b2c9e94
1 /* { dg-do compile } */
2 /* { dg-options "-std=c99 -O3 -mno-fma -mno-fma4" } */
4 extern double fma (double, double, double);
5 void fun() __attribute__((target("fma")));
7 void
8 other_fun(double *restrict out, double * restrict a, double * restrict b, double * restrict c, int n)
10 int i;
11 for (i = 0; i < n; i++) {
12 out[i] = fma(a[i], b[i], c[i]);
16 /* { dg-final { scan-assembler-not "vfmadd" } } */