1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_int } */
3 /* { dg-require-effective-target vect_shift } */
7 /* All the loops are vectorizable on platforms with vector shift argument. */
12 static unsigned int bm[N];
13 static unsigned int cm[N];
16 /* Vectorizable on platforms with scalar shift argument. */
17 for (j = 0; j < N/2; j++)
23 /* Not vectorizable on platforms with scalar shift argument. */
24 for (j = 0; j < N/2; j++)
34 static unsigned int bm[N];
35 static unsigned int cm[N];
38 /* Vectorizable on platforms with scalar shift argument. */
39 for (j = 0; j < N/2; j++)
45 /* Not vectorizable on platforms with scalar shift argument. */
46 for (j = 0; j < N/2; j++)
56 static unsigned int bm[N];
60 /* Not vectorizable on platforms with scalar shift argument. */
61 for (j = 0; j < N/2; j++)
67 /* Not vectorizable on platforms with scalar shift argument. */
68 for (j = 0; j < N/2; j++)
71 bm[2*j+1] <<= am[2*j+1];
76 /* { dg-final { cleanup-tree-dump "vect" } } */