+ added comment on movsd hack

git-svn-id: trunk@23031 -
This commit is contained in:
florian 2012-11-18 21:34:38 +00:00
parent d49a88c3c8
commit ab1815273c

View File

@ -882,8 +882,11 @@ Implementation
begin begin
actopcode:=tasmop(PtrUInt(iasmops.Find(copy(s,1,len)))); actopcode:=tasmop(PtrUInt(iasmops.Find(copy(s,1,len))));
if (actopcode = A_NONE) and { movsd needs special handling because it has two namings in at&t syntax (movsl for string handling and
(upper(s) = 'MOVSD') then actopcode := A_MOVSD; movsd for the sse instruction) while only one in intel syntax (movsd, both string and sse)
this cannot be expressed by the instruction table format so we have to hack around this here }
if (actopcode = A_NONE) and (upper(s) = 'MOVSD') then
actopcode := A_MOVSD;
{ two-letter suffix is allowed by just a few instructions (movsx,movzx), { two-letter suffix is allowed by just a few instructions (movsx,movzx),
and it is always required whenever allowed } and it is always required whenever allowed }