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  <c...@codesourcery.com>
            Chao-ying Fu  <chao-ying...@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  <c...@codesourcery.com>
            Chao-ying Fu  <chao-ying...@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

Reply via email to