This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bad choices by expand_mult_highpart


Roger Sayle wrote:

> On Sun, 21 Mar 2004, Ulrich Weigand wrote:
> >
> > 	* expmed.c (choose_mult_variant): Pass MULT_COST as argument instead
> > 	of using register multiplication cost.
> > 	(expand_mult): Adapt choose_mult_variant call.
> > 	(expand_mult_highpart): Call choose_mult_variant with WIDER_MODE
> > 	of MODE; pass appropriate cost bound.  Adjust result when
> > 	performing signed multiplication by a negative constant.
> > 	Don't use intermediate modes larger than word_mode.
> >
> 
> Ok for mainline if your testing of this variant passes.

The patch passed testing on s390-ibm-linux and s390x-ibm-linux
(and fixed the s390x testsuite failures); I've committed it now.

Thanks,
Ulrich

-- 
  Dr. Ulrich Weigand
  weigand@informatik.uni-erlangen.de


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]