Browse Source

* tai returned by GetNextInstructionUsingReg must be checked if it is really an instruction

git-svn-id: trunk@30443 -
florian 10 years ago
parent
commit
db63693b7e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      compiler/avr/aoptcpu.pas

+ 1 - 0
compiler/avr/aoptcpu.pas

@@ -87,6 +87,7 @@ Implementation
                      (taicpu(p).oper[0]^.typ=top_reg) and
                      (taicpu(p).oper[0]^.typ=top_reg) and
                      (taicpu(p).oper[1]^.typ=top_const) and
                      (taicpu(p).oper[1]^.typ=top_const) and
                      GetNextInstructionUsingReg(p, hp1, taicpu(p).oper[0]^.reg) and
                      GetNextInstructionUsingReg(p, hp1, taicpu(p).oper[0]^.reg) and
+                     (hp1.typ=ait_instruction) and
                      (not RegModifiedBetween(taicpu(p).oper[0]^.reg, p, hp1)) and
                      (not RegModifiedBetween(taicpu(p).oper[0]^.reg, p, hp1)) and
                      (taicpu(hp1).opcode=A_CP) and
                      (taicpu(hp1).opcode=A_CP) and
                      (taicpu(hp1).ops=2) and
                      (taicpu(hp1).ops=2) and