aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/pr57233.c
blob: 34182fa7dc4623bced36493e1d6f2118e0892e49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* PR tree-optimization/57233 */
/* { dg-do compile { target avx } } */
/* { dg-options "-O2 -mavx -mno-xop" } */

typedef unsigned V4 __attribute__((vector_size(4 * sizeof (int))));
V4 a;

__attribute__((noinline)) void
foo (void)
{
  a = (a << 2) | (a >> 30);
}

/* { dg-final { scan-assembler "vpsrld\[^\n\r]*30" } } */
/* { dg-final { scan-assembler "vpslld\[^\n\r]*2" } } */