diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-03-19 18:00:43 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-03-19 18:00:43 +0000 |
commit | 2d232d05278c1a5e45612ed694993cf7e9e5f963 (patch) | |
tree | 03b085deca8da9a691cb5cdc16540f0276bd3595 /gcc/expr.c | |
parent | 4540d35fe4afd8f89e105aac73da00cbd3deaf2e (diff) | |
download | gcc-2d232d05278c1a5e45612ed694993cf7e9e5f963.tar.gz |
* 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 (...)).
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51030 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/expr.c')
-rw-r--r-- | gcc/expr.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/expr.c b/gcc/expr.c index ebe05fc20c9..f8a045a49fd 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); |