Browse Source

* IDIV reads edx too (but now the div/mod optimization fails :/ )

Jonas Maebe 23 years ago
parent
commit
e483612cf2
1 changed files with 5 additions and 2 deletions
  1. 5 2
      compiler/i386/daopt386.pas

+ 5 - 2
compiler/i386/daopt386.pas

@@ -790,7 +790,7 @@ begin
     A_IDIV,A_DIV,A_MUL:
     A_IDIV,A_DIV,A_MUL:
       begin
       begin
         regReadByInstruction :=
         regReadByInstruction :=
-          regInOp(reg,p.oper[0]) or (reg = R_EAX);
+          regInOp(reg,p.oper[0]) or (reg = R_EAX) or (reg = R_EDX);
       end;
       end;
     else
     else
       begin
       begin
@@ -2591,7 +2591,10 @@ End.
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.38  2002-05-18 13:34:22  peter
+  Revision 1.39  2002-06-09 12:56:04  jonas
+    * IDIV reads edx too (but now the div/mod optimization fails :/ )
+
+  Revision 1.38  2002/05/18 13:34:22  peter
     * readded missing revisions
     * readded missing revisions
 
 
   Revision 1.37  2002/05/16 19:46:51  carl
   Revision 1.37  2002/05/16 19:46:51  carl