From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C9A0BC04AB5 for ; Thu, 6 Jun 2019 18:28:00 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 953E820872 for ; Thu, 6 Jun 2019 18:28:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="uIk5iw4k" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 953E820872 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([127.0.0.1]:36581 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hYx7H-0001g0-P5 for qemu-devel@archiver.kernel.org; Thu, 06 Jun 2019 14:27:59 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56662) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hYx6F-0000s1-Cm for qemu-devel@nongnu.org; Thu, 06 Jun 2019 14:26:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hYx6E-0001Hi-EE for qemu-devel@nongnu.org; Thu, 06 Jun 2019 14:26:55 -0400 Received: from mail-ot1-x344.google.com ([2607:f8b0:4864:20::344]:36309) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hYx6E-0001Gb-6X for qemu-devel@nongnu.org; Thu, 06 Jun 2019 14:26:54 -0400 Received: by mail-ot1-x344.google.com with SMTP id c3so2909192otr.3 for ; Thu, 06 Jun 2019 11:26:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:openpgp:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Hg7nri5sLFlYSsOE8u0Xsq3JfI2XPsTAHW/jCoW/UpE=; b=uIk5iw4ktXLl2DgOEx74VYYA18dM89eHmutT7yyavXY9AJIw/o4RXOphbTUn88n1wm I22R2YgR9giHLCzyZt4xKm3ICsfd4Vv2qudLmgFXPtgISOuZ4rFFGRKrH39Ro3Utr8sA Qc6nmLTaxTx950/Q6/sQq2aehOkAFHv6slTY/vfkljmD42sDUSA8C1Th76i5ex/SR310 nByNr+RBOZoDDKegWiYMBB9iQaPmcStol7Pkb2ruzNLRmga2UFy+4VV4AzrKP9qD59Kb WuZoEmfu+ZxpYqh3dwr9wf/9+H+Lvji5lo62ENHOOkEecwjIwIfLyozWFLxiseuAyN5z Guiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Hg7nri5sLFlYSsOE8u0Xsq3JfI2XPsTAHW/jCoW/UpE=; b=Nt/VhKTfL17byHuN2SP0C6XGUjwYUNsNxlHQQXYHMXlo87C5KmmLN5Z7kCyOQl1vhN eYCRKGUEUAFtppk37NsebMdnPxaY/PdjcKlCa73EAEX3dAwoBvgr1P07ybIlHZOxuAcp XXxYL2sacfvCtSkm5vDzD20p1RGi5YESqgRdkmp5vE/uqj1ucZ/T/6PgrUGe6jD3wp7p z6GKrkrUbljokhNZ+MM2e55+qo0mf2PpnI82RZ8G+ZO2iVEe3j1eKk2BNTlRGK2N6N5d 02Biyj5qJIf/8ES4Su4vthNJGRog8RAmOHbTYXOhhjH6QHnYjGXp6mR1TPC5/pMC/d3N 0+Dw== X-Gm-Message-State: APjAAAXbsXaca6u0krN4JGd8aMxffTC3y7PAgsGQExLMIJhfNx5Kowox 5+GjNRyjZEOde1sh55glV75QlijrTTN0DA== X-Google-Smtp-Source: APXvYqy0wGkk3pYGloTxLa2i0X6KF1WZ3LeK8vTXmg7FlWt8gGhZior2FXH68UwJuNPT3wAzFZ62DQ== X-Received: by 2002:a9d:2f26:: with SMTP id h35mr16455210otb.183.1559845611862; Thu, 06 Jun 2019 11:26:51 -0700 (PDT) Received: from [192.168.3.43] (200-56-192-86-cable.cybercable.net.mx. [200.56.192.86]) by smtp.gmail.com with ESMTPSA id 3sm854117otl.42.2019.06.06.11.26.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Jun 2019 11:26:51 -0700 (PDT) To: Stefan Brankovic , qemu-devel@nongnu.org References: <1559816130-17113-1-git-send-email-stefan.brankovic@rt-rk.com> <1559816130-17113-6-git-send-email-stefan.brankovic@rt-rk.com> From: Richard Henderson Openpgp: preference=signencrypt Message-ID: <7d2b10c1-8c47-99d7-3b86-76b8d93aac3b@linaro.org> Date: Thu, 6 Jun 2019 13:26:47 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <1559816130-17113-6-git-send-email-stefan.brankovic@rt-rk.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::344 Subject: Re: [Qemu-devel] [PATCH 5/8] target/ppc: Optimize emulation of vclzd instruction 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: david@gibson.dropbear.id.au Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On 6/6/19 5:15 AM, Stefan Brankovic wrote: > Optimize Altivec instruction vclzd (Vector Count Leading Zeros Doubleword). > This instruction counts the number of leading zeros of each doubleword element > in source register and places result in the appropriate doubleword element of > destination register. > > Using tcg-s count leading zeros instruction two times(once for each > doubleword element of source register vB) and placing result in > appropriate doubleword element of destination register vD. > > Signed-off-by: Stefan Brankovic > --- > target/ppc/translate/vmx-impl.inc.c | 28 +++++++++++++++++++++++++++- > 1 file changed, 27 insertions(+), 1 deletion(-) Once the vclzd helper is removed, Reviewed-by: Richard Henderson r~