xref: /openbmc/qemu/target/arm/tcg/sme.decode (revision 05caa062)
1# AArch64 SME instruction descriptions
2#
3#  Copyright (c) 2022 Linaro, Ltd
4#
5# This library is free software; you can redistribute it and/or
6# modify it under the terms of the GNU Lesser General Public
7# License as published by the Free Software Foundation; either
8# version 2.1 of the License, or (at your option) any later version.
9#
10# This library is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13# Lesser General Public License for more details.
14#
15# You should have received a copy of the GNU Lesser General Public
16# License along with this library; if not, see <http://www.gnu.org/licenses/>.
17
18#
19# This file is processed by scripts/decodetree.py
20#
21
22### SME Misc
23
24ZERO            11000000 00 001 00000000000 imm:8
25
26### SME Move into/from Array
27
28%mova_rs        13:2 !function=plus_12
29&mova           esz rs pg zr za_imm v:bool to_vec:bool
30
31MOVA            11000000 esz:2 00000 0 v:1 .. pg:3 zr:5 0 za_imm:4  \
32                &mova to_vec=0 rs=%mova_rs
33MOVA            11000000 11    00000 1 v:1 .. pg:3 zr:5 0 za_imm:4  \
34                &mova to_vec=0 rs=%mova_rs esz=4
35
36MOVA            11000000 esz:2 00001 0 v:1 .. pg:3 0 za_imm:4 zr:5  \
37                &mova to_vec=1 rs=%mova_rs
38MOVA            11000000 11    00001 1 v:1 .. pg:3 0 za_imm:4 zr:5  \
39                &mova to_vec=1 rs=%mova_rs esz=4
40
41### SME Memory
42
43&ldst           esz rs pg rn rm za_imm v:bool st:bool
44
45LDST1           1110000 0 esz:2 st:1 rm:5 v:1 .. pg:3 rn:5 0 za_imm:4  \
46                &ldst rs=%mova_rs
47LDST1           1110000 111     st:1 rm:5 v:1 .. pg:3 rn:5 0 za_imm:4  \
48                &ldst esz=4 rs=%mova_rs
49
50&ldstr          rv rn imm
51@ldstr          ....... ... . ...... .. ... rn:5 . imm:4 \
52                &ldstr rv=%mova_rs
53
54LDR             1110000 100 0 000000 .. 000 ..... 0 ....        @ldstr
55STR             1110000 100 1 000000 .. 000 ..... 0 ....        @ldstr
56
57### SME Add Vector to Array
58
59&adda           zad zn pm pn
60@adda_32        ........ .. ..... . pm:3 pn:3 zn:5 ... zad:2    &adda
61@adda_64        ........ .. ..... . pm:3 pn:3 zn:5 ..  zad:3    &adda
62
63ADDHA_s         11000000 10 01000 0 ... ... ..... 000 ..        @adda_32
64ADDVA_s         11000000 10 01000 1 ... ... ..... 000 ..        @adda_32
65ADDHA_d         11000000 11 01000 0 ... ... ..... 00 ...        @adda_64
66ADDVA_d         11000000 11 01000 1 ... ... ..... 00 ...        @adda_64
67
68### SME Outer Product
69
70&op             zad zn zm pm pn sub:bool
71@op_32          ........ ... zm:5 pm:3 pn:3 zn:5 sub:1 .. zad:2 &op
72@op_64          ........ ... zm:5 pm:3 pn:3 zn:5 sub:1 .  zad:3 &op
73
74FMOPA_s         10000000 100 ..... ... ... ..... . 00 ..        @op_32
75FMOPA_d         10000000 110 ..... ... ... ..... . 0 ...        @op_64
76
77BFMOPA          10000001 100 ..... ... ... ..... . 00 ..        @op_32
78FMOPA_h         10000001 101 ..... ... ... ..... . 00 ..        @op_32
79
80SMOPA_s         1010000 0 10 0 ..... ... ... ..... . 00 ..      @op_32
81SUMOPA_s        1010000 0 10 1 ..... ... ... ..... . 00 ..      @op_32
82USMOPA_s        1010000 1 10 0 ..... ... ... ..... . 00 ..      @op_32
83UMOPA_s         1010000 1 10 1 ..... ... ... ..... . 00 ..      @op_32
84
85SMOPA_d         1010000 0 11 0 ..... ... ... ..... . 0 ...      @op_64
86SUMOPA_d        1010000 0 11 1 ..... ... ... ..... . 0 ...      @op_64
87USMOPA_d        1010000 1 11 0 ..... ... ... ..... . 0 ...      @op_64
88UMOPA_d         1010000 1 11 1 ..... ... ... ..... . 0 ...      @op_64
89