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 unsigned long long * datap,unsigned long long * address,size_t length)10store_data (vector unsigned long long *datap, unsigned long long *address, 11 size_t length) 12 { 13 vector unsigned long long 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