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 target/53399] "*ffs" pattern generates wrong code with BMI enabled


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

--- Comment #11 from Yukhin Kirill <kirill.yukhin at intel dot com> 2012-05-21 11:02:07 UTC ---
> 
> Please test the attached patch. The patch checks CCCmode for TARGET_BMI in ffs
> patterns.

Hi Uros, seems your patch fixes the problem, here is piece of asm from
testcase:
...
        movl    ints(%rip), %eax
        movl    %eax, %edx
        movl    $-1, %eax
        tzcntl  %edx, %ebx
        cmovc   %eax, %ebx
...


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