This is the mail archive of the gcc-bugs@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: target/8087: sparc-sun-solaris2.7 C testsuite failures in execute/20020720-1.c w/-m64 or on sparcv9/sparc64


On Mon, Sep 30, 2002 at 10:52:04PM -0000, davem@gcc.gnu.org wrote:
>     The problem is, it's REALLY REALLY expensive to set the
>     float condition codes to a constant value (two FPU synchronizing
>     memory operations).

Not really.  Zero is easy:

	fzeros	%f0
	fnot1s	%f1, %f0
	fcmps	%fcc0, %f1, %f0

(note that ~0 is a NaN).  One is sort of meaningless all on its own.
You have to know what sort of comparison is going to be used with it.o
Hum, actually that's true with NaN and UNORDERED as well.  I.e. this
is all bogus for COMPARE targets.



r~


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