Loading/Storing variable number of bytes into an XMM register from memory

Discussion created by Tapejara on May 8, 2011
Latest reply on May 26, 2011 by Tapejara

I have been tyring to figure out (from studying the AMD64 manuals) how to simply load 1 to 16 contiguous bytes of memory into an XMM register (starting with the first byte of the register). The remaining bytes of the XMM register would remain unchanged. Out of the plethora of instructions for this architecture, so far I haven't found any instructions that seem to be able to do this rather straight-forward operation. Can anyone help?