瀏覽代碼

* Reversed operand order in an optimization in postpeepholeopt

daniel 22 年之前
父節點
當前提交
14a7d749a2
共有 1 個文件被更改,包括 6 次插入3 次删除
  1. 6 3
      compiler/i386/popt386.pas

+ 6 - 3
compiler/i386/popt386.pas

@@ -2027,8 +2027,8 @@ Begin
                                        A_DEC: Taicpu(hp1).opcode := A_SUB;
                                        A_INC: Taicpu(hp1).opcode := A_ADD;
                                      End;
-                                     Taicpu(hp1).Loadoper(1,Taicpu(hp1).oper[0]);
-                                     Taicpu(hp1).LoadConst(0,1);
+                                     Taicpu(hp1).Loadoper(0,Taicpu(hp1).oper[0]);
+                                     Taicpu(hp1).LoadConst(1,1);
                                      Taicpu(hp1).ops:=2;
                                    End
                                  End;
@@ -2054,7 +2054,10 @@ End.
 
 {
   $Log$
-  Revision 1.38  2003-02-19 22:39:56  daniel
+  Revision 1.39  2003-02-24 21:27:01  daniel
+    * Reversed operand order in an optimization in postpeepholeopt
+
+  Revision 1.38  2003/02/19 22:39:56  daniel
     * Fixed a few issues
 
   Revision 1.37  2003/02/19 22:00:16  daniel