flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > VPMOVSXDQ syntax?

Author
Thread Post new topic Reply to topic
bitRAKE



Joined: 21 Jul 2003
Posts: 4053
Location: vpcmpistri
bitRAKE 10 Feb 2020, 13:04
I've looked through the AVS2/AVS ... includes, but can't figure out the intended syntax for this instruction. I've tried a number of possiblities:
Code:

vpmovsxdq ymm0,:16 [mem]
vpmovsxdq ymm0,:32 [mem]

vpmovsxdq ymm0,dqword [mem]
vpmovsxdq ymm0,yword [mem]

vpmovsxdq ymm0,dqword ptr [mem]
vpmovsxdq ymm0, ptr [mem]    
I could only get it to work by removing all type information from the memory definition and the instruction. But it would be nice to know how to override this one.

_________________
¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup
Post 10 Feb 2020, 13:04
View user's profile Send private message Visit poster's website Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 4053
Location: vpcmpistri
bitRAKE 10 Feb 2020, 13:08
DQWORD does work. Embarassed

Thought for sure that I'd tried that.

_________________
¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup
Post 10 Feb 2020, 13:08
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8356
Location: Kraków, Poland
Tomasz Grysztar 10 Feb 2020, 13:36
DQWORD also has a synonym XWORD. Please note the symmetry:
Code:
VPMOVSXDQ ymm1, xmm2
VPMOVSXDQ ymm1, xword [mem]    
Post 10 Feb 2020, 13:36
View user's profile Send private message Visit poster's website 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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.