mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-07 12:26:16 +02:00
* 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:
parent
4917d8da39
commit
72e526b9b1
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user