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: Results for egcs-2.91.52 19980727 (gcc2 ss-980609 experiment


>>>>> Carlo Wood writes:

Carlo> I don't think it would be a waste of time though, either it IS a bug
Carlo> that this program fails or the program should be adjusted so it
Carlo> tests the correct thing.  Ruling out the PowerPC architecture seems
Carlo> unlogical to me: A user could expect (rely on ;) the accuracy one
Carlo> would expect with sizeof(float) == 4.  Its a bit "fuzzy" to use
Carlo> double internally on one platform and not on others, without
Carlo> a clear way to detect this other then by knowing on what platform
Carlo> you're running.

	sizeof(float) == 4 with respect to memory structures.  For values
in registers, the POWER architecture provides greater precision than
required by IEEE.

	If you want correct IEEE operation from IBM POWER architecture (or
common-mode within AIX), one must use the GCC -ffloat-store option to
prevent the excess precision.  AIX XLC has a similar option.  Maybe this
option should be used for all testcases in the execute/ieee subdirectory.

	Any user who relies upon IEEE conformance without understanding
the architecture will experience problems.

	Again, this is not the *PowerPC* architecture, it is the original
POWER architecture.  PowerPC implements single-precision floating-point
and the test passes.  When running the testsuite on AIX, one does not test
the PowerPC architecture by default.

David


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