From patchwork Thu Nov 11 11:06:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 519125 Delivered-To: patch@linaro.org Received: by 2002:ac0:c605:0:0:0:0:0 with SMTP id p5csp124766imj; Thu, 11 Nov 2021 03:21:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJxAIMVpZL9SESek8hFxfNMxXDnlYK4JZpEKwy7ZVqgOXEhUDpeevV3FaMaTthTIM367xnuq X-Received: by 2002:ad4:5cac:: with SMTP id q12mr5759576qvh.52.1636629680493; Thu, 11 Nov 2021 03:21:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636629680; cv=none; d=google.com; s=arc-20160816; b=bIDaBLIlotUbkugQS2QZrIXOabP272LBNKYTs4qbNgShEhyp7r6dc3vC51iYD/mJFi GXB5EhXEcPuAiDynJq8n21iGJYDmHA5QUjYc1vi4dwXiaQrNZKtW3Qc6iw2efB+dC0Q6 75VIH3CKSEQifi/Rx5LGJilZhERYHth0GSKnJfD4dJA4jso4jnSdhIE24SQkZaS+LtJF 7fiODNHyHHZr9NVRU6wG8ptNlK9qwfW8xQhk1P+4lzTWmxJlU8Y9tGVLfm0qBLkdpdtk PmYKFG6tvFFazRhfBXuLK3hBNv+v1wn8LCyePHLC4g6xN7VmF/grWpFBKWWZnZe8jKHI Cy1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=n/Lg6tRRaf0tebXMyPh4xLh7Yicv5KIZg8mfFnBTuXA=; b=FNgBzB6hJJ0/JoLQBT9av12d9W/psA9U6vPSW2HVstzwmaBvlYT3dkwwKkqTZrRCtV QSTnJPwveoDzpk+FGx4lyl429+IdYaqdjq9zXiAd2y9iXFRWu+xI2lFmlcUwpd+AtbJt w/BCXk7KK1Rca0h7K8jFJoyrS73sxd8o10VOEEq75NlKx9a/xe/fAMaaZ+vgJjWXqheU DElQAw4Iip4gYXjS7uMzouE/c07qDM3xBiRoVz5jPjVz8q2Ra0ksIncAiWi2blQtqv34 pjU0WMhPspCvflPXd8xJrLkWbxUxVXT2oviShaXvOnRQXdnMveSQZDZWblFoCxTh24mb VTRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Z8+vuNkQ; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id jm13si3811075qvb.18.2021.11.11.03.21.20 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 11 Nov 2021 03:21:20 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Z8+vuNkQ; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:58752 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ml88u-0001dv-0F for patch@linaro.org; Thu, 11 Nov 2021 06:21:20 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51550) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ml7v7-00055U-Ln for qemu-devel@nongnu.org; Thu, 11 Nov 2021 06:07:05 -0500 Received: from [2a00:1450:4864:20::42f] (port=37576 helo=mail-wr1-x42f.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ml7v6-0001jz-0S for qemu-devel@nongnu.org; Thu, 11 Nov 2021 06:07:05 -0500 Received: by mail-wr1-x42f.google.com with SMTP id b12so9159692wrh.4 for ; Thu, 11 Nov 2021 03:07:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=n/Lg6tRRaf0tebXMyPh4xLh7Yicv5KIZg8mfFnBTuXA=; b=Z8+vuNkQAYjTxmQ52CYnP07l42a1u4YnAPm9TyxAHUGrLUihx/MLWIXCtE33elYWcP s7SS66YTB1Ekd+Td3gBYSz+F+4TSi2ba5JzJHFJNnmpvzsNGQu9xrusgrMYyRDO/y7f5 8Y90PVRKgc4M1xBAGgYrk+sqemjsMZ9QjqFe0dTIThBm7Q3IwEKXJdwqtUW30GP2n2R8 Te7edOEj3eKo4ijZ/mQv1EbfOwYeX8YHu7v1lKzEYAn+SEYsfgy6AfSEblS075O2Ba7i 11RaTtswMVoER1DvI0YuBgJH9rBdJ1TYilVugEXUrtBVC4wX//1InbhkIcZn/DFO/zUo tmrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=n/Lg6tRRaf0tebXMyPh4xLh7Yicv5KIZg8mfFnBTuXA=; b=utmZ945pgght6yqoziKorDN1kExCKGCN7WN8GLEfQIrHS8/MSNLpFUaS2oYqK/hdCA kbOceDqOJ6UuOLBr+KF6aiU8mH8iO0u5nDyLDju9MABtBGpIQ9L+s0BypGACqSAMrZUV NBMYMVFpoUXgasWGMvGihwJwGwKhhzSSioiJZuCTxJIjRut5EWJ70pMKtOwyiz0qBVmD uhfZ3jQ6mYqtsi+loDVyQ52jLcuayFOJHX2mVLu04BC6I1IaXUKGQY6ywNKr8bfPmn+F HwI4v7NfgaPlF6CIqgtgVUjlwVUFaok56t74kuDOolC7dOKZfx0T5SyK0gRpmZF+YtLy S04w== X-Gm-Message-State: AOAM532yLHAUNGjjMe4ROSZAv4rt5+N/IgEV+pb8RoB7iSSmVVZXlmap FI/gRkBaJbEzkgySK5U03uUOiNnFnEj0BJjhOaw= X-Received: by 2002:adf:f0c8:: with SMTP id x8mr7522434wro.290.1636628822630; Thu, 11 Nov 2021 03:07:02 -0800 (PST) Received: from localhost.localdomain (10.red-95-125-227.dynamicip.rima-tde.net. [95.125.227.10]) by smtp.gmail.com with ESMTPSA id j8sm2536684wrh.16.2021.11.11.03.07.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Nov 2021 03:07:02 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 3/4] tcg: Document ctpop opcodes Date: Thu, 11 Nov 2021 12:06:55 +0100 Message-Id: <20211111110656.237727-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211111110656.237727-1-richard.henderson@linaro.org> References: <20211111110656.237727-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::42f (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::42f; envelope-from=richard.henderson@linaro.org; helo=mail-wr1-x42f.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Fixes: a768e4e99247 Resolves: https://gitlab.com/qemu-project/qemu/-/issues/658 Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- tcg/README | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tcg/README b/tcg/README index c2e7762a37..bc15cc3b32 100644 --- a/tcg/README +++ b/tcg/README @@ -254,6 +254,12 @@ t0 = t1 ? clz(t1) : t2 t0 = t1 ? ctz(t1) : t2 +* ctpop_i32/i64 t0, t1 + +t0 = number of bits set in t1 +With "ctpop" short for "count population", matching +the function name used in include/qemu/host-utils.h. + ********* Shifts/Rotates * shl_i32/i64 t0, t1, t2