Forráskód Böngészése

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

git-svn-id: trunk@25356 -
florian 12 éve
szülő
commit
7cef301e84
1 módosított fájl, 2 hozzáadás és 1 törlés
  1. 2 1
      compiler/arm/aoptcpu.pas

+ 2 - 1
compiler/arm/aoptcpu.pas

@@ -735,7 +735,8 @@ Implementation
 
 
                         ldrb dst2, [ref]
                         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
                        GetNextInstructionUsingReg(p, hp1, taicpu(p).oper[0]^.reg) and
                        MatchInstruction(hp1, A_AND, [taicpu(p).condition], [PF_NONE]) and
                        MatchInstruction(hp1, A_AND, [taicpu(p).condition], [PF_NONE]) and
                        (taicpu(hp1).oper[1]^.reg = taicpu(p).oper[0]^.reg) and
                        (taicpu(hp1).oper[1]^.reg = taicpu(p).oper[0]^.reg) and