(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
aarch64/
ifcvt_multiple_sets_subreg_1.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O2 -fdump-rtl-ce1" } */
       3  
       4  /* Check that the inner if is transformed into CSELs.  */
       5  
       6  int
       7  foo (int *x, int *z, int a)
       8  {
       9    int b = 0;
      10    int c = 0;
      11    int d = 0;
      12    int i;
      13  
      14    for (i = 0; i < a; i++)
      15      {
      16        if (x[i] < c)
      17  	{
      18  	  b = z[i];
      19  	  if (c < b)
      20  	    {
      21  	      c = b;
      22  	      d = i;
      23  	    }
      24  	}
      25      }
      26  
      27    return c + d;
      28  }
      29  
      30  /* { dg-final { scan-rtl-dump "if-conversion succeeded through noce_convert_multiple_sets" "ce1" } } */