(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr41488.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O2 -fdump-tree-ivcanon-scev" } */
       3  
       4  struct struct_t
       5  {
       6    int* data;
       7  };
       8  
       9  void foo (struct struct_t* sp, int start, int end)
      10  {
      11    int i;
      12  
      13    for (i = 0; i+start < end; i++)
      14      sp->data[i+start] = 0;
      15  }
      16  
      17  /* { dg-final { scan-tree-dump-times "Simplify PEELED_CHREC into POLYNOMIAL_CHREC" 1 "ivcanon" } } */