This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: MIPS don't gererate MUL when muliplying by constant of for 2^N +/- 1 optimizing for size
- From: Graham Stott <graham dot stott at btinternet dot com>
- To: Richard Sandiford <rdsandiford at googlemail dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 9 Jul 2013 18:38:51 +0100 (BST)
- Subject: Re: MIPS don't gererate MUL when muliplying by constant of for 2^N +/- 1 optimizing for size
- References: <1372860592 dot 24107 dot YahooMailNeo at web87401 dot mail dot ir2 dot yahoo dot com> <87mwq31rau dot fsf at talisman dot default> <1373293210 dot 55415 dot YahooMailNeo at web87404 dot mail dot ir2 dot yahoo dot com> <1373380186 dot 2163 dot YahooMailNeo at web87401 dot mail dot ir2 dot yahoo dot com> <871u774p38 dot fsf at talisman dot default>
- Reply-to: Graham Stott <graham dot stott at btinternet dot com>
Richard,
I'll renumber then consecutively and fix the typo and change log entry before I commit
Thanks
Graham
----- Original Message -----
From: Richard Sandiford <rdsandiford@googlemail.com>
To: Graham Stott <graham.stott@btinternet.com>
Cc: "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>
Sent: Tuesday, 9 July 2013, 18:31
Subject: Re: MIPS don't gererate MUL when muliplying by constant of for 2^N +/- 1 optimizing for size
Graham Stott <graham.stott@btinternet.com> writes:
> gcc/ChangeLog
>
> * config/mips/mips.c (): Very slightly increase code of MUL.whren
> optimizing for size.
* config/mips/mips.c (mips_rtx_costs): Very slightly increase
the cost of MULT when optimizing for size.
> gcc/testsuite/ChangeLog
> * gcc.target/mips/mulsize-7.c: New.
> * gcc.target/mips/mulsize-9.c New.
> * gcc/target/mips/mulsize-15.c: New.
> * gcc.target/mips/mulsize-17.c: New.
Let's number these consecutively (1-4). Typo "gcc/target/mips" ->
"gcc.target/mips".
OK with those changes, thanks.
Richard