From patchwork Fri May 27 18:18:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 576617 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:8607:0:0:0:0 with SMTP id bb7csp933023mab; Fri, 27 May 2022 12:48:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxm0o6Iddzaf8PlIqhNsg32FQnSVWIma4CI0u7msD754NOeTKBlhEiWsVCRcqrLwaIbVsjb X-Received: by 2002:ad4:5966:0:b0:461:f510:d60 with SMTP id eq6-20020ad45966000000b00461f5100d60mr36843112qvb.122.1653680903040; Fri, 27 May 2022 12:48:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653680903; cv=none; d=google.com; s=arc-20160816; b=Kt+vSvtZ2etOtzvZRg7Zsgwk/SZX0l2BMX7YT1SO9KxBFr+QEUImojGl3ay73DOu4i qKX77/S869bAfoBTnVoeHb3kmTe6+HgR/zEdZWPJClv/XGmf/iTXGgMkX4x64V3n0v/o cmFy0FZRlzuARLNv7S4q87Dyje5nHtTuQY2jC0PA5m+bn6mhda667KuZuVoX+fyswUC/ b4a6pOfxR0ZLf0FLFYCAhCk4DWri9mQ65oowBc6NP4gYDVLAcR31UYGJqllF3OQ/OTOH TsNNbNskHO6xSH2D3paHIXD0i/jF3ZUQkfjk0cP/OW/k1MKuxg9a1CxcTPxKW+zlAWWi ZqtQ== 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=jenGXgth8/5lyJY0ppyuniUdVxk7NPlHkBbrEm55oI8=; b=zOQTZ2h9Bf8K9cul04jqMLZR01S8OAbVemIRWuFLE5Pl8bnFjnzVHLDe9awyFQOhlt 4GDs3FnNLRo9m3lBqqEssYkFbFhggjbcW+ztq/ECktMl9ASgeYQ4hRMfjtdhAP39/N9C LItWuDYxs8qw7EryPAjZaVQB3Oyg7h54eWif07SiAHrel5/AmVxYL6E+oaeAJ8tSLZkc t73BVqrE/IAO2elYSAzQ649VL7cGzOmHLok1DUwMI76PW3g+mDoDi6f+z46Z86fXtp6U Cc/bUQF4puqPLW/xickULO9fLtbbVpI2KLASQaayEdtFI6V1DCnSG7TUOb2V051djHzW 9LDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dXCTCOqD; 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 jo1-20020a056214500100b004623bcb5458si3115654qvb.282.2022.05.27.12.48.22 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 27 May 2022 12:48:23 -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=dXCTCOqD; 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]:46518 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nufwc-0003GO-LE for patch@linaro.org; Fri, 27 May 2022 15:48:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45344) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuefT-0001hc-12 for qemu-devel@nongnu.org; Fri, 27 May 2022 14:26:36 -0400 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]:35724) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nuefP-0005JU-3u for qemu-devel@nongnu.org; Fri, 27 May 2022 14:26:34 -0400 Received: by mail-pj1-x1030.google.com with SMTP id c10-20020a17090a4d0a00b001e283823a00so1638426pjg.0 for ; Fri, 27 May 2022 11:26:30 -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=jenGXgth8/5lyJY0ppyuniUdVxk7NPlHkBbrEm55oI8=; b=dXCTCOqD7WNzrjq56GrIpEOOloRD3k+fAhDmHqBMjCFlEYi6JKgQ9Kzjxgto5vyafO 7ibDg2hBU+YJQETOi+DiXCjjyWXu3vpizRGhWOFblZR54boJV/jdMih0Zj/ECsjeKqdp 9OrXz4muElDFQ3wnoZeqt+TKCA44XYsxr6WO8DzYtKlN37/qLho8wReuMUqxQZZ8t0Nq QJERmWNZe375QPVBYcOXgHvXO4cHLqj7N58cB1MsZyNMfhj5XQXA/z7BxMOdVZoLRlcS 8mWOpzJha8K3EYhx1DPunYxPIw1f0CjY4RnxwDVWEvLc70oWXptwURLe5kXUbeULuPKn l/oA== 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=jenGXgth8/5lyJY0ppyuniUdVxk7NPlHkBbrEm55oI8=; b=gIDR6iYl573elVLKN8HL3rSAH+LB4K5hkABnHqSHZ6YXuWe5QGmEjfXStoDRh3tntd lOvRaq9DMz6ooqHk+ueyUkhPsJ7M+pqGU8ETqn0xXKgkD7dkUnm5mOxhiVfk/McbD5lg EpDsBt35N0zLFc6oT0nLKvUodRadJ2xcukvlhrwSqSO6xZPwXPQ1KEJnfvyOF0281Ea6 V7GP69IhqBTVkRx8g3AwD8Q4O4/VDXSk140TJV9XKK6pFpn/c0JqWujIGhMpMym+mI7f 2gxKhwMBhFQdGVX0xNBh9yz9ESgAzxyKVH5mUYxqVTeVzvHGttVREmlEOyQefSEx8y/+ wLaw== X-Gm-Message-State: AOAM5324+phvp+m5sDJks8a9dEyBO8Au7f2O2JQayGXMbJ6RjWzrY9IK 5Wa6SnQdTS2GYJxjzi+TKZ/imYJULatvyg== X-Received: by 2002:a17:90a:8407:b0:1d9:ab62:bd3c with SMTP id j7-20020a17090a840700b001d9ab62bd3cmr9664269pjn.139.1653675989780; Fri, 27 May 2022 11:26:29 -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.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 May 2022 11:26:29 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org Subject: [PATCH 087/114] target/arm: Use TRANS_FEAT for FMUL_zzx Date: Fri, 27 May 2022 11:18:40 -0700 Message-Id: <20220527181907.189259-88-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::1030; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1030.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 | 26 +++++++------------------- 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index d596e7a027..29fcc8b014 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-sve.c @@ -3557,25 +3557,13 @@ TRANS_FEAT(FMLS_zzxz, aa64_sve, do_FMLA_zzxz, a, true) *** SVE Floating Point Multiply Indexed Group */ -static bool trans_FMUL_zzx(DisasContext *s, arg_FMUL_zzx *a) -{ - static gen_helper_gvec_3_ptr * const fns[3] = { - gen_helper_gvec_fmul_idx_h, - gen_helper_gvec_fmul_idx_s, - gen_helper_gvec_fmul_idx_d, - }; - - if (sve_access_check(s)) { - unsigned vsz = vec_full_reg_size(s); - TCGv_ptr status = fpstatus_ptr(a->esz == MO_16 ? FPST_FPCR_F16 : FPST_FPCR); - tcg_gen_gvec_3_ptr(vec_full_reg_offset(s, a->rd), - vec_full_reg_offset(s, a->rn), - vec_full_reg_offset(s, a->rm), - status, vsz, vsz, a->index, fns[a->esz - 1]); - tcg_temp_free_ptr(status); - } - return true; -} +static gen_helper_gvec_3_ptr * const fmul_idx_fns[4] = { + NULL, gen_helper_gvec_fmul_idx_h, + gen_helper_gvec_fmul_idx_s, gen_helper_gvec_fmul_idx_d, +}; +TRANS_FEAT(FMUL_zzx, aa64_sve, gen_gvec_fpst_zzz, + fmul_idx_fns[a->esz], a->rd, a->rn, a->rm, a->index, + a->esz == MO_16 ? FPST_FPCR_F16 : FPST_FPCR) /* *** SVE Floating Point Fast Reduction Group