# 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 . # # 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) FAIL 1000 010- -00- ---- 111- ---- ---- ---- # SVE 32-bit gather prefetch (vector+imm) FAIL 1000 0100 0-1- ---- 0--- ---- ---- ---- # SVE 32-bit gather prefetch (scalar+vector) FAIL 1010 010- ---- ---- 011- ---- ---- ---- # SVE contiguous FF load (scalar+scalar) FAIL 1010 010- ---1 ---- 101- ---- ---- ---- # SVE contiguous NF load (scalar+imm) FAIL 1010 010- -01- ---- 000- ---- ---- ---- # SVE load & replicate 32 bytes (scalar+scalar) FAIL 1010 010- -010 ---- 001- ---- ---- ---- # SVE load & replicate 32 bytes (scalar+imm) FAIL 1100 010- ---- ---- ---- ---- ---- ---- # SVE 64-bit gather load/prefetch