From patchwork Fri May 27 18:18:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 576630 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:8607:0:0:0:0 with SMTP id bb7csp939419mab; Fri, 27 May 2022 12:58:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDXpk1JE3fjLRPevBrvY8CK9jx1uPtYHu2rrqKkodBYHIYL9XQmbeLO25dyvVSuBCR3stS X-Received: by 2002:a05:622a:1792:b0:2f3:cc23:d526 with SMTP id s18-20020a05622a179200b002f3cc23d526mr35437441qtk.205.1653681536738; Fri, 27 May 2022 12:58:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653681536; cv=none; d=google.com; s=arc-20160816; b=g8pVMOs1MsKU65FYVm0fHi0Grg4f9tBnjVqiSUOR27jIqxRCgvJ2eADlYzqi2TM/dE nMrp9HQvgCZCzIZTdVA4hlHeOPJ6ZRSwnu39RUbzxn6rCzKajtHvlo1j84zwTC6aLky+ 6+2q5PTtDI2Lu+bAZu+UKWcWETPecAZSWCDCsz1BUdzEl8N3XbxRVujl1aZGyU7fTSRQ 45vXofnNuGmFS+Jvmwu2yLhI073uuR9nYRaZdzfSylTmVddNTD0tg/mbmKNVx7QwHuS3 suJEvpMYBHsqrojfs/NwI3cVRgOYtgR3OLVNvESI6gCV8NAOryetXrf4kLth6Uy0Lqj8 E2UA== 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=LJ/bn0dQ7w7iomM0tHW+Krt40cu7S6e9MMRGqwOxqTY=; b=NmAP1k7yD1b5sVjKZKBAYxw+FPw+VhtWD/BpOlZdWRrpHYPk9J9wuXrI4ZEsTZIKnd d/N1WzDAfjDVlfJOkDRetzfdyPclkV55TPVmw6PQyiFtcD5BHi5dvWX60KVGdbISMUkZ Gewlstfg7FszMQXMiVoTuFA3gQ4C4Yra8XIjSsQ12Y/jyYdB1e2JhMM40RLT7lI4MlGP PYGmyQGVtfq7UTvb+vpQ0E8BTMZMJiZFP5N1KerEBXZX9JX+n3AP6irxo7ovto27Zxj+ 2PmMhhiEgpYwb6qUvZviAR0c7R1rbIaHyzYxz4cUcqTw9UG4MgMQpC/y4DbIJa81Wz1P EIWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qh1KE3sb; 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 g2-20020a05620a40c200b0069f420c177esi4398000qko.315.2022.05.27.12.58.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 27 May 2022 12:58:56 -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=qh1KE3sb; 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]:51588 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nug6q-0002J4-Aw for patch@linaro.org; Fri, 27 May 2022 15:58:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45414) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuefU-0001i0-CI for qemu-devel@nongnu.org; Fri, 27 May 2022 14:26:38 -0400 Received: from mail-pg1-x52f.google.com ([2607:f8b0:4864:20::52f]:34730) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nuefS-0005KK-35 for qemu-devel@nongnu.org; Fri, 27 May 2022 14:26:36 -0400 Received: by mail-pg1-x52f.google.com with SMTP id g184so4612705pgc.1 for ; Fri, 27 May 2022 11:26:33 -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=LJ/bn0dQ7w7iomM0tHW+Krt40cu7S6e9MMRGqwOxqTY=; b=qh1KE3sbKoOUsqTCc471qnzcuOB0MgoRMwzG7Jq9nEr6Roai2LrxWQZsbhhNhFkqrm Ky1O131vu/Ls1Cfmh8lBb0yQdV1F1rgFyruY08R+8mSs9UmXYnSrH/bJYvB8NjIWnLF/ kzBSrkcEuO26t/0Ut5lMUYmoxCPwBdx0bAWo8RbO6Kw/1H2T46VuprS/uFjdnfWGtW8I yDCjOi1OSXBBw4KR2U519/rKhHMU8GFdsQAvxGqj1Q9ax1LKx/iD3C+0IePu7tlJkazo X0TzHNTnhcQkLoYmYsb93HcPwIpgBjeB/2pHM9e479BKXuU8s6snfV0QbsnR7druz4Hp QlhA== 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=LJ/bn0dQ7w7iomM0tHW+Krt40cu7S6e9MMRGqwOxqTY=; b=2e8AUlOrheCJ0fbKx+YrRhA5DSQ1YZq79rkiZXMAr63UHstCQca8lJe+OyfTAmvIkp imCArzgHFNHlYyHNJ1PeHt4xrRvT/w5vf0I3L8dVsV/p/ZXGLLqKS0lVUNz4Yuo5kpP+ dXGiQPN8y+AjKvoOFFUWUGXhvtThWHSMqbRsC+1c3pU7dfcB+y774WCS0WpTecp7YDo8 dAOg9SY87eRyQ1f6/mOU9JuiR2pvS5AS6sxyCqGVRyZ9efuXm+3M30JflzAYTextxtPM anRQHL0UoWxTwq6iL6/5EwOiZeOLuOyi42j3ITLEaka6n6CN9mnUQoYTRKP/0OjOJZi3 wrPg== X-Gm-Message-State: AOAM532rGEoPtFeqRUwrs9EVAAizdgrzZ+In8vcKzj1W9+8dcupw+T84 60IfA0esZZAQ9dbHZH7HRw9BkvqgwXreMQ== X-Received: by 2002:a63:6507:0:b0:3fa:52de:d3ce with SMTP id z7-20020a636507000000b003fa52ded3cemr22850669pgb.538.1653675992725; Fri, 27 May 2022 11:26:32 -0700 (PDT) Received: from stoup.. (174-21-71-225.tukw.qwest.net. [174.21.71.225]) by smtp.gmail.com with ESMTPSA id g13-20020aa7874d000000b0050dc762816fsm3781539pfo.73.2022.05.27.11.26.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 May 2022 11:26:32 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org Subject: [PATCH 090/114] target/arm: Use TRANS_FEAT for do_reduce Date: Fri, 27 May 2022 11:18:43 -0700 Message-Id: <20220527181907.189259-91-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::52f; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x52f.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 | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 0d71072f83..4a9ecd5e72 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-sve.c @@ -3609,15 +3609,11 @@ static bool do_reduce(DisasContext *s, arg_rpr_esz *a, } #define DO_VPZ(NAME, name) \ -static bool trans_##NAME(DisasContext *s, arg_rpr_esz *a) \ -{ \ - static gen_helper_fp_reduce * const fns[4] = { \ - NULL, gen_helper_sve_##name##_h, \ - gen_helper_sve_##name##_s, \ - gen_helper_sve_##name##_d, \ + static gen_helper_fp_reduce * const name##_fns[4] = { \ + NULL, gen_helper_sve_##name##_h, \ + gen_helper_sve_##name##_s, gen_helper_sve_##name##_d, \ }; \ - return do_reduce(s, a, fns[a->esz]); \ -} + TRANS_FEAT(NAME, aa64_sve, do_reduce, a, name##_fns[a->esz]) DO_VPZ(FADDV, faddv) DO_VPZ(FMINNMV, fminnmv) @@ -3625,6 +3621,8 @@ DO_VPZ(FMAXNMV, fmaxnmv) DO_VPZ(FMINV, fminv) DO_VPZ(FMAXV, fmaxv) +#undef DO_VPZ + /* *** SVE Floating Point Unary Operations - Unpredicated Group */