From patchwork Sat Aug 15 01:31:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 247748 Delivered-To: patch@linaro.org Received: by 2002:a92:cc90:0:0:0:0:0 with SMTP id x16csp1220830ilo; Sat, 15 Aug 2020 07:59:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJze8PpmMjsrfGQ2YbNfBcGeMH3HLa4SPFcLFF7c603ybV/7Sb4YHI18FPCESdunx1CeWcMV X-Received: by 2002:a25:40cb:: with SMTP id n194mr10207118yba.380.1597503542097; Sat, 15 Aug 2020 07:59:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597503542; cv=none; d=google.com; s=arc-20160816; b=vXHJx/Kpbj5R1jLcC61Q0JNC1CbFEJgFjIwcE6XpdZe9ky4yE7Tos+R+xU5Z/ztjjP UVEJjKkn/nzQO3IRU/RJCwV3ZNuMpI+b78M4rvdKFJ4OrBPZizRqRAR5b25iGV4+MzAj hy4FzakJZk7MeD/zdKvI0Q/imdmj2r9xnCF5C0FCuFZZFPQFQWMnsL+B+3pEmuV7tpsZ h9ZkqVc1dlDRk4ptVTy0uHRFiQ/s708NdCffeJ2kJA/fIbzgzoL8nvWDuFyX2s1WMDyO Vcbo61pF8dXYMYOtIi4WYdBjDBXjKFTzG/Caelu6xKmBO3RFkP4vMegCfY2fVyh78jKD Y/NQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc: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=9NRH6u0bui4FSFIzrZ7Rwk8xUdSDUIfSDtkVwDeXJ9Q=; b=M+cTQJOswsqJJ63TNpoECRPueeIv3DCqZ/xbVdlOvUE5UjrwDg1sQDaDCV+TWeOECs UZu+XfmZvuoPEDakEPxoHwVKhdXdeXdRcxkXO/MQdIqXZvXaCwoiegUsJVZoUSFJpAKZ 1MknGnMfIJ3P2gTZ8c/o7t1A5L5XYIxZziIbFedkR7xdLXK2hxNZOlIr4iXsf56mpS84 wLIHAQekaWbS85UpYD2ip15YfC2TdFFAKvxGLRF79u4wK61c9kEvu1JbdOPYZkFUv4t+ GsqECnLPYc+qDwKZkpkIUzu9obX+g04zwmtf8/lwKyJ2qmMgHbaybE3VhPjepfvw5Hc2 Fe1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZPt+fJPT; 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 q142si11514394ybg.188.2020.08.15.07.59.02 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 15 Aug 2020 07:59:02 -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=ZPt+fJPT; 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]:50328 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k6xe9-000160-Jm for patch@linaro.org; Sat, 15 Aug 2020 10:59:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42742) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k6xcD-0007Ne-Mc for qemu-devel@nongnu.org; Sat, 15 Aug 2020 10:57:01 -0400 Received: from mail-pl1-x641.google.com ([2607:f8b0:4864:20::641]:44931) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k6xcB-00053z-VX for qemu-devel@nongnu.org; Sat, 15 Aug 2020 10:57:01 -0400 Received: by mail-pl1-x641.google.com with SMTP id y10so3865476plr.11 for ; Sat, 15 Aug 2020 07:56:59 -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=9NRH6u0bui4FSFIzrZ7Rwk8xUdSDUIfSDtkVwDeXJ9Q=; b=ZPt+fJPTvTouF096Ftttct1ge3AFLeLp7SUJP5rXJ14/8qg5ok6E1zKQT+MWWMR2Fh 7jAWUa6xD6kgzj+vFRs544VOMzUpsu76jdA/Yjtju5vrZwNpGV0xqj/A94DzhgzFSX/N zyje21Vc8p1O6UavOtCF52wOYNPP8IWsIrP81wlTvAc/Qq4caePlnYTH1DI8IT/1TWDf CxFny6kl60iNkUffU7GUIUuw6XskYyVY6TbpNpMGBoZQwomIuGYmjQbnzFTKUDUG24xn I9+X+lOB1+uUTX5nCQKgTEV0ch79vvuwE7JK4jSbVCtWXaaGW6+OE31u5aCYKSA7+l/3 jjZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=9NRH6u0bui4FSFIzrZ7Rwk8xUdSDUIfSDtkVwDeXJ9Q=; b=g0sxeoCyZx5dIIJWcfiQBE1sOlAYFTvb3lLdpfxgdN3Uz9LF7XJcr8JDiLfnHP/Z7O ExFiVpbJbKxm2BuV/aq1tsbpVhN6mdfh5ILEFIo9ZvrxaUQ0B/dCITbNLO/QAoGBb0Rk 9B37an9As2C9mWTY+2G+HfP3QP71YHKWjY1kshnsxs79G21a0w8QBbxAqu6z3NeY3Mju MflA/UTUtur6/FAUeQJUM22gVXmKqLRjAQph+Efxkd7flFx9HoIZtqrzX8QBmEbhML1t tbPry8xdVe6iikJE+GZzHYPak0IJUUj7iFol37ha5OYExUyhV88A6uB6Pb2DfxkM69Qo 3ZYQ== X-Gm-Message-State: AOAM533ZMGpzEIBDds5qX/jWGv4wEUOu+TPtJDu94gjm/B79OUABZMd/ LeIGe2wesPqDmRCHeMRX/CezobTCHsb/OQ== X-Received: by 2002:a17:902:40a:: with SMTP id 10mr3861114ple.180.1597455123858; Fri, 14 Aug 2020 18:32:03 -0700 (PDT) Received: from localhost.localdomain ([71.212.141.89]) by smtp.gmail.com with ESMTPSA id y196sm10625528pfc.202.2020.08.14.18.32.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Aug 2020 18:32:03 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 12/20] target/arm: Split out gen_gvec_ool_zz Date: Fri, 14 Aug 2020 18:31:37 -0700 Message-Id: <20200815013145.539409-13-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200815013145.539409-1-richard.henderson@linaro.org> References: <20200815013145.539409-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::641; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x641.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: , Cc: peter.maydell@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) -- 2.25.1 Reviewed-by: Peter Maydell diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 3a90a645fd..a2948b5128 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-sve.c @@ -142,6 +142,16 @@ static int pred_gvec_reg_size(DisasContext *s) return size_for_gvec(pred_full_reg_size(s)); } +/* Invoke an out-of-line helper on 2 Zregs. */ +static void gen_gvec_ool_zz(DisasContext *s, gen_helper_gvec_2 *fn, + int rd, int rn, int data) +{ + unsigned vsz = vec_full_reg_size(s); + tcg_gen_gvec_2_ool(vec_full_reg_offset(s, rd), + vec_full_reg_offset(s, rn), + vsz, vsz, data, fn); +} + /* Invoke an out-of-line helper on 3 Zregs. */ static void gen_gvec_ool_zzz(DisasContext *s, gen_helper_gvec_3 *fn, int rd, int rn, int rm, int data) @@ -995,10 +1005,7 @@ static bool trans_FEXPA(DisasContext *s, arg_rr_esz *a) return false; } if (sve_access_check(s)) { - unsigned vsz = vec_full_reg_size(s); - tcg_gen_gvec_2_ool(vec_full_reg_offset(s, a->rd), - vec_full_reg_offset(s, a->rn), - vsz, vsz, 0, fns[a->esz]); + gen_gvec_ool_zz(s, fns[a->esz], a->rd, a->rn, 0); } return true; } @@ -2050,10 +2057,7 @@ static bool trans_REV_v(DisasContext *s, arg_rr_esz *a) }; if (sve_access_check(s)) { - unsigned vsz = vec_full_reg_size(s); - tcg_gen_gvec_2_ool(vec_full_reg_offset(s, a->rd), - vec_full_reg_offset(s, a->rn), - vsz, vsz, 0, fns[a->esz]); + gen_gvec_ool_zz(s, fns[a->esz], a->rd, a->rn, 0); } return true; }