aboutsummaryrefslogtreecommitdiff
path: root/gcc/optabs.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/optabs.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/optabs.c')
-rw-r--r--gcc/optabs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c
index 94927b9..2abf673 100644
--- a/gcc/optabs.c
+++ b/gcc/optabs.c
@@ -4560,9 +4560,9 @@ expand_fix (to, from, unsignedp)
NULL_RTX, 0, OPTAB_LIB_WIDEN);
expand_fix (to, target, 0);
target = expand_binop (GET_MODE (to), xor_optab, to,
- GEN_INT (trunc_int_for_mode
- ((HOST_WIDE_INT) 1 << (bitsize - 1),
- GET_MODE (to))),
+ gen_int_mode
+ ((HOST_WIDE_INT) 1 << (bitsize - 1),
+ GET_MODE (to)),
to, 1, OPTAB_LIB_WIDEN);
if (target != to)