r126370 - in /trunk/gcc: ChangeLog config/mips/...

sandra@gcc.gnu.org sandra@gcc.gnu.org
Thu Jul 5 17:08:00 GMT 2007


Author: sandra
Date: Thu Jul  5 17:08:37 2007
New Revision: 126370

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=126370
Log:
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.

Added:
    trunk/gcc/testsuite/gcc.target/mips/smartmips-lwxs.c
    trunk/gcc/testsuite/gcc.target/mips/smartmips-ror-1.c
    trunk/gcc/testsuite/gcc.target/mips/smartmips-ror-2.c
    trunk/gcc/testsuite/gcc.target/mips/smartmips-ror-3.c
    trunk/gcc/testsuite/gcc.target/mips/smartmips-ror-4.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/mips/mips.c
    trunk/gcc/config/mips/mips.h
    trunk/gcc/config/mips/mips.md
    trunk/gcc/config/mips/mips.opt
    trunk/gcc/doc/invoke.texi
    trunk/gcc/optabs.c



More information about the Gcc-cvs mailing list