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 ...