* fixed spilling of "mov $64bitconst,%reg" on x86_64

git-svn-id: trunk@12711 -
This commit is contained in:
Jonas Maebe 2009-02-07 22:57:59 +00:00
parent 7950db7f2f
commit 4e1859e108

View File

@ -234,6 +234,15 @@ implementation
A_ANDPD,
A_ANDPS:
replaceoper:=-1;
{$ifdef x86_64}
A_MOV:
{ 64 bit constants can only be moved into registers }
if (oper[0]^.typ=top_const) and
(oper[1]^.typ=top_reg) and
((oper[0]^.val<low(longint)) or
(oper[0]^.val>high(longint))) then
replaceoper:=-1;
{$endif x86_64}
end;
end;
end;