[gcc]
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / vsu / vec-xst-len-12.c
blob86354b03d668cac9439aa6ddce2c8d8c3a2099aa
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" } */
7 #include <stddef.h>
8 #include <altivec.h>
10 /* The vec_xst_len() function is not available on power8 configurations. */
12 void
13 store_data (vector double *datap, double *address, size_t length)
15 vector double data = *datap;
17 __builtin_vec_stxvl (data, address, length); /* { dg-error "builtin function __builtin_vec_stxvl not supported in this compiler configuration" } */