Message ID | 20220527181907.189259-30-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:7000:8607:0:0:0:0 with SMTP id bb7csp905897mab; Fri, 27 May 2022 12:07:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2NSa4Znc0dD3jrue3pdlB3eokmr3GHQC2vRA99qK/c8boti1irGxKoydBFJsNIvVWPSBy X-Received: by 2002:a37:6310:0:b0:6a5:71bf:17e6 with SMTP id x16-20020a376310000000b006a571bf17e6mr14776657qkb.258.1653678467359; Fri, 27 May 2022 12:07:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653678467; cv=none; d=google.com; s=arc-20160816; b=R2eICnQrfgLVH1aid/JkqOoCvtSJH3UlBlkph7TmXBIIAQsoiFTJ6ezQ8DBG3CZBZp BufPWwMZUbTsj9qmR6Z9vHcImu14FIm3B+YNslPxI/p10UK1aO5V7FDuQvE1p69BeY5n faaOYKT+WFaTELidUIDMwqE6rf5fZ1W2awnY/dn+N1rekiwrH+WJfmQUvxuWdaMZuco4 Y0UqFGQejLHCGXhddn6xA8ekMp2B6hLPmwephUO85SDnSrgrEu1MeKD0kCOKzsjySdcj Xx/wHCwYlggJ80fy19CsvvM4QLKnxTikNAJQX49yC1vF5lcISI7l3H5NyiT+ob9q/vcl NhfA== 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=uzQEcj6Jkcp1aUlURZBX30EdXx/pZ/J6BYH/aJxKlm8=; b=V0ecMDm3LaijJ3Mk+N3v8tznf/nGUxT7K5WKjUromLuQKjieEpNwCp5eVc5sqZfdO7 0wPAA/3udmk6EjaD5OPRzvfS0hNhB6hj4F2JDrJ4J0H0Z4mo4VQBKisYhXCUwEwN0v4f NYXPeffAdZSj+8h2Gb/MOR/yBKx94ITbImITUdx/cFYg6NVpSU6SDAGBuXqQLB25Z/mN nFBG354CIaPh9mZWVEdKC//8X5nQd9nioZyitct9It0tL/Z5SxRykqt/CzVVGF4K8PV6 iE1KW4kYxVJ+p34ObV2cDtI9luVJJAzCRi1TfZ8js0/LQt8uXN1+YIYw84WWO8kElA6b BSeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VWpZ33lZ; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id s10-20020a05620a254a00b006a33acf7014si4468247qko.475.2022.05.27.12.07.47 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 27 May 2022 12:07: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=VWpZ33lZ; 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]:36142 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1nufJK-0003Ph-Ux for patch@linaro.org; Fri, 27 May 2022 15:07:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42320) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1nueYn-0007cc-LZ for qemu-devel@nongnu.org; Fri, 27 May 2022 14:19:41 -0400 Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]:45912) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1nueYi-0003ew-W4 for qemu-devel@nongnu.org; Fri, 27 May 2022 14:19:41 -0400 Received: by mail-pf1-x42a.google.com with SMTP id b135so4955156pfb.12 for <qemu-devel@nongnu.org>; Fri, 27 May 2022 11:19:36 -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=uzQEcj6Jkcp1aUlURZBX30EdXx/pZ/J6BYH/aJxKlm8=; b=VWpZ33lZGZR7pbNgAWXFJ1QB2lVwroS56MGmc2nEWhtCcTn1jHC96RHe77ZSbSoad0 uJ3w2gHSYWBHvzGdctZkXXZy1Sr/hLfI/FZNoGWGQgl8stF/tp78k3blINuS3wzmCMAs BS8lAoFsBhvjXrPW1kD1UAKVzFGssb3Pw/vnw34Uo6yrnHsHv961h9DK3l9hI7DkkHXR PTrGOfwdLgLrpbrRkYu6W+5BYKOt2K9HM/Qh1MKwq1mxqxUfa2TnxDkqMeDaQGoyKTGM /0Xcyu0o3lFHYi3C4rhMyMf8j9FqoHiPBi+NE/3mvk7vMjNb1+FQazx8zBvm6qIsv4GI QUbg== 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=uzQEcj6Jkcp1aUlURZBX30EdXx/pZ/J6BYH/aJxKlm8=; b=sZuBK4oyKYZ+ZEcA2UJNyAESSko1ANJu+/VQGVPPnaEO1Nxjr3pfS2WMFiGdGcyvol d2d88h5R2eXQF0U/hVCRxDrHJ5yjo3Z29GeE9/nUqSQRM06e3T8cPRkvrPRioi6BJY/Z NE0bIEpEFB4EYRBSHZ8sDm0XIi/MgTAqBREIS9skPdsmeAMqDyTxVGnXW3LkG0mks/EJ JFsW1RoFTr0Z5byDYx7qwiaK9AmZChTzvCDzgimZSOH0q7DKagUY6WxvaOvzEoEQNe4C tzg2WEfyAaLXm/Rwdigwk0Sm9MgBFNUWL1yT7iNVxYjV80jckT9jgYySqVX5v25MlYGk kgTA== X-Gm-Message-State: AOAM531DjG9Ex1CiS5D1CNmrUpF5pjf88AKgO6wIT6SHkj1qxqQtdwLl bUdRvinw72iBUICO778nGm6GA1KbmA0GLg== X-Received: by 2002:a05:6a00:1bc4:b0:4fd:aed5:b5e4 with SMTP id o4-20020a056a001bc400b004fdaed5b5e4mr5201932pfw.39.1653675575734; Fri, 27 May 2022 11:19:35 -0700 (PDT) Received: from stoup.. (174-21-71-225.tukw.qwest.net. [174.21.71.225]) by smtp.gmail.com with ESMTPSA id t5-20020a17090ae50500b001deb3cbd8f1sm1911612pjy.27.2022.05.27.11.19.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 May 2022 11:19:35 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org Subject: [PATCH 029/114] target/arm: Merge gen_gvec_fn_zz into do_mov_z Date: Fri, 27 May 2022 11:17:42 -0700 Message-Id: <20220527181907.189259-30-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 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::42a; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42a.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=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
target/arm: Rewrite sve feature tests
|
expand
|
diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 0a69a1ef65..5ab9de46a7 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-sve.c @@ -258,15 +258,6 @@ static bool gen_gvec_ool_arg_zpzz(DisasContext *s, gen_helper_gvec_4 *fn, return gen_gvec_ool_zzzp(s, fn, a->rd, a->rn, a->rm, a->pg, data); } -/* Invoke a vector expander on two Zregs. */ -static void gen_gvec_fn_zz(DisasContext *s, GVecGen2Fn *gvec_fn, - int esz, int rd, int rn) -{ - unsigned vsz = vec_full_reg_size(s); - gvec_fn(esz, vec_full_reg_offset(s, rd), - vec_full_reg_offset(s, rn), vsz, vsz); -} - /* Invoke a vector expander on three Zregs. */ static void gen_gvec_fn_zzz(DisasContext *s, GVecGen3Fn *gvec_fn, int esz, int rd, int rn, int rm) @@ -292,7 +283,9 @@ static void gen_gvec_fn_zzzz(DisasContext *s, GVecGen4Fn *gvec_fn, static bool do_mov_z(DisasContext *s, int rd, int rn) { if (sve_access_check(s)) { - gen_gvec_fn_zz(s, tcg_gen_gvec_mov, MO_8, rd, rn); + unsigned vsz = vec_full_reg_size(s); + tcg_gen_gvec_mov(MO_8, vec_full_reg_offset(s, rd), + vec_full_reg_offset(s, rn), vsz, vsz); } return true; }
There is only one caller for gen_gvec_fn_zz; inline it. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- target/arm/translate-sve.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-)