Received: from eggs.gnu.org ([140.186.70.92]:58641) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLMdn-0006or-Th for qemu-devel@nongnu.org; Tue, 01 Nov 2011 18:17:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RLMdl-0007jA-Up for qemu-devel@nongnu.org; Tue, 01 Nov 2011 18:17:07 -0400 Received: from fe02x03-cgp.akado.ru ([77.232.31.165]:62104 helo=akado.ru) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLMdl-0007iI-Gz for qemu-devel@nongnu.org; Tue, 01 Nov 2011 18:17:05 -0400 Date: Wed, 2 Nov 2011 02:17:00 +0400 (MSK) From: malc In-Reply-To: <1320185203-28036-1-git-send-email-rth@twiddle.net> Message-ID: References: <1320185203-28036-1-git-send-email-rth@twiddle.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [Qemu-devel] [PATCH 1/2] tcg: Fix regression in tcg_gen_deposit_i64. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson Cc: blauwirbel@gmail.com, qemu-devel@nongnu.org, agraf@suse.de On Tue, 1 Nov 2011, Richard Henderson wrote: > The error being caused by the failure to copy the other half of > the input to the output after having narrowed the deposit operation. Thanks, applied. > > Signed-off-by: Richard Henderson > --- > tcg/tcg-op.h | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/tcg/tcg-op.h b/tcg/tcg-op.h > index 24ec7fc..8637fe8 100644 > --- a/tcg/tcg-op.h > +++ b/tcg/tcg-op.h > @@ -2090,6 +2090,7 @@ static inline void tcg_gen_deposit_i64(TCGv_i64 ret, TCGv_i64 arg1, > > #if TCG_TARGET_REG_BITS == 32 > if (ofs >= 32) { > + tcg_gen_mov_i32(TCGV_LOW(ret), TCGV_LOW(arg1)); > tcg_gen_deposit_i32(TCGV_HIGH(ret), TCGV_HIGH(arg1), > TCGV_LOW(arg2), ofs - 32, len); > return; > @@ -2097,6 +2098,7 @@ static inline void tcg_gen_deposit_i64(TCGv_i64 ret, TCGv_i64 arg1, > if (ofs + len <= 32) { > tcg_gen_deposit_i32(TCGV_LOW(ret), TCGV_LOW(arg1), > TCGV_LOW(arg2), ofs, len); > + tcg_gen_mov_i32(TCGV_HIGH(ret), TCGV_HIGH(arg1)); > return; > } > #endif > -- mailto:av1474@comtv.ru