This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: iso c9x unordered fp cmp builtins


dje@watson.ibm.com (David Edelsohn) writes:

> 	The "rs6000" port always has used fcmpu and never has signal QNaN.
> This also is the behavior of IBM's XLC.  Does iso9x now mandate that the
> regular comparison operators signal QNaN?

IEEE 754 and 854 demand this behaviour since the ISO C operators

	==	!=	<	<=	>	>=

are mapped to the IEEE 754 operators (table 4)

	=	?<>	<	<=	>	>=


ISO C 9x defines new functions

	isunordered	isless	islessequal	isgreater	isgreaterequal	islessgreater

which are mapped to the IEEE 754 operators

	?		?<	?<=		?>		?>=		NOT(?)


-- Uli
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]