From patchwork Mon May 30 16:06:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 577272 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:330b:0:0:0:0 with SMTP id f11csp435296mag; Mon, 30 May 2022 10:28:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7t/f37Y3Q312mLYIe1kwAeYjWYXOzEGHkQZVoqJllUHIEL45HCKsI2oHZLXQtvqSSDFtL X-Received: by 2002:ad4:5b83:0:b0:464:56c2:881e with SMTP id 3-20020ad45b83000000b0046456c2881emr2921438qvp.84.1653931692778; Mon, 30 May 2022 10:28:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653931692; cv=none; d=google.com; s=arc-20160816; b=GKffPHJqVTYH8C3e7sMfwc/by5btGU2cTH2zccp5AMnb7FHxolKvMiouGjeWBXlvUi UZAlUl82IZ6QGE9740y4uTQ2MyRUnTxSKTQWVbMdzI4gv8yqApwyJ/ilaLNfOcLU33LS CSPghtmad4n8wuxIR8LrprQCHc57gM/Rj/ye+4Fsa5LipIUFfSvmaf7iy07mQCxBwKOo hZgI3clqa8k+EaU8tlisf8RFL84taFTCnjUATHPcmTTMY+A1OytLSX5BS1BPDIF8qBop Y/cMz4t8lHdAe/OdodJSbsgvBAvMn8dMpTDQII5I0Ri1Gnfh0ejpCatY1uFRk1VMyFDj FOlA== 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=xJwhKbyM174ARiKDgTM7s52QgSFnWHIJp+9TkqMSv5s=; b=YdmehD63b8A2kEZYxUkE/AG9L5nXZF/mE6koLosTDSiYzpoU7Mj4jfBLL8GzKbmI/k 4D2p9pyJcASX5aNnwSdawO705a9tA4Xy5Vl3MEBtq71oaOGvpwm8+Ja1Ee8BL61WfCbU OxeMxGXu8PS3xXee/Tp3fxHfmEHBIp/0lP+XNTmT8t3v2dXIQUeGmlK6XsvskvqwlDPO kBJMuSMQfb8B0gy6Q1WbdWODemRTCPA4mj1bFcg1P/yXEdUCL23lmxF3X2cWRIV2hEBP fTMqgo7k5RO5Fl4ttSZcse/EQvY+TNQJOs57tP9C7hJPpKgNKDkDK7sFacOZ9fOddxkC 6uHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="dG/WgQzb"; 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 i6-20020a05620a27c600b006a609a8c413si3924538qkp.394.2022.05.30.10.28.12 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 May 2022 10:28:12 -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="dG/WgQzb"; 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]:54350 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nvjBc-0004VX-CX for patch@linaro.org; Mon, 30 May 2022 13:28:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39962) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nvhwa-00040P-9c for qemu-devel@nongnu.org; Mon, 30 May 2022 12:08:36 -0400 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]:40693) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nvhwU-0007Rn-MV for qemu-devel@nongnu.org; Mon, 30 May 2022 12:08:32 -0400 Received: by mail-wr1-x434.google.com with SMTP id k16so10945436wrg.7 for ; Mon, 30 May 2022 09:08:30 -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=xJwhKbyM174ARiKDgTM7s52QgSFnWHIJp+9TkqMSv5s=; b=dG/WgQzbo2TlQOCBZQoIf2+SQnj8bkJLhG6xS/HNqHlkfFg7OUpd9HtJNZMQlekP4s /10GHCtWH/FUNiwfYzSi/288FM4lf07KliIain96uUgK91O9KKCKRak4b38Z6Dz2JEGh xJmHfPXgVMtdUIlLqTuwvENSnT5mm0r0JbrPN0yuUthL7Bs9MnYL8bRovJ9xuJTGKmJT x5zCwG0CJojl4jtmJbnFRThK1RMtw3ACr3BDUPXdAVfulC/GqjGEUvq767lfuAaR089U 7TkV2/hFaXn+a8wcEMhX932kUrQRcb0HXoZSB0IA+4v+kg8Q86GOOMbz4ouzUrPunBzN B2Ng== 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=xJwhKbyM174ARiKDgTM7s52QgSFnWHIJp+9TkqMSv5s=; b=lA+e8LATkijOq/VOuS7WhOBTQBmHkmR/pTndKXffKamOB7k1JVDGR5X8+7GuI0WVyR Y8gGPuq9kgVvNWuj5YACShx18WUj3OQGYbSuuxqseGTBj2+OpBQPR3c6p+tXtH+C1kyR q9capMqkWZ9VCjnUt71f86XrL90hj8g3fSdq5JknqpoQFFmroHJXbtvXbSAw7lmYNcXl VynX4Ut5Y0+yBCsadY1OYY6u8KLmtx/h6TlRfJ9JREgmCyI3c2QAE8CLGDqVq0vVWf0H ld6QPAXJWT1fghxdk5apLExvte8m7CiUGAg8+wKL3P+Bpagrip7rNVh7cqPQzETpt+f2 dOpA== X-Gm-Message-State: AOAM5317zooaFPXwuzkFrhqUFLvtpDzyVK9a+GtSnkO5KuDstJj1rjUV 85olaPTgtIQnhWF6DiPs/9ECY2awhy534g== X-Received: by 2002:a5d:4302:0:b0:210:824:48ee with SMTP id h2-20020a5d4302000000b00210082448eemr18899223wrq.471.1653926909289; Mon, 30 May 2022 09:08:29 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id bi12-20020a05600c3d8c00b003974b95d897sm10232152wmb.37.2022.05.30.09.08.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 May 2022 09:08:28 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 087/117] target/arm: Use TRANS_FEAT for BFMLA Date: Mon, 30 May 2022 17:06:38 +0100 Message-Id: <20220530160708.726466-88-peter.maydell@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220530160708.726466-1-peter.maydell@linaro.org> References: <20220530160708.726466-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::434; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x434.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 Signed-off-by: Richard Henderson Message-id: 20220527181907.189259-85-richard.henderson@linaro.org Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- 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 5aa3e477cfb..f2939fbeb97 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)