This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/47521] Unnecessary usage of edx register
- From: "tony.poppleton at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 28 Jan 2011 17:23:20 +0000
- Subject: [Bug rtl-optimization/47521] Unnecessary usage of edx register
- Auto-submitted: auto-generated
- References: <bug-47521-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47521
Tony Poppleton <tony.poppleton at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |4.3.5
Known to fail| |4.4.5, 4.5.2, 4.6.0
--- Comment #1 from Tony Poppleton <tony.poppleton at gmail dot com> 2011-01-28 17:23:19 UTC ---
I probably meant "testb $16, %dil" above...
GCC 4.3.5 avoids the usage of edx, although it too probably has 1 instruction
too many:
testb $16, %dil
movl $1, %eax
cmove %eax, %edi
movl %edi, %eax
ret