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 years ago
parent
commit
fd05d0c14e
1 changed files with 2 additions and 2 deletions
  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
                 begin
                   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
               else
       {$endif cpu64bitalu}