This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: AVR signed int / 2 divide
- To: Marek Michalkiewicz <marekm at linux dot org dot pl>
- Subject: Re: AVR signed int / 2 divide
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Thu, 04 May 2000 13:16:02 -0600
- cc: gcc at gcc dot gnu dot org
- Reply-To: law at cygnus dot com
In message <200005041908.VAA14652@marekm.home>you write:
> Jeffrey A Law <law@cygnus.com> wrote:
> > I think it would be better to use BRANCH_COST to determine the cost
> > of the branch and RTX_COST to determine the cost of a shift (and other
> > RTL operations). Then select the cheaper one.
> >
> > That is better because it uses existing target macros in an obvious
> > way intead of creating a new target macro which just controls this
> > behavior.
>
> Thanks. I now see comments in gcc/config/h8300/h8300.h that
> indicate AVR is not the only target with this problem...
Another example would be the mn102.
jeff