From: Jeff Law Date: Tue, 14 Apr 1998 08:04:21 +0000 (-0600) Subject: combine.c (simplify_rtx, [...]): Respect value of TRULY_NOOP_TRUNCATION. X-Git-Tag: prereleases/egcs-1.1-prerelease~1716 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=80608e279347300c822a048eb4b37b607f930b76;p=thirdparty%2Fgcc.git combine.c (simplify_rtx, [...]): Respect value of TRULY_NOOP_TRUNCATION. 8 * combine.c (simplify_rtx, case TRUNCATE): Respect value of TRULY_NOOP_TRUNCATION. From-SVN: r19204 --- diff --git a/gcc/combine.c b/gcc/combine.c index c831be1052a8..66de17e66889 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -3736,7 +3736,9 @@ simplify_rtx (x, op0_mode, last, in_dest) if (GET_MODE_CLASS (mode) == MODE_PARTIAL_INT) break; - if (GET_MODE_BITSIZE (mode) <= HOST_BITS_PER_WIDE_INT) + if (GET_MODE_BITSIZE (mode) <= HOST_BITS_PER_WIDE_INT + && TRULY_NOOP_TRUNCATION (GET_MODE_BITSIZE (mode), + GET_MODE_BITSIZE (GET_MODE (XEXP (x, 0))))) SUBST (XEXP (x, 0), force_to_mode (XEXP (x, 0), GET_MODE (XEXP (x, 0)), GET_MODE_MASK (mode), NULL_RTX, 0));