From nobody Fri Dec 19 04:28:21 2025 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=1598607318; cv=none; d=zohomail.com; s=zohoarc; b=LkMlWd4xcnxuKuh38nVpJkeekSU+BcCmuEW2nut91u5KCWdIJMC1U9H1jcsFDexo/tT+BKTOKYKv5qMVRBXCNoMOG2rdcO/DQSGegTbalJiJOkvU/t2MzegXzBDMEplP72mX56JBObrv0vbMI995tb/02gSGhT0mYIRBguEn7ZE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1598607318; h=Content-Transfer-Encoding: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=rb21YRqN8FSr5jkzL6XdWdemnlaFMSgFTexiVZhwl7w=; b=mO2Du2xqJVAFRFCCPnlsjCq7kqaBRIgC3GAhSzX5SbnuFk05dVFIxkHFGLy80AFh1MEpb5Gav3Loso3OHG6NMeUN85lVb4wpE/hzEqgU2aev7P5RkLBt5WWavfcFP8u9mIo/uPUqBYDk2syLuERW3XSJ8u2quZ8l8RhhirsHSYw= 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) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1598607318129221.11866689798194; Fri, 28 Aug 2020 02:35:18 -0700 (PDT) Received: from localhost ([::1]:48730 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kBamy-0000TX-U1 for importer@patchew.org; Fri, 28 Aug 2020 05:35:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46152) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kBacr-00054u-MS for qemu-devel@nongnu.org; Fri, 28 Aug 2020 05:24:49 -0400 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]:54467) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kBacp-0004MD-Uy for qemu-devel@nongnu.org; Fri, 28 Aug 2020 05:24:49 -0400 Received: by mail-wm1-x344.google.com with SMTP id s13so289268wmh.4 for ; Fri, 28 Aug 2020 02:24:47 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id t13sm912304wru.65.2020.08.28.02.24.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 02:24:45 -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=rb21YRqN8FSr5jkzL6XdWdemnlaFMSgFTexiVZhwl7w=; b=M5ub63YKp9MmX9yWNvU16Djihr4BbVUfhPVD1MLDSu/nBcGi2bM8j5mJxPLfxCLcVk aNWGitmzG3TwK6WKtvh0/Ow9n+sx2L0jojP6QpYeVltd+Y1mJXBXBKM/zPbb8lZoxrU5 3rMYAMBJYIaQY8mPVcrPUV9savtvmRFgCHddy1oAe7K/AK0rrzIIjjy/Td7o+tu/M3Vo gEm1b2/ATqiOc8V0xDGbCUNi96AnxPRpyrp2Ii06ovwEwGWzF4oFCAfj50fxZ8OE/C+b AhbOLFgG9EG7XL1SjMpSzhI+7a04Kqddtvz+zgYeEpEq9+vzlzsPckEexe27lzwlMF4M mH8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=rb21YRqN8FSr5jkzL6XdWdemnlaFMSgFTexiVZhwl7w=; b=oBUvyH1EMhvZF8RZQKOxGqVSs4B/7YbJbrMkRTvrUknE4kTT4wvdFNKB5jMCCKNck0 UJO3Z6PQhfcxtSh3AVzQcGODsJj3RIPUJzrcpBPg1yNtwCGB3tih2veBs4ioAtLXQ/+2 gTP+lnIv47uU3kd1jq32dM+Os42DVgYrc3eSwDgh45uQpzVuVZN78W5qgL3/aRxlzYeu M8egq9icTQf08972NTAUMuc4oDZTiA+htxODAs/n2UaRaQl+Jah5vAkkqFObuMEj8k96 uvCCjuPiik/15pRXwc+tCcbDWISptbf+bJOIkGxY+2Yc0N5Xmg+GVEXeG7axWharIjSj 5e8g== X-Gm-Message-State: AOAM531f7CKzq5YREa7bZ3ybDxSSzp27r1pDUeaWytRI0mDj6VJ3iFlt /427btUpQhNtbr5koGPQ+PYlXsJZXLX09yCu X-Google-Smtp-Source: ABdhPJyFEv+syIZvxVplQF4xq28YGvNLt81pjY8rcKweW06yXqmhrcy4g793g9BuQhuxkVKlDfmMGQ== X-Received: by 2002:a7b:c342:: with SMTP id l2mr657062wmj.153.1598606686399; Fri, 28 Aug 2020 02:24:46 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 26/35] target/arm: Split out gen_gvec_ool_zzzp Date: Fri, 28 Aug 2020 10:24:04 +0100 Message-Id: <20200828092413.22206-27-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200828092413.22206-1-peter.maydell@linaro.org> References: <20200828092413.22206-1-peter.maydell@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=2a00:1450:4864:20::344; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x344.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 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) Content-Type: text/plain; charset="utf-8" From: Richard Henderson Model after gen_gvec_fn_zzz et al. Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell Message-id: 20200815013145.539409-9-richard.henderson@linaro.org Signed-off-by: Peter Maydell --- target/arm/translate-sve.c | 35 ++++++++++++++++------------------- 1 file changed, 16 insertions(+), 19 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index a747fff01f8..96bfd32bbec 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-sve.c @@ -142,8 +142,19 @@ static int pred_gvec_reg_size(DisasContext *s) return size_for_gvec(pred_full_reg_size(s)); } =20 -/* Invoke a vector expander on two Zregs. */ +/* Invoke an out-of-line helper on 3 Zregs and a predicate. */ +static void gen_gvec_ool_zzzp(DisasContext *s, gen_helper_gvec_4 *fn, + int rd, int rn, int rm, int pg, int data) +{ + unsigned vsz =3D vec_full_reg_size(s); + tcg_gen_gvec_4_ool(vec_full_reg_offset(s, rd), + vec_full_reg_offset(s, rn), + vec_full_reg_offset(s, rm), + pred_full_reg_offset(s, pg), + vsz, vsz, data, fn); +} =20 +/* Invoke a vector expander on two Zregs. */ static void gen_gvec_fn_zz(DisasContext *s, GVecGen2Fn *gvec_fn, int esz, int rd, int rn) { @@ -314,16 +325,11 @@ static bool trans_UQSUB_zzz(DisasContext *s, arg_rrr_= esz *a) =20 static bool do_zpzz_ool(DisasContext *s, arg_rprr_esz *a, gen_helper_gvec_= 4 *fn) { - unsigned vsz =3D vec_full_reg_size(s); if (fn =3D=3D NULL) { return false; } if (sve_access_check(s)) { - tcg_gen_gvec_4_ool(vec_full_reg_offset(s, a->rd), - vec_full_reg_offset(s, a->rn), - vec_full_reg_offset(s, a->rm), - pred_full_reg_offset(s, a->pg), - vsz, vsz, 0, fn); + gen_gvec_ool_zzzp(s, fn, a->rd, a->rn, a->rm, a->pg, 0); } return true; } @@ -337,12 +343,7 @@ static void do_sel_z(DisasContext *s, int rd, int rn, = int rm, int pg, int esz) gen_helper_sve_sel_zpzz_b, gen_helper_sve_sel_zpzz_h, gen_helper_sve_sel_zpzz_s, gen_helper_sve_sel_zpzz_d }; - unsigned vsz =3D vec_full_reg_size(s); - tcg_gen_gvec_4_ool(vec_full_reg_offset(s, rd), - vec_full_reg_offset(s, rn), - vec_full_reg_offset(s, rm), - pred_full_reg_offset(s, pg), - vsz, vsz, 0, fns[esz]); + gen_gvec_ool_zzzp(s, fns[esz], rd, rn, rm, pg, 0); } =20 #define DO_ZPZZ(NAME, name) \ @@ -2704,12 +2705,8 @@ static bool trans_RBIT(DisasContext *s, arg_rpr_esz = *a) static bool trans_SPLICE(DisasContext *s, arg_rprr_esz *a) { if (sve_access_check(s)) { - unsigned vsz =3D vec_full_reg_size(s); - tcg_gen_gvec_4_ool(vec_full_reg_offset(s, a->rd), - vec_full_reg_offset(s, a->rn), - vec_full_reg_offset(s, a->rm), - pred_full_reg_offset(s, a->pg), - vsz, vsz, a->esz, gen_helper_sve_splice); + gen_gvec_ool_zzzp(s, gen_helper_sve_splice, + a->rd, a->rn, a->rm, a->pg, 0); } return true; } --=20 2.20.1