1 /* { dg-do compile { target { powerpc*-*-* } } } */ 2 /* { dg-require-effective-target powerpc_p9vector_ok } */ 3 /* { dg-skip-if "" { powerpc*-*-aix* } } */ 4 /* { dg-options "-mdejagnu-cpu=power9" } */ 5 6 #include <altivec.h> 7 8 __vector unsigned char doCharShiftLeft(__vector unsigned char * p,__vector unsigned char * q)9doCharShiftLeft (__vector unsigned char *p, __vector unsigned char *q) 10 { 11 __vector unsigned char result, input, shift_distance; 12 result = vec_srv (input, shift_distance); 13 return result; 14 } 15 16 /* { dg-final { scan-assembler "vsrv" } } */ 17