(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
tree-ssa/
ssa-fre-84.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O -fdump-tree-fre1" } */
       3  
       4  typedef int v4si __attribute__((vector_size(16)));
       5  
       6  void foo (v4si *dst, int x)
       7  {
       8    v4si v[2];
       9    v[0][0] = 1;
      10    v[0][1] = x;
      11    v[0][2] = 2;
      12    v[0][3] = 3;
      13    v[0][1] = 0;
      14    *dst = v[0];
      15  }
      16  
      17  /* The shadowed non-constant assign to v[0][1] shouldn't prevent us from
      18     value-numbering the load to a constant.  */
      19  /* { dg-final { scan-tree-dump "\\*dst_\[0-9\]*\\\(D\\) = { 1, 0, 2, 3 };" "fre1" } } */