This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: AVR signed int / 2 divide
- To: law at cygnus dot com
- Subject: Re: AVR signed int / 2 divide
- From: Marek Michalkiewicz <marekm at linux dot org dot pl>
- Date: Thu, 4 May 2000 21:08:46 +0200 (CEST)
- CC: marekm at linux dot org dot pl, gcc at gcc dot gnu dot org
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...
Marek