1 /* { dg-require-effective-target vect_int } */
8 int main1 (int n
, int *a
)
13 for (i
= 0; i
< n
; i
++)
15 for (j
= 0; j
< n
; j
++)
24 for (j
= 0; j
< n
; j
++)
25 if (a
[j
] != i
+ n
- 1)
28 for (j
= 0; j
< n
; j
++)
37 int a
[N
] __attribute__ ((__aligned__(16)));
50 /* Fails for targets that don't vectorize PLUS (e.g alpha). */
51 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
52 /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 0 "vect" } } */
53 /* { dg-final { scan-tree-dump-times "Alignment of access forced using peeling" 1 "vect" } } */
54 /* { dg-final { cleanup-tree-dump "vect" } } */