PATCH: Mips tweak

Mark Mitchell mark@codesourcery.com
Sun Nov 10 21:57:00 GMT 2002


I applied this patch on the branch at the behest of Joel Sherrill and
Eric Christopher.  It is alrady on the mainline.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com

2002-11-10  Ralf Corsepius <corepiu@faw.uni-ulm.de>

	* config/mips/mips.md (movdi_usd): Use %z1 in place of %1.

Index: config/mips/mips.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mips/mips.md,v
retrieving revision 1.116.2.2
diff -c -5 -p -r1.116.2.2 mips.md
*** config/mips/mips.md	24 Apr 2002 17:40:50 -0000	1.116.2.2
--- config/mips/mips.md	11 Nov 2002 05:53:07 -0000
*************** move\\t%0,%z4\\n\\
*** 4880,4890 ****
    /* The stack/frame pointers are always aligned, so we can convert
       to the faster sw if we are referencing an aligned stack location.  */
  
    if ((INTVAL (offset) & 7) == 0
        && (mem_addr == stack_pointer_rtx || mem_addr == frame_pointer_rtx))
!     return \"sd\\t%1,%0\";
  
    return \"usd\\t%z1,%0\";
  }"
    [(set_attr "type"	"store")
     (set_attr "mode"	"SI")
--- 4880,4890 ----
    /* The stack/frame pointers are always aligned, so we can convert
       to the faster sw if we are referencing an aligned stack location.  */
  
    if ((INTVAL (offset) & 7) == 0
        && (mem_addr == stack_pointer_rtx || mem_addr == frame_pointer_rtx))
!     return \"sd\\t%z1,%0\";
  
    return \"usd\\t%z1,%0\";
  }"
    [(set_attr "type"	"store")
     (set_attr "mode"	"SI")



More information about the Gcc-patches mailing list