Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / inf-compare-1.c
blob40bbac46f7ee4249324dba3c8aaf1743580cf439
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 /* { dg-additional-options "-fno-tree-dominator-opts -fno-tree-vrp" } */
8 #include <fenv.h>
10 extern void abort (void);
11 extern void exit (int);
13 volatile double x = __builtin_nan ("");
14 volatile int i;
16 int
17 main (void)
19 i = x > __builtin_inf ();
20 if (i != 0 || !fetestexcept (FE_INVALID))
21 abort ();