------- Comment #2 from ubizjak at gmail dot com 2008-06-05 11:21 ------- Your testcase works for me on i686-pc-linux-gnu with 'GCC: (GNU) 4.4.0 20080605 (experimental) [trunk revision 136389]', with -mmmx and all optimization levels:
.L5: movq %mm1, %mm0 psllq $8, %mm0 psllq $8, %mm0 movq %mm0, (%ecx,%eax,8) addl $1, %eax movq %mm0, %mm1 cmpl %eax, %edx jg .L5 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36438