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: negation of float on H8300


At 9:19 AM +0200 8/8/02, Andreas Schwab wrote:
Alan Lehotsky <apl@alum.mit.edu> writes:

|> At 12:48 PM +0530 8/7/02, Sanjiv Kumar Gupta, Noida wrote:
|> >Hi all,
|> >
|> >I see a libcall ___negsf2 is being used by gcc for negation of floats on
|> >H8300. Can't we just flip the first bit using bit insns provided in H8300?
|>
|> That wouldn't handle NaNs correctly (assuming the H8300 is IEEE FP
|> compliant...)

But a negative NaN is still a NaN, isn't it?

Andreas.
Not if it's a signalling NaN. If the chip only supports QNaNs, then you might be able to get away with it.

--
Carbon Design Systems, Inc.
apl@carbondesignsystems.com
(978)808-6836 Cell


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