]>
git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.target/i386/vect-shiftv4qi.c
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -msse2" } */
6 typedef unsigned char __vu
__attribute__ ((__vector_size__ (N
)));
7 typedef signed char __vi
__attribute__ ((__vector_size__ (N
)));
9 __vu
sll (__vu a
, int n
)
19 /* { dg-final { scan-assembler-times "psllw" 2 } } */
21 __vu
srl (__vu a
, int n
)
31 /* { dg-final { scan-assembler-times "psrlw" 2 } } */
33 __vi
sra (__vi a
, int n
)
43 /* { dg-final { scan-assembler-times "psraw" 2 } } */