Message ID | 20220527181907.189259-67-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 bb7csp939341mab; Fri, 27 May 2022 12:58:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz3jJeYxc6/o4zzhK3ITnsQ3tdGjRi4B/jc/Rs6O/Brf+O0Vts9wC0FUOxmPlF3E0Sm9PF+ X-Received: by 2002:a37:a642:0:b0:6a3:5952:c044 with SMTP id p63-20020a37a642000000b006a35952c044mr24052244qke.770.1653681527980; Fri, 27 May 2022 12:58:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653681527; cv=none; d=google.com; s=arc-20160816; b=ZLh0+D102ckccq/YzR9f/Zz0cK3+XmPL2pgX9R99zlIc5oorCPiUZjboYIGrT2afuj GoeN0AdBT6Jt1rLq07PyRuuJbk6sgmovbvn/9wWrj17jt8n3kE11fL2ne0tkkMFXGBYg 1KmgX1FCH/cByUWHxbgwg7Mgp4iVXVX67LodBdmSUO1eEPgs5Lk9lzpNt73ZcLE6CU2B xiGl367BACWJAf0r1nE8izxysxPiIcGJX71y20V+FHkXb3LF4bu18nGYinwBtSQHnl4J 7eYR8eaPsezMojM0y8/2Mi7cDKajvspFCnguw7l5hAVXQlaqFMZHyZ9N+jsUpjHqv5Zy s5Mg== 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=t46XTEgGH7GaDo7Nv2mR9+DWEKTQLPHUxBDLqqQQZbA=; b=dMd8on7LGx0rOSMiuNJBGc+tPpjqzYCE87qeDh8DdQ8RMcCkmy2NX+KQmg2pUdzhaw 6VDOO/8akkLu0zdsdJ48uMD62AneK+JzrWTDsl3Wzn+6PJpruXGz5orjhHbCI2TYnn7r KqrnsafeJqWa5YDXqM2PSS0a0N2AavYdW5Mmw3vWBu+K0z55yWe/awQHJNkpU0w76rwq 5sLje0WSe2lIGzuiAib2Aeok7W0ZmRQWbDiPQLxINOcAY5E741umVbbF2SsWQRLSopa3 2fpnF6+RPCMpd3oXHyYhW3huvZPK9sKEI/SUsFxoXDFzA2e0MaFMbzKHiMQUx0ugBNkZ ZZ1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vq3vY7aF; 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 u10-20020a05620a430a00b006a5f932f2a7si531391qko.105.2022.05.27.12.58.47 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 27 May 2022 12:58: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=vq3vY7aF; 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]:50886 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 1nug6h-0001ms-H0 for patch@linaro.org; Fri, 27 May 2022 15:58:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44224) 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 1nuecS-0003ik-VP for qemu-devel@nongnu.org; Fri, 27 May 2022 14:23:29 -0400 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]:43555) 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 1nuecK-0004TG-Lf for qemu-devel@nongnu.org; Fri, 27 May 2022 14:23:27 -0400 Received: by mail-pl1-x636.google.com with SMTP id b5so4794324plx.10 for <qemu-devel@nongnu.org>; Fri, 27 May 2022 11:23:10 -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=t46XTEgGH7GaDo7Nv2mR9+DWEKTQLPHUxBDLqqQQZbA=; b=vq3vY7aF2YJ1XbmrAvTouCr6fDyWJ5opHkBDmr9gTQq51Y5nlsNBPFZ7o1A8jv3y/h r5kXCoO3Epv3UcfE2dgeQfNc6uyCZj5eK93rCBoqxua+DqJdtvNzcU0tiJ4Y7pmIqYqS FbGwVJ57KIBWURCmWuwzrgiptG6nJSdNyWEW1CUZ956wIF02urHzytVPSHEZsmmctcaW ZPU3FigpJ7JIhZvVzOHJi1ewSOyEGWkFjg2eaiZDKympzS11a7xPrdb/bxZrSGjCorAd 38SWD3hd65uv8iHCelJCeTH+hRTTjabBD/xYaTY4GeuL/8Hght++wt6+uFcEKFN1jSIP nPdg== 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=t46XTEgGH7GaDo7Nv2mR9+DWEKTQLPHUxBDLqqQQZbA=; b=1hSlLfn2Ff4st+rgwckHqscrLLKdzh9xBV/tvUdFbQpp8BalGdpBodnS+/806lOR1C fGS27XdBGDPLDTFp7VQ3TaXHcuU0X0fqYnYGSi2l2tZaHPkuiXQ/XqwF5MY9NLFORtZM TKkxc0+Hs26VgurhW/8SlWCxMW9gFx5q4VKN3EYEfk4gSxf2gsHubZqRcJ9rXSyDX+Ei 6ylIIlbGYX8gPN/AxLDHPUlbp7CzdLjp46C28kLtfr3ltmwmCMaMJf3L58qKrxMHS0ib Mt5NhrGtLnzgsvyX5o5khCmMiyl+Saubf/bN1NdrJsnGFOAIcGHR28Vbjynj3zWH3aIh l4LA== X-Gm-Message-State: AOAM530Fmlk38mqGnAZyIpLUJE4xj1eZpIluthTHYRAfbIIf5X1ln3NU gHH8QChyY1j16KimOjlJu03oh1EGBvqyJg== X-Received: by 2002:a17:902:aa07:b0:162:467:db94 with SMTP id be7-20020a170902aa0700b001620467db94mr33197221plb.26.1653675789799; Fri, 27 May 2022 11:23:09 -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.23.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 May 2022 11:23:09 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org Subject: [PATCH 066/114] target/arm: Use TRANS_FEAT for do_ppzz_flags Date: Fri, 27 May 2022 11:18:19 -0700 Message-Id: <20220527181907.189259-67-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::636; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x636.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 8eb70fd56f..73b5b67c25 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-sve.c @@ -2708,14 +2708,12 @@ static bool do_ppzz_flags(DisasContext *s, arg_rprr_esz *a, } #define DO_PPZZ(NAME, name) \ -static bool trans_##NAME##_ppzz(DisasContext *s, arg_rprr_esz *a) \ -{ \ - static gen_helper_gvec_flags_4 * const fns[4] = { \ - gen_helper_sve_##name##_ppzz_b, gen_helper_sve_##name##_ppzz_h, \ - gen_helper_sve_##name##_ppzz_s, gen_helper_sve_##name##_ppzz_d, \ - }; \ - return do_ppzz_flags(s, a, fns[a->esz]); \ -} + static gen_helper_gvec_flags_4 * const name##_ppzz_fns[4] = { \ + gen_helper_sve_##name##_ppzz_b, gen_helper_sve_##name##_ppzz_h, \ + gen_helper_sve_##name##_ppzz_s, gen_helper_sve_##name##_ppzz_d, \ + }; \ + TRANS_FEAT(NAME##_ppzz, aa64_sve, do_ppzz_flags, \ + a, name##_ppzz_fns[a->esz]) DO_PPZZ(CMPEQ, cmpeq) DO_PPZZ(CMPNE, cmpne) @@ -2727,14 +2725,12 @@ DO_PPZZ(CMPHS, cmphs) #undef DO_PPZZ #define DO_PPZW(NAME, name) \ -static bool trans_##NAME##_ppzw(DisasContext *s, arg_rprr_esz *a) \ -{ \ - static gen_helper_gvec_flags_4 * const fns[4] = { \ - gen_helper_sve_##name##_ppzw_b, gen_helper_sve_##name##_ppzw_h, \ - gen_helper_sve_##name##_ppzw_s, NULL \ - }; \ - return do_ppzz_flags(s, a, fns[a->esz]); \ -} + static gen_helper_gvec_flags_4 * const name##_ppzw_fns[4] = { \ + gen_helper_sve_##name##_ppzw_b, gen_helper_sve_##name##_ppzw_h, \ + gen_helper_sve_##name##_ppzw_s, NULL \ + }; \ + TRANS_FEAT(NAME##_ppzw, aa64_sve, do_ppzz_flags, \ + a, name##_ppzw_fns[a->esz]) DO_PPZW(CMPEQ, cmpeq) DO_PPZW(CMPNE, cmpne)
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- target/arm/translate-sve.c | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-)