(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
tree-ssa/
mult-abs-2.c
       1  /* { dg-do compile } */
       2  /* { dg-require-effective-target c99_runtime } */
       3  /* { dg-options "-O2 -ffast-math -fdump-tree-gimple" } */
       4  
       5  float f(float x)
       6  {
       7    return x * (x > 0.f ? -1.f : 1.f);
       8  }
       9  float f1(float x)
      10  {
      11    return x * (x > 0.f ? 1.f : -1.f);
      12  }
      13  float g(float x)
      14  {
      15    return x * (x >= 0.f ? -1.f : 1.f);
      16  }
      17  float g1(float x)
      18  {
      19    return x * (x >= 0.f ? 1.f : -1.f);
      20  }
      21  float h(float x)
      22  {
      23    return x * (x < 0.f ? -1.f : 1.f);
      24  }
      25  float h1(float x)
      26  {
      27    return x * (x < 0.f ? 1.f : -1.f);
      28  }
      29  float i(float x)
      30  {
      31    return x * (x <= 0.f ? -1.f : 1.f);
      32  }
      33  float i1(float x)
      34  {
      35    return x * (x <= 0.f ? 1.f : -1.f);
      36  }
      37  /* { dg-final { scan-tree-dump-times "ABS" 8 "gimple"} } */