浏览代码

* fixed a bug in the i8086 32-bit rol/ror code generation method rm_fast_386

git-svn-id: trunk@35745 -
nickysn 8 年之前
父节点
当前提交
9093047a7a
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      compiler/i8086/cgcpu.pas

+ 1 - 0
compiler/i8086/cgcpu.pas

@@ -708,6 +708,7 @@ unit cgcpu;
                     rm_fast_386:
                       begin
                         tmpreg:=getintregister(list,OS_16);
+                        a_load_reg_reg(list,OS_16,OS_16,GetNextReg(reg),tmpreg);
                         if op=OP_ROL then
                           begin
                             list.Concat(taicpu.op_const_reg_reg(A_SHLD,S_W,rol_amount,reg,GetNextReg(reg)));