alpha.c, [...]: Use const0_rtx instead of GEN_INT (0).
authorKazu Hirata <kazu@cs.umass.edu>
Tue, 3 Feb 2004 06:43:59 +0000 (06:43 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Tue, 3 Feb 2004 06:43:59 +0000 (06:43 +0000)
* 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.

From-SVN: r77161

27 files changed:
gcc/ChangeLog
gcc/config/alpha/alpha.c
gcc/config/arm/arm.c
gcc/config/c4x/c4x.c
gcc/config/fr30/fr30.md
gcc/config/frv/frv.c
gcc/config/frv/frv.md
gcc/config/h8300/h8300.c
gcc/config/ia64/ia64.c
gcc/config/ip2k/ip2k.md
gcc/config/m32r/m32r.md
gcc/config/m68hc11/m68hc11.c
gcc/config/mips/mips.md
gcc/config/mmix/mmix.c
gcc/config/mn10300/mn10300.c
gcc/config/mn10300/mn10300.md
gcc/config/ns32k/ns32k.c
gcc/config/pa/pa.md
gcc/config/pdp11/pdp11.c
gcc/config/rs6000/altivec.md
gcc/config/s390/s390.c
gcc/config/s390/s390.h
gcc/config/s390/s390.md
gcc/config/sh/sh.c
gcc/config/sh/sh.h
gcc/config/sh/sh.md
gcc/config/stormy16/stormy16.c

index 972ebf82675d7072fcd215052b000df3558e18d9..d59d46ac91101c1359b9d8477b2c495ea5cac7ca 100644 (file)
@@ -1,3 +1,18 @@
+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.
+
 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
 
        * doloop.c, optabs.c, regmove.c, sched-deps.c,
index a630e419734a94043d8833023a236b58f20fd0ae..7038c3e2256dc929d227f8eee3edc655f27126f7 100644 (file)
@@ -6100,7 +6100,7 @@ function_value (tree valtype, tree func ATTRIBUTE_UNUSED,
          (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 @@ alpha_expand_epilogue (void)
 
          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 @@ unicosmk_gen_dsib (unsigned long *imaskP)
          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 4cc8e2620ee2aa996b1932dc0a773ef828960418..0be109460519a604a26a72595302887805aff225 100644 (file)
@@ -5455,7 +5455,7 @@ arm_gen_movstrqi (rtx *operands)
            {
              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 3b01c50e1b2505a98c30e07f285b0122b18ad7bd..0d06a12a9fd28a0a4301c348c9753968a6fbbae3 100644 (file)
@@ -1077,7 +1077,7 @@ c4x_expand_epilogue(void)
                                         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 @@ c4x_rptb_insert (rtx insn)
     {
       /* 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 5be9d9ae5cecd1e0cd6db5369136e51cd443c8c6..071299e1dc9bbaddb2d2217f2c8771f8f582f9ec 100644 (file)
         {
          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));
        }
        {
          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;
         {
          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 ac3a792b55cf3ad740020b59d497a0bd8199655f..32c2d27d6e3f3ebf26a91afbb638e68133d26cab 100644 (file)
@@ -9201,7 +9201,7 @@ frv_expand_mclracc_builtin (tree arglist)
 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 aef10bc9d43bbe206dfb713de931f99f5d01a9fe..e3c9520a1ee6ecf63af11220351ad9c4d58ce710 100644 (file)
 
   /* 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 1dc342681c744ee7bfc0a3104ac211612ae79aae..bcf25ccf0ad72a4a4c384fe8686f8db391a25918 100644 (file)
@@ -3867,7 +3867,7 @@ expand_a_rotate (enum rtx_code code, rtx operands[])
 
       /* 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 @@ expand_a_rotate (enum rtx_code code, rtx operands[])
       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 12b563faadb23b31a795858ff5b0a28c4476d248..e7ad9e71301f1cdcb805d366a6744c1fdf3915c0 100644 (file)
@@ -3180,9 +3180,9 @@ ia64_expand_epilogue (int sibcall_p)
         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 @@ bundling (FILE *dump, int verbose, rtx prev_head_insn, rtx tail)
                       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 @@ bundling (FILE *dump, int verbose, rtx prev_head_insn, rtx tail)
            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 4e592e0fe1cbd7a08bc6b1beab7ce07becd20611..5e2dcf1f9e33e89add7144a8013f87e2c00a3f58 100644 (file)
          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;
      }
   ")
     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));
       }
   }")
 
        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));
       }
   }")
 
         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
         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,
        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 5932f4326a660d953d91194b4a2c81a9f5760592..88801363699cfeda2a3907eff2ec34f2064af61d 100644 (file)
   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 ();
   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 ();
       HOST_WIDE_INT value = INTVAL (op2);
       if (value >= 2147483647)
        {
-         emit_move_insn (op0, GEN_INT (1));
+         emit_move_insn (op0, const1_rtx);
          DONE;
        }
 
       HOST_WIDE_INT value = INTVAL (op2);
       if (value >= 2147483647)
        {
-         emit_move_insn (op0, GEN_INT (1));
+         emit_move_insn (op0, const1_rtx);
          DONE;
        }
 
index 357c6e79dbad27e261729a0b092a7463bee710a5..188c8994740f5ff7a6a75c9a458f74c471fbc4a8 100644 (file)
@@ -1690,7 +1690,7 @@ expand_prologue (void)
 
       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 @@ expand_epilogue (void)
        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 @@ expand_epilogue (void)
        }
       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 e21e851b75bce8af47bbf742f9fe6e888b89ae37..caf88e2a71ae92ae4c18ee240cffcb88b88a63d8 100644 (file)
@@ -4417,7 +4417,7 @@ dsrl\t%3,%3,1\n\
   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 @@ dsrl\t%3,%3,1\n\
   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 @@ dsrl\t%3,%3,1\n\
   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 @@ dsrl\t%3,%3,1\n\
   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 46bfcea210c3ce1a5fb107a5eb47bcc71aafedb2..4827c85402a890fa6e2232f3a81b96051b2db1ec 100644 (file)
@@ -662,7 +662,7 @@ mmix_function_outgoing_value (tree valtype, tree func ATTRIBUTE_UNUSED)
   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 43a6d1030acf6325470b56d54a14f99fcb412794..f7811390d4726e18d46be7a274eccafe457990fe 100644 (file)
@@ -366,7 +366,7 @@ print_operand (FILE *file, rtx x, int code)
       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 c9d9bb858032ee46b8a8fdeaf51a6b565e82626a..4e8e9b7736444d37ec23633e22ae14e3a377bf7a 100644 (file)
 {
   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;
   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 ff9f5a70a1e41f30e4673ec67b34324275fe9e43..e6e028fdd487efdc39059d0c1be1c4b1aacdd019 100644 (file)
@@ -922,7 +922,7 @@ expand_block_move (rtx operands[])
   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 @@ expand_block_move (rtx operands[])
        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 f009f559eb4aa5fd2ce36edc66ab664cdab15945..4f060e3191edbfed9f7ef56c1aba308660156fcb 100644 (file)
   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 2ef56c0b1428db36bfffbbe672baee26eed0379d..1b438d68970a563bdddebc59d425ff5a2d9200d0 100644 (file)
@@ -702,7 +702,7 @@ output_move_quad (rtx *operands)
        }
       else if (GET_CODE(operands[1]) == CONST_INT)
        {
-         latehalf[1] = GEN_INT (0);
+         latehalf[1] = const0_rtx;
        }
       else
        abort();
index 73d0417771dfaab866121cb9f6254f941fdd922d..aa04071a8944b992d8d9f62812e5a830bc0e03df 100644 (file)
 
   /* 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 3342b36e84d95a63a9b7091389513f01274ed27c..1aafdc6492ad71f09cadd5b2442125b5d823b88b 100644 (file)
@@ -2519,7 +2519,7 @@ legitimize_pic_address (rtx orig, rtx reg)
                           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 8382174fa6ccf6549cc4a928376e61f5352f5daa..7f6fa5c2fb6289161476f70f3db9aa837429812e 100644 (file)
@@ -594,7 +594,7 @@ extern int current_function_outgoing_args_size;
   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 81dad009c793a4396683e140386bd27b43e55815..2ebee93437631f733cc0e09a0baaee3d4c5ad5f1 100644 (file)
   [(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")])
 
   [(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")])
 
    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 a323680260980cd5f33c5d187fb0aa26c2cc26fa..caebf93d62dba777a8252362480bc707fea593b4 100644 (file)
@@ -2427,7 +2427,7 @@ gen_shl_sext (rtx dest, rtx left_rtx, rtx size_rtx, rtx source)
                  {
                    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 @@ gen_shl_sext (rtx dest, rtx left_rtx, rtx size_rtx, rtx source)
       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 @@ gen_block_redirect (rtx jump, int addr, int need_block)
        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 @@ sh_initialize_trampoline (rtx tramp, rtx fnaddr, rtx cxt)
                                 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 @@ sh_expand_t_scc (enum rtx_code code, rtx target)
     {
       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 333e967094cc97a6846ea7f82bf1ce4ddbe8d85c..b83a24eb568cd9956c5a13ab00c6d13f1d2771bb 100644 (file)
@@ -2097,7 +2097,7 @@ struct sh_args {
 #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 bbfc1a6cc710b38c7c38cbaa5f7f2bb2287918c2..73cd17d9e5c633fcda1ef8fac5550daad1e4554c 100644 (file)
          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 @@ mov.l\\t1f,r0\\n\\
          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 @@ mov.l\\t1f,r0\\n\\
   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 @@ mov.l\\t1f,r0\\n\\
 
   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 b1a5b1129fbc49e98a1dcfd3c1e48e3cead6c8ce..867cd2129a2039f29cac6f5afd88c9494a3798b6 100644 (file)
@@ -1696,7 +1696,7 @@ xstormy16_expand_casesi (rtx index, rtx lower_bound, rtx range,
   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));
 }