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]

[Bug target/18668] use prescott's fisttp


------- Additional Comments From steven at gcc dot gnu dot org  2005-01-23 19:03 -------
On AMD64 I get the following: 
 
oof: 
        cvttsd2siq      %xmm0, %rax 
        ret 
 
But -O2 -march=prescott 
oof: 
        subl    $20, %esp 
        fnstcw  14(%esp) 
        movzwl  14(%esp), %eax 
        movb    $12, %ah 
        movw    %ax, 12(%esp) 
        fldl    24(%esp) 
        fldcw   12(%esp) 
        fistpll (%esp) 
        fldcw   14(%esp) 
        movl    (%esp), %eax 
        addl    $20, %esp 
        ret 
 

-- 


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


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