Browse Source

* div, idiv and mul destroy edx!!

Jonas Maebe 26 years ago
parent
commit
194c612b07
1 changed files with 5 additions and 1 deletions
  1. 5 1
      compiler/daopt386.pas

+ 5 - 1
compiler/daopt386.pas

@@ -1706,6 +1706,7 @@ Begin
                      (Paicpu(p)^.OpCode = A_DIV) Then
                      (Paicpu(p)^.OpCode = A_DIV) Then
                     ReadReg(CurProp,R_EDX);
                     ReadReg(CurProp,R_EDX);
                   DestroyReg(CurProp, R_EAX, true)
                   DestroyReg(CurProp, R_EAX, true)
+                  DestroyReg(CurProp, R_EDX, true)
                 End;
                 End;
               A_IMUL:
               A_IMUL:
                 Begin
                 Begin
@@ -1930,7 +1931,10 @@ End.
 
 
 {
 {
  $Log$
  $Log$
- Revision 1.68  1999-11-07 14:57:09  jonas
+ Revision 1.69  1999-11-13 19:01:51  jonas
+   * div, idiv and mul destroy edx!!
+
+ Revision 1.68  1999/11/07 14:57:09  jonas
    * much more complete/waterproof RegModifiedByInstruction()
    * much more complete/waterproof RegModifiedByInstruction()
 
 
  Revision 1.67  1999/11/06 14:34:20  peter
  Revision 1.67  1999/11/06 14:34:20  peter