2
0
Эх сурвалжийг харах

* 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 -

nickysn 11 жил өмнө
parent
commit
72e526b9b1
1 өөрчлөгдсөн 2 нэмэгдсэн , 4 устгасан
  1. 2 4
      compiler/nadd.pas

+ 2 - 4
compiler/nadd.pas

@@ -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