瀏覽代碼

* disable optimization LdrbAnd2Ldrb for arm thumb as it is currently done

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

+ 2 - 1
compiler/arm/aoptcpu.pas

@@ -735,7 +735,8 @@ Implementation
 
                         ldrb dst2, [ref]
                     }
-                    if (taicpu(p).oppostfix=PF_B) and
+                    if not(current_settings.cputype in cpu_thumb) and
+                       (taicpu(p).oppostfix=PF_B) and
                        GetNextInstructionUsingReg(p, hp1, taicpu(p).oper[0]^.reg) and
                        MatchInstruction(hp1, A_AND, [taicpu(p).condition], [PF_NONE]) and
                        (taicpu(hp1).oper[1]^.reg = taicpu(p).oper[0]^.reg) and