This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/24929] long long shift/mask operations should be better optimized
- From: "ian at airs dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Jun 2006 06:05:38 -0000
- Subject: [Bug middle-end/24929] long long shift/mask operations should be better optimized
- References: <bug-24929-11148@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from ian at airs dot com 2006-06-27 06:05 -------
With my current version of the lower-subreg patch, I get this with -O2
-momit-leaf-frame-pointer:
f:
movl 16(%esp), %eax
movl 4(%esp), %ecx
movl 8(%esp), %edx
shrl $16, %eax
andl $255, %eax
shldl $8, %ecx, %edx
sall $8, %ecx
orl %ecx, %eax
ret
which may be optimal.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24929