Capstone disassembly/disassembler framework: Core (Arm, Arm64, BPF, EVM, M68K, M680X, MOS65xx, Mips, PPC, RISCV, Sparc, SystemZ, TMS320C64x, Web Assembly, X86, X86_64, XCore) + bindings. (bloaty 依赖)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

672 lines
17 KiB

(* Capstone Disassembler Engine
* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013> *)
let _CS_OP_ARCH = 5;;
let _CS_OP_CIMM = _CS_OP_ARCH (* C-Immediate *)
let _CS_OP_PIMM = _CS_OP_ARCH + 1 (* P-Immediate *)
(* ARM operand shift type *)
let _ARM_SFT_INVALID = 0;;
let _ARM_SFT_ASR = 1;;
let _ARM_SFT_LSL = 2;;
let _ARM_SFT_LSR = 3;;
let _ARM_SFT_ROR = 4;;
let _ARM_SFT_RRX = 5;;
let _ARM_SFT_ASR_REG = 6;;
let _ARM_SFT_LSL_REG = 7;;
let _ARM_SFT_LSR_REG = 8;;
let _ARM_SFT_ROR_REG = 9;;
let _ARM_SFT_RRX_REG = 10;;
(* ARM code condition type *)
let _ARM_CC_INVALID = 0;;
let _ARM_CC_EQ = 1;;
let _ARM_CC_NE = 2;;
let _ARM_CC_HS = 3;;
let _ARM_CC_LO = 4;;
let _ARM_CC_MI = 5;;
let _ARM_CC_PL = 6;;
let _ARM_CC_VS = 7;;
let _ARM_CC_VC = 8;;
let _ARM_CC_HI = 9;;
let _ARM_CC_LS = 10;;
let _ARM_CC_GE = 11;;
let _ARM_CC_LT = 12;;
let _ARM_CC_GT = 13;;
let _ARM_CC_LE = 14;;
let _ARM_CC_AL = 15;;
(* architecture specific info of instruction *)
type arm_op_shift = {
shift_type: int; (* TODO: covert this to pattern like arm_op_value? *)
shift_value: int;
}
type arm_op_mem = {
base: int;
index: int;
scale: int;
displ: int
}
type arm_op_value =
| ARM_OP_INVALID of int
| ARM_OP_REG of int
| ARM_OP_CIMM of int
| ARM_OP_PIMM of int
| ARM_OP_IMM of int
| ARM_OP_FP of float
| ARM_OP_MEM of arm_op_mem
type arm_op = {
shift: arm_op_shift;
value: arm_op_value;
}
type cs_arm = {
cc: int;
update_flags: bool;
writeback: bool;
op_count: int;
operands: arm_op array;
}
(* ARM registers *)
let _ARM_REG_INVALID = 0;;
let _ARM_REG_APSR = 1;;
let _ARM_REG_APSR_NZCV = 2;;
let _ARM_REG_CPSR = 3;;
let _ARM_REG_FPEXC = 4;;
let _ARM_REG_FPINST = 5;;
let _ARM_REG_FPSCR = 6;;
let _ARM_REG_FPSCR_NZCV = 7;;
let _ARM_REG_FPSID = 8;;
let _ARM_REG_ITSTATE = 9;;
let _ARM_REG_LR = 10;;
let _ARM_REG_PC = 11;;
let _ARM_REG_SP = 12;;
let _ARM_REG_SPSR = 13;;
let _ARM_REG_D0 = 14;;
let _ARM_REG_D1 = 15;;
let _ARM_REG_D2 = 16;;
let _ARM_REG_D3 = 17;;
let _ARM_REG_D4 = 18;;
let _ARM_REG_D5 = 19;;
let _ARM_REG_D6 = 20;;
let _ARM_REG_D7 = 21;;
let _ARM_REG_D8 = 22;;
let _ARM_REG_D9 = 23;;
let _ARM_REG_D10 = 24;;
let _ARM_REG_D11 = 25;;
let _ARM_REG_D12 = 26;;
let _ARM_REG_D13 = 27;;
let _ARM_REG_D14 = 28;;
let _ARM_REG_D15 = 29;;
let _ARM_REG_D16 = 30;;
let _ARM_REG_D17 = 31;;
let _ARM_REG_D18 = 32;;
let _ARM_REG_D19 = 33;;
let _ARM_REG_D20 = 34;;
let _ARM_REG_D21 = 35;;
let _ARM_REG_D22 = 36;;
let _ARM_REG_D23 = 37;;
let _ARM_REG_D24 = 38;;
let _ARM_REG_D25 = 39;;
let _ARM_REG_D26 = 40;;
let _ARM_REG_D27 = 41;;
let _ARM_REG_D28 = 42;;
let _ARM_REG_D29 = 43;;
let _ARM_REG_D30 = 44;;
let _ARM_REG_D31 = 45;;
let _ARM_REG_FPINST2 = 46;;
let _ARM_REG_MVFR0 = 47;;
let _ARM_REG_MVFR1 = 48;;
let _ARM_REG_Q0 = 49;;
let _ARM_REG_Q1 = 50;;
let _ARM_REG_Q2 = 51;;
let _ARM_REG_Q3 = 52;;
let _ARM_REG_Q4 = 53;;
let _ARM_REG_Q5 = 54;;
let _ARM_REG_Q6 = 55;;
let _ARM_REG_Q7 = 56;;
let _ARM_REG_Q8 = 57;;
let _ARM_REG_Q9 = 58;;
let _ARM_REG_Q10 = 59;;
let _ARM_REG_Q11 = 60;;
let _ARM_REG_Q12 = 61;;
let _ARM_REG_Q13 = 62;;
let _ARM_REG_Q14 = 63;;
let _ARM_REG_Q15 = 64;;
let _ARM_REG_R0 = 65;;
let _ARM_REG_R1 = 66;;
let _ARM_REG_R2 = 67;;
let _ARM_REG_R3 = 68;;
let _ARM_REG_R4 = 69;;
let _ARM_REG_R5 = 70;;
let _ARM_REG_R6 = 71;;
let _ARM_REG_R7 = 72;;
let _ARM_REG_R8 = 73;;
let _ARM_REG_R9 = 74;;
let _ARM_REG_R10 = 75;;
let _ARM_REG_R11 = 76;;
let _ARM_REG_R12 = 77;;
let _ARM_REG_S0 = 78;;
let _ARM_REG_S1 = 79;;
let _ARM_REG_S2 = 80;;
let _ARM_REG_S3 = 81;;
let _ARM_REG_S4 = 82;;
let _ARM_REG_S5 = 83;;
let _ARM_REG_S6 = 84;;
let _ARM_REG_S7 = 85;;
let _ARM_REG_S8 = 86;;
let _ARM_REG_S9 = 87;;
let _ARM_REG_S10 = 88;;
let _ARM_REG_S11 = 89;;
let _ARM_REG_S12 = 90;;
let _ARM_REG_S13 = 91;;
let _ARM_REG_S14 = 92;;
let _ARM_REG_S15 = 93;;
let _ARM_REG_S16 = 94;;
let _ARM_REG_S17 = 95;;
let _ARM_REG_S18 = 96;;
let _ARM_REG_S19 = 97;;
let _ARM_REG_S20 = 98;;
let _ARM_REG_S21 = 99;;
let _ARM_REG_S22 = 100;;
let _ARM_REG_S23 = 101;;
let _ARM_REG_S24 = 102;;
let _ARM_REG_S25 = 103;;
let _ARM_REG_S26 = 104;;
let _ARM_REG_S27 = 105;;
let _ARM_REG_S28 = 106;;
let _ARM_REG_S29 = 107;;
let _ARM_REG_S30 = 108;;
let _ARM_REG_S31 = 109;;
(* ARM instructions *)
let _ARM_INS_INVALID = 0;;
let _ARM_INS_ADC = 1;;
let _ARM_INS_ADD = 2;;
let _ARM_INS_ADR = 3;;
let _ARM_INS_AESD_8 = 4;;
let _ARM_INS_AESE_8 = 5;;
let _ARM_INS_AESIMC_8 = 6;;
let _ARM_INS_AESMC_8 = 7;;
let _ARM_INS_AND = 8;;
let _ARM_INS_BFC = 9;;
let _ARM_INS_BFI = 10;;
let _ARM_INS_BIC = 11;;
let _ARM_INS_BKPT = 12;;
let _ARM_INS_BL = 13;;
let _ARM_INS_BLX = 14;;
let _ARM_INS_BX = 15;;
let _ARM_INS_BXJ = 16;;
let _ARM_INS_B = 17;;
let _ARM_INS_CDP = 18;;
let _ARM_INS_CDP2 = 19;;
let _ARM_INS_CLREX = 20;;
let _ARM_INS_CLZ = 21;;
let _ARM_INS_CMN = 22;;
let _ARM_INS_CMP = 23;;
let _ARM_INS_CPS = 24;;
let _ARM_INS_CRC32B = 25;;
let _ARM_INS_CRC32CB = 26;;
let _ARM_INS_CRC32CH = 27;;
let _ARM_INS_CRC32CW = 28;;
let _ARM_INS_CRC32H = 29;;
let _ARM_INS_CRC32W = 30;;
let _ARM_INS_DBG = 31;;
let _ARM_INS_DMB = 32;;
let _ARM_INS_DSB = 33;;
let _ARM_INS_EOR = 34;;
let _ARM_INS_VMOV = 35;;
let _ARM_INS_FLDMDBX = 36;;
let _ARM_INS_FLDMIAX = 37;;
let _ARM_INS_VMRS = 38;;
let _ARM_INS_FSTMDBX = 39;;
let _ARM_INS_FSTMIAX = 40;;
let _ARM_INS_HINT = 41;;
let _ARM_INS_HLT = 42;;
let _ARM_INS_ISB = 43;;
let _ARM_INS_LDA = 44;;
let _ARM_INS_LDAB = 45;;
let _ARM_INS_LDAEX = 46;;
let _ARM_INS_LDAEXB = 47;;
let _ARM_INS_LDAEXD = 48;;
let _ARM_INS_LDAEXH = 49;;
let _ARM_INS_LDAH = 50;;
let _ARM_INS_LDC2L = 51;;
let _ARM_INS_LDC2 = 52;;
let _ARM_INS_LDCL = 53;;
let _ARM_INS_LDC = 54;;
let _ARM_INS_LDMDA = 55;;
let _ARM_INS_LDMDB = 56;;
let _ARM_INS_LDM = 57;;
let _ARM_INS_LDMIB = 58;;
let _ARM_INS_LDRBT = 59;;
let _ARM_INS_LDRB = 60;;
let _ARM_INS_LDRD = 61;;
let _ARM_INS_LDREX = 62;;
let _ARM_INS_LDREXB = 63;;
let _ARM_INS_LDREXD = 64;;
let _ARM_INS_LDREXH = 65;;
let _ARM_INS_LDRH = 66;;
let _ARM_INS_LDRHT = 67;;
let _ARM_INS_LDRSB = 68;;
let _ARM_INS_LDRSBT = 69;;
let _ARM_INS_LDRSH = 70;;
let _ARM_INS_LDRSHT = 71;;
let _ARM_INS_LDRT = 72;;
let _ARM_INS_LDR = 73;;
let _ARM_INS_MCR = 74;;
let _ARM_INS_MCR2 = 75;;
let _ARM_INS_MCRR = 76;;
let _ARM_INS_MCRR2 = 77;;
let _ARM_INS_MLA = 78;;
let _ARM_INS_MLS = 79;;
let _ARM_INS_MOV = 80;;
let _ARM_INS_MOVT = 81;;
let _ARM_INS_MOVW = 82;;
let _ARM_INS_MRC = 83;;
let _ARM_INS_MRC2 = 84;;
let _ARM_INS_MRRC = 85;;
let _ARM_INS_MRRC2 = 86;;
let _ARM_INS_MRS = 87;;
let _ARM_INS_MSR = 88;;
let _ARM_INS_MUL = 89;;
let _ARM_INS_MVN = 90;;
let _ARM_INS_ORR = 91;;
let _ARM_INS_PKHBT = 92;;
let _ARM_INS_PKHTB = 93;;
let _ARM_INS_PLDW = 94;;
let _ARM_INS_PLD = 95;;
let _ARM_INS_PLI = 96;;
let _ARM_INS_QADD = 97;;
let _ARM_INS_QADD16 = 98;;
let _ARM_INS_QADD8 = 99;;
let _ARM_INS_QASX = 100;;
let _ARM_INS_QDADD = 101;;
let _ARM_INS_QDSUB = 102;;
let _ARM_INS_QSAX = 103;;
let _ARM_INS_QSUB = 104;;
let _ARM_INS_QSUB16 = 105;;
let _ARM_INS_QSUB8 = 106;;
let _ARM_INS_RBIT = 107;;
let _ARM_INS_REV = 108;;
let _ARM_INS_REV16 = 109;;
let _ARM_INS_REVSH = 110;;
let _ARM_INS_RFEDA = 111;;
let _ARM_INS_RFEDB = 112;;
let _ARM_INS_RFEIA = 113;;
let _ARM_INS_RFEIB = 114;;
let _ARM_INS_RSB = 115;;
let _ARM_INS_RSC = 116;;
let _ARM_INS_SADD16 = 117;;
let _ARM_INS_SADD8 = 118;;
let _ARM_INS_SASX = 119;;
let _ARM_INS_SBC = 120;;
let _ARM_INS_SBFX = 121;;
let _ARM_INS_SDIV = 122;;
let _ARM_INS_SEL = 123;;
let _ARM_INS_SETEND = 124;;
let _ARM_INS_SHA1C_32 = 125;;
let _ARM_INS_SHA1H_32 = 126;;
let _ARM_INS_SHA1M_32 = 127;;
let _ARM_INS_SHA1P_32 = 128;;
let _ARM_INS_SHA1SU0_32 = 129;;
let _ARM_INS_SHA1SU1_32 = 130;;
let _ARM_INS_SHA256H_32 = 131;;
let _ARM_INS_SHA256H2_32 = 132;;
let _ARM_INS_SHA256SU0_32 = 133;;
let _ARM_INS_SHA256SU1_32 = 134;;
let _ARM_INS_SHADD16 = 135;;
let _ARM_INS_SHADD8 = 136;;
let _ARM_INS_SHASX = 137;;
let _ARM_INS_SHSAX = 138;;
let _ARM_INS_SHSUB16 = 139;;
let _ARM_INS_SHSUB8 = 140;;
let _ARM_INS_SMC = 141;;
let _ARM_INS_SMLABB = 142;;
let _ARM_INS_SMLABT = 143;;
let _ARM_INS_SMLAD = 144;;
let _ARM_INS_SMLADX = 145;;
let _ARM_INS_SMLAL = 146;;
let _ARM_INS_SMLALBB = 147;;
let _ARM_INS_SMLALBT = 148;;
let _ARM_INS_SMLALD = 149;;
let _ARM_INS_SMLALDX = 150;;
let _ARM_INS_SMLALTB = 151;;
let _ARM_INS_SMLALTT = 152;;
let _ARM_INS_SMLATB = 153;;
let _ARM_INS_SMLATT = 154;;
let _ARM_INS_SMLAWB = 155;;
let _ARM_INS_SMLAWT = 156;;
let _ARM_INS_SMLSD = 157;;
let _ARM_INS_SMLSDX = 158;;
let _ARM_INS_SMLSLD = 159;;
let _ARM_INS_SMLSLDX = 160;;
let _ARM_INS_SMMLA = 161;;
let _ARM_INS_SMMLAR = 162;;
let _ARM_INS_SMMLS = 163;;
let _ARM_INS_SMMLSR = 164;;
let _ARM_INS_SMMUL = 165;;
let _ARM_INS_SMMULR = 166;;
let _ARM_INS_SMUAD = 167;;
let _ARM_INS_SMUADX = 168;;
let _ARM_INS_SMULBB = 169;;
let _ARM_INS_SMULBT = 170;;
let _ARM_INS_SMULL = 171;;
let _ARM_INS_SMULTB = 172;;
let _ARM_INS_SMULTT = 173;;
let _ARM_INS_SMULWB = 174;;
let _ARM_INS_SMULWT = 175;;
let _ARM_INS_SMUSD = 176;;
let _ARM_INS_SMUSDX = 177;;
let _ARM_INS_SRSDA = 178;;
let _ARM_INS_SRSDB = 179;;
let _ARM_INS_SRSIA = 180;;
let _ARM_INS_SRSIB = 181;;
let _ARM_INS_SSAT = 182;;
let _ARM_INS_SSAT16 = 183;;
let _ARM_INS_SSAX = 184;;
let _ARM_INS_SSUB16 = 185;;
let _ARM_INS_SSUB8 = 186;;
let _ARM_INS_STC2L = 187;;
let _ARM_INS_STC2 = 188;;
let _ARM_INS_STCL = 189;;
let _ARM_INS_STC = 190;;
let _ARM_INS_STL = 191;;
let _ARM_INS_STLB = 192;;
let _ARM_INS_STLEX = 193;;
let _ARM_INS_STLEXB = 194;;
let _ARM_INS_STLEXD = 195;;
let _ARM_INS_STLEXH = 196;;
let _ARM_INS_STLH = 197;;
let _ARM_INS_STMDA = 198;;
let _ARM_INS_STMDB = 199;;
let _ARM_INS_STM = 200;;
let _ARM_INS_STMIB = 201;;
let _ARM_INS_STRBT = 202;;
let _ARM_INS_STRB = 203;;
let _ARM_INS_STRD = 204;;
let _ARM_INS_STREX = 205;;
let _ARM_INS_STREXB = 206;;
let _ARM_INS_STREXD = 207;;
let _ARM_INS_STREXH = 208;;
let _ARM_INS_STRH = 209;;
let _ARM_INS_STRHT = 210;;
let _ARM_INS_STRT = 211;;
let _ARM_INS_STR = 212;;
let _ARM_INS_SUB = 213;;
let _ARM_INS_SVC = 214;;
let _ARM_INS_SWP = 215;;
let _ARM_INS_SWPB = 216;;
let _ARM_INS_SXTAB = 217;;
let _ARM_INS_SXTAB16 = 218;;
let _ARM_INS_SXTAH = 219;;
let _ARM_INS_SXTB = 220;;
let _ARM_INS_SXTB16 = 221;;
let _ARM_INS_SXTH = 222;;
let _ARM_INS_TEQ = 223;;
let _ARM_INS_TRAP = 224;;
let _ARM_INS_TST = 225;;
let _ARM_INS_UADD16 = 226;;
let _ARM_INS_UADD8 = 227;;
let _ARM_INS_UASX = 228;;
let _ARM_INS_UBFX = 229;;
let _ARM_INS_UDIV = 230;;
let _ARM_INS_UHADD16 = 231;;
let _ARM_INS_UHADD8 = 232;;
let _ARM_INS_UHASX = 233;;
let _ARM_INS_UHSAX = 234;;
let _ARM_INS_UHSUB16 = 235;;
let _ARM_INS_UHSUB8 = 236;;
let _ARM_INS_UMAAL = 237;;
let _ARM_INS_UMLAL = 238;;
let _ARM_INS_UMULL = 239;;
let _ARM_INS_UQADD16 = 240;;
let _ARM_INS_UQADD8 = 241;;
let _ARM_INS_UQASX = 242;;
let _ARM_INS_UQSAX = 243;;
let _ARM_INS_UQSUB16 = 244;;
let _ARM_INS_UQSUB8 = 245;;
let _ARM_INS_USAD8 = 246;;
let _ARM_INS_USADA8 = 247;;
let _ARM_INS_USAT = 248;;
let _ARM_INS_USAT16 = 249;;
let _ARM_INS_USAX = 250;;
let _ARM_INS_USUB16 = 251;;
let _ARM_INS_USUB8 = 252;;
let _ARM_INS_UXTAB = 253;;
let _ARM_INS_UXTAB16 = 254;;
let _ARM_INS_UXTAH = 255;;
let _ARM_INS_UXTB = 256;;
let _ARM_INS_UXTB16 = 257;;
let _ARM_INS_UXTH = 258;;
let _ARM_INS_VABAL = 259;;
let _ARM_INS_VABA = 260;;
let _ARM_INS_VABDL = 261;;
let _ARM_INS_VABD = 262;;
let _ARM_INS_VABS = 263;;
let _ARM_INS_VACGE = 264;;
let _ARM_INS_VACGT = 265;;
let _ARM_INS_VADD = 266;;
let _ARM_INS_VADDHN = 267;;
let _ARM_INS_VADDL = 268;;
let _ARM_INS_VADDW = 269;;
let _ARM_INS_VAND = 270;;
let _ARM_INS_VBIC = 271;;
let _ARM_INS_VBIF = 272;;
let _ARM_INS_VBIT = 273;;
let _ARM_INS_VBSL = 274;;
let _ARM_INS_VCEQ = 275;;
let _ARM_INS_VCGE = 276;;
let _ARM_INS_VCGT = 277;;
let _ARM_INS_VCLE = 278;;
let _ARM_INS_VCLS = 279;;
let _ARM_INS_VCLT = 280;;
let _ARM_INS_VCLZ = 281;;
let _ARM_INS_VCMP = 282;;
let _ARM_INS_VCMPE = 283;;
let _ARM_INS_VCNT = 284;;
let _ARM_INS_VCVTA_S32_F32 = 285;;
let _ARM_INS_VCVTA_U32_F32 = 286;;
let _ARM_INS_VCVTA_S32_F64 = 287;;
let _ARM_INS_VCVTA_U32_F64 = 288;;
let _ARM_INS_VCVTB = 289;;
let _ARM_INS_VCVT = 290;;
let _ARM_INS_VCVTM_S32_F32 = 291;;
let _ARM_INS_VCVTM_U32_F32 = 292;;
let _ARM_INS_VCVTM_S32_F64 = 293;;
let _ARM_INS_VCVTM_U32_F64 = 294;;
let _ARM_INS_VCVTN_S32_F32 = 295;;
let _ARM_INS_VCVTN_U32_F32 = 296;;
let _ARM_INS_VCVTN_S32_F64 = 297;;
let _ARM_INS_VCVTN_U32_F64 = 298;;
let _ARM_INS_VCVTP_S32_F32 = 299;;
let _ARM_INS_VCVTP_U32_F32 = 300;;
let _ARM_INS_VCVTP_S32_F64 = 301;;
let _ARM_INS_VCVTP_U32_F64 = 302;;
let _ARM_INS_VCVTT = 303;;
let _ARM_INS_VDIV = 304;;
let _ARM_INS_VDUP = 305;;
let _ARM_INS_VEOR = 306;;
let _ARM_INS_VEXT = 307;;
let _ARM_INS_VFMA = 308;;
let _ARM_INS_VFMS = 309;;
let _ARM_INS_VFNMA = 310;;
let _ARM_INS_VFNMS = 311;;
let _ARM_INS_VHADD = 312;;
let _ARM_INS_VHSUB = 313;;
let _ARM_INS_VLD1 = 314;;
let _ARM_INS_VLD2 = 315;;
let _ARM_INS_VLD3 = 316;;
let _ARM_INS_VLD4 = 317;;
let _ARM_INS_VLDMDB = 318;;
let _ARM_INS_VLDMIA = 319;;
let _ARM_INS_VLDR = 320;;
let _ARM_INS_VMAXNM_F64 = 321;;
let _ARM_INS_VMAXNM_F32 = 322;;
let _ARM_INS_VMAX = 323;;
let _ARM_INS_VMINNM_F64 = 324;;
let _ARM_INS_VMINNM_F32 = 325;;
let _ARM_INS_VMIN = 326;;
let _ARM_INS_VMLA = 327;;
let _ARM_INS_VMLAL = 328;;
let _ARM_INS_VMLS = 329;;
let _ARM_INS_VMLSL = 330;;
let _ARM_INS_VMOVL = 331;;
let _ARM_INS_VMOVN = 332;;
let _ARM_INS_VMSR = 333;;
let _ARM_INS_VMUL = 334;;
let _ARM_INS_VMULL_P64 = 335;;
let _ARM_INS_VMULL = 336;;
let _ARM_INS_VMVN = 337;;
let _ARM_INS_VNEG = 338;;
let _ARM_INS_VNMLA = 339;;
let _ARM_INS_VNMLS = 340;;
let _ARM_INS_VNMUL = 341;;
let _ARM_INS_VORN = 342;;
let _ARM_INS_VORR = 343;;
let _ARM_INS_VPADAL = 344;;
let _ARM_INS_VPADDL = 345;;
let _ARM_INS_VPADD = 346;;
let _ARM_INS_VPMAX = 347;;
let _ARM_INS_VPMIN = 348;;
let _ARM_INS_VQABS = 349;;
let _ARM_INS_VQADD = 350;;
let _ARM_INS_VQDMLAL = 351;;
let _ARM_INS_VQDMLSL = 352;;
let _ARM_INS_VQDMULH = 353;;
let _ARM_INS_VQDMULL = 354;;
let _ARM_INS_VQMOVUN = 355;;
let _ARM_INS_VQMOVN = 356;;
let _ARM_INS_VQNEG = 357;;
let _ARM_INS_VQRDMULH = 358;;
let _ARM_INS_VQRSHL = 359;;
let _ARM_INS_VQRSHRN = 360;;
let _ARM_INS_VQRSHRUN = 361;;
let _ARM_INS_VQSHL = 362;;
let _ARM_INS_VQSHLU = 363;;
let _ARM_INS_VQSHRN = 364;;
let _ARM_INS_VQSHRUN = 365;;
let _ARM_INS_VQSUB = 366;;
let _ARM_INS_VRADDHN = 367;;
let _ARM_INS_VRECPE = 368;;
let _ARM_INS_VRECPS = 369;;
let _ARM_INS_VREV16 = 370;;
let _ARM_INS_VREV32 = 371;;
let _ARM_INS_VREV64 = 372;;
let _ARM_INS_VRHADD = 373;;
let _ARM_INS_VRINTA_F64 = 374;;
let _ARM_INS_VRINTA_F32 = 375;;
let _ARM_INS_VRINTM_F64 = 376;;
let _ARM_INS_VRINTM_F32 = 377;;
let _ARM_INS_VRINTN_F64 = 378;;
let _ARM_INS_VRINTN_F32 = 379;;
let _ARM_INS_VRINTP_F64 = 380;;
let _ARM_INS_VRINTP_F32 = 381;;
let _ARM_INS_VRINTR = 382;;
let _ARM_INS_VRINTX = 383;;
let _ARM_INS_VRINTX_F32 = 384;;
let _ARM_INS_VRINTZ = 385;;
let _ARM_INS_VRINTZ_F32 = 386;;
let _ARM_INS_VRSHL = 387;;
let _ARM_INS_VRSHRN = 388;;
let _ARM_INS_VRSHR = 389;;
let _ARM_INS_VRSQRTE = 390;;
let _ARM_INS_VRSQRTS = 391;;
let _ARM_INS_VRSRA = 392;;
let _ARM_INS_VRSUBHN = 393;;
let _ARM_INS_VSELEQ_F64 = 394;;
let _ARM_INS_VSELEQ_F32 = 395;;
let _ARM_INS_VSELGE_F64 = 396;;
let _ARM_INS_VSELGE_F32 = 397;;
let _ARM_INS_VSELGT_F64 = 398;;
let _ARM_INS_VSELGT_F32 = 399;;
let _ARM_INS_VSELVS_F64 = 400;;
let _ARM_INS_VSELVS_F32 = 401;;
let _ARM_INS_VSHLL = 402;;
let _ARM_INS_VSHL = 403;;
let _ARM_INS_VSHRN = 404;;
let _ARM_INS_VSHR = 405;;
let _ARM_INS_VSLI = 406;;
let _ARM_INS_VSQRT = 407;;
let _ARM_INS_VSRA = 408;;
let _ARM_INS_VSRI = 409;;
let _ARM_INS_VST1 = 410;;
let _ARM_INS_VST2 = 411;;
let _ARM_INS_VST3 = 412;;
let _ARM_INS_VST4 = 413;;
let _ARM_INS_VSTMDB = 414;;
let _ARM_INS_VSTMIA = 415;;
let _ARM_INS_VSTR = 416;;
let _ARM_INS_VSUB = 417;;
let _ARM_INS_VSUBHN = 418;;
let _ARM_INS_VSUBL = 419;;
let _ARM_INS_VSUBW = 420;;
let _ARM_INS_VSWP = 421;;
let _ARM_INS_VTBL = 422;;
let _ARM_INS_VTBX = 423;;
let _ARM_INS_VCVTR = 424;;
let _ARM_INS_VTRN = 425;;
let _ARM_INS_VTST = 426;;
let _ARM_INS_VUZP = 427;;
let _ARM_INS_VZIP = 428;;
let _ARM_INS_ADDW = 429;;
let _ARM_INS_ADR_W = 430;;
let _ARM_INS_ASR = 431;;
let _ARM_INS_DCPS1 = 432;;
let _ARM_INS_DCPS2 = 433;;
let _ARM_INS_DCPS3 = 434;;
let _ARM_INS_IT = 435;;
let _ARM_INS_LSL = 436;;
let _ARM_INS_LSR = 437;;
let _ARM_INS_ORN = 438;;
let _ARM_INS_ROR = 439;;
let _ARM_INS_RRX = 440;;
let _ARM_INS_SUBW = 441;;
let _ARM_INS_TBB = 442;;
let _ARM_INS_TBH = 443;;
let _ARM_INS_CBNZ = 444;;
let _ARM_INS_CBZ = 445;;
let _ARM_INS_NOP = 446;;
let _ARM_INS_POP = 447;;
let _ARM_INS_PUSH = 448;;
let _ARM_INS_SEV = 449;;
let _ARM_INS_SEVL = 450;;
let _ARM_INS_WFE = 451;;
let _ARM_INS_WFI = 452;;
let _ARM_INS_YIELD = 453;;
(* ARM group of instructions *)
let _ARM_GRP_INVALID = 0;;
let _ARM_GRP_CRYPTO = 1;;
let _ARM_GRP_DATABARRIER = 2;;
let _ARM_GRP_DIVIDE = 3;;
let _ARM_GRP_FPARMV8 = 4;;
let _ARM_GRP_MULTPRO = 5;;
let _ARM_GRP_NEON = 6;;
let _ARM_GRP_T2EXTRACTPACK = 7;;
let _ARM_GRP_THUMB2DSP = 8;;
let _ARM_GRP_TRUSTZONE = 9;;
let _ARM_GRP_V4T = 10;;
let _ARM_GRP_V5T = 11;;
let _ARM_GRP_V5TE = 12;;
let _ARM_GRP_V6 = 13;;
let _ARM_GRP_V6T2 = 14;;
let _ARM_GRP_V7 = 15;;
let _ARM_GRP_V8 = 16;;
let _ARM_GRP_VFP2 = 17;;
let _ARM_GRP_VFP3 = 18;;
let _ARM_GRP_VFP4 = 19;;
let _ARM_GRP_ARM = 20;;
let _ARM_GRP_MCLASS = 21;;
let _ARM_GRP_NOTMCLASS = 22;;
let _ARM_GRP_THUMB = 23;;
let _ARM_GRP_THUMB1ONLY = 24;;
let _ARM_GRP_THUMB2 = 25;;
let _ARM_GRP_PREV8 = 26;;
let _ARM_GRP_FPVMLX = 27;;
let _ARM_GRP_MULOPS = 28;;