mirror of https://gitee.com/openkylin/qemu.git
61 lines
2.8 KiB
Plaintext
61 lines
2.8 KiB
Plaintext
|
# AArch64 SME allowed instruction decoding
|
||
|
#
|
||
|
# Copyright (c) 2022 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.1 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
|
||
|
#
|
||
|
|
||
|
# These patterns are taken from Appendix E1.1 of DDI0616 A.a,
|
||
|
# Arm Architecture Reference Manual Supplement,
|
||
|
# The Scalable Matrix Extension (SME), for Armv9-A
|
||
|
|
||
|
{
|
||
|
[
|
||
|
OK 0-00 1110 0000 0001 0010 11-- ---- ---- # SMOV W|Xd,Vn.B[0]
|
||
|
OK 0-00 1110 0000 0010 0010 11-- ---- ---- # SMOV W|Xd,Vn.H[0]
|
||
|
OK 0100 1110 0000 0100 0010 11-- ---- ---- # SMOV Xd,Vn.S[0]
|
||
|
OK 0000 1110 0000 0001 0011 11-- ---- ---- # UMOV Wd,Vn.B[0]
|
||
|
OK 0000 1110 0000 0010 0011 11-- ---- ---- # UMOV Wd,Vn.H[0]
|
||
|
OK 0000 1110 0000 0100 0011 11-- ---- ---- # UMOV Wd,Vn.S[0]
|
||
|
OK 0100 1110 0000 1000 0011 11-- ---- ---- # UMOV Xd,Vn.D[0]
|
||
|
]
|
||
|
FAIL 0--0 111- ---- ---- ---- ---- ---- ---- # Advanced SIMD vector operations
|
||
|
}
|
||
|
|
||
|
{
|
||
|
[
|
||
|
OK 0101 1110 --1- ---- 11-1 11-- ---- ---- # FMULX/FRECPS/FRSQRTS (scalar)
|
||
|
OK 0101 1110 -10- ---- 00-1 11-- ---- ---- # FMULX/FRECPS/FRSQRTS (scalar, FP16)
|
||
|
OK 01-1 1110 1-10 0001 11-1 10-- ---- ---- # FRECPE/FRSQRTE/FRECPX (scalar)
|
||
|
OK 01-1 1110 1111 1001 11-1 10-- ---- ---- # FRECPE/FRSQRTE/FRECPX (scalar, FP16)
|
||
|
]
|
||
|
FAIL 01-1 111- ---- ---- ---- ---- ---- ---- # Advanced SIMD single-element operations
|
||
|
}
|
||
|
|
||
|
FAIL 0-00 110- ---- ---- ---- ---- ---- ---- # Advanced SIMD structure load/store
|
||
|
FAIL 1100 1110 ---- ---- ---- ---- ---- ---- # Advanced SIMD cryptography extensions
|
||
|
FAIL 0001 1110 0111 1110 0000 00-- ---- ---- # FJCVTZS
|
||
|
|
||
|
# These are the "avoidance of doubt" final table of Illegal Advanced SIMD instructions
|
||
|
# We don't actually need to include these, as the default is OK.
|
||
|
# -001 111- ---- ---- ---- ---- ---- ---- # Scalar floating-point operations
|
||
|
# --10 110- ---- ---- ---- ---- ---- ---- # Load/store pair of FP registers
|
||
|
# --01 1100 ---- ---- ---- ---- ---- ---- # Load FP register (PC-relative literal)
|
||
|
# --11 1100 --0- ---- ---- ---- ---- ---- # Load/store FP register (unscaled imm)
|
||
|
# --11 1100 --1- ---- ---- ---- ---- --10 # Load/store FP register (register offset)
|
||
|
# --11 1101 ---- ---- ---- ---- ---- ---- # Load/store FP register (scaled imm)
|