From patchwork Thu Mar 4 21:54:09 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aurelien Jarno X-Patchwork-Id: 46984 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 94A8CB7CE8 for ; Fri, 5 Mar 2010 08:56:03 +1100 (EST) Received: from localhost ([127.0.0.1]:33146 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NnJ1U-0005Qa-FF for incoming@patchwork.ozlabs.org; Thu, 04 Mar 2010 16:56:00 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NnIzu-00053D-VQ for qemu-devel@nongnu.org; Thu, 04 Mar 2010 16:54:23 -0500 Received: from [199.232.76.173] (port=42460 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NnIzu-00052t-Aa for qemu-devel@nongnu.org; Thu, 04 Mar 2010 16:54:22 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NnIzs-0006VN-V7 for qemu-devel@nongnu.org; Thu, 04 Mar 2010 16:54:22 -0500 Received: from hall.aurel32.net ([88.191.82.174]:40881) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NnIzs-0006V9-IZ for qemu-devel@nongnu.org; Thu, 04 Mar 2010 16:54:20 -0500 Received: from [2a01:e35:2e80:2fb0:21e:8cff:feb0:693b] (helo=volta.aurel32.net) by hall.aurel32.net with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1NnIzr-0001Jl-0h; Thu, 04 Mar 2010 22:54:19 +0100 Received: from aurel32 by volta.aurel32.net with local (Exim 4.71) (envelope-from ) id 1NnIzk-0007Bi-CI; Thu, 04 Mar 2010 22:54:12 +0100 From: Aurelien Jarno To: qemu-devel@nongnu.org Date: Thu, 4 Mar 2010 22:54:09 +0100 Message-Id: <1267739649-27599-1-git-send-email-aurelien@aurel32.net> X-Mailer: git-send-email 1.7.0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Cc: Andrzej Zaborowski , Aurelien Jarno Subject: [Qemu-devel] [PATCH] tcg/arm: implement andc op 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: Aurelien Jarno --- tcg/arm/tcg-target.c | 4 ++++ tcg/arm/tcg-target.h | 2 +- 2 files changed, 5 insertions(+), 1 deletions(-) diff --git a/tcg/arm/tcg-target.c b/tcg/arm/tcg-target.c index dabc0f5..756f131 100644 --- a/tcg/arm/tcg-target.c +++ b/tcg/arm/tcg-target.c @@ -1445,6 +1445,9 @@ static inline void tcg_out_op(TCGContext *s, int opc, case INDEX_op_and_i32: c = ARITH_AND; goto gen_arith; + case INDEX_op_andc_i32: + c = ARITH_BIC; + goto gen_arith; case INDEX_op_or_i32: c = ARITH_ORR; goto gen_arith; @@ -1652,6 +1655,7 @@ static const TCGTargetOpDef arm_op_defs[] = { { INDEX_op_div2_i32, { "r", "r", "r", "1", "2" } }, { INDEX_op_divu2_i32, { "r", "r", "r", "1", "2" } }, { INDEX_op_and_i32, { "r", "r", "rI" } }, + { INDEX_op_andc_i32, { "r", "r", "rI" } }, { INDEX_op_or_i32, { "r", "r", "rI" } }, { INDEX_op_xor_i32, { "r", "r", "rI" } }, { INDEX_op_neg_i32, { "r", "r" } }, diff --git a/tcg/arm/tcg-target.h b/tcg/arm/tcg-target.h index ae2ece6..4cad967 100644 --- a/tcg/arm/tcg-target.h +++ b/tcg/arm/tcg-target.h @@ -65,7 +65,7 @@ enum { #define TCG_TARGET_HAS_not_i32 #define TCG_TARGET_HAS_neg_i32 // #define TCG_TARGET_HAS_rot_i32 -// #define TCG_TARGET_HAS_andc_i32 +#define TCG_TARGET_HAS_andc_i32 // #define TCG_TARGET_HAS_orc_i32 #define TCG_TARGET_HAS_GUEST_BASE