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 } */
5 
6 #include <fenv.h>
7 
8 extern void abort (void);
9 extern void exit (int);
10 
11 volatile double x = __builtin_nan ("");
12 volatile int i;
13 
14 int
main(void)15 main (void)
16 {
17   i = x >= -__builtin_inf ();
18   if (i != 0 || !fetestexcept (FE_INVALID))
19     abort ();
20 }
21