X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fgcc.c-torture%2Fexecute%2Fieee%2Ffp-cmp-1.c;fp=gcc%2Ftestsuite%2Fgcc.c-torture%2Fexecute%2Fieee%2Ffp-cmp-1.c;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=929639c31e2039bbc971f0537fae73d37f94ccc0;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/gcc.c-torture/execute/ieee/fp-cmp-1.c b/gcc/testsuite/gcc.c-torture/execute/ieee/fp-cmp-1.c deleted file mode 100644 index 929639c3..00000000 --- a/gcc/testsuite/gcc.c-torture/execute/ieee/fp-cmp-1.c +++ /dev/null @@ -1,41 +0,0 @@ -#include - -double dnan = 1.0/0.0 - 1.0/0.0; -double x = 1.0; - -void leave () -{ - exit (0); -} - -main () -{ -#if ! defined (__vax__) && ! defined (_CRAY) - /* Move this line earlier, for architectures (like alpha) that issue - SIGFPE on the first comparisons. */ -#ifndef SIGNAL_SUPPRESS - /* Some machines catches a SIGFPE when a NaN is compared. - Let this test succeed o such machines. */ - signal (SIGFPE, leave); -#endif - /* NaN is an IEEE unordered operand. All these test should be false. */ - if (dnan == dnan) - abort (); - if (dnan != x) - x = 1.0; - else - abort (); - - if (dnan < x) - abort (); - if (dnan > x) - abort (); - if (dnan <= x) - abort (); - if (dnan >= x) - abort (); - if (dnan == x) - abort (); -#endif - exit (0); -}