PR target/80969 - Fix ICE with -mabi=ms -mavx512f, reduce wasted space when realignin...
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr57233.c
blob34182fa7dc4623bced36493e1d6f2118e0892e49
1 /* PR tree-optimization/57233 */
2 /* { dg-do compile { target avx } } */
3 /* { dg-options "-O2 -mavx -mno-xop" } */
5 typedef unsigned V4 __attribute__((vector_size(4 * sizeof (int))));
6 V4 a;
8 __attribute__((noinline)) void
9 foo (void)
11 a = (a << 2) | (a >> 30);
14 /* { dg-final { scan-assembler "vpsrld\[^\n\r]*30" } } */
15 /* { dg-final { scan-assembler "vpslld\[^\n\r]*2" } } */