[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / ppc-fpconv-1.c
blob73b42913399e3fc1ca04fae5b3e423381bf7f432
1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-skip-if "" { powerpc*-*-darwin* } } */
3 /* { dg-require-effective-target powerpc_vsx_ok } */
4 /* { dg-options "-O2 -mdejagnu-cpu=power7 -ffast-math" } */
5 /* { dg-final { scan-assembler-times {\mlfiwax\M|\mlxsiwax\M} 2 } } */
6 /* { dg-final { scan-assembler-times {\mlfiwzx\M|\mlxsiwzx\M} 2 } } */
7 /* { dg-final { scan-assembler-times {\mfcfids\M|\mxscvsxdsp\M} 3 } } */
8 /* { dg-final { scan-assembler-times {\mfcfidus\M|\mxscvuxdsp\M} 1 } } */
9 /* { dg-final { scan-assembler-times {\mfcfid\M|\mxscvsxddp\M} 3 } } */
10 /* { dg-final { scan-assembler-times {\mfcfidu\M|\mxscvuxddp\M} 1 } } */
12 void int_to_float (float *dest, int *src)
14 *dest = (float) *src;
17 void int_to_double (double *dest, int *src)
19 *dest = (double) *src;
22 void uint_to_float (float *dest, unsigned int *src)
24 *dest = (float) *src;
27 void uint_to_double (double *dest, unsigned int *src)
29 *dest = (double) *src;
32 void llong_to_float (float *dest, long long *src)
34 *dest = (float) *src;
37 void llong_to_double (double *dest, long long *src)
39 *dest = (double) *src;
42 void ullong_to_float (float *dest, unsigned long long *src)
44 *dest = (float) *src;
47 void ullong_to_double (double *dest, unsigned long long *src)
49 *dest = (double) *src;