rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL when returning call_cookie.
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / ppc-fma-6.c
blobc9132bbf8a473625bd058b27067b94f2ebaabc74
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
9 FP_FAST_FMA{,F,L}. */
10 #ifdef __FP_FAST_FMA
11 #error "__FP_FAST_FMA should not be defined"
12 #endif
14 #ifdef __FP_FAST_FMAF
15 #error "__FP_FAST_FMAF should not be defined"
16 #endif
18 double
19 builtin_fma (double b, double c, double d)
21 return __builtin_fma (b, c, d); /* bl fma */
24 float
25 builtin_fmaf (float b, float c, float d)
27 return __builtin_fmaf (b, c, -d); /* bl fmaf */