2020-04-30 21:09:30 +03:00
|
|
|
# AArch32 Neon data-processing instruction descriptions
|
|
|
|
#
|
|
|
|
# Copyright (c) 2020 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
|
|
|
|
# version 2 of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
#
|
2020-04-30 21:09:41 +03:00
|
|
|
# VFP/Neon register fields; same as vfp.decode
|
|
|
|
%vm_dp 5:1 0:4
|
|
|
|
%vn_dp 7:1 16:4
|
|
|
|
%vd_dp 22:1 12:4
|
2020-04-30 21:09:30 +03:00
|
|
|
|
|
|
|
# Encodings for Neon data processing instructions where the T32 encoding
|
|
|
|
# is a simple transformation of the A32 encoding.
|
|
|
|
# More specifically, this file covers instructions where the A32 encoding is
|
|
|
|
# 0b1111_001p_qqqq_qqqq_qqqq_qqqq_qqqq_qqqq
|
|
|
|
# and the T32 encoding is
|
|
|
|
# 0b111p_1111_qqqq_qqqq_qqqq_qqqq_qqqq_qqqq
|
|
|
|
# This file works on the A32 encoding only; calling code for T32 has to
|
|
|
|
# transform the insn into the A32 version first.
|
2020-04-30 21:09:41 +03:00
|
|
|
|
|
|
|
######################################################################
|
|
|
|
# 3-reg-same grouping:
|
|
|
|
# 1111 001 U 0 D sz:2 Vn:4 Vd:4 opc:4 N Q M op Vm:4
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
&3same vm vn vd q size
|
|
|
|
|
|
|
|
@3same .... ... . . . size:2 .... .... .... . q:1 . . .... \
|
|
|
|
&3same vm=%vm_dp vn=%vn_dp vd=%vd_dp
|
|
|
|
|
2020-05-12 19:38:55 +03:00
|
|
|
@3same_q0 .... ... . . . size:2 .... .... .... . 0 . . .... \
|
|
|
|
&3same vm=%vm_dp vn=%vn_dp vd=%vd_dp q=0
|
|
|
|
|
2020-09-03 16:32:07 +03:00
|
|
|
# For FP insns the high bit of 'size' is used as part of opcode decode,
|
|
|
|
# and the 'size' bit is 0 for 32-bit float and 1 for 16-bit float.
|
|
|
|
# This converts this encoding to the same MO_8/16/32/64 values that the
|
|
|
|
# integer neon insns use.
|
|
|
|
%3same_fp_size 20:1 !function=neon_3same_fp_size
|
|
|
|
|
|
|
|
@3same_fp .... ... . . . . . .... .... .... . q:1 . . .... \
|
|
|
|
&3same vm=%vm_dp vn=%vn_dp vd=%vd_dp size=%3same_fp_size
|
|
|
|
@3same_fp_q0 .... ... . . . . . .... .... .... . 0 . . .... \
|
|
|
|
&3same vm=%vm_dp vn=%vn_dp vd=%vd_dp q=0 size=%3same_fp_size
|
2020-05-12 19:38:58 +03:00
|
|
|
|
2020-05-12 19:38:51 +03:00
|
|
|
VHADD_S_3s 1111 001 0 0 . .. .... .... 0000 . . . 0 .... @3same
|
|
|
|
VHADD_U_3s 1111 001 1 0 . .. .... .... 0000 . . . 0 .... @3same
|
2020-04-30 21:09:45 +03:00
|
|
|
VQADD_S_3s 1111 001 0 0 . .. .... .... 0000 . . . 1 .... @3same
|
|
|
|
VQADD_U_3s 1111 001 1 0 . .. .... .... 0000 . . . 1 .... @3same
|
|
|
|
|
2020-05-12 19:38:53 +03:00
|
|
|
VRHADD_S_3s 1111 001 0 0 . .. .... .... 0001 . . . 0 .... @3same
|
|
|
|
VRHADD_U_3s 1111 001 1 0 . .. .... .... 0001 . . . 0 .... @3same
|
|
|
|
|
2020-04-30 21:09:42 +03:00
|
|
|
@3same_logic .... ... . . . .. .... .... .... . q:1 .. .... \
|
|
|
|
&3same vm=%vm_dp vn=%vn_dp vd=%vd_dp size=0
|
|
|
|
|
|
|
|
VAND_3s 1111 001 0 0 . 00 .... .... 0001 ... 1 .... @3same_logic
|
|
|
|
VBIC_3s 1111 001 0 0 . 01 .... .... 0001 ... 1 .... @3same_logic
|
|
|
|
VORR_3s 1111 001 0 0 . 10 .... .... 0001 ... 1 .... @3same_logic
|
|
|
|
VORN_3s 1111 001 0 0 . 11 .... .... 0001 ... 1 .... @3same_logic
|
|
|
|
VEOR_3s 1111 001 1 0 . 00 .... .... 0001 ... 1 .... @3same_logic
|
|
|
|
VBSL_3s 1111 001 1 0 . 01 .... .... 0001 ... 1 .... @3same_logic
|
|
|
|
VBIT_3s 1111 001 1 0 . 10 .... .... 0001 ... 1 .... @3same_logic
|
|
|
|
VBIF_3s 1111 001 1 0 . 11 .... .... 0001 ... 1 .... @3same_logic
|
|
|
|
|
2020-05-12 19:38:53 +03:00
|
|
|
VHSUB_S_3s 1111 001 0 0 . .. .... .... 0010 . . . 0 .... @3same
|
|
|
|
VHSUB_U_3s 1111 001 1 0 . .. .... .... 0010 . . . 0 .... @3same
|
|
|
|
|
2020-04-30 21:09:45 +03:00
|
|
|
VQSUB_S_3s 1111 001 0 0 . .. .... .... 0010 . . . 1 .... @3same
|
|
|
|
VQSUB_U_3s 1111 001 1 0 . .. .... .... 0010 . . . 1 .... @3same
|
|
|
|
|
2020-04-30 21:09:44 +03:00
|
|
|
VCGT_S_3s 1111 001 0 0 . .. .... .... 0011 . . . 0 .... @3same
|
|
|
|
VCGT_U_3s 1111 001 1 0 . .. .... .... 0011 . . . 0 .... @3same
|
|
|
|
VCGE_S_3s 1111 001 0 0 . .. .... .... 0011 . . . 1 .... @3same
|
|
|
|
VCGE_U_3s 1111 001 1 0 . .. .... .... 0011 . . . 1 .... @3same
|
|
|
|
|
2020-05-13 19:32:37 +03:00
|
|
|
# The _rev suffix indicates that Vn and Vm are reversed. This is
|
|
|
|
# the case for shifts. In the Arm ARM these insns are documented
|
|
|
|
# with the Vm and Vn fields in their usual places, but in the
|
|
|
|
# assembly the operands are listed "backwards", ie in the order
|
|
|
|
# Dd, Dm, Dn where other insns use Dd, Dn, Dm. For QEMU we choose
|
|
|
|
# to consider Vm and Vn as being in different fields in the insn,
|
|
|
|
# which allows us to avoid special-casing shifts in the trans_
|
|
|
|
# function code. We would otherwise need to manually swap the operands
|
|
|
|
# over to call Neon helper functions that are shared with AArch64,
|
|
|
|
# which does not have this odd reversed-operand situation.
|
|
|
|
@3same_rev .... ... . . . size:2 .... .... .... . q:1 . . .... \
|
|
|
|
&3same vn=%vm_dp vm=%vn_dp vd=%vd_dp
|
|
|
|
|
|
|
|
VSHL_S_3s 1111 001 0 0 . .. .... .... 0100 . . . 0 .... @3same_rev
|
|
|
|
VSHL_U_3s 1111 001 1 0 . .. .... .... 0100 . . . 0 .... @3same_rev
|
2020-04-30 21:09:46 +03:00
|
|
|
|
2020-05-12 19:38:50 +03:00
|
|
|
# Insns operating on 64-bit elements (size!=0b11 handled elsewhere)
|
|
|
|
# The _rev suffix indicates that Vn and Vm are reversed (as explained
|
|
|
|
# by the comment for the @3same_rev format).
|
|
|
|
@3same_64_rev .... ... . . . 11 .... .... .... . q:1 . . .... \
|
|
|
|
&3same vm=%vn_dp vn=%vm_dp vd=%vd_dp size=3
|
|
|
|
|
2020-05-12 19:38:54 +03:00
|
|
|
{
|
|
|
|
VQSHL_S64_3s 1111 001 0 0 . .. .... .... 0100 . . . 1 .... @3same_64_rev
|
|
|
|
VQSHL_S_3s 1111 001 0 0 . .. .... .... 0100 . . . 1 .... @3same_rev
|
|
|
|
}
|
|
|
|
{
|
|
|
|
VQSHL_U64_3s 1111 001 1 0 . .. .... .... 0100 . . . 1 .... @3same_64_rev
|
|
|
|
VQSHL_U_3s 1111 001 1 0 . .. .... .... 0100 . . . 1 .... @3same_rev
|
|
|
|
}
|
|
|
|
{
|
|
|
|
VRSHL_S64_3s 1111 001 0 0 . .. .... .... 0101 . . . 0 .... @3same_64_rev
|
|
|
|
VRSHL_S_3s 1111 001 0 0 . .. .... .... 0101 . . . 0 .... @3same_rev
|
|
|
|
}
|
|
|
|
{
|
|
|
|
VRSHL_U64_3s 1111 001 1 0 . .. .... .... 0101 . . . 0 .... @3same_64_rev
|
|
|
|
VRSHL_U_3s 1111 001 1 0 . .. .... .... 0101 . . . 0 .... @3same_rev
|
|
|
|
}
|
|
|
|
{
|
|
|
|
VQRSHL_S64_3s 1111 001 0 0 . .. .... .... 0101 . . . 1 .... @3same_64_rev
|
|
|
|
VQRSHL_S_3s 1111 001 0 0 . .. .... .... 0101 . . . 1 .... @3same_rev
|
|
|
|
}
|
|
|
|
{
|
|
|
|
VQRSHL_U64_3s 1111 001 1 0 . .. .... .... 0101 . . . 1 .... @3same_64_rev
|
|
|
|
VQRSHL_U_3s 1111 001 1 0 . .. .... .... 0101 . . . 1 .... @3same_rev
|
|
|
|
}
|
2020-05-12 19:38:50 +03:00
|
|
|
|
2020-04-30 21:09:43 +03:00
|
|
|
VMAX_S_3s 1111 001 0 0 . .. .... .... 0110 . . . 0 .... @3same
|
|
|
|
VMAX_U_3s 1111 001 1 0 . .. .... .... 0110 . . . 0 .... @3same
|
|
|
|
VMIN_S_3s 1111 001 0 0 . .. .... .... 0110 . . . 1 .... @3same
|
|
|
|
VMIN_U_3s 1111 001 1 0 . .. .... .... 0110 . . . 1 .... @3same
|
|
|
|
|
2020-05-12 19:38:52 +03:00
|
|
|
VABD_S_3s 1111 001 0 0 . .. .... .... 0111 . . . 0 .... @3same
|
|
|
|
VABD_U_3s 1111 001 1 0 . .. .... .... 0111 . . . 0 .... @3same
|
|
|
|
|
|
|
|
VABA_S_3s 1111 001 0 0 . .. .... .... 0111 . . . 1 .... @3same
|
|
|
|
VABA_U_3s 1111 001 1 0 . .. .... .... 0111 . . . 1 .... @3same
|
|
|
|
|
2020-04-30 21:09:41 +03:00
|
|
|
VADD_3s 1111 001 0 0 . .. .... .... 1000 . . . 0 .... @3same
|
|
|
|
VSUB_3s 1111 001 1 0 . .. .... .... 1000 . . . 0 .... @3same
|
2020-04-30 21:09:44 +03:00
|
|
|
|
|
|
|
VTST_3s 1111 001 0 0 . .. .... .... 1000 . . . 1 .... @3same
|
|
|
|
VCEQ_3s 1111 001 1 0 . .. .... .... 1000 . . . 1 .... @3same
|
2020-04-30 21:09:46 +03:00
|
|
|
|
|
|
|
VMLA_3s 1111 001 0 0 . .. .... .... 1001 . . . 0 .... @3same
|
|
|
|
VMLS_3s 1111 001 1 0 . .. .... .... 1001 . . . 0 .... @3same
|
|
|
|
|
|
|
|
VMUL_3s 1111 001 0 0 . .. .... .... 1001 . . . 1 .... @3same
|
|
|
|
VMUL_p_3s 1111 001 1 0 . .. .... .... 1001 . . . 1 .... @3same
|
2020-05-12 19:38:48 +03:00
|
|
|
|
2020-05-12 19:38:55 +03:00
|
|
|
VPMAX_S_3s 1111 001 0 0 . .. .... .... 1010 . . . 0 .... @3same_q0
|
|
|
|
VPMAX_U_3s 1111 001 1 0 . .. .... .... 1010 . . . 0 .... @3same_q0
|
|
|
|
|
|
|
|
VPMIN_S_3s 1111 001 0 0 . .. .... .... 1010 . . . 1 .... @3same_q0
|
|
|
|
VPMIN_U_3s 1111 001 1 0 . .. .... .... 1010 . . . 1 .... @3same_q0
|
|
|
|
|
2020-05-12 19:38:57 +03:00
|
|
|
VQDMULH_3s 1111 001 0 0 . .. .... .... 1011 . . . 0 .... @3same
|
|
|
|
VQRDMULH_3s 1111 001 1 0 . .. .... .... 1011 . . . 0 .... @3same
|
|
|
|
|
2020-05-12 19:38:56 +03:00
|
|
|
VPADD_3s 1111 001 0 0 . .. .... .... 1011 . . . 1 .... @3same_q0
|
|
|
|
|
2020-05-12 19:38:48 +03:00
|
|
|
VQRDMLAH_3s 1111 001 1 0 . .. .... .... 1011 ... 1 .... @3same
|
2020-05-12 19:38:49 +03:00
|
|
|
|
2020-05-15 00:28:29 +03:00
|
|
|
@3same_crypto .... .... .... .... .... .... .... .... \
|
|
|
|
&3same vm=%vm_dp vn=%vn_dp vd=%vd_dp size=0 q=1
|
|
|
|
|
2020-05-15 00:28:30 +03:00
|
|
|
SHA1C_3s 1111 001 0 0 . 00 .... .... 1100 . 1 . 0 .... @3same_crypto
|
|
|
|
SHA1P_3s 1111 001 0 0 . 01 .... .... 1100 . 1 . 0 .... @3same_crypto
|
|
|
|
SHA1M_3s 1111 001 0 0 . 10 .... .... 1100 . 1 . 0 .... @3same_crypto
|
|
|
|
SHA1SU0_3s 1111 001 0 0 . 11 .... .... 1100 . 1 . 0 .... @3same_crypto
|
2020-05-15 00:28:29 +03:00
|
|
|
SHA256H_3s 1111 001 1 0 . 00 .... .... 1100 . 1 . 0 .... @3same_crypto
|
|
|
|
SHA256H2_3s 1111 001 1 0 . 01 .... .... 1100 . 1 . 0 .... @3same_crypto
|
|
|
|
SHA256SU1_3s 1111 001 1 0 . 10 .... .... 1100 . 1 . 0 .... @3same_crypto
|
2020-05-12 19:38:49 +03:00
|
|
|
|
2020-05-12 19:39:04 +03:00
|
|
|
VFMA_fp_3s 1111 001 0 0 . 0 . .... .... 1100 ... 1 .... @3same_fp
|
|
|
|
VFMS_fp_3s 1111 001 0 0 . 1 . .... .... 1100 ... 1 .... @3same_fp
|
|
|
|
|
2020-05-12 19:38:48 +03:00
|
|
|
VQRDMLSH_3s 1111 001 1 0 . .. .... .... 1100 ... 1 .... @3same
|
2020-05-12 19:38:58 +03:00
|
|
|
|
|
|
|
VADD_fp_3s 1111 001 0 0 . 0 . .... .... 1101 ... 0 .... @3same_fp
|
|
|
|
VSUB_fp_3s 1111 001 0 0 . 1 . .... .... 1101 ... 0 .... @3same_fp
|
2020-05-12 19:38:59 +03:00
|
|
|
VPADD_fp_3s 1111 001 1 0 . 0 . .... .... 1101 ... 0 .... @3same_fp_q0
|
2020-05-12 19:38:58 +03:00
|
|
|
VABD_fp_3s 1111 001 1 0 . 1 . .... .... 1101 ... 0 .... @3same_fp
|
2020-05-12 19:39:00 +03:00
|
|
|
VMLA_fp_3s 1111 001 0 0 . 0 . .... .... 1101 ... 1 .... @3same_fp
|
|
|
|
VMLS_fp_3s 1111 001 0 0 . 1 . .... .... 1101 ... 1 .... @3same_fp
|
|
|
|
VMUL_fp_3s 1111 001 1 0 . 0 . .... .... 1101 ... 1 .... @3same_fp
|
2020-05-12 19:39:01 +03:00
|
|
|
VCEQ_fp_3s 1111 001 0 0 . 0 . .... .... 1110 ... 0 .... @3same_fp
|
|
|
|
VCGE_fp_3s 1111 001 1 0 . 0 . .... .... 1110 ... 0 .... @3same_fp
|
|
|
|
VACGE_fp_3s 1111 001 1 0 . 0 . .... .... 1110 ... 1 .... @3same_fp
|
|
|
|
VCGT_fp_3s 1111 001 1 0 . 1 . .... .... 1110 ... 0 .... @3same_fp
|
|
|
|
VACGT_fp_3s 1111 001 1 0 . 1 . .... .... 1110 ... 1 .... @3same_fp
|
2020-05-12 19:39:03 +03:00
|
|
|
VMAX_fp_3s 1111 001 0 0 . 0 . .... .... 1111 ... 0 .... @3same_fp
|
|
|
|
VMIN_fp_3s 1111 001 0 0 . 1 . .... .... 1111 ... 0 .... @3same_fp
|
2020-05-12 19:38:59 +03:00
|
|
|
VPMAX_fp_3s 1111 001 1 0 . 0 . .... .... 1111 ... 0 .... @3same_fp_q0
|
|
|
|
VPMIN_fp_3s 1111 001 1 0 . 1 . .... .... 1111 ... 0 .... @3same_fp_q0
|
2020-05-12 19:39:03 +03:00
|
|
|
VRECPS_fp_3s 1111 001 0 0 . 0 . .... .... 1111 ... 1 .... @3same_fp
|
|
|
|
VRSQRTS_fp_3s 1111 001 0 0 . 1 . .... .... 1111 ... 1 .... @3same_fp
|
|
|
|
VMAXNM_fp_3s 1111 001 1 0 . 0 . .... .... 1111 ... 1 .... @3same_fp
|
|
|
|
VMINNM_fp_3s 1111 001 1 0 . 1 . .... .... 1111 ... 1 .... @3same_fp
|
2020-05-22 17:55:12 +03:00
|
|
|
|
|
|
|
######################################################################
|
|
|
|
# 2-reg-and-shift grouping:
|
|
|
|
# 1111 001 U 1 D immH:3 immL:3 Vd:4 opc:4 L Q M 1 Vm:4
|
|
|
|
######################################################################
|
|
|
|
&2reg_shift vm vd q shift size
|
|
|
|
|
2020-05-22 17:55:13 +03:00
|
|
|
# Right shifts are encoded as N - shift, where N is the element size in bits.
|
|
|
|
%neon_rshift_i6 16:6 !function=rsub_64
|
|
|
|
%neon_rshift_i5 16:5 !function=rsub_32
|
|
|
|
%neon_rshift_i4 16:4 !function=rsub_16
|
|
|
|
%neon_rshift_i3 16:3 !function=rsub_8
|
|
|
|
|
|
|
|
@2reg_shr_d .... ... . . . ...... .... .... 1 q:1 . . .... \
|
|
|
|
&2reg_shift vm=%vm_dp vd=%vd_dp size=3 shift=%neon_rshift_i6
|
|
|
|
@2reg_shr_s .... ... . . . 1 ..... .... .... 0 q:1 . . .... \
|
|
|
|
&2reg_shift vm=%vm_dp vd=%vd_dp size=2 shift=%neon_rshift_i5
|
|
|
|
@2reg_shr_h .... ... . . . 01 .... .... .... 0 q:1 . . .... \
|
|
|
|
&2reg_shift vm=%vm_dp vd=%vd_dp size=1 shift=%neon_rshift_i4
|
|
|
|
@2reg_shr_b .... ... . . . 001 ... .... .... 0 q:1 . . .... \
|
|
|
|
&2reg_shift vm=%vm_dp vd=%vd_dp size=0 shift=%neon_rshift_i3
|
|
|
|
|
2020-05-22 17:55:12 +03:00
|
|
|
@2reg_shl_d .... ... . . . shift:6 .... .... 1 q:1 . . .... \
|
|
|
|
&2reg_shift vm=%vm_dp vd=%vd_dp size=3
|
|
|
|
@2reg_shl_s .... ... . . . 1 shift:5 .... .... 0 q:1 . . .... \
|
|
|
|
&2reg_shift vm=%vm_dp vd=%vd_dp size=2
|
|
|
|
@2reg_shl_h .... ... . . . 01 shift:4 .... .... 0 q:1 . . .... \
|
|
|
|
&2reg_shift vm=%vm_dp vd=%vd_dp size=1
|
|
|
|
@2reg_shl_b .... ... . . . 001 shift:3 .... .... 0 q:1 . . .... \
|
|
|
|
&2reg_shift vm=%vm_dp vd=%vd_dp size=0
|
|
|
|
|
2020-05-22 17:55:16 +03:00
|
|
|
# Narrowing right shifts: here the Q bit is part of the opcode decode
|
|
|
|
@2reg_shrn_d .... ... . . . 1 ..... .... .... 0 . . . .... \
|
|
|
|
&2reg_shift vm=%vm_dp vd=%vd_dp size=3 q=0 \
|
|
|
|
shift=%neon_rshift_i5
|
|
|
|
@2reg_shrn_s .... ... . . . 01 .... .... .... 0 . . . .... \
|
|
|
|
&2reg_shift vm=%vm_dp vd=%vd_dp size=2 q=0 \
|
|
|
|
shift=%neon_rshift_i4
|
|
|
|
@2reg_shrn_h .... ... . . . 001 ... .... .... 0 . . . .... \
|
|
|
|
&2reg_shift vm=%vm_dp vd=%vd_dp size=1 q=0 \
|
|
|
|
shift=%neon_rshift_i3
|
|
|
|
|
2020-05-22 17:55:18 +03:00
|
|
|
# Long left shifts: again Q is part of opcode decode
|
|
|
|
@2reg_shll_s .... ... . . . 1 shift:5 .... .... 0 . . . .... \
|
|
|
|
&2reg_shift vm=%vm_dp vd=%vd_dp size=2 q=0
|
|
|
|
@2reg_shll_h .... ... . . . 01 shift:4 .... .... 0 . . . .... \
|
|
|
|
&2reg_shift vm=%vm_dp vd=%vd_dp size=1 q=0
|
|
|
|
@2reg_shll_b .... ... . . . 001 shift:3 .... .... 0 . . . .... \
|
|
|
|
&2reg_shift vm=%vm_dp vd=%vd_dp size=0 q=0
|
|
|
|
|
2020-05-22 17:55:19 +03:00
|
|
|
@2reg_vcvt .... ... . . . 1 ..... .... .... . q:1 . . .... \
|
2020-09-03 16:32:08 +03:00
|
|
|
&2reg_shift vm=%vm_dp vd=%vd_dp size=2 shift=%neon_rshift_i5
|
2020-08-28 21:33:47 +03:00
|
|
|
@2reg_vcvt_f16 .... ... . . . 11 .... .... .... . q:1 . . .... \
|
|
|
|
&2reg_shift vm=%vm_dp vd=%vd_dp size=1 shift=%neon_rshift_i4
|
2020-05-22 17:55:19 +03:00
|
|
|
|
2020-05-22 17:55:13 +03:00
|
|
|
VSHR_S_2sh 1111 001 0 1 . ...... .... 0000 . . . 1 .... @2reg_shr_d
|
|
|
|
VSHR_S_2sh 1111 001 0 1 . ...... .... 0000 . . . 1 .... @2reg_shr_s
|
|
|
|
VSHR_S_2sh 1111 001 0 1 . ...... .... 0000 . . . 1 .... @2reg_shr_h
|
|
|
|
VSHR_S_2sh 1111 001 0 1 . ...... .... 0000 . . . 1 .... @2reg_shr_b
|
|
|
|
|
|
|
|
VSHR_U_2sh 1111 001 1 1 . ...... .... 0000 . . . 1 .... @2reg_shr_d
|
|
|
|
VSHR_U_2sh 1111 001 1 1 . ...... .... 0000 . . . 1 .... @2reg_shr_s
|
|
|
|
VSHR_U_2sh 1111 001 1 1 . ...... .... 0000 . . . 1 .... @2reg_shr_h
|
|
|
|
VSHR_U_2sh 1111 001 1 1 . ...... .... 0000 . . . 1 .... @2reg_shr_b
|
|
|
|
|
2020-05-22 17:55:14 +03:00
|
|
|
VSRA_S_2sh 1111 001 0 1 . ...... .... 0001 . . . 1 .... @2reg_shr_d
|
|
|
|
VSRA_S_2sh 1111 001 0 1 . ...... .... 0001 . . . 1 .... @2reg_shr_s
|
|
|
|
VSRA_S_2sh 1111 001 0 1 . ...... .... 0001 . . . 1 .... @2reg_shr_h
|
|
|
|
VSRA_S_2sh 1111 001 0 1 . ...... .... 0001 . . . 1 .... @2reg_shr_b
|
|
|
|
|
|
|
|
VSRA_U_2sh 1111 001 1 1 . ...... .... 0001 . . . 1 .... @2reg_shr_d
|
|
|
|
VSRA_U_2sh 1111 001 1 1 . ...... .... 0001 . . . 1 .... @2reg_shr_s
|
|
|
|
VSRA_U_2sh 1111 001 1 1 . ...... .... 0001 . . . 1 .... @2reg_shr_h
|
|
|
|
VSRA_U_2sh 1111 001 1 1 . ...... .... 0001 . . . 1 .... @2reg_shr_b
|
|
|
|
|
|
|
|
VRSHR_S_2sh 1111 001 0 1 . ...... .... 0010 . . . 1 .... @2reg_shr_d
|
|
|
|
VRSHR_S_2sh 1111 001 0 1 . ...... .... 0010 . . . 1 .... @2reg_shr_s
|
|
|
|
VRSHR_S_2sh 1111 001 0 1 . ...... .... 0010 . . . 1 .... @2reg_shr_h
|
|
|
|
VRSHR_S_2sh 1111 001 0 1 . ...... .... 0010 . . . 1 .... @2reg_shr_b
|
|
|
|
|
|
|
|
VRSHR_U_2sh 1111 001 1 1 . ...... .... 0010 . . . 1 .... @2reg_shr_d
|
|
|
|
VRSHR_U_2sh 1111 001 1 1 . ...... .... 0010 . . . 1 .... @2reg_shr_s
|
|
|
|
VRSHR_U_2sh 1111 001 1 1 . ...... .... 0010 . . . 1 .... @2reg_shr_h
|
|
|
|
VRSHR_U_2sh 1111 001 1 1 . ...... .... 0010 . . . 1 .... @2reg_shr_b
|
|
|
|
|
|
|
|
VRSRA_S_2sh 1111 001 0 1 . ...... .... 0011 . . . 1 .... @2reg_shr_d
|
|
|
|
VRSRA_S_2sh 1111 001 0 1 . ...... .... 0011 . . . 1 .... @2reg_shr_s
|
|
|
|
VRSRA_S_2sh 1111 001 0 1 . ...... .... 0011 . . . 1 .... @2reg_shr_h
|
|
|
|
VRSRA_S_2sh 1111 001 0 1 . ...... .... 0011 . . . 1 .... @2reg_shr_b
|
|
|
|
|
|
|
|
VRSRA_U_2sh 1111 001 1 1 . ...... .... 0011 . . . 1 .... @2reg_shr_d
|
|
|
|
VRSRA_U_2sh 1111 001 1 1 . ...... .... 0011 . . . 1 .... @2reg_shr_s
|
|
|
|
VRSRA_U_2sh 1111 001 1 1 . ...... .... 0011 . . . 1 .... @2reg_shr_h
|
|
|
|
VRSRA_U_2sh 1111 001 1 1 . ...... .... 0011 . . . 1 .... @2reg_shr_b
|
|
|
|
|
|
|
|
VSRI_2sh 1111 001 1 1 . ...... .... 0100 . . . 1 .... @2reg_shr_d
|
|
|
|
VSRI_2sh 1111 001 1 1 . ...... .... 0100 . . . 1 .... @2reg_shr_s
|
|
|
|
VSRI_2sh 1111 001 1 1 . ...... .... 0100 . . . 1 .... @2reg_shr_h
|
|
|
|
VSRI_2sh 1111 001 1 1 . ...... .... 0100 . . . 1 .... @2reg_shr_b
|
|
|
|
|
2020-05-22 17:55:12 +03:00
|
|
|
VSHL_2sh 1111 001 0 1 . ...... .... 0101 . . . 1 .... @2reg_shl_d
|
|
|
|
VSHL_2sh 1111 001 0 1 . ...... .... 0101 . . . 1 .... @2reg_shl_s
|
|
|
|
VSHL_2sh 1111 001 0 1 . ...... .... 0101 . . . 1 .... @2reg_shl_h
|
|
|
|
VSHL_2sh 1111 001 0 1 . ...... .... 0101 . . . 1 .... @2reg_shl_b
|
|
|
|
|
|
|
|
VSLI_2sh 1111 001 1 1 . ...... .... 0101 . . . 1 .... @2reg_shl_d
|
|
|
|
VSLI_2sh 1111 001 1 1 . ...... .... 0101 . . . 1 .... @2reg_shl_s
|
|
|
|
VSLI_2sh 1111 001 1 1 . ...... .... 0101 . . . 1 .... @2reg_shl_h
|
|
|
|
VSLI_2sh 1111 001 1 1 . ...... .... 0101 . . . 1 .... @2reg_shl_b
|
2020-05-22 17:55:15 +03:00
|
|
|
|
|
|
|
VQSHLU_64_2sh 1111 001 1 1 . ...... .... 0110 . . . 1 .... @2reg_shl_d
|
|
|
|
VQSHLU_2sh 1111 001 1 1 . ...... .... 0110 . . . 1 .... @2reg_shl_s
|
|
|
|
VQSHLU_2sh 1111 001 1 1 . ...... .... 0110 . . . 1 .... @2reg_shl_h
|
|
|
|
VQSHLU_2sh 1111 001 1 1 . ...... .... 0110 . . . 1 .... @2reg_shl_b
|
|
|
|
|
|
|
|
VQSHL_S_64_2sh 1111 001 0 1 . ...... .... 0111 . . . 1 .... @2reg_shl_d
|
|
|
|
VQSHL_S_2sh 1111 001 0 1 . ...... .... 0111 . . . 1 .... @2reg_shl_s
|
|
|
|
VQSHL_S_2sh 1111 001 0 1 . ...... .... 0111 . . . 1 .... @2reg_shl_h
|
|
|
|
VQSHL_S_2sh 1111 001 0 1 . ...... .... 0111 . . . 1 .... @2reg_shl_b
|
|
|
|
|
|
|
|
VQSHL_U_64_2sh 1111 001 1 1 . ...... .... 0111 . . . 1 .... @2reg_shl_d
|
|
|
|
VQSHL_U_2sh 1111 001 1 1 . ...... .... 0111 . . . 1 .... @2reg_shl_s
|
|
|
|
VQSHL_U_2sh 1111 001 1 1 . ...... .... 0111 . . . 1 .... @2reg_shl_h
|
|
|
|
VQSHL_U_2sh 1111 001 1 1 . ...... .... 0111 . . . 1 .... @2reg_shl_b
|
2020-05-22 17:55:16 +03:00
|
|
|
|
|
|
|
VSHRN_64_2sh 1111 001 0 1 . ...... .... 1000 . 0 . 1 .... @2reg_shrn_d
|
|
|
|
VSHRN_32_2sh 1111 001 0 1 . ...... .... 1000 . 0 . 1 .... @2reg_shrn_s
|
|
|
|
VSHRN_16_2sh 1111 001 0 1 . ...... .... 1000 . 0 . 1 .... @2reg_shrn_h
|
|
|
|
|
|
|
|
VRSHRN_64_2sh 1111 001 0 1 . ...... .... 1000 . 1 . 1 .... @2reg_shrn_d
|
|
|
|
VRSHRN_32_2sh 1111 001 0 1 . ...... .... 1000 . 1 . 1 .... @2reg_shrn_s
|
|
|
|
VRSHRN_16_2sh 1111 001 0 1 . ...... .... 1000 . 1 . 1 .... @2reg_shrn_h
|
|
|
|
|
|
|
|
VQSHRUN_64_2sh 1111 001 1 1 . ...... .... 1000 . 0 . 1 .... @2reg_shrn_d
|
|
|
|
VQSHRUN_32_2sh 1111 001 1 1 . ...... .... 1000 . 0 . 1 .... @2reg_shrn_s
|
|
|
|
VQSHRUN_16_2sh 1111 001 1 1 . ...... .... 1000 . 0 . 1 .... @2reg_shrn_h
|
|
|
|
|
|
|
|
VQRSHRUN_64_2sh 1111 001 1 1 . ...... .... 1000 . 1 . 1 .... @2reg_shrn_d
|
|
|
|
VQRSHRUN_32_2sh 1111 001 1 1 . ...... .... 1000 . 1 . 1 .... @2reg_shrn_s
|
|
|
|
VQRSHRUN_16_2sh 1111 001 1 1 . ...... .... 1000 . 1 . 1 .... @2reg_shrn_h
|
2020-05-22 17:55:17 +03:00
|
|
|
|
|
|
|
# VQSHRN with signed input
|
|
|
|
VQSHRN_S64_2sh 1111 001 0 1 . ...... .... 1001 . 0 . 1 .... @2reg_shrn_d
|
|
|
|
VQSHRN_S32_2sh 1111 001 0 1 . ...... .... 1001 . 0 . 1 .... @2reg_shrn_s
|
|
|
|
VQSHRN_S16_2sh 1111 001 0 1 . ...... .... 1001 . 0 . 1 .... @2reg_shrn_h
|
|
|
|
|
|
|
|
# VQRSHRN with signed input
|
|
|
|
VQRSHRN_S64_2sh 1111 001 0 1 . ...... .... 1001 . 1 . 1 .... @2reg_shrn_d
|
|
|
|
VQRSHRN_S32_2sh 1111 001 0 1 . ...... .... 1001 . 1 . 1 .... @2reg_shrn_s
|
|
|
|
VQRSHRN_S16_2sh 1111 001 0 1 . ...... .... 1001 . 1 . 1 .... @2reg_shrn_h
|
|
|
|
|
|
|
|
# VQSHRN with unsigned input
|
|
|
|
VQSHRN_U64_2sh 1111 001 1 1 . ...... .... 1001 . 0 . 1 .... @2reg_shrn_d
|
|
|
|
VQSHRN_U32_2sh 1111 001 1 1 . ...... .... 1001 . 0 . 1 .... @2reg_shrn_s
|
|
|
|
VQSHRN_U16_2sh 1111 001 1 1 . ...... .... 1001 . 0 . 1 .... @2reg_shrn_h
|
|
|
|
|
|
|
|
# VQRSHRN with unsigned input
|
|
|
|
VQRSHRN_U64_2sh 1111 001 1 1 . ...... .... 1001 . 1 . 1 .... @2reg_shrn_d
|
|
|
|
VQRSHRN_U32_2sh 1111 001 1 1 . ...... .... 1001 . 1 . 1 .... @2reg_shrn_s
|
|
|
|
VQRSHRN_U16_2sh 1111 001 1 1 . ...... .... 1001 . 1 . 1 .... @2reg_shrn_h
|
2020-05-22 17:55:18 +03:00
|
|
|
|
|
|
|
VSHLL_S_2sh 1111 001 0 1 . ...... .... 1010 . 0 . 1 .... @2reg_shll_s
|
|
|
|
VSHLL_S_2sh 1111 001 0 1 . ...... .... 1010 . 0 . 1 .... @2reg_shll_h
|
|
|
|
VSHLL_S_2sh 1111 001 0 1 . ...... .... 1010 . 0 . 1 .... @2reg_shll_b
|
|
|
|
|
|
|
|
VSHLL_U_2sh 1111 001 1 1 . ...... .... 1010 . 0 . 1 .... @2reg_shll_s
|
|
|
|
VSHLL_U_2sh 1111 001 1 1 . ...... .... 1010 . 0 . 1 .... @2reg_shll_h
|
|
|
|
VSHLL_U_2sh 1111 001 1 1 . ...... .... 1010 . 0 . 1 .... @2reg_shll_b
|
2020-05-22 17:55:19 +03:00
|
|
|
|
|
|
|
# VCVT fixed<->float conversions
|
2020-08-28 21:33:47 +03:00
|
|
|
VCVT_SH_2sh 1111 001 0 1 . ...... .... 1100 0 . . 1 .... @2reg_vcvt_f16
|
|
|
|
VCVT_UH_2sh 1111 001 1 1 . ...... .... 1100 0 . . 1 .... @2reg_vcvt_f16
|
|
|
|
VCVT_HS_2sh 1111 001 0 1 . ...... .... 1101 0 . . 1 .... @2reg_vcvt_f16
|
|
|
|
VCVT_HU_2sh 1111 001 1 1 . ...... .... 1101 0 . . 1 .... @2reg_vcvt_f16
|
|
|
|
|
2020-05-22 17:55:19 +03:00
|
|
|
VCVT_SF_2sh 1111 001 0 1 . ...... .... 1110 0 . . 1 .... @2reg_vcvt
|
|
|
|
VCVT_UF_2sh 1111 001 1 1 . ...... .... 1110 0 . . 1 .... @2reg_vcvt
|
|
|
|
VCVT_FS_2sh 1111 001 0 1 . ...... .... 1111 0 . . 1 .... @2reg_vcvt
|
|
|
|
VCVT_FU_2sh 1111 001 1 1 . ...... .... 1111 0 . . 1 .... @2reg_vcvt
|
2020-05-22 17:55:20 +03:00
|
|
|
|
|
|
|
######################################################################
|
|
|
|
# 1-reg-and-modified-immediate grouping:
|
|
|
|
# 1111 001 i 1 D 000 imm:3 Vd:4 cmode:4 0 Q op 1 Vm:4
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
&1reg_imm vd q imm cmode op
|
|
|
|
|
|
|
|
%asimd_imm_value 24:1 16:3 0:4
|
|
|
|
|
|
|
|
@1reg_imm .... ... . . . ... ... .... .... . q:1 . . .... \
|
|
|
|
&1reg_imm imm=%asimd_imm_value vd=%vd_dp
|
|
|
|
|
|
|
|
# The cmode/op bits here decode VORR/VBIC/VMOV/VMNV, but
|
|
|
|
# not in a way we can conveniently represent in decodetree without
|
|
|
|
# a lot of repetition:
|
|
|
|
# VORR: op=0, (cmode & 1) && cmode < 12
|
|
|
|
# VBIC: op=1, (cmode & 1) && cmode < 12
|
|
|
|
# VMOV: everything else
|
|
|
|
# So we have a single decode line and check the cmode/op in the
|
|
|
|
# trans function.
|
|
|
|
Vimm_1r 1111 001 . 1 . 000 ... .... cmode:4 0 . op:1 1 .... @1reg_imm
|
2020-06-16 12:32:25 +03:00
|
|
|
|
|
|
|
######################################################################
|
|
|
|
# Within the "two registers, or three registers of different lengths"
|
|
|
|
# grouping ([23,4]=0b10), bits [21:20] are either part of the opcode
|
|
|
|
# decode: 0b11 for VEXT, two-reg-misc, VTBL, and duplicate-scalar;
|
|
|
|
# or they are a size field for the three-reg-different-lengths and
|
|
|
|
# two-reg-and-scalar insn groups (where size cannot be 0b11). This
|
|
|
|
# is slightly awkward for decodetree: we handle it with this
|
|
|
|
# non-exclusive group which contains within it two exclusive groups:
|
|
|
|
# one for the size=0b11 patterns, and one for the size-not-0b11
|
|
|
|
# patterns. This allows us to check that none of the insns within
|
|
|
|
# each subgroup accidentally overlap each other. Note that all the
|
|
|
|
# trans functions for the size-not-0b11 patterns must check and
|
|
|
|
# return false for size==3.
|
|
|
|
######################################################################
|
|
|
|
{
|
2020-06-16 12:32:28 +03:00
|
|
|
[
|
|
|
|
##################################################################
|
|
|
|
# Miscellaneous size=0b11 insns
|
|
|
|
##################################################################
|
|
|
|
VEXT 1111 001 0 1 . 11 .... .... imm:4 . q:1 . 0 .... \
|
|
|
|
vm=%vm_dp vn=%vn_dp vd=%vd_dp
|
2020-06-16 12:32:28 +03:00
|
|
|
|
|
|
|
VTBL 1111 001 1 1 . 11 .... .... 10 len:2 . op:1 . 0 .... \
|
|
|
|
vm=%vm_dp vn=%vn_dp vd=%vd_dp
|
2020-06-16 12:32:28 +03:00
|
|
|
|
|
|
|
VDUP_scalar 1111 001 1 1 . 11 index:3 1 .... 11 000 q:1 . 0 .... \
|
|
|
|
vm=%vm_dp vd=%vd_dp size=0
|
|
|
|
VDUP_scalar 1111 001 1 1 . 11 index:2 10 .... 11 000 q:1 . 0 .... \
|
|
|
|
vm=%vm_dp vd=%vd_dp size=1
|
|
|
|
VDUP_scalar 1111 001 1 1 . 11 index:1 100 .... 11 000 q:1 . 0 .... \
|
|
|
|
vm=%vm_dp vd=%vd_dp size=2
|
2020-06-16 20:08:24 +03:00
|
|
|
|
|
|
|
##################################################################
|
|
|
|
# 2-reg-misc grouping:
|
|
|
|
# 1111 001 11 D 11 size:2 opc1:2 Vd:4 0 opc2:4 q:1 M 0 Vm:4
|
|
|
|
##################################################################
|
|
|
|
|
|
|
|
&2misc vd vm q size
|
|
|
|
|
|
|
|
@2misc .... ... .. . .. size:2 .. .... . .... q:1 . . .... \
|
|
|
|
&2misc vm=%vm_dp vd=%vd_dp
|
2020-06-16 20:08:27 +03:00
|
|
|
@2misc_q0 .... ... .. . .. size:2 .. .... . .... . . . .... \
|
|
|
|
&2misc vm=%vm_dp vd=%vd_dp q=0
|
2020-06-16 20:08:31 +03:00
|
|
|
@2misc_q1 .... ... .. . .. size:2 .. .... . .... . . . .... \
|
|
|
|
&2misc vm=%vm_dp vd=%vd_dp q=1
|
2020-06-16 20:08:24 +03:00
|
|
|
|
|
|
|
VREV64 1111 001 11 . 11 .. 00 .... 0 0000 . . 0 .... @2misc
|
2020-06-16 20:08:35 +03:00
|
|
|
VREV32 1111 001 11 . 11 .. 00 .... 0 0001 . . 0 .... @2misc
|
|
|
|
VREV16 1111 001 11 . 11 .. 00 .... 0 0010 . . 0 .... @2misc
|
2020-06-16 20:08:25 +03:00
|
|
|
|
|
|
|
VPADDL_S 1111 001 11 . 11 .. 00 .... 0 0100 . . 0 .... @2misc
|
|
|
|
VPADDL_U 1111 001 11 . 11 .. 00 .... 0 0101 . . 0 .... @2misc
|
|
|
|
|
2020-06-16 20:08:31 +03:00
|
|
|
AESE 1111 001 11 . 11 .. 00 .... 0 0110 0 . 0 .... @2misc_q1
|
|
|
|
AESD 1111 001 11 . 11 .. 00 .... 0 0110 1 . 0 .... @2misc_q1
|
|
|
|
AESMC 1111 001 11 . 11 .. 00 .... 0 0111 0 . 0 .... @2misc_q1
|
|
|
|
AESIMC 1111 001 11 . 11 .. 00 .... 0 0111 1 . 0 .... @2misc_q1
|
|
|
|
|
2020-06-16 20:08:36 +03:00
|
|
|
VCLS 1111 001 11 . 11 .. 00 .... 0 1000 . . 0 .... @2misc
|
|
|
|
VCLZ 1111 001 11 . 11 .. 00 .... 0 1001 . . 0 .... @2misc
|
|
|
|
VCNT 1111 001 11 . 11 .. 00 .... 0 1010 . . 0 .... @2misc
|
|
|
|
|
2020-06-16 20:08:30 +03:00
|
|
|
VMVN 1111 001 11 . 11 .. 00 .... 0 1011 . . 0 .... @2misc
|
|
|
|
|
2020-06-16 20:08:25 +03:00
|
|
|
VPADAL_S 1111 001 11 . 11 .. 00 .... 0 1100 . . 0 .... @2misc
|
|
|
|
VPADAL_U 1111 001 11 . 11 .. 00 .... 0 1101 . . 0 .... @2misc
|
2020-06-16 20:08:26 +03:00
|
|
|
|
2020-06-16 20:08:37 +03:00
|
|
|
VQABS 1111 001 11 . 11 .. 00 .... 0 1110 . . 0 .... @2misc
|
|
|
|
VQNEG 1111 001 11 . 11 .. 00 .... 0 1111 . . 0 .... @2misc
|
|
|
|
|
2020-06-16 20:08:30 +03:00
|
|
|
VCGT0 1111 001 11 . 11 .. 01 .... 0 0000 . . 0 .... @2misc
|
|
|
|
VCGE0 1111 001 11 . 11 .. 01 .... 0 0001 . . 0 .... @2misc
|
|
|
|
VCEQ0 1111 001 11 . 11 .. 01 .... 0 0010 . . 0 .... @2misc
|
|
|
|
VCLE0 1111 001 11 . 11 .. 01 .... 0 0011 . . 0 .... @2misc
|
|
|
|
VCLT0 1111 001 11 . 11 .. 01 .... 0 0100 . . 0 .... @2misc
|
|
|
|
|
2020-06-16 20:08:31 +03:00
|
|
|
SHA1H 1111 001 11 . 11 .. 01 .... 0 0101 1 . 0 .... @2misc_q1
|
|
|
|
|
2020-06-16 20:08:30 +03:00
|
|
|
VABS 1111 001 11 . 11 .. 01 .... 0 0110 . . 0 .... @2misc
|
|
|
|
VNEG 1111 001 11 . 11 .. 01 .... 0 0111 . . 0 .... @2misc
|
|
|
|
|
2020-06-16 20:08:39 +03:00
|
|
|
VCGT0_F 1111 001 11 . 11 .. 01 .... 0 1000 . . 0 .... @2misc
|
|
|
|
VCGE0_F 1111 001 11 . 11 .. 01 .... 0 1001 . . 0 .... @2misc
|
|
|
|
VCEQ0_F 1111 001 11 . 11 .. 01 .... 0 1010 . . 0 .... @2misc
|
|
|
|
VCLE0_F 1111 001 11 . 11 .. 01 .... 0 1011 . . 0 .... @2misc
|
|
|
|
VCLT0_F 1111 001 11 . 11 .. 01 .... 0 1100 . . 0 .... @2misc
|
|
|
|
|
2020-06-16 20:08:36 +03:00
|
|
|
VABS_F 1111 001 11 . 11 .. 01 .... 0 1110 . . 0 .... @2misc
|
|
|
|
VNEG_F 1111 001 11 . 11 .. 01 .... 0 1111 . . 0 .... @2misc
|
|
|
|
|
2020-06-16 20:08:42 +03:00
|
|
|
VSWP 1111 001 11 . 11 .. 10 .... 0 0000 . . 0 .... @2misc
|
2020-06-16 20:08:43 +03:00
|
|
|
VTRN 1111 001 11 . 11 .. 10 .... 0 0001 . . 0 .... @2misc
|
2020-06-16 20:08:26 +03:00
|
|
|
VUZP 1111 001 11 . 11 .. 10 .... 0 0010 . . 0 .... @2misc
|
|
|
|
VZIP 1111 001 11 . 11 .. 10 .... 0 0011 . . 0 .... @2misc
|
2020-06-16 20:08:27 +03:00
|
|
|
|
|
|
|
VMOVN 1111 001 11 . 11 .. 10 .... 0 0100 0 . 0 .... @2misc_q0
|
|
|
|
# VQMOVUN: unsigned result (source is always signed)
|
|
|
|
VQMOVUN 1111 001 11 . 11 .. 10 .... 0 0100 1 . 0 .... @2misc_q0
|
|
|
|
# VQMOVN: signed result, source may be signed (_S) or unsigned (_U)
|
|
|
|
VQMOVN_S 1111 001 11 . 11 .. 10 .... 0 0101 0 . 0 .... @2misc_q0
|
|
|
|
VQMOVN_U 1111 001 11 . 11 .. 10 .... 0 0101 1 . 0 .... @2misc_q0
|
2020-06-16 20:08:28 +03:00
|
|
|
|
|
|
|
VSHLL 1111 001 11 . 11 .. 10 .... 0 0110 0 . 0 .... @2misc_q0
|
2020-06-16 20:08:29 +03:00
|
|
|
|
2020-06-16 20:08:31 +03:00
|
|
|
SHA1SU1 1111 001 11 . 11 .. 10 .... 0 0111 0 . 0 .... @2misc_q1
|
|
|
|
SHA256SU0 1111 001 11 . 11 .. 10 .... 0 0111 1 . 0 .... @2misc_q1
|
|
|
|
|
2020-06-16 20:08:40 +03:00
|
|
|
VRINTN 1111 001 11 . 11 .. 10 .... 0 1000 . . 0 .... @2misc
|
2020-06-16 20:08:38 +03:00
|
|
|
VRINTX 1111 001 11 . 11 .. 10 .... 0 1001 . . 0 .... @2misc
|
2020-06-16 20:08:40 +03:00
|
|
|
VRINTA 1111 001 11 . 11 .. 10 .... 0 1010 . . 0 .... @2misc
|
|
|
|
VRINTZ 1111 001 11 . 11 .. 10 .... 0 1011 . . 0 .... @2misc
|
2020-06-16 20:08:38 +03:00
|
|
|
|
2020-06-16 20:08:29 +03:00
|
|
|
VCVT_F16_F32 1111 001 11 . 11 .. 10 .... 0 1100 0 . 0 .... @2misc_q0
|
2020-06-16 20:08:40 +03:00
|
|
|
|
|
|
|
VRINTM 1111 001 11 . 11 .. 10 .... 0 1101 . . 0 .... @2misc
|
|
|
|
|
2020-06-16 20:08:29 +03:00
|
|
|
VCVT_F32_F16 1111 001 11 . 11 .. 10 .... 0 1110 0 . 0 .... @2misc_q0
|
2020-06-16 20:08:36 +03:00
|
|
|
|
2020-06-16 20:08:40 +03:00
|
|
|
VRINTP 1111 001 11 . 11 .. 10 .... 0 1111 . . 0 .... @2misc
|
|
|
|
|
2020-06-16 20:08:41 +03:00
|
|
|
VCVTAS 1111 001 11 . 11 .. 11 .... 0 0000 . . 0 .... @2misc
|
|
|
|
VCVTAU 1111 001 11 . 11 .. 11 .... 0 0001 . . 0 .... @2misc
|
|
|
|
VCVTNS 1111 001 11 . 11 .. 11 .... 0 0010 . . 0 .... @2misc
|
|
|
|
VCVTNU 1111 001 11 . 11 .. 11 .... 0 0011 . . 0 .... @2misc
|
|
|
|
VCVTPS 1111 001 11 . 11 .. 11 .... 0 0100 . . 0 .... @2misc
|
|
|
|
VCVTPU 1111 001 11 . 11 .. 11 .... 0 0101 . . 0 .... @2misc
|
|
|
|
VCVTMS 1111 001 11 . 11 .. 11 .... 0 0110 . . 0 .... @2misc
|
|
|
|
VCVTMU 1111 001 11 . 11 .. 11 .... 0 0111 . . 0 .... @2misc
|
|
|
|
|
2020-06-16 20:08:36 +03:00
|
|
|
VRECPE 1111 001 11 . 11 .. 11 .... 0 1000 . . 0 .... @2misc
|
|
|
|
VRSQRTE 1111 001 11 . 11 .. 11 .... 0 1001 . . 0 .... @2misc
|
2020-06-16 20:08:38 +03:00
|
|
|
VRECPE_F 1111 001 11 . 11 .. 11 .... 0 1010 . . 0 .... @2misc
|
|
|
|
VRSQRTE_F 1111 001 11 . 11 .. 11 .... 0 1011 . . 0 .... @2misc
|
|
|
|
VCVT_FS 1111 001 11 . 11 .. 11 .... 0 1100 . . 0 .... @2misc
|
|
|
|
VCVT_FU 1111 001 11 . 11 .. 11 .... 0 1101 . . 0 .... @2misc
|
|
|
|
VCVT_SF 1111 001 11 . 11 .. 11 .... 0 1110 . . 0 .... @2misc
|
|
|
|
VCVT_UF 1111 001 11 . 11 .. 11 .... 0 1111 . . 0 .... @2misc
|
2020-06-16 12:32:28 +03:00
|
|
|
]
|
2020-06-16 12:32:25 +03:00
|
|
|
|
|
|
|
# Subgroup for size != 0b11
|
|
|
|
[
|
|
|
|
##################################################################
|
|
|
|
# 3-reg-different-length grouping:
|
|
|
|
# 1111 001 U 1 D sz!=11 Vn:4 Vd:4 opc:4 N 0 M 0 Vm:4
|
|
|
|
##################################################################
|
|
|
|
|
|
|
|
&3diff vm vn vd size
|
|
|
|
|
|
|
|
@3diff .... ... . . . size:2 .... .... .... . . . . .... \
|
|
|
|
&3diff vm=%vm_dp vn=%vn_dp vd=%vd_dp
|
|
|
|
|
|
|
|
VADDL_S_3d 1111 001 0 1 . .. .... .... 0000 . 0 . 0 .... @3diff
|
|
|
|
VADDL_U_3d 1111 001 1 1 . .. .... .... 0000 . 0 . 0 .... @3diff
|
|
|
|
|
|
|
|
VADDW_S_3d 1111 001 0 1 . .. .... .... 0001 . 0 . 0 .... @3diff
|
|
|
|
VADDW_U_3d 1111 001 1 1 . .. .... .... 0001 . 0 . 0 .... @3diff
|
|
|
|
|
|
|
|
VSUBL_S_3d 1111 001 0 1 . .. .... .... 0010 . 0 . 0 .... @3diff
|
|
|
|
VSUBL_U_3d 1111 001 1 1 . .. .... .... 0010 . 0 . 0 .... @3diff
|
|
|
|
|
|
|
|
VSUBW_S_3d 1111 001 0 1 . .. .... .... 0011 . 0 . 0 .... @3diff
|
|
|
|
VSUBW_U_3d 1111 001 1 1 . .. .... .... 0011 . 0 . 0 .... @3diff
|
2020-06-16 12:32:25 +03:00
|
|
|
|
|
|
|
VADDHN_3d 1111 001 0 1 . .. .... .... 0100 . 0 . 0 .... @3diff
|
|
|
|
VRADDHN_3d 1111 001 1 1 . .. .... .... 0100 . 0 . 0 .... @3diff
|
|
|
|
|
2020-06-16 12:32:25 +03:00
|
|
|
VABAL_S_3d 1111 001 0 1 . .. .... .... 0101 . 0 . 0 .... @3diff
|
|
|
|
VABAL_U_3d 1111 001 1 1 . .. .... .... 0101 . 0 . 0 .... @3diff
|
|
|
|
|
2020-06-16 12:32:25 +03:00
|
|
|
VSUBHN_3d 1111 001 0 1 . .. .... .... 0110 . 0 . 0 .... @3diff
|
|
|
|
VRSUBHN_3d 1111 001 1 1 . .. .... .... 0110 . 0 . 0 .... @3diff
|
2020-06-16 12:32:25 +03:00
|
|
|
|
|
|
|
VABDL_S_3d 1111 001 0 1 . .. .... .... 0111 . 0 . 0 .... @3diff
|
|
|
|
VABDL_U_3d 1111 001 1 1 . .. .... .... 0111 . 0 . 0 .... @3diff
|
2020-06-16 12:32:26 +03:00
|
|
|
|
|
|
|
VMLAL_S_3d 1111 001 0 1 . .. .... .... 1000 . 0 . 0 .... @3diff
|
|
|
|
VMLAL_U_3d 1111 001 1 1 . .. .... .... 1000 . 0 . 0 .... @3diff
|
|
|
|
|
2020-06-16 12:32:26 +03:00
|
|
|
VQDMLAL_3d 1111 001 0 1 . .. .... .... 1001 . 0 . 0 .... @3diff
|
|
|
|
|
2020-06-16 12:32:26 +03:00
|
|
|
VMLSL_S_3d 1111 001 0 1 . .. .... .... 1010 . 0 . 0 .... @3diff
|
|
|
|
VMLSL_U_3d 1111 001 1 1 . .. .... .... 1010 . 0 . 0 .... @3diff
|
|
|
|
|
2020-06-16 12:32:26 +03:00
|
|
|
VQDMLSL_3d 1111 001 0 1 . .. .... .... 1011 . 0 . 0 .... @3diff
|
|
|
|
|
2020-06-16 12:32:26 +03:00
|
|
|
VMULL_S_3d 1111 001 0 1 . .. .... .... 1100 . 0 . 0 .... @3diff
|
|
|
|
VMULL_U_3d 1111 001 1 1 . .. .... .... 1100 . 0 . 0 .... @3diff
|
2020-06-16 12:32:26 +03:00
|
|
|
|
|
|
|
VQDMULL_3d 1111 001 0 1 . .. .... .... 1101 . 0 . 0 .... @3diff
|
2020-06-16 12:32:26 +03:00
|
|
|
|
|
|
|
VMULL_P_3d 1111 001 0 1 . .. .... .... 1110 . 0 . 0 .... @3diff
|
2020-06-16 12:32:27 +03:00
|
|
|
|
|
|
|
##################################################################
|
|
|
|
# 2-regs-plus-scalar grouping:
|
|
|
|
# 1111 001 Q 1 D sz!=11 Vn:4 Vd:4 opc:4 N 1 M 0 Vm:4
|
|
|
|
##################################################################
|
|
|
|
&2scalar vm vn vd size q
|
|
|
|
|
|
|
|
@2scalar .... ... q:1 . . size:2 .... .... .... . . . . .... \
|
|
|
|
&2scalar vm=%vm_dp vn=%vn_dp vd=%vd_dp
|
2020-06-16 12:32:28 +03:00
|
|
|
# For the 'long' ops the Q bit is part of insn decode
|
|
|
|
@2scalar_q0 .... ... . . . size:2 .... .... .... . . . . .... \
|
|
|
|
&2scalar vm=%vm_dp vn=%vn_dp vd=%vd_dp q=0
|
2020-06-16 12:32:27 +03:00
|
|
|
|
|
|
|
VMLA_2sc 1111 001 . 1 . .. .... .... 0000 . 1 . 0 .... @2scalar
|
2020-06-16 12:32:27 +03:00
|
|
|
VMLA_F_2sc 1111 001 . 1 . .. .... .... 0001 . 1 . 0 .... @2scalar
|
2020-06-16 12:32:27 +03:00
|
|
|
|
2020-06-16 12:32:28 +03:00
|
|
|
VMLAL_S_2sc 1111 001 0 1 . .. .... .... 0010 . 1 . 0 .... @2scalar_q0
|
|
|
|
VMLAL_U_2sc 1111 001 1 1 . .. .... .... 0010 . 1 . 0 .... @2scalar_q0
|
|
|
|
|
|
|
|
VQDMLAL_2sc 1111 001 0 1 . .. .... .... 0011 . 1 . 0 .... @2scalar_q0
|
|
|
|
|
2020-06-16 12:32:27 +03:00
|
|
|
VMLS_2sc 1111 001 . 1 . .. .... .... 0100 . 1 . 0 .... @2scalar
|
2020-06-16 12:32:27 +03:00
|
|
|
VMLS_F_2sc 1111 001 . 1 . .. .... .... 0101 . 1 . 0 .... @2scalar
|
2020-06-16 12:32:27 +03:00
|
|
|
|
2020-06-16 12:32:28 +03:00
|
|
|
VMLSL_S_2sc 1111 001 0 1 . .. .... .... 0110 . 1 . 0 .... @2scalar_q0
|
|
|
|
VMLSL_U_2sc 1111 001 1 1 . .. .... .... 0110 . 1 . 0 .... @2scalar_q0
|
|
|
|
|
|
|
|
VQDMLSL_2sc 1111 001 0 1 . .. .... .... 0111 . 1 . 0 .... @2scalar_q0
|
|
|
|
|
2020-06-16 12:32:27 +03:00
|
|
|
VMUL_2sc 1111 001 . 1 . .. .... .... 1000 . 1 . 0 .... @2scalar
|
2020-06-16 12:32:27 +03:00
|
|
|
VMUL_F_2sc 1111 001 . 1 . .. .... .... 1001 . 1 . 0 .... @2scalar
|
2020-06-16 12:32:27 +03:00
|
|
|
|
2020-06-16 12:32:28 +03:00
|
|
|
VMULL_S_2sc 1111 001 0 1 . .. .... .... 1010 . 1 . 0 .... @2scalar_q0
|
|
|
|
VMULL_U_2sc 1111 001 1 1 . .. .... .... 1010 . 1 . 0 .... @2scalar_q0
|
|
|
|
|
|
|
|
VQDMULL_2sc 1111 001 0 1 . .. .... .... 1011 . 1 . 0 .... @2scalar_q0
|
|
|
|
|
2020-06-16 12:32:27 +03:00
|
|
|
VQDMULH_2sc 1111 001 . 1 . .. .... .... 1100 . 1 . 0 .... @2scalar
|
|
|
|
VQRDMULH_2sc 1111 001 . 1 . .. .... .... 1101 . 1 . 0 .... @2scalar
|
2020-06-16 12:32:27 +03:00
|
|
|
|
|
|
|
VQRDMLAH_2sc 1111 001 . 1 . .. .... .... 1110 . 1 . 0 .... @2scalar
|
|
|
|
VQRDMLSH_2sc 1111 001 . 1 . .. .... .... 1111 . 1 . 0 .... @2scalar
|
2020-06-16 12:32:25 +03:00
|
|
|
]
|
|
|
|
}
|