xref: /qemu/target/arm/tcg/neon-shared.decode (revision 94d5eb7b3f72fbbdee55d7908e9cb6de95949f4b)
1# AArch32 Neon instruction descriptions
2#
3#  Copyright (c) 2020 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 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# Encodings for Neon instructions whose encoding is the same for
23# both A32 and T32.
24
25# More specifically, this covers:
26# 2reg scalar ext: 0b1111_1110_xxxx_xxxx_xxxx_1x0x_xxxx_xxxx
27# 3same ext:       0b1111_110x_xxxx_xxxx_xxxx_1x0x_xxxx_xxxx
28
29# VFP/Neon register fields; same as vfp.decode
30%vm_dp  5:1 0:4
31%vm_sp  0:4 5:1
32%vn_dp  7:1 16:4
33%vn_sp  16:4 7:1
34%vd_dp  22:1 12:4
35%vd_sp  12:4 22:1
36
37VCMLA          1111 110 rot:2 . 1 size:1 .... .... 1000 . q:1 . 0 .... \
38               vm=%vm_dp vn=%vn_dp vd=%vd_dp
39
40VCADD          1111 110 rot:1 1 . 0 size:1 .... .... 1000 . q:1 . 0 .... \
41               vm=%vm_dp vn=%vn_dp vd=%vd_dp
42