(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
vect/
pr48052.c
       1  /* { dg-do compile } */
       2  /* { dg-require-effective-target vect_int_mult } */
       3  
       4  int foo(int* A, int* B,  unsigned start, unsigned BS)
       5  {
       6    int s = 0;
       7    for (unsigned k = start;  k < start + BS; k++)
       8      {
       9        s += A[k] * B[k];
      10      }
      11  
      12    return s;
      13  }
      14  
      15  int bar(int* A, int* B, unsigned BS)
      16  {
      17    int s = 0;
      18    for (unsigned k = 0;  k < BS; k++)
      19      {
      20        s += A[k] * B[k];
      21      }
      22  
      23    return s;
      24  }
      25  
      26  /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 2 "vect" } } */