blob: 112899a7fdbc4a067a245536da6015c5b5112e58 [file] [log] [blame]
/* { dg-do compile { target { powerpc*-*-* } } } */
/* { dg-require-effective-target powerpc_p9vector_ok } */
/* { dg-skip-if "" { powerpc*-*-aix* } } */
/* { dg-options "-mdejagnu-cpu=power9" } */
#include <altivec.h>
__vector unsigned char
doCharShiftLeft (__vector unsigned char *p, __vector unsigned char *q)
{
__vector unsigned char result, input, shift_distance;
result = vec_srv (input, shift_distance);
return result;
}
/* { dg-final { scan-assembler "vsrv" } } */