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]
Other format: [Raw text]

Re: __builtin_isless, __builtin_islessequal on mips targets


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


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