[Bug middle-end/17886] variable rotate and long long rotate should be better optimized

mmitchel at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Sep 28 01:53:00 GMT 2005


------- Additional Comments From mmitchel at gcc dot gnu dot org  2005-09-28 01:53 -------
I think the optimal sequence for f3 would look something like this, assuming
that EAX contains the low-order word and EDX contains the high-order word after
the prologue:

movl %edx, %ebx
shrl $23, %ebx
sall $9, %edx
movl %eax, %ecx
shrl $23, %ecx
sall $9, %eax
orl %ebx, %eax
orl %ecx, %edx


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17886



More information about the Gcc-bugs mailing list