From patchwork Mon May 30 16:05:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 577246 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:330b:0:0:0:0 with SMTP id f11csp417844mag; Mon, 30 May 2022 10:05:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhq+0Be2zealVVhB640u49ISlQgGPRu4NQY3RXL37tJNikAzAhZa3HfILj5CxTlsMvlGlv X-Received: by 2002:ac8:5913:0:b0:2f3:a402:1054 with SMTP id 19-20020ac85913000000b002f3a4021054mr45058419qty.513.1653930337230; Mon, 30 May 2022 10:05:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653930337; cv=none; d=google.com; s=arc-20160816; b=jzJr3D/KNBSzQEms5HzAWqblA5PzitYbyIT5AsTKtqYWUbZ/vOTpgSjAgpIcRFDyhg zNiPipkzGU0v+J66+RbQWxjP6NB8hu6ifvteNv0agtIiyBu8ByxV698rUndE8hA4NV8I 2B9EvbZeVu1ZFKHU6I/0/nx3+p8BlikNnJFzPFdOXH9dZtBkMN9RhM9mo9rNEIwBnWtS WfBZio+5FjSlM7aUzNDJbgvo475AmvDcLwbS6lehRm6+YBYnEvbrMLgVE54zjVZ9RiQC 1tyPe15eFtkwn+8atZUEO2tPlf/g81PVI0wgF06E/kzjHkR2m9fcrV+53NsJHcoWZHt4 FWvA== 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=z8wEWNOP2fHsbOK8M8A10RgrzTj1YykPIOPDZrlCou0=; b=QXZf3Gv0nNAwVEHAeb1/3JIm8LrBib8f4+uAeYOWfBL22srKUT8AMIlsLfMyi9mkxx FZpoqNzHfORwdWvWCWoNcGmPxMY40GpNcWKSOwFihqz+aZx3a+J8A6G+hhqF26rWewdC l/1Mk/UoH/vs0tAsMhh5rlsRL2RT9O+jA6dHBL2CEWab/N5VuTFC6UNHAvpp0Bw4sohj sxcUxec7Dt2jQ1ZijACngQLzT1ONIvM/9ENuVfmvrZGvh1r9SSP2/sAZJLyEuq45hVch e5VF9g2swGIL/UIgT0WeNQfriMFRIevDhPGHYbw6+TufbqGwjjpNBnuNoXL8yKh1gdAQ AsEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ctoFAmAQ; 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 j12-20020ac85c4c000000b002f3cd8c28e9si7938668qtj.22.2022.05.30.10.05.37 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 May 2022 10:05: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=ctoFAmAQ; 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]:50744 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nvipk-0004gX-HU for patch@linaro.org; Mon, 30 May 2022 13:05:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39212) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nvhvp-0003cf-7I for qemu-devel@nongnu.org; Mon, 30 May 2022 12:07:49 -0400 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]:39780) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nvhvn-0007Ft-Ke for qemu-devel@nongnu.org; Mon, 30 May 2022 12:07:48 -0400 Received: by mail-wr1-x42c.google.com with SMTP id x17so6211540wrg.6 for ; Mon, 30 May 2022 09:07:47 -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=z8wEWNOP2fHsbOK8M8A10RgrzTj1YykPIOPDZrlCou0=; b=ctoFAmAQkgcuTNSUdrExOZyBKPzyQdeKp/VPYZDurH1/+u/MFaTZ7V7VqPPUX+R03y gSmciD+ToH5s/04a6g4o77SESqPEB9F04FjOZMLNOsiy0X0Fy4EMK6odEa5unateUM+j V0i0DCBpSDmuT3DPDVvsF/yT+vWgEkZ2Ao2J4UYiSy0y9wJ2WrVdFGpbNWNtfm0EAk3b VnMpF2JkW7O8o2oWQJXzyg1/OIqnl08jpuZk6g6NODXPGCIeXDZRauKIrCNPR1HNKGmw rcTwdCU8uuQ+JguHYGT1wSoLlqgf0HDzfcq0pZOfiny1oS6caL8hC8LkqzOBrozehkzk AyUA== 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=z8wEWNOP2fHsbOK8M8A10RgrzTj1YykPIOPDZrlCou0=; b=yeiIrRvA7nxdaq2wZWA6g995raml/uy+ZJm0cYp1J4FNqZFBngkOenRdjRKucy8W8K JLVMNWbdeC5xrWQDDXbc9MFF3UgsX6Rbk1ZHQnB9lTnVRS08Xgs7iu9VnCFSqPkxLsdk yT++Oz0XpjywB3gaT3FaaKPKuE3myhx26RvP+ZLn0DBfZlUpQ1itOgRJfdxaWLkVNTqJ yTKEFCrQF3TfsgM0qITWTM/xZk5EIID6xZfFZl+rcwbvy0aVWcm5pZjwJEf+MWSwsDHz 3VFwpTdxVB2B0kF7FslKjxhVzDgAWZDAAqNGjZoJYFSFxyNlDNb2sY5SUix1IgwDUnxD ZqUg== X-Gm-Message-State: AOAM5319s8iFTB+JYPq3l3foBnGyMERBUdoK+zkTbDZOAnBGC42ThxeP GvYphWat/xxWGyoIMvZeNaOYG7E/bwS61A== X-Received: by 2002:a5d:5150:0:b0:210:1d71:3dcb with SMTP id u16-20020a5d5150000000b002101d713dcbmr13141742wrt.412.1653926866776; Mon, 30 May 2022 09:07:46 -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.07.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 May 2022 09:07:46 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 046/117] target/arm: Use TRANS_FEAT for do_vpz_ool Date: Mon, 30 May 2022 17:05:57 +0100 Message-Id: <20220530160708.726466-47-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::42c; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x42c.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-44-richard.henderson@linaro.org Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- 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 911d2e28bf4..6103bd7f1d4 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