2016-12-21 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / rotate-3.c
blob0aba75ef37f92117a0d408b94a857264a88b16df
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -mavx2 -fdump-tree-vect-details" } */
3 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
5 unsigned int a[1024] __attribute__((aligned (32)));
7 __attribute__((noinline, noclone)) void
8 foo (void)
10 int i;
11 for (i = 0; i < 1024; i++)
13 int j = i & 31;
14 a[i] = (a[i] << j) | (a[i] >> ((-j) & 31));