1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power9" } } */
3 /* { dg-require-effective-target lp64 } */
4 /* { dg-require-effective-target powerpc_p9vector_ok } */
5 /* { dg-options "-mcpu=power9" } */
6
7 #include <stddef.h>
8 #include <altivec.h>
9
10 void
store_data(vector signed char * datap,signed char * address,size_t length)11 store_data (vector signed char *datap, signed char *address, size_t length)
12 {
13 vector signed char data = *datap;
14
15 vec_xst_len (data, address, length);
16 }
17
18 /* { dg-final { scan-assembler "sldi" } } */
19 /* { dg-final { scan-assembler "stxvl" } } */
20