Prechádzať zdrojové kódy

* stop conditional optimization at mov pc,...

git-svn-id: trunk@6321 -
florian 18 rokov pred
rodič
commit
8d33f640d4
1 zmenil súbory, kde vykonal 1 pridanie a 0 odobranie
  1. 1 0
      compiler/arm/aoptcpu.pas

+ 1 - 0
compiler/arm/aoptcpu.pas

@@ -99,6 +99,7 @@ Implementation
     begin
     begin
       Result:=(p.typ=ait_instruction) and
       Result:=(p.typ=ait_instruction) and
         ((taicpu(p).opcode in [A_BL,A_BLX,A_CMP,A_CMN,A_SWI,A_TEQ,A_TST]) or
         ((taicpu(p).opcode in [A_BL,A_BLX,A_CMP,A_CMN,A_SWI,A_TEQ,A_TST]) or
+         ((taicpu(p).opcode=A_MOV) and (taicpu(p).oper[0]^.typ=top_reg) and (taicpu(p).oper[0]^.reg=NR_PC)) or
          (taicpu(p).oppostfix=PF_S));
          (taicpu(p).oppostfix=PF_S));
     end;
     end;