This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: infinity != infinity
- From: Ulrich Weigand <weigand at i1 dot informatik dot uni-erlangen dot de>
- To: schwab at suse dot de, joern dot rennecke at superh dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Sat, 10 Jul 2004 02:16:23 +0200 (CEST)
- Subject: Re: infinity != infinity
Andreas Schwab wrote:
>Joern Rennecke <joern.rennecke@superh.com> writes:
>> Thus, two infinities with the same sign should compare unordered.
>
>The m68881 disagrees, and it is supposed to be IEEE compliant.
zSeries is supposed to be fully IEEE compliant as well, and its
Principles of Operation state that for the COMPARE instruction:
"Two infinity operands of like sign compare equal.", see
http://publibfp.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/dz9zr002/19.4.2?DT=20030424140649
Bye,
Ulrich
--
Dr. Ulrich Weigand
weigand@informatik.uni-erlangen.de