1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-skip-if "" { powerpc*-*-darwin* } } */
3 /* { dg-require-effective-target powerpc_p8vector_ok } */
4 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power8" } } */
5 /* { dg-options "-mcpu=power8 -O2" } */
7 vector
float dbl_to_float_p8 (double x
) { return __builtin_vsx_xscvdpspn (x
); }
8 double float_to_dbl_p8 (vector
float x
) { return __builtin_vsx_xscvspdpn (x
); }
10 /* { dg-final { scan-assembler "xscvdpspn" } } */
11 /* { dg-final { scan-assembler "xscvspdpn" } } */