I have some experimental work which has implemented mulhi3_highpart. It is essentially a rule for gcc to use when multiplying two 16bit integers and you only want the high 16bits. It is also used by gcc to generate really fast division by constants which aren't powers of 2 for 16bit integers (multiply and shift instead of divide) Before I added this rule, this optimization was never used.
Let me know if you would be willing to test my patch and develop its features more and I would be glad to send you what I have. Sean On 2/17/09, Thomas D. Dean <tomd...@speakeasy.org> wrote: > On Tue, 2009-02-17 at 07:52 +0100, Joerg Wunsch wrote: >> "Thomas D. Dean" <tomd...@speakeasy.org> wrote: >> >> Ouch. That's most likely an unpatched GCC 4.3.0, which was known to >> have many (sic) serious bugs for the AVR target. Get rid of it. > > I upgraded to avr-gcc version 4.3.2 and the problem is fixed. > > Thanks, > tomdean > > > > _______________________________________________ > AVR-GCC-list mailing list > AVR-GCC-list@nongnu.org > http://lists.nongnu.org/mailman/listinfo/avr-gcc-list > _______________________________________________ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list