From: Richard Kenner Date: Fri, 25 Feb 1994 14:00:07 +0000 (-0500) Subject: (if_then_else_cond): Fix typo in narrowing of a SUBREG. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=00244e6b175f4f56620dafccc8a2b36414a98d24;p=gcc.git (if_then_else_cond): Fix typo in narrowing of a SUBREG. From-SVN: r6624 --- diff --git a/gcc/combine.c b/gcc/combine.c index 4317341be11..da6daa36c16 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -6238,11 +6238,10 @@ if_then_else_cond (x, ptrue, pfalse) && 0 != (cond0 = if_then_else_cond (SUBREG_REG (x), &true0, &false0))) { - enum machine_mode inner_mode = GET_MODE (SUBREG_REG (x)); - unsigned HOST_WIDE_INT mask = GET_MODE_MASK (inner_mode); + *ptrue = force_to_mode (true0, mode, GET_MODE_MASK (mode), NULL_RTX, 0); + *pfalse + = force_to_mode (false0, mode, GET_MODE_MASK (mode), NULL_RTX, 0); - *ptrue = force_to_mode (true0, inner_mode, mask, NULL_RTX, 0); - *pfalse = force_to_mode (false0, inner_mode, mask, NULL_RTX, 0); return cond0; }