------- Comment #6 from gmorin1 at bloomberg dot net 2010-02-17 15:40 ------- Are you compiling with g++ and -O2? On the only 4.4 version I have access to right now (gcc version 4.4.0 20090514 (Red Hat 4.4.0-6), I get: $ g++44 -O2 -S test_expect.c $ cat test_expect.s (snip) .globl _Z11test_expectPcS_S_S_ .type _Z11test_expectPcS_S_S_, @function _Z11test_expectPcS_S_S_: .LFB0: cmpq %rcx, %rdx je .L5 .L2: jmp _Z8unlikelyv .p2align 4,,10 .p2align 3 .L5: cmpq %rsi, %rdi jne .L2 .p2align 4,,6 jmp _Z6likelyv
I get a similar output for the versions I listed in the report. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42233