Zen5 tuning part 4: update reassocation width
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / vslv-0.c
blobd24df29947e0a83a1d710ca7b1437e6f26326a30
1 /* { dg-do compile } */
2 /* { dg-options "-mdejagnu-cpu=power9 -mvsx" } */
3 /* { dg-require-effective-target powerpc_vsx } */
5 #include <altivec.h>
7 __vector unsigned char
8 doCharShiftLeft (__vector unsigned char *p, __vector unsigned char *q)
10 __vector unsigned char result, input, shift_distance;
11 result = __builtin_vec_vslv (input, shift_distance);
12 return result;
15 /* { dg-final { scan-assembler "vslv" } } */