]> git.ipfire.org Git - thirdparty/gcc.git/commit
Add support for SmartMIPS ASE.
authorSandra Loosemore <sandra@codesourcery.com>
Thu, 5 Jul 2007 17:08:37 +0000 (13:08 -0400)
committerSandra Loosemore <sandra@gcc.gnu.org>
Thu, 5 Jul 2007 17:08:37 +0000 (13:08 -0400)
commit0aa222d17b32f6d6388e1e92a1d7bde124277f3d
tree412155942760389b80c2e11cd433bae27b0a1df4
parent6fd2892a68b395f626c97657096e9a80afa9e154
Add support for SmartMIPS ASE.

2007-07-05  Sandra Loosemore  <sandra@codesourcery.com>
    David Ung  <davidu@mips.com>

Add support for SmartMIPS ASE.

gcc/
* optabs.c (expand_binop_directly): New, broken out from...
(expand_binop): Here.  Make it try rotating in the other
direction even when the second operand isn't constant.
* config/mips/mips.md (*lwxs): New.
* config/mips/mips.opt (msmartmips): New.
* config/mips/mips.c (mips_lwxs_address_p): New.
(mips_rtx_costs): Make it recognize scaled indexed addressing.
* config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
__mips_smartmips when compiling for TARGET_SMARTMIPS.
(ISA_HAS_ROR): Define for TARGET_SMARTMIPS.
(ISA_HAS_LWXS): New.
(ASM_SPEC): Add -msmartmips/-mno-smartmips.
* doc/invoke.texi (MIPS Options): Document -msmartmips/-mno-smartmips.
* testsuite/gcc.target/mips/smartmips-lwxs.c: New test case.
* testsuite/gcc.target/mips/smartmips-ror-1.c: New test case.
* testsuite/gcc.target/mips/smartmips-ror-2.c: New test case.
* testsuite/gcc.target/mips/smartmips-ror-3.c: New test case.
* testsuite/gcc.target/mips/smartmips-ror-4.c: New test case.

Co-Authored-By: David Ung <davidu@mips.com>
From-SVN: r126370
12 files changed:
gcc/ChangeLog
gcc/config/mips/mips.c
gcc/config/mips/mips.h
gcc/config/mips/mips.md
gcc/config/mips/mips.opt
gcc/doc/invoke.texi
gcc/optabs.c
gcc/testsuite/gcc.target/mips/smartmips-lwxs.c [new file with mode: 0644]
gcc/testsuite/gcc.target/mips/smartmips-ror-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/mips/smartmips-ror-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/mips/smartmips-ror-3.c [new file with mode: 0644]
gcc/testsuite/gcc.target/mips/smartmips-ror-4.c [new file with mode: 0644]