This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Recent change to mips_output_move


Eric, your last commit had the following (unannounced ;) change to
mips_output_move.  Was this just something you trying out and
committed accidentally?  Or was it a deliberate change?
(And if it was deliberate, why was it needed? ;)

It breaks mips16 builds, so I'd like to revert it if that's OK...

Richard


Index: config/mips/mips.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mips/mips.c,v
retrieving revision 1.268
retrieving revision 1.269
diff -u -p -d -r1.268 -r1.269
--- config/mips/mips.c	29 May 2003 08:33:24 -0000	1.268
+++ config/mips/mips.c	30 May 2003 16:23:59 -0000	1.269
@@ -2894,7 +2896,7 @@ mips_output_move (dest, src)
       if (dest_code == REG)
 	{
 	  if (GP_REG_P (REGNO (dest)))
-	    return "move\t%0,%z1";
+	    return "or\t%0,%z1,$0";
 
 	  if (MD_REG_P (REGNO (dest)))
 	    return "mt%0\t%z1";
@@ -2961,7 +2963,7 @@ mips_output_move (dest, src)
 	  break;
 
 	case CONSTANT_GP:
-	  return "move\t%0,%1";
+	  return "or\t%0,%1,$0";
 
 	case CONSTANT_RELOC:
 	  return (TARGET_MIPS16 ? "li\t%0,0\n\taddiu\t%0,%1" : "li\t%0,%1");


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]