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: wish: optimize (x > 0.) floating point comparison.


In a message dated 9/23/98 2:37:10 PM Pacific Daylight Time,
yotam@avanticorp.com writes:

> I wonder if there are primitive FPU compare instructions with (+/- 0.0)
>  with a single operand. 
There have been architectures which kept the positive and zero condition flags
automatically set in accordance with the last changed floating point register,
but this doesn't seem to be too useful now that most CPU's have multiple
register pipelined operations and out-of-order execution.  Architectures which
keep a "register" which always shows as containing zero provide the ability to
compare with zero without having to find a zero variable datum.


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