flat assembler
Message board for the users of flat assembler.

Index > Main > SSE2 movsd

Author
Thread Post new topic Reply to topic
Posetf



Joined: 01 Mar 2004
Posts: 35
Location: London
Posetf
The manual documents movsd in SSE2 as 'transfers a double precision value between source and destination operand (only the low quad word is trasferred). At least one of the operands have to be a SSE register, the second one can be also a SSE register or 64-bit memory location.' However I thought movsd was a zero parameter op (usually prefixed by rep) which moved [esi] to [edi].

Is this a typo or are you saying if it has (two) parameters, one of them must be an SSE register?

Same question for cmpsd


Last edited by Posetf on 04 Nov 2005, 02:08; edited 1 time in total
Post 03 Nov 2005, 19:32
View user's profile Send private message Visit poster's website Reply with quote
r22



Joined: 27 Dec 2004
Posts: 805
r22
Some of the mnemonics for opcodes overlape. When this happens it depends on the context (ie the source and destination).

When there's movsd xmm0,xmm1 it's obviously not the mov string dword opcode but the mov scalar double opcode.
Post 04 Nov 2005, 00:15
View user's profile Send private message AIM Address Yahoo Messenger Reply with quote
Posetf



Joined: 01 Mar 2004
Posts: 35
Location: London
Posetf
Thanks,

What I was actually doing was writing a syntax file for my editor, and, since my m/c does not support SSE2, colour SSE2 instructions different. movsd/cmpsd were the only cases I found. On reflection I guess there is no harm overloading the occasional op like this as any block of SSE2 code will no doubt contain other SSE2 ops. Not that I've actually seen any code that uses these yet Wink

Pete
Post 04 Nov 2005, 00:40
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-2020, Tomasz Grysztar.

Powered by rwasa.