diff options
author | Lars Brinkhoff <lars@nocrew.org> | 2002-03-19 10:00:43 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2002-03-19 10:00:43 -0800 |
commit | 2496c7bd5f519bc9334f2a4ad771b4b8c9cba7c7 (patch) | |
tree | 03b085deca8da9a691cb5cdc16540f0276bd3595 /gcc/expmed.c | |
parent | 09979e6f03b42f800cf39123596e7d4027da9057 (diff) | |
download | gcc-2496c7bd5f519bc9334f2a4ad771b4b8c9cba7c7.zip gcc-2496c7bd5f519bc9334f2a4ad771b4b8c9cba7c7.tar.gz gcc-2496c7bd5f519bc9334f2a4ad771b4b8c9cba7c7.tar.bz2 |
emit-rtl.c (gen_int_mode): New function.
* emit-rtl.c (gen_int_mode): New function.
* rtl.h: Prototype for it.
* combine.c (make_extraction, simplify_comparison), expmed.c
(store_bit_field, expand_mult_highpart, expand_divmod), expr.c
(convert_modes, store_field), optabs.c (expand_fix),
simplify-rtx.c (neg_const_int, simplify_unary_real),
* config/rs6000/rs6000.c, config/rs6000/rs6000.md:
Use it instead of GEN_INT (trunc_int_for_mode (...)).
From-SVN: r51030
Diffstat (limited to 'gcc/expmed.c')
-rw-r--r-- | gcc/expmed.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/gcc/expmed.c b/gcc/expmed.c index 48a3ef6..d2edd81 100644 --- a/gcc/expmed.c +++ b/gcc/expmed.c @@ -656,7 +656,7 @@ store_bit_field (str_rtx, bitsize, bitnum, fieldmode, value, total_size) value1 = gen_lowpart (maxmode, value1); } else if (GET_CODE (value) == CONST_INT) - value1 = GEN_INT (trunc_int_for_mode (INTVAL (value), maxmode)); + value1 = gen_int_mode (INTVAL (value), maxmode); else if (!CONSTANT_P (value)) /* Parse phase is supposed to make VALUE's data type match that of the component reference, which is a type @@ -2789,7 +2789,7 @@ expand_mult_highpart (mode, op0, cnst1, target, unsignedp, max_cost) if (size > HOST_BITS_PER_WIDE_INT) abort (); - op1 = GEN_INT (trunc_int_for_mode (cnst1, mode)); + op1 = gen_int_mode (cnst1, mode); wide_op1 = immed_double_const (cnst1, @@ -3273,7 +3273,7 @@ expand_divmod (rem_flag, code, mode, op0, op1, target, unsignedp) if (rem_flag && d < 0) { d = abs_d; - op1 = GEN_INT (trunc_int_for_mode (abs_d, compute_mode)); + op1 = gen_int_mode (abs_d, compute_mode); } if (d == 1) @@ -3312,8 +3312,8 @@ expand_divmod (rem_flag, code, mode, op0, op1, target, unsignedp) t1 = copy_to_mode_reg (compute_mode, op0); do_cmp_and_jump (t1, const0_rtx, GE, compute_mode, label); - expand_inc (t1, GEN_INT (trunc_int_for_mode - (abs_d - 1, compute_mode))); + expand_inc (t1, gen_int_mode (abs_d - 1, + compute_mode)); emit_label (label); quotient = expand_shift (RSHIFT_EXPR, compute_mode, t1, build_int_2 (lgup, 0), @@ -3853,8 +3853,7 @@ expand_divmod (rem_flag, code, mode, op0, op1, target, unsignedp) t1 = expand_shift (RSHIFT_EXPR, compute_mode, op0, build_int_2 (pre_shift, 0), NULL_RTX, unsignedp); quotient = expand_mult (compute_mode, t1, - GEN_INT (trunc_int_for_mode - (ml, compute_mode)), + gen_int_mode (ml, compute_mode), NULL_RTX, 0); insn = get_last_insn (); |