(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
tree-ssa/
pr89430-6.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O2 -ftree-cselim -fdump-tree-cselim-details" } */
       3  
       4  int test(int b, int k) {
       5      typedef struct {
       6  	    int x;
       7      } SS;
       8      struct {
       9          SS data[2];
      10      } a;
      11  
      12      if (b < a.data[k].x) {
      13          a.data[k].x = b;
      14      }
      15  
      16      return a.data[0].x + a.data[1].x;
      17  }
      18  
      19  /* { dg-final { scan-tree-dump "Conditional store replacement" "cselim" } } */