Message ID | 20220527181907.189259-35-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:7000:8607:0:0:0:0 with SMTP id bb7csp910927mab; Fri, 27 May 2022 12:14:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYYjKb2CZ8yWlMXlnhGfNUVGggsGlYgv1oThgWHLm9+xwEqnrteuI8lTVqXwTdLiyycg+A X-Received: by 2002:a37:9e92:0:b0:6a3:4a0e:7296 with SMTP id h140-20020a379e92000000b006a34a0e7296mr26039763qke.504.1653678875894; Fri, 27 May 2022 12:14:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653678875; cv=none; d=google.com; s=arc-20160816; b=vS/DLScPyJJjc4LLuFtTIcSBQZglpcBpq7ICcud+zGMkQ9xATCx9ViLWRrVBOwhof9 DueiRYAQrO8Deu5+ptsaEmLr4I4WMBCQGMQfE8tevfQ1KFEU/WrzRvBgRcDjCziEd9xP ndIJPr4FFJeMkJmCIcsXugHNhTlK29W1LbfQELOPAesdzhIcEk5FHSRmEXl5YXfMG+MT 9DyueG4hYilB/5LpK+ohubGxWZIXsB6/pNGJQGMB1HqLHTiH6Rvs2NASwvqFCeIqLq5E gJKbxAWqTg+cnXyHIWAW5yUJ1uhkulbsOJa3+qVYo5u+LrkEYtOOXNMVvJ37SXV1VcgF 0orw== 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:cc:to :from:dkim-signature; bh=8vuTZBHK/OwCNVvVH2qQoYB8dgogxI10hqOhiJ3AnPA=; b=uvs835+SUP+1NsliZOaooq2KrE2irbrj5RY8MvNvxjhRkKwrJgYl9xwwiuC/smPGXI zR2YkQJaau403WSektM602/MD6WBQnmIPBzTHUhGSJHNZqyNUFqc5hZ7bo4qCBlN7VsT v0y/kbUENp0nbuJ45rLEiyp/xkKiavy52J5FmxZV8OeW47QxVTqTPLO6iRwAkqMrGvkE Kb7IuvmeffVvvMyUwvcSoT7DPjtRJTGPqFicNpFkgO5Hckn39VtHbmZOXcsn3BJhX8A7 n+VG+XVPUuk65mUgVzxcujMk5Do5YKkJPTxr60Eqe8/xwIQz1aFA1rWdYkyVwGUOQTDu +wtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i05DWLwK; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6-20020ac85906000000b002f3a19abf8fsi3204113qty.660.2022.05.27.12.14.35 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 27 May 2022 12:14:35 -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=i05DWLwK; 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]:54784 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1nufPv-0007nW-Ee for patch@linaro.org; Fri, 27 May 2022 15:14:35 -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 <richard.henderson@linaro.org>) 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 <richard.henderson@linaro.org>) 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 <qemu-devel@nongnu.org>; Fri, 27 May 2022 11:19:41 -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-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) 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) From: Richard Henderson <richard.henderson@linaro.org> 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: 8bit 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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
target/arm: Rewrite sve feature tests
|
expand
|
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); } -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) static bool do_sve2_narrow_extract(DisasContext *s, arg_rri_esz *a, const GVecGen2 ops[3])
Convert SVE translation functions using do_sve2_fn_zzz to use TRANS_FEAT and gen_gvec_fn_arg_zzz. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- target/arm/translate-sve.c | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-)