1 /* { dg-require-effective-target vect_int } */
12 void __attribute__((noinline
,noclone
))
13 foo (char * __restrict__ dst
, char * __restrict__ src
, int h
, int stride
)
17 for (i
= 0; i
< h
; i
++)
19 dst
[0] += A
*src
[0] + src
[stride
];
20 dst
[1] += A
*src
[1] + src
[1+stride
];
21 dst
[2] += A
*src
[2] + src
[2+stride
];
22 dst
[3] += A
*src
[3] + src
[3+stride
];
23 dst
[4] += A
*src
[4] + src
[4+stride
];
24 dst
[5] += A
*src
[5] + src
[5+stride
];
25 dst
[6] += A
*src
[6] + src
[6+stride
];
26 dst
[7] += A
*src
[7] + src
[7+stride
];
29 asm volatile ("" ::: "memory");
40 for (i
= 0; i
< N
; i
++)
48 for (i
= 0; i
< N
/2; i
++)
50 if (dst
[i
] != A
* src
[i
] + src
[i
+8])
57 /* { dg-final { scan-tree-dump-times "basic block vectorized" 1 "slp1" { target { vect64 && vect_hw_misalign } } } } */