[PATCH][ARM] optimizing _muldi3 for Thumb

Mark Mitchell mark@codesourcery.com
Mon Jul 28 10:49:00 GMT 2008


Doug Kwan (Ãö®¶¼w) wrote:

> Okay. I will try generating instruction sequence directly.  However,
> we may still want to optimize libgcc because the current generated
> code is horrible.

Agreed.  For -Os, it will probably be better to make the call, even for
a 6-instruction sequence, and there's no reason to have the call go to
big, slow code.  You might look at defining __umulsidi3 for ARM, as it
looks like lots of other architectures have asm implementations that
might be a lot more efficient than the default.

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713



More information about the Gcc-patches mailing list