(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
vect/
bb-slp-pr98854.c
       1  /* { dg-do compile } */
       2  
       3  double a[1024];
       4  
       5  int bar();
       6  void foo (int n)
       7  {
       8    double x = 0, y = 0;
       9    int i = 1023;
      10    do
      11      {
      12        x += a[i] + a[i+1];
      13        y += a[i] / a[i+1];
      14        if (bar ())
      15          break;
      16      }
      17    while (--i);
      18    /* We want to avoid vectorizing the LC PHI and insert vector CTORs
      19       inside of the loop where it is only needed here.  */
      20    a[0] = x;
      21    a[1] = y;
      22  }
      23  
      24  /* { dg-final { scan-tree-dump-not "vectorizing SLP node starting from: ._\[0-9\]+ = PHI" "slp1" } } */