MMX register to SSE register

  • Follow


Hello,

I need to move a value from a MMX to a SSE register.
I found two options.
The first one is using the instructions movq2dq %mm0, %xmm0.
The second one is moving the value from %mm0 to memory and then from memory to %xmm0. For example:
movq    %mm0, -16(%rsp)
movq    -16(%rsp), %xmm0

The last one is generated by gcc.
I was doing some test and movq2dq is significantly slower that the second option and I was wondering why, because then... what is the usefulness of the instruction?

Any idea?
Thank you much.

0
Reply _m256 4/26/2011 10:01:13 AM


0 Replies
2708 Views

(page loaded in 0.036 seconds)

Similiar Articles:













7/23/2012 6:18:11 PM


Reply: