From 97fc823e33c6b6f7a80d7e230e02055e455f2c2d Mon Sep 17 00:00:00 2001 From: florian Date: Sat, 30 Aug 2014 18:02:59 +0000 Subject: [PATCH] * generate AND for small set comparions using the cg class, so it works for arm thumb as well git-svn-id: trunk@28540 - --- compiler/arm/narmadd.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/arm/narmadd.pas b/compiler/arm/narmadd.pas index 63dc84a02c..5d38e1ec48 100644 --- a/compiler/arm/narmadd.pas +++ b/compiler/arm/narmadd.pas @@ -389,7 +389,7 @@ interface tmpreg:=cg.getintregister(current_asmdata.CurrAsmList,location.size); if right.location.loc = LOC_CONSTANT then begin - current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg_const(A_AND,tmpreg,left.location.register,right.location.value)); + cg.a_op_const_reg_reg(current_asmdata.CurrAsmList,OP_AND,OS_32,right.location.value,left.location.register,tmpreg); cg.a_reg_alloc(current_asmdata.CurrAsmList,NR_DEFAULTFLAGS); current_asmdata.CurrAsmList.concat(taicpu.op_reg_const(A_CMP,tmpreg,right.location.value)); end