瀏覽代碼

* generate AND for small set comparisons also when only set vars are involved using the cg class, so it works for arm thumb as well

git-svn-id: trunk@28569 -
florian 11 年之前
父節點
當前提交
2fa7171a45
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/arm/narmadd.pas

+ 1 - 1
compiler/arm/narmadd.pas

@@ -395,7 +395,7 @@ interface
                 end
               else
                 begin
-                  current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg_reg(A_AND,tmpreg,left.location.register,right.location.register));
+                  cg.a_op_reg_reg_reg(current_asmdata.CurrAsmList,OP_AND,OS_32,left.location.register,right.location.register,tmpreg);
                   cg.a_reg_alloc(current_asmdata.CurrAsmList,NR_DEFAULTFLAGS);
                   current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg(A_CMP,tmpreg,right.location.register));
                 end;