From f1b1186f6c7287df5685e8ebf21d5d4ce73d5647 Mon Sep 17 00:00:00 2001 From: Stephen Clarke Date: Fri, 28 Jun 2002 21:34:47 +0000 Subject: [PATCH] combine.c (combine_simplify_rtx): Pass the mode of the shift count... * combine.c (combine_simplify_rtx): Pass the mode of the shift count, not the shift operation when trying to simplify a shift on a SHIFT_COUNT_TRUNCATED target. From-SVN: r55085 --- gcc/ChangeLog | 6 ++++++ gcc/combine.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 033fc4baea3..f5cfca8cd6b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2002-06-28 Stephen Clarke + + * combine.c (combine_simplify_rtx): Pass the mode of the + shift count, not the shift operation when trying to simplify + a shift on a SHIFT_COUNT_TRUNCATED target. + 2002-06-28 Stephane Carrez * config/m68hc11/m68hc11.md ("*addsi3"): Use 'o' constraint to diff --git a/gcc/combine.c b/gcc/combine.c index ea12b130922..c94eddc58e0 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -4583,7 +4583,7 @@ combine_simplify_rtx (x, op0_mode, last, in_dest) #ifdef SHIFT_COUNT_TRUNCATED else if (SHIFT_COUNT_TRUNCATED && GET_CODE (XEXP (x, 1)) != REG) SUBST (XEXP (x, 1), - force_to_mode (XEXP (x, 1), GET_MODE (x), + force_to_mode (XEXP (x, 1), GET_MODE (XEXP (x, 1)), ((HOST_WIDE_INT) 1 << exact_log2 (GET_MODE_BITSIZE (GET_MODE (x)))) - 1, -- 2.30.2