From patchwork Thu Oct 24 21:08:50 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Edgar E. Iglesias" X-Patchwork-Id: 286025 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 1C7E22C00BC for ; Fri, 25 Oct 2013 08:14:29 +1100 (EST) Received: from localhost ([::1]:56283 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VZSEc-0004xx-Ue for incoming@patchwork.ozlabs.org; Thu, 24 Oct 2013 17:14:26 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34088) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VZSCY-0002MP-JL for qemu-devel@nongnu.org; Thu, 24 Oct 2013 17:12:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VZSCQ-0006Lh-1t for qemu-devel@nongnu.org; Thu, 24 Oct 2013 17:12:18 -0400 Received: from mail-la0-x22e.google.com ([2a00:1450:4010:c03::22e]:47107) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VZSCP-0006LY-Pw for qemu-devel@nongnu.org; Thu, 24 Oct 2013 17:12:09 -0400 Received: by mail-la0-f46.google.com with SMTP id hp15so2396687lab.19 for ; Thu, 24 Oct 2013 14:12:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references; bh=ormIxjauis03FiWFYrxW/je/T6ahvdAhTQE1j9HFrsM=; b=aCJXZWJLLoyQ4rJbuVTeOIH8lraU1pIL9oUw5shIMmRx43EGxmlPt6jVVZe4+KHZj+ 1L2Dez7KiFLjbFSN6KsVx2FzvMzOdJiPbXpkqDZ4ZbXEvmcq8gO2lD1p8eJTfWgUf9rU /d3WO5AfLxTrWoOZ6SVe9njWnt4v+1J+XET2zWc+hif/ayPFGvTvadLIN2WZI6/V5Fmc 6IWg1qdQToyNS0DlFw9jRwZviI3L02kHKlaVJb/hhKAqYOpYx4juN5gTT0a6Orzmj2pH tRlrIr1w9EDP8tTYTU0TN5MsupMCn/ovYkOqVFXJJQV6l1WRNbaw7fEpxBExn/NkR5Lm z4pQ== X-Received: by 10.112.138.164 with SMTP id qr4mr69488lbb.49.1382649128834; Thu, 24 Oct 2013 14:12:08 -0700 (PDT) Received: from localhost (h59ec325f.selukar.dyn.perspektivbredband.net. [89.236.50.95]) by mx.google.com with ESMTPSA id vk8sm190493lbb.0.2013.10.24.14.12.06 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 24 Oct 2013 14:12:07 -0700 (PDT) From: edgar.iglesias@gmail.com To: qemu-devel@nongnu.org Date: Thu, 24 Oct 2013 23:08:50 +0200 Message-Id: <1382648937-14769-4-git-send-email-edgar.iglesias@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1382648937-14769-1-git-send-email-edgar.iglesias@gmail.com> References: <1382648937-14769-1-git-send-email-edgar.iglesias@gmail.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::22e Subject: [Qemu-devel] [PATCH 03/10] microblaze: Simplify andn by using tcg_gen_andc X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- target-microblaze/translate.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/target-microblaze/translate.c b/target-microblaze/translate.c index d183e17..916db15 100644 --- a/target-microblaze/translate.c +++ b/target-microblaze/translate.c @@ -390,10 +390,7 @@ static void dec_and(DisasContext *dc) return; if (not) { - TCGv t = tcg_temp_new(); - tcg_gen_not_tl(t, *(dec_alu_op_b(dc))); - tcg_gen_and_tl(cpu_R[dc->rd], cpu_R[dc->ra], t); - tcg_temp_free(t); + tcg_gen_andc_tl(cpu_R[dc->rd], cpu_R[dc->ra], *(dec_alu_op_b(dc))); } else tcg_gen_and_tl(cpu_R[dc->rd], cpu_R[dc->ra], *(dec_alu_op_b(dc))); }