| 1 |
/* { dg-do compile { target { powerpc*-*-* } } } */ |
| 2 |
/* { dg-skip-if "" { powerpc*-*-darwin* } } */ |
| 3 |
/* { dg-require-effective-target ilp32 } */ |
| 4 |
/* { dg-require-effective-target powerpc_fprs } */ |
| 5 |
/* { dg-skip-if "" { powerpc*-*-* } { "-mpowerpc64" } } */ |
| 6 |
/* { dg-options "-O2 -mdejagnu-cpu=750 -ffast-math" } */ |
| 7 |
/* { dg-final { scan-assembler-not "lfiwax" } } */ |
| 8 |
/* { dg-final { scan-assembler-not "lfiwzx" } } */ |
| 9 |
/* { dg-final { scan-assembler-not "fcfid " } } */ |
| 10 |
/* { dg-final { scan-assembler-not "fcfids " } } */ |
| 11 |
/* { dg-final { scan-assembler-not "fcfidus " } } */ |
| 12 |
/* { dg-final { scan-assembler-not "fcfidu " } } */ |
| 13 |
/* { dg-final { scan-assembler-not "xscvsxddp " } } */ |
| 14 |
/* { dg-final { scan-assembler-not "xscvuxddp " } } */ |
| 15 |
|
| 16 |
void int_to_float (float *dest, int *src) |
| 17 |
{ |
| 18 |
*dest = (float) *src; |
| 19 |
} |
| 20 |
|
| 21 |
void int_to_double (double *dest, int *src) |
| 22 |
{ |
| 23 |
*dest = (double) *src; |
| 24 |
} |
| 25 |
|
| 26 |
void uint_to_float (float *dest, unsigned int *src) |
| 27 |
{ |
| 28 |
*dest = (float) *src; |
| 29 |
} |
| 30 |
|
| 31 |
void uint_to_double (double *dest, unsigned int *src) |
| 32 |
{ |
| 33 |
*dest = (double) *src; |
| 34 |
} |
| 35 |
|
| 36 |
void llong_to_float (float *dest, long long *src) |
| 37 |
{ |
| 38 |
*dest = (float) *src; |
| 39 |
} |
| 40 |
|
| 41 |
void llong_to_double (double *dest, long long *src) |
| 42 |
{ |
| 43 |
*dest = (double) *src; |
| 44 |
} |
| 45 |
|
| 46 |
void ullong_to_float (float *dest, unsigned long long *src) |
| 47 |
{ |
| 48 |
*dest = (float) *src; |
| 49 |
} |
| 50 |
|
| 51 |
void ullong_to_double (double *dest, unsigned long long *src) |
| 52 |
{ |
| 53 |
*dest = (double) *src; |
| 54 |
} |