Просмотр исходного кода

* arm thumb2 does not understand tst reg1,reg2,lsl reg3

git-svn-id: trunk@25344 -
florian 12 лет назад
Родитель
Сommit
c350c3a5e4
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      compiler/arm/narmset.pas

+ 1 - 1
compiler/arm/narmset.pas

@@ -104,7 +104,7 @@ implementation
             hregister:=cg.getintregister(current_asmdata.CurrAsmList, uopsize);
             hregister:=cg.getintregister(current_asmdata.CurrAsmList, uopsize);
             current_asmdata.CurrAsmList.concat(taicpu.op_reg_const(A_MOV,hregister,1));
             current_asmdata.CurrAsmList.concat(taicpu.op_reg_const(A_MOV,hregister,1));
 
 
-            if current_settings.cputype in cpu_thumb then
+            if current_settings.cputype in cpu_thumb+cpu_thumb2 then
               begin
               begin
                 current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg(A_LSL,hregister,left.location.register));
                 current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg(A_LSL,hregister,left.location.register));
                 cg.a_reg_alloc(current_asmdata.CurrAsmList,NR_DEFAULTFLAGS);
                 cg.a_reg_alloc(current_asmdata.CurrAsmList,NR_DEFAULTFLAGS);