Merge aosp-toolchain/gcc/gcc-4_9 changes.
[official-gcc.git] / gcc-4_9 / gcc / testsuite / gcc.target / mips / nmadd-3.c
blob85de518a73dff4a3c9ea61d43a65b94f78bc5ef5
1 /* The same code as nmadd-2.c, but compiled with -fno-finite-math-only.
2 We can't use nmadd and nmsub in that case. */
3 /* { dg-do compile } */
4 /* { dg-options "-fno-fast-math -fno-finite-math-only isa=4 -mhard-float" } */
5 /* { dg-final { scan-assembler-not "\tnmadd" } } */
6 /* { dg-final { scan-assembler-not "\tnmsub" } } */
8 float
9 sub1 (float f, float g, float h)
11 return -((f * g) + h);
14 double
15 sub2 (double f, double g, double h)
17 return -((f * g) + h);
20 float
21 sub3 (float f, float g, float h)
23 return -((f * g) - h);
26 double
27 sub4 (double f, double g, double h)
29 return -((f * g) - h);