------- Comment #2 from ubizjak at gmail dot com 2008-10-18 16:43 -------
(In reply to comment #1)
> So the 64bit version is fine, the 32bit version is still funny.
Default 32bit target doesn't have cmov insn.
-O3 -m32 -msse produces expected asm:
foo:
bsfl 8(%esp), %eax
movl $-1, %edx
cmove %edx, %eax
movl 4(%esp), %edx
addl %edx, %eax
ret
--
ubizjak at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37823