From patchwork Thu Jun 9 09:05:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 580273 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:5806:0:0:0:0 with SMTP id j6csp647061max; Thu, 9 Jun 2022 03:36:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyffkAKtLkV6+Hf47qaiptlbktnjz51QSaCN1nwnWYqLIStQUfWtRn0ISNcV6+UCwzOIbMM X-Received: by 2002:a05:620a:2947:b0:6a3:a317:fa08 with SMTP id n7-20020a05620a294700b006a3a317fa08mr26245593qkp.746.1654770997302; Thu, 09 Jun 2022 03:36:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654770997; cv=none; d=google.com; s=arc-20160816; b=y4HcgljkUegBJn9Qe2pGzS81L3T700tFoG2k7HmSi48aQW0CnGiYd9madkiv0iBIY3 PbsQumCESQQ7sqTLW8dQzPEvh/giy6m907oPILG6muiq0/51t4q5yiO+tvS00IgAFqoU 9TFKqnHqjjCDpcRhkoBGdMK6MvmEcRbzDF28fAfIcyCQXwvi2pcX5I6VHQCqVCebO+3+ L/zcXE2F5RWAQxAHH8XLQDpVB/9evKVLCmwIcG0QPgqoJkalvpEScn7YLBGPvh+xyYhj GtKLwyuy6ww0PrxVI+jp/x937LjlUnF6Ag1KGA/BLSrmDOjvSuW96YlkMbd3TC74O2Hl gNrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to: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=A14QxFs16bLONsVCSDgKLzSud5B5D6SZ03whQ20bd3w=; b=tbNB+YZg1i3I+KkIFWHrN2DJbXGpd2eY4W1xld6sUDTTMGl51nETQ473uGlxDREVbs Cw6DAauOY0iG+HheB4I/Qq6+O36qhwgk1z4a8Gf6q8pxMDj0JKA/aDZhL46w/h06rk4u ErL2AUcgmUc5E5zRYMsRNhxH5jDC0lApvtWdyNIxtiRF6y0cqoiBaj22qwjh96++LyfA u4Gej7er2szHSbirLJPagwcfgQheWn/gT13FQRUlV9/X/JKC3iFWSV7f71AqDd/e1tMN h2+oSbZ/DbCNjRpFf+Rm5r9uVapQWMg3dAmyTaN3ZPOGqLvr0bQQBjLsYCc5ZMjtJvqs /qsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CggcEqGc; 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 bq34-20020a05620a46a200b006a7316a3b30si415608qkb.373.2022.06.09.03.36.37 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 09 Jun 2022 03:36:37 -0700 (PDT) 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=CggcEqGc; 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]:46988 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nzFWm-0001wS-R3 for patch@linaro.org; Thu, 09 Jun 2022 06:36:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40014) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzE7f-0001k9-Jm for qemu-devel@nongnu.org; Thu, 09 Jun 2022 05:06:35 -0400 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]:43557) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nzE7d-00062u-O4 for qemu-devel@nongnu.org; Thu, 09 Jun 2022 05:06:35 -0400 Received: by mail-wr1-x42e.google.com with SMTP id d14so22478158wra.10 for ; Thu, 09 Jun 2022 02:06:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=A14QxFs16bLONsVCSDgKLzSud5B5D6SZ03whQ20bd3w=; b=CggcEqGcQmo4V+zqyGuGh0OrHns6C2kvXM732Ca0W6lPCoxIM0XF/QQTx7orla1dlS iCoI3LkbK2LHZ0m5gV8v7aNMmxnw//aJPYJwS7dc9f8KvDYNGWl87EFFQWNrbYL4NEk3 wOCHGZCWYAKB460pdWCn2tqhrz9096rmLXlnld4yDryeW3+fiH1TdaS205ubXCPd4Y0Z Li9exE0QUcRS8VnhJYCgz6hZUJtapy/c5UkH7+iT5rDzTAcfs3DQ/XG8wV/H+HyE3LxK B8VvPMV2ut3xKAYncRBmWpnUXIKNa8DGV5oRswrhwzOn4toKTsHtKPhLu+1Ak4NaCJMD JWRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=A14QxFs16bLONsVCSDgKLzSud5B5D6SZ03whQ20bd3w=; b=rAKucWDceyQ9uWls2Fdv+ng9pciwjYgmj1uXYA+Rjy38qJLqI4KrOQiK576jA9OX8O 9P3M3p/neetcPUYzcU9hukL3/FxNpLH1dix9I0sTV3ZBIjkcMBTEfkiJwp0tB6w1wWzQ netDeqK+YgMd3ihIcx+jBjQbQ5XDdIlpR1//tq2iPfeCZ7cwHnwPPXospzT/btZCYHo/ 6vAYqGLwd+EXhVRj7s1N5WeRzIwYfd4LGX202U/RWaX77QzDyhLi7vWhMVFw8pW9ODfc 7L6XzOIZEVCre71pyhe6JhbvrTjKskHnkAVwrLtm6Gk1eCrW9i/mY8OZikVhOSPFSwO9 7G5Q== X-Gm-Message-State: AOAM533gXK/ogNfgMMHnJHn16K8xA9Zc4bCoGNnjvnnQp+WtuGGQ8VoX hb5Ol0Fyza4/NnUri4A3JCQMbzyeKhBMuA== X-Received: by 2002:a05:6000:168c:b0:218:4523:c975 with SMTP id y12-20020a056000168c00b002184523c975mr17911740wrd.23.1654765593007; Thu, 09 Jun 2022 02:06:33 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id c13-20020adffb0d000000b002183cf9cd69sm11349796wrr.15.2022.06.09.02.06.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jun 2022 02:06:32 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 50/55] target/arm: Move expand_pred_b to vec_internal.h Date: Thu, 9 Jun 2022 10:05:32 +0100 Message-Id: <20220609090537.1971756-51-peter.maydell@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220609090537.1971756-1-peter.maydell@linaro.org> References: <20220609090537.1971756-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x42e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Richard Henderson Put the inline function near the array declaration. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson Message-id: 20220607203306.657998-16-richard.henderson@linaro.org Signed-off-by: Peter Maydell --- target/arm/vec_internal.h | 8 +++++++- target/arm/sve_helper.c | 9 --------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/target/arm/vec_internal.h b/target/arm/vec_internal.h index 1d63402042f..d1a1ea4a668 100644 --- a/target/arm/vec_internal.h +++ b/target/arm/vec_internal.h @@ -50,8 +50,14 @@ #define H8(x) (x) #define H1_8(x) (x) -/* Data for expanding active predicate bits to bytes, for byte elements. */ +/* + * Expand active predicate bits to bytes, for byte elements. + */ extern const uint64_t expand_pred_b_data[256]; +static inline uint64_t expand_pred_b(uint8_t byte) +{ + return expand_pred_b_data[byte]; +} static inline void clear_tail(void *vd, uintptr_t opr_sz, uintptr_t max_sz) { diff --git a/target/arm/sve_helper.c b/target/arm/sve_helper.c index 8cd371e3e37..e865c125273 100644 --- a/target/arm/sve_helper.c +++ b/target/arm/sve_helper.c @@ -103,15 +103,6 @@ uint32_t HELPER(sve_predtest)(void *vd, void *vg, uint32_t words) return flags; } -/* - * Expand active predicate bits to bytes, for byte elements. - * (The data table itself is in vec_helper.c as MVE also needs it.) - */ -static inline uint64_t expand_pred_b(uint8_t byte) -{ - return expand_pred_b_data[byte]; -} - /* Similarly for half-word elements. * for (i = 0; i < 256; ++i) { * unsigned long m = 0;