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]

Re: Remove CONST_DOUBLE_MEM


 > Sat Nov  3 10:37:56 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
 > 
 >     * rtl.h (gen_rtx_CONST_DOUBLE): Update parameters.


Richard,

You didn't propagate this into the config/sparc directory.

I think this is the right fix, ok to install?

		--Kaveh



2001-11-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

	* sparc.c (sparc_emit_set_const32, GEN_HIGHINT64, GEN_INT64,
	sparc_emit_set_const64): Update calls to `gen_rtx_CONST_DOUBLE' as
	per last change.
	* sparc.md: Likewise.	

diff -rup /tmp/egcs-CVS20011103/gcc/config/sparc/sparc.c egcs-CVS20011103/gcc/config/sparc/sparc.c
--- /tmp/egcs-CVS20011103/gcc/config/sparc/sparc.c	Sat Nov  3 16:30:23 2001
+++ egcs-CVS20011103/gcc/config/sparc/sparc.c	Sun Nov  4 00:56:58 2001
@@ -1307,7 +1307,7 @@ sparc_emit_set_const32 (op0, op1)
 	{
 	  emit_insn (gen_rtx_SET (VOIDmode,
 				  temp,
-				  gen_rtx_CONST_DOUBLE (VOIDmode, const0_rtx,
+				  gen_rtx_CONST_DOUBLE (VOIDmode,
 							INTVAL (op1) & 0xfffffc00, 0)));
 	}
       else
@@ -1478,13 +1478,10 @@ static rtx gen_safe_XOR64 PARAMS ((rtx, 
 #define GEN_INT64(__x)			GEN_INT (__x)
 #else
 #define GEN_HIGHINT64(__x) \
-	gen_rtx_CONST_DOUBLE (VOIDmode, const0_rtx, \
-			      (__x) & 0xfffffc00, 0)
+	gen_rtx_CONST_DOUBLE (VOIDmode, (__x) & 0xfffffc00, 0)
 #define GEN_INT64(__x) \
-	gen_rtx_CONST_DOUBLE (VOIDmode, const0_rtx, \
-			      (__x) & 0xffffffff, \
-			      ((__x) & 0x80000000 \
-			       ? 0xffffffff : 0))
+	gen_rtx_CONST_DOUBLE (VOIDmode, (__x) & 0xffffffff, \
+			      ((__x) & 0x80000000 ? 0xffffffff : 0))
 #endif
 
 /* The optimizer is not to assume anything about exactly
@@ -2053,7 +2050,7 @@ sparc_emit_set_const64 (op0, op1)
 	  negated_const = GEN_INT (((~low_bits) & 0xfffffc00) |
 				   (((HOST_WIDE_INT)((~high_bits) & 0xffffffff))<<32));
 #else
-	  negated_const = gen_rtx_CONST_DOUBLE (DImode, const0_rtx,
+	  negated_const = gen_rtx_CONST_DOUBLE (DImode,
 						(~low_bits) & 0xfffffc00,
 						(~high_bits) & 0xffffffff);
 #endif
diff -rup /tmp/egcs-CVS20011103/gcc/config/sparc/sparc.md egcs-CVS20011103/gcc/config/sparc/sparc.md
--- /tmp/egcs-CVS20011103/gcc/config/sparc/sparc.md	Sat Nov  3 16:30:23 2001
+++ egcs-CVS20011103/gcc/config/sparc/sparc.md	Sun Nov  4 00:56:32 2001
@@ -3375,8 +3375,7 @@
       emit_insn (gen_movdi (operands[0], GEN_INT (val)));
 #else
       emit_insn (gen_movdi (operands[0],
-                            gen_rtx_CONST_DOUBLE (VOIDmode, const0_rtx,
-                                                  l[1], l[0])));
+                            gen_rtx_CONST_DOUBLE (VOIDmode, l[1], l[0])));
 #endif
     }
   else


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