m68k: if we have a symbol in the location reference, that will be base, so try to insert an index register instead, reduces the amount of data->address register shuffling in the generated code

git-svn-id: trunk@33647 -
This commit is contained in:
Károly Balogh 2016-05-03 23:55:27 +00:00
parent 671eed3070
commit 524659b341

View File

@ -90,7 +90,7 @@ implementation
end;
end;
if (location.reference.base=NR_NO) and not (scaled) then
if (location.reference.base=NR_NO) and not (scaled) and not assigned(location.reference.symbol) then
begin
{ prefer an address reg, if we will be a base, for indexes any register works }
if isintregister(maybe_const_reg) then