This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/12849] testing divisibility by constant
- From: "user42 at zip dot com dot au" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Oct 2003 22:00:46 -0000
- Subject: [Bug optimization/12849] testing divisibility by constant
- References: <20031030220622.12849.user42@zip.com.au>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12849
------- Additional Comments From user42 at zip dot com dot au 2003-10-31 22:00 -------
Subject: Re: testing divisibility by constant
I wrote:
>
> if (n % 3 == 0)
Actually, the asm code I included was for a divisor of 171717. Small
values get strength reduction on the multiplies, obscuring what gets
done.