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/19250] minss/maxss SSE insn not generated for -mfpmath=sse


------- Additional Comments From uros at kss-loka dot si  2005-01-07 11:15 -------
The same trick as in http://gcc.gnu.org/ml/gcc-patches/2005-01/msg00394.html
with sqrtf applied to return value gets the code as expected.
minf:
        subl    $4, %esp
        movss   8(%esp), %xmm0
        movss   12(%esp), %xmm1
        minss   %xmm1, %xmm0
        sqrtss  %xmm0, %xmm0
        movss   %xmm0, (%esp)
        flds    (%esp)
        addl    $4, %esp
        ret


-- 


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


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