Browse Source

* fixed access violation bug in TX86AsmOptimizer.RegLoadedWithNewValue for the
A_MOVSD string instruction

git-svn-id: trunk@35995 -

nickysn 8 years ago
parent
commit
66c350d8d2
1 changed files with 1 additions and 0 deletions
  1. 1 0
      compiler/x86/aoptx86.pas

+ 1 - 0
compiler/x86/aoptx86.pas

@@ -425,6 +425,7 @@ unit aoptx86;
             (p.opcode = A_MOVQ) or
             (p.opcode = A_MOVAPD) or
             (p.opcode = A_MOVAPS)) and
+           (p.ops=2) and  { A_MOVSD can have zero operands, so this check is needed }
            (p.oper[1]^.typ = top_reg) and
            (SuperRegistersEqual(p.oper[1]^.reg,reg)) and
            ((p.oper[0]^.typ = top_const) or