blob: cc8df73b84e2c739d04057b4c2c7476cd644ada9 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-require-effective-target powerpc_vsx_ok } */
/* { dg-options "-mdejagnu-cpu=power9 -mvsx" } */
#include <altivec.h>
__vector unsigned char
doCharShiftLeft (__vector unsigned char *p, __vector unsigned char *q)
{
__vector unsigned char result, input, shift_distance;
result = __builtin_vec_vslv (input, shift_distance);
return result;
}
/* { dg-final { scan-assembler "vslv" } } */