------- Comment #2 from ajrobb at bigfoot dot com 2006-05-10 09:45 -------
Created an attachment (id=11428)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11428&action=view)
multi-word bit shift
This is my loop - using a single index that decrements to zero
I have seen simpler loops perform twice as fast with decrement to zero compared
with increment to value.
.L8:
movl -4(%ebp,%ebx,4), %eax
movl %edi, %ecx
movl (%ebp,%ebx,4), %edx
sall %cl, %eax
movl %esi, %ecx
shrl %cl, %edx
orl %eax, %edx
movl %edx, (%ebp,%ebx,4)
decl %ebx
jne .L8
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27125