Re: expr.c: don't assume MUL for scaling pointers

2011-11-08 Thread Paul Koning
> > -Original Message- > From: gcc-patches-ow...@gcc.gnu.org [mailto:gcc-patches-ow...@gcc.gnu.org] On > Behalf Of DJ Delorie > Sent: Wednesday, November 02, 2011 11:24 PM > To: gcc-patches@gcc.gnu.org > Subject: expr.c: don't assume MUL for scaling pointers > > > GCC assumes the target

Re: expr.c: don't assume MUL for scaling pointers

2011-11-03 Thread Richard Henderson
On 11/02/2011 08:23 PM, DJ Delorie wrote: > GCC assumes the target has a multiply insn, but better code is > generated using shifts if it doesn't (vs a libcall). Found with the > rl78-elf port. > > * expr.c (expand_expr_real_2): Don't try to emit a MUL-based > expression if the target

Re: expr.c: don't assume MUL for scaling pointers

2011-11-02 Thread Hans-Peter Nilsson
On Wed, 2 Nov 2011, DJ Delorie wrote: > > GCC assumes the target has a multiply insn, but better code is > generated using shifts if it doesn't (vs a libcall). Found with the > rl78-elf port. > > * expr.c (expand_expr_real_2): Don't try to emit a MUL-based > expression if the target do