Search code examples
assemblyx86avxavx2

How to load 128bit data to ymm register in assembly?


I want to load 128bit data to ymm register.
I need 256bit data like this in ymm register.

0000000000000000-0000000000000000-08AE038400570064-0005000A1E810BB8

So I did like below;

vmovdqa ymm0, xmmword ptr[eax]

But I got build error. How can I do this?
Thank you.


Solution

  • I did resolve like this;

    vmovdqa xmm0, xmmword ptr[eax]
    

    So if I debug, I could see xmm,ymm registers like this.

    XMM0 = 0457FCEF00EAFC74-62CC03110038001E
    ... ...
    YMM0 = 0000000000000000-0000000000000000-0457FCEF00EAFC74-62CC03110038001E
    

    So, this is that I want. Thanks for your helps.