From: dj Date: Wed, 23 Mar 2005 03:04:10 +0000 (+0000) Subject: * optabs.c (expand_binop): Make sure the first subword's result X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=439a6dcaf0af95c43c83a0033b32cc1a2ee5f73e;p=thirdparty%2Fgcc.git * optabs.c (expand_binop): Make sure the first subword's result gets stored. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96921 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8f354b5cf2f5..61dc2dd4c5c9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-03-23 DJ Delorie + + * optabs.c (expand_binop): Make sure the first subword's result + gets stored. + 2005-03-23 Joseph S. Myers * c-common.c (c_common_truthvalue_conversion): Adjust comment. diff --git a/gcc/optabs.c b/gcc/optabs.c index 57c3339437b5..2a792857fa16 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -1534,6 +1534,11 @@ expand_binop (enum machine_mode mode, optab binoptab, rtx op0, rtx op1, } emit_move_insn (target_piece, newx); } + else + { + if (x != target_piece) + emit_move_insn (target_piece, x); + } carry_in = carry_out; }