ソースを参照

* 16/8-bit ALU fix for 64-bit pred/succ after r26580

git-svn-id: trunk@26590 -
nickysn 11 年 前
コミット
5e0359d389
1 ファイル変更2 行追加2 行削除
  1. 2 2
      compiler/ncginl.pas

+ 2 - 2
compiler/ncginl.pas

@@ -345,8 +345,8 @@ implementation
 {$ifndef cpu64bitalu}
 {$ifndef cpu64bitalu}
         if def_cgsize(resultdef) in [OS_64,OS_S64] then
         if def_cgsize(resultdef) in [OS_64,OS_S64] then
           begin
           begin
-            location.register64.reglo:=cg.getintregister(current_asmdata.CurrAsmList,OS_INT);
-            location.register64.reghi:=cg.getintregister(current_asmdata.CurrAsmList,OS_INT);
+            location.register64.reglo:=cg.getintregister(current_asmdata.CurrAsmList,OS_32);
+            location.register64.reghi:=cg.getintregister(current_asmdata.CurrAsmList,OS_32);
             cg64.a_op64_const_reg_reg(current_asmdata.CurrAsmList,cgop,def_cgsize(resultdef),1,left.location.register64,location.register64);
             cg64.a_op64_const_reg_reg(current_asmdata.CurrAsmList,cgop,def_cgsize(resultdef),1,left.location.register64,location.register64);
           end
           end
         else
         else