From patchwork Fri May 27 18:18:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 576610 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:8607:0:0:0:0 with SMTP id bb7csp929234mab; Fri, 27 May 2022 12:42:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuc3jIJs00yK4W6NrtFML5dy/B1kfXcgfovGpVwETnWj9N/souJ5rYrsVScmqqO4XQb347 X-Received: by 2002:a05:620a:20cf:b0:6a5:cdb:f6f3 with SMTP id f15-20020a05620a20cf00b006a50cdbf6f3mr15539122qka.657.1653680526264; Fri, 27 May 2022 12:42:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653680526; cv=none; d=google.com; s=arc-20160816; b=beARHqvHcfpH2yX8NyGM9VpS0tNieLwImY2AcbA+2vC7EQdYW3H1fJ4ofskfKeK1jF fcqbCoQwKOK5fVBamvL3IaZHa+b4BUXpCFVz58fpbTZJNw6H2Lts4cO4zoXXiNJdevbV bFl9DN1qLXGv+RSMruAnVqhsJp23O2+yFS0rZyO19Dp+i/ysOm1GE78O7uTZpQsCFq+Q xWLC5jBGEIK9/DWAqGU3drPYtGmnDddFlEyLJCs1pKNz0F8Wb3aQoJpRX3Qa21lmweis 1ZWZ7Wir54nhXQwdmTj3/yJjHDwQO3w+jROShmeDGd9ZX3QjtFPiLOri+IbtfiLBEcLs G9hg== 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=ae1R3S9CZr6dsrirE4eQqaT1nWC8LLDmdYj1ka/aR5s=; b=YBc5zjwcsxExCDDZPlaK4s/ZLHazdPqDnsj1rt+dANdHpenyIWrtnITArRhP+bJyMG LP3r9CkWx7KEkxkO3IskV1ATa/lWHrttHGQ/2fqOrMej2hzUAot4HqywIzZfcgsVjnbD RZj/qzwjlfNQ8cRi3/PDQH94JsS8z23/b+80yCYocNqNp2PFljiXsEOWKg/GpkMS4dp9 /mwUML5vwIvWO+I97fCQHWzgpEJuQi5edvNs7rt/4VSF0p11O+BwtGMLPHqR4eJj29pO b+BrED13PzijBfJx/Zen82DQ0TqwwTs/BIlLG/7aljl4mY4gv7Rv/B0yDmVr7PgwFXNn EZFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vX0fzv+G; 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 o29-20020a05620a0d5d00b0069f6199609csi3027390qkl.450.2022.05.27.12.42.06 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 27 May 2022 12:42:06 -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=vX0fzv+G; 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]:56632 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nufqX-0007YT-Qj for patch@linaro.org; Fri, 27 May 2022 15:42:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43596) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuec9-0003RH-Th for qemu-devel@nongnu.org; Fri, 27 May 2022 14:23:09 -0400 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]:33452) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nuebz-0004Mm-JA for qemu-devel@nongnu.org; Fri, 27 May 2022 14:23:08 -0400 Received: by mail-pf1-x42d.google.com with SMTP id 202so5026982pfu.0 for ; Fri, 27 May 2022 11:22:58 -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=ae1R3S9CZr6dsrirE4eQqaT1nWC8LLDmdYj1ka/aR5s=; b=vX0fzv+GEiwIg7dFjflsQXqELVMVBupI7oWbglYhr821+tEuyHkjG/q12phDW6D8Od yv0uTw6JCyVrO8Pu4u5kKyB80eIt8YrsCPVAa0ltWf0a8kOXOhVK9E6/fm/JoiySb/OR lmftq/9QQ97lUYoYLMgLLjgo2wI4yFOaEabf8WYwlUqkI9mk4tOKZK5L4WVI6WbLdN3O ASAVETLR+EkxRUWvWpATUHKnS5jlbyTIMxiaVD7Nc8nPH4YDr+uHG7FetX4t0XYr3v0/ eYtI3ZqMj3Y/HtPOpn1ReHpfj8eS5QyWD7CxY1NJo35e3i4kgT0TLO2gurP8PCCyPpO/ 2sLA== 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=ae1R3S9CZr6dsrirE4eQqaT1nWC8LLDmdYj1ka/aR5s=; b=Efua/n+KSnIbl1q3JZh/rFqBeKiOgl4gmsYhfxSgRPkyCiGYy/zDR1vK6QkET73wXm onktDJdBAiCh8LEgCro7D5pbm2dQoS1UOAYI+pq1cvEY63rm7cI+S7rt4Mdhn7g15Bax aw7OQbnAtCKnnmg2Crr3G/hbqiR1Alk9aZfv5Tc0tsWMiXAqcimOGWIFPf6EtIBdBNgH HJIbO/NsyS3sqOx9rzhNkxn85NccYVZtaJcjo2KGddL+RC2gtGxyDS5P3MLy1fWr7UYr LPDF/a+Bb2mEEPyh0tKyx/1lEaX0UfUu63XHLpJWttdOQGkyblUyC6Y37M/SQGuzKjD4 qGkg== X-Gm-Message-State: AOAM531QEWCCXer5jPh97x8fNy8mqz37QtcbS3lrxj2JUeUPH8rR0r+G N52cQ6i7eVBVwHvpfQ4ta99aGaAf+kpRHw== X-Received: by 2002:a65:43c2:0:b0:3db:7de6:99f8 with SMTP id n2-20020a6543c2000000b003db7de699f8mr38372276pgp.347.1653675777803; Fri, 27 May 2022 11:22:57 -0700 (PDT) Received: from stoup.. (174-21-71-225.tukw.qwest.net. [174.21.71.225]) by smtp.gmail.com with ESMTPSA id b15-20020a170903228f00b00163552a0953sm4033534plh.159.2022.05.27.11.22.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 May 2022 11:22:57 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org Subject: [PATCH 053/114] target/arm: Use TRANS_FEAT for do_pfirst_pnext Date: Fri, 27 May 2022 11:18:06 -0700 Message-Id: <20220527181907.189259-54-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 Received-SPF: pass client-ip=2607:f8b0:4864:20::42d; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-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" Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 6fd9a42ef9..abb5433ee5 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-sve.c @@ -1668,15 +1668,8 @@ static bool do_pfirst_pnext(DisasContext *s, arg_rr_esz *a, return true; } -static bool trans_PFIRST(DisasContext *s, arg_rr_esz *a) -{ - return do_pfirst_pnext(s, a, gen_helper_sve_pfirst); -} - -static bool trans_PNEXT(DisasContext *s, arg_rr_esz *a) -{ - return do_pfirst_pnext(s, a, gen_helper_sve_pnext); -} +TRANS_FEAT(PFIRST, aa64_sve, do_pfirst_pnext, a, gen_helper_sve_pfirst) +TRANS_FEAT(PNEXT, aa64_sve, do_pfirst_pnext, a, gen_helper_sve_pnext) /* *** SVE Element Count Group