(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr78445.c
       1  /* PR tree-optimization/78445 */
       2  /* { dg-do compile } */
       3  /* { dg-options "-O2 -ftree-loop-if-convert -ftree-vectorize" } */
       4  /* { dg-additional-options "-mavx2" { target { i?86-*-* x86_64-*-* } } } */
       5  
       6  int a;
       7  
       8  void
       9  foo (int x, int *y)
      10  {
      11    while (a != 0)
      12      if (x != 0)
      13        {
      14  	*y = a;
      15  	x = *y;
      16        }
      17      else
      18        x = a;
      19  }