1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-skip-if "" { powerpc*-*-darwin* } { "*" } { "" } } */
3 /* { dg-require-effective-target powerpc_vsx_ok } */
4 /* { dg-options "-O3 -mcpu=power7 -ffast-math" } */
5 /* { dg-final { scan-assembler-times "fctiwz" 2 } } */
6 /* { dg-final { scan-assembler-times "fctiwuz" 2 } } */
7 /* { dg-final { scan-assembler-times "fctidz" 1 } } */
8 /* { dg-final { scan-assembler-times "fctiduz" 1 } } */
9 /* { dg-final { scan-assembler-times "xscvdpsxds" 1 } } */
10 /* { dg-final { scan-assembler-times "xscvdpuxds" 1 } } */
12 void float_to_int (int *dest
, float src
) { *dest
= (int) src
; }
13 void double_to_int (int *dest
, double src
) { *dest
= (int) src
; }
15 void float_to_uint (int *dest
, float src
) { *dest
= (unsigned int) src
; }
16 void double_to_uint (int *dest
, double src
) { *dest
= (unsigned int) src
; }
18 void float_to_llong (long long *dest
, float src
) { *dest
= (long long) src
; }
19 void double_to_llong (long long *dest
, double src
) { *dest
= (long long) src
; }
21 void float_to_ullong (unsigned long long *dest
, float src
) { *dest
= (unsigned long long) src
; }
22 void double_to_ullong (unsigned long long *dest
, double src
) { *dest
= (unsigned long long) src
; }