1 /* { dg-require-effective-target vect_float } */
2 /* { dg-additional-options "--param vect-max-peeling-for-alignment=0 -fdump-tree-optimized-details-blocks" } */
10 #define N2 (VECTOR_BITS / 32 + 2)
15 __attribute__ ((noinline
)) int
20 for (i
= 0; i
< N1
; i
++)
27 for (i
= 0; i
< N1
; i
++)
34 for (i
= 1; i
<= N2
; i
++)
41 for (i
= 1; i
<= N2
; i
++)
53 float a
[N1
] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__
)));
54 float b
[N1
] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__
)));
59 for (i
= 0; i
< N1
; i
++)
62 for (i
= 1; i
<= 256; i
++) a
[i
] = b
[i
-1];
66 for (i
= 1; i
<= 256; i
++)
79 /* 2 loops vectorized in main1, 2 loops vectorized in main:
80 the first loop in main requires vectorization of conversions,
81 the second loop in main requires vectorization of misaligned load. */
83 /* main && main1 together: */
84 /* { dg-final { scan-tree-dump-times "vectorized 2 loops" 2 "vect" { target powerpc*-*-* i?86-*-* x86_64-*-* } } } */
87 /* { dg-final { scan-tree-dump-times "vectorized 2 loops" 1 "vect" { target !powerpc*-*-* !i?86-*-* !x86_64-*-* } } } */
88 /* { dg-final { scan-tree-dump-times "vectorized 2 loops" 1 "vect" { target { vect_no_align && { ! vect_hw_misalign } } } } } */
91 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { vect_no_align && { ! vect_hw_misalign } } } } } */
93 /* { dg-final { scan-tree-dump-not "Invalid sum" "optimized" } } */