From patchwork Fri May 27 18:18:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 576627 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:8607:0:0:0:0 with SMTP id bb7csp938081mab; Fri, 27 May 2022 12:56:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySqpUsLZe++mIctcT/Tt8U3MyDpxgXMn0F0IWWmXpC0pI6NNJBde3+XTkllWnbbaVr1Tmt X-Received: by 2002:ac8:578d:0:b0:2f3:e61d:df9e with SMTP id v13-20020ac8578d000000b002f3e61ddf9emr35403453qta.181.1653681394560; Fri, 27 May 2022 12:56:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653681394; cv=none; d=google.com; s=arc-20160816; b=Wcd+avj4SFnqKOlVOUC5HbvFLqxQstqzWWOZWF1s0G+myqm8yQmQEPIYKo+BaIDvfH YYsWiCIy47tIhAXkoZ4hJuYtI9E6+9AUbnSWTtDG8tfzkhxw6GrEOphcLyWtNTQIwe/X hcSbgmz7tv9xXA1vYe4S49BumF3oaMNDZ0qj6mb6j0dnQnHbaJcFsWKXV6xHwrtrsK8Y yi0dukaNjuP3P6eWl9CMd/zVh1FFAZGzQC7TCj5gSqh2cvnBZs0T+7NB5keS8uAsG7As BdafHlwZxpNPjxIAk4D34e6qZPqZMkHXpPvJtsVY3lEuHE4oSHff/B0u9odpd19ddC2n Z1XA== 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=Pr1PckvI4GfXO3bbXjP+Iw41YIPqzsw06R/vMa2yI4A=; b=XwGo+mXVnmCSlbxZ9fzVP0VHaF695X0Lo7vsMVQJLVDTRMM7mGHRWul+9hGyncFq+A RUwihm1oxI6fYIs/VQIYaDNSfTQTcTJs6lmyyrDg+5itX6Mo0gzS6XS60rTSDCA+GenX X3l7BTDsh9k+BVhy9iQ5CJ+0Kh0id1OQrX/4m9HZ8fypWyNHPe/fi6W2cb9iUueDiy0G Cp5SXsxOIuVA3y33VGlmJyecjbHTYa07ZUB7V1e+6Xf384I02w9AH5/ZOioMxGoo/ISX f0urVI5r0ggl2o9zOOEWMqoG5zNrFyg4vcQg1onEeYHMCkWyb2TPjRWqDGtTv9/zcTr+ 0bPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vhE8HMgk; 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 j2-20020a05621419c200b004624bf685acsi3144585qvc.190.2022.05.27.12.56.34 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 27 May 2022 12:56:34 -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=vhE8HMgk; 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]:42754 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nug4Y-0003mb-5B for patch@linaro.org; Fri, 27 May 2022 15:56:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45314) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuefS-0001fT-Bh for qemu-devel@nongnu.org; Fri, 27 May 2022 14:26:34 -0400 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]:33564) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nuefN-0005IH-6F for qemu-devel@nongnu.org; Fri, 27 May 2022 14:26:33 -0400 Received: by mail-pl1-x62f.google.com with SMTP id f18so4856920plg.0 for ; Fri, 27 May 2022 11:26:27 -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=Pr1PckvI4GfXO3bbXjP+Iw41YIPqzsw06R/vMa2yI4A=; b=vhE8HMgkGXIv24j5Zm5Sav9MzwYtP3WwSG1hReEy+D3KB45Z8qdS4Uj6xU6TugivMS CfZ2yQO3+gOuvBbNNg2/COBovLHEQIEAC6EPr6yuRzuQFgnzYBMo3aTd1ZIlpIAMP4tB B5Ib2TGOaAR7w/acsl7yWEF1kUKUDwOTOfO1I63Mdz2r5T9fF+tUCxzmrekWwn4wkuAk T8GbdYwE1zHiBAgkKUnPrSPjS48bFPR4k6MzHoNzA8tTmFrMMT5njEe2zpX55uiuPlTb y2Y0l1sxHA6JtzqUvN38tFu7G1cZDjhqZGtEXa6G7sMAbSIjIn8fXCqhhpH/NXhlubLo JD+w== 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=Pr1PckvI4GfXO3bbXjP+Iw41YIPqzsw06R/vMa2yI4A=; b=i6ljoTh3t3MK84C+GI5PHcqLzwKN0PwX7QfP2+zJtW5R7fW9ZIJXSkOIBPuNDJsxyf Qp+0KPcD6Pf2GWPKDnZv95Q0vlRSdIhUUxKrG8txD4/8btgWJB6IxxasY36GMjW+p/yW /PMm6L/PwxjYFKDx9VZ9p79IHZg13AxSqYAMXhZSUsC8/fhdVfCXEVF6SjzVwHdoRXx6 u0GiWvV9+wVcBcEBWnqX++EayEb4NMTZmnBQMqNu5vzmjpEHd+dObEdGamAll6nOnorS WPA5q/07fJs/4goTbhZu5ILTJkphWtARHyBgSGkZ2L7eQXpPe3Pumv5Sie/DoPiPzewU SCew== X-Gm-Message-State: AOAM531CIXPyCbs4jA9OgVsVDZJ4drstoUWefl+ac5JjyMXXX0oPYuPN /fBfG54Eh8kPBP+EJQlgPHkCfVgjRNmjlw== X-Received: by 2002:a17:902:e5cb:b0:161:872d:6ed3 with SMTP id u11-20020a170902e5cb00b00161872d6ed3mr17325253plf.62.1653675986987; Fri, 27 May 2022 11:26:26 -0700 (PDT) Received: from stoup.. (174-21-71-225.tukw.qwest.net. [174.21.71.225]) by smtp.gmail.com with ESMTPSA id g13-20020aa7874d000000b0050dc762816fsm3781539pfo.73.2022.05.27.11.26.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 May 2022 11:26:26 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org Subject: [PATCH 084/114] target/arm: Use TRANS_FEAT for BFMLA Date: Fri, 27 May 2022 11:18:37 -0700 Message-Id: <20220527181907.189259-85-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 Received-SPF: pass client-ip=2607:f8b0:4864:20::62f; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62f.google.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=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=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: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 28 ++++------------------------ 1 file changed, 4 insertions(+), 24 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 5aa3e477cf..f2939fbeb9 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-sve.c @@ -7568,39 +7568,19 @@ TRANS_FEAT(BFMMLA, aa64_sve_bf16, gen_gvec_ool_arg_zzzz, static bool do_BFMLAL_zzzw(DisasContext *s, arg_rrrr_esz *a, bool sel) { - if (!dc_isar_feature(aa64_sve_bf16, s)) { - return false; - } return gen_gvec_fpst_zzzz(s, gen_helper_gvec_bfmlal, a->rd, a->rn, a->rm, a->ra, sel, FPST_FPCR); } -static bool trans_BFMLALB_zzzw(DisasContext *s, arg_rrrr_esz *a) -{ - return do_BFMLAL_zzzw(s, a, false); -} - -static bool trans_BFMLALT_zzzw(DisasContext *s, arg_rrrr_esz *a) -{ - return do_BFMLAL_zzzw(s, a, true); -} +TRANS_FEAT(BFMLALB_zzzw, aa64_sve_bf16, do_BFMLAL_zzzw, a, false) +TRANS_FEAT(BFMLALT_zzzw, aa64_sve_bf16, do_BFMLAL_zzzw, a, true) static bool do_BFMLAL_zzxw(DisasContext *s, arg_rrxr_esz *a, bool sel) { - if (!dc_isar_feature(aa64_sve_bf16, s)) { - return false; - } return gen_gvec_fpst_zzzz(s, gen_helper_gvec_bfmlal_idx, a->rd, a->rn, a->rm, a->ra, (a->index << 1) | sel, FPST_FPCR); } -static bool trans_BFMLALB_zzxw(DisasContext *s, arg_rrxr_esz *a) -{ - return do_BFMLAL_zzxw(s, a, false); -} - -static bool trans_BFMLALT_zzxw(DisasContext *s, arg_rrxr_esz *a) -{ - return do_BFMLAL_zzxw(s, a, true); -} +TRANS_FEAT(BFMLALB_zzxw, aa64_sve_bf16, do_BFMLAL_zzxw, a, false) +TRANS_FEAT(BFMLALT_zzxw, aa64_sve_bf16, do_BFMLAL_zzxw, a, true)