(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
tree-ssa/
slsr-6.c
       1  /* Verify straight-line strength reduction for simple add candidates,
       2     pointer version.  */
       3  
       4  /* { dg-do compile } */
       5  /* { dg-options "-O3 -fdump-tree-optimized" } */
       6  
       7  void
       8  f (int s, char *c, char *x1, char *x2, char *x3)
       9  {
      10    int a1, a2, a3;
      11  
      12    a1 = 2 * s;
      13    x1 = c + a1;
      14    *x1 = 1;
      15    a2 = 4 * s;
      16    x2 = c + a2;
      17    *x2 = 2;
      18    a3 = 6 * s;
      19    x3 = c + a3;
      20    *x3 = 3;
      21  }
      22  
      23  /* There will be four ' * ' instances for the parms, one in the code.  */
      24  /* { dg-final { scan-tree-dump-times " \\* " 5 "optimized" } } */