From patchwork Mon May 30 16:06:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 577235 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:330b:0:0:0:0 with SMTP id f11csp411415mag; Mon, 30 May 2022 09:57:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwO21UXdfJ3a1hReJmKcw3ANNW2c8wc6WjwyOYdgRam1UgD8oha8DND2R6NXzC5y/qS+heB X-Received: by 2002:a05:620a:746:b0:6a3:8939:b82b with SMTP id i6-20020a05620a074600b006a38939b82bmr26920345qki.319.1653929867056; Mon, 30 May 2022 09:57:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653929867; cv=none; d=google.com; s=arc-20160816; b=vJaiK3a+O9pxnoLrl3mm/JyEd0ApRzctT1xE902CP1uNq1qjPSAaoLVqxfJzgR+lSK /gzVdzA/PhXWSax1mx/Z+wV34ISe+hGIHyWjS3iwwMB1J0cW4ZAR+tCRtNwhwllajImN YAmlq1uWLmPYF01DhXZYepY9ybwnol0YZpNM82NcczFrAfJhvNV+Iq0buJfeCZ6XWJzL tDSfbK9uf+4+ctmaQ5RxHTvfSJfTRrmjtpSH5WNWXn8D3rsLtX/8WW7hxlSn53GXsJz7 dhI0SRf39Ns5ggErPW2O8nX6E0YX9oBsw3yp8x4rv609pyaCluu4A17g2FDB6iGYebhP FYiA== 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=N2EMzwUbSz2wYg9OsvTZrafs2t7/0p40URA47hEKcmo=; b=dIjL++xbO5q759hKmlo+GY3tJ/f7aPVSzBpEUTC5mpWdF8kooL4rmWy4OulnaTafRt NvSdLGa0GKPBFfXkBnyyIgYMsxZD75rcpIwTZqHKganfQX8y0Qg6caTE8Zyd65FUb5j3 06PX6nTSFAo9J7TH30RfZ9yoZLEhUqmvE5QO/9Js4T/GvOQHq9C/ntGNYyCDHtAPu9j/ CXDqIqhQOhqMRYG+bFl+meR4unIRwxeV1Tfa5oz+tCi3Ub0qhNBknNZIre1ow/eDei7X CDOOnSgsoc/785Ce2GQzH4nrN9aPNWJRc6qb026zYq/e/raXyJctMExRQOjbx4F5pPha 9tJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eW+1Wpaf; 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 a6-20020a056214062600b0046241f4b2a5si7635473qvx.542.2022.05.30.09.57.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 May 2022 09:57:47 -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=eW+1Wpaf; 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]:59298 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nviiA-00084E-Kd for patch@linaro.org; Mon, 30 May 2022 12:57:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39632) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nvhwJ-0003rG-Pq for qemu-devel@nongnu.org; Mon, 30 May 2022 12:08:26 -0400 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:43838) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nvhwH-0007Mu-9B for qemu-devel@nongnu.org; Mon, 30 May 2022 12:08:19 -0400 Received: by mail-wr1-x42d.google.com with SMTP id s24so7959037wrb.10 for ; Mon, 30 May 2022 09:08:15 -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=N2EMzwUbSz2wYg9OsvTZrafs2t7/0p40URA47hEKcmo=; b=eW+1Wpaf6f9p7tvcr5cMmtWcMDy4KX/ATxUW8CfLP/4QDnHTw0qUeE1XUv4yDIIEvF y6GJ2BLGubS47SCYYCsDtTf+DGYgmmozJR5Dct16W4rujKZmoExhOHnHDEZIZZseX3eY OAzTarT3jpXkzOU8c/Zo3ZcCXEbNfYczklR+P+gpImlzy/FubLjrJ9Qi2T5MemGYhBp3 NfuI14kikBlVc2SSEOhJI7iwbwJlt7J9Ofb8CuahTy6X65Gh69zhQFT0heTU5srUVNvd 3zzvD6HENBStGxNn+/E7ukvnoyNYwU2ZKdO6ejUuEMcEVvyMZXqX7vnC/PCUpSegFl9T lk9w== 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=N2EMzwUbSz2wYg9OsvTZrafs2t7/0p40URA47hEKcmo=; b=XaD15/XPGmkwvMUAZmDbKbHD7QM4XhnOwlctDyNX7Iz165MxHNE8SMok5EUR79/CCC mhbNTo4LJehRTepnappMHU4BCr+K+xUfnkWiqBTvsi1ZZsNReMaUEc2JxoPlj/jPUFCW Lp0XxSK7kBgzgh2ZqhV+34FShoavVkdtzp6bFPxTXb3dt2EUZVDIWG58YUYhf/FsuHKp aOGCMN4Ko8DoldZ3oHzIHybAEu5jkg3S2PR+vU4r02vC27/N5MYuBq586EytCA/Z3yVg 2WGm0Re3SyDtsedgzd5nI9O88scqNh0kMwcOCCytR6gCt95S+71elwlz+Le56GrzCbQ2 TdMw== X-Gm-Message-State: AOAM532oyAsV5/P+P2p5ERy14Ktb51EVO7ntX0waJ6EQY+t+Nw2x1xO0 nWsBQi9vxpiGlT/Zuo9MUYnzD8uEnS7YIg== X-Received: by 2002:a5d:5150:0:b0:210:1d71:3dcb with SMTP id u16-20020a5d5150000000b002101d713dcbmr13143281wrt.412.1653926894758; Mon, 30 May 2022 09:08:14 -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.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 May 2022 09:08:14 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 068/117] target/arm: Use TRANS_FEAT for SPLICE Date: Mon, 30 May 2022 17:06:19 +0100 Message-Id: <20220530160708.726466-69-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::42d; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x42d.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-66-richard.henderson@linaro.org Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- target/arm/translate-sve.c | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index caa587506c4..8eb70fd56f3 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-sve.c @@ -2658,20 +2658,11 @@ TRANS_FEAT(REVH, aa64_sve, gen_gvec_ool_arg_zpz, revh_fns[a->esz], a, 0) TRANS_FEAT(REVW, aa64_sve, gen_gvec_ool_arg_zpz, a->esz == 3 ? gen_helper_sve_revw_d : NULL, a, 0) -static bool trans_SPLICE(DisasContext *s, arg_rprr_esz *a) -{ - return gen_gvec_ool_zzzp(s, gen_helper_sve_splice, - a->rd, a->rn, a->rm, a->pg, a->esz); -} +TRANS_FEAT(SPLICE, aa64_sve, gen_gvec_ool_arg_zpzz, + gen_helper_sve_splice, a, a->esz) -static bool trans_SPLICE_sve2(DisasContext *s, arg_rpr_esz *a) -{ - if (!dc_isar_feature(aa64_sve2, s)) { - return false; - } - return gen_gvec_ool_zzzp(s, gen_helper_sve_splice, - a->rd, a->rn, (a->rn + 1) % 32, a->pg, a->esz); -} +TRANS_FEAT(SPLICE_sve2, aa64_sve2, gen_gvec_ool_zzzp, gen_helper_sve_splice, + a->rd, a->rn, (a->rn + 1) % 32, a->pg, a->esz) /* *** SVE Integer Compare - Vectors Group