From patchwork Mon May 30 16:06:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 577252 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:330b:0:0:0:0 with SMTP id f11csp421388mag; Mon, 30 May 2022 10:09:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5HMYmxMSkl5v+3jV1jmRAj/pQlJDcZZqyOn6x9UEmEohYe95xsA+BSPKGyKiq155Ou60Z X-Received: by 2002:a37:c401:0:b0:6a3:7eb5:6e28 with SMTP id d1-20020a37c401000000b006a37eb56e28mr27346649qki.268.1653930595679; Mon, 30 May 2022 10:09:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653930595; cv=none; d=google.com; s=arc-20160816; b=Qd4DumQJiGmnwn+RBB56iMxtw+NC50X1QRqzJ3ht+O0RT8436qmUlBzOBj3nQknsSe VIA8ErFE9skN5FY/8lSoG6uN+A/phHU2PeDIxAGDYLvx1yKIdiOatObiJA7Ks9yWoSqT bhmTjc7kSsYpxTd1uT5zDi+TzP7dd624xw/X/QrP1WVWAv8kTfS2Ek3en9ZNyuxxw+fR ADz5DyGxGTVyXm4EOhga0yGPhBcXKNEayHoCAWtYpGK+UGVAHDvuOnC8HOJgy3AWKsK3 wWgCFiv4EBG8hWHvIaGqXn0qTIfG7/uBDnr6+9ownbsV+v/7CoPCygnoGe4OJX2MNfch oNwA== 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:to:from :dkim-signature; bh=SUtgIze0+HvN9rl3kbD3qtV3ubzIDRzI+lj/3xuXdno=; b=UcjlGvjp43MIolDaNhVfRN2r5SFTmwfO9bIoNMY6SQVARC218CuSP5mmfk0lqwZAaX +LAHPxhn4/mL8W5VTuinPDPHk12LAbkgtw2J1VJGVSQgdBaqyiqrRzILsKDmED9nMl9i ZsInaKAnx02ynMIW4sJKIJ9lMCKoCiZII23UOMab02btHUrLjtKHB2fFU4vycq/yhglO ifKMkDoV9J0d1s8LQ7RntY/N3GT8N0z1sPeqVuhkZpWYTOMJorHQhNfG7x/Gpv/UxleB do5bG7PEzcwn22qmRIK1i/ExcE4Rwv1KN8XmQRwB5HNtlHc97utRe8yU8q17XYGeF13n NJsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dcpLbIa+; 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 15-20020ad45b8f000000b004644af759b2si2691400qvp.576.2022.05.30.10.09.55 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 May 2022 10:09:55 -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=dcpLbIa+; 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]:37090 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nvitv-0006WR-18 for patch@linaro.org; Mon, 30 May 2022 13:09:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39686) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nvhwL-0003rO-Di for qemu-devel@nongnu.org; Mon, 30 May 2022 12:08:26 -0400 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]:45703) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nvhwI-0007Be-6H for qemu-devel@nongnu.org; Mon, 30 May 2022 12:08:20 -0400 Received: by mail-wr1-x430.google.com with SMTP id p10so15257378wrg.12 for ; Mon, 30 May 2022 09:08:17 -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=SUtgIze0+HvN9rl3kbD3qtV3ubzIDRzI+lj/3xuXdno=; b=dcpLbIa+IB0mHYrMVxmIqNbJchmwSK5NjxNksvjmgppgAAj1oj4jSMc8N6k+n8lgnZ q7V/X7FUUpbnK/g/VMCHTJ8fmfPbs7W4W7lNLcxycssmIJwTGY7rfT/WDRwtXImHsydW 9w9JCb8mDYiILbgvTw8U7yMmE5RTGTXwSWBf1B6cJ8FJyLgxlfsl8fJElqXYyCD/V6x5 6pNkqS0xBjpm5B5PPSBNR8F9w+RHrBPwcKXuBwDKDywBOIBAXGdFGQo2b2Zoj0nDsuFj RUUZQiBJ8TSb0EKMJOELNl3VSrXGSGUrYoXapu+1511TmKJdTju5+/yB8ZELDMMBlqGW xIvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=SUtgIze0+HvN9rl3kbD3qtV3ubzIDRzI+lj/3xuXdno=; b=Ew0zfUXWVdGvEgNA+Nk9ouvbX7W9vL47+J/rtWXAyIspwAhq4NSa3ixN9SZmU4gQ7t Md1xNa8BFOLKjlHRBai960wJ+Qu7bI5g2MyjmYzdJTI1IfQnDq7ijhRWkxTV5Ho/jLxG pOLx/QllpMHcEvoM2e8WhTXiRG5tzVV3A7Y2cEepKcZcmuCo+PEuR72uJW62lB5RuhGZ k/XhPP21fezEjgr5OeyICDMzjCRYOsYKbEla6Dgaiq8Nq+cLiCEjuq3F+A8y8ECcNk/M 0VB2F1D5O2jS8tUxzGROCsGwNRuPerFU0Rc5p1padgFgWu2ZXFooh+NxId+cnoJgsRkj aNHQ== X-Gm-Message-State: AOAM532lqkkXyeQD1+zYrFjwaJ0q/PINVp/e3haM92fYbQaqoZglhgwS YdfTa5nEMEqULtVw42kh5bvc9Om7L043KQ== X-Received: by 2002:a5d:5847:0:b0:20f:dc2d:d6c8 with SMTP id i7-20020a5d5847000000b0020fdc2dd6c8mr32476296wrf.644.1653926897318; Mon, 30 May 2022 09:08:17 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id bi12-20020a05600c3d8c00b003974b95d897sm10232152wmb.37.2022.05.30.09.08.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 May 2022 09:08:16 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 071/117] target/arm: Use TRANS_FEAT for do_ppzi_flags Date: Mon, 30 May 2022 17:06:22 +0100 Message-Id: <20220530160708.726466-72-peter.maydell@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220530160708.726466-1-peter.maydell@linaro.org> References: <20220530160708.726466-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x430.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" From: Richard Henderson Signed-off-by: Richard Henderson Message-id: 20220527181907.189259-69-richard.henderson@linaro.org Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- target/arm/translate-sve.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 22acd5ead0b..03b2eddd8b4 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-sve.c @@ -2786,14 +2786,12 @@ static bool do_ppzi_flags(DisasContext *s, arg_rpri_esz *a, } #define DO_PPZI(NAME, name) \ -static bool trans_##NAME##_ppzi(DisasContext *s, arg_rpri_esz *a) \ -{ \ - static gen_helper_gvec_flags_3 * const fns[4] = { \ + static gen_helper_gvec_flags_3 * const name##_ppzi_fns[4] = { \ gen_helper_sve_##name##_ppzi_b, gen_helper_sve_##name##_ppzi_h, \ gen_helper_sve_##name##_ppzi_s, gen_helper_sve_##name##_ppzi_d, \ }; \ - return do_ppzi_flags(s, a, fns[a->esz]); \ -} + TRANS_FEAT(NAME##_ppzi, aa64_sve, do_ppzi_flags, a, \ + name##_ppzi_fns[a->esz]) DO_PPZI(CMPEQ, cmpeq) DO_PPZI(CMPNE, cmpne)