This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/23971] [4.0/4.1 Regression] synth_mult running amok
- From: "tsv at solvo dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Sep 2005 18:42:46 -0000
- Subject: [Bug middle-end/23971] [4.0/4.1 Regression] synth_mult running amok
- References: <20050919192030.23971.tsv@solvo.ru>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From tsv at solvo dot ru 2005-09-27 18:42 -------
Yes, I tested the reported gcc version just with your patch. After trying to
trace "synth_mult" I started to think that there should be a simplier way. :)
In my testcase the "choose_mult_variant" was called with following params:
#16 0x000000012019b1f0 in choose_mult_variant (mode=DImode,
val=1696403818363083032, alg=0x11fefb178, variant=0x11fefb150,
mult_cost=100) at ../../gcc/expmed.c:2845
The attempt to do multiplication by shifts and adds/subs for that "huge" val was
interesting. :)
I'll give a try to your new patch.
Thank you.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23971