1 /* { dg-do compile { target { powerpc*-*-* } } } */ 2 /* { dg-require-effective-target powerpc_p9vector_ok } */ 3 /* { dg-options "-mdejagnu-cpu=power8" } */ 4 5 #include <stddef.h> 6 #include <altivec.h> 7 8 signed int fetch_data(unsigned int offset,vector signed int * datap)9fetch_data (unsigned int offset, vector signed int *datap) 10 { 11 vector signed int data = *datap; 12 13 return __builtin_vec_vextulx (offset, data); /* { dg-error "'__builtin_altivec_vextuwlx' requires" } */ 14 } 15