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 MIPS][LS3A] Integer mul/div instruction patterns


Hi,

This patch implements the loongson3a-specific mul/div instruction
patterns, with two simple testcases.

Is it OK?

Thanks,
Mingjie

testsuite/ChangeLog,

        * gcc.target/mips/loongson3a-muldiv-1.c: New test.
        * gcc.target/mips/loongson3a-muldiv-2.c: New test.

ChangeLog,

        * config/mips/loongson.md: Change the description comment of the file
        and update the copyright years.
        (define_insn "<u>div<mode>3): Add loongson3a support.
        (define_insn "<u>mod<mode>3"): Likewise.
        * config/mips/mips.md: Rename mul<mode>3_mul3_ls2ef to
        mul<mode>3_mul3_loongson.
        (define_expand "mul<mode>3"): Add TARGET_LOONGSON_3A.
        (define_insn "mul<mode>3_mul3_loongson"): Add loongson3a support.

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]