[PATCH][ARM] Improve 64-bit shifts (non-NEON)

Andrew Stubbs ams@codesourcery.com
Tue Jan 31 14:29:00 GMT 2012


On 30/01/12 15:25, Richard Earnshaw wrote:
> What's the impact of this on -Os?  At present we fall back to the
> libcalls, but I can't immediately see how the new code would do that.
>
> Gut feeling is that shift by a constant is always worth inlining at -Os,
> but shift by a register isn't.

Ah, I hadn't considered that. Good point!

This updated patch causes it to fall back to the old behaviour in 
optimize_size mode. This should do what you want.

OK?

Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: core-shift64.patch
Type: text/x-patch
Size: 13077 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120131/b4e9b509/attachment.bin>


More information about the Gcc-patches mailing list