aboutsummaryrefslogtreecommitdiff
path: root/gcc/combine.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/combine.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/combine.c')
-rw-r--r--gcc/combine.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/combine.c b/gcc/combine.c
index 7dc4b29..0f17559 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -6033,7 +6033,7 @@ make_extraction (mode, inner, pos, pos_rtx, len,
return new;
if (GET_CODE (new) == CONST_INT)
- return GEN_INT (trunc_int_for_mode (INTVAL (new), mode));
+ return gen_int_mode (INTVAL (new), mode);
/* If we know that no extraneous bits are set, and that the high
bit is not set, convert the extraction to the cheaper of
@@ -10792,7 +10792,7 @@ simplify_comparison (code, pop0, pop1)
unsigned HOST_WIDE_INT temp = const_op & GET_MODE_MASK (mode);
temp >>= INTVAL (XEXP (op0, 1));
- op1 = GEN_INT (trunc_int_for_mode (temp, mode));
+ op1 = gen_int_mode (temp, mode);
op0 = XEXP (op0, 0);
continue;
}