1 /* { dg-require-effective-target vect_int } */
2 /* { dg-additional-options "--param vect-max-peeling-for-alignment=0 -fdump-tree-optimized-details-blocks" } */
9 __attribute__ ((noinline
))
10 int main1 (int n
, int *a
)
15 for (i
= 0; i
< n
; i
++)
17 for (j
= 0; j
< n
; j
++)
27 for (j
= 0; j
< n
; j
++)
28 if (a
[j
] != i
+ n
- 1)
32 for (j
= 0; j
< n
; j
++)
41 int a
[N
] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__
)));
54 /* Fails for targets that don't vectorize PLUS (e.g alpha). */
55 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
56 /* { dg-final { scan-tree-dump-times "Alignment of access forced using versioning" 1 "vect" {target { {! vector_alignment_reachable} && {! vect_hw_misalign} } } } } */
57 /* { dg-final { scan-tree-dump-not "Invalid sum" "optimized" } } */