mips.h (ISA_HAS_SYNCI): New target capability predicate.
commitdf770e044284fe071d8e64c82827393a2dab98fa
authorDavid Daney <ddaney@avtrex.com>
Wed, 11 Jul 2007 05:14:35 +0000 (11 05:14 +0000)
committerDavid Daney <daney@gcc.gnu.org>
Wed, 11 Jul 2007 05:14:35 +0000 (11 05:14 +0000)
tree55fd8563ea4486e49ee923e02646d4548ba97bc7
parentf8335a4ff0dd1c3caa1e8822f9d86e594b96e934
mips.h (ISA_HAS_SYNCI): New target capability predicate.

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.

From-SVN: r126537
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]