浏览代码

* optimization "Merging stores: STR/STR -> STM" cannot be carried out when generating thumb code

git-svn-id: trunk@49503 -
florian 4 年之前
父节点
当前提交
7ee31ae252
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/arm/aoptcpu.pas

+ 1 - 1
compiler/arm/aoptcpu.pas

@@ -2055,7 +2055,7 @@ Implementation
       Result := False;
 
       { Try to merge two STRs into an STM instruction }
-      if (taicpu(p).oper[1]^.typ = top_ref) and
+      if not(GenerateThumbCode) and (taicpu(p).oper[1]^.typ = top_ref) and
         (taicpu(p).oper[1]^.ref^.addressmode = AM_OFFSET) and
         (
           (taicpu(p).oper[1]^.ref^.base = NR_NO) or