rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL when returning call_cookie.
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / ppc-pow.c
blobe88125c1d98a96db97db6d7b25d1049f4220d795
1 /* { dg-do compile { target { { powerpc*-*-* } && { ! powerpc*-apple-darwin* } } } } */
2 /* { dg-options "-O2 -ffast-math -mcpu=power6" } */
3 /* { dg-final { scan-assembler-times "fsqrt" 3 } } */
4 /* { dg-final { scan-assembler-times "fmul" 1 } } */
5 /* { dg-final { scan-assembler-times "bl? pow" 1 } } */
6 /* { dg-final { scan-assembler-times "bl? sqrt" 1 } } */
8 double
9 do_pow_0_75_default (double a)
11 return __builtin_pow (a, 0.75); /* should generate 2 fsqrts */
14 double
15 do_pow_0_5_default (double a)
17 return __builtin_pow (a, 0.5); /* should generate fsqrt */
20 #pragma GCC target "no-powerpc-gpopt,no-powerpc-gfxopt"
22 double
23 do_pow_0_75_nosqrt (double a)
25 return __builtin_pow (a, 0.75); /* should call pow */
28 double
29 do_pow_0_5_nosqrt (double a)
31 return __builtin_pow (a, 0.5); /* should call sqrt */
34 #pragma GCC reset_options