1 /* { dg-require-effective-target vect_float } */
6 void __attribute__((noinline
))
7 sumit (float * __restrict dest
,
8 float * __restrict src
, float * __restrict src2
,
12 for (i
= 0; i
< n
; i
++)
13 dest
[i
*stride
] = src
[i
] + src2
[i
];
19 float src
[] = {1, 2, 3, 4, 5, 6, 7, 8};
22 for (stride
= 0; stride
< 8; stride
++)
24 sumit (dest
, src
, src
, stride
, 8);
25 if (!stride
&& dest
[0] != 16)
28 for (i
= 0; i
< 8; i
++)
29 if (2*src
[i
] != dest
[i
*stride
])
35 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */