rfa (x86): 387<=>sse moves

Paolo Bonzini paolo.bonzini@lu.unisi.ch
Tue Jul 26 07:51:00 GMT 2005


Dale Johannesen wrote:
> With -march=pentium4 -mfpmath=sse -O2, we get an extra move for code like
> 
>     double d = atof(foo);
>     int i = d;
> 
>         call    atof
>         fstpl   -8(%ebp)
>         movsd   -8(%ebp), %xmm0
>         cvttsd2si       %xmm0, %eax
> 
> (This is Linux, Darwin is similar.)  I think the difficulty is that for

Try the attached patch.  It gave a 3% speedup on -mfpmath=sse for 
tramp3d.  Richard Henderson asked for SPEC testing, then it may go in.

Paolo
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pr19653.patch
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20050726/ceaeeb01/attachment.ksh>


More information about the Gcc mailing list