2 /* { dg-require-effective-target vect_float } */
6 void __attribute__((noinline
,noclone
))
7 downscale_2 (const float* src
, int src_n
, float* dst
)
11 for (i
= 0; i
< src_n
; i
+= 2) {
13 const float* b
= src
+ 4;
15 dst
[0] = (a
[0] + b
[0]) / 2;
16 dst
[1] = (a
[1] + b
[1]) / 2;
17 dst
[2] = (a
[2] + b
[2]) / 2;
18 dst
[3] = (a
[3] + b
[3]) / 2;
27 const float in
[4 * 4] = {
38 downscale_2 (in
, 4, out
);
40 if (out
[0] != 3 || out
[1] != 4 || out
[2] != 5 || out
[3] != 6
41 || out
[4] != 3 || out
[5] != 4 || out
[6] != 5 || out
[7] != 6)
47 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */