1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power8" } } */
3 /* { dg-require-effective-target lp64 } */
4 /* { dg-require-effective-target powerpc_p9vector_ok } */
5 /* { dg-options "-mcpu=power8" } */
6 
7 #include <stddef.h>
8 #include <altivec.h>
9 
10 /* The vec_xst_len() function is not available on power8 configurations.  */
11 
12 void
store_data(vector double * datap,double * address,size_t length)13 store_data (vector double *datap, double *address, size_t length)
14 {
15   vector double data = *datap;
16 
17   __builtin_vec_stxvl (data, address, length); /* { dg-error "builtin function '__builtin_vec_stxvl' not supported in this compiler configuration" } */
18 }
19