From patchwork Fri May 27 18:17:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 576615 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:8607:0:0:0:0 with SMTP id bb7csp931374mab; Fri, 27 May 2022 12:45:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw180fPy/JH8ahSCB//JLsg31522v/acH3D2VGcla3Z1wROozdh1OOP37oPebUrZb3vUAOP X-Received: by 2002:a05:620a:1902:b0:5f1:8f5d:b0f2 with SMTP id bj2-20020a05620a190200b005f18f5db0f2mr29997088qkb.60.1653680737343; Fri, 27 May 2022 12:45:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653680737; cv=none; d=google.com; s=arc-20160816; b=sserG3xLhZH7VzGPTQSG39COjhEdq7sFoGElUxHIWE+0/4LlEaXWxG03fgUufsA9Oq w6BXcRyboTjA6Uepr6aTc376YWDzLNe2yWnYij7zJO4sriCc0C6c+xyD+2XChyub/tUP dfWUU8yYZj1b5Lk3Ne9ZbdWLoNd9EtxgENjZQBGLf4hu+e48PFKMQZOlP2ei3bynoB3X P+WrflTY0TlpdGpwP846v+oT7Zwzge3bqDJgCA5pHRVd+hzlUtwJ7jqB6RXMPqNK7O4H 6qAmx7fuJrhDxkNmdloDW1BML7FskGn4etCtXGwE8iHe9cirsHZHNsXxb2cDIz3W99Ok HD1Q== 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=JP1jEzSyCeD7J5isISjzjuuYkjaJtztreKWCJd8+D18=; b=k098skdh1+b1oL8m3ltbeoiH3gcjyK+7P9kmW6OHgtIf8msAMlAWWtW2Hn4EDRIqqo SXcf7K5teZxfs7YQWh0/5vNwJI5BOpDjSWwEeJyTyUCq+Eu80+iCNZHpkETewblLzP0W RTcEb6AA59jHGy61XIXxj/NEBUlZJjQGkkkZXtlNFSGKHNxBD1ngBoI/d2p6VYD6vFlT 9m+6J7Ctt3GXwseF/1nYrtky6pyYB6KRZAZrYzgYtHY2gvc8/JKg9z853AxiswV5eyP9 B0mrB28ucCIXISduAYKywO76d9MMiIWtOEkk3EixxwC+/4TrzmmtiHfd1gk5uYqlLhj1 sB3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=g5u6DykL; 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 if1-20020a0562141c4100b00461f562df24si3427101qvb.358.2022.05.27.12.45.37 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 27 May 2022 12:45:37 -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=g5u6DykL; 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]:37870 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nuftw-0005hn-L4 for patch@linaro.org; Fri, 27 May 2022 15:45:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43586) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuec9-0003R2-Uk for qemu-devel@nongnu.org; Fri, 27 May 2022 14:23:09 -0400 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]:38412) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nueby-0004Km-Nz for qemu-devel@nongnu.org; Fri, 27 May 2022 14:23:06 -0400 Received: by mail-pl1-x62a.google.com with SMTP id n18so4812327plg.5 for ; Fri, 27 May 2022 11:22:49 -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=JP1jEzSyCeD7J5isISjzjuuYkjaJtztreKWCJd8+D18=; b=g5u6DykLU14WEfeHoMCg8X2gTMA457gyusjxRXfLxES38aXh1nYGR8jxfXSyvzIo30 QdMmrxSMYDEfq9V3G6p47abBs3GmqlPhCxWQjrUcrXhQUgI1HLtZsLjT1HI0NaKm07Am l9BhqRUIMdyoTRgZ+WOJcge1Qx6H090/6PLgDalSIJylV8JSSFTgWxT1RLUhEB41cfAI c3yJsk421AsOWtuZqP1akIwjRdOo5L0A85flTT5sthC0lMMHN/y6/NonQlpqyekOXIP4 PFbXuILcgSVbM9YvmVLyJACkQuTwtp6KsovUfitdoHxZQ76Ed8BerkIJlNTuD9M8Sa1A o3JQ== 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=JP1jEzSyCeD7J5isISjzjuuYkjaJtztreKWCJd8+D18=; b=WmPC9kK6UdN740b8QLBDuvap5S9lnmvaVrEfADjTJnqTOdABr7rBWDj7tyKqEwT6fU G7GMSpSn5ighrfe25oEXadIelFBQbehqWFrWllbwk6/r+c3pRgQjzKAr3yCkF+2yHDSi 0PDz2hGMXV+C/o7IQXdmN45jRt7/F+M9NHL0bLj8Zf729hvROi+KjrFASKINqyhdNnvv 5wsT87RYbgMhq7UgULS7SSEs6hol89PZy8Xke4D+BrX4PU3JG8pGj/VTAFq72HL3YpD9 X7aRA8FBZzKwOTp6WWVoaAcU5SKn838C+p7Od/VNtw+iEx9EPiu/LzFne+DYH/cd8ys8 8vCg== X-Gm-Message-State: AOAM531ZagzVSbG4jVioaQjueqXWL4Ztj6kmfE9aR8ZU0eotnS3W63Qy YfR1ehgXrwTWwEFBfZBo7po8Mp4DKxVAFg== X-Received: by 2002:a17:90a:1b09:b0:1e2:754d:aec with SMTP id q9-20020a17090a1b0900b001e2754d0aecmr5806079pjq.171.1653675769140; Fri, 27 May 2022 11:22:49 -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.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 May 2022 11:22:48 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org Subject: [PATCH 043/114] target/arm: Use TRANS_FEAT for do_vpz_ool Date: Fri, 27 May 2022 11:17:56 -0700 Message-Id: <20220527181907.189259-44-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::62a; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62a.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: 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 | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 911d2e28bf..6103bd7f1d 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-sve.c @@ -858,14 +858,11 @@ static bool do_vpz_ool(DisasContext *s, arg_rpr_esz *a, } #define DO_VPZ(NAME, name) \ -static bool trans_##NAME(DisasContext *s, arg_rpr_esz *a) \ -{ \ - static gen_helper_gvec_reduc * const fns[4] = { \ + static gen_helper_gvec_reduc * const name##_fns[4] = { \ gen_helper_sve_##name##_b, gen_helper_sve_##name##_h, \ gen_helper_sve_##name##_s, gen_helper_sve_##name##_d, \ }; \ - return do_vpz_ool(s, a, fns[a->esz]); \ -} + TRANS_FEAT(NAME, aa64_sve, do_vpz_ool, a, name##_fns[a->esz]) DO_VPZ(ORV, orv) DO_VPZ(ANDV, andv) @@ -877,14 +874,11 @@ DO_VPZ(UMAXV, umaxv) DO_VPZ(SMINV, sminv) DO_VPZ(UMINV, uminv) -static bool trans_SADDV(DisasContext *s, arg_rpr_esz *a) -{ - static gen_helper_gvec_reduc * const fns[4] = { - gen_helper_sve_saddv_b, gen_helper_sve_saddv_h, - gen_helper_sve_saddv_s, NULL - }; - return do_vpz_ool(s, a, fns[a->esz]); -} +static gen_helper_gvec_reduc * const saddv_fns[4] = { + gen_helper_sve_saddv_b, gen_helper_sve_saddv_h, + gen_helper_sve_saddv_s, NULL +}; +TRANS_FEAT(SADDV, aa64_sve, do_vpz_ool, a, saddv_fns[a->esz]) #undef DO_VPZ