let's have array of 4 2 bytes long integers in memory. want load whole array simd register before performing read-only calculations.
leaq myarray,%rax // myarray being 64bits long array of 4 2 bytes elements movq 0(%rax),%xmm0 // low part of %xmm0 contains whole array
from memory, :
movw 0(%rax),%cx // first element of array in memory movw 2(%rax),%dx // second element of array in memory movw 4(%rax),%r8w // third element of array in memory movw 6(%rax),%r9w // last element of array in memory
but want :
movw %xmm0[0],%cx // first element of %xmm0 movw %xmm0[2],%dx // first element of %xmm0 movw %xmm0[4],%r8w // first element of %xmm0 movw %xmm0[6],%r9w // first element of %xmm0
is there way iterate through register or use (base,offset,multiplier) directly on content of register?
Comments
Post a Comment