From patchwork Sat May 11 11:53:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 796236 Delivered-To: patch@linaro.org Received: by 2002:a5d:452e:0:b0:34e:ceec:bfcd with SMTP id j14csp1236288wra; Sat, 11 May 2024 04:56:43 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVRBCIQye0/URqiSkkkvzhCFQf5oWro/KyqqO5u1mCYp9tHrKIWLBy4cpAjeerKwm8cBCDLvEJ07Qc++WNkmLMP X-Google-Smtp-Source: AGHT+IFgaAqElhG5QooV424IKicYVeIBY4kwotrcxWOqUSfFeX4CID5ZVVcP2BqxIpX9TseqlL4c X-Received: by 2002:a05:622a:14b:b0:43d:f712:d5bd with SMTP id d75a77b69052e-43dfdb90ef5mr52946171cf.47.1715428603249; Sat, 11 May 2024 04:56:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1715428603; cv=none; d=google.com; s=arc-20160816; b=YYVGizJ+5SPFiD290p9zwq/8ZcB05lq5yPpodVGi64gwpKDagMZcVBOmaYJAIbAKro SxiXcy0UaSTL2IhXf2R3JnO4JNSF23ayioIInK6XAjlChr8/qO4MD1cnW37mNj4ZMkYJ bFSmYriZk47nYzM+y0yPQLCnc1ie54olQfAg+xXfkFiQIDPhCJldyfHg/kb3SIal+Nrb /K4DYFhfHfP2h81v6x4BTOwCQ/jdfYlVmIcaYSyrHGtl4ty82rmsEwbviWaYJHQ/hrit HbVr/xva4dt3lYYIXY6cFHSLXj8N8C9Rb3f40xslPROKEFNCVCwFJMHQK3QjtKac11Cb LujA== 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=TszikIIR0P364Y+SfqYmtCRzUOVzTKFI40YQ9lx2ZZQ=; fh=UQCixiNfr28ZOrfhmxiGPA65dFhly8CmRsnoYC6xI9k=; b=JwZyB0QjQNPF4bm2MBE6K0EajBJNFuH8q6xNgUYWAsPLmEBB9oCip2PaO+6lzmYV8t gPUhJBHX30XcL1diBbSmcFJZGwoRZDJrlIHPZMtfha+sBHci45cqBpnvvEqoY6YIKX41 UpwiBaKWqTZlZ5kfJ1eRfOiaPLg2u06ojNr8tudo07jW16R1AQHqneOGceo3SCWS5JIc iSq2bj7cpP0kpxzGGKUgG1XHecvpqNbaRHpATdbeYRsEX+PFgoSSEXw8kJACcb5Vu/Xc lulLOBRNeJfaU/0QEvJxgP8kNRkFeivWPyB7Hhtcnph0S7qZgW0p1mKPL72++HLWG0FL FT2Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DRPzxLOm; 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 d75a77b69052e-43df54c31besi39670321cf.227.2024.05.11.04.56.43 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 11 May 2024 04:56:43 -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=DRPzxLOm; 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] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s5lIy-0000Ml-IL; Sat, 11 May 2024 07:54:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s5lIv-0000Lc-Ul for qemu-devel@nongnu.org; Sat, 11 May 2024 07:54:17 -0400 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s5lIu-000701-3y for qemu-devel@nongnu.org; Sat, 11 May 2024 07:54:17 -0400 Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-34d7d04808bso2029908f8f.0 for ; Sat, 11 May 2024 04:54:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715428454; x=1716033254; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=TszikIIR0P364Y+SfqYmtCRzUOVzTKFI40YQ9lx2ZZQ=; b=DRPzxLOmN0bK+oy83RYmAk514pFRLzU3B2vPzC0HFumODOX2nX5DuphSONvURsNO+d 8rgEvUXGxW99d6AeHqqx5ctdd/4vMxB6aBVed+lzi3Yk/Wjd7ABxukvJSJj6P2y4q8Tk Pi4aHBUo8rR5wMrvLvFMcvyt3p7tw7yW+95HrhrADCZ9xWvrNIQLonCJSJBv6kD6L5z9 D2bhLUie0jbex0vg4ohwvoaj/0sv0FSNmMuNrWDTCdDbYbErW7tqXLo7ddEhuoDbldi5 r24FIHcy7DUnbwY2VTTQD0phaqueJ+Lw134b6kJukOVaDZiQLhCC2nrm1gEeko6gI4/s Shkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715428454; x=1716033254; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TszikIIR0P364Y+SfqYmtCRzUOVzTKFI40YQ9lx2ZZQ=; b=j+9YNHV0lP+AZpy8YPw+2DDOYar/bzE2xjKRrlLBN+3yXG7liOHaQwfi4P4DdoXexM J01weVpy8xPqvHU2kIhUHIp7YUA2mykXJcsF46hLNt4Dp8FYJEnDJSwO3vDex7YJH8FP J0gsOmw5shxzkNwFP1o7ZGs4K7N7/LGbVRqeEgLcOrtPdsuaUHd3XKqufLrsnpKtFZek nGCB28b6xtu2GJyCF5pom6hBeiQUGhgbzSn2jYA5znPlBx6w6kxPt3FVWNLCyFz3L3Av sAiFxf7N1AJYZAY2LGa4pDhSf6tE32lB9iREmsEdhXRUk5XQulk23yb925fzMGnL2VSy RAww== X-Gm-Message-State: AOJu0YwofIk5A+h3qnUq4gyBL4n+/T1/uCXzFOYHa12zwnRZldQ3QTiG hqaH5vA6VBJcReyWBH1l1aG8xxxC9BKiYNw8rIsf73o9KlBEp8GRoTe7TVu3JwoQEn+SK3TOD24 Ccs4= X-Received: by 2002:adf:ef4c:0:b0:349:bccc:a1e7 with SMTP id ffacd0b85a97d-3504a6310c6mr5585661f8f.19.1715428454677; Sat, 11 May 2024 04:54:14 -0700 (PDT) Received: from stoup.. ([195.76.196.165]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3502bbbbf20sm6764797f8f.93.2024.05.11.04.54.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 May 2024 04:54:14 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org Subject: [PATCH 12/17] aarch64: Trivial SME test Date: Sat, 11 May 2024 13:53:55 +0200 Message-Id: <20240511115400.7587-13-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240511115400.7587-1-richard.henderson@linaro.org> References: <20240511115400.7587-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=richard.henderson@linaro.org; helo=mail-wr1-x431.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.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-bounces+patch=linaro.org@nongnu.org Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell --- test_sme_aarch64.s | 63 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 test_sme_aarch64.s diff --git a/test_sme_aarch64.s b/test_sme_aarch64.s new file mode 100644 index 0000000..acd08d4 --- /dev/null +++ b/test_sme_aarch64.s @@ -0,0 +1,63 @@ +/***************************************************************************** + * Copyright (c) 2022 Linaro Limited + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + *****************************************************************************/ + + .arch_extension sme + + mov w0, #0 + mov w1, #0 + mov w2, #0 + mov w3, #0 + mov w4, #0 + mov w5, #0 + mov w6, #0 + mov w7, #0 + mov w8, #0 + mov w9, #0 + mov w10, #0 + mov w11, #0 + mov w12, #0 + mov w13, #0 + mov w14, #0 + mov w15, #0 + mov w16, #0 + mov w17, #0 + mov w18, #0 + mov w19, #0 + mov w20, #0 + mov w21, #0 + mov w22, #0 + mov w23, #0 + mov w24, #0 + mov w25, #0 + mov w26, #0 + mov w27, #0 + mov w28, #0 + mov w29, #0 + mov w30, #0 + + smstart + + ptrue p0.b + rdsvl x12, #1 + +0: subs w12, w12, #1 + lsl w13, w12, #4 + index z0.b, w13, #1 + mova za0h.b[w12, #0], p0/m, z0.b + b.ne 0b + + .inst 0x00005af0 /* compare */ + + rdsvl x12, #1 +0: subs w12, w12, #1 + lsl w13, w12, #4 + index z0.b, w13, #1 + mova za0v.b[w12, #0], p0/m, z0.b + b.ne 0b + + .inst 0x00005af1 /* exit */