cfgexpand: Expand comment on when non-var clobbers can show up
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / slp-reduc-11.c
blob260d65cd4972733202231099ef4850f448495002
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_double } */
4 double dotprod(const double *a, const double *b, unsigned long long n)
6 double d1 = 0.0;
7 double d2 = 0.0;
9 for (unsigned long long i = 0; i < n; i += 2) {
10 d1 += a[i] * b[i];
11 d2 += a[i + 1] * b[i + 1];
14 return (d1 + d2);
17 /* We should use a SLP reduction even without -ffast-math by using a
18 VF of one. */
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" } } */