aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorLars Brinkhoff <lars@nocrew.org>2002-03-19 10:00:43 -0800
committerRichard Henderson <rth@gcc.gnu.org>2002-03-19 10:00:43 -0800
commit2496c7bd5f519bc9334f2a4ad771b4b8c9cba7c7 (patch)
tree03b085deca8da9a691cb5cdc16540f0276bd3595 /gcc/expr.c
parent09979e6f03b42f800cf39123596e7d4027da9057 (diff)
downloadgcc-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/expr.c')
-rw-r--r--gcc/expr.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index ebe05fc..f8a045a 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -1352,7 +1352,7 @@ convert_modes (mode, oldmode, x, unsignedp)
&& (val & ((HOST_WIDE_INT) 1 << (width - 1))))
val |= (HOST_WIDE_INT) (-1) << width;
- return GEN_INT (trunc_int_for_mode (val, mode));
+ return gen_int_mode (val, mode);
}
return gen_lowpart (mode, x);
@@ -5150,8 +5150,7 @@ store_field (target, bitsize, bitpos, mode, exp, value_mode, unsignedp, type,
if (unsignedp)
return expand_and (tmode, temp,
- GEN_INT (trunc_int_for_mode (width_mask,
- tmode)),
+ gen_int_mode (width_mask, tmode),
NULL_RTX);
count = build_int_2 (GET_MODE_BITSIZE (tmode) - bitsize, 0);