(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
vect/
vect-99.c
       1  /* { dg-require-effective-target vect_int } */
       2  
       3  #include "tree-vect.h"
       4  
       5  int ca[100];
       6  
       7  __attribute__ ((noinline))
       8  void foo (int n)
       9  {
      10    unsigned int i;
      11  
      12    for (i = 0; i < n; i++)
      13      ca[i] = 2;
      14  }
      15  
      16  int main (void)
      17  {
      18    int i;
      19  
      20    check_vect ();
      21  
      22    foo(100);
      23  
      24    for (i = 0; i < 100; ++i) {
      25      if (ca[i] != 2)
      26        abort();
      27    }
      28    return 0;
      29  }
      30  
      31  /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */