blob: 7de460ad3e9e74fa146f6d10f19ca87958e1443a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
/* { dg-do compile } */
/* { dg-options "-mdejagnu-cpu=power9 -mvsx" } */
/* { dg-require-effective-target powerpc_vsx } */
#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" } } */
|