mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2026-01-04 06:30:38 +01:00
* fixed spilling of "mov $64bitconst,%reg" on x86_64
git-svn-id: trunk@12711 -
This commit is contained in:
parent
7950db7f2f
commit
4e1859e108
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user