* g++.dg/other/i386-2.C (dg-options): Add -mavx512pf.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / rotate-5.c
blob7d5888db2c4b75163693106a63a48acd511f1617
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 (void)
12 int i, j = 3;
13 for (i = 0; i < 1024; i++)
14 a[i] = (a[i] << j) | (a[i] >> ((-j) & 31));