nightmorph wrote:Don't set the floating point math instructions; let the compiler decide what's appropriate. Forcing it to a specific one is begging for trouble. Search around the forums; iirc there's a good post explaining this by dirtyepic. Leave out -mfpmath.
I don't suppose you have any recommendations of better search terms than "dirtyepic mfpmath"?
I found a few posts saying not to use it because it was slower than x87, but those posts were 2+ years old (And I'm sure GCC must have been improved by then - Even with the context-switching overhead, SSE/3DNow! should be measurably faster than raw x87, if only because the x87 is a badly thought out piece of crap...!)
Also, since AMD64's *can't* use the x87 copper, and have to use SSE, I figured it should be okay since most of the (admittedly small) speed boost 64-bit mode gets seems to be from its FPU and extra registers...
The general consensus from the 2005-2006 postings seems to be let the compiler decide, which in my case means just let it compile it to x87 on 32-bit x86...
Hmm... Does anyone know of a good benchtest program for FPU math that I could try compiling with the different flags? I'm curious now...
