Where have all the conditional moves gone?

James E Wilson wilson@specifix.com
Mon Aug 22 19:25:00 GMT 2005


Piotr Wyderski wrote:
> I have disassembled my program produced by g++ 4.0.0
> and I see a very strange behaviour -- the compiler doesn't
> generate cmov-s (-O3 -march=pentium3). G++ 3.4 generates
> them. So, how can I reactivate cmov-s in the newest version
> of the compiler? fif-conversion doesn't work...

I tried a very simple testcase.  When I compile it with -O
-march=pentium3 -m32 I get a cmov instruction.  This is using the
gcc-4.0.x branch, on an x86_64 host, with the attached testcase.  I am
not convinced that anything is broken here.  If there really is a
problem here, you will need to give us a better bug report.
-- 
Jim Wilson, GNU Tools Support, http://www.specifix.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tmp.cc
Type: text/x-c++
Size: 72 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20050822/0bff244f/attachment.bin>


More information about the Gcc mailing list