GCC viciously beaten by ICC in trig test!
Stelios Xanthakis
sxanth@ceid.upatras.gr
Mon Mar 15 12:05:00 GMT 2004
On Sun, 14 Mar 2004, Dan Nicolaescu wrote:
> Roger Sayle <roger@eyesopen.com> writes:
> > fsin
> > fmul %st(0), %st
>
> Intel 8.0 (that was used in the original test) generates something
> very different:
>
> mulsd %xmm1, %xmm1 #10.25
> mulsd %xmm0, %xmm0 #10.15
> addsd %xmm1, %xmm0 #10.25
> movsd %xmm0, (%esp) #10.25
> fldl (%esp) #10.25
>
Does --fpmath=sse fix this?
Can the processor in question do sse for doubles?
In my experience, "--fpmath=sse --fsingle-precision-constants"
generates much faster code for a raytracer I have here.
More information about the Gcc
mailing list