Browse Source

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

git-svn-id: trunk@25752 -

nickysn 12 năm trước cách đây
mục cha
commit
fd05d0c14e
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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}