summaryrefslogtreecommitdiffstats
path: root/gcc/optabs.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2002-03-19 18:00:43 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2002-03-19 18:00:43 +0000
commit2d232d05278c1a5e45612ed694993cf7e9e5f963 (patch)
tree03b085deca8da9a691cb5cdc16540f0276bd3595 /gcc/optabs.c
parent4540d35fe4afd8f89e105aac73da00cbd3deaf2e (diff)
downloadppe42-gcc-2d232d05278c1a5e45612ed694993cf7e9e5f963.tar.gz
ppe42-gcc-2d232d05278c1a5e45612ed694993cf7e9e5f963.zip
* 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/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 94927b9b2fe..2abf67359c4 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)
OpenPOWER on IntegriCloud