ubuntu-buildroot/output/build/host-gcc-initial-11.4.0/gcc/testsuite/gcc.target/powerpc/ppc-fpconv-1.c

51 lines
1.3 KiB
C
Raw Permalink Normal View History

2024-04-01 15:19:46 +00:00
/* { dg-do compile { target { powerpc*-*-* } } } */
/* { dg-skip-if "" { powerpc*-*-darwin* } } */
/* { dg-require-effective-target powerpc_vsx_ok } */
/* { dg-options "-O2 -mdejagnu-cpu=power7 -ffast-math" } */
/* { dg-final { scan-assembler-times {\mlfiwax\M|\mlxsiwax\M} 2 } } */
/* { dg-final { scan-assembler-times {\mlfiwzx\M|\mlxsiwzx\M} 2 } } */
/* { dg-final { scan-assembler-times {\mfcfids\M|\mxscvsxdsp\M} 3 } } */
/* { dg-final { scan-assembler-times {\mfcfidus\M|\mxscvuxdsp\M} 1 } } */
/* { dg-final { scan-assembler-times {\mfcfid\M|\mxscvsxddp\M} 3 } } */
/* { dg-final { scan-assembler-times {\mfcfidu\M|\mxscvuxddp\M} 1 } } */
void int_to_float (float *dest, int *src)
{
*dest = (float) *src;
}
void int_to_double (double *dest, int *src)
{
*dest = (double) *src;
}
void uint_to_float (float *dest, unsigned int *src)
{
*dest = (float) *src;
}
void uint_to_double (double *dest, unsigned int *src)
{
*dest = (double) *src;
}
void llong_to_float (float *dest, long long *src)
{
*dest = (float) *src;
}
void llong_to_double (double *dest, long long *src)
{
*dest = (double) *src;
}
void ullong_to_float (float *dest, unsigned long long *src)
{
*dest = (float) *src;
}
void ullong_to_double (double *dest, unsigned long long *src)
{
*dest = (double) *src;
}