[Bug target/40072] Nonoptimal code - CMOVxx %eax,%edi; mov %edi,%eax; retq

ubizjak at gmail dot com gcc-bugzilla@gcc.gnu.org
Sat May 9 21:38:00 GMT 2009



------- Comment #2 from ubizjak at gmail dot com  2009-05-09 21:37 -------
(In reply to comment #1)
> There is no bug for current trunk. So bug fixed.

Not really, the move insn is moved to the beginning of the function:

0000000000000060 <int_int>:
  60:   89 f8                   mov    %edi,%eax
  62:   83 ff 08                cmp    $0x8,%edi
  65:   ba 00 00 00 00          mov    $0x0,%edx
  6a:   0f 4d c2                cmovge %edx,%eax
  6d:   c3                      retq   


-- 


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



More information about the Gcc-bugs mailing list