This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug rtl-optimization/16541] code quality issue for bit manipulations with 64bit


------- Additional Comments From dann at godzilla dot ics dot uci dot edu  2004-08-31 17:22 -------
Using -fno-if-conversion when compiling to the code in comment #2 improves the
generated assembly a bit:

        movl    8(%esp), %edx
        movl    %edx, %eax
        xorl    %edx, %edx
        shrl    $16, %eax
        movl    %edx, %ecx
        orl     %eax, %ecx
        jne     .L2
        xorl    %eax, %eax
        ret
        .p2align 4,,7
.L2:
        movzbl  first_one(%eax), %eax
        ret


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]