(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
tree-ssa/
recip-7.c
       1  /* { dg-options "-O1 -funsafe-math-optimizations -fno-trapping-math -fdump-tree-recip" } */
       2  /* { dg-do compile } */
       3  
       4  /* Test inserting in a block that does not contain a division.  */
       5  
       6  extern double h();
       7  
       8  double m, n, o;
       9  
      10  void f(int x, double z, double w)
      11  {
      12    double b, c, d, e, f;
      13    double y = h ();
      14  
      15    if (x)
      16      b = 1 / y, c = z / y;
      17    else
      18      b = 3 / y, c = w / y;
      19  
      20    d = b / y;
      21    e = c / y;
      22    f = 1 / y;
      23  
      24    m = d;
      25    n = e;
      26    o = f;
      27  }
      28  
      29  /* { dg-final { scan-tree-dump-times " / " 1 "recip" } } */
      30