From: Jim Wilson Date: Tue, 12 Nov 1996 23:46:05 +0000 (-0800) Subject: (emit_group_store): For REG case, call gen_lowpart if X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=71bc03306f3af0276168377592b039a6f2831f68;p=platform%2Fupstream%2Fgcc.git (emit_group_store): For REG case, call gen_lowpart if modes are different. From-SVN: r13152 --- diff --git a/gcc/expr.c b/gcc/expr.c index 60501a5..15e036b 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -1846,7 +1846,11 @@ emit_group_store (x, y) plus_constant (XEXP (x, 0), INTVAL (XEXP (element, 1)))); else if (XEXP (element, 1) == const0_rtx) - target = x; + { + target = x; + if (GET_MODE (target) != GET_MODE (source_reg)) + target = gen_lowpart (GET_MODE (source_reg), target); + } else abort ();