From patchwork Tue Mar 9 16:20:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 396052 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp2805516jai; Tue, 9 Mar 2021 10:09:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJzKlgBk9knNBvLo8cKrs4nQZtJt7LdgXzKS8VgQ01MHSR48UenpQ7ok6KGzEOFTuSUgO+fG X-Received: by 2002:a6b:c881:: with SMTP id y123mr23056137iof.152.1615313364010; Tue, 09 Mar 2021 10:09:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615313364; cv=none; d=google.com; s=arc-20160816; b=wFAKdEoSaYPW8KI5JrBYaY3wUw56B2bEdzHnuEONkLaQQ4crDIJFdgmdlFOhGKeeyu dz2Xqz+S75GZvCtC1YR4Tax1wocOt3IZg50wXOxFm1VV1frO18aeJxgluuqwITWxlCKU 7aR6Q/8BYXN3p4igJnqD3tamXwPTy3hHMb50Ju+tqph6EOH2HlCb3OxpWYXYzhP9WJAV Cw+46AqcCoRxYp6Zovx+H6PDjIvMqIUJqNh5WQZUGCYPv8QkC1HzeoldrBwgGWpX80vc HugtWg/ce/L3VtfrITwgWvL5C9NVieX4w91lctrQwh8ovfRzIIdy1XNWGpAo/P6oZ/aK DjEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc: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=34lemQd5zIzYiuHieHMv0eB4fxYwFhBfNJ3IIztazZk=; b=y4URQR/Zrzbq05ZNd5irc9xa7KFORHVURL8+ptBstTNVVvQJhzJYIm98dg7Ijq1ebl 7DbMTC5xxpHt24m2OIJtIzN8V4gtKBPqbkf/7YzLwA70GDcFQE9qYYR475gcWdQPNk3c 6n7wuh30jyfrNOV3/KQYEBQIxxg404Tnzkc0OmiQ1aofNx914+LpeWpK8RzC8YQhSTtS ZvCI8s8agxgvg7N6PfKO87ZhODaAnXPWwwI3PdurO5WTJM1iBeN3enuAyT7Xe8S8hvFQ EqaZagmWHyzEptSM/inP8/4P+RfKv1X1ErwBq9Fu/o3omNRnfwr5IDFF/YaWKkbVhYpa ywKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=q+G3nnup; 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 y5si14064796iof.34.2021.03.09.10.09.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 09 Mar 2021 10:09:23 -0800 (PST) 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=q+G3nnup; 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]:43344 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJgnL-00033o-8e for patch@linaro.org; Tue, 09 Mar 2021 13:09:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46626) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJf7Y-0000Bj-AX for qemu-devel@nongnu.org; Tue, 09 Mar 2021 11:22:08 -0500 Received: from mail-oi1-x22d.google.com ([2607:f8b0:4864:20::22d]:35879) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lJf7V-0002kY-94 for qemu-devel@nongnu.org; Tue, 09 Mar 2021 11:22:08 -0500 Received: by mail-oi1-x22d.google.com with SMTP id o22so5784705oic.3 for ; Tue, 09 Mar 2021 08:22:04 -0800 (PST) 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=34lemQd5zIzYiuHieHMv0eB4fxYwFhBfNJ3IIztazZk=; b=q+G3nnupCHprgfnvNQwKm5tEFHHItpSSzY4MT7WkgFPmusKZ9UQj8raPo3bMwhqiyK 2X53mDkTV038gOIKvBz03NUs6g/iNNhG3UJOYSkGn5zJsNPJU5gFkzx8wx95wGGjVD39 QhrtB3aKx+G8CZvF6a4hEEMsC1I/yLIOvBDAR+WV+GnMunO/VYfladoWVka2SBOkAgRx J0yUv0XcU2HrDCTxvzULUF/kuqFjWSxtoMeMl8Lo5q+/orh4WzY7TW/Pt7d++kmyCb26 rypY8you0fsEINPcN7joDVb5zMviCXo1HDW+bMu7bN3kNKqQByFKkrTapyqvySY2fKsi 93DA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=34lemQd5zIzYiuHieHMv0eB4fxYwFhBfNJ3IIztazZk=; b=N0NykQ57GpG1RzUE64p7Y9YIvF0CmHjmMbwIcUA7PCFoGHBZLZerh5ikBQYCGyBUl+ 5uWua9HfPpkxvlZL0qKBcwa1zeCoRPXpUBoVNlVNj+hJiuMcGXKijIsyqtlSOvOJghfh 3WDys3KTH+77NrIxGw6DYzIORRwET63HiTcyBFd4jdvGNCt+0xlJjf7nUbk2xqzTXMQa JWtFRBsTVnXAzatbBPBK0TUtPk6BljONZW7A9sIYNapvIFQDhi7kptCVVtrjyR8moDMf HMEj5v9TbJCR9MI0BsrvoLVBwVjDyHGl+en9jFqh/wAAKn0vPmWAmhhxLjX+/YvCibys kkzQ== X-Gm-Message-State: AOAM530Y/QpRzp03J2/5hSpm7eYFJcgs7m11/C7WRE0O0x4wcyIUAFpb CWbi3BuAfPcCVNj8jQ8NBRa4N57ewbP0EA6Q X-Received: by 2002:aca:de82:: with SMTP id v124mr3485851oig.125.1615306924296; Tue, 09 Mar 2021 08:22:04 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-144.totalplay.net. [187.189.51.144]) by smtp.gmail.com with ESMTPSA id u19sm3470898ote.15.2021.03.09.08.22.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Mar 2021 08:22:03 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v4 44/78] target/arm: Implement SVE2 scatter store insns Date: Tue, 9 Mar 2021 08:20:07 -0800 Message-Id: <20210309162041.23124-45-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210309162041.23124-1-richard.henderson@linaro.org> References: <20210309162041.23124-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::22d; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x22d.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 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, qemu-arm@nongnu.org, alex.bennee@linaro.org, Stephen Long Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Stephen Long Add decoding logic for SVE2 64-bit/32-bit scatter non-temporal store insns. 64-bit * STNT1B (vector plus scalar) * STNT1H (vector plus scalar) * STNT1W (vector plus scalar) * STNT1D (vector plus scalar) 32-bit * STNT1B (vector plus scalar) * STNT1H (vector plus scalar) * STNT1W (vector plus scalar) Signed-off-by: Stephen Long Message-Id: <20200422141553.8037-1-steplong@quicinc.com> Signed-off-by: Richard Henderson --- target/arm/sve.decode | 10 ++++++++++ target/arm/translate-sve.c | 8 ++++++++ 2 files changed, 18 insertions(+) -- 2.25.1 diff --git a/target/arm/sve.decode b/target/arm/sve.decode index 7645587469..5cfe6df0d2 100644 --- a/target/arm/sve.decode +++ b/target/arm/sve.decode @@ -1388,3 +1388,13 @@ UMLSLT_zzzw 01000100 .. 0 ..... 010 111 ..... ..... @rda_rn_rm CMLA_zzzz 01000100 esz:2 0 rm:5 0010 rot:2 rn:5 rd:5 ra=%reg_movprfx SQRDCMLAH_zzzz 01000100 esz:2 0 rm:5 0011 rot:2 rn:5 rd:5 ra=%reg_movprfx + +### SVE2 Memory Store Group + +# SVE2 64-bit scatter non-temporal store (vector plus scalar) +STNT1_zprz 1110010 .. 00 ..... 001 ... ..... ..... \ + @rprr_scatter_store xs=2 esz=3 scale=0 + +# SVE2 32-bit scatter non-temporal store (vector plus scalar) +STNT1_zprz 1110010 .. 10 ..... 001 ... ..... ..... \ + @rprr_scatter_store xs=0 esz=2 scale=0 diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index cad61f4577..895522e3cf 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-sve.c @@ -6168,6 +6168,14 @@ static bool trans_ST1_zpiz(DisasContext *s, arg_ST1_zpiz *a) return true; } +static bool trans_STNT1_zprz(DisasContext *s, arg_ST1_zprz *a) +{ + if (!dc_isar_feature(aa64_sve2, s)) { + return false; + } + return trans_ST1_zprz(s, a); +} + /* * Prefetches */