This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/53399] "*ffs" pattern generates wrong code with BMI enabled
- From: "kirill.yukhin at intel dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 21 May 2012 11:02:07 +0000
- Subject: [Bug target/53399] "*ffs" pattern generates wrong code with BMI enabled
- Auto-submitted: auto-generated
- References: <bug-53399-4@http.gcc.gnu.org/bugzilla/>
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
...