middle-end: copy STMT_VINFO_STRIDED_P when DR is replaced [PR116956]
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / inf-compare-2.c
blobf6a1c00b6239164bb2ad23858ae2c5a81fe1784c
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 ();