From patchwork Fri May 27 18:18:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 576588 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:8607:0:0:0:0 with SMTP id bb7csp912908mab; Fri, 27 May 2022 12:17:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZsP8xcrf7WFGb8/f6v8vEeI6Y8HwMmjBnyQU7J0EZ2VXNkbWkMRU/RGenOjKh4M8eeDSK X-Received: by 2002:a05:6214:20c5:b0:464:387c:e1bb with SMTP id 5-20020a05621420c500b00464387ce1bbmr169195qve.57.1653679055747; Fri, 27 May 2022 12:17:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653679055; cv=none; d=google.com; s=arc-20160816; b=0lMhAfXS0Bmd2w+tuyQoeigQqcCybLPn1hgE+kudKWS+ftRHwUUj7ngjc2rKFBa0cq aWAJpVPi7/ut+2ZU4Gur4E/ss4NIG4PkXqNYoXf0jrjttNtgVaGGL1NvOYksdbrI/4Ag WWe+Q+caisLvu3OEAqhN3zezZEGU7Ff4XVepNwrNuEFYgJKTgocK3w6ZTu1YIvs3bUcj +jK5VOdHAiA3iDA8xPVJkYjq3hM3y46USGZTQ+vzh/y4pvXQtn4FWE/Zpx3/u65U+yXh qvrlO4wonVBg+Ab/+rjwi1FKOLgGv27CxKVQOTCtLsMkSSQvtgLsYDj2U38aSgZwOzmM B6Ew== 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=9pCmztrl1RZLprqKEM6lfLJzEMIvsaZMd2/ZOki/8Os=; b=qsMSg6/X7hTsHI2MyuVvj3CDfVowuoswMerZ8jW4sZtnLjiifv0pTn1IbcPIXd9KYx FJxCs8Ur62nNDfPI/1fpi4NtzglaIG+TOmR0YgE5qgOMWRCIAgiv8/nGKB0N6TXyET9m ZWv5WvA8jppzERVBLlittegE2rRuBlBTdZTEhXnnTNCQGZtVnwFCIdv6A5c9TqqdjdZc y8MO7qXMUEaYHAfTFkI1QhDOpeZBTOV6ov+4s/XFxtI/p6f+ROwteZUJknn3bY7O9PEt yfioMDc389O6tf5RULm0d3x6+KjjnmcvUpQ2hrmafZ4Llv+Mje4+R0fx5wgEconZ3TNv 5p5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CTfy7ghJ; 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 w1-20020ac857c1000000b002f3d85c4cb9si3327300qta.251.2022.05.27.12.17.35 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 27 May 2022 12:17:35 -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=CTfy7ghJ; 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]:34452 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nufSp-0004om-9b for patch@linaro.org; Fri, 27 May 2022 15:17:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43336) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuec3-0003J1-5Q for qemu-devel@nongnu.org; Fri, 27 May 2022 14:23:04 -0400 Received: from mail-pj1-x1033.google.com ([2607:f8b0:4864:20::1033]:53894) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nueby-0004LO-0u for qemu-devel@nongnu.org; Fri, 27 May 2022 14:23:02 -0400 Received: by mail-pj1-x1033.google.com with SMTP id z11so5276760pjc.3 for ; Fri, 27 May 2022 11:22:53 -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=9pCmztrl1RZLprqKEM6lfLJzEMIvsaZMd2/ZOki/8Os=; b=CTfy7ghJUFyi07ULzalbz5Hd4sfiH1efKbz4+3CnefUaJ2d9QDe294LjVYbiQFguIo ZQQWLuWXqfybOXjIejKM4fCIQolKO3wjUKIRIUWHwF5P2tcDBwCJOoz+twsmOUG9kjdb /jnjmTVjkBotN/9WY2CD69E3Lt+JH5fgwv1utMwbG+mVyE6sT1pIn5QNkXqt0pmWom6p HDnL79Shk5wtIve9qjT+ZTlct+WFD+CaLnMdaj3QXPf9/8+fxe6kg8Il1FcV9lPUqsjU rQw5l5QdpnUds9qvKL0GYdKNQXg5uOPvuRZruJ7s3lgFqVBgiY1lU7aH6/b+FHd4/90v 8YzQ== 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=9pCmztrl1RZLprqKEM6lfLJzEMIvsaZMd2/ZOki/8Os=; b=wd/AGYR4Aori7G19or5mBljzs04xzk9kyzunqVayscVZ/BM9/jCSHepevoltAwvMG+ gNCV8NR7y284g3Zi5p58qtMa3SZpO+ItNpPNisgEPgnxsaqhjnoTHpmnf7B8SehvL1HS xtYmF32SvjxPGVgJnKitI2/nwlXHp4l0qxSb/7CGl2fIhmOwC6an5LgihxD+tJKWuK58 Vg4b1bsrPtGxrF3Rqb6B38csM/b8iOUUzLTUvmlCoNyOIrL9UH66buMgFFZ/jSuLrbCh olPiX1dDn/RUYBaC40zNlxW143Eke6dzLY3/3VR80vYdBsn/4XoS2CbHuWuw5R76sEa9 2b4A== X-Gm-Message-State: AOAM532eWTlLEnEpHOyxHbA2s84kEOTVM4VT3nE0B0rPR4GyeS9ukwvk euq8BBcQ46GDIqWe7lXWBr9dWtd3dj06VA== X-Received: by 2002:a17:90b:1b08:b0:1e2:9cdf:c66a with SMTP id nu8-20020a17090b1b0800b001e29cdfc66amr30766pjb.39.1653675772504; Fri, 27 May 2022 11:22:52 -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.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 May 2022 11:22:52 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org Subject: [PATCH 047/114] target/arm: Use TRANS_FEAT for do_zpzzz_ool Date: Fri, 27 May 2022 11:18:00 -0700 Message-Id: <20220527181907.189259-48-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::1033; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1033.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" Remove the DO_ZPZZZ macro, as it had just the two uses. Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 98f9cfa86c..52bbd1a4fa 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-sve.c @@ -1071,20 +1071,17 @@ static bool do_zpzzz_ool(DisasContext *s, arg_rprrr_esz *a, return true; } -#define DO_ZPZZZ(NAME, name) \ -static bool trans_##NAME(DisasContext *s, arg_rprrr_esz *a) \ -{ \ - static gen_helper_gvec_5 * const fns[4] = { \ - gen_helper_sve_##name##_b, gen_helper_sve_##name##_h, \ - gen_helper_sve_##name##_s, gen_helper_sve_##name##_d, \ - }; \ - return do_zpzzz_ool(s, a, fns[a->esz]); \ -} +static gen_helper_gvec_5 * const mla_fns[4] = { + gen_helper_sve_mla_b, gen_helper_sve_mla_h, + gen_helper_sve_mla_s, gen_helper_sve_mla_d, +}; +TRANS_FEAT(MLA, aa64_sve, do_zpzzz_ool, a, mla_fns[a->esz]) -DO_ZPZZZ(MLA, mla) -DO_ZPZZZ(MLS, mls) - -#undef DO_ZPZZZ +static gen_helper_gvec_5 * const mls_fns[4] = { + gen_helper_sve_mls_b, gen_helper_sve_mls_h, + gen_helper_sve_mls_s, gen_helper_sve_mls_d, +}; +TRANS_FEAT(MLS, aa64_sve, do_zpzzz_ool, a, mls_fns[a->esz]) /* *** SVE Index Generation Group