浏览代码

* fixed some unnecessary moving of values from cregister to register
after r7831

git-svn-id: trunk@15502 -

Jonas Maebe 15 年之前
父节点
当前提交
fff903a00b
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      compiler/x86/nx86add.pas

+ 2 - 2
compiler/x86/nx86add.pas

@@ -207,10 +207,10 @@ unit nx86add;
             end;
           end;
         if (right.location.loc<>LOC_CONSTANT) and
-           (tcgsize2unsigned[right.location.size]<>opsize) then
+           (tcgsize2unsigned[right.location.size]<>tcgsize2unsigned[opsize]) then
           location_force_reg(current_asmdata.CurrAsmList,right.location,opsize,true);
         if (left.location.loc<>LOC_CONSTANT) and
-           (tcgsize2unsigned[left.location.size]<>opsize) then
+           (tcgsize2unsigned[left.location.size]<>tcgsize2unsigned[opsize]) then
           location_force_reg(current_asmdata.CurrAsmList,left.location,opsize,false);
        end;