flat assembler
Message board for the users of flat assembler.

Index > Main > [solved] How to load 256 bits to AVX register at once?

Author
Thread Post new topic Reply to topic
ml64



Joined: 17 Jul 2020
Posts: 6
ml64
This doesn't work:
Code:
vmovdqa ymm0,ymmword [rsi]    

So doesn't this:
Code:
vmovdqa ymm0,ymmword ptr [rsi]    
Post 17 Jul 2020, 05:53
View user's profile Send private message Send e-mail Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17639
Location: In your JS exploiting you and your system
revolution
Code:
vmovdqa ymm0,yword[rsi]    
Post 17 Jul 2020, 06:31
View user's profile Send private message Visit poster's website Reply with quote
ml64



Joined: 17 Jul 2020
Posts: 6
ml64
Thank You Very Much!
The question is completely solved.
As a post scriptum i'll expand the solution.
If 256-bit variable is considered as 8 single-precision floating-point numbers 32 bits each
then it can be loaded with <V-vector MOV U-unaligned P-packed S-single> instruction:
Code:
vmovups ymm0, yword [A]    

The same instruction extracts it back to the RAM:
Code:
vmovups yword [A],ymm0    
Post 24 Aug 2020, 08:18
View user's profile Send private message Send e-mail Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.