From patchwork Wed Jul 19 23:34:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 9853383 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3A7AB60392 for ; Wed, 19 Jul 2017 23:44:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1C81B28705 for ; Wed, 19 Jul 2017 23:44:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1160728717; Wed, 19 Jul 2017 23:44:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 094B928705 for ; Wed, 19 Jul 2017 23:44:49 +0000 (UTC) Received: from localhost ([::1]:35418 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dXye8-0006fn-A9 for patchwork-qemu-devel@patchwork.kernel.org; Wed, 19 Jul 2017 19:44:48 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33322) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dXyVo-0008Nq-E8 for qemu-devel@nongnu.org; Wed, 19 Jul 2017 19:36:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dXyVn-0006xP-Lw for qemu-devel@nongnu.org; Wed, 19 Jul 2017 19:36:12 -0400 Received: from mail-qt0-x241.google.com ([2607:f8b0:400d:c0d::241]:35433) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dXyVn-0006ww-HK for qemu-devel@nongnu.org; Wed, 19 Jul 2017 19:36:11 -0400 Received: by mail-qt0-x241.google.com with SMTP id p25so1786995qtp.2 for ; Wed, 19 Jul 2017 16:36:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9lYrBKzkNvcYNT1wSZJ9xXO4gZBT77sursomJOmDyyQ=; b=j1YX698S2G1hoYJANnwj3hB4NRCtEalDjbBcbZerpHNDHX9shpgwhHsiuDG/EvjteQ nv98OlSfXwRwSPbxL8HfUxVL9dR+JYl1s83HxGyctzBD+GDR3FpaAyU3gurTwYbrQg3u xfIzKmuOagF+JSNm/lsrztrMOJQW3AYIHiiTlvK15PkUIAiMBCGTaCga71RcgHaoanve VLQyUBO83m/7ev4uJK7ljvipn5totNnlMB5HG41QQtiPtnJf8mI/6bjodTscnKAHZ5pn gHyAJCm1WUJ4z3RcMWonMWn4J8rlswHd6CbpDKsTWIwa2quoMSxs74V82U38TZkzFQ7l R89Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=9lYrBKzkNvcYNT1wSZJ9xXO4gZBT77sursomJOmDyyQ=; b=iWAJeKjwuTNvQpjLRhSBd9w2Q2V/iYy4tVKmYB+QpCyIp4YDp5EM4QJEOGLGZ6hQsC BE05m3Ruk24K1lRPfwkSsn9pADhl4bwFbNgKkxJX7HhovHm0xa4soMnAq7aadVkbJwbL j65DyIQOC4St1TAP1Z0Ui9mneTpmhfdhD29vOLy0I4rrJYVyBCw9cYDPPQ4yNR2hojCO A1i7Il1ItOn82LmXPWP1YTS8sr9rc6gW6PCpiD8WrAtUwi5uTiQefo9iTZ47ACY9R7Nm pIgOIx1WZVAZSURxHxjU4ru5E0BPeZiHnftj91qWY/rb0+TwJRQlImgFJSOkzotvFWoe +lwA== X-Gm-Message-State: AIVw110Rxgbye6aCN9aczlfGFMNdTLkly+QAhSGAkdu+RnZtWzMIMByG JLOpo7urhJlIr1WXmok= X-Received: by 10.237.59.59 with SMTP id p56mr2502181qte.341.1500507370836; Wed, 19 Jul 2017 16:36:10 -0700 (PDT) Received: from bigtime.com ([203.221.203.174]) by smtp.gmail.com with ESMTPSA id w33sm857130qth.96.2017.07.19.16.36.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 19 Jul 2017 16:36:10 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Wed, 19 Jul 2017 13:34:52 -1000 Message-Id: <20170719233455.8740-12-rth@twiddle.net> X-Mailer: git-send-email 2.13.3 In-Reply-To: <20170719233455.8740-1-rth@twiddle.net> References: <20170719233455.8740-1-rth@twiddle.net> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::241 Subject: [Qemu-devel] [PULL v2 11/14] target/sparc: optimize gen_op_mulscc() using deposit op X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Philippe Mathieu-Daudé Suggested-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20170718045540.16322-9-f4bug@amsat.org> Signed-off-by: Richard Henderson --- target/sparc/translate.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/target/sparc/translate.c b/target/sparc/translate.c index 67a83b77cc..d13173275f 100644 --- a/target/sparc/translate.c +++ b/target/sparc/translate.c @@ -632,11 +632,8 @@ static inline void gen_op_mulscc(TCGv dst, TCGv src1, TCGv src2) // b2 = T0 & 1; // env->y = (b2 << 31) | (env->y >> 1); - tcg_gen_andi_tl(r_temp, cpu_cc_src, 0x1); - tcg_gen_shli_tl(r_temp, r_temp, 31); tcg_gen_extract_tl(t0, cpu_y, 1, 31); - tcg_gen_or_tl(t0, t0, r_temp); - tcg_gen_andi_tl(cpu_y, t0, 0xffffffff); + tcg_gen_deposit_tl(cpu_y, t0, cpu_cc_src, 31, 1); // b1 = N ^ V; gen_mov_reg_N(t0, cpu_psr);