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]
Other format: [Raw text]

Re: rfa (x86): 387<=>sse moves



On Jul 31, 2005, at 9:51 AM, Uros Bizjak wrote:


Hello!

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

This problem is similar to the problem, described in PR target/19398. There is another testcase and a small analysis in the PR that might help with this problem.

Thanks, that does seem relevant. The patches so far don't fix this case;
I've commented the PR explaining why.



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