1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_int } */
3 /* { dg-require-effective-target vect_float } */
32 /* Not vectorizable yet (cross-iteration cycle). */
34 for (i
= 0; i
< N
; i
++) {
35 diff
+= (cb
[i
] - cc
[i
]);
40 /* Not vectorizable yet (outer-loop: not attempted.
41 inner-loop: cross iteration cycle; multi-dimensional arrays). */
43 for (i
= 0; i
< N
; i
++) {
44 for (i
= 0; i
< N
; i
++) {
45 diff
+= (image
[i
][j
] - block
[i
][j
]);
52 for (i
= 0; i
< N
; i
++){
59 for (i
= 0; i
< N
; i
++){
60 a
[i
] = b
[i
] + c
[i
] + d
[i
];
65 /* Not vectorizable yet (access pattern). */
66 for (i
= 0; i
< N
/2; i
++){
67 a
[i
] = b
[2*i
+1] * c
[2*i
+1] - b
[2*i
] * c
[2*i
];
68 d
[i
] = b
[2*i
] * c
[2*i
+1] + b
[2*i
+1] * c
[2*i
];
74 for (i
= 0; i
< N
; i
++){
77 ia
[i
] = ib
[i
] + ic
[i
];
84 /* Not vectorizable yet (two types with different nunits in vector). */
85 for (i
= 0; i
< N
; i
++){
86 ia
[i
] = ib
[i
] + ic
[i
];
87 sa
[i
] = sb
[i
] + sc
[i
];
93 /* Not vetorizable yet (too conservative dependence test). */
94 for (i
= 0; i
< N
; i
++){
101 /* { dg-final { scan-tree-dump-times "vectorized 3 loops" 1 "vect" } } */
102 /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 0 "vect" } } */
103 /* { dg-final { cleanup-tree-dump "vect" } } */