(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr89984.c
       1  /* PR target/89984 */
       2  /* { dg-do run } */
       3  /* { dg-options "-O2" } */
       4  
       5  __attribute__((noipa)) float
       6  foo (float x, float y)
       7  {
       8    return x * __builtin_copysignf (1.0f, y) + y;
       9  }
      10  
      11  int
      12  main ()
      13  {
      14    if (foo (1.25f, 7.25f) != 1.25f + 7.25f
      15        || foo (1.75f, -3.25f) != -1.75f + -3.25f
      16        || foo (-2.25f, 7.5f) != -2.25f + 7.5f
      17        || foo (-3.0f, -4.0f) != 3.0f + -4.0f)
      18      __builtin_abort ();
      19    return 0;
      20  }