From 6cb82a2c8f4c46aae887a4807eddfe61ce6d67dc Mon Sep 17 00:00:00 2001 From: Jonas Maebe Date: Sun, 21 Jul 2002 16:55:34 +0000 Subject: [PATCH] * fixed bug in op_const_reg_reg() for imul --- compiler/x86/cgx86.pas | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/compiler/x86/cgx86.pas b/compiler/x86/cgx86.pas index e573f008f6..d2cab77877 100644 --- a/compiler/x86/cgx86.pas +++ b/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