This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH][ARM] optimizing _muldi3 for Thumb


Hi

    This patch adds an ARM assembly implementation for _muldi3.  In
current gcc, thumb code calls the generic version in libgcc2.c and
generated code from C is not efficient.  The thumb version is 53
instructions long.  The patch implements _muldi3 in just 6 ARM
instructions.

This has been tested in arm-none-eabi.

-Doug

2008-07-01  Doug Kwan  <dougkwan@google.com>

        * config/arm/lib1funcs.asm (muldi3): New.
        * config/arm/t-strongarm-elf (LIB1ASFUNCS): Add _muldi3.
        * config/arm/t-vxworks: Same.
        * config/arm/t-pe: Same.
        * config/arm/t-arm-elf: Same.
        * config/arm/t-arm-coff: Same.
        * config/arm/t-linux: Same.
        * config/arm/t-symbian: Same.
        * config/arm/t-wince-pe: Same.

Attachment: patch.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]