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