2019-06-11 17:39:41 +02:00
|
|
|
# AArch32 VFP instruction descriptions (unconditional insns)
|
|
|
|
#
|
|
|
|
# Copyright (c) 2019 Linaro, Ltd
|
|
|
|
#
|
|
|
|
# This library is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU Lesser General Public
|
|
|
|
# License as published by the Free Software Foundation; either
|
2020-10-23 14:29:13 +02:00
|
|
|
# version 2.1 of the License, or (at your option) any later version.
|
2019-06-11 17:39:41 +02:00
|
|
|
#
|
|
|
|
# This library is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
# Lesser General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU Lesser General Public
|
|
|
|
# License along with this library; if not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
#
|
|
|
|
# This file is processed by scripts/decodetree.py
|
|
|
|
#
|
|
|
|
# Encodings for the unconditional VFP instructions are here:
|
|
|
|
# generally anything matching A32
|
|
|
|
# 1111 1110 .... .... .... 101. ...0 ....
|
|
|
|
# and T32
|
|
|
|
# 1111 110. .... .... .... 101. .... ....
|
|
|
|
# 1111 1110 .... .... .... 101. .... ....
|
|
|
|
# (but those patterns might also cover some Neon instructions,
|
|
|
|
# which do not live in this file.)
|
2019-06-11 17:39:42 +02:00
|
|
|
|
|
|
|
# VFP registers have an odd encoding with a four-bit field
|
|
|
|
# and a one-bit field which are assembled in different orders
|
|
|
|
# depending on whether the register is double or single precision.
|
|
|
|
# Each individual instruction function must do the checks for
|
|
|
|
# "double register selected but CPU does not have double support"
|
|
|
|
# and "double register number has bit 4 set but CPU does not
|
|
|
|
# support D16-D31" (which should UNDEF).
|
|
|
|
%vm_dp 5:1 0:4
|
|
|
|
%vm_sp 0:4 5:1
|
|
|
|
%vn_dp 7:1 16:4
|
|
|
|
%vn_sp 16:4 7:1
|
|
|
|
%vd_dp 22:1 12:4
|
|
|
|
%vd_sp 12:4 22:1
|
|
|
|
|
2020-02-24 23:22:32 +01:00
|
|
|
@vfp_dnm_s ................................ vm=%vm_sp vn=%vn_sp vd=%vd_sp
|
|
|
|
@vfp_dnm_d ................................ vm=%vm_dp vn=%vn_dp vd=%vd_dp
|
|
|
|
|
2020-08-28 20:33:26 +02:00
|
|
|
VSEL 1111 1110 0. cc:2 .... .... 1001 .0.0 .... \
|
|
|
|
vm=%vm_sp vn=%vn_sp vd=%vd_sp sz=1
|
2019-06-11 17:39:42 +02:00
|
|
|
VSEL 1111 1110 0. cc:2 .... .... 1010 .0.0 .... \
|
2020-08-28 20:33:26 +02:00
|
|
|
vm=%vm_sp vn=%vn_sp vd=%vd_sp sz=2
|
2019-06-11 17:39:42 +02:00
|
|
|
VSEL 1111 1110 0. cc:2 .... .... 1011 .0.0 .... \
|
2020-08-28 20:33:26 +02:00
|
|
|
vm=%vm_dp vn=%vn_dp vd=%vd_dp sz=3
|
2019-06-11 17:39:43 +02:00
|
|
|
|
2020-08-28 20:33:12 +02:00
|
|
|
VMAXNM_hp 1111 1110 1.00 .... .... 1001 .0.0 .... @vfp_dnm_s
|
|
|
|
VMINNM_hp 1111 1110 1.00 .... .... 1001 .1.0 .... @vfp_dnm_s
|
|
|
|
|
2020-02-24 23:22:32 +01:00
|
|
|
VMAXNM_sp 1111 1110 1.00 .... .... 1010 .0.0 .... @vfp_dnm_s
|
|
|
|
VMINNM_sp 1111 1110 1.00 .... .... 1010 .1.0 .... @vfp_dnm_s
|
|
|
|
|
|
|
|
VMAXNM_dp 1111 1110 1.00 .... .... 1011 .0.0 .... @vfp_dnm_d
|
|
|
|
VMINNM_dp 1111 1110 1.00 .... .... 1011 .1.0 .... @vfp_dnm_d
|
2019-06-11 17:39:43 +02:00
|
|
|
|
2020-08-28 20:33:27 +02:00
|
|
|
VRINT 1111 1110 1.11 10 rm:2 .... 1001 01.0 .... \
|
|
|
|
vm=%vm_sp vd=%vd_sp sz=1
|
2019-06-11 17:39:43 +02:00
|
|
|
VRINT 1111 1110 1.11 10 rm:2 .... 1010 01.0 .... \
|
2020-08-28 20:33:27 +02:00
|
|
|
vm=%vm_sp vd=%vd_sp sz=2
|
2019-06-11 17:39:43 +02:00
|
|
|
VRINT 1111 1110 1.11 10 rm:2 .... 1011 01.0 .... \
|
2020-08-28 20:33:27 +02:00
|
|
|
vm=%vm_dp vd=%vd_dp sz=3
|
2019-06-11 17:39:43 +02:00
|
|
|
|
|
|
|
# VCVT float to int with specified rounding mode; Vd is always single-precision
|
2020-08-28 20:33:25 +02:00
|
|
|
VCVT 1111 1110 1.11 11 rm:2 .... 1001 op:1 1.0 .... \
|
|
|
|
vm=%vm_sp vd=%vd_sp sz=1
|
2019-06-11 17:39:43 +02:00
|
|
|
VCVT 1111 1110 1.11 11 rm:2 .... 1010 op:1 1.0 .... \
|
2020-08-28 20:33:25 +02:00
|
|
|
vm=%vm_sp vd=%vd_sp sz=2
|
2019-06-11 17:39:43 +02:00
|
|
|
VCVT 1111 1110 1.11 11 rm:2 .... 1011 op:1 1.0 .... \
|
2020-08-28 20:33:25 +02:00
|
|
|
vm=%vm_dp vd=%vd_sp sz=3
|
2020-08-28 20:33:28 +02:00
|
|
|
|
2020-08-28 20:33:29 +02:00
|
|
|
VMOVX 1111 1110 1.11 0000 .... 1010 01 . 0 .... \
|
|
|
|
vd=%vd_sp vm=%vm_sp
|
|
|
|
|
2020-08-28 20:33:28 +02:00
|
|
|
VINS 1111 1110 1.11 0000 .... 1010 11 . 0 .... \
|
|
|
|
vd=%vd_sp vm=%vm_sp
|