i386: Adjust rtx cost for imulq and imulw [PR115749]
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr84201.c
blob1cc6d1ff13c7264251c33ec36d8514915bf22fa1
1 /* { dg-do compile } */
2 /* { dg-additional-options "-Ofast --param vect-induction-float=0" } */
4 void foo (float *a, float f, float s, int n)
6 for (int i = 0; i < n; ++i)
8 a[i] = f;
9 f += s;
13 void bar (double *a, double f, double s, int n)
15 for (int i = 0; i < n; ++i)
17 a[i] = f;
18 f += s;
22 /* { dg-final { scan-tree-dump-times "vectorized 0 loops" 2 "vect" } } */