Browse Source

* properly check number of operands

git-svn-id: trunk@36322 -
florian 8 năm trước cách đây
mục cha
commit
c83e6991d5
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      compiler/x86/aoptx86.pas

+ 3 - 3
compiler/x86/aoptx86.pas

@@ -1622,11 +1622,11 @@ unit aoptx86;
         hp1 : tai;
       begin
         Result:=false;
-        if taicpu(p).opercnt <> 2 then
+        if taicpu(p).ops <> 2 then
           exit;
         if GetNextInstruction(p,hp1) and
-          (taicpu(hp1).opercnt = 2) and
-          MatchInstruction(hp1,taicpu(p).opcode,[taicpu(p).opsize]) then
+          MatchInstruction(hp1,taicpu(p).opcode,[taicpu(p).opsize]) and
+          (taicpu(hp1).ops = 2) then
           begin
             if (taicpu(hp1).oper[0]^.typ = taicpu(p).oper[1]^.typ) and
                (taicpu(hp1).oper[1]^.typ = taicpu(p).oper[0]^.typ) then