(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
vect/
pr84201.c
       1  /* { dg-do compile } */
       2  /* { dg-additional-options "-Ofast --param vect-induction-float=0" } */
       3  
       4  void foo (float *a, float f, float s, int n)
       5  {
       6    for (int i = 0; i < n; ++i)
       7      {
       8        a[i] = f;
       9        f += s;
      10      }
      11  }
      12  
      13  void bar (double *a, double f, double s, int n)
      14  {
      15    for (int i = 0; i < n; ++i)
      16      {
      17        a[i] = f;
      18        f += s;
      19      }
      20  }
      21  
      22  /* { dg-final { scan-tree-dump-times "vectorized 0 loops" 2 "vect" } } */