* taddnode.pass_1: set correctly expectloc to LOC_JUMP or LOC_FLAGS for compare

nodes on 16/8-bit targets. This fixes (among other things) the conversion of
  booleans to boolean16 or boolean32 on i8086.

git-svn-id: trunk@26341 -
This commit is contained in:
nickysn 2013-12-31 16:22:24 +00:00
parent 4917d8da39
commit 72e526b9b1

View File

@ -2914,12 +2914,10 @@ implementation
{$endif cpuneedsmulhelper}
if nodetype in [addn,subn,muln,andn,orn,xorn] then
expectloc:=LOC_REGISTER
else if torddef(ld).size>sizeof(aint) then
expectloc:=LOC_JUMP
else
{$ifdef cpu16bitalu}
expectloc:=LOC_JUMP;
{$else cpu16bitalu}
expectloc:=LOC_FLAGS;
{$endif cpu16bitalu}
end;
end