This is the mail archive of the gcc-bugs@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: [Bug target/29337] -mfpmath=387 doesn't use fistp for double-to-integer conversion


On Thu, 2006-10-05 at 05:00 +0000, seongbae dot park at gmail dot com
wrote:
> With 4.1.0 i686-unknown-linux-gnu target:
> 
> # gcc -O2 m.c -S 

try -O2 -msse2, you get:
_Z8todoubledd:
        subl    $12, %esp
        fldl    24(%esp)
        faddl   16(%esp)
        fstpl   (%esp)
        movsd   (%esp), %xmm0
        addl    $12, %esp
        cvttsd2si       %xmm0, %eax
        ret


Though I think the movsd should not be there but that is a different
issue.

-- Pinski


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