not-a-number's
Andreas Schwab
schwab@suse.de
Thu Jan 17 13:43:00 GMT 2013
Gabriel Paubert <paubert@iram.es> writes:
> Hmm, are you sure that this part is properly implemented in gcc, using
> unordered compare versus ordered compare instructions depending on
> the operator you use?
For quiet compare operations you need to use isgreater etc.
> At least on PPC, floating point compares always use the unordered
> instruction (fcmpu) and never the ordered one (fcmpo), so exceptions
> flags are never set.
The C standard does not place any requirement on < wrt. exceptions or
lack thereof.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
More information about the Gcc
mailing list