(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
torture/
inf-compare-4.c
       1  /* { dg-do run { xfail { powerpc*-*-* } } } */
       2  /* remove the xfail for powerpc when pr58684 is fixed */
       3  /* { dg-add-options ieee } */
       4  /* { dg-require-effective-target fenv_exceptions_double } */
       5  /* { dg-skip-if "fenv" { powerpc-ibm-aix* } } */
       6  
       7  #include <fenv.h>
       8  
       9  extern void abort (void);
      10  extern void exit (int);
      11  
      12  volatile double x = __builtin_nan ("");
      13  volatile int i;
      14  
      15  int
      16  main (void)
      17  {
      18    i = x >= -__builtin_inf ();
      19    if (i != 0 || !fetestexcept (FE_INVALID))
      20      abort ();
      21  }