* g++.dg/other/i386-2.C (dg-options): Add -mavx512pf.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / rotate-4.c
blob7faa052cbff5b23fb758bb96d723337d1a831694
1 /* { dg-do compile } */
2 /* { dg-require-effective-target avx } */
3 /* { dg-options "-O3 -mavx -fdump-tree-vect-details" } */
4 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
5 /* { dg-final { cleanup-tree-dump "vect" } } */
7 unsigned int a[1024] __attribute__((aligned (32)));
9 __attribute__((noinline, noclone)) void
10 foo (int j)
12 int i;
13 for (i = 0; i < 1024; i++)
14 a[i] = (a[i] << j) | (a[i] >> ((-j) & 31));