1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-skip-if "" { powerpc*-*-darwin* } } */
3 /* { dg-require-effective-target powerpc_vsx_ok } */
4 /* { dg-options "-O3 -mdejagnu-cpu=power7 -ffast-math" } */
5 /* { dg-final { scan-assembler-times {\mfctidz\M|\mxscvdpsxds\M} 2 } } */
6 /* { dg-final { scan-assembler-not   {\mlwz\M} } } */
7 /* { dg-final { scan-assembler-not   {\mstw\M} } } */
8 /* { dg-final { scan-assembler-not   {\mld\M}  } } */
9 /* { dg-final { scan-assembler-not   {\mstd\M} } } */
10 
float_to_llong(long long * dest,float src)11 void float_to_llong  (long long *dest, float  src) { *dest = (long long) src; }
double_to_llong(long long * dest,double src)12 void double_to_llong (long long *dest, double src) { *dest = (long long) src; }
13