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