From 855c3a2e32e513b7851f889b9e41b4836ec3af8a Mon Sep 17 00:00:00 2001 From: Igor Shevlyakov Date: Thu, 26 Sep 2002 21:15:26 +0000 Subject: [PATCH] combine.c (simplify_set): Don't call to force_to_mode if size of integer type is larger than... * combine.c (simplify_set): Don't call to force_to_mode if size of integer type is larger than HOST_BITS_PER_WIDE_INT. From-SVN: r57549 --- gcc/ChangeLog | 5 +++++ gcc/combine.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5e2ff79d204..f9d73ba5a7e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-09-26 Igor Shevlyakov + + * combine.c (simplify_set): Don't call to force_to_mode if size + of integer type is larger than HOST_BITS_PER_WIDE_INT. + 2002-09-26 Janis Johnson * Makefile.in (qmtest-g++): Fix file path. diff --git a/gcc/combine.c b/gcc/combine.c index 5b7b5a92bf7..7fcada47877 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -5011,7 +5011,8 @@ simplify_set (x) simplify the expression for the object knowing that we only need the low-order bits. */ - if (GET_MODE_CLASS (mode) == MODE_INT) + if (GET_MODE_CLASS (mode) == MODE_INT + && GET_MODE_BITSIZE (mode) <= HOST_BITS_PER_WIDE_INT) { src = force_to_mode (src, mode, ~(HOST_WIDE_INT) 0, NULL_RTX, 0); SUBST (SET_SRC (x), src); -- 2.30.2