forked from stsquad/risu
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_sme_aarch64.s
More file actions
63 lines (55 loc) · 1.16 KB
/
test_sme_aarch64.s
File metadata and controls
63 lines (55 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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 */