------- Comment #8 from uros at kss-loka dot si  2006-10-05 07:08 -------

> 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.

This is PR 19398. I have a patch that adds a bunch of peephole2 patterns to
address this particular issue. The patch is already approved and waits for
stage1.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29337

Reply via email to