OSDN Git Service

* dse.c (get_stored_val, get_call_args): Use gen_int_mode.
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Dec 2011 14:10:02 +0000 (14:10 +0000)
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Dec 2011 14:10:02 +0000 (14:10 +0000)
        * expmed.c (expand_divmod): Likewise.
        * combine.c (simplify_if_then_else): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182164 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/combine.c
gcc/dse.c
gcc/expmed.c

index 673dea4..6d3528e 100644 (file)
        * expmed.c (expand_mult_const, expand_divmod): Likewise.
        * reload1.c (gen_reload): Likewise.
 
+       * dse.c (get_stored_val, get_call_args): Use gen_int_mode.
+       * expmed.c (expand_divmod): Likewise.
+       * combine.c (simplify_if_then_else): Likewise.
+
 2011-12-09  Kai Tietz  <ktietz@redhat.com>
 
        * ira-color.c (print_hard_regs_subforest): Use
index 1714c74..105e778 100644 (file)
@@ -6010,7 +6010,7 @@ simplify_if_then_else (rtx x)
          && exact_log2 (nzb = nonzero_bits (from, GET_MODE (from))) >= 0)
        {
          false_code = EQ;
-         false_val = GEN_INT (trunc_int_for_mode (nzb, GET_MODE (from)));
+         false_val = gen_int_mode (nzb, GET_MODE (from));
        }
       else if (true_code == EQ && true_val == const0_rtx
               && (num_sign_bit_copies (from, GET_MODE (from))
index 13d2f27..c4207df 100644 (file)
--- a/gcc/dse.c
+++ b/gcc/dse.c
@@ -1950,7 +1950,7 @@ get_stored_val (store_info_t store_info, enum machine_mode read_mode,
              c |= (c << shift);
              shift <<= 1;
            }
-         read_reg = GEN_INT (trunc_int_for_mode (c, store_mode));
+         read_reg = gen_int_mode (c, store_mode);
          read_reg = extract_low_bits (read_mode, store_mode, read_reg);
        }
     }
@@ -2459,7 +2459,7 @@ get_call_args (rtx call_insn, tree fn, rtx *args, int nargs)
        {
          if (!tmp || !CONST_INT_P (tmp))
            return false;
-         tmp = GEN_INT (trunc_int_for_mode (INTVAL (tmp), mode));
+         tmp = gen_int_mode (INTVAL (tmp), mode);
        }
       if (tmp)
        args[idx] = tmp;
index cfa045b..bced96e 100644 (file)
@@ -4216,10 +4216,9 @@ expand_divmod (int rem_flag, enum tree_code code, enum machine_mode mode,
                                        << (HOST_BITS_PER_WIDE_INT - 1)))
                          set_dst_reg_note (insn, REG_EQUAL,
                                            gen_rtx_DIV (compute_mode, op0,
-                                                        GEN_INT
-                                                          (trunc_int_for_mode
-                                                            (abs_d,
-                                                             compute_mode))),
+                                                        gen_int_mode
+                                                          (abs_d,
+                                                           compute_mode)),
                                            quotient);
 
                        quotient = expand_unop (compute_mode, neg_optab,