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