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]

[patch] config: Use const0_rtx instead of GEN_INT (0), etc.


Hi,

Built h8300-elf.  Committed as obvious.

Kazu Hirata

2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>

	* config/alpha/alpha.c, config/arm/arm.c, config/c4x/c4x.c,
	config/fr30/fr30.md, config/frv/frv.c, config/frv/frv.md,
	config/h8300/h8300.c, config/ia64/ia64.c, config/ip2k/ip2k.md,
	config/m32r/m32r.md, config/m68hc11/m68hc11.c,
	config/mips/mips.md, config/mmix/mmix.c,
	config/mn10300/mn10300.c, config/mn10300/mn10300.md,
	config/ns32k/ns32k.c, config/pa/pa.md, config/pdp11/pdp11.c,
	config/rs6000/altivec.md, config/s390/s390.c,
	config/s390/s390.h, config/s390/s390.md, config/sh/sh.c,
	config/sh/sh.h, config/sh/sh.md, config/stormy16/stormy16.c:
	Use const0_rtx instead of GEN_INT (0).  Do the same for other
	constants that are readily available.

Index: alpha/alpha.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/alpha/alpha.c,v
retrieving revision 1.347
diff -u -r1.347 alpha.c
--- alpha/alpha.c	31 Jan 2004 02:06:50 -0000	1.347
+++ alpha/alpha.c	3 Feb 2004 05:46:37 -0000
@@ -6100,7 +6100,7 @@
 	  (VOIDmode,
 	   gen_rtvec (2,
 		      gen_rtx_EXPR_LIST (VOIDmode, gen_rtx_REG (cmode, 32),
-				         GEN_INT (0)),
+				         const0_rtx),
 		      gen_rtx_EXPR_LIST (VOIDmode, gen_rtx_REG (cmode, 33),
 				         GEN_INT (GET_MODE_SIZE (cmode)))));
       }
@@ -7845,7 +7845,7 @@
 
 	  emit_insn (gen_blockage ());
 	  FRP (emit_insn (gen_adddi3 (hard_frame_pointer_rtx,
-				      hard_frame_pointer_rtx, GEN_INT (-1))));
+				      hard_frame_pointer_rtx, constm1_rtx)));
         }
     }
 }
@@ -9685,7 +9685,7 @@
          have a frame.  */
 
       FRP (emit_insn (gen_adddi3 (hard_frame_pointer_rtx,
-                                  hard_frame_pointer_rtx, GEN_INT (1))));
+                                  hard_frame_pointer_rtx, const1_rtx)));
     }
 }
 
Index: arm/arm.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/arm/arm.c,v
retrieving revision 1.325
diff -u -r1.325 arm.c
--- arm/arm.c	2 Feb 2004 06:30:59 -0000	1.325
+++ arm/arm.c	3 Feb 2004 05:46:43 -0000
@@ -5455,7 +5455,7 @@
 	    {
 	      rtx tmp = gen_reg_rtx (SImode);
 
-	      emit_insn (gen_addsi3 (dst, dst, GEN_INT (2)));
+	      emit_insn (gen_addsi3 (dst, dst, const2_rtx));
 	      emit_insn (gen_lshrsi3 (tmp, part_bytes_reg, GEN_INT (16)));
 	      part_bytes_reg = tmp;
 	    }
Index: c4x/c4x.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/c4x/c4x.c,v
retrieving revision 1.143
diff -u -r1.143 c4x.c
--- c4x/c4x.c	2 Feb 2004 06:31:00 -0000	1.143
+++ c4x/c4x.c	3 Feb 2004 05:46:45 -0000
@@ -1077,7 +1077,7 @@
 					 gen_rtx_PLUS 
 					 (QImode, gen_rtx_REG (QImode,
 							       AR3_REGNO),
-					  GEN_INT(-1)))));
+					  constm1_rtx))));
 	      RTX_FRAME_RELATED_P (insn) = 1;
 	      
 	      /* We already have the return value and the fp,
@@ -2359,8 +2359,8 @@
     {
       /* We can not use the rptb insn.  Replace it so reorg can use
          the delay slots of the jump insn.  */
-      emit_insn_before (gen_addqi3 (count_reg, count_reg, GEN_INT (-1)), insn);
-      emit_insn_before (gen_cmpqi (count_reg, GEN_INT (0)), insn);
+      emit_insn_before (gen_addqi3 (count_reg, count_reg, constm1_rtx), insn);
+      emit_insn_before (gen_cmpqi (count_reg, const0_rtx), insn);
       emit_insn_before (gen_bge (start_label), insn);
       LABEL_NUSES (start_label)++;
       delete_insn (insn);
Index: fr30/fr30.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/fr30/fr30.md,v
retrieving revision 1.22
diff -u -r1.22 fr30.md
--- fr30/fr30.md	13 Dec 2003 04:44:05 -0000	1.22
+++ fr30/fr30.md	3 Feb 2004 05:46:46 -0000
@@ -810,7 +810,7 @@
         {
 	  rtx reg = gen_rtx_REG (SImode, 0/*COMPILER_SCRATCH_REGISTER*/);
 	  
-	  emit_insn (gen_movsi (reg, GEN_INT (0)));
+	  emit_insn (gen_movsi (reg, const0_rtx));
 	  emit_insn (gen_subsi3 (reg, reg, operands[0]));
 	  emit_insn (gen_movsi (operands[0], reg));
 	}
@@ -818,14 +818,14 @@
 	{
 	  rtx reg = gen_reg_rtx (SImode);
 	
-	  emit_insn (gen_movsi (reg, GEN_INT (0)));
+	  emit_insn (gen_movsi (reg, const0_rtx));
 	  emit_insn (gen_subsi3 (reg, reg, operands[0]));
 	  emit_insn (gen_movsi (operands[0], reg));
 	}
     }
   else
     {
-      emit_insn (gen_movsi_internal (operands[0], GEN_INT (0)));
+      emit_insn (gen_movsi_internal (operands[0], const0_rtx));
       emit_insn (gen_subsi3 (operands[0], operands[0], operands[1]));
     }
   DONE;
@@ -921,20 +921,20 @@
         {
 	  rtx reg = gen_rtx_REG (SImode, 0/*COMPILER_SCRATCH_REGISTER*/);
 	  
-	  emit_insn (gen_movsi (reg, GEN_INT (-1)));
+	  emit_insn (gen_movsi (reg, constm1_rtx));
 	  emit_insn (gen_xorsi3 (operands[0], operands[0], reg));
 	}
       else
 	{
 	  rtx reg = gen_reg_rtx (SImode);
 	
-	  emit_insn (gen_movsi (reg, GEN_INT (-1)));
+	  emit_insn (gen_movsi (reg, constm1_rtx));
 	  emit_insn (gen_xorsi3 (operands[0], operands[0], reg));
 	}
     }
   else
     {
-      emit_insn (gen_movsi_internal (operands[0], GEN_INT (-1)));
+      emit_insn (gen_movsi_internal (operands[0], constm1_rtx));
       emit_insn (gen_xorsi3 (operands[0], operands[1], operands[0]));
     }
   DONE;
Index: frv/frv.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/frv/frv.c,v
retrieving revision 1.48
diff -u -r1.48 frv.c
--- frv/frv.c	3 Feb 2004 00:52:32 -0000	1.48
+++ frv/frv.c	3 Feb 2004 05:46:50 -0000
@@ -9201,7 +9201,7 @@
 static rtx
 frv_expand_noargs_builtin (enum insn_code icode)
 {
-  rtx pat = GEN_FCN (icode) (GEN_INT (0));
+  rtx pat = GEN_FCN (icode) (const0_rtx);
   if (pat)
     emit_insn (pat);
 
Index: frv/frv.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/frv/frv.md,v
retrieving revision 1.9
diff -u -r1.9 frv.md
--- frv/frv.md	31 Jan 2004 02:06:56 -0000	1.9
+++ frv/frv.md	3 Feb 2004 05:46:52 -0000
@@ -5502,7 +5502,7 @@
 
   /* Scale index-low by wordsize.  */
   scale = gen_reg_rtx (SImode);
-  emit_insn (gen_ashlsi3 (scale, indx, GEN_INT (2)));
+  emit_insn (gen_ashlsi3 (scale, indx, const2_rtx));
 
   /* Load the address, add the start of the table back in,
      and jump to it.  */
Index: h8300/h8300.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/h8300/h8300.c,v
retrieving revision 1.269
diff -u -r1.269 h8300.c
--- h8300/h8300.c	2 Feb 2004 15:18:18 -0000	1.269
+++ h8300/h8300.c	3 Feb 2004 05:46:53 -0000
@@ -3867,7 +3867,7 @@
 
       /* If the rotate amount is less than or equal to 0,
 	 we go out of the loop.  */
-      emit_cmp_and_jump_insns (rotate_amount, GEN_INT (0), LE, NULL_RTX,
+      emit_cmp_and_jump_insns (rotate_amount, const0_rtx, LE, NULL_RTX,
 			       QImode, 0, end_label);
 
       /* Initialize the loop counter.  */
@@ -3876,16 +3876,16 @@
       emit_label (start_label);
 
       /* Rotate by one bit.  */
-      tmp = gen_rtx_fmt_ee (code, mode, dst, GEN_INT (1));
+      tmp = gen_rtx_fmt_ee (code, mode, dst, const1_rtx);
       emit_insn (gen_rtx_SET (mode, dst, tmp));
 
       /* Decrement the counter by 1.  */
-      tmp = gen_rtx_PLUS (QImode, counter, GEN_INT (-1));
+      tmp = gen_rtx_PLUS (QImode, counter, constm1_rtx);
       emit_insn (gen_rtx_SET (VOIDmode, counter, tmp));
 
       /* If the loop counter is nonzero, we go back to the beginning
 	 of the loop.  */
-      emit_cmp_and_jump_insns (counter, GEN_INT (0), NE, NULL_RTX, QImode, 1,
+      emit_cmp_and_jump_insns (counter, const0_rtx, NE, NULL_RTX, QImode, 1,
 			       start_label);
 
       emit_label (end_label);
Index: ia64/ia64.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/ia64/ia64.c,v
retrieving revision 1.268
diff -u -r1.268 ia64.c
--- ia64/ia64.c	28 Jan 2004 18:13:27 -0000	1.268
+++ ia64/ia64.c	3 Feb 2004 05:46:57 -0000
@@ -3180,9 +3180,9 @@
 	 It is unclear how to compute that number here.  */
       if (current_frame_info.n_input_regs != 0)
 	emit_insn (gen_alloc (gen_rtx_REG (DImode, fp),
-			      GEN_INT (0), GEN_INT (0),
+			      const0_rtx, const0_rtx,
 			      GEN_INT (current_frame_info.n_input_regs),
-			      GEN_INT (0)));
+			      const0_rtx));
     }
 }
 
@@ -7151,7 +7151,7 @@
 		       onto MFI because we will add nops before the
 		       insn.  It simplifies subsequent code a lot.  */
 		    PATTERN (last)
-		      = gen_bundle_selector (GEN_INT (2)); /* -> MFI */
+		      = gen_bundle_selector (const2_rtx); /* -> MFI */
 		  break;
 		}
 	      else if (recog_memoized (last) != CODE_FOR_insn_group_barrier)
@@ -7177,7 +7177,7 @@
 	    for (i = add_cycles [INSN_UID (insn)]; i > 0; i--)
 	      {
 		/* Insert "MII;" template.  */
-		ia64_emit_insn_before (gen_bundle_selector (GEN_INT (0)),
+		ia64_emit_insn_before (gen_bundle_selector (const0_rtx),
 				       insn);
 		ia64_emit_insn_before (gen_nop (), insn);
 		ia64_emit_insn_before (gen_nop (), insn);
Index: ip2k/ip2k.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/ip2k/ip2k.md,v
retrieving revision 1.9
diff -u -r1.9 ip2k.md
--- ip2k/ip2k.md	2 Feb 2004 15:18:19 -0000	1.9
+++ ip2k/ip2k.md	3 Feb 2004 05:47:01 -0000
@@ -1087,7 +1087,7 @@
 	  instructions. */
        if (! nonimmediate_operand (operands[1], HImode))
          operands[1] = copy_to_mode_reg (HImode, operands[1]);
-       emit_insn (gen_ashlhi3 (operands[0], operands[1], GEN_INT (1)));
+       emit_insn (gen_ashlhi3 (operands[0], operands[1], const1_rtx));
        DONE;
      }
   ")
@@ -3154,13 +3154,13 @@
     if (INTVAL (operands[2]) == 16)
       {
         emit_insn (gen_movhi (operands[3], operands[5]));
-        emit_insn (gen_movhi (operands[4], GEN_INT (0)));
+        emit_insn (gen_movhi (operands[4], const0_rtx));
       }
     else
       {
         operands[6] = GEN_INT (INTVAL (operands[2]) - 16);
 	emit_insn (gen_ashlhi3 (operands[3], operands[5], operands[6]));
-        emit_insn (gen_movhi (operands[4], GEN_INT (0)));
+        emit_insn (gen_movhi (operands[4], const0_rtx));
       }
   }")
 
@@ -3388,18 +3388,18 @@
 	emit_insn (gen_movhi (operands[7], operands[11]));
 	emit_insn (gen_movhi (operands[8], operands[12]));
 	emit_insn (gen_movhi (operands[9], operands[13]));
-	emit_insn (gen_movhi (operands[10], GEN_INT (0)));
+	emit_insn (gen_movhi (operands[10], const0_rtx));
       }
     else if (INTVAL (operands[2]) == 32)
       {
         emit_insn (gen_movsi (operands[3], operands[5]));
-        emit_insn (gen_movsi (operands[4], GEN_INT (0)));
+        emit_insn (gen_movsi (operands[4], const0_rtx));
       }
     else
       {
         operands[6] = GEN_INT (INTVAL (operands[2]) - 32);
 	emit_insn (gen_ashlsi3 (operands[3], operands[5], operands[6]));
-        emit_insn (gen_movsi (operands[4], GEN_INT (0)));
+        emit_insn (gen_movsi (operands[4], const0_rtx));
       }
   }")
 
@@ -3896,7 +3896,7 @@
         operands[6] = GEN_INT (INTVAL (operands[2]) - 8);
 	emit_insn (gen_lshrqi3 (operands[4], operands[5], operands[6]));
       }
-    emit_insn (gen_movqi (operands[3], GEN_INT (0)));
+    emit_insn (gen_movqi (operands[3], const0_rtx));
   }")
 
 (define_insn "lshrhi3" ;			      0   1   2  3   4
@@ -4027,7 +4027,7 @@
         operands[6] = GEN_INT (INTVAL (operands[2]) - 16);
 	emit_insn (gen_lshrhi3 (operands[4], operands[5], operands[6]));
       }
-    emit_insn (gen_movhi (operands[3], GEN_INT (0)));
+    emit_insn (gen_movhi (operands[3], const0_rtx));
   }")
 
 ;; This occurs frequently in supporting FP among other things,
@@ -4258,18 +4258,18 @@
 	emit_insn (gen_movhi (operands[10], operands[11]));
 	emit_insn (gen_movhi (operands[9], operands[12]));
 	emit_insn (gen_movhi (operands[8], operands[13]));
-	emit_insn (gen_movhi (operands[7], GEN_INT(0)));
+	emit_insn (gen_movhi (operands[7], const0_rtx));
       }
     else if (INTVAL (operands[2]) == 32)
       {
         emit_insn (gen_movsi (operands[4], operands[5]));
-        emit_insn (gen_movsi (operands[3], GEN_INT (0)));
+        emit_insn (gen_movsi (operands[3], const0_rtx));
       }
     else
       {
         operands[6] = GEN_INT (INTVAL (operands[2]) - 32);
 	emit_insn (gen_lshrsi3 (operands[4], operands[5], operands[6]));
-        emit_insn (gen_movsi (operands[3], GEN_INT (0)));
+        emit_insn (gen_movsi (operands[3], const0_rtx));
       }
   }")
 
Index: m32r/m32r.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/m32r/m32r.md,v
retrieving revision 1.42
diff -u -r1.42 m32r.md
--- m32r/m32r.md	31 Jan 2004 02:07:00 -0000	1.42
+++ m32r/m32r.md	3 Feb 2004 05:47:02 -0000
@@ -1743,7 +1743,7 @@
   rtx op1 = operands[1];
 
   start_sequence ();
-  emit_insn (gen_cmp_ltusi_insn (op1, GEN_INT (1)));
+  emit_insn (gen_cmp_ltusi_insn (op1, const1_rtx));
   emit_insn (gen_movcc_insn (op0));
   operands[3] = get_insns ();
   end_sequence ();
@@ -1797,7 +1797,7 @@
   else
     emit_insn (gen_xorsi3 (op3, op1, op2));
 
-  emit_insn (gen_cmp_ltusi_insn (op3, GEN_INT (1)));
+  emit_insn (gen_cmp_ltusi_insn (op3, const1_rtx));
   emit_insn (gen_movcc_insn (op0));
   operands[4] = get_insns ();
   end_sequence ();
@@ -1932,7 +1932,7 @@
       HOST_WIDE_INT value = INTVAL (op2);
       if (value >= 2147483647)
 	{
-	  emit_move_insn (op0, GEN_INT (1));
+	  emit_move_insn (op0, const1_rtx);
 	  DONE;
 	}
 
@@ -2153,7 +2153,7 @@
       HOST_WIDE_INT value = INTVAL (op2);
       if (value >= 2147483647)
 	{
-	  emit_move_insn (op0, GEN_INT (1));
+	  emit_move_insn (op0, const1_rtx);
 	  DONE;
 	}
 
Index: m68hc11/m68hc11.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/m68hc11/m68hc11.c,v
retrieving revision 1.94
diff -u -r1.94 m68hc11.c
--- m68hc11/m68hc11.c	1 Feb 2004 21:21:38 -0000	1.94
+++ m68hc11/m68hc11.c	3 Feb 2004 05:47:03 -0000
@@ -1690,7 +1690,7 @@
 
       if (size & 1)
 	emit_insn (gen_addhi3 (stack_pointer_rtx,
-			       stack_pointer_rtx, GEN_INT (-1)));
+			       stack_pointer_rtx, constm1_rtx));
     }
 
   /* Create the frame pointer.  */
@@ -1776,7 +1776,7 @@
 	emit_move_after_reload (scratch, stack_pop_word, scratch);
       if (size & 1)
 	emit_insn (gen_addhi3 (stack_pointer_rtx,
-			       stack_pointer_rtx, GEN_INT (1)));
+			       stack_pointer_rtx, const1_rtx));
     }
 
   /* For an interrupt handler, restore ZTMP, ZREG and XYREG.  */
@@ -1807,7 +1807,7 @@
 	}
       emit_move_after_reload (gen_rtx_MEM (HImode,
 				       gen_rtx_PLUS (HImode, addr_reg,
-						GEN_INT (1))), d_reg, 0);
+						const1_rtx)), d_reg, 0);
       if (return_size > HARD_REG_SIZE)
 	emit_move_after_reload (gen_rtx_MEM (HImode,
 					 gen_rtx_PLUS (HImode, addr_reg,
Index: mips/mips.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mips/mips.md,v
retrieving revision 1.213
diff -u -r1.213 mips.md
--- mips/mips.md	1 Feb 2004 11:46:42 -0000	1.213
+++ mips/mips.md	3 Feb 2004 05:47:06 -0000
@@ -4417,7 +4417,7 @@
   HOST_WIDE_INT val = INTVAL (operands[1]);
 
   if (val < 0)
-    operands[2] = GEN_INT (0);
+    operands[2] = const0_rtx;
   else if (val >= 32 * 8)
     {
       int off = val & 7;
@@ -4540,7 +4540,7 @@
   HOST_WIDE_INT val = INTVAL (operands[1]);
 
   if (val < 0)
-    operands[2] = GEN_INT (0);
+    operands[2] = const0_rtx;
   else if (val >= 32 * 4)
     {
       int off = val & 3;
@@ -4839,7 +4839,7 @@
   HOST_WIDE_INT val = INTVAL (operands[1]);
 
   if (val < 0)
-    operands[2] = GEN_INT (0);
+    operands[2] = const0_rtx;
   else if (val >= 32 * 2)
     {
       int off = val & 1;
@@ -4943,7 +4943,7 @@
   HOST_WIDE_INT val = INTVAL (operands[1]);
 
   if (val < 0)
-    operands[2] = GEN_INT (0);
+    operands[2] = const0_rtx;
   else
     {
       operands[1] = GEN_INT (0x7f);
Index: mmix/mmix.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mmix/mmix.c,v
retrieving revision 1.57
diff -u -r1.57 mmix.c
--- mmix/mmix.c	30 Jan 2004 23:16:13 -0000	1.57
+++ mmix/mmix.c	3 Feb 2004 05:47:07 -0000
@@ -662,7 +662,7 @@
   vec[nregs - 1]
     = gen_rtx_EXPR_LIST (VOIDmode,
 			 gen_rtx_REG (cmode, first_val_regnum + nregs - 1),
-			 GEN_INT (0));
+			 const0_rtx);
 
   return gen_rtx_PARALLEL (VOIDmode, gen_rtvec_v (nregs, vec));
 }
Index: mn10300/mn10300.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mn10300/mn10300.c,v
retrieving revision 1.64
diff -u -r1.64 mn10300.c
--- mn10300/mn10300.c	2 Feb 2004 06:31:04 -0000	1.64
+++ mn10300/mn10300.c	3 Feb 2004 05:47:08 -0000
@@ -366,7 +366,7 @@
       case 'A':
 	fputc ('(', file);
 	if (GET_CODE (XEXP (x, 0)) == REG)
-	  output_address (gen_rtx_PLUS (SImode, XEXP (x, 0), GEN_INT (0)));
+	  output_address (gen_rtx_PLUS (SImode, XEXP (x, 0), const0_rtx));
 	else
 	  output_address (XEXP (x, 0));
 	fputc (')', file);
Index: mn10300/mn10300.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mn10300/mn10300.md,v
retrieving revision 1.52
diff -u -r1.52 mn10300.md
--- mn10300/mn10300.md	5 Oct 2003 19:50:56 -0000	1.52
+++ mn10300/mn10300.md	3 Feb 2004 05:47:09 -0000
@@ -1074,7 +1074,7 @@
 {
   rtx target = gen_reg_rtx (SImode);
 
-  emit_move_insn (target, GEN_INT (0));
+  emit_move_insn (target, const0_rtx);
   emit_insn (gen_subsi3 (target, target, operands[1]));
   emit_move_insn (operands[0], target);
   DONE;
@@ -1772,7 +1772,7 @@
   emit_move_insn (index, plus_constant (operands[0], - INTVAL (operands[1])));
   emit_insn (gen_cmpsi (index, operands[2]));
   emit_jump_insn (gen_bgtu (operands[4]));
-  emit_move_insn (index, gen_rtx_ASHIFT (SImode, index, GEN_INT (2)));
+  emit_move_insn (index, gen_rtx_ASHIFT (SImode, index, const2_rtx));
   emit_move_insn (addr, gen_rtx_MEM (SImode,
 				     gen_rtx_PLUS (SImode, table, index)));
   if (flag_pic)
Index: ns32k/ns32k.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/ns32k/ns32k.c,v
retrieving revision 1.42
diff -u -r1.42 ns32k.c
--- ns32k/ns32k.c	26 Jan 2004 15:50:55 -0000	1.42
+++ ns32k/ns32k.c	3 Feb 2004 05:47:09 -0000
@@ -922,7 +922,7 @@
   else if (align == UNITS_PER_WORD)
     {
       /* insns to copy by words */
-      emit_insn (gen_lshrsi3 (count_reg, bytes_rtx, GEN_INT (2)));
+      emit_insn (gen_lshrsi3 (count_reg, bytes_rtx, const2_rtx));
       emit_insn (gen_movstrsi1 (GEN_INT (4)));
       if (constp)
 	{
@@ -963,7 +963,7 @@
 	emit_label (aligned_label);
 
       /* insns to copy by words */
-      emit_insn (gen_lshrsi3 (count_reg, bytes_reg, GEN_INT (2)));
+      emit_insn (gen_lshrsi3 (count_reg, bytes_reg, const2_rtx));
       emit_insn (gen_movstrsi1 (GEN_INT (4)));
 
       /* insns to copy rest */
Index: pa/pa.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/pa/pa.md,v
retrieving revision 1.141
diff -u -r1.141 pa.md
--- pa/pa.md	28 Jan 2004 22:50:32 -0000	1.141
+++ pa/pa.md	3 Feb 2004 05:47:12 -0000
@@ -4877,7 +4877,7 @@
   if (intval % 2 == 0 && cint_ok_for_move (intval / 2))
     {
       operands[2] = GEN_INT (intval / 2);
-      operands[3] = GEN_INT (2);
+      operands[3] = const2_rtx;
     }
   else if (intval % 4 == 0 && cint_ok_for_move (intval / 4))
     {
Index: pdp11/pdp11.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/pdp11/pdp11.c,v
retrieving revision 1.34
diff -u -r1.34 pdp11.c
--- pdp11/pdp11.c	30 Jan 2004 23:16:17 -0000	1.34
+++ pdp11/pdp11.c	3 Feb 2004 05:47:12 -0000
@@ -702,7 +702,7 @@
 	}
       else if (GET_CODE(operands[1]) == CONST_INT)
 	{
-	  latehalf[1] = GEN_INT (0);
+	  latehalf[1] = const0_rtx;
 	}
       else
 	abort();
Index: rs6000/altivec.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/altivec.md,v
retrieving revision 1.12
diff -u -r1.12 altivec.md
--- rs6000/altivec.md	9 Dec 2003 01:57:45 -0000	1.12
+++ rs6000/altivec.md	3 Feb 2004 05:47:13 -0000
@@ -571,7 +571,7 @@
 
   /* Generate [-0.0, -0.0, -0.0, -0.0].  */
   neg0 = gen_reg_rtx (V4SFmode);
-  emit_insn (gen_altivec_vspltisw_v4sf (neg0, GEN_INT (-1)));
+  emit_insn (gen_altivec_vspltisw_v4sf (neg0, constm1_rtx));
   emit_insn (gen_altivec_vslw_v4sf (neg0, neg0, neg0));
 
   /* Use the multiply-add.  */
Index: s390/s390.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/s390/s390.c,v
retrieving revision 1.131
diff -u -r1.131 s390.c
--- s390/s390.c	1 Feb 2004 21:21:41 -0000	1.131
+++ s390/s390.c	3 Feb 2004 05:47:15 -0000
@@ -2519,7 +2519,7 @@
                           int even = INTVAL (op1) - 1;
                           op0 = gen_rtx_PLUS (Pmode, op0, GEN_INT (even));
 			  op0 = gen_rtx_CONST (Pmode, op0);
-                          op1 = GEN_INT (1);
+                          op1 = const1_rtx;
                         }
 
                       emit_move_insn (temp, op0);
Index: s390/s390.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/s390/s390.h,v
retrieving revision 1.95
diff -u -r1.95 s390.h
--- s390/s390.h	31 Jan 2004 02:07:09 -0000	1.95
+++ s390/s390.h	3 Feb 2004 05:47:16 -0000
@@ -594,7 +594,7 @@
   s390_return_addr_rtx ((COUNT), DYNAMIC_CHAIN_ADDRESS ((FRAME)))
 
 /* In 31-bit mode, we need to mask off the high bit of return addresses.  */
-#define MASK_RETURN_ADDR (TARGET_64BIT ? GEN_INT (-1) : GEN_INT (0x7fffffff))
+#define MASK_RETURN_ADDR (TARGET_64BIT ? constm1_rtx : GEN_INT (0x7fffffff))
 
 
 /* Exception handling.  */
Index: s390/s390.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/s390/s390.md,v
retrieving revision 1.94
diff -u -r1.94 s390.md
--- s390/s390.md	1 Feb 2004 21:21:41 -0000	1.94
+++ s390/s390.md	3 Feb 2004 05:47:17 -0000
@@ -547,7 +547,7 @@
   [(set (reg 33)
         (compare (match_operand:HI 0 "register_operand" "d")
                  (match_operand:HI 1 "immediate_operand" "n")))]
-  "s390_match_ccmode (insn, s390_tm_ccmode (GEN_INT (-1), operands[1], 1))"
+  "s390_match_ccmode (insn, s390_tm_ccmode (constm1_rtx, operands[1], 1))"
   "tml\t%0,65535"
   [(set_attr "op_type" "RX")])
 
@@ -555,7 +555,7 @@
   [(set (reg 33)
         (compare (match_operand:QI 0 "register_operand" "d")
                  (match_operand:QI 1 "immediate_operand" "n")))]
-  "s390_match_ccmode (insn, s390_tm_ccmode (GEN_INT (-1), operands[1], 1))"
+  "s390_match_ccmode (insn, s390_tm_ccmode (constm1_rtx, operands[1], 1))"
   "tml\t%0,255"
   [(set_attr "op_type" "RI")])
 
@@ -6822,7 +6822,7 @@
    if (TARGET_64BIT)
        emit_insn (gen_ashldi3 (index, index, GEN_INT (3)));
    else
-       emit_insn (gen_ashlsi3 (index, index, GEN_INT (2)));
+       emit_insn (gen_ashlsi3 (index, index, const2_rtx));
 
    emit_move_insn (base, gen_rtx_LABEL_REF (Pmode, operands[3]));
 
Index: sh/sh.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/sh/sh.c,v
retrieving revision 1.254
diff -u -r1.254 sh.c
--- sh/sh.c	2 Feb 2004 15:18:25 -0000	1.254
+++ sh/sh.c	3 Feb 2004 05:47:21 -0000
@@ -2427,7 +2427,7 @@
 		  {
 		    operands[2] = GEN_INT (shift2 + 1);
 		    gen_shifty_op (ASHIFT, operands);
-		    operands[2] = GEN_INT (1);
+		    operands[2] = const1_rtx;
 		    gen_shifty_op (ASHIFTRT, operands);
 		    break;
 		  }
@@ -2481,7 +2481,7 @@
       operands[2] = kind == 7 ? GEN_INT (left + 1) : left_rtx;
       gen_shifty_op (ASHIFT, operands);
       if (kind == 7)
-	emit_insn (gen_ashrsi3_k (dest, dest, GEN_INT (1)));
+	emit_insn (gen_ashrsi3_k (dest, dest, const1_rtx));
       break;
     default:
       return -1;
@@ -3375,7 +3375,7 @@
 	return prev;
       /* Reorg even does nasty things with return insns that cause branches
 	 to go out of range - see find_end_label and callers.  */
-      return emit_insn_before (gen_block_branch_redirect (GEN_INT (0)) , jump);
+      return emit_insn_before (gen_block_branch_redirect (const0_rtx) , jump);
     }
   /* We can't use JUMP_LABEL here because it might be undefined
      when not optimizing.  */
@@ -8413,14 +8413,14 @@
 				 movishori));
       emit_insn (gen_rotrdi3_mextr (quad0, quad0,
 				    GEN_INT (TARGET_LITTLE_ENDIAN ? 24 : 56)));
-      emit_insn (gen_ashldi3_media (quad0, quad0, GEN_INT (2)));
+      emit_insn (gen_ashldi3_media (quad0, quad0, const2_rtx));
       emit_move_insn (gen_rtx_MEM (DImode, tramp), quad0);
       emit_insn (gen_mshflo_w_x (gen_rtx_SUBREG (V4HImode, cxtload, 0),
 				 gen_rtx_SUBREG (V2HImode, cxt, 0),
 				 movishori));
       emit_insn (gen_rotrdi3_mextr (cxtload, cxtload,
 				    GEN_INT (TARGET_LITTLE_ENDIAN ? 24 : 56)));
-      emit_insn (gen_ashldi3_media (cxtload, cxtload, GEN_INT (2)));
+      emit_insn (gen_ashldi3_media (cxtload, cxtload, const2_rtx));
       if (TARGET_LITTLE_ENDIAN)
 	{
 	  emit_insn (gen_mshflo_l_di (quad1, ptabs, cxtload));
@@ -9171,7 +9171,7 @@
     {
       emit_insn (gen_rtx_CLOBBER (VOIDmode, result));
       emit_insn (gen_subc (result, result, result));
-      emit_insn (gen_addsi3 (result, result, GEN_INT (1)));
+      emit_insn (gen_addsi3 (result, result, const1_rtx));
     }
   else if (code == EQ || code == NE)
     emit_insn (gen_move_insn (result, GEN_INT (code == NE)));
Index: sh/sh.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/sh/sh.h,v
retrieving revision 1.234
diff -u -r1.234 sh.h
--- sh/sh.h	31 Jan 2004 22:09:22 -0000	1.234
+++ sh/sh.h	3 Feb 2004 05:47:23 -0000
@@ -2097,7 +2097,7 @@
 #define TRAMPOLINE_ADJUST_ADDRESS(TRAMP) do				\
 {									\
   if (TARGET_SHMEDIA)							\
-    (TRAMP) = expand_simple_binop (Pmode, PLUS, (TRAMP), GEN_INT (1),	\
+    (TRAMP) = expand_simple_binop (Pmode, PLUS, (TRAMP), const1_rtx,	\
 				   gen_reg_rtx (Pmode), 0,		\
 				   OPTAB_LIB_WIDEN);			\
 } while (0)
Index: sh/sh.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/sh/sh.md,v
retrieving revision 1.168
diff -u -r1.168 sh.md
--- sh/sh.md	2 Feb 2004 15:18:26 -0000	1.168
+++ sh/sh.md	3 Feb 2004 05:47:27 -0000
@@ -4059,7 +4059,7 @@
 	  if ((HOST_WIDE_INT) val2 < 0 && CONST_OK_FOR_I16 (val2))
 	    {
 	      operands[1] = gen_mshflo_l_di (operands[0], operands[0],
-					     GEN_INT (0));
+					     const0_rtx);
 	      break;
 	    }
 	}
@@ -9242,7 +9242,7 @@
 	  emit_insn (gen_lshrsi3_k (shift_reg, shift_reg, GEN_INT (8)));
 	  qi_val = gen_rtx_SUBREG (QImode, shift_reg, 3);
 	}
-      emit_insn (gen_addsi3 (addr_target, addr_target, GEN_INT (-1)));
+      emit_insn (gen_addsi3 (addr_target, addr_target, constm1_rtx));
       emit_insn (gen_movqi (operands[0], qi_val));
     }
 
@@ -10669,7 +10669,7 @@
   rtx scratch = gen_reg_rtx (DImode);
   rtx last;
 
-  emit_insn (gen_adddi3 (scratch, operands[1], GEN_INT (-1)));
+  emit_insn (gen_adddi3 (scratch, operands[1], constm1_rtx));
   emit_insn (gen_xordi3 (scratch, operands[1], scratch));
   emit_insn (gen_lshrdi3_media (scratch, scratch, const1_rtx));
   emit_insn (gen_nsbdi (scratch, scratch));
@@ -10694,7 +10694,7 @@
 
   emit_insn (gen_adddi3 (discratch,
 			 simplify_gen_subreg (DImode, operands[1], SImode, 0),
-			 GEN_INT (-1)));
+			 constm1_rtx));
   emit_insn (gen_andcdi3 (discratch,
 			  simplify_gen_subreg (DImode, operands[1], SImode, 0),
 			  discratch));
Index: stormy16/stormy16.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/stormy16/stormy16.c,v
retrieving revision 1.56
diff -u -r1.56 stormy16.c
--- stormy16/stormy16.c	2 Feb 2004 15:18:27 -0000	1.56
+++ stormy16/stormy16.c	3 Feb 2004 05:47:28 -0000
@@ -1696,7 +1696,7 @@
   emit_cmp_and_jump_insns (index, range, GTU, NULL_RTX, SImode, 1,
 			   default_label);
   int_index = gen_lowpart_common (HImode, index);
-  emit_insn (gen_ashlhi3 (int_index, int_index, GEN_INT (2)));
+  emit_insn (gen_ashlhi3 (int_index, int_index, const2_rtx));
   emit_jump_insn (gen_tablejump_pcrel (int_index, table));
 }
 


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