This is the mail archive of the gcc-help@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: 4.3.0 strange problem with computation and optimization


"Dario Saccavino" <kathoum@gmail.com> writes:

> Anybody knows if using -msse2 -mfpmath=sse can help obtain a better
> conformant assembly? The sse regs should have the correct precision
> (32 for float, 64 for double), so maybe part of the undesired
> behaviour can be avoided.

Yes, using those options makes your floating point operations
generally immune to gcc's register allocation decisions.

That is the default in 64-bit mode.

Ian


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