OSDN Git Service

2007-07-05 Sandra Loosemore <sandra@codesourcery.com>
authorsandra <sandra@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 5 Jul 2007 17:08:37 +0000 (17:08 +0000)
committersandra <sandra@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 5 Jul 2007 17:08:37 +0000 (17:08 +0000)
commit122a697832d3f4ee948f12fd2676840cdbb37a9b
tree412155942760389b80c2e11cd433bae27b0a1df4
parent81e6afc2ae19f1ae98d1bad1f2ed79f583325b3c
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126370 138bc75d-0d04-0410-961f-82ee72b054a4
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]