fp-cmp-1.c: Renamed nan to dnan.
2001-04-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> * gcc.c-torture/execute/ieee/fp-cmp-1.c: Renamed nan to dnan. * gcc.c-torture/execute/ieee/fp-cmp-3.c: Likewise. * gcc.c-torture/execute/ieee/fp-cmp-2.c: Renamed nan to fnan. From-SVN: r41022
This commit is contained in:
parent
56f2b5bd76
commit
4d8a20014d
@ -1,3 +1,9 @@
|
||||
2001-04-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
|
||||
|
||||
* gcc.c-torture/execute/ieee/fp-cmp-1.c: Renamed nan to dnan.
|
||||
* gcc.c-torture/execute/ieee/fp-cmp-3.c: Likewise.
|
||||
* gcc.c-torture/execute/ieee/fp-cmp-2.c: Renamed nan to fnan.
|
||||
|
||||
2001-04-02 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* g77.f-torture/compile/20010321-1.f: New test.
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include <signal.h>
|
||||
|
||||
double nan = 1.0/0.0 - 1.0/0.0;
|
||||
double dnan = 1.0/0.0 - 1.0/0.0;
|
||||
double x = 1.0;
|
||||
|
||||
void leave ()
|
||||
@ -19,22 +19,22 @@ main ()
|
||||
signal (SIGFPE, leave);
|
||||
#endif
|
||||
/* NaN is an IEEE unordered operand. All these test should be false. */
|
||||
if (nan == nan)
|
||||
if (dnan == dnan)
|
||||
abort ();
|
||||
if (nan != x)
|
||||
if (dnan != x)
|
||||
x = 1.0;
|
||||
else
|
||||
abort ();
|
||||
|
||||
if (nan < x)
|
||||
if (dnan < x)
|
||||
abort ();
|
||||
if (nan > x)
|
||||
if (dnan > x)
|
||||
abort ();
|
||||
if (nan <= x)
|
||||
if (dnan <= x)
|
||||
abort ();
|
||||
if (nan >= x)
|
||||
if (dnan >= x)
|
||||
abort ();
|
||||
if (nan == x)
|
||||
if (dnan == x)
|
||||
abort ();
|
||||
#endif
|
||||
exit (0);
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include <signal.h>
|
||||
|
||||
float nan = 1.0f/0.0f - 1.0f/0.0f;
|
||||
float fnan = 1.0f/0.0f - 1.0f/0.0f;
|
||||
float x = 1.0f;
|
||||
|
||||
void leave ()
|
||||
@ -19,22 +19,22 @@ main ()
|
||||
signal (SIGFPE, leave);
|
||||
#endif
|
||||
/* NaN is an IEEE unordered operand. All these test should be false. */
|
||||
if (nan == nan)
|
||||
if (fnan == fnan)
|
||||
abort ();
|
||||
if (nan != x)
|
||||
if (fnan != x)
|
||||
x = 1.0;
|
||||
else
|
||||
abort ();
|
||||
|
||||
if (nan < x)
|
||||
if (fnan < x)
|
||||
abort ();
|
||||
if (nan > x)
|
||||
if (fnan > x)
|
||||
abort ();
|
||||
if (nan <= x)
|
||||
if (fnan <= x)
|
||||
abort ();
|
||||
if (nan >= x)
|
||||
if (fnan >= x)
|
||||
abort ();
|
||||
if (nan == x)
|
||||
if (fnan == x)
|
||||
abort ();
|
||||
#endif
|
||||
exit (0);
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include <signal.h>
|
||||
|
||||
long double nan = 1.0l/0.0l - 1.0l/0.0l;
|
||||
long double dnan = 1.0l/0.0l - 1.0l/0.0l;
|
||||
long double x = 1.0l;
|
||||
|
||||
void leave ()
|
||||
@ -19,22 +19,22 @@ main ()
|
||||
signal (SIGFPE, leave);
|
||||
#endif
|
||||
/* NaN is an IEEE unordered operand. All these test should be false. */
|
||||
if (nan == nan)
|
||||
if (dnan == dnan)
|
||||
abort ();
|
||||
if (nan != x)
|
||||
if (dnan != x)
|
||||
x = 1.0;
|
||||
else
|
||||
abort ();
|
||||
|
||||
if (nan < x)
|
||||
if (dnan < x)
|
||||
abort ();
|
||||
if (nan > x)
|
||||
if (dnan > x)
|
||||
abort ();
|
||||
if (nan <= x)
|
||||
if (dnan <= x)
|
||||
abort ();
|
||||
if (nan >= x)
|
||||
if (dnan >= x)
|
||||
abort ();
|
||||
if (nan == x)
|
||||
if (dnan == x)
|
||||
abort ();
|
||||
#endif
|
||||
exit (0);
|
||||
|
Loading…
Reference in New Issue
Block a user