target/arm: Convert "double-precision" register moves to decodetree
[qemu/ar7.git] / target / arm / vfp.decode
blob8286bdc07297081df1ba1c60a9094cac7117a051
1 # AArch32 VFP instruction descriptions (conditional insns)
3 #  Copyright (c) 2019 Linaro, Ltd
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.
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.
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/>.
19 # This file is processed by scripts/decodetree.py
21 # Encodings for the conditional VFP instructions are here:
22 # generally anything matching A32
23 #  cccc 11.. .... .... .... 101. .... ....
24 # and T32
25 #  1110 110. .... .... .... 101. .... ....
26 #  1110 1110 .... .... .... 101. .... ....
27 # (but those patterns might also cover some Neon instructions,
28 # which do not live in this file.)
30 # VFP registers have an odd encoding with a four-bit field
31 # and a one-bit field which are assembled in different orders
32 # depending on whether the register is double or single precision.
33 # Each individual instruction function must do the checks for
34 # "double register selected but CPU does not have double support"
35 # and "double register number has bit 4 set but CPU does not
36 # support D16-D31" (which should UNDEF).
37 %vm_dp  5:1 0:4
38 %vm_sp  0:4 5:1
39 %vn_dp  7:1 16:4
40 %vn_sp  16:4 7:1
41 %vd_dp  22:1 12:4
42 %vd_sp  12:4 22:1
44 %vmov_idx_b     21:1 5:2
45 %vmov_idx_h     21:1 6:1
47 # VMOV scalar to general-purpose register; note that this does
48 # include some Neon cases.
49 VMOV_to_gp   ---- 1110 u:1 1.        1 .... rt:4 1011 ... 1 0000 \
50              vn=%vn_dp size=0 index=%vmov_idx_b
51 VMOV_to_gp   ---- 1110 u:1 0.        1 .... rt:4 1011 ..1 1 0000 \
52              vn=%vn_dp size=1 index=%vmov_idx_h
53 VMOV_to_gp   ---- 1110 0   0 index:1 1 .... rt:4 1011 .00 1 0000 \
54              vn=%vn_dp size=2 u=0
56 VMOV_from_gp ---- 1110 0 1.        0 .... rt:4 1011 ... 1 0000 \
57              vn=%vn_dp size=0 index=%vmov_idx_b
58 VMOV_from_gp ---- 1110 0 0.        0 .... rt:4 1011 ..1 1 0000 \
59              vn=%vn_dp size=1 index=%vmov_idx_h
60 VMOV_from_gp ---- 1110 0 0 index:1 0 .... rt:4 1011 .00 1 0000 \
61              vn=%vn_dp size=2
63 VDUP         ---- 1110 1 b:1 q:1 0 .... rt:4 1011 . 0 e:1 1 0000 \
64              vn=%vn_dp