1 /* { dg-require-effective-target vect_float } */
13 /* Should be vectorized. Fixed misaligment in the inner-loop. */
14 __attribute__ ((noinline
))
19 for (i
= 0; i
< N
; i
++) {
23 for (k
= 0; k
< 4; k
++) {
24 for (i
= 0; i
< N
; i
++) {
26 for (j
= k
; j
< M
; j
+=4) {
27 diff
+= in
[j
+i
]*coeff
[j
];
35 /* Vectorized. Changing misalignment in the inner-loop. */
36 __attribute__ ((noinline
))
41 for (i
= 0; i
< N
; i
++) {
43 for (j
= 0; j
< M
; j
++) {
44 diff
+= in
[j
+i
]*coeff
[j
];
57 for (i
= 0; i
< M
; i
++)
59 for (i
= 0; i
< N
+M
; i
++)
65 for (i
= 0; i
< N
; i
++) {
66 if (out
[i
] != fir_out
[i
])
73 /* { dg-final { scan-tree-dump-times "OUTER LOOP VECTORIZED" 2 "vect" { xfail vect_no_align } } } */
74 /* { dg-final { cleanup-tree-dump "vect" } } */