1 /* { dg-do compile } */
2 /* { dg-mips-options "-O2 -ffast-math -mips4 -mhard-float" } */
3 /* { dg-final { scan-assembler "nmadd.s" } } */
4 /* { dg-final { scan-assembler "nmadd.d" } } */
5 /* { dg-final { scan-assembler "nmsub.s" } } */
6 /* { dg-final { scan-assembler "nmsub.d" } } */
9 sub1 (float f
, float g
, float h
)
11 return -((f
* g
) + h
);
15 sub2 (double f
, double g
, double h
)
17 return -((f
* g
) + h
);
21 sub3 (float f
, float g
, float h
)
23 return -((f
* g
) - h
);
27 sub4 (double f
, double g
, double h
)
29 return -((f
* g
) - h
);