1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_double } */
4 double dotprod(const double *a
, const double *b
, unsigned long long n
)
9 for (unsigned long long i
= 0; i
< n
; i
+= 2) {
11 d2
+= a
[i
+ 1] * b
[i
+ 1];
17 /* We should use a SLP reduction even without -ffast-math by using a
19 /* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" { xfail vect_variable_length } } } */
20 /* { dg-final { scan-tree-dump "vectorized 1 loops" "vect" } } */