comparison gcc/testsuite/gcc.dg/torture/inf-compare-3.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents
children 1830386684a0
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
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
15 main (void)
16 {
17 i = x <= __builtin_inf ();
18 if (i != 0 || !fetestexcept (FE_INVALID))
19 abort ();
20 }