1 /* { dg-require-effective-target vect_int } */
8 __attribute__ ((noinline
))
9 int main1 (int n
, int *a
)
14 for (i
= 0; i
< n
; i
++)
16 for (j
= 0; j
< n
; j
++)
25 for (j
= 0; j
< n
; j
++)
26 if (a
[j
] != i
+ n
- 1)
29 for (j
= 0; j
< n
; j
++)
38 int a
[N
] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__
)));
51 /* Fails for targets that don't vectorize PLUS (e.g alpha). */
52 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
53 /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 0 "vect" } } */
54 /* { dg-final { scan-tree-dump-times "Alignment of access forced using peeling" 1 "vect" {target vector_alignment_reachable} } } */
55 /* { dg-final { scan-tree-dump-times "Alignment of access forced using versioning" 1 "vect" {target { {! vector_alignment_reachable} && {! vect_hw_misalign} } } } } */
56 /* { dg-final { cleanup-tree-dump "vect" } } */