From patchwork Fri Mar 19 19:44:47 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 48183 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 398EFB7D16 for ; Sat, 20 Mar 2010 07:29:39 +1100 (EST) Received: from localhost ([127.0.0.1]:34432 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nsinh-0002P8-9g for incoming@patchwork.ozlabs.org; Fri, 19 Mar 2010 16:28:09 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nsil5-0001g2-J4 for qemu-devel@nongnu.org; Fri, 19 Mar 2010 16:25:27 -0400 Received: from [199.232.76.173] (port=60617 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nsil5-0001fW-23 for qemu-devel@nongnu.org; Fri, 19 Mar 2010 16:25:27 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nsil1-0002Lf-Qi for qemu-devel@nongnu.org; Fri, 19 Mar 2010 16:25:25 -0400 Received: from are.twiddle.net ([75.149.56.221]:59906) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Nsiky-0002LF-Vo for qemu-devel@nongnu.org; Fri, 19 Mar 2010 16:25:21 -0400 Received: by are.twiddle.net (Postfix, from userid 5000) id C9E62B0B; Fri, 19 Mar 2010 13:25:17 -0700 (PDT) Message-Id: <209fb741e276d4659c100d752082b3a08b91c268.1269029457.git.rth@twiddle.net> In-Reply-To: References: From: Richard Henderson Date: Fri, 19 Mar 2010 12:44:47 -0700 To: qemu-devel@nongnu.org X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Cc: blauwirbel@gmail.com, aurelien@aurel32.net Subject: [Qemu-devel] [PATCH 6/9] tcg: Use not_i32 to implement not_i64. X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Richard Henderson --- tcg/tcg-op.h | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/tcg/tcg-op.h b/tcg/tcg-op.h index 085a328..dc81f3e 100644 --- a/tcg/tcg-op.h +++ b/tcg/tcg-op.h @@ -1653,6 +1653,9 @@ static inline void tcg_gen_not_i64(TCGv_i64 ret, TCGv_i64 arg) { #ifdef TCG_TARGET_HAS_not_i64 tcg_gen_op2_i64(INDEX_op_not_i64, ret, arg); +#elif defined(TCG_TARGET_HAS_not_i32) && TCG_TARGET_REG_BITS == 32 + tcg_gen_not_i32(TCGV_LOW(ret), TCGV_LOW(arg)); + tcg_gen_not_i32(TCGV_HIGH(ret), TCGV_HIGH(arg)); #else tcg_gen_xori_i64(ret, arg, -1); #endif