OSDN Git Service

2007-07-10 David Daney <ddaney@avtrex.com>
authordaney <daney@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 11 Jul 2007 05:14:35 +0000 (05:14 +0000)
committerdaney <daney@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 11 Jul 2007 05:14:35 +0000 (05:14 +0000)
commit381be2706f76ce9aaa61c342d4bc126dd02a39fe
tree55fd8563ea4486e49ee923e02646d4548ba97bc7
parent1b7ff857753951106fdd2bbb9afa20bb9867141b
2007-07-10  David Daney  <ddaney@avtrex.com>

* config/mips/mips.h (ISA_HAS_SYNCI): New target capability
predicate.
(INITIALIZE_TRAMPOLINE): Emit clear_cache insn instead of  library
call.
* config/mips/mips.c (mips_expand_synci_loop): New function.
* config/mips/mips.md (UNSPEC_CLEAR_HAZARD): New constant.
(UNSPEC_RDHWR): Same.
(UNSPEC_SYNCI): Same.
(UNSPEC_SYNC): Same.
(clear_cache): New expand.
(sync): New insn.
(synci): Same.
(rdhwr): Same.
(clear_hazard): Same.
* config/mips/mips-protos.h (mips_expand_synci_loop): Declare
function.
* testsuite/gcc.target/mips/clear-cache-1.c: New test.
* testsuite/gcc.target/mips/clear-cache-2.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126537 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/mips/mips-protos.h
gcc/config/mips/mips.c
gcc/config/mips/mips.h
gcc/config/mips/mips.md
gcc/testsuite/gcc.target/mips/clear-cache-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/mips/clear-cache-2.c [new file with mode: 0644]