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