浏览代码

* fixed bug in op_const_reg_reg() for imul

Jonas Maebe 23 年之前
父节点
当前提交
6cb82a2c8f
共有 1 个文件被更改,包括 8 次插入2 次删除
  1. 8 2
      compiler/x86/cgx86.pas

+ 8 - 2
compiler/x86/cgx86.pas

@@ -908,7 +908,10 @@ unit cgx86;
               if not(cs_check_overflow in aktlocalswitches) and
                  ispowerof2(a,power) then
                 { can be done with a shift }
-                inherited a_op_const_reg_reg(list,op,size,a,src,dst);
+                begin
+                  inherited a_op_const_reg_reg(list,op,size,a,src,dst);
+                  exit;
+                end;
               list.concat(taicpu.op_const_reg_reg(A_IMUL,S_L,a,src,dst));
             end;
           OP_ADD, OP_SUB:
@@ -1661,7 +1664,10 @@ unit cgx86;
 end.
 {
   $Log$
-  Revision 1.1  2002-07-20 19:28:47  florian
+  Revision 1.2  2002-07-21 16:55:34  jonas
+    * fixed bug in op_const_reg_reg() for imul
+
+  Revision 1.1  2002/07/20 19:28:47  florian
     * splitting of i386\cgcpu.pas into x86\cgx86.pas and i386\cgcpu.pas
       cgx86.pas will contain the common code for i386 and x86_64