Explorar o código

* 16/8-bit ALU fix in maybechangeloadnodereg. This fixes the tbopr and trox2
tests on i8086.

git-svn-id: trunk@25752 -

nickysn %!s(int64=12) %!d(string=hai) anos
pai
achega
fd05d0c14e
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      compiler/ncgutil.pas

+ 2 - 2
compiler/ncgutil.pas

@@ -1842,8 +1842,8 @@ implementation
               if (n.location.size in [OS_64,OS_S64]) then
               if (n.location.size in [OS_64,OS_S64]) then
                 begin
                 begin
                   rr.oldhi := n.location.register64.reghi;
                   rr.oldhi := n.location.register64.reghi;
-                  rr.new := cg.getintregister(current_asmdata.CurrAsmList,OS_INT);
-                  rr.newhi := cg.getintregister(current_asmdata.CurrAsmList,OS_INT);
+                  rr.new := cg.getintregister(current_asmdata.CurrAsmList,OS_32);
+                  rr.newhi := cg.getintregister(current_asmdata.CurrAsmList,OS_32);
                 end
                 end
               else
               else
       {$endif cpu64bitalu}
       {$endif cpu64bitalu}