[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RISU PATCH v4 29/29] aarch64: Trivial SME test
From: |
Richard Henderson |
Subject: |
[RISU PATCH v4 29/29] aarch64: Trivial SME test |
Date: |
Fri, 8 Jul 2022 21:17:00 +0530 |
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
test_sme_aarch64.s | 55 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 55 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..a5ef909
--- /dev/null
+++ b/test_sme_aarch64.s
@@ -0,0 +1,55 @@
+ .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 */
--
2.34.1
- [RISU PATCH v4 22/29] ppc64: Use uint64_t to represent double, (continued)
- [RISU PATCH v4 22/29] ppc64: Use uint64_t to represent double, Richard Henderson, 2022/07/08
- [RISU PATCH v4 25/29] Remove return value from reginfo_dump, Richard Henderson, 2022/07/08
- [RISU PATCH v4 26/29] ppc64: Clean up reginfo handling, Richard Henderson, 2022/07/08
- [RISU PATCH v4 27/29] aarch64: Tidy reginfo dumping ahead of ZA state, Richard Henderson, 2022/07/08
- [RISU PATCH v4 28/29] aarch64: Add support for ZA storage, Richard Henderson, 2022/07/08
- [RISU PATCH v4 29/29] aarch64: Trivial SME test,
Richard Henderson <=
- Re: [RISU PATCH v4 00/29] risu cleanups and improvements, Peter Maydell, 2022/07/18