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
+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.
#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 ()
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);
#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 ()
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);
#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 ()
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);