1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-skip-if "" { powerpc*-*-darwin* } { "*" } { "" } } */
3 /* { dg-require-effective-target ilp32 } */
4 /* { dg-options "-O2 -mcpu=power5 -std=c99 -msoft-float" } */
5 /* { dg-final { scan-assembler-not "fmadd" } } */
6 /* { dg-final { scan-assembler-not "xsfmadd" } } */
8 /* Test whether -msoft-float turns off the macros math.h uses for
11 #error "__FP_FAST_FMA should not be defined"
15 #error "__FP_FAST_FMAF should not be defined"
19 builtin_fma (double b, double c, double d)
21 return __builtin_fma (b, c, d); /* bl fma */
25 builtin_fmaf (float b, float c, float d)
27 return __builtin_fmaf (b, c, -d); /* bl fmaf */