This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/19250] minss/maxss SSE insn not generated for -mfpmath=sse
- From: "uros at kss-loka dot si" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Jan 2005 11:15:29 -0000
- Subject: [Bug target/19250] minss/maxss SSE insn not generated for -mfpmath=sse
- References: <20050104080945.19250.uros@kss-loka.si>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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