From nobody Fri Dec 19 04:28:20 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=1598607160; cv=none; d=zohomail.com; s=zohoarc; b=P515CFkbNMcI1e10TGlolv/DbQnRPUS59k/VD1y5wzJT5q0xNGQZtIZ9on67pgLh70iYmIVPgPYtgJGppe9qn+S/9Pja+2ETkj4Hb0AtyZfrXhlEgiNKJGUtB244rYw6T6ccwoItjg/ZAc+TROXC3OH900VxRiMdIziN4JRP7kc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1598607160; 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=MWlZ8zGrzkDTEuMxVtVOCu3a0nHyJlBFFKe1aN/nKn8=; b=H9CLq4Jgn371eAanGow4RAjBZ5Z9R4CYUdbE4v1Wk43/KG+h72r1sr90i7XyuCrh6CUyGudTbzdOVty3vxKCmeH8PHspAKFhKnedu0AbDxTIWIaBYCQlP73iwlmub9VBxGTB/v+ZAvLU9l9ZbFs6D1rRXsFfi1lH1/DWtci0OMc= 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 1598607160438787.9894566378629; Fri, 28 Aug 2020 02:32:40 -0700 (PDT) Received: from localhost ([::1]:60462 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kBakR-0002IN-3J for importer@patchew.org; Fri, 28 Aug 2020 05:32:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46090) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kBacn-0004tL-Nt for qemu-devel@nongnu.org; Fri, 28 Aug 2020 05:24:45 -0400 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]:51192) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kBacm-0004Le-16 for qemu-devel@nongnu.org; Fri, 28 Aug 2020 05:24:45 -0400 Received: by mail-wm1-x341.google.com with SMTP id t2so306038wma.0 for ; Fri, 28 Aug 2020 02:24:43 -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.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 02:24:40 -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=MWlZ8zGrzkDTEuMxVtVOCu3a0nHyJlBFFKe1aN/nKn8=; b=VJhtrhTO3vnrq2IVsphidbjo5wSp4R/x/MX55FsikNDlHfndhnyElxe/9BFgWJlwV/ uoDquycvYWM9mwu73pwi7sct6JJEH/g3nQdu8TJAz+k88OdtN2zx0RnzJ+rMVbhL84xy Hw5/5MB6gTH9EIosL6+jjwPh1uuHqF8Kl8xh4m6xvySyPHqLw8o63eXH/TsWjbGGTZfU kzRUjIkFn3HaaUUdAaUSN8OvdU/HN/3SwXFxgzpgHylz8kEJFMeH+DEjEnp7Tg0l7Gh2 dh2XDY0LY3X2IKEaMx/vokXibq9uNL+79MintO0jsXLMZYfLX8YAwaYiSSC3DLm/hwSy MTIA== 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=MWlZ8zGrzkDTEuMxVtVOCu3a0nHyJlBFFKe1aN/nKn8=; b=Wokv1VzG2caQWN+UHzAXY75d/EtY7AsQC78sT8aLnUQUs1ssSUlRKtFXBQkaNKI1iP Z2m6NlvLIeux8+qOaVvaQgyE85ieVa+aTuDP3Er4NQO+wVPhh/wcEhTX073C0SqdLn3p Ouef7OUxiU7MH7Az95dqffFJtfvrMgju+1Gd2PpJCPeCJsnKNgfHPCKVNqrAIfD0vEwA ieCK6Zd7so0UT3yicF30hyVJ2nurAsb2sJFVyqA7StJm1HVHqMgivoQtuCU5e+qSmoDo zqdXFmR4P1oHQGa8ucsOtEx0g8AaltqSn/j4rS7bRbmLh7khi7xp0kTuQBSv9Pzo9HTE Rdhw== X-Gm-Message-State: AOAM531ykEwmLwb+sGqfkrHiuTTpOMixejtqAIh8b9xHmqGZKVpHHR4Y gQAswxlLEQrMbhEn4XOD1YjhQvY1j9F0R8u9 X-Google-Smtp-Source: ABdhPJw2Q6QzbNBph032hfvYnnKYsj3DXp1G+JPq/EpjJ4/o0rcWGImCZGRWbfOMeOdPQN2n7TK6AA== X-Received: by 2002:a1c:7c0d:: with SMTP id x13mr692937wmc.164.1598606682263; Fri, 28 Aug 2020 02:24:42 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 23/35] target/arm: Merge do_vector2_p into do_mov_p Date: Fri, 28 Aug 2020 10:24:01 +0100 Message-Id: <20200828092413.22206-24-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::341; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x341.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 This is the only user of the function. Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell Message-id: 20200815013145.539409-6-richard.henderson@linaro.org Signed-off-by: Peter Maydell --- target/arm/translate-sve.c | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 9a3d060c052..6dac70359b6 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-sve.c @@ -178,18 +178,6 @@ static void do_dupi_z(DisasContext *s, int rd, uint64_= t word) tcg_gen_gvec_dup_imm(MO_64, vec_full_reg_offset(s, rd), vsz, vsz, word= ); } =20 -/* Invoke a vector expander on two Pregs. */ -static bool do_vector2_p(DisasContext *s, GVecGen2Fn *gvec_fn, - int esz, int rd, int rn) -{ - if (sve_access_check(s)) { - unsigned psz =3D pred_gvec_reg_size(s); - gvec_fn(esz, pred_full_reg_offset(s, rd), - pred_full_reg_offset(s, rn), psz, psz); - } - return true; -} - /* Invoke a vector expander on three Pregs. */ static bool do_vector3_p(DisasContext *s, GVecGen3Fn *gvec_fn, int esz, int rd, int rn, int rm) @@ -221,7 +209,12 @@ static bool do_vecop4_p(DisasContext *s, const GVecGen= 4 *gvec_op, /* Invoke a vector move on two Pregs. */ static bool do_mov_p(DisasContext *s, int rd, int rn) { - return do_vector2_p(s, tcg_gen_gvec_mov, 0, rd, rn); + if (sve_access_check(s)) { + unsigned psz =3D pred_gvec_reg_size(s); + tcg_gen_gvec_mov(MO_8, pred_full_reg_offset(s, rd), + pred_full_reg_offset(s, rn), psz, psz); + } + return true; } =20 /* Set the cpu flags as per a return from an SVE helper. */ --=20 2.20.1