From patchwork Tue Jun 28 04:20:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 585459 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:5036:0:0:0:0 with SMTP id e22csp405587mab; Mon, 27 Jun 2022 21:28:18 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vvlqLNeCGjY1m4wXUVbtkEskmpbAUib05vvuNFT+tHnKPFqcckdqpIwTB3SM86RQcVB5rV X-Received: by 2002:ac8:5a54:0:b0:31a:e84e:6813 with SMTP id o20-20020ac85a54000000b0031ae84e6813mr5097403qta.90.1656390498640; Mon, 27 Jun 2022 21:28:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656390498; cv=none; d=google.com; s=arc-20160816; b=jd3jqgauDzCo5pr0IGPwof3xuLvXRtbaBrkLq1XWoQTKlGRhldTCOiq+0W/7J157k5 E4Fkhy9vKMacm4LG2kWUzKsI6JV1d1ZPYrcu9gwS8IXFWPiThN9T65I0g6Y1A0+nzJcV 4NlO1XgoDnPL0NewoslowPJvonuPrrv19/69vCHBJy5WB7aAp5LNvnZHZASyb/KjEaP5 WSRsKtsjlcEqYQqmZvUFbEk5VBW8JkrX75DvwB4G3DfuEeRAn3wAT5C5BM4zGTmjfDtJ YHu3gHd8/qljRUk3Y4vYlabvvdt27m66qxi/fS1N6qWCOIZrJUSjK6Gq747ggF5TLOWV rEIg== 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=h76SjsaX+1rVxX8KDTWd9JukUhZC70d2S6ar++qWxxM=; b=ZDLph3v5ie88KriKfC/tektmd7YAOq+o2HXzuqssOMgBup8weE4D/kivuFpxU1aAxd TGqQmHaOHfpgWm4PVB92fkZHKD91KcXllTQxcXd4sBVfxjlsIeRoYP6HjDEZbdckPLp0 ZADu/gmEwjwCSBNli/NY8T7qSAz/AZpXbBoMZkWEBltyi/bZ4y/rJcfmhm6u5VZzR8CL 9cN69ZgxiEgebHsOGBhG5K/wm9yWicmy3ZfiNYdl/GVN/SL3BGBm/vHM9UxeGY0VAgyU uIJuhMjt0lAif3xySpChQgJzvUQz2M4LJPsvV4WrCm6kYDELpSSbUC9T1lIdIeak5QnG RDPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tK3NSonz; 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 e4-20020ac84e44000000b00304f76a80a6si7734787qtw.738.2022.06.27.21.28.18 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 27 Jun 2022 21:28:18 -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=tK3NSonz; 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]:59778 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o62pm-0001Az-6l for patch@linaro.org; Tue, 28 Jun 2022 00:28:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36906) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o62jM-0001RH-SJ for qemu-devel@nongnu.org; Tue, 28 Jun 2022 00:21:40 -0400 Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]:44803) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o62jK-0003fP-QA for qemu-devel@nongnu.org; Tue, 28 Jun 2022 00:21:40 -0400 Received: by mail-pg1-x532.google.com with SMTP id v126so6846324pgv.11 for ; Mon, 27 Jun 2022 21:21:37 -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=h76SjsaX+1rVxX8KDTWd9JukUhZC70d2S6ar++qWxxM=; b=tK3NSonzpdYbaCx8Dt9bz38Gf0QjJN3f2bcqCUiXBeoKLtryImD+FpaxKjFBCf6apR n/sQBW8Yxc6rqVy34jgEiToZRNe13tgtpUquXT0oZmv/5dNAOp6KZOoImtY5hPgtdMkC jc/CVVfkbmKpVaellB0+13/lCiY6qck0bcTWV0vakP+HAMuvyyp9rsDqIu4Ih06A0eyl PnZI1SNG1w2df2YRKwdHsrFPzt2PaqJJb/TbebnVTFX5TRBjq7PCJ18kIZADWhJ8IV3u K1GtLxqJW5C8cpZVa9ia3B9IsDgxnk4cUpnEojGOy/VVd3ucEUj5Fdl1mwnv2rslSooI oA2g== 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=h76SjsaX+1rVxX8KDTWd9JukUhZC70d2S6ar++qWxxM=; b=kh7/6SspPDFK2snfdakPQSWBpMxT2bJhLbbiRAkWrQz7Tgk6Mrl2t3/F5Mx8+s/wKf ovg/Ks6tuGGo6aLLZV7zwm+GGTFZdwDZajeFmu5CZhYp0BJU3XVJ3KY723W08Sh5hp7E fkPhsxZKXOeWMY6lyFRBXU4I60MP4rNFSVoRGUn4r8oQZGw+wIQ67Mm/l/pdKdZhBvLH EqXBADCvx7uQaSop3ZETtKeGArhOxVmHRvBOoQOFffrbZx9SjfX8i6MZuj65BCHLsItP iLB0hMVZXvoXqlQStx21FWYJlvDnnSjn3zupdWkPqhh6XN8wBCGC1FS3NvMYBuNyQ5a8 eJkw== X-Gm-Message-State: AJIora9jzog6i0Y+sNdd7NWmys3ETuQl/sq0D7tEb4TEjvoIW9B781mn zOS5fFESSKLCmVz4CRDJDsF/fLXenSF88A== X-Received: by 2002:a05:6a00:1a46:b0:525:82e2:a0d3 with SMTP id h6-20020a056a001a4600b0052582e2a0d3mr2612299pfv.48.1656390096570; Mon, 27 Jun 2022 21:21:36 -0700 (PDT) Received: from stoup.. ([122.255.60.245]) by smtp.gmail.com with ESMTPSA id jg6-20020a17090326c600b0016a087cfad8sm7994929plb.264.2022.06.27.21.21.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jun 2022 21:21:36 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org Subject: [PATCH v4 06/45] target/arm: Mark BDEP, BEXT, BGRP, COMPACT, FEXPA, FTSSEL as non-streaming Date: Tue, 28 Jun 2022 09:50:38 +0530 Message-Id: <20220628042117.368549-7-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220628042117.368549-1-richard.henderson@linaro.org> References: <20220628042117.368549-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::532; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x532.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" Mark these as a non-streaming instructions, which should trap if full a64 support is not enabled in streaming mode. Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell --- target/arm/sme-fa64.decode | 3 --- target/arm/translate-sve.c | 22 ++++++++++++---------- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/target/arm/sme-fa64.decode b/target/arm/sme-fa64.decode index a48f164ed4..c25bad5ee5 100644 --- a/target/arm/sme-fa64.decode +++ b/target/arm/sme-fa64.decode @@ -58,9 +58,6 @@ FAIL 1100 1110 ---- ---- ---- ---- ---- ---- # Advanced SIMD cryptography e # --11 1100 --1- ---- ---- ---- ---- --10 # Load/store FP register (register offset) # --11 1101 ---- ---- ---- ---- ---- ---- # Load/store FP register (scaled imm) -FAIL 0000 0100 --1- ---- 1011 -0-- ---- ---- # FTSSEL, FEXPA -FAIL 0000 0101 --10 0001 100- ---- ---- ---- # COMPACT -FAIL 0100 0101 --0- ---- 1011 ---- ---- ---- # BDEP, BEXT, BGRP FAIL 0100 0101 000- ---- 0110 1--- ---- ---- # PMULLB, PMULLT (128b result) FAIL 0110 0100 --1- ---- 1110 01-- ---- ---- # FMMLA, BFMMLA FAIL 0110 0101 --0- ---- 0000 11-- ---- ---- # FTSMUL diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index d6faec15fe..ae48040aa4 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-sve.c @@ -1333,14 +1333,15 @@ static gen_helper_gvec_2 * const fexpa_fns[4] = { NULL, gen_helper_sve_fexpa_h, gen_helper_sve_fexpa_s, gen_helper_sve_fexpa_d, }; -TRANS_FEAT(FEXPA, aa64_sve, gen_gvec_ool_zz, - fexpa_fns[a->esz], a->rd, a->rn, 0) +TRANS_FEAT_NONSTREAMING(FEXPA, aa64_sve, gen_gvec_ool_zz, + fexpa_fns[a->esz], a->rd, a->rn, 0) static gen_helper_gvec_3 * const ftssel_fns[4] = { NULL, gen_helper_sve_ftssel_h, gen_helper_sve_ftssel_s, gen_helper_sve_ftssel_d, }; -TRANS_FEAT(FTSSEL, aa64_sve, gen_gvec_ool_arg_zzz, ftssel_fns[a->esz], a, 0) +TRANS_FEAT_NONSTREAMING(FTSSEL, aa64_sve, gen_gvec_ool_arg_zzz, + ftssel_fns[a->esz], a, 0) /* *** SVE Predicate Logical Operations Group @@ -2536,7 +2537,8 @@ TRANS_FEAT(TRN2_q, aa64_sve_f64mm, gen_gvec_ool_arg_zzz, static gen_helper_gvec_3 * const compact_fns[4] = { NULL, NULL, gen_helper_sve_compact_s, gen_helper_sve_compact_d }; -TRANS_FEAT(COMPACT, aa64_sve, gen_gvec_ool_arg_zpz, compact_fns[a->esz], a, 0) +TRANS_FEAT_NONSTREAMING(COMPACT, aa64_sve, gen_gvec_ool_arg_zpz, + compact_fns[a->esz], a, 0) /* Call the helper that computes the ARM LastActiveElement pseudocode * function, scaled by the element size. This includes the not found @@ -6374,22 +6376,22 @@ static gen_helper_gvec_3 * const bext_fns[4] = { gen_helper_sve2_bext_b, gen_helper_sve2_bext_h, gen_helper_sve2_bext_s, gen_helper_sve2_bext_d, }; -TRANS_FEAT(BEXT, aa64_sve2_bitperm, gen_gvec_ool_arg_zzz, - bext_fns[a->esz], a, 0) +TRANS_FEAT_NONSTREAMING(BEXT, aa64_sve2_bitperm, gen_gvec_ool_arg_zzz, + bext_fns[a->esz], a, 0) static gen_helper_gvec_3 * const bdep_fns[4] = { gen_helper_sve2_bdep_b, gen_helper_sve2_bdep_h, gen_helper_sve2_bdep_s, gen_helper_sve2_bdep_d, }; -TRANS_FEAT(BDEP, aa64_sve2_bitperm, gen_gvec_ool_arg_zzz, - bdep_fns[a->esz], a, 0) +TRANS_FEAT_NONSTREAMING(BDEP, aa64_sve2_bitperm, gen_gvec_ool_arg_zzz, + bdep_fns[a->esz], a, 0) static gen_helper_gvec_3 * const bgrp_fns[4] = { gen_helper_sve2_bgrp_b, gen_helper_sve2_bgrp_h, gen_helper_sve2_bgrp_s, gen_helper_sve2_bgrp_d, }; -TRANS_FEAT(BGRP, aa64_sve2_bitperm, gen_gvec_ool_arg_zzz, - bgrp_fns[a->esz], a, 0) +TRANS_FEAT_NONSTREAMING(BGRP, aa64_sve2_bitperm, gen_gvec_ool_arg_zzz, + bgrp_fns[a->esz], a, 0) static gen_helper_gvec_3 * const cadd_fns[4] = { gen_helper_sve2_cadd_b, gen_helper_sve2_cadd_h,