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 __vector signed __int128
fetch_data(signed __int128 * address,size_t length)10 fetch_data (signed __int128 *address, size_t length)
11 {
12   return vec_xl_len (address, length);
13 }
14 
15 /* { dg-final { scan-assembler "sldi" } } */
16 /* { dg-final { scan-assembler "lxvl" } } */
17