mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 21:09:24 +02:00
* check register type also for registers in references so we are
not mixing addressregisters and intregisters on m68k git-svn-id: trunk@9128 -
This commit is contained in:
parent
14f958682c
commit
263b7abc6f
@ -1657,9 +1657,11 @@ unit rgobj;
|
||||
if regtype in [R_INTREGISTER,R_ADDRESSREGISTER] then
|
||||
with ref^ do
|
||||
begin
|
||||
if base<>NR_NO then
|
||||
if (base<>NR_NO) and
|
||||
(getregtype(base)=regtype) then
|
||||
setsupreg(base,reginfo[getsupreg(base)].colour);
|
||||
if index<>NR_NO then
|
||||
if (index<>NR_NO) and
|
||||
(getregtype(index)=regtype) then
|
||||
setsupreg(index,reginfo[getsupreg(index)].colour);
|
||||
end;
|
||||
end;
|
||||
@ -1669,7 +1671,8 @@ unit rgobj;
|
||||
if regtype=R_INTREGISTER then
|
||||
begin
|
||||
so:=shifterop;
|
||||
if so^.rs<>NR_NO then
|
||||
if (so^.rs<>NR_NO) and
|
||||
(getregtype(so^.rs)=regtype) then
|
||||
setsupreg(so^.rs,reginfo[getsupreg(so^.rs)].colour);
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user