From e30fb98f9be427c8c6f3f857cd306246dd36d9cb Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Mon, 3 Mar 1997 13:12:07 -0700 Subject: [PATCH] combine.c (simplify_rtx): Do nothing with (truncate:mode) if mode is a partial integer mode. * combine.c (simplify_rtx): Do nothing with (truncate:mode) if mode is a partial integer mode. From-SVN: r13686 --- gcc/combine.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gcc/combine.c b/gcc/combine.c index 6a6ebb4dbfa..2300ce91128 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -3590,6 +3590,12 @@ simplify_rtx (x, op0_mode, last, in_dest) break; case TRUNCATE: + /* We can't handle truncation to a partial integer mode here + because we don't know the real bitsize of the partial + integer mode. */ + if (GET_MODE_CLASS (mode) == MODE_PARTIAL_INT) + break; + if (GET_MODE_BITSIZE (mode) <= HOST_BITS_PER_WIDE_INT) SUBST (XEXP (x, 0), force_to_mode (XEXP (x, 0), GET_MODE (XEXP (x, 0)), -- 2.30.2