Commit 6411cd38 by Adam Nemet Committed by Adam Nemet

mips.md (clear_hazard): Rename to clear_hazard_<mode>.

	* config/mips/mips.md (clear_hazard): Rename to
	clear_hazard_<mode>.  Use mode-specific addition.
	(clear_cache): Rename gen_clear_hazard to gen_clear_hazard_si
	or gen_clear_hazard_di depending on the size of Pmode.

From-SVN: r142229
parent 15a43677
2008-11-26 Adam Nemet <anemet@caviumnetworks.com>
* config/mips/mips.md (clear_hazard): Rename to
clear_hazard_<mode>. Use mode-specific addition.
(clear_cache): Rename gen_clear_hazard to gen_clear_hazard_si
or gen_clear_hazard_di depending on the size of Pmode.
2008-11-26 DJ Delorie <dj@redhat.com> 2008-11-26 DJ Delorie <dj@redhat.com>
* configure.ac: Test m32c-elf-gas for .loc. * configure.ac: Test m32c-elf-gas for .loc.
...@@ -4703,7 +4703,9 @@ ...@@ -4703,7 +4703,9 @@
{ {
mips_expand_synci_loop (operands[0], operands[1]); mips_expand_synci_loop (operands[0], operands[1]);
emit_insn (gen_sync ()); emit_insn (gen_sync ());
emit_insn (gen_clear_hazard ()); emit_insn (Pmode == SImode
? gen_clear_hazard_si ()
: gen_clear_hazard_di ());
} }
else if (mips_cache_flush_func && mips_cache_flush_func[0]) else if (mips_cache_flush_func && mips_cache_flush_func[0])
{ {
...@@ -4732,14 +4734,14 @@ ...@@ -4732,14 +4734,14 @@
"ISA_HAS_SYNCI" "ISA_HAS_SYNCI"
"rdhwr\t%0,$1") "rdhwr\t%0,$1")
(define_insn "clear_hazard" (define_insn "clear_hazard_<mode>"
[(unspec_volatile [(const_int 0)] UNSPEC_CLEAR_HAZARD) [(unspec_volatile [(const_int 0)] UNSPEC_CLEAR_HAZARD)
(clobber (reg:SI 31))] (clobber (reg:P 31))]
"ISA_HAS_SYNCI" "ISA_HAS_SYNCI"
{ {
return "%(%<bal\t1f\n" return "%(%<bal\t1f\n"
"\tnop\n" "\tnop\n"
"1:\taddiu\t$31,$31,12\n" "1:\t<d>addiu\t$31,$31,12\n"
"\tjr.hb\t$31\n" "\tjr.hb\t$31\n"
"\tnop%>%)"; "\tnop%>%)";
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment