1 /* Test that the compiler properly optimizes vector shift instructions into
2 psha/pshl on SSE5 systems. */
4 /* { dg-do compile } */
5 /* { dg-require-effective-target lp64 } */
6 /* { dg-options "-O2 -msse5 -ftree-vectorize" } */
8 extern void exit (int);
10 typedef long __m128i
__attribute__ ((__vector_size__ (16), __may_alias__
));
21 right_sign_shift32 (void)
25 for (i
= 0; i
< SIZE
; i
++)
26 a
.i32
[i
] = b
.i32
[i
] >> c
.i32
[i
];
31 right_sign_shfit32 ();
35 /* { dg-final { scan-assembler "pshad" } } */