This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Multiplication
- To: Jan Hubicka <jh at suse dot cz>
- Subject: Re: Multiplication
- From: Richard Henderson <rth at redhat dot com>
- Date: Fri, 7 Sep 2001 12:28:10 -0700
- Cc: Frank Klemm <pfk at fuchs dot offl dot uni-jena dot de>, gcc-patches at gcc dot gnu dot org, patches at x86-64 dot org
- References: <20010827143032.C636@fuchs.offl.uni-jena.de> <20010827173025.F11402@atrey.karlin.mff.cuni.cz> <20010901202854.A7713@fuchs.offl.uni-jena.de> <20010902000000.C27182@atrey.karlin.mff.cuni.cz> <20010902024104.F7713@fuchs.offl.uni-jena.de> <20010903171717.E13574@atrey.karlin.mff.cuni.cz> <20010904003947.D335@fuchs.offl.uni-jena.de> <20010905133553.E15564@atrey.karlin.mff.cuni.cz> <20010905182009.A339@fuchs.offl.uni-jena.de> <20010907120836.A14477@atrey.karlin.mff.cuni.cz>
On Fri, Sep 07, 2001 at 12:08:36PM +0200, Jan Hubicka wrote:
> * i386.md (muldi3, muldi3_1_rex64, mulsi3, mulsi3_1, mulhi3, mulhi3_1):
> use x86_mul_operand.
> * i386.h (x86_immediate_mul_operand, TARGET_IMMEDIATE_MUL_OPERAND): New.
> (PREDICATE_CODES): Add x86_mul_operand.
> * i386.c (athlon_cost): reduce cost of the imul instruction.
> (x86_immediate_mul_operand): New global variable.
> (x86_mul_operand): New.
Seems ok.
r~