1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power9" } } */
3 /* { dg-require-effective-target powerpc_p9vector_ok } */
4 /* { dg-options "-mcpu=power9" } */
5 
6 #include <altivec.h>
7 
8 __vector unsigned long long int
get_significands(__vector double * p)9 get_significands (__vector double *p)
10 {
11   __vector double source = *p;
12 
13   return vec_extract_sig (source);
14 }
15 
16 /* { dg-final { scan-assembler "xvxsigdp" } } */
17