]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
mips.md (clear_hazard): Rename to clear_hazard_<mode>.
authorAdam Nemet <anemet@caviumnetworks.com>
Wed, 26 Nov 2008 22:14:50 +0000 (22:14 +0000)
committerAdam Nemet <nemet@gcc.gnu.org>
Wed, 26 Nov 2008 22:14:50 +0000 (22:14 +0000)
* 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

gcc/ChangeLog
gcc/config/mips/mips.md

index 360d4317d25d6b80fa611ea450b67f39fc420e65..c54964be926d5bde301f4a23ed577bf92b112084 100644 (file)
@@ -1,3 +1,10 @@
+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>
 
        * configure.ac: Test m32c-elf-gas for .loc.
index 046f6a793a82e5b8bd8f714113dacf6d558395e1..21b76c544759aa08436a18108b882c0c2cdf172b 100644 (file)
     {
       mips_expand_synci_loop (operands[0], operands[1]);
       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])
     {
   "ISA_HAS_SYNCI"
   "rdhwr\t%0,$1")
 
-(define_insn "clear_hazard"
+(define_insn "clear_hazard_<mode>"
   [(unspec_volatile [(const_int 0)] UNSPEC_CLEAR_HAZARD)
-   (clobber (reg:SI 31))]
+   (clobber (reg:P 31))]
   "ISA_HAS_SYNCI"
 {
   return "%(%<bal\t1f\n"
          "\tnop\n"
-         "1:\taddiu\t$31,$31,12\n"
+         "1:\t<d>addiu\t$31,$31,12\n"
          "\tjr.hb\t$31\n"
          "\tnop%>%)";
 }