__builtin_isless, __builtin_islessequal on mips targets
Eric Christopher
echristo@redhat.com
Fri May 6 07:37:00 GMT 2005
On Thu, 2005-05-05 at 15:58 +0400, Nadezhda Ivanоvna Vyukova wrote:
> The __builtin_isless, __builtin_islessequal functions are provided as
> implementations of standard C99 functions 'isless', 'isgreater'. Please,
> explain why gcc for mips implements them via instructions
>
> c.lt.FMT and
> c.le.FMT
>
> instead of
>
> c.olt.FMT and
> c.ole.FMT.
No reason in particular. The only difference is that the first will
signal an exception on QNaN and the second won't, thereby simplifying
the programming model. Do you have a good reason for doing it the other
way?
-eric
More information about the Gcc
mailing list