-
- Downloads
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
Showing
- gcc/ChangeLog 24 additions, 0 deletionsgcc/ChangeLog
- gcc/config/mips/mips.c 30 additions, 2 deletionsgcc/config/mips/mips.c
- gcc/config/mips/mips.h 9 additions, 1 deletiongcc/config/mips/mips.h
- gcc/config/mips/mips.md 15 additions, 0 deletionsgcc/config/mips/mips.md
- gcc/config/mips/mips.opt 4 additions, 0 deletionsgcc/config/mips/mips.opt
- gcc/doc/invoke.texi 7 additions, 0 deletionsgcc/doc/invoke.texi
- gcc/optabs.c 136 additions, 110 deletionsgcc/optabs.c
- gcc/testsuite/gcc.target/mips/smartmips-lwxs.c 8 additions, 0 deletionsgcc/testsuite/gcc.target/mips/smartmips-lwxs.c
- gcc/testsuite/gcc.target/mips/smartmips-ror-1.c 8 additions, 0 deletionsgcc/testsuite/gcc.target/mips/smartmips-ror-1.c
- gcc/testsuite/gcc.target/mips/smartmips-ror-2.c 8 additions, 0 deletionsgcc/testsuite/gcc.target/mips/smartmips-ror-2.c
- gcc/testsuite/gcc.target/mips/smartmips-ror-3.c 10 additions, 0 deletionsgcc/testsuite/gcc.target/mips/smartmips-ror-3.c
- gcc/testsuite/gcc.target/mips/smartmips-ror-4.c 10 additions, 0 deletionsgcc/testsuite/gcc.target/mips/smartmips-ror-4.c
Loading
Please register or sign in to comment