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] Workaround errata for the PMC-Sierra RM7000 cpu.


Hi Richard,

This patch implements a workaround for errors on the PMC-Sierra RM7000 cpu while executing the dmult or dmultu instruction.  The workaround is to insert three nops after the dmult/dmultu.

Does this look okay to commit?

Thanks,
Catherine

gcc/
2013-10-09  Catherine Moore  <clm@codesourcery.com>
            Chao-ying Fu  <Chao-ying.Fu@imgtec.com>>

        * doc/invoke.texi (mfix-pmc): Document.
        * config/mips/mips.md (mul<mode>3): Handle PMC errata.
        (mul<mode>3_internal): Likewise.
        (mul<mode>3_pmc): New pattern.
        (<su>muldi3_highpart_split): Handle PMC errata.
        (<u>mulditi3): Likewise.
        (<u>mulditi3_internal): Likewise.
        (<u>mulditi3_pmc): New pattern.
        * config/mips/mips.opt (mfix-pmc): New option.

testsuite/
2013-10-09  Catherine Moore  <clm@codesourcery.com>
            Chao-ying Fu  <Chao-ying.Fu@imgtec.com>>

        * gcc.target/mips/mips.exp (mips_option_groups): Append -mfix-pmc.
        * gcc/target/mips/fix-pmc-[1-6].c: New tests.

Attachment: pmc.patch
Description: pmc.patch


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