From nobody Tue Feb 10 19:49:27 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1653678942; cv=none; d=zohomail.com; s=zohoarc; b=LTZG9VvNBi98wrW5jJZJOJXT4yKOmb0rgBeZbq+L6yEGZq0KZDnyKzeOqoM+VPfK+uJrjIonFsiTDUMS02Lg8smD/85CbvEEVhSw68xkEgUD11MKQPN7dN8OEO8dRM0DC/Uy/IMffZqqy+ImU0Q0O+fv8dgVGmY0ytz4DYelR4w= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1653678942; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=8vuTZBHK/OwCNVvVH2qQoYB8dgogxI10hqOhiJ3AnPA=; b=ErVERObToawss3nG15+DxNuW0NZIV2h+vWyV499ydWzd3of1RRp1r/04PcFCowBKyGepry7Qqs2bNe3Xf4a8YSoZnr0yXokjUmVr5H+dzTl9pavjjXcFk6xFIo1Wf1+WIO36jM5CGNo56jjY58BuGGGDWMglojGnErRL5FgDdBs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1653678942231496.5476038665141; Fri, 27 May 2022 12:15:42 -0700 (PDT) Received: from localhost ([::1]:58770 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nufQz-00021v-2q for importer@patchew.org; Fri, 27 May 2022 15:15:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42518) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nueYr-0007qq-Ht for qemu-devel@nongnu.org; Fri, 27 May 2022 14:19:45 -0400 Received: from mail-pg1-x52b.google.com ([2607:f8b0:4864:20::52b]:36679) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nueYn-0003Vf-PH for qemu-devel@nongnu.org; Fri, 27 May 2022 14:19:45 -0400 Received: by mail-pg1-x52b.google.com with SMTP id h186so4571841pgc.3 for ; Fri, 27 May 2022 11:19:41 -0700 (PDT) Received: from stoup.. (174-21-71-225.tukw.qwest.net. [174.21.71.225]) by smtp.gmail.com with ESMTPSA id t5-20020a17090ae50500b001deb3cbd8f1sm1911612pjy.27.2022.05.27.11.19.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 May 2022 11:19:40 -0700 (PDT) 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=8vuTZBHK/OwCNVvVH2qQoYB8dgogxI10hqOhiJ3AnPA=; b=i05DWLwK7UGIXZbtPwVeAnU3Xmz3l932pfHsbS2xt2oZqyGGNYj3Lw5Rrr72VRYEwC 4/VW/Dkxjh0zC2Aue7ZjHoc5C1h8xFmiT59nYQWiOowktCjpHPffJAaDzbV45hbre70V ceOS5mR7aRdC43a/JLvEpcucurninj9Mww2vxIGoyRNmFo+bO2GHCgz4/uP0eBaDxSub xYO7PU5K/IzRip1vrPi8qKpP6IpV1aE4NxCjkhYVwqHYWV6YaxNq127kGjFMqI9PDIme uXciI4ynKhuQLovAdBfMXD0zaFkOkG/r+lOStdzEyrXJyLjj4li7+9MseZAr11jsnqCl OkFg== 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=8vuTZBHK/OwCNVvVH2qQoYB8dgogxI10hqOhiJ3AnPA=; b=AksW0YRehR9vX73zay9hzHfvHBMZfitYu7RGrWjiAILrPoTig7vAktVZBoFItlgnI+ SjsEP4eH2d8H3OEq+9fQJthWZTo/E4ILK1y9g0Mxdfq8UeAcDAdIOCtED6y4JXcBheUP a18G/xLZKE7479CsP2Xf1L3L1cpq2nzZmU3WgBMqGpcpdnS8JKCtBIlZNycGwcd6++bR y9ADBhPYRYSB+YyrortAUG5yPq+/0ECyvIvJeU/EriXSRBDixWMz+O0xYlJzgN9PY+ju o3BXjzKiZuUvH6ZEd+AH8HwS+Wf0hQOYg8xKd8/2wv17KAOqacVv00BRGjlxAaPx7p4N kdig== X-Gm-Message-State: AOAM531nXXdGacdBLoOMUcTY5ha3RW8qR92a5OOyRzImPVi9Tf9BG2JG ohNMrGhsYkHnu53VChfeLR/1kOqH+Gr1bw== X-Google-Smtp-Source: ABdhPJwxrAZSOpp7RbCBSaYrwN2hFkS+C93kzdt8FwHYOr/KKZtikGTOaB+Ir90ZDoggQAcijpjsnw== X-Received: by 2002:a05:6a00:889:b0:510:91e6:6463 with SMTP id q9-20020a056a00088900b0051091e66463mr45295467pfj.58.1653675580976; Fri, 27 May 2022 11:19:40 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org Subject: [PATCH 034/114] target/arm: Use TRANS_FEAT for do_sve2_fn_zzz Date: Fri, 27 May 2022 11:17:47 -0700 Message-Id: <20220527181907.189259-35-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220527181907.189259-1-richard.henderson@linaro.org> References: <20220527181907.189259-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::52b; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x52b.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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1653678944366100001 Content-Type: text/plain; charset="utf-8" Convert SVE translation functions using do_sve2_fn_zzz to use TRANS_FEAT and gen_gvec_fn_arg_zzz. Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index ddb34cad8e..e92fef2304 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-sve.c @@ -6897,23 +6897,8 @@ static bool trans_SLI(DisasContext *s, arg_rri_esz *= a) return do_sve2_fn2i(s, a, gen_gvec_sli); } =20 -static bool do_sve2_fn_zzz(DisasContext *s, arg_rrr_esz *a, GVecGen3Fn *fn) -{ - if (!dc_isar_feature(aa64_sve2, s)) { - return false; - } - return gen_gvec_fn_arg_zzz(s, fn, a); -} - -static bool trans_SABA(DisasContext *s, arg_rrr_esz *a) -{ - return do_sve2_fn_zzz(s, a, gen_gvec_saba); -} - -static bool trans_UABA(DisasContext *s, arg_rrr_esz *a) -{ - return do_sve2_fn_zzz(s, a, gen_gvec_uaba); -} +TRANS_FEAT(SABA, aa64_sve2, gen_gvec_fn_arg_zzz, gen_gvec_saba, a) +TRANS_FEAT(UABA, aa64_sve2, gen_gvec_fn_arg_zzz, gen_gvec_uaba, a) =20 static bool do_sve2_narrow_extract(DisasContext *s, arg_rri_esz *a, const GVecGen2 ops[3]) --=20 2.34.1