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: expand_mult for partial_int modes?


On Fri, 27 May 2005, DJ Delorie wrote:
>
> 	* expmed.c (expand_mult): Convert partial_int multiplies to
> 	shift/add combinations too.

Given that your internal port is the only target that's affected by
this, it looks safe enough :)  Ok for mainline with one minor tweak:

> -  if (GET_MODE_CLASS (mode) == MODE_INT
> +  if ((GET_MODE_CLASS (mode) == MODE_INT
> +       || GET_MODE_CLASS (mode) == MODE_PARTIAL_INT)

This is more concisely written as SCALAR_INT_MODE_P (mode).

Thanks,

Roger
--


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