1 /* { dg-do compile } */
2 /* { dg-options "-O2 -ffast-math" } */
4 extern double fma (double, double, double);
5 extern float fmaf (float, float, float);
7 double test_fma1 (double x
, double y
, double z
)
9 return - fma (x
, y
, z
);
12 float test_fma2 (float x
, float y
, float z
)
14 return - fmaf (x
, y
, z
);
17 /* { dg-final { scan-assembler-times "fnmadd\td\[0-9\]" 1 } } */
18 /* { dg-final { scan-assembler-times "fnmadd\ts\[0-9\]" 1 } } */