This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: __builtin_isless, __builtin_islessequal on mips targets
- From: Eric Christopher <echristo at redhat dot com>
- To: Nadezhda Ivanоvna Vyukova <niva at niisi dot msk dot ru>
- Cc: gcc at gnu dot org
- Date: Fri, 06 May 2005 00:26:05 -0700
- Subject: Re: __builtin_isless, __builtin_islessequal on mips targets
- References: <1115294302.6740.7.camel@ab2>
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