如何在汇编中将128位数据加载到ymm寄存器?

huangapple go评论60阅读模式
英文:

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

问题

我想将128位数据加载到ymm寄存器中。

我需要在ymm寄存器中获得像这样的256位数据。

0000000000000000-0000000000000000-08AE038400570064-0005000A1E810BB8

所以我尝试了以下操作:

vmovdqa ymm0, xmmword ptr[eax]

但我遇到了构建错误。

我该如何处理?

谢谢。

英文:

I want to load 128bit data to ymm register.<br/>
I need 256bit data like this in ymm register.<br/>

0000000000000000-0000000000000000-08AE038400570064-0005000A1E810BB8

So I did like below;

vmovdqa ymm0, xmmword ptr[eax]

But I got build error.
How can I do this?<br/>
Thank you.

答案1

得分: 1

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 what I want.
Thanks for your helps.

英文:

I did resolve like this;

vmovdqa xmm0, xmmword ptr[eax]

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

XMM0&#160;=&#160;0457FCEF00EAFC74-62CC03110038001E
... ...
YMM0&#160;=&#160;0000000000000000-0000000000000000-0457FCEF00EAFC74-62CC03110038001E

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

huangapple
  • 本文由 发表于 2023年2月24日 09:10:51
  • 转载请务必保留本文链接:https://go.coder-hub.com/75551787.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定