* fixed access violation bug in TX86AsmOptimizer.RegLoadedWithNewValue for the

A_MOVSD string instruction

git-svn-id: trunk@35995 -
This commit is contained in:
nickysn 2017-04-28 13:09:27 +00:00
parent e837a8577c
commit 66c350d8d2

View File

@ -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