1 /* Test that the compiler properly optimizes vector rotate instructions vector
2 into prot on XOP systems. */
4 /* { dg-do compile { target { ! ia32 } } } */
5 /* { dg-options "-O2 -mxop -mno-avx2 -ftree-vectorize" } */
7 extern void exit (int);
9 typedef long __m128i
__attribute__ ((__vector_size__ (16), __may_alias__
));
19 vector_rotate32 (void)
23 for (i
= 0; i
< SIZE
; i
++)
24 a
.u32
[i
] = (b
.u32
[i
] >> ((sizeof (int) * 8) - c
.u32
[i
])) | (b
.u32
[i
] << c
.u32
[i
]);
33 /* { dg-final { scan-assembler "vprotd" } } */