1 /* Instruction printing code for the ARM
2 Copyright (C) 1994-2024 Free Software Foundation, Inc.
3 Contributed by Richard Earnshaw (rwe@pegasus.esprit.ec.org)
4 Modification by James G. Smith (jsmith@cygnus.co.uk)
6 This file is part of libopcodes.
8 This library is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3 of the License, or
11 (at your option) any later version.
13 It is distributed in the hope that it will be useful, but WITHOUT
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
16 License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
21 MA 02110-1301, USA. */
26 #include "disassemble.h"
27 #include "opcode/arm.h"
29 #include "safe-ctype.h"
30 #include "libiberty.h"
31 #include "floatformat.h"
33 /* FIXME: This shouldn't be done here. */
34 #include "coff/internal.h"
38 #include "elf/internal.h"
42 /* Cached mapping symbol state. */
50 struct arm_private_data
52 /* The features to use when disassembling optional instructions. */
53 arm_feature_set features
;
55 /* Track the last type (although this doesn't seem to be useful) */
56 enum map_type last_type
;
58 /* Tracking symbol table information */
61 /* The end range of the current range being disassembled. */
62 bfd_vma last_stop_offset
;
63 bfd_vma last_mapping_addr
;
116 MVE_VSTRB_SCATTER_T1
,
117 MVE_VSTRH_SCATTER_T2
,
118 MVE_VSTRW_SCATTER_T3
,
119 MVE_VSTRD_SCATTER_T4
,
120 MVE_VSTRW_SCATTER_T5
,
121 MVE_VSTRD_SCATTER_T6
,
123 MVE_VCVT_BETWEEN_FP_INT
,
125 MVE_VCVT_FROM_FP_TO_INT
,
128 MVE_VMOV_GP_TO_VEC_LANE
,
131 MVE_VMOV2_VEC_LANE_TO_GP
,
132 MVE_VMOV2_GP_TO_VEC_LANE
,
133 MVE_VMOV_VEC_LANE_TO_GP
,
291 enum mve_unpredictable
293 UNPRED_IT_BLOCK
, /* Unpredictable because mve insn in it block.
295 UNPRED_FCA_0_FCB_1
, /* Unpredictable because fcA = 0 and
297 UNPRED_R13
, /* Unpredictable because r13 (sp) or
299 UNPRED_R15
, /* Unpredictable because r15 (pc) is used. */
300 UNPRED_Q_GT_4
, /* Unpredictable because
301 vec reg start > 4 (vld4/st4). */
302 UNPRED_Q_GT_6
, /* Unpredictable because
303 vec reg start > 6 (vld2/st2). */
304 UNPRED_R13_AND_WB
, /* Unpredictable becase gp reg = r13
306 UNPRED_Q_REGS_EQUAL
, /* Unpredictable because vector registers are
308 UNPRED_OS
, /* Unpredictable because offset scaled == 1. */
309 UNPRED_GP_REGS_EQUAL
, /* Unpredictable because gp registers are the
311 UNPRED_Q_REGS_EQ_AND_SIZE_1
, /* Unpredictable because q regs equal and
313 UNPRED_Q_REGS_EQ_AND_SIZE_2
, /* Unpredictable because q regs equal and
315 UNPRED_NONE
/* No unpredictable behavior. */
320 UNDEF_SIZE
, /* undefined size. */
321 UNDEF_SIZE_0
, /* undefined because size == 0. */
322 UNDEF_SIZE_2
, /* undefined because size == 2. */
323 UNDEF_SIZE_3
, /* undefined because size == 3. */
324 UNDEF_SIZE_LE_1
, /* undefined because size <= 1. */
325 UNDEF_SIZE_NOT_0
, /* undefined because size != 0. */
326 UNDEF_SIZE_NOT_2
, /* undefined because size != 2. */
327 UNDEF_SIZE_NOT_3
, /* undefined because size != 3. */
328 UNDEF_NOT_UNS_SIZE_0
, /* undefined because U == 0 and
330 UNDEF_NOT_UNS_SIZE_1
, /* undefined because U == 0 and
332 UNDEF_NOT_UNSIGNED
, /* undefined because U == 0. */
333 UNDEF_VCVT_IMM6
, /* imm6 < 32. */
334 UNDEF_VCVT_FSI_IMM6
, /* fsi = 0 and 32 >= imm6 <= 47. */
335 UNDEF_BAD_OP1_OP2
, /* undefined with op2 = 2 and
337 UNDEF_BAD_U_OP1_OP2
, /* undefined with U = 1 and
338 op2 == 0 and op1 == (0 or 1). */
339 UNDEF_OP_0_BAD_CMODE
, /* undefined because op == 0 and cmode
341 UNDEF_XCHG_UNS
, /* undefined because X == 1 and U == 1. */
342 UNDEF_NONE
/* no undefined behavior. */
347 arm_feature_set arch
; /* Architecture defining this insn. */
348 unsigned long value
; /* If arch is 0 then value is a sentinel. */
349 unsigned long mask
; /* Recognise insn if (op & mask) == value. */
350 const char * assembler
; /* How to disassemble this insn. */
355 arm_feature_set arch
; /* Architecture defining this insn. */
356 uint8_t coproc_shift
; /* coproc is this far into op. */
357 uint16_t coproc_mask
; /* Length of coproc field in op. */
358 unsigned long value
; /* If arch is 0 then value is a sentinel. */
359 unsigned long mask
; /* Recognise insn if (op & mask) == value. */
360 const char * assembler
; /* How to disassemble this insn. */
367 arm_feature_set arch
; /* Architecture defining this insn. */
368 enum mve_instructions mve_op
; /* Specific mve instruction for faster
370 unsigned long value
; /* If arch is 0 then value is a sentinel. */
371 unsigned long mask
; /* Recognise insn if (op & mask) == value. */
372 const char * assembler
; /* How to disassemble this insn. */
382 /* Shared (between Arm and Thumb mode) opcode. */
385 enum isa isa
; /* Execution mode instruction availability. */
386 arm_feature_set arch
; /* Architecture defining this insn. */
387 unsigned long value
; /* If arch is 0 then value is a sentinel. */
388 unsigned long mask
; /* Recognise insn if (op & mask) == value. */
389 const char * assembler
; /* How to disassemble this insn. */
394 arm_feature_set arch
; /* Architecture defining this insn. */
395 unsigned short value
, mask
; /* Recognise insn if (op & mask) == value. */
396 const char *assembler
; /* How to disassemble this insn. */
399 /* print_insn_coprocessor recognizes the following format control codes:
403 %c print condition code (always bits 28-31 in ARM mode)
404 %b print condition code allowing cp_num == 9
405 %q print shifter argument
406 %u print condition code (unconditional in ARM mode,
407 UNPREDICTABLE if not AL in Thumb)
408 %A print address for ldc/stc instruction
409 %B print vstm/vldm register list
410 %C print vscclrm register list
411 %J print register for VLDR instruction
412 %K print address for VLDR instruction
414 %<bitfield>c print as a condition code (for vsel)
415 %<bitfield>r print as an ARM register
416 %<bitfield>R as %<>r but r15 is UNPREDICTABLE
417 %<bitfield>ru as %<>r but each u register must be unique.
418 %<bitfield>d print the bitfield in decimal
419 %<bitfield>k print immediate for VFPv3 conversion instruction
420 %<bitfield>x print the bitfield in hex
421 %<bitfield>X print the bitfield as 1 hex digit without leading "0x"
422 %<bitfield>w print as an iWMMXt width field - [bhwd]ss/us
423 %<bitfield>g print as an iWMMXt 64-bit register
424 %<bitfield>G print as an iWMMXt general purpose or control register
425 %<bitfield>D print as a NEON D register
426 %<bitfield>Q print as a NEON Q register
427 %<bitfield>V print as a NEON D or Q register
428 %<bitfield>E print a quarter-float immediate value
430 %y<code> print a single precision VFP reg.
431 Codes: 0=>Sm, 1=>Sd, 2=>Sn, 3=>multi-list, 4=>Sm pair
432 %z<code> print a double precision VFP reg
433 Codes: 0=>Dm, 1=>Dd, 2=>Dn, 3=>multi-list
435 %<bitfield>'c print specified char iff bitfield is all ones
436 %<bitfield>`c print specified char iff bitfield is all zeroes
437 %<bitfield>?ab... select from array of values in big endian order
439 %L print as an iWMMXt N/M width field.
440 %Z print the Immediate of a WSHUFH instruction.
441 %l like 'A' except use byte offsets for 'B' & 'H'
443 %i print 5-bit immediate in bits 8,3..0
445 %r print register offset address for wldt/wstr instruction. */
447 enum opcode_sentinel_enum
449 SENTINEL_IWMMXT_START
= 1,
451 SENTINEL_GENERIC_START
454 #define UNDEFINED_INSTRUCTION "\t\t@ <UNDEFINED> instruction: %0-31x"
455 #define UNKNOWN_INSTRUCTION_32BIT "\t\t@ <UNDEFINED> instruction: %08x"
456 #define UNKNOWN_INSTRUCTION_16BIT "\t\t@ <UNDEFINED> instruction: %04x"
457 #define UNPREDICTABLE_INSTRUCTION "\t@ <UNPREDICTABLE>"
459 /* Common coprocessor opcodes shared between Arm and Thumb-2. */
461 /* print_insn_cde recognizes the following format control codes:
465 %a print 'a' iff bit 28 is 1
466 %p print bits 8-10 as coprocessor
467 %<bitfield>d print as decimal
468 %<bitfield>r print as an ARM register
469 %<bitfield>n print as an ARM register but r15 is APSR_nzcv
470 %<bitfield>T print as an ARM register + 1
471 %<bitfield>R as %r but r13 is UNPREDICTABLE
472 %<bitfield>S as %r but rX where X > 10 is UNPREDICTABLE
473 %j print immediate taken from bits (16..21,7,0..5)
474 %k print immediate taken from bits (20..21,7,0..5).
475 %l print immediate taken from bits (20..22,7,4..5). */
477 /* At the moment there is only one valid position for the coprocessor number,
478 and hence that's encoded in the macro below. */
479 #define CDE_OPCODE(ARCH, VALUE, MASK, ASM) \
480 { ARCH, 8, 7, VALUE, MASK, ASM }
481 static const struct cdeopcode32 cde_opcodes
[] =
483 /* Custom Datapath Extension instructions. */
484 CDE_OPCODE (ARM_FEATURE_CORE_HIGH (ARM_EXT2_CDE
),
485 0xee000000, 0xefc00840,
486 "cx1%a\t%p, %12-15n, %{I:#%0-5,7,16-21d%}"),
487 CDE_OPCODE (ARM_FEATURE_CORE_HIGH (ARM_EXT2_CDE
),
488 0xee000040, 0xefc00840,
489 "cx1d%a\t%p, %12-15S, %12-15T, %{I:#%0-5,7,16-21d%}"),
491 CDE_OPCODE (ARM_FEATURE_CORE_HIGH (ARM_EXT2_CDE
),
492 0xee400000, 0xefc00840,
493 "cx2%a\t%p, %12-15n, %16-19n, %{I:#%0-5,7,20-21d%}"),
494 CDE_OPCODE (ARM_FEATURE_CORE_HIGH (ARM_EXT2_CDE
),
495 0xee400040, 0xefc00840,
496 "cx2d%a\t%p, %12-15S, %12-15T, %16-19n, %{I:#%0-5,7,20-21d%}"),
498 CDE_OPCODE (ARM_FEATURE_CORE_HIGH (ARM_EXT2_CDE
),
499 0xee800000, 0xef800840,
500 "cx3%a\t%p, %0-3n, %16-19n, %12-15n, %{I:#%4-5,7,20-22d%}"),
501 CDE_OPCODE (ARM_FEATURE_CORE_HIGH (ARM_EXT2_CDE
),
502 0xee800040, 0xef800840,
503 "cx3d%a\t%p, %0-3S, %0-3T, %16-19n, %12-15n, %{I:#%4-5,7,20-22d%}"),
505 CDE_OPCODE (ARM_FEATURE_CORE_HIGH (ARM_EXT2_CDE
),
506 0xec200000, 0xeeb00840,
507 "vcx1%a\t%p, %12-15,22V, %{I:#%0-5,7,16-19d%}"),
508 CDE_OPCODE (ARM_FEATURE_CORE_HIGH (ARM_EXT2_CDE
),
509 0xec200040, 0xeeb00840,
510 "vcx1%a\t%p, %12-15,22V, %{I:#%0-5,7,16-19,24d%}"),
512 CDE_OPCODE (ARM_FEATURE_CORE_HIGH (ARM_EXT2_CDE
),
513 0xec300000, 0xeeb00840,
514 "vcx2%a\t%p, %12-15,22V, %0-3,5V, %{I:#%4,7,16-19d%}"),
515 CDE_OPCODE (ARM_FEATURE_CORE_HIGH (ARM_EXT2_CDE
),
516 0xec300040, 0xeeb00840,
517 "vcx2%a\t%p, %12-15,22V, %0-3,5V, %{I:#%4,7,16-19,24d%}"),
519 CDE_OPCODE (ARM_FEATURE_CORE_HIGH (ARM_EXT2_CDE
),
520 0xec800000, 0xee800840,
521 "vcx3%a\t%p, %12-15,22V, %16-19,7V, %0-3,5V, %{I:#%4,20-21d%}"),
522 CDE_OPCODE (ARM_FEATURE_CORE_HIGH (ARM_EXT2_CDE
),
523 0xec800040, 0xee800840,
524 "vcx3%a\t%p, %12-15,22V, %16-19,7V, %0-3,5V, %{I:#%4,20-21,24d%}"),
526 CDE_OPCODE (ARM_FEATURE_CORE_LOW (0), 0, 0, 0)
530 static const struct sopcode32 coprocessor_opcodes
[] =
532 /* XScale instructions. */
533 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
534 0x0e200010, 0x0fff0ff0,
535 "mia%c\t%{R:acc0%}, %0-3r, %12-15r"},
536 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
537 0x0e280010, 0x0fff0ff0,
538 "miaph%c\t%{R:acc0%}, %0-3r, %12-15r"},
539 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
540 0x0e2c0010, 0x0ffc0ff0, "mia%17'T%17`B%16'T%16`B%c\t%{R:acc0%}, %0-3r, %12-15r"},
541 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
542 0x0c400000, 0x0ff00fff, "mar%c\t%{R:acc0%}, %12-15r, %16-19r"},
543 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
544 0x0c500000, 0x0ff00fff, "mra%c\t%12-15r, %16-19r, %{R:acc0%}"},
546 /* Intel Wireless MMX technology instructions. */
547 {ANY
, ARM_FEATURE_CORE_LOW (0), SENTINEL_IWMMXT_START
, 0, "" },
548 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_IWMMXT
),
549 0x0e130130, 0x0f3f0fff, "tandc%22-23w%c\t%12-15r"},
550 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
551 0x0e400010, 0x0ff00f3f, "tbcst%6-7w%c\t%16-19g, %12-15r"},
552 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
553 0x0e130170, 0x0f3f0ff8, "textrc%22-23w%c\t%12-15r, %{I:#%0-2d%}"},
554 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
555 0x0e100070, 0x0f300ff0, "textrm%3?su%22-23w%c\t%12-15r, %16-19g, %{I:#%0-2d%}"},
556 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
557 0x0e600010, 0x0ff00f38, "tinsr%6-7w%c\t%16-19g, %12-15r, %{I:#%0-2d%}"},
558 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
559 0x0e000110, 0x0ff00fff, "tmcr%c\t%16-19G, %12-15r"},
560 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
561 0x0c400000, 0x0ff00ff0, "tmcrr%c\t%0-3g, %12-15r, %16-19r"},
562 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
563 0x0e2c0010, 0x0ffc0e10, "tmia%17?tb%16?tb%c\t%5-8g, %0-3r, %12-15r"},
564 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
565 0x0e200010, 0x0fff0e10, "tmia%c\t%5-8g, %0-3r, %12-15r"},
566 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
567 0x0e280010, 0x0fff0e10, "tmiaph%c\t%5-8g, %0-3r, %12-15r"},
568 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
569 0x0e100030, 0x0f300fff, "tmovmsk%22-23w%c\t%12-15r, %16-19g"},
570 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
571 0x0e100110, 0x0ff00ff0, "tmrc%c\t%12-15r, %16-19G"},
572 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
573 0x0c500000, 0x0ff00ff0, "tmrrc%c\t%12-15r, %16-19r, %0-3g"},
574 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
575 0x0e130150, 0x0f3f0fff, "torc%22-23w%c\t%12-15r"},
576 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
577 0x0e120190, 0x0f3f0fff, "torvsc%22-23w%c\t%12-15r"},
578 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
579 0x0e2001c0, 0x0f300fff, "wabs%22-23w%c\t%12-15g, %16-19g"},
580 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
581 0x0e0001c0, 0x0f300fff, "wacc%22-23w%c\t%12-15g, %16-19g"},
582 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
583 0x0e000180, 0x0f000ff0, "wadd%20-23w%c\t%12-15g, %16-19g, %0-3g"},
584 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
585 0x0e2001a0, 0x0fb00ff0, "waddbhus%22?ml%c\t%12-15g, %16-19g, %0-3g"},
586 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
587 0x0ea001a0, 0x0ff00ff0, "waddsubhx%c\t%12-15g, %16-19g, %0-3g"},
588 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
589 0x0e000020, 0x0f800ff0, "waligni%c\t%12-15g, %16-19g, %0-3g, %{I:#%20-22d%}"},
590 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
591 0x0e800020, 0x0fc00ff0, "walignr%20-21d%c\t%12-15g, %16-19g, %0-3g"},
592 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
593 0x0e200000, 0x0fe00ff0, "wand%20'n%c\t%12-15g, %16-19g, %0-3g"},
594 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
595 0x0e800000, 0x0fa00ff0, "wavg2%22?hb%20'r%c\t%12-15g, %16-19g, %0-3g"},
596 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
597 0x0e400000, 0x0fe00ff0, "wavg4%20'r%c\t%12-15g, %16-19g, %0-3g"},
598 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
599 0x0e000060, 0x0f300ff0, "wcmpeq%22-23w%c\t%12-15g, %16-19g, %0-3g"},
600 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
601 0x0e100060, 0x0f100ff0, "wcmpgt%21?su%22-23w%c\t%12-15g, %16-19g, %0-3g"},
602 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
603 0xfc500100, 0xfe500f00, "wldrd\t%12-15g, %r"},
604 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
605 0xfc100100, 0xfe500f00, "wldrw\t%12-15G, %A"},
606 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
607 0x0c100000, 0x0e100e00, "wldr%L%c\t%12-15g, %l"},
608 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
609 0x0e400100, 0x0fc00ff0, "wmac%21?su%20'z%c\t%12-15g, %16-19g, %0-3g"},
610 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
611 0x0e800100, 0x0fc00ff0, "wmadd%21?su%20'x%c\t%12-15g, %16-19g, %0-3g"},
612 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
613 0x0ec00100, 0x0fd00ff0, "wmadd%21?sun%c\t%12-15g, %16-19g, %0-3g"},
614 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
615 0x0e000160, 0x0f100ff0, "wmax%21?su%22-23w%c\t%12-15g, %16-19g, %0-3g"},
616 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
617 0x0e000080, 0x0f100fe0, "wmerge%c\t%12-15g, %16-19g, %0-3g, %{I:#%21-23d%}"},
618 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
619 0x0e0000a0, 0x0f800ff0, "wmia%21?tb%20?tb%22'n%c\t%12-15g, %16-19g, %0-3g"},
620 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
621 0x0e800120, 0x0f800ff0,
622 "wmiaw%21?tb%20?tb%22'n%c\t%12-15g, %16-19g, %0-3g"},
623 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
624 0x0e100160, 0x0f100ff0, "wmin%21?su%22-23w%c\t%12-15g, %16-19g, %0-3g"},
625 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
626 0x0e000100, 0x0fc00ff0, "wmul%21?su%20?ml%23'r%c\t%12-15g, %16-19g, %0-3g"},
627 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
628 0x0ed00100, 0x0fd00ff0, "wmul%21?sumr%c\t%12-15g, %16-19g, %0-3g"},
629 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
630 0x0ee000c0, 0x0fe00ff0, "wmulwsm%20`r%c\t%12-15g, %16-19g, %0-3g"},
631 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
632 0x0ec000c0, 0x0fe00ff0, "wmulwum%20`r%c\t%12-15g, %16-19g, %0-3g"},
633 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
634 0x0eb000c0, 0x0ff00ff0, "wmulwl%c\t%12-15g, %16-19g, %0-3g"},
635 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
636 0x0e8000a0, 0x0f800ff0,
637 "wqmia%21?tb%20?tb%22'n%c\t%12-15g, %16-19g, %0-3g"},
638 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
639 0x0e100080, 0x0fd00ff0, "wqmulm%21'r%c\t%12-15g, %16-19g, %0-3g"},
640 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
641 0x0ec000e0, 0x0fd00ff0, "wqmulwm%21'r%c\t%12-15g, %16-19g, %0-3g"},
642 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
643 0x0e000000, 0x0ff00ff0, "wor%c\t%12-15g, %16-19g, %0-3g"},
644 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
645 0x0e000080, 0x0f000ff0, "wpack%20-23w%c\t%12-15g, %16-19g, %0-3g"},
646 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
647 0xfe300040, 0xff300ef0, "wror%22-23w\t%12-15g, %16-19g, %{I:#%i%}"},
648 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
649 0x0e300040, 0x0f300ff0, "wror%22-23w%c\t%12-15g, %16-19g, %0-3g"},
650 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
651 0x0e300140, 0x0f300ff0, "wror%22-23wg%c\t%12-15g, %16-19g, %0-3G"},
652 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
653 0x0e000120, 0x0fa00ff0, "wsad%22?hb%20'z%c\t%12-15g, %16-19g, %0-3g"},
654 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
655 0x0e0001e0, 0x0f000ff0, "wshufh%c\t%12-15g, %16-19g, %{I:#%Z%}"},
656 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
657 0xfe100040, 0xff300ef0, "wsll%22-23w\t%12-15g, %16-19g, %{I:#%i%}"},
658 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
659 0x0e100040, 0x0f300ff0, "wsll%22-23w%8'g%c\t%12-15g, %16-19g, %0-3g"},
660 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
661 0x0e100148, 0x0f300ffc, "wsll%22-23w%8'g%c\t%12-15g, %16-19g, %0-3G"},
662 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
663 0xfe000040, 0xff300ef0, "wsra%22-23w\t%12-15g, %16-19g, %{I:#%i%}"},
664 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
665 0x0e000040, 0x0f300ff0, "wsra%22-23w%8'g%c\t%12-15g, %16-19g, %0-3g"},
666 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
667 0x0e000148, 0x0f300ffc, "wsra%22-23w%8'g%c\t%12-15g, %16-19g, %0-3G"},
668 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
669 0xfe200040, 0xff300ef0, "wsrl%22-23w\t%12-15g, %16-19g, %{I:#%i%}"},
670 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
671 0x0e200040, 0x0f300ff0, "wsrl%22-23w%8'g%c\t%12-15g, %16-19g, %0-3g"},
672 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
673 0x0e200148, 0x0f300ffc, "wsrl%22-23w%8'g%c\t%12-15g, %16-19g, %0-3G"},
674 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
675 0xfc400100, 0xfe500f00, "wstrd\t%12-15g, %r"},
676 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
677 0xfc000100, 0xfe500f00, "wstrw\t%12-15G, %A"},
678 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
679 0x0c000000, 0x0e100e00, "wstr%L%c\t%12-15g, %l"},
680 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
681 0x0e0001a0, 0x0f000ff0, "wsub%20-23w%c\t%12-15g, %16-19g, %0-3g"},
682 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
683 0x0ed001c0, 0x0ff00ff0, "wsubaddhx%c\t%12-15g, %16-19g, %0-3g"},
684 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
685 0x0e1001c0, 0x0f300ff0, "wabsdiff%22-23w%c\t%12-15g, %16-19g, %0-3g"},
686 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
687 0x0e0000c0, 0x0fd00fff, "wunpckeh%21?sub%c\t%12-15g, %16-19g"},
688 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
689 0x0e4000c0, 0x0fd00fff, "wunpckeh%21?suh%c\t%12-15g, %16-19g"},
690 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
691 0x0e8000c0, 0x0fd00fff, "wunpckeh%21?suw%c\t%12-15g, %16-19g"},
692 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
693 0x0e0000e0, 0x0f100fff, "wunpckel%21?su%22-23w%c\t%12-15g, %16-19g"},
694 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
695 0x0e1000c0, 0x0f300ff0, "wunpckih%22-23w%c\t%12-15g, %16-19g, %0-3g"},
696 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
697 0x0e1000e0, 0x0f300ff0, "wunpckil%22-23w%c\t%12-15g, %16-19g, %0-3g"},
698 {ANY
, ARM_FEATURE_COPROC (ARM_CEXT_XSCALE
),
699 0x0e100000, 0x0ff00ff0, "wxor%c\t%12-15g, %16-19g, %0-3g"},
700 {ANY
, ARM_FEATURE_CORE_LOW (0),
701 SENTINEL_IWMMXT_END
, 0, "" },
703 /* Armv8.1-M Mainline instructions. */
704 {T32
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_1M_MAIN
),
705 0xec9f0b00, 0xffbf0f01, "vscclrm%c\t%C"},
706 {T32
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_1M_MAIN
),
707 0xec9f0a00, 0xffbf0f00, "vscclrm%c\t%C"},
709 /* ARMv8-M Mainline Security Extensions instructions. */
710 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8M_MAIN
),
711 0xec300a00, 0xfff0ffff, "vlldm\t%16-19r"},
712 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8M_MAIN
),
713 0xec200a00, 0xfff0ffff, "vlstm\t%16-19r"},
715 /* Register load/store. */
716 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
| FPU_NEON_EXT_V1
),
717 0x0d2d0b00, 0x0fbf0f01, "vpush%c\t%B"},
718 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
| FPU_NEON_EXT_V1
),
719 0x0d200b00, 0x0fb00f01, "vstmdb%c\t%16-19r!, %B"},
720 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
| FPU_NEON_EXT_V1
),
721 0x0d300b00, 0x0fb00f01, "vldmdb%c\t%16-19r!, %B"},
722 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
| FPU_NEON_EXT_V1
),
723 0x0c800b00, 0x0f900f01, "vstmia%c\t%16-19r%21'!, %B"},
724 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
| FPU_NEON_EXT_V1
),
725 0x0cbd0b00, 0x0fbf0f01, "vpop%c\t%B"},
726 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
| FPU_NEON_EXT_V1
),
727 0x0c900b00, 0x0f900f01, "vldmia%c\t%16-19r%21'!, %B"},
728 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
| FPU_NEON_EXT_V1
),
729 0x0d000b00, 0x0f300f00, "vstr%c\t%12-15,22D, %A"},
730 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
| FPU_NEON_EXT_V1
),
731 0x0d100b00, 0x0f300f00, "vldr%c\t%12-15,22D, %A"},
732 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
),
733 0x0d2d0a00, 0x0fbf0f00, "vpush%c\t%y3"},
734 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
),
735 0x0d200a00, 0x0fb00f00, "vstmdb%c\t%16-19r!, %y3"},
736 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
),
737 0x0d300a00, 0x0fb00f00, "vldmdb%c\t%16-19r!, %y3"},
738 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
),
739 0x0c800a00, 0x0f900f00, "vstmia%c\t%16-19r%21'!, %y3"},
740 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
),
741 0x0cbd0a00, 0x0fbf0f00, "vpop%c\t%y3"},
742 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
),
743 0x0c900a00, 0x0f900f00, "vldmia%c\t%16-19r%21'!, %y3"},
744 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
),
745 0x0d000a00, 0x0f300f00, "vstr%c\t%y1, %A"},
746 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
),
747 0x0d100a00, 0x0f300f00, "vldr%c\t%y1, %A"},
748 {ANY
, ARM_FEATURE_COPROC (ARM_EXT2_V8_1M_MAIN
),
749 0xec100f80, 0xfe101f80, "vldr%c\t%J, %K"},
750 {ANY
, ARM_FEATURE_COPROC (ARM_EXT2_V8_1M_MAIN
),
751 0xec000f80, 0xfe101f80, "vstr%c\t%J, %K"},
753 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
),
754 0x0d200b01, 0x0fb00f01, "fstmdbx%c\t%16-19r!, %z3\t@ Deprecated"},
755 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
),
756 0x0d300b01, 0x0fb00f01, "fldmdbx%c\t%16-19r!, %z3\t@ Deprecated"},
757 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
),
758 0x0c800b01, 0x0f900f01, "fstmiax%c\t%16-19r%21'!, %z3\t@ Deprecated"},
759 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
),
760 0x0c900b01, 0x0f900f01, "fldmiax%c\t%16-19r%21'!, %z3\t@ Deprecated"},
762 /* Data transfer between ARM and NEON registers. */
763 {ANY
, ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
764 0x0c400b10, 0x0ff00fd0, "vmov%c\t%0-3,5D, %12-15r, %16-19r"},
765 {ANY
, ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
766 0x0c500b10, 0x0ff00fd0, "vmov%c\t%12-15r, %16-19r, %0-3,5D"},
767 {ANY
, ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
768 0x0e000b10, 0x0fd00f70, "vmov%c.32\t%{R:%16-19,7D[%21d]%}, %12-15r"},
769 {ANY
, ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
770 0x0e100b10, 0x0f500f70, "vmov%c.32\t%12-15r, %{R:%16-19,7D[%21d]%}"},
771 {ANY
, ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
772 0x0e000b30, 0x0fd00f30, "vmov%c.16\t%{R:%16-19,7D[%6,21d]%}, %12-15r"},
773 {ANY
, ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
774 0x0e100b30, 0x0f500f30, "vmov%c.%23?us16\t%12-15r, %{R:%16-19,7D[%6,21d]%}"},
775 {ANY
, ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
776 0x0e400b10, 0x0fd00f10, "vmov%c.8\t%{R:%16-19,7D[%5,6,21d]%}, %12-15r"},
777 {ANY
, ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
778 0x0e500b10, 0x0f500f10, "vmov%c.%23?us8\t%12-15r, %{R:%16-19,7D[%5,6,21d]%}"},
779 /* Half-precision conversion instructions. */
780 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_ARMV8
),
781 0x0eb20b40, 0x0fbf0f50, "vcvt%7?tb%c.f64.f16\t%z1, %y0"},
782 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_ARMV8
),
783 0x0eb30b40, 0x0fbf0f50, "vcvt%7?tb%c.f16.f64\t%y1, %z0"},
784 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_FP16
),
785 0x0eb20a40, 0x0fbf0f50, "vcvt%7?tb%c.f32.f16\t%y1, %y0"},
786 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_FP16
),
787 0x0eb30a40, 0x0fbf0f50, "vcvt%7?tb%c.f16.f32\t%y1, %y0"},
789 /* Floating point coprocessor (VFP) instructions. */
790 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
),
791 0x0ee00a10, 0x0fff0fff, "vmsr%c\t%{R:fpsid%}, %12-15r"},
792 {ANY
, ARM_FEATURE (0, ARM_EXT2_V8_1M_MAIN
, FPU_VFP_EXT_V1xD
),
793 0x0ee10a10, 0x0fff0fff, "vmsr%c\t%{R:fpscr%}, %12-15r"},
794 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_1M_MAIN
),
795 0x0ee20a10, 0x0fff0fff, "vmsr%c\t%{R:fpscr_nzcvqc%}, %12-15r"},
796 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
),
797 0x0ee60a10, 0x0fff0fff, "vmsr%c\t%{R:mvfr1%}, %12-15r"},
798 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
),
799 0x0ee70a10, 0x0fff0fff, "vmsr%c\t%{R:mvfr0%}, %12-15r"},
800 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_ARMV8
),
801 0x0ee50a10, 0x0fff0fff, "vmsr%c\t%{R:mvfr2%}, %12-15r"},
802 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
),
803 0x0ee80a10, 0x0fff0fff, "vmsr%c\t%{R:fpexc%}, %12-15r"},
804 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
),
805 0x0ee90a10, 0x0fff0fff, "vmsr%c\t%{R:fpinst%}, %12-15r\t@ Impl def"},
806 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
),
807 0x0eea0a10, 0x0fff0fff, "vmsr%c\t%{R:fpinst2%}, %12-15r\t@ Impl def"},
808 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
809 0x0eec0a10, 0x0fff0fff, "vmsr%c\t%{R:vpr%}, %12-15r"},
810 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
811 0x0eed0a10, 0x0fff0fff, "vmsr%c\t%{R:p0%}, %12-15r"},
812 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_1M_MAIN
),
813 0x0eee0a10, 0x0fff0fff, "vmsr%c\t%{R:fpcxt_ns%}, %12-15r"},
814 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_1M_MAIN
),
815 0x0eef0a10, 0x0fff0fff, "vmsr%c\t%{R:fpcxt_s%}, %12-15r"},
816 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
),
817 0x0ef00a10, 0x0fff0fff, "vmrs%c\t%12-15r, %{R:fpsid%}"},
818 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
),
819 0x0ef1fa10, 0x0fffffff, "vmrs%c\t%{R:APSR_nzcv%}, %{R:fpscr%}"},
820 {ANY
, ARM_FEATURE (0, ARM_EXT2_V8_1M_MAIN
, FPU_VFP_EXT_V1xD
),
821 0x0ef10a10, 0x0fff0fff, "vmrs%c\t%12-15r, %{R:fpscr%}"},
822 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_1M_MAIN
),
823 0x0ef20a10, 0x0fff0fff, "vmrs%c\t%12-15r, %{R:fpscr_nzcvqc%}"},
824 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_ARMV8
),
825 0x0ef50a10, 0x0fff0fff, "vmrs%c\t%12-15r, %{R:mvfr2%}"},
826 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
),
827 0x0ef60a10, 0x0fff0fff, "vmrs%c\t%12-15r, %{R:mvfr1%}"},
828 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
),
829 0x0ef70a10, 0x0fff0fff, "vmrs%c\t%12-15r, %{R:mvfr0%}"},
830 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
),
831 0x0ef80a10, 0x0fff0fff, "vmrs%c\t%12-15r, %{R:fpexc%}"},
832 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
),
833 0x0ef90a10, 0x0fff0fff, "vmrs%c\t%12-15r, %{R:fpinst%}\t@ Impl def"},
834 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
),
835 0x0efa0a10, 0x0fff0fff, "vmrs%c\t%12-15r, %{R:fpinst2%}\t@ Impl def"},
836 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
837 0x0efc0a10, 0x0fff0fff, "vmrs%c\t%12-15r, %{R:vpr%}"},
838 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
839 0x0efd0a10, 0x0fff0fff, "vmrs%c\t%12-15r, %{R:p0%}"},
840 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_1M_MAIN
),
841 0x0efe0a10, 0x0fff0fff, "vmrs%c\t%12-15r, %{R:fpcxt_ns%}"},
842 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_1M_MAIN
),
843 0x0eff0a10, 0x0fff0fff, "vmrs%c\t%12-15r, %{R:fpcxt_s%}"},
844 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1
),
845 0x0e000b10, 0x0fd00fff, "vmov%c.32\t%z2[%{I:%21d%}], %12-15r"},
846 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1
),
847 0x0e100b10, 0x0fd00fff, "vmov%c.32\t%12-15r, %z2[%{I:%21d%}]"},
848 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
),
849 0x0ee00a10, 0x0ff00fff, "vmsr%c\t<impl def %16-19x>, %12-15r"},
850 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
),
851 0x0ef00a10, 0x0ff00fff, "vmrs%c\t%12-15r, <impl def %16-19x>"},
852 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
),
853 0x0e000a10, 0x0ff00f7f, "vmov%c\t%y2, %12-15r"},
854 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
),
855 0x0e100a10, 0x0ff00f7f, "vmov%c\t%12-15r, %y2"},
856 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
),
857 0x0eb50a40, 0x0fbf0f70, "vcmp%7'e%c.f32\t%y1, %{I:#0.0%}"},
858 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1
),
859 0x0eb50b40, 0x0fbf0f70, "vcmp%7'e%c.f64\t%z1, %{I:#0.0%}"},
860 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
),
861 0x0eb00a40, 0x0fbf0fd0, "vmov%c.f32\t%y1, %y0"},
862 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
),
863 0x0eb00ac0, 0x0fbf0fd0, "vabs%c.f32\t%y1, %y0"},
864 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1
),
865 0x0eb00b40, 0x0fbf0fd0, "vmov%c.f64\t%z1, %z0"},
866 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1
),
867 0x0eb00bc0, 0x0fbf0fd0, "vabs%c.f64\t%z1, %z0"},
868 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
),
869 0x0eb10a40, 0x0fbf0fd0, "vneg%c.f32\t%y1, %y0"},
870 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
),
871 0x0eb10ac0, 0x0fbf0fd0, "vsqrt%c.f32\t%y1, %y0"},
872 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1
),
873 0x0eb10b40, 0x0fbf0fd0, "vneg%c.f64\t%z1, %z0"},
874 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1
),
875 0x0eb10bc0, 0x0fbf0fd0, "vsqrt%c.f64\t%z1, %z0"},
876 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1
),
877 0x0eb70ac0, 0x0fbf0fd0, "vcvt%c.f64.f32\t%z1, %y0"},
878 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1
),
879 0x0eb70bc0, 0x0fbf0fd0, "vcvt%c.f32.f64\t%y1, %z0"},
880 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
),
881 0x0eb80a40, 0x0fbf0f50, "vcvt%c.f32.%7?su32\t%y1, %y0"},
882 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1
),
883 0x0eb80b40, 0x0fbf0f50, "vcvt%c.f64.%7?su32\t%z1, %y0"},
884 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
),
885 0x0eb40a40, 0x0fbf0f50, "vcmp%7'e%c.f32\t%y1, %y0"},
886 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1
),
887 0x0eb40b40, 0x0fbf0f50, "vcmp%7'e%c.f64\t%z1, %z0"},
888 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V3xD
),
889 0x0eba0a40, 0x0fbe0f50, "vcvt%c.f32.%16?us%7?31%7?26\t%y1, %y1, %{I:#%5,0-3k%}"},
890 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V3
),
891 0x0eba0b40, 0x0fbe0f50, "vcvt%c.f64.%16?us%7?31%7?26\t%z1, %z1, %{I:#%5,0-3k%}"},
892 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
),
893 0x0ebc0a40, 0x0fbe0f50, "vcvt%7`r%c.%16?su32.f32\t%y1, %y0"},
894 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1
),
895 0x0ebc0b40, 0x0fbe0f50, "vcvt%7`r%c.%16?su32.f64\t%y1, %z0"},
896 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V3xD
),
897 0x0ebe0a40, 0x0fbe0f50, "vcvt%c.%16?us%7?31%7?26.f32\t%y1, %y1, %{I:#%5,0-3k%}"},
898 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V3
),
899 0x0ebe0b40, 0x0fbe0f50, "vcvt%c.%16?us%7?31%7?26.f64\t%z1, %z1, %{I:#%5,0-3k%}"},
900 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1
),
901 0x0c500b10, 0x0fb00ff0, "vmov%c\t%12-15r, %16-19r, %z0"},
902 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V3xD
),
903 0x0eb00a00, 0x0fb00ff0, "vmov%c.f32\t%y1, %{I:#%0-3,16-19E%}"},
904 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V3
),
905 0x0eb00b00, 0x0fb00ff0, "vmov%c.f64\t%z1, %{I:#%0-3,16-19E%}"},
906 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V2
),
907 0x0c400a10, 0x0ff00fd0, "vmov%c\t%y4, %12-15r, %16-19r"},
908 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V2
),
909 0x0c400b10, 0x0ff00fd0, "vmov%c\t%z0, %12-15r, %16-19r"},
910 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V2
),
911 0x0c500a10, 0x0ff00fd0, "vmov%c\t%12-15r, %16-19r, %y4"},
912 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
),
913 0x0e000a00, 0x0fb00f50, "vmla%c.f32\t%y1, %y2, %y0"},
914 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
),
915 0x0e000a40, 0x0fb00f50, "vmls%c.f32\t%y1, %y2, %y0"},
916 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1
),
917 0x0e000b00, 0x0fb00f50, "vmla%c.f64\t%z1, %z2, %z0"},
918 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1
),
919 0x0e000b40, 0x0fb00f50, "vmls%c.f64\t%z1, %z2, %z0"},
920 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
),
921 0x0e100a00, 0x0fb00f50, "vnmls%c.f32\t%y1, %y2, %y0"},
922 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
),
923 0x0e100a40, 0x0fb00f50, "vnmla%c.f32\t%y1, %y2, %y0"},
924 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1
),
925 0x0e100b00, 0x0fb00f50, "vnmls%c.f64\t%z1, %z2, %z0"},
926 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1
),
927 0x0e100b40, 0x0fb00f50, "vnmla%c.f64\t%z1, %z2, %z0"},
928 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
),
929 0x0e200a00, 0x0fb00f50, "vmul%c.f32\t%y1, %y2, %y0"},
930 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
),
931 0x0e200a40, 0x0fb00f50, "vnmul%c.f32\t%y1, %y2, %y0"},
932 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1
),
933 0x0e200b00, 0x0fb00f50, "vmul%c.f64\t%z1, %z2, %z0"},
934 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1
),
935 0x0e200b40, 0x0fb00f50, "vnmul%c.f64\t%z1, %z2, %z0"},
936 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
),
937 0x0e300a00, 0x0fb00f50, "vadd%c.f32\t%y1, %y2, %y0"},
938 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
),
939 0x0e300a40, 0x0fb00f50, "vsub%c.f32\t%y1, %y2, %y0"},
940 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1
),
941 0x0e300b00, 0x0fb00f50, "vadd%c.f64\t%z1, %z2, %z0"},
942 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1
),
943 0x0e300b40, 0x0fb00f50, "vsub%c.f64\t%z1, %z2, %z0"},
944 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1xD
),
945 0x0e800a00, 0x0fb00f50, "vdiv%c.f32\t%y1, %y2, %y0"},
946 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_V1
),
947 0x0e800b00, 0x0fb00f50, "vdiv%c.f64\t%z1, %z2, %z0"},
949 /* VFP Fused multiply add instructions. */
950 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_FMA
),
951 0x0ea00a00, 0x0fb00f50, "vfma%c.f32\t%y1, %y2, %y0"},
952 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_FMA
),
953 0x0ea00b00, 0x0fb00f50, "vfma%c.f64\t%z1, %z2, %z0"},
954 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_FMA
),
955 0x0ea00a40, 0x0fb00f50, "vfms%c.f32\t%y1, %y2, %y0"},
956 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_FMA
),
957 0x0ea00b40, 0x0fb00f50, "vfms%c.f64\t%z1, %z2, %z0"},
958 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_FMA
),
959 0x0e900a40, 0x0fb00f50, "vfnma%c.f32\t%y1, %y2, %y0"},
960 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_FMA
),
961 0x0e900b40, 0x0fb00f50, "vfnma%c.f64\t%z1, %z2, %z0"},
962 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_FMA
),
963 0x0e900a00, 0x0fb00f50, "vfnms%c.f32\t%y1, %y2, %y0"},
964 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_FMA
),
965 0x0e900b00, 0x0fb00f50, "vfnms%c.f64\t%z1, %z2, %z0"},
968 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_ARMV8
),
969 0xfe000a00, 0xff800f50, "vsel%20-21c%u.f32\t%y1, %y2, %y0"},
970 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_ARMV8
),
971 0xfe000b00, 0xff800f50, "vsel%20-21c%u.f64\t%z1, %z2, %z0"},
972 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_ARMV8
),
973 0xfe800a00, 0xffb00f50, "vmaxnm%u.f32\t%y1, %y2, %y0"},
974 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_ARMV8
),
975 0xfe800b00, 0xffb00f50, "vmaxnm%u.f64\t%z1, %z2, %z0"},
976 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_ARMV8
),
977 0xfe800a40, 0xffb00f50, "vminnm%u.f32\t%y1, %y2, %y0"},
978 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_ARMV8
),
979 0xfe800b40, 0xffb00f50, "vminnm%u.f64\t%z1, %z2, %z0"},
980 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_ARMV8
),
981 0xfebc0a40, 0xffbc0f50, "vcvt%16-17?mpna%u.%7?su32.f32\t%y1, %y0"},
982 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_ARMV8
),
983 0xfebc0b40, 0xffbc0f50, "vcvt%16-17?mpna%u.%7?su32.f64\t%y1, %z0"},
984 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_ARMV8
),
985 0x0eb60a40, 0x0fbe0f50, "vrint%7,16??xzr%c.f32\t%y1, %y0"},
986 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_ARMV8
),
987 0x0eb60b40, 0x0fbe0f50, "vrint%7,16??xzr%c.f64\t%z1, %z0"},
988 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_ARMV8
),
989 0xfeb80a40, 0xffbc0fd0, "vrint%16-17?mpna%u.f32\t%y1, %y0"},
990 {ANY
, ARM_FEATURE_COPROC (FPU_VFP_EXT_ARMV8
),
991 0xfeb80b40, 0xffbc0fd0, "vrint%16-17?mpna%u.f64\t%z1, %z0"},
993 {ANY
, ARM_FEATURE_CORE_LOW (0), SENTINEL_GENERIC_START
, 0, "" },
994 /* ARMv8.3 AdvSIMD instructions in the space of coprocessor 8. */
995 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_3A
),
996 0xfc800800, 0xfeb00f10, "vcadd%c.f16\t%12-15,22V, %16-19,7V, %0-3,5V, %{I:#%24?29%24'70%}"},
997 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_3A
),
998 0xfc900800, 0xfeb00f10, "vcadd%c.f32\t%12-15,22V, %16-19,7V, %0-3,5V, %{I:#%24?29%24'70%}"},
999 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_3A
),
1000 0xfc200800, 0xff300f10, "vcmla%c.f16\t%12-15,22V, %16-19,7V, %0-3,5V, %{I:#%23'90%}"},
1001 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_3A
),
1002 0xfd200800, 0xff300f10, "vcmla%c.f16\t%12-15,22V, %16-19,7V, %0-3,5V, %{I:#%23?21%23?780%}"},
1003 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_3A
),
1004 0xfc300800, 0xff300f10, "vcmla%c.f32\t%12-15,22V, %16-19,7V, %0-3,5V, %{I:#%23'90%}"},
1005 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_3A
),
1006 0xfd300800, 0xff300f10, "vcmla%c.f32\t%12-15,22V, %16-19,7V, %0-3,5V, %{I:#%23?21%23?780%}"},
1007 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_3A
),
1008 0xfe000800, 0xffa00f10, "vcmla%c.f16\t%12-15,22V, %16-19,7V, %{R:%0-3D[%5?10]%}, %{I:#%20'90%}"},
1009 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_3A
),
1010 0xfe200800, 0xffa00f10, "vcmla%c.f16\t%12-15,22V, %16-19,7V, %{R:%0-3D[%5?10]%}, %{I:#%20?21%20?780%}"},
1011 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_3A
),
1012 0xfe800800, 0xffa00f10, "vcmla%c.f32\t%12-15,22V, %16-19,7V, %{R:%0-3,5D[0]%}, %{I:#%20'90%}"},
1013 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_3A
),
1014 0xfea00800, 0xffa00f10, "vcmla%c.f32\t%12-15,22V, %16-19,7V, %{R:%0-3,5D[0]%}, %{I:#%20?21%20?780%}"},
1016 /* BFloat16 instructions. */
1017 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_BF16
),
1018 0x0eb30940, 0x0fbf0f50, "vcvt%7?tb%b.bf16.f32\t%y1, %y0"},
1020 /* Dot Product instructions in the space of coprocessor 13. */
1021 {ANY
, ARM_FEATURE_COPROC (FPU_NEON_EXT_DOTPROD
),
1022 0xfc200d00, 0xffb00f00, "v%4?usdot.%4?us8\t%12-15,22V, %16-19,7V, %0-3,5V"},
1023 {ANY
, ARM_FEATURE_COPROC (FPU_NEON_EXT_DOTPROD
),
1024 0xfe200d00, 0xff200f00, "v%4?usdot.%4?us8\t%12-15,22V, %16-19,7V, %{R:%0-3D[%5?10]%}"},
1026 /* ARMv8.2 FMAC Long instructions in the space of coprocessor 8. */
1027 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
| ARM_EXT2_V8_2A
),
1028 0xfc200810, 0xffb00f50, "vfmal.f16\t%12-15,22D, %{R:s%7,16-19d%}, %{R:s%5,0-3d%}"},
1029 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
| ARM_EXT2_V8_2A
),
1030 0xfca00810, 0xffb00f50, "vfmsl.f16\t%12-15,22D, %{R:s%7,16-19d%}, %{R:s%5,0-3d%}"},
1031 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
| ARM_EXT2_V8_2A
),
1032 0xfc200850, 0xffb00f50, "vfmal.f16\t%12-15,22Q, %{R:d%16-19,7d%}, %{R:d%0-3,5d%}"},
1033 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
| ARM_EXT2_V8_2A
),
1034 0xfca00850, 0xffb00f50, "vfmsl.f16\t%12-15,22Q, %{R:d%16-19,7d%}, %{R:d%0-3,5d%}"},
1035 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
| ARM_EXT2_V8_2A
),
1036 0xfe000810, 0xffb00f50, "vfmal.f16\t%12-15,22D, %{R:s%7,16-19d%}, %{R:s%5,0-2d[%3d]%}"},
1037 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
| ARM_EXT2_V8_2A
),
1038 0xfe100810, 0xffb00f50, "vfmsl.f16\t%12-15,22D, %{R:s%7,16-19d%}, %{R:s%5,0-2d[%3d]%}"},
1039 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
| ARM_EXT2_V8_2A
),
1040 0xfe000850, 0xffb00f50, "vfmal.f16\t%12-15,22Q, %{R:d%16-19,7d%}, %{R:d%0-2d[%3,5d]%}"},
1041 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
| ARM_EXT2_V8_2A
),
1042 0xfe100850, 0xffb00f50, "vfmsl.f16\t%12-15,22Q, %{R:d%16-19,7d%}, %{R:d%0-2d[%3,5d]%}"},
1044 /* ARMv8.2 half-precision Floating point coprocessor 9 (VFP) instructions.
1045 cp_num: bit <11:8> == 0b1001.
1046 cond: bit <31:28> == 0b1110, otherwise, it's UNPREDICTABLE. */
1047 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1048 0x0eb009c0, 0x0fbf0fd0, "vabs%c.f16\t%y1, %y0"},
1049 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1050 0x0e300900, 0x0fb00f50, "vadd%c.f16\t%y1, %y2, %y0"},
1051 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1052 0x0eb40940, 0x0fbf0f50, "vcmp%7'e%c.f16\t%y1, %y0"},
1053 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1054 0x0eb50940, 0x0fbf0f70, "vcmp%7'e%c.f16\t%y1, %{I:#0.0%}"},
1055 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1056 0x0eba09c0, 0x0fbe0fd0, "vcvt%c.f16.%16?us%7?31%7?26\t%y1, %y1, %{I:#%5,0-3k%}"},
1057 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1058 0x0ebe09c0, 0x0fbe0fd0, "vcvt%c.%16?us%7?31%7?26.f16\t%y1, %y1, %{I:#%5,0-3k%}"},
1059 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1060 0x0ebc0940, 0x0fbe0f50, "vcvt%7`r%c.%16?su32.f16\t%y1, %y0"},
1061 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1062 0x0eb80940, 0x0fbf0f50, "vcvt%c.f16.%7?su32\t%y1, %y0"},
1063 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1064 0xfebc0940, 0xffbc0f50, "vcvt%16-17?mpna%u.%7?su32.f16\t%y1, %y0"},
1065 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1066 0x0e800900, 0x0fb00f50, "vdiv%c.f16\t%y1, %y2, %y0"},
1067 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1068 0x0ea00900, 0x0fb00f50, "vfma%c.f16\t%y1, %y2, %y0"},
1069 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1070 0x0ea00940, 0x0fb00f50, "vfms%c.f16\t%y1, %y2, %y0"},
1071 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1072 0x0e900940, 0x0fb00f50, "vfnma%c.f16\t%y1, %y2, %y0"},
1073 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1074 0x0e900900, 0x0fb00f50, "vfnms%c.f16\t%y1, %y2, %y0"},
1075 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1076 0xfeb00ac0, 0xffbf0fd0, "vins.f16\t%y1, %y0"},
1077 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1078 0xfeb00a40, 0xffbf0fd0, "vmovx%c.f16\t%y1, %y0"},
1079 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1080 0x0d100900, 0x0f300f00, "vldr%c.16\t%y1, %A"},
1081 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1082 0x0d000900, 0x0f300f00, "vstr%c.16\t%y1, %A"},
1083 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1084 0xfe800900, 0xffb00f50, "vmaxnm%c.f16\t%y1, %y2, %y0"},
1085 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1086 0xfe800940, 0xffb00f50, "vminnm%c.f16\t%y1, %y2, %y0"},
1087 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1088 0x0e000900, 0x0fb00f50, "vmla%c.f16\t%y1, %y2, %y0"},
1089 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1090 0x0e000940, 0x0fb00f50, "vmls%c.f16\t%y1, %y2, %y0"},
1091 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1092 0x0e100910, 0x0ff00f7f, "vmov%c.f16\t%12-15r, %y2"},
1093 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1094 0x0e000910, 0x0ff00f7f, "vmov%c.f16\t%y2, %12-15r"},
1095 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1096 0xeb00900, 0x0fb00ff0, "vmov%c.f16\t%y1, %{I:#%0-3,16-19E%}"},
1097 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1098 0x0e200900, 0x0fb00f50, "vmul%c.f16\t%y1, %y2, %y0"},
1099 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1100 0x0eb10940, 0x0fbf0fd0, "vneg%c.f16\t%y1, %y0"},
1101 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1102 0x0e100940, 0x0fb00f50, "vnmla%c.f16\t%y1, %y2, %y0"},
1103 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1104 0x0e100900, 0x0fb00f50, "vnmls%c.f16\t%y1, %y2, %y0"},
1105 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1106 0x0e200940, 0x0fb00f50, "vnmul%c.f16\t%y1, %y2, %y0"},
1107 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1108 0x0eb60940, 0x0fbe0f50, "vrint%7,16??xzr%c.f16\t%y1, %y0"},
1109 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1110 0xfeb80940, 0xffbc0fd0, "vrint%16-17?mpna%u.f16\t%y1, %y0"},
1111 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1112 0xfe000900, 0xff800f50, "vsel%20-21c%u.f16\t%y1, %y2, %y0"},
1113 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1114 0x0eb109c0, 0x0fbf0fd0, "vsqrt%c.f16\t%y1, %y0"},
1115 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1116 0x0e300940, 0x0fb00f50, "vsub%c.f16\t%y1, %y2, %y0"},
1118 /* ARMv8.3 javascript conversion instruction. */
1119 {ANY
, ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_3A
),
1120 0x0eb90bc0, 0x0fbf0fd0, "vjcvt%c.s32.f64\t%y1, %z0"},
1122 {ANY
, ARM_FEATURE_CORE_LOW (0), 0, 0, 0}
1125 /* Generic coprocessor instructions. These are only matched if a more specific
1126 SIMD or co-processor instruction does not match first. */
1128 static const struct sopcode32 generic_coprocessor_opcodes
[] =
1130 /* Generic coprocessor instructions. */
1131 {ANY
, ARM_FEATURE_CORE_LOW (ARM_EXT_V5E
),
1132 0x0c400000, 0x0ff00000, "mcrr%c\t%{I:%8-11d%}, %{I:%4-7d%}, %12-15R, %16-19r, %{R:cr%0-3d%}"},
1133 {ANY
, ARM_FEATURE_CORE_LOW (ARM_EXT_V5E
),
1134 0x0c500000, 0x0ff00000,
1135 "mrrc%c\t%{I:%8-11d%}, %{I:%4-7d%}, %12-15Ru, %16-19Ru, %{R:cr%0-3d%}"},
1136 {ANY
, ARM_FEATURE_CORE_LOW (ARM_EXT_V2
),
1137 0x0e000000, 0x0f000010,
1138 "cdp%c\t%{I:%8-11d%}, %{I:%20-23d%}, %{R:cr%12-15d%}, %{R:cr%16-19d%}, %{R:cr%0-3d%}, {%{I:%5-7d%}}"},
1139 {ANY
, ARM_FEATURE_CORE_LOW (ARM_EXT_V2
),
1140 0x0e10f010, 0x0f10f010,
1141 "mrc%c\t%{I:%8-11d%}, %{I:%21-23d%}, %{R:APSR_nzcv%}, %{R:cr%16-19d%}, %{R:cr%0-3d%}, {%{I:%5-7d%}}"},
1142 {ANY
, ARM_FEATURE_CORE_LOW (ARM_EXT_V2
),
1143 0x0e100010, 0x0f100010,
1144 "mrc%c\t%{I:%8-11d%}, %{I:%21-23d%}, %12-15r, %{R:cr%16-19d%}, %{R:cr%0-3d%}, {%{I:%5-7d%}}"},
1145 {ANY
, ARM_FEATURE_CORE_LOW (ARM_EXT_V2
),
1146 0x0e000010, 0x0f100010,
1147 "mcr%c\t%{I:%8-11d%}, %{I:%21-23d%}, %12-15R, %{R:cr%16-19d%}, %{R:cr%0-3d%}, {%{I:%5-7d%}}"},
1148 {ANY
, ARM_FEATURE_CORE_LOW (ARM_EXT_V2
),
1149 0x0c000000, 0x0e100000, "stc%22'l%c\t%{I:%8-11d%}, %{R:cr%12-15d%}, %A"},
1150 {ANY
, ARM_FEATURE_CORE_LOW (ARM_EXT_V2
),
1151 0x0c100000, 0x0e100000, "ldc%22'l%c\t%{I:%8-11d%}, %{R:cr%12-15d%}, %A"},
1153 /* V6 coprocessor instructions. */
1154 {ANY
, ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
1155 0xfc500000, 0xfff00000,
1156 "mrrc2%c\t%{I:%8-11d%}, %{I:%4-7d%}, %12-15Ru, %16-19Ru, %{R:cr%0-3d%}"},
1157 {ANY
, ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
1158 0xfc400000, 0xfff00000,
1159 "mcrr2%c\t%{I:%8-11d%}, %{I:%4-7d%}, %12-15R, %16-19R, %{R:cr%0-3d%}"},
1161 /* V5 coprocessor instructions. */
1162 {ANY
, ARM_FEATURE_CORE_LOW (ARM_EXT_V5
),
1163 0xfc100000, 0xfe100000, "ldc2%22'l%c\t%{I:%8-11d%}, %{R:cr%12-15d%}, %A"},
1164 {ANY
, ARM_FEATURE_CORE_LOW (ARM_EXT_V5
),
1165 0xfc000000, 0xfe100000, "stc2%22'l%c\t%{I:%8-11d%}, %{R:cr%12-15d%}, %A"},
1166 {ANY
, ARM_FEATURE_CORE_LOW (ARM_EXT_V5
),
1167 0xfe000000, 0xff000010,
1168 "cdp2%c\t%{I:%8-11d%}, %{I:%20-23d%}, %{R:cr%12-15d%}, %{R:cr%16-19d%}, %{R:cr%0-3d%}, {%{I:%5-7d%}}"},
1169 {ANY
, ARM_FEATURE_CORE_LOW (ARM_EXT_V5
),
1170 0xfe000010, 0xff100010,
1171 "mcr2%c\t%{I:%8-11d%}, %{I:%21-23d%}, %12-15R, %{R:cr%16-19d%}, %{R:cr%0-3d%}, {%{I:%5-7d%}}"},
1172 {ANY
, ARM_FEATURE_CORE_LOW (ARM_EXT_V5
),
1173 0xfe100010, 0xff100010,
1174 "mrc2%c\t%{I:%8-11d%}, %{I:%21-23d%}, %12-15r, %{R:cr%16-19d%}, %{R:cr%0-3d%}, {%{I:%5-7d%}}"},
1176 {ANY
, ARM_FEATURE_CORE_LOW (0), 0, 0, 0}
1179 /* Neon opcode table: This does not encode the top byte -- that is
1180 checked by the print_insn_neon routine, as it depends on whether we are
1181 doing thumb32 or arm32 disassembly. */
1183 /* print_insn_neon recognizes the following format control codes:
1187 %c print condition code
1188 %u print condition code (unconditional in ARM mode,
1189 UNPREDICTABLE if not AL in Thumb)
1190 %A print v{st,ld}[1234] operands
1191 %B print v{st,ld}[1234] any one operands
1192 %C print v{st,ld}[1234] single->all operands
1194 %E print vmov, vmvn, vorr, vbic encoded constant
1195 %F print vtbl,vtbx register list
1197 %<bitfield>r print as an ARM register
1198 %<bitfield>d print the bitfield in decimal
1199 %<bitfield>e print the 2^N - bitfield in decimal
1200 %<bitfield>D print as a NEON D register
1201 %<bitfield>Q print as a NEON Q register
1202 %<bitfield>R print as a NEON D or Q register
1203 %<bitfield>Sn print byte scaled width limited by n
1204 %<bitfield>Tn print short scaled width limited by n
1205 %<bitfield>Un print long scaled width limited by n
1207 %<bitfield>'c print specified char iff bitfield is all ones
1208 %<bitfield>`c print specified char iff bitfield is all zeroes
1209 %<bitfield>?ab... select from array of values in big endian order. */
1211 static const struct opcode32 neon_opcodes
[] =
1214 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1215 0xf2b00840, 0xffb00850,
1216 "vext%c.8\t%12-15,22R, %16-19,7R, %0-3,5R, %{I:#%8-11d%}"},
1217 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1218 0xf2b00000, 0xffb00810,
1219 "vext%c.8\t%12-15,22R, %16-19,7R, %0-3,5R, %{I:#%8-11d%}"},
1221 /* Data transfer between ARM and NEON registers. */
1222 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1223 0x0e800b10, 0x0ff00f70, "vdup%c.32\t%16-19,7D, %12-15r"},
1224 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1225 0x0e800b30, 0x0ff00f70, "vdup%c.16\t%16-19,7D, %12-15r"},
1226 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1227 0x0ea00b10, 0x0ff00f70, "vdup%c.32\t%16-19,7Q, %12-15r"},
1228 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1229 0x0ea00b30, 0x0ff00f70, "vdup%c.16\t%16-19,7Q, %12-15r"},
1230 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1231 0x0ec00b10, 0x0ff00f70, "vdup%c.8\t%16-19,7D, %12-15r"},
1232 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1233 0x0ee00b10, 0x0ff00f70, "vdup%c.8\t%16-19,7Q, %12-15r"},
1235 /* Move data element to all lanes. */
1236 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1237 0xf3b40c00, 0xffb70f90, "vdup%c.32\t%12-15,22R, %{R:%0-3,5D[%19d]%}"},
1238 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1239 0xf3b20c00, 0xffb30f90, "vdup%c.16\t%12-15,22R, %{R:%0-3,5D[%18-19d]%}"},
1240 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1241 0xf3b10c00, 0xffb10f90, "vdup%c.8\t%12-15,22R, %{R:%0-3,5D[%17-19d]%}"},
1244 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1245 0xf3b00800, 0xffb00c50, "vtbl%c.8\t%12-15,22D, %F, %0-3,5D"},
1246 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1247 0xf3b00840, 0xffb00c50, "vtbx%c.8\t%12-15,22D, %F, %0-3,5D"},
1249 /* Half-precision conversions. */
1250 {ARM_FEATURE_COPROC (FPU_VFP_EXT_FP16
),
1251 0xf3b60600, 0xffbf0fd0, "vcvt%c.f16.f32\t%12-15,22D, %0-3,5Q"},
1252 {ARM_FEATURE_COPROC (FPU_VFP_EXT_FP16
),
1253 0xf3b60700, 0xffbf0fd0, "vcvt%c.f32.f16\t%12-15,22Q, %0-3,5D"},
1255 /* NEON fused multiply add instructions. */
1256 {ARM_FEATURE_COPROC (FPU_NEON_EXT_FMA
),
1257 0xf2000c10, 0xffb00f10, "vfma%c.f32\t%12-15,22R, %16-19,7R, %0-3,5R"},
1258 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1259 0xf2100c10, 0xffb00f10, "vfma%c.f16\t%12-15,22R, %16-19,7R, %0-3,5R"},
1260 {ARM_FEATURE_COPROC (FPU_NEON_EXT_FMA
),
1261 0xf2200c10, 0xffb00f10, "vfms%c.f32\t%12-15,22R, %16-19,7R, %0-3,5R"},
1262 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1263 0xf2300c10, 0xffb00f10, "vfms%c.f16\t%12-15,22R, %16-19,7R, %0-3,5R"},
1265 /* BFloat16 instructions. */
1266 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_BF16
),
1267 0xfc000d00, 0xffb00f10, "vdot.bf16\t%12-15,22R, %16-19,7R, %0-3,5R"},
1268 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_BF16
),
1269 0xfe000d00, 0xffb00f10, "vdot.bf16\t%12-15,22R, %16-19,7R, %{R:d%0-3d[%5d]%}"},
1270 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_BF16
),
1271 0xfc000c40, 0xffb00f50, "vmmla.bf16\t%12-15,22R, %16-19,7R, %0-3,5R"},
1272 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_BF16
),
1273 0xf3b60640, 0xffbf0fd0, "vcvt%c.bf16.f32\t%12-15,22D, %0-3,5Q"},
1274 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_BF16
),
1275 0xfc300810, 0xffb00f10, "vfma%6?tb.bf16\t%12-15,22Q, %16-19,7Q, %0-3,5Q"},
1276 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_BF16
),
1277 0xfe300810, 0xffb00f10, "vfma%6?tb.bf16\t%12-15,22Q, %16-19,7Q, %{R:%0-2D[%3,5d]%}"},
1279 /* Matrix Multiply instructions. */
1280 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_I8MM
),
1281 0xfc200c40, 0xffb00f50, "vsmmla.s8\t%12-15,22R, %16-19,7R, %0-3,5R"},
1282 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_I8MM
),
1283 0xfc200c50, 0xffb00f50, "vummla.u8\t%12-15,22R, %16-19,7R, %0-3,5R"},
1284 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_I8MM
),
1285 0xfca00c40, 0xffb00f50, "vusmmla.s8\t%12-15,22R, %16-19,7R, %0-3,5R"},
1286 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_I8MM
),
1287 0xfca00d00, 0xffb00f10, "vusdot.s8\t%12-15,22R, %16-19,7R, %0-3,5R"},
1288 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_I8MM
),
1289 0xfe800d00, 0xffb00f10, "vusdot.s8\t%12-15,22R, %16-19,7R, %{R:d%0-3d[%5d]%}"},
1290 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_I8MM
),
1291 0xfe800d10, 0xffb00f10, "vsudot.u8\t%12-15,22R, %16-19,7R, %{R:d%0-3d[%5d]%}"},
1293 /* Two registers, miscellaneous. */
1294 {ARM_FEATURE_COPROC (FPU_NEON_EXT_ARMV8
),
1295 0xf3ba0400, 0xffbf0c10, "vrint%7-9?p?m?zaxn%u.f32\t%12-15,22R, %0-3,5R"},
1296 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1297 0xf3b60400, 0xffbf0c10, "vrint%7-9?p?m?zaxn%u.f16\t%12-15,22R, %0-3,5R"},
1298 {ARM_FEATURE_COPROC (FPU_NEON_EXT_ARMV8
),
1299 0xf3bb0000, 0xffbf0c10, "vcvt%8-9?mpna%u.%7?us32.f32\t%12-15,22R, %0-3,5R"},
1300 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1301 0xf3b70000, 0xffbf0c10, "vcvt%8-9?mpna%u.%7?us16.f16\t%12-15,22R, %0-3,5R"},
1302 {ARM_FEATURE_COPROC (FPU_CRYPTO_EXT_ARMV8
),
1303 0xf3b00300, 0xffbf0fd0, "aese%u.8\t%12-15,22Q, %0-3,5Q"},
1304 {ARM_FEATURE_COPROC (FPU_CRYPTO_EXT_ARMV8
),
1305 0xf3b00340, 0xffbf0fd0, "aesd%u.8\t%12-15,22Q, %0-3,5Q"},
1306 {ARM_FEATURE_COPROC (FPU_CRYPTO_EXT_ARMV8
),
1307 0xf3b00380, 0xffbf0fd0, "aesmc%u.8\t%12-15,22Q, %0-3,5Q"},
1308 {ARM_FEATURE_COPROC (FPU_CRYPTO_EXT_ARMV8
),
1309 0xf3b003c0, 0xffbf0fd0, "aesimc%u.8\t%12-15,22Q, %0-3,5Q"},
1310 {ARM_FEATURE_COPROC (FPU_CRYPTO_EXT_ARMV8
),
1311 0xf3b902c0, 0xffbf0fd0, "sha1h%u.32\t%12-15,22Q, %0-3,5Q"},
1312 {ARM_FEATURE_COPROC (FPU_CRYPTO_EXT_ARMV8
),
1313 0xf3ba0380, 0xffbf0fd0, "sha1su1%u.32\t%12-15,22Q, %0-3,5Q"},
1314 {ARM_FEATURE_COPROC (FPU_CRYPTO_EXT_ARMV8
),
1315 0xf3ba03c0, 0xffbf0fd0, "sha256su0%u.32\t%12-15,22Q, %0-3,5Q"},
1316 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1317 0xf2880a10, 0xfebf0fd0, "vmovl%c.%24?us8\t%12-15,22Q, %0-3,5D"},
1318 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1319 0xf2900a10, 0xfebf0fd0, "vmovl%c.%24?us16\t%12-15,22Q, %0-3,5D"},
1320 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1321 0xf2a00a10, 0xfebf0fd0, "vmovl%c.%24?us32\t%12-15,22Q, %0-3,5D"},
1322 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1323 0xf3b00500, 0xffbf0f90, "vcnt%c.8\t%12-15,22R, %0-3,5R"},
1324 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1325 0xf3b00580, 0xffbf0f90, "vmvn%c\t%12-15,22R, %0-3,5R"},
1326 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1327 0xf3b20000, 0xffbf0f90, "vswp%c\t%12-15,22R, %0-3,5R"},
1328 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1329 0xf3b20200, 0xffb30fd0, "vmovn%c.i%18-19T2\t%12-15,22D, %0-3,5Q"},
1330 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1331 0xf3b20240, 0xffb30fd0, "vqmovun%c.s%18-19T2\t%12-15,22D, %0-3,5Q"},
1332 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1333 0xf3b20280, 0xffb30fd0, "vqmovn%c.s%18-19T2\t%12-15,22D, %0-3,5Q"},
1334 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1335 0xf3b202c0, 0xffb30fd0, "vqmovn%c.u%18-19T2\t%12-15,22D, %0-3,5Q"},
1336 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1337 0xf3b20300, 0xffb30fd0,
1338 "vshll%c.i%18-19S2\t%12-15,22Q, %0-3,5D, %{I:#%18-19S2%}"},
1339 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1340 0xf3bb0400, 0xffbf0e90, "vrecpe%c.%8?fu%18-19S2\t%12-15,22R, %0-3,5R"},
1341 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1342 0xf3b70400, 0xffbf0e90, "vrecpe%c.%8?fu16\t%12-15,22R, %0-3,5R"},
1343 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1344 0xf3bb0480, 0xffbf0e90, "vrsqrte%c.%8?fu%18-19S2\t%12-15,22R, %0-3,5R"},
1345 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1346 0xf3b70480, 0xffbf0e90, "vrsqrte%c.%8?fu16\t%12-15,22R, %0-3,5R"},
1347 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1348 0xf3b00000, 0xffb30f90, "vrev64%c.%18-19S2\t%12-15,22R, %0-3,5R"},
1349 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1350 0xf3b00080, 0xffb30f90, "vrev32%c.%18-19S2\t%12-15,22R, %0-3,5R"},
1351 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1352 0xf3b00100, 0xffb30f90, "vrev16%c.%18-19S2\t%12-15,22R, %0-3,5R"},
1353 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1354 0xf3b00400, 0xffb30f90, "vcls%c.s%18-19S2\t%12-15,22R, %0-3,5R"},
1355 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1356 0xf3b00480, 0xffb30f90, "vclz%c.i%18-19S2\t%12-15,22R, %0-3,5R"},
1357 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1358 0xf3b00700, 0xffb30f90, "vqabs%c.s%18-19S2\t%12-15,22R, %0-3,5R"},
1359 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1360 0xf3b00780, 0xffb30f90, "vqneg%c.s%18-19S2\t%12-15,22R, %0-3,5R"},
1361 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1362 0xf3b20080, 0xffb30f90, "vtrn%c.%18-19S2\t%12-15,22R, %0-3,5R"},
1363 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1364 0xf3b20100, 0xffb30f90, "vuzp%c.%18-19S2\t%12-15,22R, %0-3,5R"},
1365 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1366 0xf3b20180, 0xffb30f90, "vzip%c.%18-19S2\t%12-15,22R, %0-3,5R"},
1367 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1368 0xf3b10000, 0xffb30b90, "vcgt%c.%10?fs%18-19S2\t%12-15,22R, %0-3,5R, %{I:#0%}"},
1369 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1370 0xf3b10080, 0xffb30b90, "vcge%c.%10?fs%18-19S2\t%12-15,22R, %0-3,5R, %{I:#0%}"},
1371 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1372 0xf3b10100, 0xffb30b90, "vceq%c.%10?fi%18-19S2\t%12-15,22R, %0-3,5R, %{I:#0%}"},
1373 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1374 0xf3b10180, 0xffb30b90, "vcle%c.%10?fs%18-19S2\t%12-15,22R, %0-3,5R, %{I:#0%}"},
1375 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1376 0xf3b10200, 0xffb30b90, "vclt%c.%10?fs%18-19S2\t%12-15,22R, %0-3,5R, %{I:#0%}"},
1377 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1378 0xf3b10300, 0xffb30b90, "vabs%c.%10?fs%18-19S2\t%12-15,22R, %0-3,5R"},
1379 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1380 0xf3b10380, 0xffb30b90, "vneg%c.%10?fs%18-19S2\t%12-15,22R, %0-3,5R"},
1381 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1382 0xf3b00200, 0xffb30f10, "vpaddl%c.%7?us%18-19S2\t%12-15,22R, %0-3,5R"},
1383 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1384 0xf3b00600, 0xffb30f10, "vpadal%c.%7?us%18-19S2\t%12-15,22R, %0-3,5R"},
1385 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1386 0xf3bb0600, 0xffbf0e10,
1387 "vcvt%c.%7-8?usff%18-19Sa.%7-8?ffus%18-19Sa\t%12-15,22R, %0-3,5R"},
1388 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1389 0xf3b70600, 0xffbf0e10,
1390 "vcvt%c.%7-8?usff16.%7-8?ffus16\t%12-15,22R, %0-3,5R"},
1392 /* Three registers of the same length. */
1393 {ARM_FEATURE_COPROC (FPU_CRYPTO_EXT_ARMV8
),
1394 0xf2000c40, 0xffb00f50, "sha1c%u.32\t%12-15,22Q, %16-19,7Q, %0-3,5Q"},
1395 {ARM_FEATURE_COPROC (FPU_CRYPTO_EXT_ARMV8
),
1396 0xf2100c40, 0xffb00f50, "sha1p%u.32\t%12-15,22Q, %16-19,7Q, %0-3,5Q"},
1397 {ARM_FEATURE_COPROC (FPU_CRYPTO_EXT_ARMV8
),
1398 0xf2200c40, 0xffb00f50, "sha1m%u.32\t%12-15,22Q, %16-19,7Q, %0-3,5Q"},
1399 {ARM_FEATURE_COPROC (FPU_CRYPTO_EXT_ARMV8
),
1400 0xf2300c40, 0xffb00f50, "sha1su0%u.32\t%12-15,22Q, %16-19,7Q, %0-3,5Q"},
1401 {ARM_FEATURE_COPROC (FPU_CRYPTO_EXT_ARMV8
),
1402 0xf3000c40, 0xffb00f50, "sha256h%u.32\t%12-15,22Q, %16-19,7Q, %0-3,5Q"},
1403 {ARM_FEATURE_COPROC (FPU_CRYPTO_EXT_ARMV8
),
1404 0xf3100c40, 0xffb00f50, "sha256h2%u.32\t%12-15,22Q, %16-19,7Q, %0-3,5Q"},
1405 {ARM_FEATURE_COPROC (FPU_CRYPTO_EXT_ARMV8
),
1406 0xf3200c40, 0xffb00f50, "sha256su1%u.32\t%12-15,22Q, %16-19,7Q, %0-3,5Q"},
1407 {ARM_FEATURE_COPROC (FPU_NEON_EXT_ARMV8
),
1408 0xf3000f10, 0xffb00f10, "vmaxnm%u.f32\t%12-15,22R, %16-19,7R, %0-3,5R"},
1409 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1410 0xf3100f10, 0xffb00f10, "vmaxnm%u.f16\t%12-15,22R, %16-19,7R, %0-3,5R"},
1411 {ARM_FEATURE_COPROC (FPU_NEON_EXT_ARMV8
),
1412 0xf3200f10, 0xffb00f10, "vminnm%u.f32\t%12-15,22R, %16-19,7R, %0-3,5R"},
1413 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1414 0xf3300f10, 0xffb00f10, "vminnm%u.f16\t%12-15,22R, %16-19,7R, %0-3,5R"},
1415 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1416 0xf2000110, 0xffb00f10, "vand%c\t%12-15,22R, %16-19,7R, %0-3,5R"},
1417 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1418 0xf2100110, 0xffb00f10, "vbic%c\t%12-15,22R, %16-19,7R, %0-3,5R"},
1419 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1420 0xf2200110, 0xffb00f10, "vorr%c\t%12-15,22R, %16-19,7R, %0-3,5R"},
1421 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1422 0xf2300110, 0xffb00f10, "vorn%c\t%12-15,22R, %16-19,7R, %0-3,5R"},
1423 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1424 0xf3000110, 0xffb00f10, "veor%c\t%12-15,22R, %16-19,7R, %0-3,5R"},
1425 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1426 0xf3100110, 0xffb00f10, "vbsl%c\t%12-15,22R, %16-19,7R, %0-3,5R"},
1427 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1428 0xf3200110, 0xffb00f10, "vbit%c\t%12-15,22R, %16-19,7R, %0-3,5R"},
1429 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1430 0xf3300110, 0xffb00f10, "vbif%c\t%12-15,22R, %16-19,7R, %0-3,5R"},
1431 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1432 0xf2000d00, 0xffb00f10, "vadd%c.f32\t%12-15,22R, %16-19,7R, %0-3,5R"},
1433 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1434 0xf2100d00, 0xffb00f10, "vadd%c.f16\t%12-15,22R, %16-19,7R, %0-3,5R"},
1435 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1436 0xf2000d10, 0xffb00f10, "vmla%c.f32\t%12-15,22R, %16-19,7R, %0-3,5R"},
1437 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1438 0xf2100d10, 0xffb00f10, "vmla%c.f16\t%12-15,22R, %16-19,7R, %0-3,5R"},
1439 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1440 0xf2000e00, 0xffb00f10, "vceq%c.f32\t%12-15,22R, %16-19,7R, %0-3,5R"},
1441 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1442 0xf2100e00, 0xffb00f10, "vceq%c.f16\t%12-15,22R, %16-19,7R, %0-3,5R"},
1443 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1444 0xf2000f00, 0xffb00f10, "vmax%c.f32\t%12-15,22R, %16-19,7R, %0-3,5R"},
1445 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1446 0xf2100f00, 0xffb00f10, "vmax%c.f16\t%12-15,22R, %16-19,7R, %0-3,5R"},
1447 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1448 0xf2000f10, 0xffb00f10, "vrecps%c.f32\t%12-15,22R, %16-19,7R, %0-3,5R"},
1449 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1450 0xf2100f10, 0xffb00f10, "vrecps%c.f16\t%12-15,22R, %16-19,7R, %0-3,5R"},
1451 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1452 0xf2200d00, 0xffb00f10, "vsub%c.f32\t%12-15,22R, %16-19,7R, %0-3,5R"},
1453 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1454 0xf2300d00, 0xffb00f10, "vsub%c.f16\t%12-15,22R, %16-19,7R, %0-3,5R"},
1455 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1456 0xf2200d10, 0xffb00f10, "vmls%c.f32\t%12-15,22R, %16-19,7R, %0-3,5R"},
1457 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1458 0xf2300d10, 0xffb00f10, "vmls%c.f16\t%12-15,22R, %16-19,7R, %0-3,5R"},
1459 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1460 0xf2200f00, 0xffb00f10, "vmin%c.f32\t%12-15,22R, %16-19,7R, %0-3,5R"},
1461 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1462 0xf2300f00, 0xffb00f10, "vmin%c.f16\t%12-15,22R, %16-19,7R, %0-3,5R"},
1463 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1464 0xf2200f10, 0xffb00f10, "vrsqrts%c.f32\t%12-15,22R, %16-19,7R, %0-3,5R"},
1465 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1466 0xf2300f10, 0xffb00f10, "vrsqrts%c.f16\t%12-15,22R, %16-19,7R, %0-3,5R"},
1467 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1468 0xf3000d00, 0xffb00f10, "vpadd%c.f32\t%12-15,22R, %16-19,7R, %0-3,5R"},
1469 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1470 0xf3100d00, 0xffb00f10, "vpadd%c.f16\t%12-15,22R, %16-19,7R, %0-3,5R"},
1471 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1472 0xf3000d10, 0xffb00f10, "vmul%c.f32\t%12-15,22R, %16-19,7R, %0-3,5R"},
1473 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1474 0xf3100d10, 0xffb00f10, "vmul%c.f16\t%12-15,22R, %16-19,7R, %0-3,5R"},
1475 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1476 0xf3000e00, 0xffb00f10, "vcge%c.f32\t%12-15,22R, %16-19,7R, %0-3,5R"},
1477 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1478 0xf3100e00, 0xffb00f10, "vcge%c.f16\t%12-15,22R, %16-19,7R, %0-3,5R"},
1479 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1480 0xf3000e10, 0xffb00f10, "vacge%c.f32\t%12-15,22R, %16-19,7R, %0-3,5R"},
1481 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1482 0xf3100e10, 0xffb00f10, "vacge%c.f16\t%12-15,22R, %16-19,7R, %0-3,5R"},
1483 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1484 0xf3000f00, 0xffb00f10, "vpmax%c.f32\t%12-15,22R, %16-19,7R, %0-3,5R"},
1485 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1486 0xf3100f00, 0xffb00f10, "vpmax%c.f16\t%12-15,22R, %16-19,7R, %0-3,5R"},
1487 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1488 0xf3200d00, 0xffb00f10, "vabd%c.f32\t%12-15,22R, %16-19,7R, %0-3,5R"},
1489 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1490 0xf3300d00, 0xffb00f10, "vabd%c.f16\t%12-15,22R, %16-19,7R, %0-3,5R"},
1491 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1492 0xf3200e00, 0xffb00f10, "vcgt%c.f32\t%12-15,22R, %16-19,7R, %0-3,5R"},
1493 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1494 0xf3300e00, 0xffb00f10, "vcgt%c.f16\t%12-15,22R, %16-19,7R, %0-3,5R"},
1495 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1496 0xf3200e10, 0xffb00f10, "vacgt%c.f32\t%12-15,22R, %16-19,7R, %0-3,5R"},
1497 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1498 0xf3300e10, 0xffb00f10, "vacgt%c.f16\t%12-15,22R, %16-19,7R, %0-3,5R"},
1499 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1500 0xf3200f00, 0xffb00f10, "vpmin%c.f32\t%12-15,22R, %16-19,7R, %0-3,5R"},
1501 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1502 0xf3300f00, 0xffb00f10, "vpmin%c.f16\t%12-15,22R, %16-19,7R, %0-3,5R"},
1503 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1504 0xf2000800, 0xff800f10, "vadd%c.i%20-21S3\t%12-15,22R, %16-19,7R, %0-3,5R"},
1505 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1506 0xf2000810, 0xff800f10, "vtst%c.%20-21S2\t%12-15,22R, %16-19,7R, %0-3,5R"},
1507 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1508 0xf2000900, 0xff800f10, "vmla%c.i%20-21S2\t%12-15,22R, %16-19,7R, %0-3,5R"},
1509 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1510 0xf2000b00, 0xff800f10,
1511 "vqdmulh%c.s%20-21S6\t%12-15,22R, %16-19,7R, %0-3,5R"},
1512 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1513 0xf2000b10, 0xff800f10,
1514 "vpadd%c.i%20-21S2\t%12-15,22R, %16-19,7R, %0-3,5R"},
1515 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1516 0xf3000800, 0xff800f10, "vsub%c.i%20-21S3\t%12-15,22R, %16-19,7R, %0-3,5R"},
1517 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1518 0xf3000810, 0xff800f10, "vceq%c.i%20-21S2\t%12-15,22R, %16-19,7R, %0-3,5R"},
1519 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1520 0xf3000900, 0xff800f10, "vmls%c.i%20-21S2\t%12-15,22R, %16-19,7R, %0-3,5R"},
1521 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1522 0xf3000b00, 0xff800f10,
1523 "vqrdmulh%c.s%20-21S6\t%12-15,22R, %16-19,7R, %0-3,5R"},
1524 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1525 0xf2000000, 0xfe800f10,
1526 "vhadd%c.%24?us%20-21S2\t%12-15,22R, %16-19,7R, %0-3,5R"},
1527 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1528 0xf2000010, 0xfe800f10,
1529 "vqadd%c.%24?us%20-21S3\t%12-15,22R, %16-19,7R, %0-3,5R"},
1530 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1531 0xf2000100, 0xfe800f10,
1532 "vrhadd%c.%24?us%20-21S2\t%12-15,22R, %16-19,7R, %0-3,5R"},
1533 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1534 0xf2000200, 0xfe800f10,
1535 "vhsub%c.%24?us%20-21S2\t%12-15,22R, %16-19,7R, %0-3,5R"},
1536 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1537 0xf2000210, 0xfe800f10,
1538 "vqsub%c.%24?us%20-21S3\t%12-15,22R, %16-19,7R, %0-3,5R"},
1539 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1540 0xf2000300, 0xfe800f10,
1541 "vcgt%c.%24?us%20-21S2\t%12-15,22R, %16-19,7R, %0-3,5R"},
1542 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1543 0xf2000310, 0xfe800f10,
1544 "vcge%c.%24?us%20-21S2\t%12-15,22R, %16-19,7R, %0-3,5R"},
1545 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1546 0xf2000400, 0xfe800f10,
1547 "vshl%c.%24?us%20-21S3\t%12-15,22R, %0-3,5R, %16-19,7R"},
1548 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1549 0xf2000410, 0xfe800f10,
1550 "vqshl%c.%24?us%20-21S3\t%12-15,22R, %0-3,5R, %16-19,7R"},
1551 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1552 0xf2000500, 0xfe800f10,
1553 "vrshl%c.%24?us%20-21S3\t%12-15,22R, %0-3,5R, %16-19,7R"},
1554 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1555 0xf2000510, 0xfe800f10,
1556 "vqrshl%c.%24?us%20-21S3\t%12-15,22R, %0-3,5R, %16-19,7R"},
1557 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1558 0xf2000600, 0xfe800f10,
1559 "vmax%c.%24?us%20-21S2\t%12-15,22R, %16-19,7R, %0-3,5R"},
1560 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1561 0xf2000610, 0xfe800f10,
1562 "vmin%c.%24?us%20-21S2\t%12-15,22R, %16-19,7R, %0-3,5R"},
1563 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1564 0xf2000700, 0xfe800f10,
1565 "vabd%c.%24?us%20-21S2\t%12-15,22R, %16-19,7R, %0-3,5R"},
1566 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1567 0xf2000710, 0xfe800f10,
1568 "vaba%c.%24?us%20-21S2\t%12-15,22R, %16-19,7R, %0-3,5R"},
1569 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1570 0xf2000910, 0xfe800f10,
1571 "vmul%c.%24?pi%20-21S2\t%12-15,22R, %16-19,7R, %0-3,5R"},
1572 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1573 0xf2000a00, 0xfe800f10,
1574 "vpmax%c.%24?us%20-21S2\t%12-15,22R, %16-19,7R, %0-3,5R"},
1575 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1576 0xf2000a10, 0xfe800f10,
1577 "vpmin%c.%24?us%20-21S2\t%12-15,22R, %16-19,7R, %0-3,5R"},
1578 {ARM_FEATURE_COPROC (FPU_NEON_EXT_RDMA
),
1579 0xf3000b10, 0xff800f10,
1580 "vqrdmlah%c.s%20-21S6\t%12-15,22R, %16-19,7R, %0-3,5R"},
1581 {ARM_FEATURE_COPROC (FPU_NEON_EXT_RDMA
),
1582 0xf3000c10, 0xff800f10,
1583 "vqrdmlsh%c.s%20-21S6\t%12-15,22R, %16-19,7R, %0-3,5R"},
1585 /* One register and an immediate value. */
1586 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1587 0xf2800e10, 0xfeb80fb0, "vmov%c.i8\t%12-15,22R, %E"},
1588 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1589 0xf2800e30, 0xfeb80fb0, "vmov%c.i64\t%12-15,22R, %E"},
1590 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1591 0xf2800f10, 0xfeb80fb0, "vmov%c.f32\t%12-15,22R, %E"},
1592 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1593 0xf2800810, 0xfeb80db0, "vmov%c.i16\t%12-15,22R, %E"},
1594 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1595 0xf2800830, 0xfeb80db0, "vmvn%c.i16\t%12-15,22R, %E"},
1596 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1597 0xf2800910, 0xfeb80db0, "vorr%c.i16\t%12-15,22R, %E"},
1598 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1599 0xf2800930, 0xfeb80db0, "vbic%c.i16\t%12-15,22R, %E"},
1600 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1601 0xf2800c10, 0xfeb80eb0, "vmov%c.i32\t%12-15,22R, %E"},
1602 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1603 0xf2800c30, 0xfeb80eb0, "vmvn%c.i32\t%12-15,22R, %E"},
1604 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1605 0xf2800110, 0xfeb809b0, "vorr%c.i32\t%12-15,22R, %E"},
1606 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1607 0xf2800130, 0xfeb809b0, "vbic%c.i32\t%12-15,22R, %E"},
1608 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1609 0xf2800010, 0xfeb808b0, "vmov%c.i32\t%12-15,22R, %E"},
1610 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1611 0xf2800030, 0xfeb808b0, "vmvn%c.i32\t%12-15,22R, %E"},
1613 /* Two registers and a shift amount. */
1614 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1615 0xf2880810, 0xffb80fd0, "vshrn%c.i16\t%12-15,22D, %0-3,5Q, %{I:#%16-18e%}"},
1616 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1617 0xf2880850, 0xffb80fd0, "vrshrn%c.i16\t%12-15,22D, %0-3,5Q, %{I:#%16-18e%}"},
1618 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1619 0xf2880810, 0xfeb80fd0, "vqshrun%c.s16\t%12-15,22D, %0-3,5Q, %{I:#%16-18e%}"},
1620 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1621 0xf2880850, 0xfeb80fd0, "vqrshrun%c.s16\t%12-15,22D, %0-3,5Q, %{I:#%16-18e%}"},
1622 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1623 0xf2880910, 0xfeb80fd0, "vqshrn%c.%24?us16\t%12-15,22D, %0-3,5Q, %{I:#%16-18e%}"},
1624 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1625 0xf2880950, 0xfeb80fd0,
1626 "vqrshrn%c.%24?us16\t%12-15,22D, %0-3,5Q, %{I:#%16-18e%}"},
1627 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1628 0xf2880a10, 0xfeb80fd0, "vshll%c.%24?us8\t%12-15,22Q, %0-3,5D, %{I:#%16-18d%}"},
1629 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1630 0xf2900810, 0xffb00fd0, "vshrn%c.i32\t%12-15,22D, %0-3,5Q, %{I:#%16-19e%}"},
1631 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1632 0xf2900850, 0xffb00fd0, "vrshrn%c.i32\t%12-15,22D, %0-3,5Q, %{I:#%16-19e%}"},
1633 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1634 0xf2880510, 0xffb80f90, "vshl%c.%24?us8\t%12-15,22R, %0-3,5R, %{I:#%16-18d%}"},
1635 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1636 0xf3880410, 0xffb80f90, "vsri%c.8\t%12-15,22R, %0-3,5R, %{I:#%16-18e%}"},
1637 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1638 0xf3880510, 0xffb80f90, "vsli%c.8\t%12-15,22R, %0-3,5R, %{I:#%16-18d%}"},
1639 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1640 0xf3880610, 0xffb80f90, "vqshlu%c.s8\t%12-15,22R, %0-3,5R, %{I:#%16-18d%}"},
1641 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1642 0xf2900810, 0xfeb00fd0, "vqshrun%c.s32\t%12-15,22D, %0-3,5Q, %{I:#%16-19e%}"},
1643 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1644 0xf2900850, 0xfeb00fd0, "vqrshrun%c.s32\t%12-15,22D, %0-3,5Q, %{I:#%16-19e%}"},
1645 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1646 0xf2900910, 0xfeb00fd0, "vqshrn%c.%24?us32\t%12-15,22D, %0-3,5Q, %{I:#%16-19e%}"},
1647 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1648 0xf2900950, 0xfeb00fd0,
1649 "vqrshrn%c.%24?us32\t%12-15,22D, %0-3,5Q, %{I:#%16-19e%}"},
1650 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1651 0xf2900a10, 0xfeb00fd0, "vshll%c.%24?us16\t%12-15,22Q, %0-3,5D, %{I:#%16-19d%}"},
1652 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1653 0xf2880010, 0xfeb80f90, "vshr%c.%24?us8\t%12-15,22R, %0-3,5R, %{I:#%16-18e%}"},
1654 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1655 0xf2880110, 0xfeb80f90, "vsra%c.%24?us8\t%12-15,22R, %0-3,5R, %{I:#%16-18e%}"},
1656 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1657 0xf2880210, 0xfeb80f90, "vrshr%c.%24?us8\t%12-15,22R, %0-3,5R, %{I:#%16-18e%}"},
1658 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1659 0xf2880310, 0xfeb80f90, "vrsra%c.%24?us8\t%12-15,22R, %0-3,5R, %{I:#%16-18e%}"},
1660 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1661 0xf2880710, 0xfeb80f90, "vqshl%c.%24?us8\t%12-15,22R, %0-3,5R, %{I:#%16-18d%}"},
1662 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1663 0xf2a00810, 0xffa00fd0, "vshrn%c.i64\t%12-15,22D, %0-3,5Q, %{I:#%16-20e%}"},
1664 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1665 0xf2a00850, 0xffa00fd0, "vrshrn%c.i64\t%12-15,22D, %0-3,5Q, %{I:#%16-20e%}"},
1666 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1667 0xf2900510, 0xffb00f90, "vshl%c.%24?us16\t%12-15,22R, %0-3,5R, %{I:#%16-19d%}"},
1668 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1669 0xf3900410, 0xffb00f90, "vsri%c.16\t%12-15,22R, %0-3,5R, %{I:#%16-19e%}"},
1670 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1671 0xf3900510, 0xffb00f90, "vsli%c.16\t%12-15,22R, %0-3,5R, %{I:#%16-19d%}"},
1672 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1673 0xf3900610, 0xffb00f90, "vqshlu%c.s16\t%12-15,22R, %0-3,5R, %{I:#%16-19d%}"},
1674 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1675 0xf2a00a10, 0xfea00fd0, "vshll%c.%24?us32\t%12-15,22Q, %0-3,5D, %{I:#%16-20d%}"},
1676 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1677 0xf2900010, 0xfeb00f90, "vshr%c.%24?us16\t%12-15,22R, %0-3,5R, %{I:#%16-19e%}"},
1678 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1679 0xf2900110, 0xfeb00f90, "vsra%c.%24?us16\t%12-15,22R, %0-3,5R, %{I:#%16-19e%}"},
1680 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1681 0xf2900210, 0xfeb00f90, "vrshr%c.%24?us16\t%12-15,22R, %0-3,5R, %{I:#%16-19e%}"},
1682 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1683 0xf2900310, 0xfeb00f90, "vrsra%c.%24?us16\t%12-15,22R, %0-3,5R, %{I:#%16-19e%}"},
1684 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1685 0xf2900710, 0xfeb00f90, "vqshl%c.%24?us16\t%12-15,22R, %0-3,5R, %{I:#%16-19d%}"},
1686 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1687 0xf2a00810, 0xfea00fd0, "vqshrun%c.s64\t%12-15,22D, %0-3,5Q, %{I:#%16-20e%}"},
1688 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1689 0xf2a00850, 0xfea00fd0, "vqrshrun%c.s64\t%12-15,22D, %0-3,5Q, %{I:#%16-20e%}"},
1690 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1691 0xf2a00910, 0xfea00fd0, "vqshrn%c.%24?us64\t%12-15,22D, %0-3,5Q, %{I:#%16-20e%}"},
1692 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1693 0xf2a00950, 0xfea00fd0,
1694 "vqrshrn%c.%24?us64\t%12-15,22D, %0-3,5Q, %{I:#%16-20e%}"},
1695 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1696 0xf2a00510, 0xffa00f90, "vshl%c.%24?us32\t%12-15,22R, %0-3,5R, %{I:#%16-20d%}"},
1697 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1698 0xf3a00410, 0xffa00f90, "vsri%c.32\t%12-15,22R, %0-3,5R, %{I:#%16-20e%}"},
1699 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1700 0xf3a00510, 0xffa00f90, "vsli%c.32\t%12-15,22R, %0-3,5R, %{I:#%16-20d%}"},
1701 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1702 0xf3a00610, 0xffa00f90, "vqshlu%c.s32\t%12-15,22R, %0-3,5R, %{I:#%16-20d%}"},
1703 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1704 0xf2a00010, 0xfea00f90, "vshr%c.%24?us32\t%12-15,22R, %0-3,5R, %{I:#%16-20e%}"},
1705 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1706 0xf2a00110, 0xfea00f90, "vsra%c.%24?us32\t%12-15,22R, %0-3,5R, %{I:#%16-20e%}"},
1707 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1708 0xf2a00210, 0xfea00f90, "vrshr%c.%24?us32\t%12-15,22R, %0-3,5R, %{I:#%16-20e%}"},
1709 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1710 0xf2a00310, 0xfea00f90, "vrsra%c.%24?us32\t%12-15,22R, %0-3,5R, %{I:#%16-20e%}"},
1711 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1712 0xf2a00710, 0xfea00f90, "vqshl%c.%24?us32\t%12-15,22R, %0-3,5R, %{I:#%16-20d%}"},
1713 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1714 0xf2800590, 0xff800f90, "vshl%c.%24?us64\t%12-15,22R, %0-3,5R, %{I:#%16-21d%}"},
1715 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1716 0xf3800490, 0xff800f90, "vsri%c.64\t%12-15,22R, %0-3,5R, %{I:#%16-21e%}"},
1717 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1718 0xf3800590, 0xff800f90, "vsli%c.64\t%12-15,22R, %0-3,5R, %{I:#%16-21d%}"},
1719 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1720 0xf3800690, 0xff800f90, "vqshlu%c.s64\t%12-15,22R, %0-3,5R, %{I:#%16-21d%}"},
1721 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1722 0xf2800090, 0xfe800f90, "vshr%c.%24?us64\t%12-15,22R, %0-3,5R, %{I:#%16-21e%}"},
1723 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1724 0xf2800190, 0xfe800f90, "vsra%c.%24?us64\t%12-15,22R, %0-3,5R, %{I:#%16-21e%}"},
1725 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1726 0xf2800290, 0xfe800f90, "vrshr%c.%24?us64\t%12-15,22R, %0-3,5R, %{I:#%16-21e%}"},
1727 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1728 0xf2800390, 0xfe800f90, "vrsra%c.%24?us64\t%12-15,22R, %0-3,5R, %{I:#%16-21e%}"},
1729 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1730 0xf2800790, 0xfe800f90, "vqshl%c.%24?us64\t%12-15,22R, %0-3,5R, %{I:#%16-21d%}"},
1731 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1732 0xf2a00e10, 0xfea00e90,
1733 "vcvt%c.%24,8?usff32.%24,8?ffus32\t%12-15,22R, %0-3,5R, %{I:#%16-20e%}"},
1734 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
),
1735 0xf2a00c10, 0xfea00e90,
1736 "vcvt%c.%24,8?usff16.%24,8?ffus16\t%12-15,22R, %0-3,5R, %{I:#%16-20e%}"},
1738 /* Three registers of different lengths. */
1739 {ARM_FEATURE_COPROC (FPU_CRYPTO_EXT_ARMV8
),
1740 0xf2a00e00, 0xfeb00f50, "vmull%c.p64\t%12-15,22Q, %16-19,7D, %0-3,5D"},
1741 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1742 0xf2800e00, 0xfea00f50, "vmull%c.p%20S0\t%12-15,22Q, %16-19,7D, %0-3,5D"},
1743 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1744 0xf2800400, 0xff800f50,
1745 "vaddhn%c.i%20-21T2\t%12-15,22D, %16-19,7Q, %0-3,5Q"},
1746 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1747 0xf2800600, 0xff800f50,
1748 "vsubhn%c.i%20-21T2\t%12-15,22D, %16-19,7Q, %0-3,5Q"},
1749 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1750 0xf2800900, 0xff800f50,
1751 "vqdmlal%c.s%20-21S6\t%12-15,22Q, %16-19,7D, %0-3,5D"},
1752 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1753 0xf2800b00, 0xff800f50,
1754 "vqdmlsl%c.s%20-21S6\t%12-15,22Q, %16-19,7D, %0-3,5D"},
1755 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1756 0xf2800d00, 0xff800f50,
1757 "vqdmull%c.s%20-21S6\t%12-15,22Q, %16-19,7D, %0-3,5D"},
1758 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1759 0xf3800400, 0xff800f50,
1760 "vraddhn%c.i%20-21T2\t%12-15,22D, %16-19,7Q, %0-3,5Q"},
1761 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1762 0xf3800600, 0xff800f50,
1763 "vrsubhn%c.i%20-21T2\t%12-15,22D, %16-19,7Q, %0-3,5Q"},
1764 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1765 0xf2800000, 0xfe800f50,
1766 "vaddl%c.%24?us%20-21S2\t%12-15,22Q, %16-19,7D, %0-3,5D"},
1767 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1768 0xf2800100, 0xfe800f50,
1769 "vaddw%c.%24?us%20-21S2\t%12-15,22Q, %16-19,7Q, %0-3,5D"},
1770 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1771 0xf2800200, 0xfe800f50,
1772 "vsubl%c.%24?us%20-21S2\t%12-15,22Q, %16-19,7D, %0-3,5D"},
1773 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1774 0xf2800300, 0xfe800f50,
1775 "vsubw%c.%24?us%20-21S2\t%12-15,22Q, %16-19,7Q, %0-3,5D"},
1776 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1777 0xf2800500, 0xfe800f50,
1778 "vabal%c.%24?us%20-21S2\t%12-15,22Q, %16-19,7D, %0-3,5D"},
1779 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1780 0xf2800700, 0xfe800f50,
1781 "vabdl%c.%24?us%20-21S2\t%12-15,22Q, %16-19,7D, %0-3,5D"},
1782 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1783 0xf2800800, 0xfe800f50,
1784 "vmlal%c.%24?us%20-21S2\t%12-15,22Q, %16-19,7D, %0-3,5D"},
1785 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1786 0xf2800a00, 0xfe800f50,
1787 "vmlsl%c.%24?us%20-21S2\t%12-15,22Q, %16-19,7D, %0-3,5D"},
1788 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1789 0xf2800c00, 0xfe800f50,
1790 "vmull%c.%24?us%20-21S2\t%12-15,22Q, %16-19,7D, %0-3,5D"},
1792 /* Two registers and a scalar. */
1793 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1794 0xf2800040, 0xff800f50, "vmla%c.i%20-21S6\t%12-15,22D, %16-19,7D, %D"},
1795 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1796 0xf2800140, 0xff900f50, "vmla%c.f%20-21Sa\t%12-15,22D, %16-19,7D, %D"},
1797 {ARM_FEATURE_COPROC (ARM_EXT2_FP16_INST
),
1798 0xf2900140, 0xffb00f50, "vmla%c.f16\t%12-15,22D, %16-19,7D, %D"},
1799 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1800 0xf2800340, 0xff800f50, "vqdmlal%c.s%20-21S6\t%12-15,22Q, %16-19,7D, %D"},
1801 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1802 0xf2800440, 0xff800f50, "vmls%c.i%20-21S6\t%12-15,22D, %16-19,7D, %D"},
1803 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1804 0xf2800540, 0xff900f50, "vmls%c.f%20-21S6\t%12-15,22D, %16-19,7D, %D"},
1805 {ARM_FEATURE_COPROC (ARM_EXT2_FP16_INST
),
1806 0xf2900540, 0xffb00f50, "vmls%c.f16\t%12-15,22D, %16-19,7D, %D"},
1807 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1808 0xf2800740, 0xff800f50, "vqdmlsl%c.s%20-21S6\t%12-15,22Q, %16-19,7D, %D"},
1809 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1810 0xf2800840, 0xff800f50, "vmul%c.i%20-21S6\t%12-15,22D, %16-19,7D, %D"},
1811 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1812 0xf2800940, 0xff900f50, "vmul%c.f%20-21Sa\t%12-15,22D, %16-19,7D, %D"},
1813 {ARM_FEATURE_COPROC (ARM_EXT2_FP16_INST
),
1814 0xf2900940, 0xffb00f50, "vmul%c.f16\t%12-15,22D, %16-19,7D, %D"},
1815 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1816 0xf2800b40, 0xff800f50, "vqdmull%c.s%20-21S6\t%12-15,22Q, %16-19,7D, %D"},
1817 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1818 0xf2800c40, 0xff800f50, "vqdmulh%c.s%20-21S6\t%12-15,22D, %16-19,7D, %D"},
1819 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1820 0xf2800d40, 0xff800f50, "vqrdmulh%c.s%20-21S6\t%12-15,22D, %16-19,7D, %D"},
1821 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1822 0xf3800040, 0xff800f50, "vmla%c.i%20-21S6\t%12-15,22Q, %16-19,7Q, %D"},
1823 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1824 0xf3800140, 0xff900f50, "vmla%c.f%20-21Sa\t%12-15,22Q, %16-19,7Q, %D"},
1825 {ARM_FEATURE_COPROC (ARM_EXT2_FP16_INST
),
1826 0xf3900140, 0xffb00f50, "vmla%c.f16\t%12-15,22Q, %16-19,7Q, %D"},
1827 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1828 0xf3800440, 0xff800f50, "vmls%c.i%20-21S6\t%12-15,22Q, %16-19,7Q, %D"},
1829 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1830 0xf3800540, 0xff900f50, "vmls%c.f%20-21Sa\t%12-15,22Q, %16-19,7Q, %D"},
1831 {ARM_FEATURE_COPROC (ARM_EXT2_FP16_INST
),
1832 0xf3900540, 0xffb00f50, "vmls%c.f16\t%12-15,22Q, %16-19,7Q, %D"},
1833 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1834 0xf3800840, 0xff800f50, "vmul%c.i%20-21S6\t%12-15,22Q, %16-19,7Q, %D"},
1835 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1836 0xf3800940, 0xff900f50, "vmul%c.f%20-21Sa\t%12-15,22Q, %16-19,7Q, %D"},
1837 {ARM_FEATURE_COPROC (ARM_EXT2_FP16_INST
),
1838 0xf3900940, 0xffb00f50, "vmul%c.f16\t%12-15,22Q, %16-19,7Q, %D"},
1839 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1840 0xf3800c40, 0xff800f50, "vqdmulh%c.s%20-21S6\t%12-15,22Q, %16-19,7Q, %D"},
1841 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1842 0xf3800d40, 0xff800f50, "vqrdmulh%c.s%20-21S6\t%12-15,22Q, %16-19,7Q, %D"},
1843 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1844 0xf2800240, 0xfe800f50,
1845 "vmlal%c.%24?us%20-21S6\t%12-15,22Q, %16-19,7D, %D"},
1846 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1847 0xf2800640, 0xfe800f50,
1848 "vmlsl%c.%24?us%20-21S6\t%12-15,22Q, %16-19,7D, %D"},
1849 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1850 0xf2800a40, 0xfe800f50,
1851 "vmull%c.%24?us%20-21S6\t%12-15,22Q, %16-19,7D, %D"},
1852 {ARM_FEATURE_COPROC (FPU_NEON_EXT_RDMA
),
1853 0xf2800e40, 0xff800f50,
1854 "vqrdmlah%c.s%20-21S6\t%12-15,22D, %16-19,7D, %D"},
1855 {ARM_FEATURE_COPROC (FPU_NEON_EXT_RDMA
),
1856 0xf2800f40, 0xff800f50,
1857 "vqrdmlsh%c.s%20-21S6\t%12-15,22D, %16-19,7D, %D"},
1858 {ARM_FEATURE_COPROC (FPU_NEON_EXT_RDMA
),
1859 0xf3800e40, 0xff800f50,
1860 "vqrdmlah%c.s%20-21S6\t%12-15,22Q, %16-19,7Q, %D"},
1861 {ARM_FEATURE_COPROC (FPU_NEON_EXT_RDMA
),
1862 0xf3800f40, 0xff800f50,
1863 "vqrdmlsh%c.s%20-21S6\t%12-15,22Q, %16-19,7Q, %D"
1866 /* Element and structure load/store. */
1867 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1868 0xf4a00fc0, 0xffb00fc0, "vld4%c.32\t%C"},
1869 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1870 0xf4a00c00, 0xffb00f00, "vld1%c.%6-7S2\t%C"},
1871 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1872 0xf4a00d00, 0xffb00f00, "vld2%c.%6-7S2\t%C"},
1873 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1874 0xf4a00e00, 0xffb00f00, "vld3%c.%6-7S2\t%C"},
1875 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1876 0xf4a00f00, 0xffb00f00, "vld4%c.%6-7S2\t%C"},
1877 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1878 0xf4000200, 0xff900f00, "v%21?ls%21?dt1%c.%6-7S3\t%A"},
1879 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1880 0xf4000300, 0xff900f00, "v%21?ls%21?dt2%c.%6-7S2\t%A"},
1881 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1882 0xf4000400, 0xff900f00, "v%21?ls%21?dt3%c.%6-7S2\t%A"},
1883 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1884 0xf4000500, 0xff900f00, "v%21?ls%21?dt3%c.%6-7S2\t%A"},
1885 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1886 0xf4000600, 0xff900f00, "v%21?ls%21?dt1%c.%6-7S3\t%A"},
1887 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1888 0xf4000700, 0xff900f00, "v%21?ls%21?dt1%c.%6-7S3\t%A"},
1889 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1890 0xf4000800, 0xff900f00, "v%21?ls%21?dt2%c.%6-7S2\t%A"},
1891 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1892 0xf4000900, 0xff900f00, "v%21?ls%21?dt2%c.%6-7S2\t%A"},
1893 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1894 0xf4000a00, 0xff900f00, "v%21?ls%21?dt1%c.%6-7S3\t%A"},
1895 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1896 0xf4000000, 0xff900e00, "v%21?ls%21?dt4%c.%6-7S2\t%A"},
1897 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1898 0xf4800000, 0xff900300, "v%21?ls%21?dt1%c.%10-11S2\t%B"},
1899 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1900 0xf4800100, 0xff900300, "v%21?ls%21?dt2%c.%10-11S2\t%B"},
1901 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1902 0xf4800200, 0xff900300, "v%21?ls%21?dt3%c.%10-11S2\t%B"},
1903 {ARM_FEATURE_COPROC (FPU_NEON_EXT_V1
),
1904 0xf4800300, 0xff900300, "v%21?ls%21?dt4%c.%10-11S2\t%B"},
1906 {ARM_FEATURE_CORE_LOW (0), 0 ,0, 0}
1909 /* mve opcode table. */
1911 /* print_insn_mve recognizes the following format control codes:
1915 %a print '+' or '-' or imm offset in vldr[bhwd] and
1917 %c print condition code
1918 %d print addr mode of MVE vldr[bhw] and vstr[bhw]
1919 %u print 'U' (unsigned) or 'S' for various mve instructions
1920 %i print MVE predicate(s) for vpt and vpst
1921 %j print a 5-bit immediate from hw2[14:12,7:6]
1922 %k print 48 if the 7th position bit is set else print 64.
1923 %m print rounding mode for vcvt and vrint
1924 %n print vector comparison code for predicated instruction
1925 %s print size for various vcvt instructions
1926 %v print vector predicate for instruction in predicated
1928 %o print offset scaled for vldr[hwd] and vstr[hwd]
1929 %w print writeback mode for MVE v{st,ld}[24]
1930 %B print v{st,ld}[24] any one operands
1931 %E print vmov, vmvn, vorr, vbic encoded constant
1932 %N print generic index for vmov
1933 %T print bottom ('b') or top ('t') of source register
1934 %X print exchange field in vmla* instructions
1936 %<bitfield>r print as an ARM register
1937 %<bitfield>d print the bitfield in decimal
1938 %<bitfield>A print accumulate or not
1939 %<bitfield>c print bitfield as a condition code
1940 %<bitfield>C print bitfield as an inverted condition code
1941 %<bitfield>Q print as a MVE Q register
1942 %<bitfield>F print as a MVE S register
1943 %<bitfield>Z as %<>r but r15 is ZR instead of PC and r13 is
1946 %<bitfield>S as %<>r but r15 or r13 is UNPREDICTABLE
1947 %<bitfield>s print size for vector predicate & non VMOV instructions
1948 %<bitfield>I print carry flag or not
1949 %<bitfield>i print immediate for vstr/vldr reg +/- imm
1950 %<bitfield>h print high half of 64-bit destination reg
1951 %<bitfield>k print immediate for vector conversion instruction
1952 %<bitfield>l print low half of 64-bit destination reg
1953 %<bitfield>o print rotate value for vcmul
1954 %<bitfield>u print immediate value for vddup/vdwdup
1955 %<bitfield>x print the bitfield in hex.
1958 static const struct mopcode32 mve_opcodes
[] =
1962 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
1964 0xfe310f4d, 0xffbf1fff,
1968 /* Floating point VPT T1. */
1969 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE_FP
),
1971 0xee310f00, 0xefb10f50,
1972 "vpt%i.f%28s\t%n, %17-19Q, %1-3,5Q"},
1973 /* Floating point VPT T2. */
1974 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE_FP
),
1976 0xee310f40, 0xefb10f50,
1977 "vpt%i.f%28s\t%n, %17-19Q, %0-3Z"},
1979 /* Vector VPT T1. */
1980 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
1982 0xfe010f00, 0xff811f51,
1983 "vpt%i.i%20-21s\t%n, %17-19Q, %1-3,5Q"},
1984 /* Vector VPT T2. */
1985 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
1987 0xfe010f01, 0xff811f51,
1988 "vpt%i.u%20-21s\t%n, %17-19Q, %1-3,5Q"},
1989 /* Vector VPT T3. */
1990 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
1992 0xfe011f00, 0xff811f50,
1993 "vpt%i.s%20-21s\t%n, %17-19Q, %1-3,5Q"},
1994 /* Vector VPT T4. */
1995 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
1997 0xfe010f40, 0xff811f70,
1998 "vpt%i.i%20-21s\t%n, %17-19Q, %0-3Z"},
1999 /* Vector VPT T5. */
2000 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2002 0xfe010f60, 0xff811f70,
2003 "vpt%i.u%20-21s\t%n, %17-19Q, %0-3Z"},
2004 /* Vector VPT T6. */
2005 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2007 0xfe011f40, 0xff811f50,
2008 "vpt%i.s%20-21s\t%n, %17-19Q, %0-3Z"},
2010 /* Vector VBIC immediate. */
2011 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2013 0xef800070, 0xefb81070,
2014 "vbic%v.i%8-11s\t%13-15,22Q, %E"},
2016 /* Vector VBIC register. */
2017 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2019 0xef100150, 0xffb11f51,
2020 "vbic%v\t%13-15,22Q, %17-19,7Q, %1-3,5Q"},
2023 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2025 0xee800f01, 0xefc10f51,
2026 "vabav%v.%u%20-21s\t%12-15r, %17-19,7Q, %1-3,5Q"},
2028 /* Vector VABD floating point. */
2029 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE_FP
),
2031 0xff200d40, 0xffa11f51,
2032 "vabd%v.f%20s\t%13-15,22Q, %17-19,7Q, %1-3,5Q"},
2035 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2037 0xef000740, 0xef811f51,
2038 "vabd%v.%u%20-21s\t%13-15,22Q, %17-19,7Q, %1-3,5Q"},
2040 /* Vector VABS floating point. */
2041 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE_FP
),
2043 0xFFB10740, 0xFFB31FD1,
2044 "vabs%v.f%18-19s\t%13-15,22Q, %1-3,5Q"},
2046 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2048 0xffb10340, 0xffb31fd1,
2049 "vabs%v.s%18-19s\t%13-15,22Q, %1-3,5Q"},
2051 /* Vector VADD floating point T1. */
2052 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE_FP
),
2054 0xef000d40, 0xffa11f51,
2055 "vadd%v.f%20s\t%13-15,22Q, %17-19,7Q, %1-3,5Q"},
2056 /* Vector VADD floating point T2. */
2057 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE_FP
),
2059 0xee300f40, 0xefb11f70,
2060 "vadd%v.f%28s\t%13-15,22Q, %17-19,7Q, %0-3r"},
2061 /* Vector VADD T1. */
2062 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2064 0xef000840, 0xff811f51,
2065 "vadd%v.i%20-21s\t%13-15,22Q, %17-19,7Q, %1-3,5Q"},
2066 /* Vector VADD T2. */
2067 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2069 0xee010f40, 0xff811f70,
2070 "vadd%v.i%20-21s\t%13-15,22Q, %17-19,7Q, %0-3r"},
2072 /* Vector VADDLV. */
2073 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2075 0xee890f00, 0xef8f1fd1,
2076 "vaddlv%5A%v.%u32\t%13-15l, %20-22h, %1-3Q"},
2079 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2081 0xeef10f00, 0xeff31fd1,
2082 "vaddv%5A%v.%u%18-19s\t%13-15l, %1-3Q"},
2085 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2087 0xee300f00, 0xffb10f51,
2088 "vadc%12I%v.i32\t%13-15,22Q, %17-19,7Q, %1-3,5Q"},
2091 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2093 0xef000150, 0xffb11f51,
2094 "vand%v\t%13-15,22Q, %17-19,7Q, %1-3,5Q"},
2096 /* Vector VBRSR register. */
2097 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2099 0xfe011e60, 0xff811f70,
2100 "vbrsr%v.%20-21s\t%13-15,22Q, %17-19,7Q, %0-3r"},
2102 /* Vector VCADD floating point. */
2103 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE_FP
),
2105 0xfc800840, 0xfea11f51,
2106 "vcadd%v.f%20s\t%13-15,22Q, %17-19,7Q, %1-3,5Q, %{I:#%24o%}"},
2109 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2111 0xfe000f00, 0xff810f51,
2112 "vcadd%v.i%20-21s\t%13-15,22Q, %17-19,7Q, %1-3,5Q, %{I:#%12o%}"},
2115 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2117 0xffb00440, 0xffb31fd1,
2118 "vcls%v.s%18-19s\t%13-15,22Q, %1-3,5Q"},
2121 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2123 0xffb004c0, 0xffb31fd1,
2124 "vclz%v.i%18-19s\t%13-15,22Q, %1-3,5Q"},
2127 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE_FP
),
2129 0xfc200840, 0xfe211f51,
2130 "vcmla%v.f%20s\t%13-15,22Q, %17-19,7Q, %1-3,5Q, %{I:#%23-24o%}"},
2132 /* Vector VCMP floating point T1. */
2133 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE_FP
),
2135 0xee310f00, 0xeff1ef50,
2136 "vcmp%v.f%28s\t%n, %17-19Q, %1-3,5Q"},
2138 /* Vector VCMP floating point T2. */
2139 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE_FP
),
2141 0xee310f40, 0xeff1ef50,
2142 "vcmp%v.f%28s\t%n, %17-19Q, %0-3Z"},
2144 /* Vector VCMP T1. */
2145 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2147 0xfe010f00, 0xffc1ff51,
2148 "vcmp%v.i%20-21s\t%n, %17-19Q, %1-3,5Q"},
2149 /* Vector VCMP T2. */
2150 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2152 0xfe010f01, 0xffc1ff51,
2153 "vcmp%v.u%20-21s\t%n, %17-19Q, %1-3,5Q"},
2154 /* Vector VCMP T3. */
2155 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2157 0xfe011f00, 0xffc1ff50,
2158 "vcmp%v.s%20-21s\t%n, %17-19Q, %1-3,5Q"},
2159 /* Vector VCMP T4. */
2160 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2162 0xfe010f40, 0xffc1ff70,
2163 "vcmp%v.i%20-21s\t%n, %17-19Q, %0-3Z"},
2164 /* Vector VCMP T5. */
2165 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2167 0xfe010f60, 0xffc1ff70,
2168 "vcmp%v.u%20-21s\t%n, %17-19Q, %0-3Z"},
2169 /* Vector VCMP T6. */
2170 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2172 0xfe011f40, 0xffc1ff50,
2173 "vcmp%v.s%20-21s\t%n, %17-19Q, %0-3Z"},
2176 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2178 0xeea00b10, 0xffb10f5f,
2179 "vdup%v.%5,22s\t%17-19,7Q, %12-15r"},
2182 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2184 0xff000150, 0xffd11f51,
2185 "veor%v\t%13-15,22Q, %17-19,7Q, %1-3,5Q"},
2187 /* Vector VFMA, vector * scalar. */
2188 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE_FP
),
2190 0xee310e40, 0xefb11f70,
2191 "vfma%v.f%28s\t%13-15,22Q, %17-19,7Q, %0-3r"},
2193 /* Vector VFMA floating point. */
2194 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE_FP
),
2196 0xef000c50, 0xffa11f51,
2197 "vfma%v.f%20s\t%13-15,22Q, %17-19,7Q, %1-3,5Q"},
2199 /* Vector VFMS floating point. */
2200 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE_FP
),
2202 0xef200c50, 0xffa11f51,
2203 "vfms%v.f%20s\t%13-15,22Q, %17-19,7Q, %1-3,5Q"},
2205 /* Vector VFMAS, vector * scalar. */
2206 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE_FP
),
2207 MVE_VFMAS_FP_SCALAR
,
2208 0xee311e40, 0xefb11f70,
2209 "vfmas%v.f%28s\t%13-15,22Q, %17-19,7Q, %0-3r"},
2211 /* Vector VHADD T1. */
2212 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2214 0xef000040, 0xef811f51,
2215 "vhadd%v.%u%20-21s\t%13-15,22Q, %17-19,7Q, %1-3,5Q"},
2217 /* Vector VHADD T2. */
2218 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2220 0xee000f40, 0xef811f70,
2221 "vhadd%v.%u%20-21s\t%13-15,22Q, %17-19,7Q, %0-3r"},
2223 /* Vector VHSUB T1. */
2224 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2226 0xef000240, 0xef811f51,
2227 "vhsub%v.%u%20-21s\t%13-15,22Q, %17-19,7Q, %1-3,5Q"},
2229 /* Vector VHSUB T2. */
2230 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2232 0xee001f40, 0xef811f70,
2233 "vhsub%v.%u%20-21s\t%13-15,22Q, %17-19,7Q, %0-3r"},
2236 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE_FP
),
2238 0xee300e00, 0xefb10f50,
2239 "vcmul%v.f%28s\t%13-15,22Q, %17-19,7Q, %1-3,5Q, %{I:#%0,12o%}"},
2242 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2244 0xf000e801, 0xffc0ffff,
2245 "vctp%v.%20-21s\t%16-19r"},
2248 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2250 0xeea00b10, 0xffb10f5f,
2251 "vdup%v.%5,22s\t%17-19,7Q, %12-15r"},
2253 /* Vector VRHADD. */
2254 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2256 0xef000140, 0xef811f51,
2257 "vrhadd%v.%u%20-21s\t%13-15,22Q, %17-19,7Q, %1-3,5Q"},
2260 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE_FP
),
2261 MVE_VCVT_FP_FIX_VEC
,
2262 0xef800c50, 0xef801cd1,
2263 "vcvt%v.%s\t%13-15,22Q, %1-3,5Q, %{I:#%16-21k%}"},
2266 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE_FP
),
2267 MVE_VCVT_BETWEEN_FP_INT
,
2268 0xffb30640, 0xffb31e51,
2269 "vcvt%v.%s\t%13-15,22Q, %1-3,5Q"},
2271 /* Vector VCVT between single and half-precision float, bottom half. */
2272 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE_FP
),
2273 MVE_VCVT_FP_HALF_FP
,
2274 0xee3f0e01, 0xefbf1fd1,
2275 "vcvtb%v.%s\t%13-15,22Q, %1-3,5Q"},
2277 /* Vector VCVT between single and half-precision float, top half. */
2278 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE_FP
),
2279 MVE_VCVT_FP_HALF_FP
,
2280 0xee3f1e01, 0xefbf1fd1,
2281 "vcvtt%v.%s\t%13-15,22Q, %1-3,5Q"},
2284 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE_FP
),
2285 MVE_VCVT_FROM_FP_TO_INT
,
2286 0xffb30040, 0xffb31c51,
2287 "vcvt%m%v.%s\t%13-15,22Q, %1-3,5Q"},
2290 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2292 0xee011f6e, 0xff811f7e,
2293 "vddup%v.u%20-21s\t%13-15,22Q, %17-19l, %{I:#%0,7u%}"},
2295 /* Vector VDWDUP. */
2296 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2298 0xee011f60, 0xff811f70,
2299 "vdwdup%v.u%20-21s\t%13-15,22Q, %17-19l, %1-3h, %{I:#%0,7u%}"},
2301 /* Vector VHCADD. */
2302 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2304 0xee000f00, 0xff810f51,
2305 "vhcadd%v.s%20-21s\t%13-15,22Q, %17-19,7Q, %1-3,5Q, %{I:#%12o%}"},
2307 /* Vector VIWDUP. */
2308 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2310 0xee010f60, 0xff811f70,
2311 "viwdup%v.u%20-21s\t%13-15,22Q, %17-19l, %1-3h, %{I:#%0,7u%}"},
2314 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2316 0xee010f6e, 0xff811f7e,
2317 "vidup%v.u%20-21s\t%13-15,22Q, %17-19l, %{I:#%0,7u%}"},
2320 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2322 0xfc901e00, 0xff901e5f,
2323 "vld2%5d.%7-8s\t%B, [%16-19r]%w"},
2326 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2328 0xfc901e01, 0xff901e1f,
2329 "vld4%5-6d.%7-8s\t%B, [%16-19r]%w"},
2331 /* Vector VLDRB gather load. */
2332 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2333 MVE_VLDRB_GATHER_T1
,
2334 0xec900e00, 0xefb01e50,
2335 "vldrb%v.%u%7-8s\t%13-15,22Q, [%16-19r, %1-3,5Q]"},
2337 /* Vector VLDRH gather load. */
2338 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2339 MVE_VLDRH_GATHER_T2
,
2340 0xec900e10, 0xefb01e50,
2341 "vldrh%v.%u%7-8s\t%13-15,22Q, [%16-19r, %1-3,5Q%o]"},
2343 /* Vector VLDRW gather load. */
2344 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2345 MVE_VLDRW_GATHER_T3
,
2346 0xfc900f40, 0xffb01fd0,
2347 "vldrw%v.u32\t%13-15,22Q, [%16-19r, %1-3,5Q%o]"},
2349 /* Vector VLDRD gather load. */
2350 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2351 MVE_VLDRD_GATHER_T4
,
2352 0xec900fd0, 0xefb01fd0,
2353 "vldrd%v.u64\t%13-15,22Q, [%16-19r, %1-3,5Q%o]"},
2355 /* Vector VLDRW gather load. */
2356 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2357 MVE_VLDRW_GATHER_T5
,
2358 0xfd101e00, 0xff111f00,
2359 "vldrw%v.u32\t%13-15,22Q, [%17-19,7Q, %{I:#%a%0-6i%}]%w"},
2361 /* Vector VLDRD gather load, variant T6. */
2362 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2363 MVE_VLDRD_GATHER_T6
,
2364 0xfd101f00, 0xff111f00,
2365 "vldrd%v.u64\t%13-15,22Q, [%17-19,7Q, %{I:#%a%0-6i%}]%w"},
2368 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2370 0xec100e00, 0xee581e00,
2371 "vldrb%v.%u%7-8s\t%13-15Q, %d"},
2374 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2376 0xec180e00, 0xee581e00,
2377 "vldrh%v.%u%7-8s\t%13-15Q, %d"},
2379 /* Vector VLDRB unsigned, variant T5. */
2380 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2382 0xec101e00, 0xfe101f80,
2383 "vldrb%v.u8\t%13-15,22Q, %d"},
2385 /* Vector VLDRH unsigned, variant T6. */
2386 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2388 0xec101e80, 0xfe101f80,
2389 "vldrh%v.u16\t%13-15,22Q, %d"},
2391 /* Vector VLDRW unsigned, variant T7. */
2392 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2394 0xec101f00, 0xfe101f80,
2395 "vldrw%v.u32\t%13-15,22Q, %d"},
2398 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2400 0xef000640, 0xef811f51,
2401 "vmax%v.%u%20-21s\t%13-15,22Q, %17-19,7Q, %1-3,5Q"},
2404 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2406 0xee330e81, 0xffb31fd1,
2407 "vmaxa%v.s%18-19s\t%13-15,22Q, %1-3,5Q"},
2409 /* Vector VMAXNM floating point. */
2410 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE_FP
),
2412 0xff000f50, 0xffa11f51,
2413 "vmaxnm%v.f%20s\t%13-15,22Q, %17-19,7Q, %1-3,5Q"},
2415 /* Vector VMAXNMA floating point. */
2416 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE_FP
),
2418 0xee3f0e81, 0xefbf1fd1,
2419 "vmaxnma%v.f%28s\t%13-15,22Q, %1-3,5Q"},
2421 /* Vector VMAXNMV floating point. */
2422 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE_FP
),
2424 0xeeee0f00, 0xefff0fd1,
2425 "vmaxnmv%v.f%28s\t%12-15r, %1-3,5Q"},
2427 /* Vector VMAXNMAV floating point. */
2428 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE_FP
),
2430 0xeeec0f00, 0xefff0fd1,
2431 "vmaxnmav%v.f%28s\t%12-15r, %1-3,5Q"},
2434 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2436 0xeee20f00, 0xeff30fd1,
2437 "vmaxv%v.%u%18-19s\t%12-15r, %1-3,5Q"},
2439 /* Vector VMAXAV. */
2440 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2442 0xeee00f00, 0xfff30fd1,
2443 "vmaxav%v.s%18-19s\t%12-15r, %1-3,5Q"},
2446 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2448 0xef000650, 0xef811f51,
2449 "vmin%v.%u%20-21s\t%13-15,22Q, %17-19,7Q, %1-3,5Q"},
2452 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2454 0xee331e81, 0xffb31fd1,
2455 "vmina%v.s%18-19s\t%13-15,22Q, %1-3,5Q"},
2457 /* Vector VMINNM floating point. */
2458 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE_FP
),
2460 0xff200f50, 0xffa11f51,
2461 "vminnm%v.f%20s\t%13-15,22Q, %17-19,7Q, %1-3,5Q"},
2463 /* Vector VMINNMA floating point. */
2464 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE_FP
),
2466 0xee3f1e81, 0xefbf1fd1,
2467 "vminnma%v.f%28s\t%13-15,22Q, %1-3,5Q"},
2469 /* Vector VMINNMV floating point. */
2470 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE_FP
),
2472 0xeeee0f80, 0xefff0fd1,
2473 "vminnmv%v.f%28s\t%12-15r, %1-3,5Q"},
2475 /* Vector VMINNMAV floating point. */
2476 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE_FP
),
2478 0xeeec0f80, 0xefff0fd1,
2479 "vminnmav%v.f%28s\t%12-15r, %1-3,5Q"},
2482 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2484 0xeee20f80, 0xeff30fd1,
2485 "vminv%v.%u%18-19s\t%12-15r, %1-3,5Q"},
2487 /* Vector VMINAV. */
2488 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2490 0xeee00f80, 0xfff30fd1,
2491 "vminav%v.s%18-19s\t%12-15r, %1-3,5Q"},
2494 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2496 0xee010e40, 0xef811f70,
2497 "vmla%v.i%20-21s\t%13-15,22Q, %17-19,7Q, %0-3r"},
2499 /* Vector VMLALDAV. Note must appear before VMLADAV due to instruction
2501 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2503 0xee801e00, 0xef801f51,
2504 "vmlaldav%5Ax%v.%u%16s\t%13-15l, %20-22h, %17-19,7Q, %1-3Q"},
2506 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2508 0xee800e00, 0xef801f51,
2509 "vmlalv%5A%v.%u%16s\t%13-15l, %20-22h, %17-19,7Q, %1-3Q"},
2511 /* Vector VMLAV T1 variant, same as VMLADAV but with X == 0. */
2512 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2514 0xeef00e00, 0xeff01f51,
2515 "vmlav%5A%v.%u%16s\t%13-15l, %17-19,7Q, %1-3Q"},
2517 /* Vector VMLAV T2 variant, same as VMLADAV but with X == 0. */
2518 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2520 0xeef00f00, 0xeff11f51,
2521 "vmlav%5A%v.%u8\t%13-15l, %17-19,7Q, %1-3Q"},
2523 /* Vector VMLADAV T1 variant. */
2524 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2526 0xeef01e00, 0xeff01f51,
2527 "vmladav%5Ax%v.%u%16s\t%13-15l, %17-19,7Q, %1-3Q"},
2529 /* Vector VMLADAV T2 variant. */
2530 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2532 0xeef01f00, 0xeff11f51,
2533 "vmladav%5Ax%v.%u8\t%13-15l, %17-19,7Q, %1-3Q"},
2536 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2538 0xee011e40, 0xef811f70,
2539 "vmlas%v.%u%20-21s\t%13-15,22Q, %17-19,7Q, %0-3r"},
2541 /* Vector VRMLSLDAVH. Note must appear before VMLSDAV due to instruction
2543 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2545 0xfe800e01, 0xff810f51,
2546 "vrmlsldavh%5A%X%v.s32\t%13-15l, %20-22h, %17-19,7Q, %1-3Q"},
2548 /* Vector VMLSLDAV. Note must appear before VMLSDAV due to instruction
2550 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2552 0xee800e01, 0xff800f51,
2553 "vmlsldav%5A%X%v.%u%16s\t%13-15l, %20-22h, %17-19,7Q, %1-3Q"},
2555 /* Vector VMLSDAV T1 Variant. */
2556 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2558 0xeef00e01, 0xfff00f51,
2559 "vmlsdav%5A%X%v.s%16s\t%13-15l, %17-19,7Q, %1-3Q"},
2561 /* Vector VMLSDAV T2 Variant. */
2562 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2564 0xfef00e01, 0xfff10f51,
2565 "vmlsdav%5A%X%v.s8\t%13-15l, %17-19,7Q, %1-3Q"},
2567 /* Vector VMOV between gpr and half precision register, op == 0. */
2568 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE_FP
),
2570 0xee000910, 0xfff00f7f,
2571 "vmov.f16\t%7,16-19F, %12-15r"},
2573 /* Vector VMOV between gpr and half precision register, op == 1. */
2574 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE_FP
),
2576 0xee100910, 0xfff00f7f,
2577 "vmov.f16\t%12-15r, %7,16-19F"},
2579 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE_FP
),
2580 MVE_VMOV_GP_TO_VEC_LANE
,
2581 0xee000b10, 0xff900f1f,
2582 "vmov%c.%5-6,21-22s\t%{R:%17-19,7Q[%N]%}, %12-15r"},
2584 /* Vector VORR immediate to vector.
2585 NOTE: MVE_VORR_IMM must appear in the table
2586 before MVE_VMOV_IMM_TO_VEC due to opcode aliasing. */
2587 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2589 0xef800050, 0xefb810f0,
2590 "vorr%v.i%8-11s\t%13-15,22Q, %E"},
2592 /* Vector VQSHL T2 Variant.
2593 NOTE: MVE_VQSHL_T2 must appear in the table before
2594 before MVE_VMOV_IMM_TO_VEC due to opcode aliasing. */
2595 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2597 0xef800750, 0xef801fd1,
2598 "vqshl%v.%u%19-21s\t%13-15,22Q, %1-3,5Q, %{I:#%16-18d%}"},
2600 /* Vector VQSHLU T3 Variant
2601 NOTE: MVE_VQSHL_T2 must appear in the table before
2602 before MVE_VMOV_IMM_TO_VEC due to opcode aliasing. */
2604 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2606 0xff800650, 0xff801fd1,
2607 "vqshlu%v.s%19-21s\t%13-15,22Q, %1-3,5Q, %{I:#%16-18d%}"},
2610 NOTE: MVE_VRSHR must appear in the table before
2611 before MVE_VMOV_IMM_TO_VEC due to opcode aliasing. */
2612 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2614 0xef800250, 0xef801fd1,
2615 "vrshr%v.%u%19-21s\t%13-15,22Q, %1-3,5Q, %{I:#%16-18d%}"},
2618 NOTE: MVE_VSHL must appear in the table before
2619 before MVE_VMOV_IMM_TO_VEC due to opcode aliasing. */
2620 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2622 0xef800550, 0xff801fd1,
2623 "vshl%v.i%19-21s\t%13-15,22Q, %1-3,5Q, %{I:#%16-18d%}"},
2626 NOTE: MVE_VSHR must appear in the table before
2627 before MVE_VMOV_IMM_TO_VEC due to opcode aliasing. */
2628 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2630 0xef800050, 0xef801fd1,
2631 "vshr%v.%u%19-21s\t%13-15,22Q, %1-3,5Q, %{I:#%16-18d%}"},
2634 NOTE: MVE_VSLI must appear in the table before
2635 before MVE_VMOV_IMM_TO_VEC due to opcode aliasing. */
2636 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2638 0xff800550, 0xff801fd1,
2639 "vsli%v.%19-21s\t%13-15,22Q, %1-3,5Q, %{I:#%16-18d%}"},
2642 NOTE: MVE_VSRI must appear in the table before
2643 before MVE_VMOV_IMM_TO_VEC due to opcode aliasing. */
2644 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2646 0xff800450, 0xff801fd1,
2647 "vsri%v.%19-21s\t%13-15,22Q, %1-3,5Q, %{I:#%16-18d%}"},
2649 /* Vector VMOV immediate to vector,
2650 undefinded for cmode == 1111 */
2651 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2652 MVE_VMVN_IMM
, 0xef800f70, 0xefb81ff0, UNDEFINED_INSTRUCTION
},
2654 /* Vector VMOV immediate to vector,
2656 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2657 MVE_VMOV_IMM_TO_VEC
, 0xef800d50, 0xefb81fd0,
2658 "vmov%v.%5,8-11s\t%13-15,22Q, %E"},
2660 /* Vector VMOV immediate to vector. */
2661 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2662 MVE_VMOV_IMM_TO_VEC
,
2663 0xef800050, 0xefb810d0,
2664 "vmov%v.%5,8-11s\t%13-15,22Q, %E"},
2666 /* Vector VMOV two 32-bit lanes to two gprs, idx = 0. */
2667 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2668 MVE_VMOV2_VEC_LANE_TO_GP
,
2669 0xec000f00, 0xffb01ff0,
2670 "vmov%c\t%0-3r, %16-19r, %{R:%13-15,22Q[2]%}, %{R:%13-15,22Q[0]%}"},
2672 /* Vector VMOV two 32-bit lanes to two gprs, idx = 1. */
2673 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2674 MVE_VMOV2_VEC_LANE_TO_GP
,
2675 0xec000f10, 0xffb01ff0,
2676 "vmov%c\t%0-3r, %16-19r, %{R:%13-15,22Q[3]%}, %{R:%13-15,22Q[1]%}"},
2678 /* Vector VMOV Two gprs to two 32-bit lanes, idx = 0. */
2679 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2680 MVE_VMOV2_GP_TO_VEC_LANE
,
2681 0xec100f00, 0xffb01ff0,
2682 "vmov%c\t%{R:%13-15,22Q[2]%}, %{R:%13-15,22Q[0]%}, %0-3r, %16-19r"},
2684 /* Vector VMOV Two gprs to two 32-bit lanes, idx = 1. */
2685 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2686 MVE_VMOV2_GP_TO_VEC_LANE
,
2687 0xec100f10, 0xffb01ff0,
2688 "vmov%c\t%{R:%13-15,22Q[3]%}, %{R:%13-15,22Q[1]%}, %0-3r, %16-19r"},
2690 /* Vector VMOV Vector lane to gpr. */
2691 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE_FP
),
2692 MVE_VMOV_VEC_LANE_TO_GP
,
2693 0xee100b10, 0xff100f1f,
2694 "vmov%c.%u%5-6,21-22s\t%12-15r, %{R:%17-19,7Q[%N]%}"},
2696 /* Vector VSHLL T1 Variant. Note: VSHLL T1 must appear before MVE_VMOVL due
2697 to instruction opcode aliasing. */
2698 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2700 0xeea00f40, 0xefa00fd1,
2701 "vshll%T%v.%u%19-20s\t%13-15,22Q, %1-3,5Q, %{I:#%16-18d%}"},
2703 /* Vector VMOVL long. */
2704 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2706 0xeea00f40, 0xefa70fd1,
2707 "vmovl%T%v.%u%19-20s\t%13-15,22Q, %1-3,5Q"},
2709 /* Vector VMOV and narrow. */
2710 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2712 0xfe310e81, 0xffb30fd1,
2713 "vmovn%T%v.i%18-19s\t%13-15,22Q, %1-3,5Q"},
2715 /* Floating point move extract. */
2716 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE_FP
),
2718 0xfeb00a40, 0xffbf0fd0,
2719 "vmovx.f16\t%22,12-15F, %5,0-3F"},
2721 /* Vector VMUL floating-point T1 variant. */
2722 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE_FP
),
2724 0xff000d50, 0xffa11f51,
2725 "vmul%v.f%20s\t%13-15,22Q, %17-19,7Q, %1-3,5Q"},
2727 /* Vector VMUL floating-point T2 variant. */
2728 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE_FP
),
2730 0xee310e60, 0xefb11f70,
2731 "vmul%v.f%28s\t%13-15,22Q, %17-19,7Q, %0-3r"},
2733 /* Vector VMUL T1 variant. */
2734 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2736 0xef000950, 0xff811f51,
2737 "vmul%v.i%20-21s\t%13-15,22Q, %17-19,7Q, %1-3,5Q"},
2739 /* Vector VMUL T2 variant. */
2740 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2742 0xee011e60, 0xff811f70,
2743 "vmul%v.i%20-21s\t%13-15,22Q, %17-19,7Q, %0-3r"},
2746 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2748 0xee010e01, 0xef811f51,
2749 "vmulh%v.%u%20-21s\t%13-15,22Q, %17-19,7Q, %1-3,5Q"},
2751 /* Vector VRMULH. */
2752 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2754 0xee011e01, 0xef811f51,
2755 "vrmulh%v.%u%20-21s\t%13-15,22Q, %17-19,7Q, %1-3,5Q"},
2757 /* Vector VMULL integer. */
2758 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2760 0xee010e00, 0xef810f51,
2761 "vmull%T%v.%u%20-21s\t%13-15,22Q, %17-19,7Q, %1-3,5Q"},
2763 /* Vector VMULL polynomial. */
2764 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2766 0xee310e00, 0xefb10f51,
2767 "vmull%T%v.%28s\t%13-15,22Q, %17-19,7Q, %1-3,5Q"},
2769 /* Vector VMVN immediate to vector. */
2770 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2772 0xef800070, 0xefb810f0,
2773 "vmvn%v.i%8-11s\t%13-15,22Q, %E"},
2775 /* Vector VMVN register. */
2776 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2778 0xffb005c0, 0xffbf1fd1,
2779 "vmvn%v\t%13-15,22Q, %1-3,5Q"},
2781 /* Vector VNEG floating point. */
2782 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE_FP
),
2784 0xffb107c0, 0xffb31fd1,
2785 "vneg%v.f%18-19s\t%13-15,22Q, %1-3,5Q"},
2788 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2790 0xffb103c0, 0xffb31fd1,
2791 "vneg%v.s%18-19s\t%13-15,22Q, %1-3,5Q"},
2793 /* Vector VORN, vector bitwise or not. */
2794 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2796 0xef300150, 0xffb11f51,
2797 "vorn%v\t%13-15,22Q, %17-19,7Q, %1-3,5Q"},
2799 /* Vector VORR register. */
2800 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2802 0xef200150, 0xffb11f51,
2803 "vorr%v\t%13-15,22Q, %17-19,7Q, %1-3,5Q"},
2805 /* Vector VMOV, vector to vector move. While decoding MVE_VORR_REG if
2806 "Qm==Qn", VORR should replaced by its alias VMOV. For that to happen
2807 MVE_VMOV_VEC_TO_VEC need to placed after MVE_VORR_REG in this mve_opcodes
2810 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2811 MVE_VMOV_VEC_TO_VEC
,
2812 0xef200150, 0xffb11f51,
2813 "vmov%v\t%13-15,22Q, %17-19,7Q"},
2815 /* Vector VQDMULL T1 variant. */
2816 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2818 0xee300f01, 0xefb10f51,
2819 "vqdmull%T%v.s%28s\t%13-15,22Q, %17-19,7Q, %1-3,5Q"},
2822 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2824 0xfe310f4d, 0xffffffff,
2828 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2830 0xfe310f01, 0xffb11f51,
2831 "vpsel%v\t%13-15,22Q, %17-19,7Q, %1-3,5Q"},
2834 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2836 0xffb00740, 0xffb31fd1,
2837 "vqabs%v.s%18-19s\t%13-15,22Q, %17-19,7Q, %1-3,5Q"},
2839 /* Vector VQADD T1 variant. */
2840 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2842 0xef000050, 0xef811f51,
2843 "vqadd%v.%u%20-21s\t%13-15,22Q, %17-19,7Q, %1-3,5Q"},
2845 /* Vector VQADD T2 variant. */
2846 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2848 0xee000f60, 0xef811f70,
2849 "vqadd%v.%u%20-21s\t%13-15,22Q, %17-19,7Q, %0-3r"},
2851 /* Vector VQDMULL T2 variant. */
2852 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2854 0xee300f60, 0xefb10f70,
2855 "vqdmull%T%v.s%28s\t%13-15,22Q, %17-19,7Q, %0-3r"},
2857 /* Vector VQMOVN. */
2858 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2860 0xee330e01, 0xefb30fd1,
2861 "vqmovn%T%v.%u%18-19s\t%13-15,22Q, %1-3,5Q"},
2863 /* Vector VQMOVUN. */
2864 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2866 0xee310e81, 0xffb30fd1,
2867 "vqmovun%T%v.s%18-19s\t%13-15,22Q, %1-3,5Q"},
2869 /* Vector VQDMLADH. */
2870 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2872 0xee000e00, 0xff810f51,
2873 "vqdmladh%X%v.s%20-21s\t%13-15,22Q, %17-19,7Q, %1-3,5Q"},
2875 /* Vector VQRDMLADH. */
2876 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2878 0xee000e01, 0xff810f51,
2879 "vqrdmladh%X%v.s%20-21s\t%13-15,22Q, %17-19,7Q, %1-3,5Q"},
2881 /* Vector VQDMLAH. */
2882 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2884 0xee000e60, 0xff811f70,
2885 "vqdmlah%v.%u%20-21s\t%13-15,22Q, %17-19,7Q, %0-3r"},
2887 /* Vector VQRDMLAH. */
2888 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2890 0xee000e40, 0xff811f70,
2891 "vqrdmlah%v.%u%20-21s\t%13-15,22Q, %17-19,7Q, %0-3r"},
2893 /* Vector VQDMLASH. */
2894 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2896 0xee001e60, 0xff811f70,
2897 "vqdmlash%v.%u%20-21s\t%13-15,22Q, %17-19,7Q, %0-3r"},
2899 /* Vector VQRDMLASH. */
2900 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2902 0xee001e40, 0xff811f70,
2903 "vqrdmlash%v.%u%20-21s\t%13-15,22Q, %17-19,7Q, %0-3r"},
2905 /* Vector VQDMLSDH. */
2906 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2908 0xfe000e00, 0xff810f51,
2909 "vqdmlsdh%X%v.s%20-21s\t%13-15,22Q, %17-19,7Q, %1-3,5Q"},
2911 /* Vector VQRDMLSDH. */
2912 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2914 0xfe000e01, 0xff810f51,
2915 "vqrdmlsdh%X%v.s%20-21s\t%13-15,22Q, %17-19,7Q, %1-3,5Q"},
2917 /* Vector VQDMULH T1 variant. */
2918 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2920 0xef000b40, 0xff811f51,
2921 "vqdmulh%v.s%20-21s\t%13-15,22Q, %17-19,7Q, %1-3,5Q"},
2923 /* Vector VQRDMULH T2 variant. */
2924 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2926 0xff000b40, 0xff811f51,
2927 "vqrdmulh%v.s%20-21s\t%13-15,22Q, %17-19,7Q, %1-3,5Q"},
2929 /* Vector VQDMULH T3 variant. */
2930 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2932 0xee010e60, 0xff811f70,
2933 "vqdmulh%v.s%20-21s\t%13-15,22Q, %17-19,7Q, %0-3r"},
2935 /* Vector VQRDMULH T4 variant. */
2936 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2938 0xfe010e60, 0xff811f70,
2939 "vqrdmulh%v.s%20-21s\t%13-15,22Q, %17-19,7Q, %0-3r"},
2942 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2944 0xffb007c0, 0xffb31fd1,
2945 "vqneg%v.s%18-19s\t%13-15,22Q, %1-3,5Q"},
2947 /* Vector VQRSHL T1 variant. */
2948 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2950 0xef000550, 0xef811f51,
2951 "vqrshl%v.%u%20-21s\t%13-15,22Q, %1-3,5Q, %17-19,7Q"},
2953 /* Vector VQRSHL T2 variant. */
2954 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2956 0xee331ee0, 0xefb31ff0,
2957 "vqrshl%v.%u%18-19s\t%13-15,22Q, %0-3r"},
2959 /* Vector VQRSHRN. */
2960 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2962 0xee800f41, 0xefa00fd1,
2963 "vqrshrn%T%v.%u%19-20s\t%13-15,22Q, %1-3,5Q, %{I:#%16-18d%}"},
2965 /* Vector VQRSHRUN. */
2966 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2968 0xfe800fc0, 0xffa00fd1,
2969 "vqrshrun%T%v.s%19-20s\t%13-15,22Q, %1-3,5Q, %{I:#%16-18d%}"},
2971 /* Vector VQSHL T1 Variant. */
2972 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2974 0xee311ee0, 0xefb31ff0,
2975 "vqshl%v.%u%18-19s\t%13-15,22Q, %0-3r"},
2977 /* Vector VQSHL T4 Variant. */
2978 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2980 0xef000450, 0xef811f51,
2981 "vqshl%v.%u%20-21s\t%13-15,22Q, %1-3,5Q, %17-19,7Q"},
2983 /* Vector VQSHRN. */
2984 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2986 0xee800f40, 0xefa00fd1,
2987 "vqshrn%T%v.%u%19-20s\t%13-15,22Q, %1-3,5Q, %{I:#%16-18d%}"},
2989 /* Vector VQSHRUN. */
2990 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2992 0xee800fc0, 0xffa00fd1,
2993 "vqshrun%T%v.s%19-20s\t%13-15,22Q, %1-3,5Q, %{I:#%16-18d%}"},
2995 /* Vector VQSUB T1 Variant. */
2996 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
2998 0xef000250, 0xef811f51,
2999 "vqsub%v.%u%20-21s\t%13-15,22Q, %17-19,7Q, %1-3,5Q"},
3001 /* Vector VQSUB T2 Variant. */
3002 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3004 0xee001f60, 0xef811f70,
3005 "vqsub%v.%u%20-21s\t%13-15,22Q, %17-19,7Q, %0-3r"},
3007 /* Vector VREV16. */
3008 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3010 0xffb00140, 0xffb31fd1,
3011 "vrev16%v.8\t%13-15,22Q, %1-3,5Q"},
3013 /* Vector VREV32. */
3014 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3016 0xffb000c0, 0xffb31fd1,
3017 "vrev32%v.%18-19s\t%13-15,22Q, %1-3,5Q"},
3019 /* Vector VREV64. */
3020 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3022 0xffb00040, 0xffb31fd1,
3023 "vrev64%v.%18-19s\t%13-15,22Q, %1-3,5Q"},
3025 /* Vector VRINT floating point. */
3026 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE_FP
),
3028 0xffb20440, 0xffb31c51,
3029 "vrint%m%v.f%18-19s\t%13-15,22Q, %1-3,5Q"},
3031 /* Vector VRMLALDAVH. */
3032 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3034 0xee800f00, 0xef811f51,
3035 "vrmlalvh%5A%v.%u32\t%13-15l, %20-22h, %17-19,7Q, %1-3Q"},
3037 /* Vector VRMLALDAVH. */
3038 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3040 0xee801f00, 0xef811f51,
3041 "vrmlaldavh%5Ax%v.%u32\t%13-15l, %20-22h, %17-19,7Q, %1-3Q"},
3043 /* Vector VRSHL T1 Variant. */
3044 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3046 0xef000540, 0xef811f51,
3047 "vrshl%v.%u%20-21s\t%13-15,22Q, %1-3,5Q, %17-19,7Q"},
3049 /* Vector VRSHL T2 Variant. */
3050 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3052 0xee331e60, 0xefb31ff0,
3053 "vrshl%v.%u%18-19s\t%13-15,22Q, %0-3r"},
3055 /* Vector VRSHRN. */
3056 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3058 0xfe800fc1, 0xffa00fd1,
3059 "vrshrn%T%v.i%19-20s\t%13-15,22Q, %1-3,5Q, %{I:#%16-18d%}"},
3062 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3064 0xfe300f00, 0xffb10f51,
3065 "vsbc%12I%v.i32\t%13-15,22Q, %17-19,7Q, %1-3,5Q"},
3067 /* Vector VSHL T2 Variant. */
3068 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3070 0xee311e60, 0xefb31ff0,
3071 "vshl%v.%u%18-19s\t%13-15,22Q, %0-3r"},
3073 /* Vector VSHL T3 Variant. */
3074 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3076 0xef000440, 0xef811f51,
3077 "vshl%v.%u%20-21s\t%13-15,22Q, %1-3,5Q, %17-19,7Q"},
3080 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3082 0xeea00fc0, 0xffa01ff0,
3083 "vshlc%v\t%13-15,22Q, %0-3r, %{I:#%16-20d%}"},
3085 /* Vector VSHLL T2 Variant. */
3086 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3088 0xee310e01, 0xefb30fd1,
3089 "vshll%T%v.%u%18-19s\t%13-15,22Q, %1-3,5Q, %{I:#%18-19d%}"},
3092 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3094 0xee800fc1, 0xffa00fd1,
3095 "vshrn%T%v.i%19-20s\t%13-15,22Q, %1-3,5Q, %{I:#%16-18d%}"},
3097 /* Vector VST2 no writeback. */
3098 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3100 0xfc801e00, 0xffb01e5f,
3101 "vst2%5d.%7-8s\t%B, [%16-19r]"},
3103 /* Vector VST2 writeback. */
3104 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3106 0xfca01e00, 0xffb01e5f,
3107 "vst2%5d.%7-8s\t%B, [%16-19r]!"},
3109 /* Vector VST4 no writeback. */
3110 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3112 0xfc801e01, 0xffb01e1f,
3113 "vst4%5-6d.%7-8s\t%B, [%16-19r]"},
3115 /* Vector VST4 writeback. */
3116 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3118 0xfca01e01, 0xffb01e1f,
3119 "vst4%5-6d.%7-8s\t%B, [%16-19r]!"},
3121 /* Vector VSTRB scatter store, T1 variant. */
3122 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3123 MVE_VSTRB_SCATTER_T1
,
3124 0xec800e00, 0xffb01e50,
3125 "vstrb%v.%7-8s\t%13-15,22Q, [%16-19r, %1-3,5Q]"},
3127 /* Vector VSTRH scatter store, T2 variant. */
3128 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3129 MVE_VSTRH_SCATTER_T2
,
3130 0xec800e10, 0xffb01e50,
3131 "vstrh%v.%7-8s\t%13-15,22Q, [%16-19r, %1-3,5Q%o]"},
3133 /* Vector VSTRW scatter store, T3 variant. */
3134 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3135 MVE_VSTRW_SCATTER_T3
,
3136 0xec800e40, 0xffb01e50,
3137 "vstrw%v.%7-8s\t%13-15,22Q, [%16-19r, %1-3,5Q%o]"},
3139 /* Vector VSTRD scatter store, T4 variant. */
3140 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3141 MVE_VSTRD_SCATTER_T4
,
3142 0xec800fd0, 0xffb01fd0,
3143 "vstrd%v.64\t%13-15,22Q, [%16-19r, %1-3,5Q%o]"},
3145 /* Vector VSTRW scatter store, T5 variant. */
3146 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3147 MVE_VSTRW_SCATTER_T5
,
3148 0xfd001e00, 0xff111f00,
3149 "vstrw%v.32\t%13-15,22Q, [%17-19,7Q, %{I:#%a%0-6i%}]%w"},
3151 /* Vector VSTRD scatter store, T6 variant. */
3152 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3153 MVE_VSTRD_SCATTER_T6
,
3154 0xfd001f00, 0xff111f00,
3155 "vstrd%v.64\t%13-15,22Q, [%17-19,7Q, %{I:#%a%0-6i%}]%w"},
3158 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3160 0xec000e00, 0xfe581e00,
3161 "vstrb%v.%7-8s\t%13-15Q, %d"},
3164 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3166 0xec080e00, 0xfe581e00,
3167 "vstrh%v.%7-8s\t%13-15Q, %d"},
3169 /* Vector VSTRB variant T5. */
3170 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3172 0xec001e00, 0xfe101f80,
3173 "vstrb%v.8\t%13-15,22Q, %d"},
3175 /* Vector VSTRH variant T6. */
3176 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3178 0xec001e80, 0xfe101f80,
3179 "vstrh%v.16\t%13-15,22Q, %d"},
3181 /* Vector VSTRW variant T7. */
3182 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3184 0xec001f00, 0xfe101f80,
3185 "vstrw%v.32\t%13-15,22Q, %d"},
3187 /* Vector VSUB floating point T1 variant. */
3188 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE_FP
),
3190 0xef200d40, 0xffa11f51,
3191 "vsub%v.f%20s\t%13-15,22Q, %17-19,7Q, %1-3,5Q"},
3193 /* Vector VSUB floating point T2 variant. */
3194 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE_FP
),
3196 0xee301f40, 0xefb11f70,
3197 "vsub%v.f%28s\t%13-15,22Q, %17-19,7Q, %0-3r"},
3199 /* Vector VSUB T1 variant. */
3200 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3202 0xff000840, 0xff811f51,
3203 "vsub%v.i%20-21s\t%13-15,22Q, %17-19,7Q, %1-3,5Q"},
3205 /* Vector VSUB T2 variant. */
3206 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3208 0xee011f40, 0xff811f70,
3209 "vsub%v.i%20-21s\t%13-15,22Q, %17-19,7Q, %0-3r"},
3211 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3213 0xea50012f, 0xfff1813f,
3214 "asrl%c\t%17-19l, %9-11h, %j"},
3216 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3218 0xea50012d, 0xfff101ff,
3219 "asrl%c\t%17-19l, %9-11h, %12-15S"},
3221 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3223 0xea50010f, 0xfff1813f,
3224 "lsll%c\t%17-19l, %9-11h, %j"},
3226 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3228 0xea50010d, 0xfff101ff,
3229 "lsll%c\t%17-19l, %9-11h, %12-15S"},
3231 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3233 0xea50011f, 0xfff1813f,
3234 "lsrl%c\t%17-19l, %9-11h, %j"},
3236 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3238 0xea51012d, 0xfff1017f,
3239 "sqrshrl%c\t%17-19l, %9-11h, %k, %12-15S"},
3241 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3243 0xea500f2d, 0xfff00fff,
3244 "sqrshr%c\t%16-19S, %12-15S"},
3246 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3248 0xea51013f, 0xfff1813f,
3249 "sqshll%c\t%17-19l, %9-11h, %j"},
3251 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3253 0xea500f3f, 0xfff08f3f,
3254 "sqshl%c\t%16-19S, %j"},
3256 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3258 0xea51012f, 0xfff1813f,
3259 "srshrl%c\t%17-19l, %9-11h, %j"},
3261 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3263 0xea500f2f, 0xfff08f3f,
3264 "srshr%c\t%16-19S, %j"},
3266 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3268 0xea51010d, 0xfff1017f,
3269 "uqrshll%c\t%17-19l, %9-11h, %k, %12-15S"},
3271 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3273 0xea500f0d, 0xfff00fff,
3274 "uqrshl%c\t%16-19S, %12-15S"},
3276 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3278 0xea51010f, 0xfff1813f,
3279 "uqshll%c\t%17-19l, %9-11h, %j"},
3281 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3283 0xea500f0f, 0xfff08f3f,
3284 "uqshl%c\t%16-19S, %j"},
3286 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3288 0xea51011f, 0xfff1813f,
3289 "urshrl%c\t%17-19l, %9-11h, %j"},
3291 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
),
3293 0xea500f1f, 0xfff08f3f,
3294 "urshr%c\t%16-19S, %j"},
3296 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_1M_MAIN
),
3298 0xea509000, 0xfff0f000,
3299 "csinc\t%8-11S, %16-19Z, %0-3Z, %4-7c"},
3301 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_1M_MAIN
),
3303 0xea50a000, 0xfff0f000,
3304 "csinv\t%8-11S, %16-19Z, %0-3Z, %4-7c"},
3306 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_1M_MAIN
),
3308 0xea5f900f, 0xfffff00f,
3309 "cset\t%8-11S, %4-7C"},
3311 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_1M_MAIN
),
3313 0xea5fa00f, 0xfffff00f,
3314 "csetm\t%8-11S, %4-7C"},
3316 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_1M_MAIN
),
3318 0xea508000, 0xfff0f000,
3319 "csel\t%8-11S, %16-19Z, %0-3Z, %4-7c"},
3321 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_1M_MAIN
),
3323 0xea50b000, 0xfff0f000,
3324 "csneg\t%8-11S, %16-19Z, %0-3Z, %4-7c"},
3326 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_1M_MAIN
),
3328 0xea509000, 0xfff0f000,
3329 "cinc\t%8-11S, %16-19Z, %4-7C"},
3331 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_1M_MAIN
),
3333 0xea50a000, 0xfff0f000,
3334 "cinv\t%8-11S, %16-19Z, %4-7C"},
3336 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_1M_MAIN
),
3338 0xea50b000, 0xfff0f000,
3339 "cneg\t%8-11S, %16-19Z, %4-7C"},
3341 {ARM_FEATURE_CORE_LOW (0),
3343 0x00000000, 0x00000000, 0}
3346 /* Opcode tables: ARM, 16-bit Thumb, 32-bit Thumb. All three are partially
3347 ordered: they must be searched linearly from the top to obtain a correct
3350 /* print_insn_arm recognizes the following format control codes:
3354 %a print address for ldr/str instruction
3355 %s print address for ldr/str halfword/signextend instruction
3356 %S like %s but allow UNPREDICTABLE addressing
3357 %b print branch destination
3358 %c print condition code (always bits 28-31)
3359 %m print register mask for ldm/stm instruction
3360 %o print operand2 (immediate or register + shift)
3361 %p print 'p' iff bits 12-15 are 15
3362 %O print 'OBSOLETE' iff bits 12-15 are 15
3363 %t print 't' iff bit 21 set and bit 24 clear
3364 %B print arm BLX(1) destination
3365 %C print the PSR sub type.
3366 %U print barrier type.
3367 %P print address for pli instruction.
3368 %T print 'from Armv4T onwards'
3370 %<bitfield>r print as an ARM register
3371 %<bitfield>T print as an ARM register + 1
3372 %<bitfield>R as %r but r15 is UNPREDICTABLE
3373 %<bitfield>{r|R}u as %{r|R} but if matches the other %u field then is UNPREDICTABLE
3374 %<bitfield>{r|R}U as %{r|R} but if matches the other %U field then is UNPREDICTABLE
3375 %<bitfield>d print the bitfield in decimal
3376 %<bitfield>W print the bitfield plus one in decimal
3377 %<bitfield>x print the bitfield in hex
3378 %<bitfield>X print the bitfield as 1 hex digit without leading "0x"
3380 %<bitfield>'c print specified char iff bitfield is all ones
3381 %<bitfield>`c print specified char iff bitfield is all zeroes
3382 %<bitfield>?ab... select from array of values in big endian order
3384 %e print arm SMI operand (bits 0..7,8..19).
3385 %E print the LSB and WIDTH fields of a BFI or BFC instruction.
3386 %V print the 16-bit immediate field of a MOVT or MOVW instruction.
3387 %R print the SPSR/CPSR or banked register of an MRS. */
3389 static const struct opcode32 arm_opcodes
[] =
3391 /* ARM instructions. */
3392 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3393 0xe1a00000, 0xffffffff, "nop\t\t\t@ (mov r0, r0)"},
3394 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3395 0xe7f000f0, 0xfff000f0, "udf\t%{I:#%e%}"},
3397 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4
),
3398 0x012FFF10, 0x0ffffff0, "bx%c\t%0-3r%T"},
3399 {ARM_FEATURE_CORE_LOW (ARM_EXT_V2
),
3400 0x00000090, 0x0fe000f0, "mul%20's%c\t%16-19R, %0-3R, %8-11R"},
3401 {ARM_FEATURE_CORE_LOW (ARM_EXT_V2
),
3402 0x00200090, 0x0fe000f0, "mla%20's%c\t%16-19R, %0-3R, %8-11R, %12-15R"},
3403 {ARM_FEATURE_CORE_LOW (ARM_EXT_V2S
),
3404 0x01000090, 0x0fb00ff0, "swp%22'b%c\t%12-15RU, %0-3Ru, [%16-19RuU]"},
3405 {ARM_FEATURE_CORE_LOW (ARM_EXT_V3M
),
3406 0x00800090, 0x0fa000f0,
3407 "%22?sumull%20's%c\t%12-15Ru, %16-19Ru, %0-3R, %8-11R"},
3408 {ARM_FEATURE_CORE_LOW (ARM_EXT_V3M
),
3409 0x00a00090, 0x0fa000f0,
3410 "%22?sumlal%20's%c\t%12-15Ru, %16-19Ru, %0-3R, %8-11R"},
3412 /* V8.2 RAS extension instructions. */
3413 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_RAS
),
3414 0xe320f010, 0xffffffff, "esb"},
3416 /* V8-R instructions. */
3417 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8R
),
3418 0xf57ff04c, 0xffffffff, "dfb"},
3420 /* V8 instructions. */
3421 {ARM_FEATURE_CORE_LOW (ARM_EXT_V8
),
3422 0x0320f005, 0x0fffffff, "sevl"},
3423 /* Defined in V8 but is in NOP space so available to all arch. */
3424 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3425 0xe1000070, 0xfff000f0, "hlt\t%{I:0x%16-19X%12-15X%8-11X%0-3X%}"},
3426 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_ATOMICS
),
3427 0x01800e90, 0x0ff00ff0, "stlex%c\t%12-15r, %0-3r, [%16-19R]"},
3428 {ARM_FEATURE_CORE_LOW (ARM_EXT2_ATOMICS
),
3429 0x01900e9f, 0x0ff00fff, "ldaex%c\t%12-15r, [%16-19R]"},
3430 {ARM_FEATURE_CORE_LOW (ARM_EXT_V8
),
3431 0x01a00e90, 0x0ff00ff0, "stlexd%c\t%12-15r, %0-3r, %0-3T, [%16-19R]"},
3432 {ARM_FEATURE_CORE_LOW (ARM_EXT_V8
),
3433 0x01b00e9f, 0x0ff00fff, "ldaexd%c\t%12-15r, %12-15T, [%16-19R]"},
3434 {ARM_FEATURE_CORE_LOW (ARM_EXT2_ATOMICS
),
3435 0x01c00e90, 0x0ff00ff0, "stlexb%c\t%12-15r, %0-3r, [%16-19R]"},
3436 {ARM_FEATURE_CORE_LOW (ARM_EXT2_ATOMICS
),
3437 0x01d00e9f, 0x0ff00fff, "ldaexb%c\t%12-15r, [%16-19R]"},
3438 {ARM_FEATURE_CORE_LOW (ARM_EXT2_ATOMICS
),
3439 0x01e00e90, 0x0ff00ff0, "stlexh%c\t%12-15r, %0-3r, [%16-19R]"},
3440 {ARM_FEATURE_CORE_LOW (ARM_EXT2_ATOMICS
),
3441 0x01f00e9f, 0x0ff00fff, "ldaexh%c\t%12-15r, [%16-19R]"},
3442 {ARM_FEATURE_CORE_LOW (ARM_EXT2_ATOMICS
),
3443 0x0180fc90, 0x0ff0fff0, "stl%c\t%0-3r, [%16-19R]"},
3444 {ARM_FEATURE_CORE_LOW (ARM_EXT2_ATOMICS
),
3445 0x01900c9f, 0x0ff00fff, "lda%c\t%12-15r, [%16-19R]"},
3446 {ARM_FEATURE_CORE_LOW (ARM_EXT2_ATOMICS
),
3447 0x01c0fc90, 0x0ff0fff0, "stlb%c\t%0-3r, [%16-19R]"},
3448 {ARM_FEATURE_CORE_LOW (ARM_EXT2_ATOMICS
),
3449 0x01d00c9f, 0x0ff00fff, "ldab%c\t%12-15r, [%16-19R]"},
3450 {ARM_FEATURE_CORE_LOW (ARM_EXT2_ATOMICS
),
3451 0x01e0fc90, 0x0ff0fff0, "stlh%c\t%0-3r, [%16-19R]"},
3452 {ARM_FEATURE_CORE_LOW (ARM_EXT2_ATOMICS
),
3453 0x01f00c9f, 0x0ff00fff, "ldah%c\t%12-15r, [%16-19R]"},
3454 /* CRC32 instructions. */
3455 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_CRC
),
3456 0xe1000040, 0xfff00ff0, "crc32b\t%12-15R, %16-19R, %0-3R"},
3457 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_CRC
),
3458 0xe1200040, 0xfff00ff0, "crc32h\t%12-15R, %16-19R, %0-3R"},
3459 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_CRC
),
3460 0xe1400040, 0xfff00ff0, "crc32w\t%12-15R, %16-19R, %0-3R"},
3461 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_CRC
),
3462 0xe1000240, 0xfff00ff0, "crc32cb\t%12-15R, %16-19R, %0-3R"},
3463 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_CRC
),
3464 0xe1200240, 0xfff00ff0, "crc32ch\t%12-15R, %16-19R, %0-3R"},
3465 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_CRC
),
3466 0xe1400240, 0xfff00ff0, "crc32cw\t%12-15R, %16-19R, %0-3R"},
3468 /* Privileged Access Never extension instructions. */
3469 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_PAN
),
3470 0xf1100000, 0xfffffdff, "setpan\t%{I:#%9-9d%}"},
3472 /* Virtualization Extension instructions. */
3473 {ARM_FEATURE_CORE_LOW (ARM_EXT_VIRT
), 0x0160006e, 0x0fffffff, "eret%c"},
3474 {ARM_FEATURE_CORE_LOW (ARM_EXT_VIRT
), 0x01400070, 0x0ff000f0, "hvc%c\t%e"},
3476 /* Integer Divide Extension instructions. */
3477 {ARM_FEATURE_CORE_LOW (ARM_EXT_ADIV
),
3478 0x0710f010, 0x0ff0f0f0, "sdiv%c\t%16-19r, %0-3r, %8-11r"},
3479 {ARM_FEATURE_CORE_LOW (ARM_EXT_ADIV
),
3480 0x0730f010, 0x0ff0f0f0, "udiv%c\t%16-19r, %0-3r, %8-11r"},
3482 /* MP Extension instructions. */
3483 {ARM_FEATURE_CORE_LOW (ARM_EXT_MP
), 0xf410f000, 0xfc70f000, "pldw\t%a"},
3485 /* Speculation Barriers. */
3486 {ARM_FEATURE_CORE_LOW (ARM_EXT_V3
), 0xe320f014, 0xffffffff, "csdb"},
3487 {ARM_FEATURE_CORE_LOW (ARM_EXT_V3
), 0xf57ff040, 0xffffffff, "ssbb"},
3488 {ARM_FEATURE_CORE_LOW (ARM_EXT_V3
), 0xf57ff044, 0xffffffff, "pssbb"},
3490 /* V7 instructions. */
3491 {ARM_FEATURE_CORE_LOW (ARM_EXT_V7
), 0xf450f000, 0xfd70f000, "pli\t%P"},
3492 {ARM_FEATURE_CORE_LOW (ARM_EXT_V7
), 0x0320f0f0, 0x0ffffff0, "dbg%c\t%{I:#%0-3d%}"},
3493 {ARM_FEATURE_CORE_LOW (ARM_EXT_V8
), 0xf57ff051, 0xfffffff3, "dmb\t%U"},
3494 {ARM_FEATURE_CORE_LOW (ARM_EXT_V8
), 0xf57ff041, 0xfffffff3, "dsb\t%U"},
3495 {ARM_FEATURE_CORE_LOW (ARM_EXT_V7
), 0xf57ff050, 0xfffffff0, "dmb\t%U"},
3496 {ARM_FEATURE_CORE_LOW (ARM_EXT_V7
), 0xf57ff040, 0xfffffff0, "dsb\t%U"},
3497 {ARM_FEATURE_CORE_LOW (ARM_EXT_V7
), 0xf57ff060, 0xfffffff0, "isb\t%U"},
3498 {ARM_FEATURE_CORE_LOW (ARM_EXT_V7
),
3499 0x0320f000, 0x0fffffff, "nop%c\t{%{I:%0-7d%}}"},
3501 /* ARM V6T2 instructions. */
3502 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
3503 0x07c0001f, 0x0fe0007f, "bfc%c\t%12-15R, %E"},
3504 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
3505 0x07c00010, 0x0fe00070, "bfi%c\t%12-15R, %0-3r, %E"},
3506 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
3507 0x00600090, 0x0ff000f0, "mls%c\t%16-19R, %0-3R, %8-11R, %12-15R"},
3508 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
3509 0x002000b0, 0x0f3000f0, "strht%c\t%12-15R, %S"},
3511 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
3512 0x00300090, 0x0f3000f0, UNDEFINED_INSTRUCTION
},
3513 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
3514 0x00300090, 0x0f300090, "ldr%6's%5?hbt%c\t%12-15R, %S"},
3516 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V6T2_V8M
),
3517 0x03000000, 0x0ff00000, "movw%c\t%12-15R, %V"},
3518 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V6T2_V8M
),
3519 0x03400000, 0x0ff00000, "movt%c\t%12-15R, %V"},
3520 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
3521 0x06ff0f30, 0x0fff0ff0, "rbit%c\t%12-15R, %0-3R"},
3522 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
3523 0x07a00050, 0x0fa00070, "%22?usbfx%c\t%12-15r, %0-3r, %{I:#%7-11d%}, %{I:#%16-20W%}"},
3525 /* ARM Security extension instructions. */
3526 {ARM_FEATURE_CORE_LOW (ARM_EXT_SEC
),
3527 0x01600070, 0x0ff000f0, "smc%c\t%e"},
3529 /* ARM V6K instructions. */
3530 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6K
),
3531 0xf57ff01f, 0xffffffff, "clrex"},
3532 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6K
),
3533 0x01d00f9f, 0x0ff00fff, "ldrexb%c\t%12-15R, [%16-19R]"},
3534 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6K
),
3535 0x01b00f9f, 0x0ff00fff, "ldrexd%c\t%12-15r, [%16-19R]"},
3536 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6K
),
3537 0x01f00f9f, 0x0ff00fff, "ldrexh%c\t%12-15R, [%16-19R]"},
3538 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6K
),
3539 0x01c00f90, 0x0ff00ff0, "strexb%c\t%12-15R, %0-3R, [%16-19R]"},
3540 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6K
),
3541 0x01a00f90, 0x0ff00ff0, "strexd%c\t%12-15R, %0-3r, [%16-19R]"},
3542 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6K
),
3543 0x01e00f90, 0x0ff00ff0, "strexh%c\t%12-15R, %0-3R, [%16-19R]"},
3545 /* ARMv8.5-A instructions. */
3546 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_SB
), 0xf57ff070, 0xffffffff, "sb"},
3548 /* ARM V6K NOP hints. */
3549 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6K
),
3550 0x0320f001, 0x0fffffff, "yield%c"},
3551 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6K
),
3552 0x0320f002, 0x0fffffff, "wfe%c"},
3553 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6K
),
3554 0x0320f003, 0x0fffffff, "wfi%c"},
3555 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6K
),
3556 0x0320f004, 0x0fffffff, "sev%c"},
3557 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6K
),
3558 0x0320f000, 0x0fffff00, "nop%c\t{%{I:%0-7d%}}"},
3560 /* ARM V6 instructions. */
3561 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3562 0xf1080000, 0xfffffe3f, "cpsie\t%{B:%8'a%7'i%6'f%}"},
3563 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3564 0xf10a0000, 0xfffffe20, "cpsie\t%{B:%8'a%7'i%6'f%}, %{I:#%0-4d%}"},
3565 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3566 0xf10C0000, 0xfffffe3f, "cpsid\t%{B:%8'a%7'i%6'f%}"},
3567 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3568 0xf10e0000, 0xfffffe20, "cpsid\t%{B:%8'a%7'i%6'f%}, %{I:#%0-4d%}"},
3569 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3570 0xf1000000, 0xfff1fe20, "cps\t%{I:#%0-4d%}"},
3571 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3572 0x06800010, 0x0ff00ff0, "pkhbt%c\t%12-15R, %16-19R, %0-3R"},
3573 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3574 0x06800010, 0x0ff00070, "pkhbt%c\t%12-15R, %16-19R, %0-3R, %{B:lsl%} %{I:#%7-11d%}"},
3575 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3576 0x06800050, 0x0ff00ff0, "pkhtb%c\t%12-15R, %16-19R, %0-3R, %{B:asr%} %{I:#32%}"},
3577 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3578 0x06800050, 0x0ff00070, "pkhtb%c\t%12-15R, %16-19R, %0-3R, %{B:asr%} %{I:#%7-11d%}"},
3579 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3580 0x01900f9f, 0x0ff00fff, "ldrex%c\t%{R:r%12-15d%}, [%16-19R]"},
3581 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3582 0x06200f10, 0x0ff00ff0, "qadd16%c\t%12-15R, %16-19R, %0-3R"},
3583 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3584 0x06200f90, 0x0ff00ff0, "qadd8%c\t%12-15R, %16-19R, %0-3R"},
3585 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3586 0x06200f30, 0x0ff00ff0, "qasx%c\t%12-15R, %16-19R, %0-3R"},
3587 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3588 0x06200f70, 0x0ff00ff0, "qsub16%c\t%12-15R, %16-19R, %0-3R"},
3589 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3590 0x06200ff0, 0x0ff00ff0, "qsub8%c\t%12-15R, %16-19R, %0-3R"},
3591 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3592 0x06200f50, 0x0ff00ff0, "qsax%c\t%12-15R, %16-19R, %0-3R"},
3593 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3594 0x06100f10, 0x0ff00ff0, "sadd16%c\t%12-15R, %16-19R, %0-3R"},
3595 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3596 0x06100f90, 0x0ff00ff0, "sadd8%c\t%12-15R, %16-19R, %0-3R"},
3597 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3598 0x06100f30, 0x0ff00ff0, "sasx%c\t%12-15R, %16-19R, %0-3R"},
3599 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3600 0x06300f10, 0x0ff00ff0, "shadd16%c\t%12-15R, %16-19R, %0-3R"},
3601 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3602 0x06300f90, 0x0ff00ff0, "shadd8%c\t%12-15R, %16-19R, %0-3R"},
3603 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3604 0x06300f30, 0x0ff00ff0, "shasx%c\t%12-15R, %16-19R, %0-3R"},
3605 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3606 0x06300f70, 0x0ff00ff0, "shsub16%c\t%12-15R, %16-19R, %0-3R"},
3607 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3608 0x06300ff0, 0x0ff00ff0, "shsub8%c\t%12-15R, %16-19R, %0-3R"},
3609 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3610 0x06300f50, 0x0ff00ff0, "shsax%c\t%12-15R, %16-19R, %0-3R"},
3611 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3612 0x06100f70, 0x0ff00ff0, "ssub16%c\t%12-15R, %16-19R, %0-3R"},
3613 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3614 0x06100ff0, 0x0ff00ff0, "ssub8%c\t%12-15R, %16-19R, %0-3R"},
3615 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3616 0x06100f50, 0x0ff00ff0, "ssax%c\t%12-15R, %16-19R, %0-3R"},
3617 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3618 0x06500f10, 0x0ff00ff0, "uadd16%c\t%12-15R, %16-19R, %0-3R"},
3619 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3620 0x06500f90, 0x0ff00ff0, "uadd8%c\t%12-15R, %16-19R, %0-3R"},
3621 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3622 0x06500f30, 0x0ff00ff0, "uasx%c\t%12-15R, %16-19R, %0-3R"},
3623 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3624 0x06700f10, 0x0ff00ff0, "uhadd16%c\t%12-15R, %16-19R, %0-3R"},
3625 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3626 0x06700f90, 0x0ff00ff0, "uhadd8%c\t%12-15R, %16-19R, %0-3R"},
3627 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3628 0x06700f30, 0x0ff00ff0, "uhasx%c\t%12-15R, %16-19R, %0-3R"},
3629 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3630 0x06700f70, 0x0ff00ff0, "uhsub16%c\t%12-15R, %16-19R, %0-3R"},
3631 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3632 0x06700ff0, 0x0ff00ff0, "uhsub8%c\t%12-15R, %16-19R, %0-3R"},
3633 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3634 0x06700f50, 0x0ff00ff0, "uhsax%c\t%12-15R, %16-19R, %0-3R"},
3635 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3636 0x06600f10, 0x0ff00ff0, "uqadd16%c\t%12-15R, %16-19R, %0-3R"},
3637 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3638 0x06600f90, 0x0ff00ff0, "uqadd8%c\t%12-15R, %16-19R, %0-3R"},
3639 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3640 0x06600f30, 0x0ff00ff0, "uqasx%c\t%12-15R, %16-19R, %0-3R"},
3641 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3642 0x06600f70, 0x0ff00ff0, "uqsub16%c\t%12-15R, %16-19R, %0-3R"},
3643 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3644 0x06600ff0, 0x0ff00ff0, "uqsub8%c\t%12-15R, %16-19R, %0-3R"},
3645 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3646 0x06600f50, 0x0ff00ff0, "uqsax%c\t%12-15R, %16-19R, %0-3R"},
3647 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3648 0x06500f70, 0x0ff00ff0, "usub16%c\t%12-15R, %16-19R, %0-3R"},
3649 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3650 0x06500ff0, 0x0ff00ff0, "usub8%c\t%12-15R, %16-19R, %0-3R"},
3651 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3652 0x06500f50, 0x0ff00ff0, "usax%c\t%12-15R, %16-19R, %0-3R"},
3653 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3654 0x06bf0f30, 0x0fff0ff0, "rev%c\t%12-15R, %0-3R"},
3655 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3656 0x06bf0fb0, 0x0fff0ff0, "rev16%c\t%12-15R, %0-3R"},
3657 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3658 0x06ff0fb0, 0x0fff0ff0, "revsh%c\t%12-15R, %0-3R"},
3659 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3660 0xf8100a00, 0xfe50ffff, "rfe%23?id%24?ba\t%16-19r%21'!"},
3661 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3662 0x06bf0070, 0x0fff0ff0, "sxth%c\t%12-15R, %0-3R"},
3663 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3664 0x06bf0470, 0x0fff0ff0, "sxth%c\t%12-15R, %0-3R, %{B:ror%} %{I:#8%}"},
3665 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3666 0x06bf0870, 0x0fff0ff0, "sxth%c\t%12-15R, %0-3R, %{B:ror%} %{I:#16%}"},
3667 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3668 0x06bf0c70, 0x0fff0ff0, "sxth%c\t%12-15R, %0-3R, %{B:ror%} %{I:#24%}"},
3669 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3670 0x068f0070, 0x0fff0ff0, "sxtb16%c\t%12-15R, %0-3R"},
3671 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3672 0x068f0470, 0x0fff0ff0, "sxtb16%c\t%12-15R, %0-3R, %{B:ror%} %{I:#8%}"},
3673 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3674 0x068f0870, 0x0fff0ff0, "sxtb16%c\t%12-15R, %0-3R, %{B:ror%} %{I:#16%}"},
3675 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3676 0x068f0c70, 0x0fff0ff0, "sxtb16%c\t%12-15R, %0-3R, %{B:ror%} %{I:#24%}"},
3677 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3678 0x06af0070, 0x0fff0ff0, "sxtb%c\t%12-15R, %0-3R"},
3679 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3680 0x06af0470, 0x0fff0ff0, "sxtb%c\t%12-15R, %0-3R, %{B:ror%} %{I:#8%}"},
3681 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3682 0x06af0870, 0x0fff0ff0, "sxtb%c\t%12-15R, %0-3R, %{B:ror%} %{I:#16%}"},
3683 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3684 0x06af0c70, 0x0fff0ff0, "sxtb%c\t%12-15R, %0-3R, %{B:ror%} %{I:#24%}"},
3685 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3686 0x06ff0070, 0x0fff0ff0, "uxth%c\t%12-15R, %0-3R"},
3687 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3688 0x06ff0470, 0x0fff0ff0, "uxth%c\t%12-15R, %0-3R, %{B:ror%} %{I:#8%}"},
3689 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3690 0x06ff0870, 0x0fff0ff0, "uxth%c\t%12-15R, %0-3R, %{B:ror%} %{I:#16%}"},
3691 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3692 0x06ff0c70, 0x0fff0ff0, "uxth%c\t%12-15R, %0-3R, %{B:ror%} %{I:#24%}"},
3693 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3694 0x06cf0070, 0x0fff0ff0, "uxtb16%c\t%12-15R, %0-3R"},
3695 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3696 0x06cf0470, 0x0fff0ff0, "uxtb16%c\t%12-15R, %0-3R, %{B:ror%} %{I:#8%}"},
3697 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3698 0x06cf0870, 0x0fff0ff0, "uxtb16%c\t%12-15R, %0-3R, %{B:ror%} %{I:#16%}"},
3699 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3700 0x06cf0c70, 0x0fff0ff0, "uxtb16%c\t%12-15R, %0-3R, %{B:ror%} %{I:#24%}"},
3701 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3702 0x06ef0070, 0x0fff0ff0, "uxtb%c\t%12-15R, %0-3R"},
3703 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3704 0x06ef0470, 0x0fff0ff0, "uxtb%c\t%12-15R, %0-3R, %{B:ror%} %{I:#8%}"},
3705 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3706 0x06ef0870, 0x0fff0ff0, "uxtb%c\t%12-15R, %0-3R, %{B:ror%} %{I:#16%}"},
3707 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3708 0x06ef0c70, 0x0fff0ff0, "uxtb%c\t%12-15R, %0-3R, %{B:ror%} %{I:#24%}"},
3709 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3710 0x06b00070, 0x0ff00ff0, "sxtah%c\t%12-15R, %16-19r, %0-3R"},
3711 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3712 0x06b00470, 0x0ff00ff0, "sxtah%c\t%12-15R, %16-19r, %0-3R, %{B:ror%} %{I:#8%}"},
3713 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3714 0x06b00870, 0x0ff00ff0, "sxtah%c\t%12-15R, %16-19r, %0-3R, %{B:ror%} %{I:#16%}"},
3715 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3716 0x06b00c70, 0x0ff00ff0, "sxtah%c\t%12-15R, %16-19r, %0-3R, %{B:ror%} %{I:#24%}"},
3717 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3718 0x06800070, 0x0ff00ff0, "sxtab16%c\t%12-15R, %16-19r, %0-3R"},
3719 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3720 0x06800470, 0x0ff00ff0, "sxtab16%c\t%12-15R, %16-19r, %0-3R, %{B:ror%} %{I:#8%}"},
3721 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3722 0x06800870, 0x0ff00ff0, "sxtab16%c\t%12-15R, %16-19r, %0-3R, %{B:ror%} %{I:#16%}"},
3723 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3724 0x06800c70, 0x0ff00ff0, "sxtab16%c\t%12-15R, %16-19r, %0-3R, %{B:ror%} %{I:#24%}"},
3725 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3726 0x06a00070, 0x0ff00ff0, "sxtab%c\t%12-15R, %16-19r, %0-3R"},
3727 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3728 0x06a00470, 0x0ff00ff0, "sxtab%c\t%12-15R, %16-19r, %0-3R, %{B:ror%} %{I:#8%}"},
3729 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3730 0x06a00870, 0x0ff00ff0, "sxtab%c\t%12-15R, %16-19r, %0-3R, %{B:ror%} %{I:#16%}"},
3731 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3732 0x06a00c70, 0x0ff00ff0, "sxtab%c\t%12-15R, %16-19r, %0-3R, %{B:ror%} %{I:#24%}"},
3733 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3734 0x06f00070, 0x0ff00ff0, "uxtah%c\t%12-15R, %16-19r, %0-3R"},
3735 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3736 0x06f00470, 0x0ff00ff0, "uxtah%c\t%12-15R, %16-19r, %0-3R, %{B:ror%} %{I:#8%}"},
3737 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3738 0x06f00870, 0x0ff00ff0, "uxtah%c\t%12-15R, %16-19r, %0-3R, %{B:ror%} %{I:#16%}"},
3739 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3740 0x06f00c70, 0x0ff00ff0, "uxtah%c\t%12-15R, %16-19r, %0-3R, %{B:ror%} %{I:#24%}"},
3741 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3742 0x06c00070, 0x0ff00ff0, "uxtab16%c\t%12-15R, %16-19r, %0-3R"},
3743 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3744 0x06c00470, 0x0ff00ff0, "uxtab16%c\t%12-15R, %16-19r, %0-3R, %{B:ror%} %{I:#8%}"},
3745 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3746 0x06c00870, 0x0ff00ff0, "uxtab16%c\t%12-15R, %16-19r, %0-3R, %{B:ror%} %{I:#16%}"},
3747 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3748 0x06c00c70, 0x0ff00ff0, "uxtab16%c\t%12-15R, %16-19r, %0-3R, ROR %{I:#24%}"},
3749 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3750 0x06e00070, 0x0ff00ff0, "uxtab%c\t%12-15R, %16-19r, %0-3R"},
3751 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3752 0x06e00470, 0x0ff00ff0, "uxtab%c\t%12-15R, %16-19r, %0-3R, %{B:ror%} %{I:#8%}"},
3753 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3754 0x06e00870, 0x0ff00ff0, "uxtab%c\t%12-15R, %16-19r, %0-3R, %{B:ror%} %{I:#16%}"},
3755 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3756 0x06e00c70, 0x0ff00ff0, "uxtab%c\t%12-15R, %16-19r, %0-3R, %{B:ror%} %{I:#24%}"},
3757 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3758 0x06800fb0, 0x0ff00ff0, "sel%c\t%12-15R, %16-19R, %0-3R"},
3759 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3760 0xf1010000, 0xfffffc00, "setend\t%{B:%9?ble%}"},
3761 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3762 0x0700f010, 0x0ff0f0d0, "smuad%5'x%c\t%16-19R, %0-3R, %8-11R"},
3763 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3764 0x0700f050, 0x0ff0f0d0, "smusd%5'x%c\t%16-19R, %0-3R, %8-11R"},
3765 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3766 0x07000010, 0x0ff000d0, "smlad%5'x%c\t%16-19R, %0-3R, %8-11R, %12-15R"},
3767 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3768 0x07400010, 0x0ff000d0, "smlald%5'x%c\t%12-15Ru, %16-19Ru, %0-3R, %8-11R"},
3769 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3770 0x07000050, 0x0ff000d0, "smlsd%5'x%c\t%16-19R, %0-3R, %8-11R, %12-15R"},
3771 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3772 0x07400050, 0x0ff000d0, "smlsld%5'x%c\t%12-15Ru, %16-19Ru, %0-3R, %8-11R"},
3773 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3774 0x0750f010, 0x0ff0f0d0, "smmul%5'r%c\t%16-19R, %0-3R, %8-11R"},
3775 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3776 0x07500010, 0x0ff000d0, "smmla%5'r%c\t%16-19R, %0-3R, %8-11R, %12-15R"},
3777 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3778 0x075000d0, 0x0ff000d0, "smmls%5'r%c\t%16-19R, %0-3R, %8-11R, %12-15R"},
3779 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3780 0xf84d0500, 0xfe5fffe0, "srs%23?id%24?ba\t%16-19r%21'!, %{I:#%0-4d%}"},
3781 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3782 0x06a00010, 0x0fe00ff0, "ssat%c\t%12-15R, %{I:#%16-20W%}, %0-3R"},
3783 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3784 0x06a00010, 0x0fe00070, "ssat%c\t%12-15R, %{I:#%16-20W%}, %0-3R, %{B:lsl%} %{I:#%7-11d%}"},
3785 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3786 0x06a00050, 0x0fe00070, "ssat%c\t%12-15R, %{I:#%16-20W%}, %0-3R, %{B:asr%} %{I:#%7-11d%}"},
3787 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3788 0x06a00f30, 0x0ff00ff0, "ssat16%c\t%12-15r, %{I:#%16-19W%}, %0-3r"},
3789 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3790 0x01800f90, 0x0ff00ff0, "strex%c\t%12-15R, %0-3R, [%16-19R]"},
3791 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3792 0x00400090, 0x0ff000f0, "umaal%c\t%12-15R, %16-19R, %0-3R, %8-11R"},
3793 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3794 0x0780f010, 0x0ff0f0f0, "usad8%c\t%16-19R, %0-3R, %8-11R"},
3795 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3796 0x07800010, 0x0ff000f0, "usada8%c\t%16-19R, %0-3R, %8-11R, %12-15R"},
3797 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3798 0x06e00010, 0x0fe00ff0, "usat%c\t%12-15R, %{I:#%16-20d%}, %0-3R"},
3799 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3800 0x06e00010, 0x0fe00070, "usat%c\t%12-15R, %{I:#%16-20d%}, %0-3R, %{B:lsl%} %{I:#%7-11d%}"},
3801 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3802 0x06e00050, 0x0fe00070, "usat%c\t%12-15R, %{I:#%16-20d%}, %0-3R, %{B:asr%} %{I:#%7-11d%}"},
3803 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
),
3804 0x06e00f30, 0x0ff00ff0, "usat16%c\t%12-15R, %{I:#%16-19d%}, %0-3R"},
3806 /* V5J instruction. */
3807 {ARM_FEATURE_CORE_LOW (ARM_EXT_V5J
),
3808 0x012fff20, 0x0ffffff0, "bxj%c\t%0-3R"},
3810 /* V5 Instructions. */
3811 {ARM_FEATURE_CORE_LOW (ARM_EXT_V5
),
3812 0xe1200070, 0xfff000f0,
3813 "bkpt\t%{I:0x%16-19X%12-15X%8-11X%0-3X%}"},
3814 {ARM_FEATURE_CORE_LOW (ARM_EXT_V5
),
3815 0xfa000000, 0xfe000000, "blx\t%B"},
3816 {ARM_FEATURE_CORE_LOW (ARM_EXT_V5
),
3817 0x012fff30, 0x0ffffff0, "blx%c\t%0-3R"},
3818 {ARM_FEATURE_CORE_LOW (ARM_EXT_V5
),
3819 0x016f0f10, 0x0fff0ff0, "clz%c\t%12-15R, %0-3R"},
3821 /* V5E "El Segundo" Instructions. */
3822 {ARM_FEATURE_CORE_LOW (ARM_EXT_V5E
),
3823 0x000000d0, 0x0e1000f0, "ldrd%c\t%12-15r, %s"},
3824 {ARM_FEATURE_CORE_LOW (ARM_EXT_V5E
),
3825 0x000000f0, 0x0e1000f0, "strd%c\t%12-15r, %s"},
3826 {ARM_FEATURE_CORE_LOW (ARM_EXT_V5E
),
3827 0xf450f000, 0xfc70f000, "pld\t%a"},
3828 {ARM_FEATURE_CORE_LOW (ARM_EXT_V5ExP
),
3829 0x01000080, 0x0ff000f0, "smlabb%c\t%16-19R, %0-3R, %8-11R, %12-15R"},
3830 {ARM_FEATURE_CORE_LOW (ARM_EXT_V5ExP
),
3831 0x010000a0, 0x0ff000f0, "smlatb%c\t%16-19R, %0-3R, %8-11R, %12-15R"},
3832 {ARM_FEATURE_CORE_LOW (ARM_EXT_V5ExP
),
3833 0x010000c0, 0x0ff000f0, "smlabt%c\t%16-19R, %0-3R, %8-11R, %12-15R"},
3834 {ARM_FEATURE_CORE_LOW (ARM_EXT_V5ExP
),
3835 0x010000e0, 0x0ff000f0, "smlatt%c\t%16-19r, %0-3r, %8-11R, %12-15R"},
3837 {ARM_FEATURE_CORE_LOW (ARM_EXT_V5ExP
),
3838 0x01200080, 0x0ff000f0, "smlawb%c\t%16-19R, %0-3R, %8-11R, %12-15R"},
3839 {ARM_FEATURE_CORE_LOW (ARM_EXT_V5ExP
),
3840 0x012000c0, 0x0ff000f0, "smlawt%c\t%16-19R, %0-3r, %8-11R, %12-15R"},
3842 {ARM_FEATURE_CORE_LOW (ARM_EXT_V5ExP
),
3843 0x01400080, 0x0ff000f0, "smlalbb%c\t%12-15Ru, %16-19Ru, %0-3R, %8-11R"},
3844 {ARM_FEATURE_CORE_LOW (ARM_EXT_V5ExP
),
3845 0x014000a0, 0x0ff000f0, "smlaltb%c\t%12-15Ru, %16-19Ru, %0-3R, %8-11R"},
3846 {ARM_FEATURE_CORE_LOW (ARM_EXT_V5ExP
),
3847 0x014000c0, 0x0ff000f0, "smlalbt%c\t%12-15Ru, %16-19Ru, %0-3R, %8-11R"},
3848 {ARM_FEATURE_CORE_LOW (ARM_EXT_V5ExP
),
3849 0x014000e0, 0x0ff000f0, "smlaltt%c\t%12-15Ru, %16-19Ru, %0-3R, %8-11R"},
3851 {ARM_FEATURE_CORE_LOW (ARM_EXT_V5ExP
),
3852 0x01600080, 0x0ff0f0f0, "smulbb%c\t%16-19R, %0-3R, %8-11R"},
3853 {ARM_FEATURE_CORE_LOW (ARM_EXT_V5ExP
),
3854 0x016000a0, 0x0ff0f0f0, "smultb%c\t%16-19R, %0-3R, %8-11R"},
3855 {ARM_FEATURE_CORE_LOW (ARM_EXT_V5ExP
),
3856 0x016000c0, 0x0ff0f0f0, "smulbt%c\t%16-19R, %0-3R, %8-11R"},
3857 {ARM_FEATURE_CORE_LOW (ARM_EXT_V5ExP
),
3858 0x016000e0, 0x0ff0f0f0, "smultt%c\t%16-19R, %0-3R, %8-11R"},
3860 {ARM_FEATURE_CORE_LOW (ARM_EXT_V5ExP
),
3861 0x012000a0, 0x0ff0f0f0, "smulwb%c\t%16-19R, %0-3R, %8-11R"},
3862 {ARM_FEATURE_CORE_LOW (ARM_EXT_V5ExP
),
3863 0x012000e0, 0x0ff0f0f0, "smulwt%c\t%16-19R, %0-3R, %8-11R"},
3865 {ARM_FEATURE_CORE_LOW (ARM_EXT_V5ExP
),
3866 0x01000050, 0x0ff00ff0, "qadd%c\t%12-15R, %0-3R, %16-19R"},
3867 {ARM_FEATURE_CORE_LOW (ARM_EXT_V5ExP
),
3868 0x01400050, 0x0ff00ff0, "qdadd%c\t%12-15R, %0-3R, %16-19R"},
3869 {ARM_FEATURE_CORE_LOW (ARM_EXT_V5ExP
),
3870 0x01200050, 0x0ff00ff0, "qsub%c\t%12-15R, %0-3R, %16-19R"},
3871 {ARM_FEATURE_CORE_LOW (ARM_EXT_V5ExP
),
3872 0x01600050, 0x0ff00ff0, "qdsub%c\t%12-15R, %0-3R, %16-19R"},
3874 /* ARM Instructions. */
3875 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3876 0x052d0004, 0x0fff0fff, "push%c\t{%12-15r}\t\t@ (str%c %12-15r, %a)"},
3878 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3879 0x04400000, 0x0e500000, "strb%t%c\t%12-15R, %a"},
3880 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3881 0x04000000, 0x0e500000, "str%t%c\t%12-15r, %a"},
3882 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3883 0x06400000, 0x0e500ff0, "strb%t%c\t%12-15R, %a"},
3884 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3885 0x06000000, 0x0e500ff0, "str%t%c\t%12-15r, %a"},
3886 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3887 0x04400000, 0x0c500010, "strb%t%c\t%12-15R, %a"},
3888 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3889 0x04000000, 0x0c500010, "str%t%c\t%12-15r, %a"},
3891 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3892 0x04400000, 0x0e500000, "strb%c\t%12-15R, %a"},
3893 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3894 0x06400000, 0x0e500010, "strb%c\t%12-15R, %a"},
3895 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3896 0x004000b0, 0x0e5000f0, "strh%c\t%12-15R, %s"},
3897 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3898 0x000000b0, 0x0e500ff0, "strh%c\t%12-15R, %s"},
3900 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3901 0x00500090, 0x0e5000f0, UNDEFINED_INSTRUCTION
},
3902 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3903 0x00500090, 0x0e500090, "ldr%6's%5?hb%c\t%12-15R, %s"},
3904 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3905 0x00100090, 0x0e500ff0, UNDEFINED_INSTRUCTION
},
3906 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3907 0x00100090, 0x0e500f90, "ldr%6's%5?hb%c\t%12-15R, %s"},
3909 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3910 0x02000000, 0x0fe00000, "and%20's%c\t%12-15r, %16-19r, %o"},
3911 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3912 0x00000000, 0x0fe00010, "and%20's%c\t%12-15r, %16-19r, %o"},
3913 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3914 0x00000010, 0x0fe00090, "and%20's%c\t%12-15R, %16-19R, %o"},
3916 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3917 0x02200000, 0x0fe00000, "eor%20's%c\t%12-15r, %16-19r, %o"},
3918 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3919 0x00200000, 0x0fe00010, "eor%20's%c\t%12-15r, %16-19r, %o"},
3920 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3921 0x00200010, 0x0fe00090, "eor%20's%c\t%12-15R, %16-19R, %o"},
3923 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3924 0x02400000, 0x0fe00000, "sub%20's%c\t%12-15r, %16-19r, %o"},
3925 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3926 0x00400000, 0x0fe00010, "sub%20's%c\t%12-15r, %16-19r, %o"},
3927 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3928 0x00400010, 0x0fe00090, "sub%20's%c\t%12-15R, %16-19R, %o"},
3930 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3931 0x02600000, 0x0fe00000, "rsb%20's%c\t%12-15r, %16-19r, %o"},
3932 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3933 0x00600000, 0x0fe00010, "rsb%20's%c\t%12-15r, %16-19r, %o"},
3934 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3935 0x00600010, 0x0fe00090, "rsb%20's%c\t%12-15R, %16-19R, %o"},
3937 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3938 0x02800000, 0x0fe00000, "add%20's%c\t%12-15r, %16-19r, %o"},
3939 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3940 0x00800000, 0x0fe00010, "add%20's%c\t%12-15r, %16-19r, %o"},
3941 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3942 0x00800010, 0x0fe00090, "add%20's%c\t%12-15R, %16-19R, %o"},
3944 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3945 0x02a00000, 0x0fe00000, "adc%20's%c\t%12-15r, %16-19r, %o"},
3946 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3947 0x00a00000, 0x0fe00010, "adc%20's%c\t%12-15r, %16-19r, %o"},
3948 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3949 0x00a00010, 0x0fe00090, "adc%20's%c\t%12-15R, %16-19R, %o"},
3951 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3952 0x02c00000, 0x0fe00000, "sbc%20's%c\t%12-15r, %16-19r, %o"},
3953 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3954 0x00c00000, 0x0fe00010, "sbc%20's%c\t%12-15r, %16-19r, %o"},
3955 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3956 0x00c00010, 0x0fe00090, "sbc%20's%c\t%12-15R, %16-19R, %o"},
3958 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3959 0x02e00000, 0x0fe00000, "rsc%20's%c\t%12-15r, %16-19r, %o"},
3960 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3961 0x00e00000, 0x0fe00010, "rsc%20's%c\t%12-15r, %16-19r, %o"},
3962 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3963 0x00e00010, 0x0fe00090, "rsc%20's%c\t%12-15R, %16-19R, %o"},
3965 {ARM_FEATURE_CORE_LOW (ARM_EXT_VIRT
),
3966 0x0120f200, 0x0fb0f200, "msr%c\t%C, %0-3r"},
3967 {ARM_FEATURE_CORE_LOW (ARM_EXT_V3
),
3968 0x0120f000, 0x0db0f000, "msr%c\t%C, %o"},
3969 {ARM_FEATURE_CORE_LOW (ARM_EXT_V3
),
3970 0x01000000, 0x0fb00cff, "mrs%c\t%12-15R, %R"},
3972 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3973 0x03000000, 0x0fe00000, "tst%p%c\t%16-19r, %o%O"},
3974 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3975 0x01000000, 0x0fe00010, "tst%p%c\t%16-19r, %o%O"},
3976 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3977 0x01000010, 0x0fe00090, "tst%p%c\t%16-19R, %o%O"},
3979 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3980 0x03300000, 0x0ff00000, "teq%p%c\t%16-19r, %o%O"},
3981 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3982 0x01300000, 0x0ff00010, "teq%p%c\t%16-19r, %o%O"},
3983 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3984 0x01300010, 0x0ff00010, "teq%p%c\t%16-19R, %o%O"},
3986 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3987 0x03400000, 0x0fe00000, "cmp%p%c\t%16-19r, %o%O"},
3988 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3989 0x01400000, 0x0fe00010, "cmp%p%c\t%16-19r, %o%O"},
3990 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3991 0x01400010, 0x0fe00090, "cmp%p%c\t%16-19R, %o%O"},
3993 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3994 0x03600000, 0x0fe00000, "cmn%p%c\t%16-19r, %o%O"},
3995 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3996 0x01600000, 0x0fe00010, "cmn%p%c\t%16-19r, %o%O"},
3997 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
3998 0x01600010, 0x0fe00090, "cmn%p%c\t%16-19R, %o%O"},
4000 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4001 0x03800000, 0x0fe00000, "orr%20's%c\t%12-15r, %16-19r, %o"},
4002 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4003 0x01800000, 0x0fe00010, "orr%20's%c\t%12-15r, %16-19r, %o"},
4004 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4005 0x01800010, 0x0fe00090, "orr%20's%c\t%12-15R, %16-19R, %o"},
4007 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4008 0x03a00000, 0x0fef0000, "mov%20's%c\t%12-15r, %o"},
4009 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4010 0x01a00000, 0x0def0ff0, "mov%20's%c\t%12-15r, %0-3r"},
4011 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4012 0x01a00000, 0x0def0060, "lsl%20's%c\t%12-15R, %q"},
4013 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4014 0x01a00020, 0x0def0060, "lsr%20's%c\t%12-15R, %q"},
4015 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4016 0x01a00040, 0x0def0060, "asr%20's%c\t%12-15R, %q"},
4017 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4018 0x01a00060, 0x0def0ff0, "rrx%20's%c\t%12-15r, %0-3r"},
4019 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4020 0x01a00060, 0x0def0060, "ror%20's%c\t%12-15R, %q"},
4022 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4023 0x03c00000, 0x0fe00000, "bic%20's%c\t%12-15r, %16-19r, %o"},
4024 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4025 0x01c00000, 0x0fe00010, "bic%20's%c\t%12-15r, %16-19r, %o"},
4026 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4027 0x01c00010, 0x0fe00090, "bic%20's%c\t%12-15R, %16-19R, %o"},
4029 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4030 0x03e00000, 0x0fe00000, "mvn%20's%c\t%12-15r, %o"},
4031 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4032 0x01e00000, 0x0fe00010, "mvn%20's%c\t%12-15r, %o"},
4033 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4034 0x01e00010, 0x0fe00090, "mvn%20's%c\t%12-15R, %o"},
4036 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4037 0x06000010, 0x0e000010, UNDEFINED_INSTRUCTION
},
4038 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4039 0x049d0004, 0x0fff0fff, "pop%c\t{%12-15r}\t\t@ (ldr%c %12-15r, %a)"},
4041 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4042 0x04500000, 0x0c500000, "ldrb%t%c\t%12-15R, %a"},
4044 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4045 0x04300000, 0x0d700000, "ldrt%c\t%12-15R, %a"},
4046 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4047 0x04100000, 0x0c500000, "ldr%c\t%12-15r, %a"},
4049 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4050 0x092d0001, 0x0fffffff, "stmfd%c\t%16-19R!, %m"},
4051 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4052 0x092d0002, 0x0fffffff, "stmfd%c\t%16-19R!, %m"},
4053 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4054 0x092d0004, 0x0fffffff, "stmfd%c\t%16-19R!, %m"},
4055 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4056 0x092d0008, 0x0fffffff, "stmfd%c\t%16-19R!, %m"},
4057 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4058 0x092d0010, 0x0fffffff, "stmfd%c\t%16-19R!, %m"},
4059 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4060 0x092d0020, 0x0fffffff, "stmfd%c\t%16-19R!, %m"},
4061 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4062 0x092d0040, 0x0fffffff, "stmfd%c\t%16-19R!, %m"},
4063 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4064 0x092d0080, 0x0fffffff, "stmfd%c\t%16-19R!, %m"},
4065 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4066 0x092d0100, 0x0fffffff, "stmfd%c\t%16-19R!, %m"},
4067 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4068 0x092d0200, 0x0fffffff, "stmfd%c\t%16-19R!, %m"},
4069 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4070 0x092d0400, 0x0fffffff, "stmfd%c\t%16-19R!, %m"},
4071 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4072 0x092d0800, 0x0fffffff, "stmfd%c\t%16-19R!, %m"},
4073 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4074 0x092d1000, 0x0fffffff, "stmfd%c\t%16-19R!, %m"},
4075 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4076 0x092d2000, 0x0fffffff, "stmfd%c\t%16-19R!, %m"},
4077 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4078 0x092d4000, 0x0fffffff, "stmfd%c\t%16-19R!, %m"},
4079 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4080 0x092d8000, 0x0fffffff, "stmfd%c\t%16-19R!, %m"},
4081 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4082 0x092d0000, 0x0fff0000, "push%c\t%m"},
4083 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4084 0x08800000, 0x0ff00000, "stm%c\t%16-19R%21'!, %m%22'^"},
4085 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4086 0x08000000, 0x0e100000, "stm%23?id%24?ba%c\t%16-19R%21'!, %m%22'^"},
4088 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4089 0x08bd0001, 0x0fffffff, "ldmfd%c\t%16-19R!, %m"},
4090 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4091 0x08bd0002, 0x0fffffff, "ldmfd%c\t%16-19R!, %m"},
4092 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4093 0x08bd0004, 0x0fffffff, "ldmfd%c\t%16-19R!, %m"},
4094 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4095 0x08bd0008, 0x0fffffff, "ldmfd%c\t%16-19R!, %m"},
4096 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4097 0x08bd0010, 0x0fffffff, "ldmfd%c\t%16-19R!, %m"},
4098 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4099 0x08bd0020, 0x0fffffff, "ldmfd%c\t%16-19R!, %m"},
4100 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4101 0x08bd0040, 0x0fffffff, "ldmfd%c\t%16-19R!, %m"},
4102 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4103 0x08bd0080, 0x0fffffff, "ldmfd%c\t%16-19R!, %m"},
4104 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4105 0x08bd0100, 0x0fffffff, "ldmfd%c\t%16-19R!, %m"},
4106 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4107 0x08bd0200, 0x0fffffff, "ldmfd%c\t%16-19R!, %m"},
4108 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4109 0x08bd0400, 0x0fffffff, "ldmfd%c\t%16-19R!, %m"},
4110 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4111 0x08bd0800, 0x0fffffff, "ldmfd%c\t%16-19R!, %m"},
4112 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4113 0x08bd1000, 0x0fffffff, "ldmfd%c\t%16-19R!, %m"},
4114 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4115 0x08bd2000, 0x0fffffff, "ldmfd%c\t%16-19R!, %m"},
4116 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4117 0x08bd4000, 0x0fffffff, "ldmfd%c\t%16-19R!, %m"},
4118 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4119 0x08bd8000, 0x0fffffff, "ldmfd%c\t%16-19R!, %m"},
4120 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4121 0x08bd0000, 0x0fff0000, "pop%c\t%m"},
4122 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4123 0x08900000, 0x0f900000, "ldm%c\t%16-19R%21'!, %m%22'^"},
4124 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4125 0x08100000, 0x0e100000, "ldm%23?id%24?ba%c\t%16-19R%21'!, %m%22'^"},
4127 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4128 0x0a000000, 0x0e000000, "b%24'l%c\t%b"},
4129 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4130 0x0f000000, 0x0f000000, "svc%c\t%0-23x"},
4133 {ARM_FEATURE_CORE_LOW (ARM_EXT_V7
),
4134 0x03200000, 0x0fff00ff, "nop%c\t{%{I:%0-7d%}}" UNPREDICTABLE_INSTRUCTION
},
4135 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4136 0x00000000, 0x00000000, UNDEFINED_INSTRUCTION
},
4137 {ARM_FEATURE_CORE_LOW (0),
4138 0x00000000, 0x00000000, 0}
4141 /* print_insn_thumb16 recognizes the following format control codes:
4143 %S print Thumb register (bits 3..5 as high number if bit 6 set)
4144 %D print Thumb register (bits 0..2 as high number if bit 7 set)
4145 %<bitfield>I print bitfield as a signed decimal
4146 (top bit of range being the sign bit)
4147 %N print Thumb register mask (with LR)
4148 %O print Thumb register mask (with PC)
4149 %M print Thumb register mask
4150 %b print CZB's 6-bit unsigned branch destination
4151 %s print Thumb right-shift immediate (6..10; 0 == 32).
4152 %c print the condition code
4153 %C print the condition code, or "s" if not conditional
4154 %x print warning if conditional an not at end of IT block"
4155 %X print "\t@ unpredictable <IT:code>" if conditional
4156 %I print IT instruction suffix and operands
4157 %W print Thumb Writeback indicator for LDMIA
4158 %<bitfield>r print bitfield as an ARM register
4159 %<bitfield>d print bitfield as a decimal
4160 %<bitfield>H print (bitfield * 2) as a decimal
4161 %<bitfield>W print (bitfield * 4) as a decimal
4162 %<bitfield>a print (bitfield * 4) as a pc-rel offset + decoded symbol
4163 %<bitfield>B print Thumb branch destination (signed displacement)
4164 %<bitfield>c print bitfield as a condition code
4165 %<bitnum>'c print specified char iff bit is one
4166 %<bitnum>?ab print a if bit is one else print b. */
4168 static const struct opcode16 thumb_opcodes
[] =
4170 /* Thumb instructions. */
4172 /* ARMv8-M Security Extensions instructions. */
4173 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8M
), 0x4784, 0xff87, "blxns\t%3-6r"},
4174 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8M
), 0x4704, 0xff87, "bxns\t%3-6r"},
4176 /* ARM V8 instructions. */
4177 {ARM_FEATURE_CORE_LOW (ARM_EXT_V8
), 0xbf50, 0xffff, "sevl%c"},
4178 {ARM_FEATURE_CORE_LOW (ARM_EXT_V8
), 0xba80, 0xffc0, "hlt\t%0-5x"},
4179 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_PAN
), 0xb610, 0xfff7, "setpan\t%{I:#%3-3d%}"},
4181 /* ARM V6K no-argument instructions. */
4182 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6K
), 0xbf00, 0xffff, "nop%c"},
4183 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6K
), 0xbf10, 0xffff, "yield%c"},
4184 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6K
), 0xbf20, 0xffff, "wfe%c"},
4185 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6K
), 0xbf30, 0xffff, "wfi%c"},
4186 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6K
), 0xbf40, 0xffff, "sev%c"},
4187 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6K
), 0xbf00, 0xff0f, "nop%c\t{%4-7d}"},
4189 /* ARM V6T2 instructions. */
4190 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V6T2_V8M
),
4191 0xb900, 0xfd00, "cbnz\t%0-2r, %b%X"},
4192 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V6T2_V8M
),
4193 0xb100, 0xfd00, "cbz\t%0-2r, %b%X"},
4194 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
), 0xbf00, 0xff00, "it%I%X"},
4197 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
), 0xb660, 0xfff8, "cpsie\t%{B:%2'a%1'i%0'f%}%X"},
4198 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
), 0xb670, 0xfff8, "cpsid\t%{B:%2'a%1'i%0'f%}%X"},
4199 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
), 0x4600, 0xffc0, "mov%c\t%0-2r, %3-5r"},
4200 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
), 0xba00, 0xffc0, "rev%c\t%0-2r, %3-5r"},
4201 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
), 0xba40, 0xffc0, "rev16%c\t%0-2r, %3-5r"},
4202 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
), 0xbac0, 0xffc0, "revsh%c\t%0-2r, %3-5r"},
4203 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
), 0xb650, 0xfff7, "setend\t%{B:%3?ble%}%X"},
4204 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
), 0xb200, 0xffc0, "sxth%c\t%0-2r, %3-5r"},
4205 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
), 0xb240, 0xffc0, "sxtb%c\t%0-2r, %3-5r"},
4206 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
), 0xb280, 0xffc0, "uxth%c\t%0-2r, %3-5r"},
4207 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6
), 0xb2c0, 0xffc0, "uxtb%c\t%0-2r, %3-5r"},
4209 /* ARM V5 ISA extends Thumb. */
4210 {ARM_FEATURE_CORE_LOW (ARM_EXT_V5T
),
4211 0xbe00, 0xff00, "bkpt\t%0-7x"}, /* Is always unconditional. */
4212 /* This is BLX(2). BLX(1) is a 32-bit instruction. */
4213 {ARM_FEATURE_CORE_LOW (ARM_EXT_V5T
),
4214 0x4780, 0xff87, "blx%c\t%3-6r%x"}, /* note: 4 bit register number. */
4215 /* ARM V4T ISA (Thumb v1). */
4216 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
),
4217 0x46C0, 0xFFFF, "nop%c\t\t\t@ (mov r8, r8)"},
4219 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
), 0x4000, 0xFFC0, "and%C\t%0-2r, %3-5r"},
4220 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
), 0x4040, 0xFFC0, "eor%C\t%0-2r, %3-5r"},
4221 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
), 0x4080, 0xFFC0, "lsl%C\t%0-2r, %3-5r"},
4222 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
), 0x40C0, 0xFFC0, "lsr%C\t%0-2r, %3-5r"},
4223 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
), 0x4100, 0xFFC0, "asr%C\t%0-2r, %3-5r"},
4224 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
), 0x4140, 0xFFC0, "adc%C\t%0-2r, %3-5r"},
4225 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
), 0x4180, 0xFFC0, "sbc%C\t%0-2r, %3-5r"},
4226 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
), 0x41C0, 0xFFC0, "ror%C\t%0-2r, %3-5r"},
4227 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
), 0x4200, 0xFFC0, "tst%c\t%0-2r, %3-5r"},
4228 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
), 0x4240, 0xFFC0, "neg%C\t%0-2r, %3-5r"},
4229 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
), 0x4280, 0xFFC0, "cmp%c\t%0-2r, %3-5r"},
4230 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
), 0x42C0, 0xFFC0, "cmn%c\t%0-2r, %3-5r"},
4231 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
), 0x4300, 0xFFC0, "orr%C\t%0-2r, %3-5r"},
4232 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
), 0x4340, 0xFFC0, "mul%C\t%0-2r, %3-5r"},
4233 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
), 0x4380, 0xFFC0, "bic%C\t%0-2r, %3-5r"},
4234 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
), 0x43C0, 0xFFC0, "mvn%C\t%0-2r, %3-5r"},
4236 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
), 0xB000, 0xFF80, "add%c\t%{R:sp%}, %{I:#%0-6W%}"},
4237 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
), 0xB080, 0xFF80, "sub%c\t%{R:sp%}, %{I:#%0-6W%}"},
4239 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
), 0x4700, 0xFF80, "bx%c\t%S%x"},
4240 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
), 0x4400, 0xFF00, "add%c\t%D, %S"},
4241 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
), 0x4500, 0xFF00, "cmp%c\t%D, %S"},
4242 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
), 0x4600, 0xFF00, "mov%c\t%D, %S"},
4244 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
), 0xB400, 0xFE00, "push%c\t%N"},
4245 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
), 0xBC00, 0xFE00, "pop%c\t%O"},
4247 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
),
4248 0x1800, 0xFE00, "add%C\t%0-2r, %3-5r, %6-8r"},
4249 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
),
4250 0x1A00, 0xFE00, "sub%C\t%0-2r, %3-5r, %6-8r"},
4251 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
),
4252 0x1C00, 0xFE00, "add%C\t%0-2r, %3-5r, %{I:#%6-8d%}"},
4253 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
),
4254 0x1E00, 0xFE00, "sub%C\t%0-2r, %3-5r, %{I:#%6-8d%}"},
4256 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
),
4257 0x5200, 0xFE00, "strh%c\t%0-2r, [%3-5r, %6-8r]"},
4258 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
),
4259 0x5A00, 0xFE00, "ldrh%c\t%0-2r, [%3-5r, %6-8r]"},
4260 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
),
4261 0x5600, 0xF600, "ldrs%11?hb%c\t%0-2r, [%3-5r, %6-8r]"},
4263 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
),
4264 0x5000, 0xFA00, "str%10'b%c\t%0-2r, [%3-5r, %6-8r]"},
4265 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
),
4266 0x5800, 0xFA00, "ldr%10'b%c\t%0-2r, [%3-5r, %6-8r]"},
4268 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
), 0x0000, 0xFFC0, "mov%C\t%0-2r, %3-5r"},
4269 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
),
4270 0x0000, 0xF800, "lsl%C\t%0-2r, %3-5r, %{I:#%6-10d%}"},
4271 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
), 0x0800, 0xF800, "lsr%C\t%0-2r, %3-5r, %s"},
4272 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
), 0x1000, 0xF800, "asr%C\t%0-2r, %3-5r, %s"},
4274 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
), 0x2000, 0xF800, "mov%C\t%8-10r, %{I:#%0-7d%}"},
4275 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
), 0x2800, 0xF800, "cmp%c\t%8-10r, %{I:#%0-7d%}"},
4276 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
), 0x3000, 0xF800, "add%C\t%8-10r, %{I:#%0-7d%}"},
4277 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
), 0x3800, 0xF800, "sub%C\t%8-10r, %{I:#%0-7d%}"},
4279 /* TODO: Disassemble PC relative "LDR rD,=<symbolic>" */
4280 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
),
4282 "ldr%c\t%8-10r, [%{R:pc%}, %{I:#%0-7W%}]\t@ (%0-7a)"},
4284 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
),
4285 0x6000, 0xF800, "str%c\t%0-2r, [%3-5r, %{I:#%6-10W%}]"},
4286 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
),
4287 0x6800, 0xF800, "ldr%c\t%0-2r, [%3-5r, %{I:#%6-10W%}]"},
4288 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
),
4289 0x7000, 0xF800, "strb%c\t%0-2r, [%3-5r, %{I:#%6-10d%}]"},
4290 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
),
4291 0x7800, 0xF800, "ldrb%c\t%0-2r, [%3-5r, %{I:#%6-10d%}]"},
4293 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
),
4294 0x8000, 0xF800, "strh%c\t%0-2r, [%3-5r, %{I:#%6-10H%}]"},
4295 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
),
4296 0x8800, 0xF800, "ldrh%c\t%0-2r, [%3-5r, %{I:#%6-10H%}]"},
4298 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
),
4299 0x9000, 0xF800, "str%c\t%8-10r, [%{R:sp%}, %{I:#%0-7W%}]"},
4300 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
),
4301 0x9800, 0xF800, "ldr%c\t%8-10r, [%{R:sp%}, %{I:#%0-7W%}]"},
4303 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
),
4304 0xA000, 0xF800, "add%c\t%8-10r, %{R:pc%}, %{I:#%0-7W%}\t@ (adr %8-10r, %0-7a)"},
4305 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
),
4306 0xA800, 0xF800, "add%c\t%8-10r, %{R:sp%}, %{I:#%0-7W%}"},
4308 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
), 0xC000, 0xF800, "stmia%c\t%8-10r!, %M"},
4309 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
), 0xC800, 0xF800, "ldmia%c\t%8-10r%W, %M"},
4311 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
), 0xDF00, 0xFF00, "svc%c\t%0-7d"},
4313 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
), 0xDE00, 0xFF00, "udf%c\t%{I:#%0-7d%}"},
4314 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
), 0xDE00, 0xFE00, UNDEFINED_INSTRUCTION
},
4315 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
), 0xD000, 0xF000, "b%8-11c.n\t%0-7B%X"},
4317 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
), 0xE000, 0xF800, "b%c.n\t%0-10B%x"},
4319 /* The E800 .. FFFF range is unconditionally redirected to the
4320 32-bit table, because even in pre-V6T2 ISAs, BL and BLX(1) pairs
4321 are processed via that table. Thus, we can never encounter a
4322 bare "second half of BL/BLX(1)" instruction here. */
4323 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
), 0x0000, 0x0000, UNDEFINED_INSTRUCTION
},
4324 {ARM_FEATURE_CORE_LOW (0), 0, 0, 0}
4327 /* Thumb32 opcodes use the same table structure as the ARM opcodes.
4328 We adopt the convention that hw1 is the high 16 bits of .value and
4329 .mask, hw2 the low 16 bits.
4331 print_insn_thumb32 recognizes the following format control codes:
4335 %I print a 12-bit immediate from hw1[10],hw2[14:12,7:0]
4336 %M print a modified 12-bit immediate (same location)
4337 %J print a 16-bit immediate from hw1[3:0,10],hw2[14:12,7:0]
4338 %K print a 16-bit immediate from hw2[3:0],hw1[3:0],hw2[11:4]
4339 %H print a 16-bit immediate from hw2[3:0],hw1[11:0]
4340 %S print a possibly-shifted Rm
4342 %L print address for a ldrd/strd instruction
4343 %a print the address of a plain load/store
4344 %w print the width and signedness of a core load/store
4345 %m print register mask for ldm/stm
4346 %n print register mask for clrm
4348 %E print the lsb and width fields of a bfc/bfi instruction
4349 %F print the lsb and width fields of a sbfx/ubfx instruction
4350 %G print a fallback offset for Branch Future instructions
4351 %W print an offset for BF instruction
4352 %Y print an offset for BFL instruction
4353 %Z print an offset for BFCSEL instruction
4354 %Q print an offset for Low Overhead Loop instructions
4355 %P print an offset for Low Overhead Loop end instructions
4356 %b print a conditional branch offset
4357 %B print an unconditional branch offset
4358 %s print the shift field of an SSAT instruction
4359 %R print the rotation field of an SXT instruction
4360 %U print barrier type.
4361 %P print address for pli instruction.
4362 %c print the condition code
4363 %x print warning if conditional an not at end of IT block"
4364 %X print "\t@ unpredictable <IT:code>" if conditional
4366 %<bitfield>d print bitfield in decimal
4367 %<bitfield>D print bitfield plus one in decimal
4368 %<bitfield>W print bitfield*4 in decimal
4369 %<bitfield>r print bitfield as an ARM register
4370 %<bitfield>R as %<>r but r15 is UNPREDICTABLE
4371 %<bitfield>S as %<>r but r13 and r15 is UNPREDICTABLE
4372 %<bitfield>c print bitfield as a condition code
4374 %<bitfield>'c print specified char iff bitfield is all ones
4375 %<bitfield>`c print specified char iff bitfield is all zeroes
4376 %<bitfield>?ab... select from array of values in big endian order
4378 With one exception at the bottom (done because BL and BLX(1) need
4379 to come dead last), this table was machine-sorted first in
4380 decreasing order of number of bits set in the mask, then in
4381 increasing numeric order of mask, then in increasing numeric order
4382 of opcode. This order is not the clearest for a human reader, but
4383 is guaranteed never to catch a special-case bit pattern with a more
4384 general mask, which is important, because this instruction encoding
4385 makes heavy use of special-case bit patterns. */
4386 static const struct opcode32 thumb32_opcodes
[] =
4388 /* Arm v8.1-M Mainline Pointer Authentication and Branch Target
4389 Identification Extension. */
4390 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_1M_MAIN
),
4391 0xf3af802d, 0xffffffff, "aut\t%{R:r12%}, %{R:lr%}, %{R:sp%}"},
4392 {ARM_FEATURE_CORE_HIGH_HIGH (ARM_EXT3_PACBTI
),
4393 0xfb500f00, 0xfff00ff0, "autg%c\t%12-15r, %16-19r, %0-3r"},
4394 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_1M_MAIN
),
4395 0xf3af800f, 0xffffffff, "bti"},
4396 {ARM_FEATURE_CORE_HIGH_HIGH (ARM_EXT3_PACBTI
),
4397 0xfb500f10, 0xfff00ff0, "bxaut%c\t%12-15r, %16-19r, %0-3r"},
4398 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_1M_MAIN
),
4399 0xf3af801d, 0xffffffff, "pac\t%{R:r12%}, %{R:lr%}, %{R:sp%}"},
4400 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_1M_MAIN
),
4401 0xf3af800d, 0xffffffff, "pacbti\t%{R:r12%}, %{R:lr%}, %{R:sp%}"},
4402 {ARM_FEATURE_CORE_HIGH_HIGH (ARM_EXT3_PACBTI
),
4403 0xfb60f000, 0xfff0f0f0, "pacg%c\t%8-11r, %16-19r, %0-3r"},
4405 /* Armv8.1-M Mainline and Armv8.1-M Mainline Security Extensions
4407 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_1M_MAIN
),
4408 0xf00fe001, 0xffffffff, "lctp%c"},
4409 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_1M_MAIN
),
4410 0xf02fc001, 0xfffff001, "le\t%P"},
4411 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_1M_MAIN
),
4412 0xf00fc001, 0xfffff001, "le\t%{R:lr%}, %P"},
4413 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_1M_MAIN
),
4414 0xf01fc001, 0xfffff001, "letp\t%{R:lr%}, %P"},
4415 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_1M_MAIN
),
4416 0xf040c001, 0xfff0f001, "wls\t%{R:lr%}, %16-19S, %Q"},
4417 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_1M_MAIN
),
4418 0xf000c001, 0xffc0f001, "wlstp.%20-21s\t%{R:lr%}, %16-19S, %Q"},
4419 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_1M_MAIN
),
4420 0xf040e001, 0xfff0ffff, "dls\t%{R:lr%}, %16-19S"},
4421 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_1M_MAIN
),
4422 0xf000e001, 0xffc0ffff, "dlstp.%20-21s\t%{R:lr%}, %16-19S"},
4424 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_1M_MAIN
),
4425 0xf040e001, 0xf860f001, "bf%c\t%G, %W"},
4426 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_1M_MAIN
),
4427 0xf060e001, 0xf8f0f001, "bfx%c\t%G, %16-19S"},
4428 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_1M_MAIN
),
4429 0xf000c001, 0xf800f001, "bfl%c\t%G, %Y"},
4430 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_1M_MAIN
),
4431 0xf070e001, 0xf8f0f001, "bflx%c\t%G, %16-19S"},
4432 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_1M_MAIN
),
4433 0xf000e001, 0xf840f001, "bfcsel\t%G, %Z, %{B:%18-21c%}"},
4435 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_1M_MAIN
),
4436 0xe89f0000, 0xffff2000, "clrm%c\t%n"},
4438 /* ARMv8-M and ARMv8-M Security Extensions instructions. */
4439 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8M
), 0xe97fe97f, 0xffffffff, "sg"},
4440 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8M
),
4441 0xe840f000, 0xfff0f0ff, "tt\t%8-11r, %16-19r"},
4442 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8M
),
4443 0xe840f040, 0xfff0f0ff, "ttt\t%8-11r, %16-19r"},
4444 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8M
),
4445 0xe840f080, 0xfff0f0ff, "tta\t%8-11r, %16-19r"},
4446 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8M
),
4447 0xe840f0c0, 0xfff0f0ff, "ttat\t%8-11r, %16-19r"},
4449 /* ARM V8.2 RAS extension instructions. */
4450 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_RAS
),
4451 0xf3af8010, 0xffffffff, "esb"},
4453 /* V8 instructions. */
4454 {ARM_FEATURE_CORE_LOW (ARM_EXT_V8
),
4455 0xf3af8005, 0xffffffff, "sevl%c.w"},
4456 {ARM_FEATURE_CORE_LOW (ARM_EXT_V8
),
4457 0xf78f8000, 0xfffffffc, "dcps%0-1d"},
4458 {ARM_FEATURE_CORE_LOW (ARM_EXT_V8
),
4459 0xe8c00f8f, 0xfff00fff, "stlb%c\t%12-15r, [%16-19R]"},
4460 {ARM_FEATURE_CORE_LOW (ARM_EXT_V8
),
4461 0xe8c00f9f, 0xfff00fff, "stlh%c\t%12-15r, [%16-19R]"},
4462 {ARM_FEATURE_CORE_LOW (ARM_EXT_V8
),
4463 0xe8c00faf, 0xfff00fff, "stl%c\t%12-15r, [%16-19R]"},
4464 {ARM_FEATURE_CORE_LOW (ARM_EXT_V8
),
4465 0xe8c00fc0, 0xfff00ff0, "stlexb%c\t%0-3r, %12-15r, [%16-19R]"},
4466 {ARM_FEATURE_CORE_LOW (ARM_EXT_V8
),
4467 0xe8c00fd0, 0xfff00ff0, "stlexh%c\t%0-3r, %12-15r, [%16-19R]"},
4468 {ARM_FEATURE_CORE_LOW (ARM_EXT_V8
),
4469 0xe8c00fe0, 0xfff00ff0, "stlex%c\t%0-3r, %12-15r, [%16-19R]"},
4470 {ARM_FEATURE_CORE_LOW (ARM_EXT_V8
),
4471 0xe8c000f0, 0xfff000f0, "stlexd%c\t%0-3r, %12-15r, %8-11r, [%16-19R]"},
4472 {ARM_FEATURE_CORE_LOW (ARM_EXT_V8
),
4473 0xe8d00f8f, 0xfff00fff, "ldab%c\t%12-15r, [%16-19R]"},
4474 {ARM_FEATURE_CORE_LOW (ARM_EXT_V8
),
4475 0xe8d00f9f, 0xfff00fff, "ldah%c\t%12-15r, [%16-19R]"},
4476 {ARM_FEATURE_CORE_LOW (ARM_EXT_V8
),
4477 0xe8d00faf, 0xfff00fff, "lda%c\t%12-15r, [%16-19R]"},
4478 {ARM_FEATURE_CORE_LOW (ARM_EXT_V8
),
4479 0xe8d00fcf, 0xfff00fff, "ldaexb%c\t%12-15r, [%16-19R]"},
4480 {ARM_FEATURE_CORE_LOW (ARM_EXT_V8
),
4481 0xe8d00fdf, 0xfff00fff, "ldaexh%c\t%12-15r, [%16-19R]"},
4482 {ARM_FEATURE_CORE_LOW (ARM_EXT_V8
),
4483 0xe8d00fef, 0xfff00fff, "ldaex%c\t%12-15r, [%16-19R]"},
4484 {ARM_FEATURE_CORE_LOW (ARM_EXT_V8
),
4485 0xe8d000ff, 0xfff000ff, "ldaexd%c\t%12-15r, %8-11r, [%16-19R]"},
4487 /* V8-R instructions. */
4488 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8R
),
4489 0xf3bf8f4c, 0xffffffff, "dfb%c"},
4491 /* CRC32 instructions. */
4492 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_CRC
),
4493 0xfac0f080, 0xfff0f0f0, "crc32b\t%8-11R, %16-19R, %0-3R"},
4494 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_CRC
),
4495 0xfac0f090, 0xfff0f0f0, "crc32h\t%9-11R, %16-19R, %0-3R"},
4496 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_CRC
),
4497 0xfac0f0a0, 0xfff0f0f0, "crc32w\t%8-11R, %16-19R, %0-3R"},
4498 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_CRC
),
4499 0xfad0f080, 0xfff0f0f0, "crc32cb\t%8-11R, %16-19R, %0-3R"},
4500 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_CRC
),
4501 0xfad0f090, 0xfff0f0f0, "crc32ch\t%8-11R, %16-19R, %0-3R"},
4502 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_CRC
),
4503 0xfad0f0a0, 0xfff0f0f0, "crc32cw\t%8-11R, %16-19R, %0-3R"},
4505 /* Speculation Barriers. */
4506 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
), 0xf3af8014, 0xffffffff, "csdb"},
4507 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
), 0xf3bf8f40, 0xffffffff, "ssbb"},
4508 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
), 0xf3bf8f44, 0xffffffff, "pssbb"},
4510 /* V7 instructions. */
4511 {ARM_FEATURE_CORE_LOW (ARM_EXT_V7
), 0xf910f000, 0xff70f000, "pli%c\t%a"},
4512 {ARM_FEATURE_CORE_LOW (ARM_EXT_V7
), 0xf3af80f0, 0xfffffff0, "dbg%c\t%{I:#%0-3d%}"},
4513 {ARM_FEATURE_CORE_LOW (ARM_EXT_V8
), 0xf3bf8f51, 0xfffffff3, "dmb%c\t%U"},
4514 {ARM_FEATURE_CORE_LOW (ARM_EXT_V8
), 0xf3bf8f41, 0xfffffff3, "dsb%c\t%U"},
4515 {ARM_FEATURE_CORE_LOW (ARM_EXT_V7
), 0xf3bf8f50, 0xfffffff0, "dmb%c\t%U"},
4516 {ARM_FEATURE_CORE_LOW (ARM_EXT_V7
), 0xf3bf8f40, 0xfffffff0, "dsb%c\t%U"},
4517 {ARM_FEATURE_CORE_LOW (ARM_EXT_V7
), 0xf3bf8f60, 0xfffffff0, "isb%c\t%U"},
4518 {ARM_FEATURE_CORE_LOW (ARM_EXT_DIV
),
4519 0xfb90f0f0, 0xfff0f0f0, "sdiv%c\t%8-11r, %16-19r, %0-3r"},
4520 {ARM_FEATURE_CORE_LOW (ARM_EXT_DIV
),
4521 0xfbb0f0f0, 0xfff0f0f0, "udiv%c\t%8-11r, %16-19r, %0-3r"},
4523 /* Virtualization Extension instructions. */
4524 {ARM_FEATURE_CORE_LOW (ARM_EXT_VIRT
), 0xf7e08000, 0xfff0f000, "hvc%c\t%V"},
4525 /* We skip ERET as that is SUBS pc, lr, #0. */
4527 /* MP Extension instructions. */
4528 {ARM_FEATURE_CORE_LOW (ARM_EXT_MP
), 0xf830f000, 0xff70f000, "pldw%c\t%a"},
4530 /* Security extension instructions. */
4531 {ARM_FEATURE_CORE_LOW (ARM_EXT_SEC
), 0xf7f08000, 0xfff0f000, "smc%c\t%K"},
4533 /* ARMv8.5-A instructions. */
4534 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_SB
), 0xf3bf8f70, 0xffffffff, "sb"},
4536 /* Instructions defined in the basic V6T2 set. */
4537 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
), 0xf3af8000, 0xffffffff, "nop%c.w"},
4538 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
), 0xf3af8001, 0xffffffff, "yield%c.w"},
4539 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
), 0xf3af8002, 0xffffffff, "wfe%c.w"},
4540 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
), 0xf3af8003, 0xffffffff, "wfi%c.w"},
4541 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
), 0xf3af8004, 0xffffffff, "sev%c.w"},
4542 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4543 0xf3af8000, 0xffffff00, "nop%c.w\t{%{I:%0-7d%}}"},
4544 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
), 0xf7f0a000, 0xfff0f000, "udf%c.w\t%H"},
4546 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V6T2_V8M
),
4547 0xf3bf8f2f, 0xffffffff, "clrex%c"},
4548 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4549 0xf3af8400, 0xffffff1f, "cpsie.w\t%{B:%7'a%6'i%5'f%}%X"},
4550 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4551 0xf3af8600, 0xffffff1f, "cpsid.w\t%{B:%7'a%6'i%5'f%}%X"},
4552 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4553 0xf3c08f00, 0xfff0ffff, "bxj%c\t%16-19r%x"},
4554 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4555 0xe810c000, 0xffd0ffff, "rfedb%c\t%16-19r%21'!"},
4556 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4557 0xe990c000, 0xffd0ffff, "rfeia%c\t%16-19r%21'!"},
4558 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4559 0xf3e08000, 0xffe0f000, "mrs%c\t%8-11r, %D"},
4560 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4561 0xf3af8100, 0xffffffe0, "cps\t%{I:#%0-4d%}%X"},
4562 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4563 0xe8d0f000, 0xfff0fff0, "tbb%c\t[%16-19r, %0-3r]%x"},
4564 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4565 0xe8d0f010, 0xfff0fff0, "tbh%c\t[%16-19r, %0-3r, %{B:lsl%} %{I:#1%}]%x"},
4566 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4567 0xf3af8500, 0xffffff00, "cpsie\t%{B:%7'a%6'i%5'f%}, %{I:#%0-4d%}%X"},
4568 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4569 0xf3af8700, 0xffffff00, "cpsid\t%{B:%7'a%6'i%5'f%}, %{I:#%0-4d%}%X"},
4570 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4571 0xf3de8f00, 0xffffff00, "subs%c\t%{R:pc%}, %{R:lr%}, %{I:#%0-7d%}"},
4572 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4573 0xf3808000, 0xffe0f000, "msr%c\t%C, %16-19r"},
4574 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V6T2_V8M
),
4575 0xe8500f00, 0xfff00fff, "ldrex%c\t%12-15r, [%16-19r]"},
4576 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V6T2_V8M
),
4577 0xe8d00f4f, 0xfff00fef, "ldrex%4?hb%c\t%12-15r, [%16-19r]"},
4578 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4579 0xe800c000, 0xffd0ffe0, "srsdb%c\t%16-19r%21'!, %{I:#%0-4d%}"},
4580 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4581 0xe980c000, 0xffd0ffe0, "srsia%c\t%16-19r%21'!, %{I:#%0-4d%}"},
4582 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4583 0xfa0ff080, 0xfffff0c0, "sxth%c.w\t%8-11r, %0-3r%R"},
4584 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4585 0xfa1ff080, 0xfffff0c0, "uxth%c.w\t%8-11r, %0-3r%R"},
4586 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4587 0xfa2ff080, 0xfffff0c0, "sxtb16%c\t%8-11r, %0-3r%R"},
4588 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4589 0xfa3ff080, 0xfffff0c0, "uxtb16%c\t%8-11r, %0-3r%R"},
4590 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4591 0xfa4ff080, 0xfffff0c0, "sxtb%c.w\t%8-11r, %0-3r%R"},
4592 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4593 0xfa5ff080, 0xfffff0c0, "uxtb%c.w\t%8-11r, %0-3r%R"},
4594 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V6T2_V8M
),
4595 0xe8400000, 0xfff000ff, "strex%c\t%8-11r, %12-15r, [%16-19r]"},
4596 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4597 0xe8d0007f, 0xfff000ff, "ldrexd%c\t%12-15r, %8-11r, [%16-19r]"},
4598 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4599 0xfa80f000, 0xfff0f0f0, "sadd8%c\t%8-11r, %16-19r, %0-3r"},
4600 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4601 0xfa80f010, 0xfff0f0f0, "qadd8%c\t%8-11r, %16-19r, %0-3r"},
4602 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4603 0xfa80f020, 0xfff0f0f0, "shadd8%c\t%8-11r, %16-19r, %0-3r"},
4604 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4605 0xfa80f040, 0xfff0f0f0, "uadd8%c\t%8-11r, %16-19r, %0-3r"},
4606 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4607 0xfa80f050, 0xfff0f0f0, "uqadd8%c\t%8-11r, %16-19r, %0-3r"},
4608 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4609 0xfa80f060, 0xfff0f0f0, "uhadd8%c\t%8-11r, %16-19r, %0-3r"},
4610 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4611 0xfa80f080, 0xfff0f0f0, "qadd%c\t%8-11r, %0-3r, %16-19r"},
4612 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4613 0xfa80f090, 0xfff0f0f0, "qdadd%c\t%8-11r, %0-3r, %16-19r"},
4614 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4615 0xfa80f0a0, 0xfff0f0f0, "qsub%c\t%8-11r, %0-3r, %16-19r"},
4616 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4617 0xfa80f0b0, 0xfff0f0f0, "qdsub%c\t%8-11r, %0-3r, %16-19r"},
4618 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4619 0xfa90f000, 0xfff0f0f0, "sadd16%c\t%8-11r, %16-19r, %0-3r"},
4620 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4621 0xfa90f010, 0xfff0f0f0, "qadd16%c\t%8-11r, %16-19r, %0-3r"},
4622 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4623 0xfa90f020, 0xfff0f0f0, "shadd16%c\t%8-11r, %16-19r, %0-3r"},
4624 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4625 0xfa90f040, 0xfff0f0f0, "uadd16%c\t%8-11r, %16-19r, %0-3r"},
4626 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4627 0xfa90f050, 0xfff0f0f0, "uqadd16%c\t%8-11r, %16-19r, %0-3r"},
4628 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4629 0xfa90f060, 0xfff0f0f0, "uhadd16%c\t%8-11r, %16-19r, %0-3r"},
4630 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4631 0xfa90f080, 0xfff0f0f0, "rev%c.w\t%8-11r, %16-19r"},
4632 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4633 0xfa90f090, 0xfff0f0f0, "rev16%c.w\t%8-11r, %16-19r"},
4634 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4635 0xfa90f0a0, 0xfff0f0f0, "rbit%c\t%8-11r, %16-19r"},
4636 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4637 0xfa90f0b0, 0xfff0f0f0, "revsh%c.w\t%8-11r, %16-19r"},
4638 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4639 0xfaa0f000, 0xfff0f0f0, "sasx%c\t%8-11r, %16-19r, %0-3r"},
4640 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4641 0xfaa0f010, 0xfff0f0f0, "qasx%c\t%8-11r, %16-19r, %0-3r"},
4642 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4643 0xfaa0f020, 0xfff0f0f0, "shasx%c\t%8-11r, %16-19r, %0-3r"},
4644 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4645 0xfaa0f040, 0xfff0f0f0, "uasx%c\t%8-11r, %16-19r, %0-3r"},
4646 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4647 0xfaa0f050, 0xfff0f0f0, "uqasx%c\t%8-11r, %16-19r, %0-3r"},
4648 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4649 0xfaa0f060, 0xfff0f0f0, "uhasx%c\t%8-11r, %16-19r, %0-3r"},
4650 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4651 0xfaa0f080, 0xfff0f0f0, "sel%c\t%8-11r, %16-19r, %0-3r"},
4652 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4653 0xfab0f080, 0xfff0f0f0, "clz%c\t%8-11r, %16-19r"},
4654 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4655 0xfac0f000, 0xfff0f0f0, "ssub8%c\t%8-11r, %16-19r, %0-3r"},
4656 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4657 0xfac0f010, 0xfff0f0f0, "qsub8%c\t%8-11r, %16-19r, %0-3r"},
4658 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4659 0xfac0f020, 0xfff0f0f0, "shsub8%c\t%8-11r, %16-19r, %0-3r"},
4660 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4661 0xfac0f040, 0xfff0f0f0, "usub8%c\t%8-11r, %16-19r, %0-3r"},
4662 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4663 0xfac0f050, 0xfff0f0f0, "uqsub8%c\t%8-11r, %16-19r, %0-3r"},
4664 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4665 0xfac0f060, 0xfff0f0f0, "uhsub8%c\t%8-11r, %16-19r, %0-3r"},
4666 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4667 0xfad0f000, 0xfff0f0f0, "ssub16%c\t%8-11r, %16-19r, %0-3r"},
4668 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4669 0xfad0f010, 0xfff0f0f0, "qsub16%c\t%8-11r, %16-19r, %0-3r"},
4670 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4671 0xfad0f020, 0xfff0f0f0, "shsub16%c\t%8-11r, %16-19r, %0-3r"},
4672 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4673 0xfad0f040, 0xfff0f0f0, "usub16%c\t%8-11r, %16-19r, %0-3r"},
4674 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4675 0xfad0f050, 0xfff0f0f0, "uqsub16%c\t%8-11r, %16-19r, %0-3r"},
4676 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4677 0xfad0f060, 0xfff0f0f0, "uhsub16%c\t%8-11r, %16-19r, %0-3r"},
4678 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4679 0xfae0f000, 0xfff0f0f0, "ssax%c\t%8-11r, %16-19r, %0-3r"},
4680 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4681 0xfae0f010, 0xfff0f0f0, "qsax%c\t%8-11r, %16-19r, %0-3r"},
4682 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4683 0xfae0f020, 0xfff0f0f0, "shsax%c\t%8-11r, %16-19r, %0-3r"},
4684 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4685 0xfae0f040, 0xfff0f0f0, "usax%c\t%8-11r, %16-19r, %0-3r"},
4686 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4687 0xfae0f050, 0xfff0f0f0, "uqsax%c\t%8-11r, %16-19r, %0-3r"},
4688 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4689 0xfae0f060, 0xfff0f0f0, "uhsax%c\t%8-11r, %16-19r, %0-3r"},
4690 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4691 0xfb00f000, 0xfff0f0f0, "mul%c.w\t%8-11r, %16-19r, %0-3r"},
4692 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4693 0xfb70f000, 0xfff0f0f0, "usad8%c\t%8-11r, %16-19r, %0-3r"},
4694 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4695 0xfa00f000, 0xffe0f0f0, "lsl%20's%c.w\t%8-11R, %16-19R, %0-3R"},
4696 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4697 0xfa20f000, 0xffe0f0f0, "lsr%20's%c.w\t%8-11R, %16-19R, %0-3R"},
4698 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4699 0xfa40f000, 0xffe0f0f0, "asr%20's%c.w\t%8-11R, %16-19R, %0-3R"},
4700 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4701 0xfa60f000, 0xffe0f0f0, "ror%20's%c.w\t%8-11r, %16-19r, %0-3r"},
4702 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V6T2_V8M
),
4703 0xe8c00f40, 0xfff00fe0, "strex%4?hb%c\t%0-3r, %12-15r, [%16-19r]"},
4704 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4705 0xf3200000, 0xfff0f0e0, "ssat16%c\t%8-11r, %{I:#%0-4D%}, %16-19r"},
4706 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4707 0xf3a00000, 0xfff0f0e0, "usat16%c\t%8-11r, %{I:#%0-4d%}, %16-19r"},
4708 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4709 0xfb20f000, 0xfff0f0e0, "smuad%4'x%c\t%8-11r, %16-19r, %0-3r"},
4710 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4711 0xfb30f000, 0xfff0f0e0, "smulw%4?tb%c\t%8-11r, %16-19r, %0-3r"},
4712 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4713 0xfb40f000, 0xfff0f0e0, "smusd%4'x%c\t%8-11r, %16-19r, %0-3r"},
4714 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4715 0xfb50f000, 0xfff0f0e0, "smmul%4'r%c\t%8-11r, %16-19r, %0-3r"},
4716 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4717 0xfa00f080, 0xfff0f0c0, "sxtah%c\t%8-11r, %16-19r, %0-3r%R"},
4718 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4719 0xfa10f080, 0xfff0f0c0, "uxtah%c\t%8-11r, %16-19r, %0-3r%R"},
4720 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4721 0xfa20f080, 0xfff0f0c0, "sxtab16%c\t%8-11r, %16-19r, %0-3r%R"},
4722 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4723 0xfa30f080, 0xfff0f0c0, "uxtab16%c\t%8-11r, %16-19r, %0-3r%R"},
4724 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4725 0xfa40f080, 0xfff0f0c0, "sxtab%c\t%8-11r, %16-19r, %0-3r%R"},
4726 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4727 0xfa50f080, 0xfff0f0c0, "uxtab%c\t%8-11r, %16-19r, %0-3r%R"},
4728 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4729 0xfb10f000, 0xfff0f0c0, "smul%5?tb%4?tb%c\t%8-11r, %16-19r, %0-3r"},
4730 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4731 0xf36f0000, 0xffff8020, "bfc%c\t%8-11r, %E"},
4732 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4733 0xea100f00, 0xfff08f00, "tst%c.w\t%16-19r, %S"},
4734 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4735 0xea900f00, 0xfff08f00, "teq%c\t%16-19r, %S"},
4736 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4737 0xeb100f00, 0xfff08f00, "cmn%c.w\t%16-19r, %S"},
4738 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4739 0xebb00f00, 0xfff08f00, "cmp%c.w\t%16-19r, %S"},
4740 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4741 0xf0100f00, 0xfbf08f00, "tst%c.w\t%16-19r, %M"},
4742 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4743 0xf0900f00, 0xfbf08f00, "teq%c\t%16-19r, %M"},
4744 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4745 0xf1100f00, 0xfbf08f00, "cmn%c.w\t%16-19r, %M"},
4746 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4747 0xf1b00f00, 0xfbf08f00, "cmp%c.w\t%16-19r, %M"},
4748 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4749 0xea4f0000, 0xffef8000, "mov%20's%c.w\t%8-11r, %S"},
4750 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4751 0xea6f0000, 0xffef8000, "mvn%20's%c.w\t%8-11r, %S"},
4752 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4753 0xe8c00070, 0xfff000f0, "strexd%c\t%0-3r, %12-15r, %8-11r, [%16-19r]"},
4754 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4755 0xfb000000, 0xfff000f0, "mla%c\t%8-11r, %16-19r, %0-3r, %12-15r"},
4756 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4757 0xfb000010, 0xfff000f0, "mls%c\t%8-11r, %16-19r, %0-3r, %12-15r"},
4758 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4759 0xfb700000, 0xfff000f0, "usada8%c\t%8-11R, %16-19R, %0-3R, %12-15R"},
4760 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4761 0xfb800000, 0xfff000f0, "smull%c\t%12-15R, %8-11R, %16-19R, %0-3R"},
4762 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4763 0xfba00000, 0xfff000f0, "umull%c\t%12-15R, %8-11R, %16-19R, %0-3R"},
4764 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4765 0xfbc00000, 0xfff000f0, "smlal%c\t%12-15R, %8-11R, %16-19R, %0-3R"},
4766 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4767 0xfbe00000, 0xfff000f0, "umlal%c\t%12-15R, %8-11R, %16-19R, %0-3R"},
4768 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4769 0xfbe00060, 0xfff000f0, "umaal%c\t%12-15R, %8-11R, %16-19R, %0-3R"},
4770 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V6T2_V8M
),
4771 0xe8500f00, 0xfff00f00, "ldrex%c\t%12-15r, [%16-19r, %{I:#%0-7W%}]"},
4772 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4773 0xf04f0000, 0xfbef8000, "mov%20's%c.w\t%8-11r, %M"},
4774 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4775 0xf06f0000, 0xfbef8000, "mvn%20's%c.w\t%8-11r, %M"},
4776 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4777 0xf810f000, 0xff70f000, "pld%c\t%a"},
4778 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4779 0xfb200000, 0xfff000e0, "smlad%4'x%c\t%8-11R, %16-19R, %0-3R, %12-15R"},
4780 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4781 0xfb300000, 0xfff000e0, "smlaw%4?tb%c\t%8-11R, %16-19R, %0-3R, %12-15R"},
4782 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4783 0xfb400000, 0xfff000e0, "smlsd%4'x%c\t%8-11R, %16-19R, %0-3R, %12-15R"},
4784 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4785 0xfb500000, 0xfff000e0, "smmla%4'r%c\t%8-11R, %16-19R, %0-3R, %12-15R"},
4786 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4787 0xfb600000, 0xfff000e0, "smmls%4'r%c\t%8-11R, %16-19R, %0-3R, %12-15R"},
4788 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4789 0xfbc000c0, 0xfff000e0, "smlald%4'x%c\t%12-15R, %8-11R, %16-19R, %0-3R"},
4790 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4791 0xfbd000c0, 0xfff000e0, "smlsld%4'x%c\t%12-15R, %8-11R, %16-19R, %0-3R"},
4792 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4793 0xeac00000, 0xfff08030, "pkhbt%c\t%8-11r, %16-19r, %S"},
4794 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4795 0xeac00020, 0xfff08030, "pkhtb%c\t%8-11r, %16-19r, %S"},
4796 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4797 0xf3400000, 0xfff08020, "sbfx%c\t%8-11r, %16-19r, %F"},
4798 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4799 0xf3c00000, 0xfff08020, "ubfx%c\t%8-11r, %16-19r, %F"},
4800 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4801 0xf8000e00, 0xff900f00, "str%wt%c\t%12-15r, %a"},
4802 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4803 0xfb100000, 0xfff000c0,
4804 "smla%5?tb%4?tb%c\t%8-11r, %16-19r, %0-3r, %12-15r"},
4805 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4806 0xfbc00080, 0xfff000c0,
4807 "smlal%5?tb%4?tb%c\t%12-15r, %8-11r, %16-19r, %0-3r"},
4808 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4809 0xf3600000, 0xfff08020, "bfi%c\t%8-11r, %16-19r, %E"},
4810 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4811 0xf8100e00, 0xfe900f00, "ldr%wt%c\t%12-15r, %a"},
4812 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4813 0xf3000000, 0xffd08020, "ssat%c\t%8-11r, %{I:#%0-4D%}, %16-19r%s"},
4814 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4815 0xf3800000, 0xffd08020, "usat%c\t%8-11r, %{I:#%0-4d%}, %16-19r%s"},
4816 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4817 0xf2000000, 0xfbf08000, "addw%c\t%8-11r, %16-19r, %I"},
4818 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V6T2_V8M
),
4819 0xf2400000, 0xfbf08000, "movw%c\t%8-11r, %J"},
4820 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4821 0xf2a00000, 0xfbf08000, "subw%c\t%8-11r, %16-19r, %I"},
4822 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V6T2_V8M
),
4823 0xf2c00000, 0xfbf08000, "movt%c\t%8-11r, %J"},
4824 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4825 0xea000000, 0xffe08000, "and%20's%c.w\t%8-11r, %16-19r, %S"},
4826 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4827 0xea200000, 0xffe08000, "bic%20's%c.w\t%8-11r, %16-19r, %S"},
4828 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4829 0xea400000, 0xffe08000, "orr%20's%c.w\t%8-11r, %16-19r, %S"},
4830 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4831 0xea600000, 0xffe08000, "orn%20's%c\t%8-11r, %16-19r, %S"},
4832 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4833 0xea800000, 0xffe08000, "eor%20's%c.w\t%8-11r, %16-19r, %S"},
4834 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4835 0xeb000000, 0xffe08000, "add%20's%c.w\t%8-11r, %16-19r, %S"},
4836 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4837 0xeb400000, 0xffe08000, "adc%20's%c.w\t%8-11r, %16-19r, %S"},
4838 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4839 0xeb600000, 0xffe08000, "sbc%20's%c.w\t%8-11r, %16-19r, %S"},
4840 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4841 0xeba00000, 0xffe08000, "sub%20's%c.w\t%8-11r, %16-19r, %S"},
4842 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4843 0xebc00000, 0xffe08000, "rsb%20's%c\t%8-11r, %16-19r, %S"},
4844 {ARM_FEATURE_CORE_HIGH (ARM_EXT2_V6T2_V8M
),
4845 0xe8400000, 0xfff00000, "strex%c\t%8-11r, %12-15r, [%16-19r, %{I:#%0-7W%}]"},
4846 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4847 0xf0000000, 0xfbe08000, "and%20's%c.w\t%8-11r, %16-19r, %M"},
4848 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4849 0xf0200000, 0xfbe08000, "bic%20's%c.w\t%8-11r, %16-19r, %M"},
4850 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4851 0xf0400000, 0xfbe08000, "orr%20's%c.w\t%8-11r, %16-19r, %M"},
4852 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4853 0xf0600000, 0xfbe08000, "orn%20's%c\t%8-11r, %16-19r, %M"},
4854 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4855 0xf0800000, 0xfbe08000, "eor%20's%c.w\t%8-11r, %16-19r, %M"},
4856 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4857 0xf1000000, 0xfbe08000, "add%20's%c.w\t%8-11r, %16-19r, %M"},
4858 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4859 0xf1400000, 0xfbe08000, "adc%20's%c.w\t%8-11r, %16-19r, %M"},
4860 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4861 0xf1600000, 0xfbe08000, "sbc%20's%c.w\t%8-11r, %16-19r, %M"},
4862 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4863 0xf1a00000, 0xfbe08000, "sub%20's%c.w\t%8-11r, %16-19r, %M"},
4864 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4865 0xf1c00000, 0xfbe08000, "rsb%20's%c\t%8-11r, %16-19r, %M"},
4866 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4867 0xe8800000, 0xffd00000, "stmia%c.w\t%16-19r%21'!, %m"},
4868 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4869 0xe8900000, 0xffd00000, "ldmia%c.w\t%16-19r%21'!, %m"},
4870 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4871 0xe9000000, 0xffd00000, "stmdb%c\t%16-19r%21'!, %m"},
4872 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4873 0xe9100000, 0xffd00000, "ldmdb%c\t%16-19r%21'!, %m"},
4874 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4875 0xe9c00000, 0xffd000ff, "strd%c\t%12-15r, %8-11r, [%16-19r]"},
4876 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4877 0xe9d00000, 0xffd000ff, "ldrd%c\t%12-15r, %8-11r, [%16-19r]"},
4878 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4879 0xe9400000, 0xff500000,
4880 "strd%c\t%12-15r, %8-11r, [%16-19r, %{I:#%23`-%0-7W%}]%21'!%L"},
4881 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4882 0xe9500000, 0xff500000,
4883 "ldrd%c\t%12-15r, %8-11r, [%16-19r, %{I:#%23`-%0-7W%}]%21'!%L"},
4884 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4885 0xe8600000, 0xff700000,
4886 "strd%c\t%12-15r, %8-11r, [%16-19r], %{I:#%23`-%0-7W%}%L"},
4887 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4888 0xe8700000, 0xff700000,
4889 "ldrd%c\t%12-15r, %8-11r, [%16-19r], %{I:#%23`-%0-7W%}%L"},
4890 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4891 0xf8000000, 0xff100000, "str%w%c.w\t%12-15r, %a"},
4892 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4893 0xf8100000, 0xfe100000, "ldr%w%c.w\t%12-15r, %a"},
4895 /* Filter out Bcc with cond=E or F, which are used for other instructions. */
4896 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4897 0xf3c08000, 0xfbc0d000, "undefined (bcc, cond=0xF)"},
4898 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4899 0xf3808000, 0xfbc0d000, "undefined (bcc, cond=0xE)"},
4900 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4901 0xf0008000, 0xf800d000, "b%22-25c.w\t%b%X"},
4902 {ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2
),
4903 0xf0009000, 0xf800d000, "b%c.w\t%B%x"},
4905 /* These have been 32-bit since the invention of Thumb. */
4906 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
),
4907 0xf000c000, 0xf800d001, "blx%c\t%B%x"},
4908 {ARM_FEATURE_CORE_LOW (ARM_EXT_V4T
),
4909 0xf000d000, 0xf800d000, "bl%c\t%B%x"},
4912 {ARM_FEATURE_CORE_LOW (ARM_EXT_V1
),
4913 0x00000000, 0x00000000, UNDEFINED_INSTRUCTION
},
4914 {ARM_FEATURE_CORE_LOW (0), 0, 0, 0}
4917 static const char *const arm_conditional
[] =
4918 {"eq", "ne", "cs", "cc", "mi", "pl", "vs", "vc",
4919 "hi", "ls", "ge", "lt", "gt", "le", "al", "<und>", ""};
4921 static const char *const arm_shift
[] =
4922 {"lsl", "lsr", "asr", "ror"};
4927 const char *description
;
4928 const char *reg_names
[16];
4932 static const arm_regname regnames
[] =
4934 { "reg-names-raw", N_("Select raw register names"),
4935 { "r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15"}},
4936 { "reg-names-gcc", N_("Select register names used by GCC"),
4937 { "r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "sl", "fp", "ip", "sp", "lr", "pc" }},
4938 { "reg-names-std", N_("Select register names used in ARM's ISA documentation"),
4939 { "r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12", "sp", "lr", "pc" }},
4940 { "force-thumb", N_("Assume all insns are Thumb insns"), {NULL
} },
4941 { "no-force-thumb", N_("Examine preceding label to determine an insn's type"), {NULL
} },
4942 { "reg-names-apcs", N_("Select register names used in the APCS"),
4943 { "a1", "a2", "a3", "a4", "v1", "v2", "v3", "v4", "v5", "v6", "sl", "fp", "ip", "sp", "lr", "pc" }},
4944 { "reg-names-atpcs", N_("Select register names used in the ATPCS"),
4945 { "a1", "a2", "a3", "a4", "v1", "v2", "v3", "v4", "v5", "v6", "v7", "v8", "IP", "SP", "LR", "PC" }},
4946 { "reg-names-special-atpcs", N_("Select special register names used in the ATPCS"),
4947 { "a1", "a2", "a3", "a4", "v1", "v2", "v3", "WR", "v5", "SB", "SL", "FP", "IP", "SP", "LR", "PC" }},
4948 { "coproc<N>=(cde|generic)", N_("Enable CDE extensions for coprocessor N space"), { NULL
} }
4951 static const char *const iwmmxt_wwnames
[] =
4952 {"b", "h", "w", "d"};
4954 static const char *const iwmmxt_wwssnames
[] =
4955 {"b", "bus", "bc", "bss",
4956 "h", "hus", "hc", "hss",
4957 "w", "wus", "wc", "wss",
4958 "d", "dus", "dc", "dss"
4961 static const char *const iwmmxt_regnames
[] =
4962 { "wr0", "wr1", "wr2", "wr3", "wr4", "wr5", "wr6", "wr7",
4963 "wr8", "wr9", "wr10", "wr11", "wr12", "wr13", "wr14", "wr15"
4966 static const char *const iwmmxt_cregnames
[] =
4967 { "wcid", "wcon", "wcssf", "wcasf", "reserved", "reserved", "reserved", "reserved",
4968 "wcgr0", "wcgr1", "wcgr2", "wcgr3", "reserved", "reserved", "reserved", "reserved"
4971 static const char *const vec_condnames
[] =
4972 { "eq", "ne", "cs", "hi", "ge", "lt", "gt", "le"
4975 static const char *const mve_predicatenames
[] =
4976 { "", "ttt", "tt", "tte", "t", "tee", "te", "tet", "",
4977 "eee", "ee", "eet", "e", "ett", "et", "ete"
4980 /* Names for 2-bit size field for mve vector isntructions. */
4981 static const char *const mve_vec_sizename
[] =
4982 { "8", "16", "32", "64"};
4984 /* Indicates whether we are processing a then predicate,
4985 else predicate or none at all. */
4993 /* Information used to process a vpt block and subsequent instructions. */
4996 /* Are we in a vpt block. */
4999 /* Next predicate state if in vpt block. */
5000 enum vpt_pred_state next_pred_state
;
5002 /* Mask from vpt/vpst instruction. */
5003 long predicate_mask
;
5005 /* Instruction number in vpt block. */
5006 long current_insn_num
;
5008 /* Number of instructions in vpt block.. */
5012 static struct vpt_block vpt_block_state
=
5021 /* Default to GCC register name set. */
5022 static unsigned int regname_selected
= 1;
5024 #define NUM_ARM_OPTIONS ARRAY_SIZE (regnames)
5025 #define arm_regnames regnames[regname_selected].reg_names
5027 static bool force_thumb
= false;
5028 static uint16_t cde_coprocs
= 0;
5030 /* Current IT instruction state. This contains the same state as the IT
5031 bits in the CPSR. */
5032 static unsigned int ifthen_state
;
5033 /* IT state for the next instruction. */
5034 static unsigned int ifthen_next_state
;
5035 /* The address of the insn for which the IT state is valid. */
5036 static bfd_vma ifthen_address
;
5037 #define IFTHEN_COND ((ifthen_state >> 4) & 0xf)
5038 /* Indicates that the current Conditional state is unconditional or outside
5040 #define COND_UNCOND 16
5044 /* Extract the predicate mask for a VPT or VPST instruction.
5045 The mask is composed of bits 13-15 (Mkl) and bit 22 (Mkh). */
5048 mve_extract_pred_mask (long given
)
5050 return ((given
& 0x00400000) >> 19) | ((given
& 0xe000) >> 13);
5053 /* Return the number of instructions in a MVE predicate block. */
5055 num_instructions_vpt_block (long given
)
5057 long mask
= mve_extract_pred_mask (given
);
5064 if ((mask
& 7) == 4)
5067 if ((mask
& 3) == 2)
5070 if ((mask
& 1) == 1)
5077 mark_outside_vpt_block (void)
5079 vpt_block_state
.in_vpt_block
= false;
5080 vpt_block_state
.next_pred_state
= PRED_NONE
;
5081 vpt_block_state
.predicate_mask
= 0;
5082 vpt_block_state
.current_insn_num
= 0;
5083 vpt_block_state
.num_pred_insn
= 0;
5087 mark_inside_vpt_block (long given
)
5089 vpt_block_state
.in_vpt_block
= true;
5090 vpt_block_state
.next_pred_state
= PRED_THEN
;
5091 vpt_block_state
.predicate_mask
= mve_extract_pred_mask (given
);
5092 vpt_block_state
.current_insn_num
= 0;
5093 vpt_block_state
.num_pred_insn
= num_instructions_vpt_block (given
);
5094 assert (vpt_block_state
.num_pred_insn
>= 1);
5097 static enum vpt_pred_state
5098 invert_next_predicate_state (enum vpt_pred_state astate
)
5100 if (astate
== PRED_THEN
)
5102 else if (astate
== PRED_ELSE
)
5108 static enum vpt_pred_state
5109 update_next_predicate_state (void)
5111 long pred_mask
= vpt_block_state
.predicate_mask
;
5112 long mask_for_insn
= 0;
5114 switch (vpt_block_state
.current_insn_num
)
5132 if (pred_mask
& mask_for_insn
)
5133 return invert_next_predicate_state (vpt_block_state
.next_pred_state
);
5135 return vpt_block_state
.next_pred_state
;
5139 update_vpt_block_state (void)
5141 vpt_block_state
.current_insn_num
++;
5142 if (vpt_block_state
.current_insn_num
== vpt_block_state
.num_pred_insn
)
5144 /* No more instructions to process in vpt block. */
5145 mark_outside_vpt_block ();
5149 vpt_block_state
.next_pred_state
= update_next_predicate_state ();
5152 /* Decode a bitfield of the form matching regexp (N(-N)?,)*N(-N)?.
5153 Returns pointer to following character of the format string and
5154 fills in *VALUEP and *WIDTHP with the extracted value and number of
5155 bits extracted. WIDTHP can be NULL. */
5158 arm_decode_bitfield (const char *ptr
,
5160 unsigned long *valuep
,
5163 unsigned long value
= 0;
5171 for (start
= 0; *ptr
>= '0' && *ptr
<= '9'; ptr
++)
5172 start
= start
* 10 + *ptr
- '0';
5174 for (end
= 0, ptr
++; *ptr
>= '0' && *ptr
<= '9'; ptr
++)
5175 end
= end
* 10 + *ptr
- '0';
5181 value
|= ((insn
>> start
) & ((2ul << bits
) - 1)) << width
;
5184 while (*ptr
++ == ',');
5192 arm_decode_shift (long given
, fprintf_styled_ftype func
, void *stream
,
5195 func (stream
, dis_style_register
, "%s", arm_regnames
[given
& 0xf]);
5197 if ((given
& 0xff0) != 0)
5199 if ((given
& 0x10) == 0)
5201 int amount
= (given
& 0xf80) >> 7;
5202 int shift
= (given
& 0x60) >> 5;
5208 func (stream
, dis_style_text
, ", ");
5209 func (stream
, dis_style_sub_mnemonic
, "rrx");
5218 func (stream
, dis_style_text
, ", ");
5219 func (stream
, dis_style_sub_mnemonic
, "%s ", arm_shift
[shift
]);
5220 func (stream
, dis_style_immediate
, "#%d", amount
);
5224 func (stream
, dis_style_text
, ", ");
5225 func (stream
, dis_style_immediate
, "#%d", amount
);
5228 else if ((given
& 0x80) == 0x80)
5229 func (stream
, dis_style_comment_start
,
5230 "\t@ <illegal shifter operand>");
5231 else if (print_shift
)
5233 func (stream
, dis_style_text
, ", ");
5234 func (stream
, dis_style_sub_mnemonic
, "%s ",
5235 arm_shift
[(given
& 0x60) >> 5]);
5236 func (stream
, dis_style_register
, "%s",
5237 arm_regnames
[(given
& 0xf00) >> 8]);
5241 func (stream
, dis_style_text
, ", ");
5242 func (stream
, dis_style_register
, "%s",
5243 arm_regnames
[(given
& 0xf00) >> 8]);
5248 /* Return TRUE if the MATCHED_INSN can be inside an IT block. */
5251 is_mve_okay_in_it (enum mve_instructions matched_insn
)
5253 switch (matched_insn
)
5255 case MVE_VMOV_GP_TO_VEC_LANE
:
5256 case MVE_VMOV2_VEC_LANE_TO_GP
:
5257 case MVE_VMOV2_GP_TO_VEC_LANE
:
5258 case MVE_VMOV_VEC_LANE_TO_GP
:
5283 is_mve_architecture (struct disassemble_info
*info
)
5285 struct arm_private_data
*private_data
= info
->private_data
;
5286 arm_feature_set allowed_arches
= private_data
->features
;
5288 arm_feature_set arm_ext_v8_1m_main
5289 = ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_1M_MAIN
);
5291 if (ARM_CPU_HAS_FEATURE (arm_ext_v8_1m_main
, allowed_arches
)
5292 && !ARM_CPU_IS_ANY (allowed_arches
))
5299 is_vpt_instruction (long given
)
5302 /* If mkh:mkl is '0000' then its not a vpt/vpst instruction. */
5303 if ((given
& 0x0040e000) == 0)
5306 /* VPT floating point T1 variant. */
5307 if (((given
& 0xefb10f50) == 0xee310f00 && ((given
& 0x1001) != 0x1))
5308 /* VPT floating point T2 variant. */
5309 || ((given
& 0xefb10f50) == 0xee310f40)
5310 /* VPT vector T1 variant. */
5311 || ((given
& 0xff811f51) == 0xfe010f00)
5312 /* VPT vector T2 variant. */
5313 || ((given
& 0xff811f51) == 0xfe010f01
5314 && ((given
& 0x300000) != 0x300000))
5315 /* VPT vector T3 variant. */
5316 || ((given
& 0xff811f50) == 0xfe011f00)
5317 /* VPT vector T4 variant. */
5318 || ((given
& 0xff811f70) == 0xfe010f40)
5319 /* VPT vector T5 variant. */
5320 || ((given
& 0xff811f70) == 0xfe010f60)
5321 /* VPT vector T6 variant. */
5322 || ((given
& 0xff811f50) == 0xfe011f40)
5323 /* VPST vector T variant. */
5324 || ((given
& 0xffbf1fff) == 0xfe310f4d))
5330 /* Decode a bitfield from opcode GIVEN, with starting bitfield = START
5331 and ending bitfield = END. END must be greater than START. */
5333 static unsigned long
5334 arm_decode_field (unsigned long given
, unsigned int start
, unsigned int end
)
5336 int bits
= end
- start
;
5341 return ((given
>> start
) & ((2ul << bits
) - 1));
5344 /* Decode a bitfield from opcode GIVEN, with multiple bitfields:
5345 START:END and START2:END2. END/END2 must be greater than
5348 static unsigned long
5349 arm_decode_field_multiple (unsigned long given
, unsigned int start
,
5350 unsigned int end
, unsigned int start2
,
5353 int bits
= end
- start
;
5354 int bits2
= end2
- start2
;
5355 unsigned long value
= 0;
5361 value
= arm_decode_field (given
, start
, end
);
5364 value
|= ((given
>> start2
) & ((2ul << bits2
) - 1)) << width
;
5368 /* Return TRUE if the GIVEN encoding should not be decoded as MATCHED_INSN.
5369 This helps us decode instructions that change mnemonic depending on specific
5370 operand values/encodings. */
5373 is_mve_encoding_conflict (unsigned long given
,
5374 enum mve_instructions matched_insn
)
5376 switch (matched_insn
)
5379 if (arm_decode_field_multiple (given
, 13, 15, 22, 22) == 0)
5385 if (arm_decode_field_multiple (given
, 13, 15, 22, 22) == 0)
5387 if ((arm_decode_field (given
, 12, 12) == 0)
5388 && (arm_decode_field (given
, 0, 0) == 1))
5393 if (arm_decode_field_multiple (given
, 13, 15, 22, 22) == 0)
5395 if (arm_decode_field (given
, 0, 3) == 0xd)
5399 case MVE_VPT_VEC_T1
:
5400 case MVE_VPT_VEC_T2
:
5401 case MVE_VPT_VEC_T3
:
5402 case MVE_VPT_VEC_T4
:
5403 case MVE_VPT_VEC_T5
:
5404 case MVE_VPT_VEC_T6
:
5405 if (arm_decode_field_multiple (given
, 13, 15, 22, 22) == 0)
5407 if (arm_decode_field (given
, 20, 21) == 3)
5411 case MVE_VCMP_FP_T1
:
5412 if ((arm_decode_field (given
, 12, 12) == 0)
5413 && (arm_decode_field (given
, 0, 0) == 1))
5418 case MVE_VCMP_FP_T2
:
5419 if (arm_decode_field (given
, 0, 3) == 0xd)
5426 case MVE_VMUL_VEC_T2
:
5433 case MVE_VADD_VEC_T2
:
5434 case MVE_VSUB_VEC_T2
:
5451 case MVE_VQDMULH_T3
:
5452 case MVE_VQRDMULH_T4
:
5458 case MVE_VCMP_VEC_T1
:
5459 case MVE_VCMP_VEC_T2
:
5460 case MVE_VCMP_VEC_T3
:
5461 case MVE_VCMP_VEC_T4
:
5462 case MVE_VCMP_VEC_T5
:
5463 case MVE_VCMP_VEC_T6
:
5464 if (arm_decode_field (given
, 20, 21) == 3)
5473 if (arm_decode_field (given
, 7, 8) == 3)
5480 if ((arm_decode_field (given
, 24, 24) == 0)
5481 && (arm_decode_field (given
, 21, 21) == 0))
5485 else if ((arm_decode_field (given
, 7, 8) == 3))
5496 if ((arm_decode_field (given
, 24, 24) == 0)
5497 && (arm_decode_field (given
, 21, 21) == 0))
5504 case MVE_VCVT_FP_FIX_VEC
:
5505 return (arm_decode_field (given
, 16, 21) & 0x38) == 0;
5510 unsigned long cmode
= arm_decode_field (given
, 8, 11);
5512 if ((cmode
& 1) == 0)
5514 else if ((cmode
& 0xc) == 0xc)
5522 unsigned long cmode
= arm_decode_field (given
, 8, 11);
5526 else if ((cmode
& 0x9) == 1)
5528 else if ((cmode
& 0xd) == 9)
5534 case MVE_VMOV_IMM_TO_VEC
:
5535 if ((arm_decode_field (given
, 5, 5) == 1)
5536 && (arm_decode_field (given
, 8, 11) != 0xe))
5543 unsigned long size
= arm_decode_field (given
, 19, 20);
5544 if ((size
== 0) || (size
== 3))
5565 if (arm_decode_field (given
, 18, 19) == 3)
5571 case MVE_VRMLSLDAVH
:
5574 if (arm_decode_field (given
, 20, 22) == 7)
5579 case MVE_VRMLALDAVH
:
5580 if ((arm_decode_field (given
, 20, 22) & 6) == 6)
5587 if ((arm_decode_field (given
, 20, 21) == 3)
5588 || (arm_decode_field (given
, 1, 3) == 7))
5595 if (arm_decode_field (given
, 16, 18) == 0)
5597 unsigned long sz
= arm_decode_field (given
, 19, 20);
5599 if ((sz
== 1) || (sz
== 2))
5614 if (arm_decode_field (given
, 19, 21) == 0)
5620 if (arm_decode_field (given
, 16, 19) == 0xf)
5636 if (arm_decode_field (given
, 9, 11) == 0x7)
5644 unsigned long rm
, rn
;
5645 rm
= arm_decode_field (given
, 0, 3);
5646 rn
= arm_decode_field (given
, 16, 19);
5648 if (rm
== 0xf && rn
== 0xf)
5651 else if (rn
== rm
&& rn
!= 0xf)
5657 if (arm_decode_field (given
, 0, 3) == 0xd)
5660 else if (matched_insn
== MVE_CSNEG
)
5661 if (arm_decode_field (given
, 0, 3) == arm_decode_field (given
, 16, 19))
5666 case MVE_VADD_FP_T1
:
5667 case MVE_VADD_FP_T2
:
5668 case MVE_VADD_VEC_T1
:
5675 print_mve_vld_str_addr (struct disassemble_info
*info
,
5676 unsigned long given
,
5677 enum mve_instructions matched_insn
)
5679 void *stream
= info
->stream
;
5680 fprintf_styled_ftype func
= info
->fprintf_styled_func
;
5682 unsigned long p
, w
, gpr
, imm
, add
, mod_imm
;
5684 imm
= arm_decode_field (given
, 0, 6);
5687 switch (matched_insn
)
5691 gpr
= arm_decode_field (given
, 16, 18);
5696 gpr
= arm_decode_field (given
, 16, 18);
5702 gpr
= arm_decode_field (given
, 16, 19);
5708 gpr
= arm_decode_field (given
, 16, 19);
5714 gpr
= arm_decode_field (given
, 16, 19);
5721 p
= arm_decode_field (given
, 24, 24);
5722 w
= arm_decode_field (given
, 21, 21);
5724 add
= arm_decode_field (given
, 23, 23);
5728 /* Don't print anything for '+' as it is implied. */
5734 func (stream
, dis_style_text
, "[");
5735 func (stream
, dis_style_register
, "%s", arm_regnames
[gpr
]);
5738 func (stream
, dis_style_text
, ", ");
5739 func (stream
, dis_style_immediate
, "#%s%lu", add_sub
, mod_imm
);
5742 func (stream
, dis_style_text
, "]");
5743 /* Pre-indexed mode. */
5745 func (stream
, dis_style_text
, "]!");
5747 else if ((p
== 0) && (w
== 1))
5749 /* Post-index mode. */
5750 func (stream
, dis_style_text
, "], ");
5751 func (stream
, dis_style_immediate
, "#%s%lu", add_sub
, mod_imm
);
5755 /* Return FALSE if GIVEN is not an undefined encoding for MATCHED_INSN.
5756 Otherwise, return TRUE and set UNDEFINED_CODE to give a reason as to why
5757 this encoding is undefined. */
5760 is_mve_undefined (unsigned long given
, enum mve_instructions matched_insn
,
5761 enum mve_undefined
*undefined_code
)
5763 *undefined_code
= UNDEF_NONE
;
5765 switch (matched_insn
)
5768 if (arm_decode_field_multiple (given
, 5, 5, 22, 22) == 3)
5770 *undefined_code
= UNDEF_SIZE_3
;
5778 case MVE_VMUL_VEC_T1
:
5780 case MVE_VADD_VEC_T1
:
5781 case MVE_VSUB_VEC_T1
:
5782 case MVE_VQDMULH_T1
:
5783 case MVE_VQRDMULH_T2
:
5787 if (arm_decode_field (given
, 20, 21) == 3)
5789 *undefined_code
= UNDEF_SIZE_3
;
5796 if (arm_decode_field (given
, 7, 8) == 3)
5798 *undefined_code
= UNDEF_SIZE_3
;
5805 if (arm_decode_field (given
, 7, 8) <= 1)
5807 *undefined_code
= UNDEF_SIZE_LE_1
;
5814 if ((arm_decode_field (given
, 7, 8) == 0))
5816 *undefined_code
= UNDEF_SIZE_0
;
5823 if ((arm_decode_field (given
, 7, 8) <= 1))
5825 *undefined_code
= UNDEF_SIZE_LE_1
;
5831 case MVE_VLDRB_GATHER_T1
:
5832 if (arm_decode_field (given
, 7, 8) == 3)
5834 *undefined_code
= UNDEF_SIZE_3
;
5837 else if ((arm_decode_field (given
, 28, 28) == 0)
5838 && (arm_decode_field (given
, 7, 8) == 0))
5840 *undefined_code
= UNDEF_NOT_UNS_SIZE_0
;
5846 case MVE_VLDRH_GATHER_T2
:
5847 if (arm_decode_field (given
, 7, 8) == 3)
5849 *undefined_code
= UNDEF_SIZE_3
;
5852 else if ((arm_decode_field (given
, 28, 28) == 0)
5853 && (arm_decode_field (given
, 7, 8) == 1))
5855 *undefined_code
= UNDEF_NOT_UNS_SIZE_1
;
5858 else if (arm_decode_field (given
, 7, 8) == 0)
5860 *undefined_code
= UNDEF_SIZE_0
;
5866 case MVE_VLDRW_GATHER_T3
:
5867 if (arm_decode_field (given
, 7, 8) != 2)
5869 *undefined_code
= UNDEF_SIZE_NOT_2
;
5872 else if (arm_decode_field (given
, 28, 28) == 0)
5874 *undefined_code
= UNDEF_NOT_UNSIGNED
;
5880 case MVE_VLDRD_GATHER_T4
:
5881 if (arm_decode_field (given
, 7, 8) != 3)
5883 *undefined_code
= UNDEF_SIZE_NOT_3
;
5886 else if (arm_decode_field (given
, 28, 28) == 0)
5888 *undefined_code
= UNDEF_NOT_UNSIGNED
;
5894 case MVE_VSTRB_SCATTER_T1
:
5895 if (arm_decode_field (given
, 7, 8) == 3)
5897 *undefined_code
= UNDEF_SIZE_3
;
5903 case MVE_VSTRH_SCATTER_T2
:
5905 unsigned long size
= arm_decode_field (given
, 7, 8);
5908 *undefined_code
= UNDEF_SIZE_3
;
5913 *undefined_code
= UNDEF_SIZE_0
;
5920 case MVE_VSTRW_SCATTER_T3
:
5921 if (arm_decode_field (given
, 7, 8) != 2)
5923 *undefined_code
= UNDEF_SIZE_NOT_2
;
5929 case MVE_VSTRD_SCATTER_T4
:
5930 if (arm_decode_field (given
, 7, 8) != 3)
5932 *undefined_code
= UNDEF_SIZE_NOT_3
;
5938 case MVE_VCVT_FP_FIX_VEC
:
5940 unsigned long imm6
= arm_decode_field (given
, 16, 21);
5941 if ((imm6
& 0x20) == 0)
5943 *undefined_code
= UNDEF_VCVT_IMM6
;
5947 if ((arm_decode_field (given
, 9, 9) == 0)
5948 && ((imm6
& 0x30) == 0x20))
5950 *undefined_code
= UNDEF_VCVT_FSI_IMM6
;
5959 case MVE_VCVT_BETWEEN_FP_INT
:
5960 case MVE_VCVT_FROM_FP_TO_INT
:
5962 unsigned long size
= arm_decode_field (given
, 18, 19);
5965 *undefined_code
= UNDEF_SIZE_0
;
5970 *undefined_code
= UNDEF_SIZE_3
;
5977 case MVE_VMOV_VEC_LANE_TO_GP
:
5979 unsigned long op1
= arm_decode_field (given
, 21, 22);
5980 unsigned long op2
= arm_decode_field (given
, 5, 6);
5981 unsigned long u
= arm_decode_field (given
, 23, 23);
5983 if ((op2
== 0) && (u
== 1))
5985 if ((op1
== 0) || (op1
== 1))
5987 *undefined_code
= UNDEF_BAD_U_OP1_OP2
;
5995 if ((op1
== 0) || (op1
== 1))
5997 *undefined_code
= UNDEF_BAD_OP1_OP2
;
6007 case MVE_VMOV_GP_TO_VEC_LANE
:
6008 if (arm_decode_field (given
, 5, 6) == 2)
6010 unsigned long op1
= arm_decode_field (given
, 21, 22);
6011 if ((op1
== 0) || (op1
== 1))
6013 *undefined_code
= UNDEF_BAD_OP1_OP2
;
6022 case MVE_VMOV_VEC_TO_VEC
:
6023 if ((arm_decode_field (given
, 5, 5) == 1)
6024 || (arm_decode_field (given
, 22, 22) == 1))
6028 case MVE_VMOV_IMM_TO_VEC
:
6029 if (arm_decode_field (given
, 5, 5) == 0)
6031 unsigned long cmode
= arm_decode_field (given
, 8, 11);
6033 if (((cmode
& 9) == 1) || ((cmode
& 5) == 1))
6035 *undefined_code
= UNDEF_OP_0_BAD_CMODE
;
6046 if (arm_decode_field (given
, 18, 19) == 2)
6048 *undefined_code
= UNDEF_SIZE_2
;
6054 case MVE_VRMLALDAVH
:
6055 case MVE_VMLADAV_T1
:
6056 case MVE_VMLADAV_T2
:
6058 if ((arm_decode_field (given
, 28, 28) == 1)
6059 && (arm_decode_field (given
, 12, 12) == 1))
6061 *undefined_code
= UNDEF_XCHG_UNS
;
6072 unsigned long sz
= arm_decode_field (given
, 19, 20);
6075 else if ((sz
& 2) == 2)
6079 *undefined_code
= UNDEF_SIZE
;
6093 unsigned long sz
= arm_decode_field (given
, 19, 21);
6096 else if ((sz
& 6) == 2)
6098 else if ((sz
& 4) == 4)
6102 *undefined_code
= UNDEF_SIZE
;
6109 if (arm_decode_field (given
, 19, 20) == 0)
6111 *undefined_code
= UNDEF_SIZE_0
;
6118 if (arm_decode_field (given
, 18, 19) == 3)
6120 *undefined_code
= UNDEF_SIZE_3
;
6131 if (arm_decode_field (given
, 18, 19) == 3)
6133 *undefined_code
= UNDEF_SIZE_3
;
6140 if (arm_decode_field (given
, 18, 19) == 0)
6144 *undefined_code
= UNDEF_SIZE_NOT_0
;
6150 unsigned long size
= arm_decode_field (given
, 18, 19);
6151 if ((size
& 2) == 2)
6153 *undefined_code
= UNDEF_SIZE_2
;
6161 if (arm_decode_field (given
, 18, 19) != 3)
6165 *undefined_code
= UNDEF_SIZE_3
;
6174 /* Return FALSE if GIVEN is not an unpredictable encoding for MATCHED_INSN.
6175 Otherwise, return TRUE and set UNPREDICTABLE_CODE to give a reason as to
6176 why this encoding is unpredictable. */
6179 is_mve_unpredictable (unsigned long given
, enum mve_instructions matched_insn
,
6180 enum mve_unpredictable
*unpredictable_code
)
6182 *unpredictable_code
= UNPRED_NONE
;
6184 switch (matched_insn
)
6186 case MVE_VCMP_FP_T2
:
6188 if ((arm_decode_field (given
, 12, 12) == 0)
6189 && (arm_decode_field (given
, 5, 5) == 1))
6191 *unpredictable_code
= UNPRED_FCA_0_FCB_1
;
6197 case MVE_VPT_VEC_T4
:
6198 case MVE_VPT_VEC_T5
:
6199 case MVE_VPT_VEC_T6
:
6200 case MVE_VCMP_VEC_T4
:
6201 case MVE_VCMP_VEC_T5
:
6202 case MVE_VCMP_VEC_T6
:
6203 if (arm_decode_field (given
, 0, 3) == 0xd)
6205 *unpredictable_code
= UNPRED_R13
;
6213 unsigned long gpr
= arm_decode_field (given
, 12, 15);
6216 *unpredictable_code
= UNPRED_R13
;
6219 else if (gpr
== 0xf)
6221 *unpredictable_code
= UNPRED_R15
;
6230 case MVE_VMUL_FP_T2
:
6231 case MVE_VMUL_VEC_T2
:
6234 case MVE_VADD_FP_T2
:
6235 case MVE_VSUB_FP_T2
:
6236 case MVE_VADD_VEC_T2
:
6237 case MVE_VSUB_VEC_T2
:
6247 case MVE_VQDMULH_T3
:
6248 case MVE_VQRDMULH_T4
:
6250 case MVE_VFMA_FP_SCALAR
:
6251 case MVE_VFMAS_FP_SCALAR
:
6255 unsigned long gpr
= arm_decode_field (given
, 0, 3);
6258 *unpredictable_code
= UNPRED_R13
;
6261 else if (gpr
== 0xf)
6263 *unpredictable_code
= UNPRED_R15
;
6273 unsigned long rn
= arm_decode_field (given
, 16, 19);
6275 if ((rn
== 0xd) && (arm_decode_field (given
, 21, 21) == 1))
6277 *unpredictable_code
= UNPRED_R13_AND_WB
;
6283 *unpredictable_code
= UNPRED_R15
;
6287 if (arm_decode_field_multiple (given
, 13, 15, 22, 22) > 6)
6289 *unpredictable_code
= UNPRED_Q_GT_6
;
6299 unsigned long rn
= arm_decode_field (given
, 16, 19);
6301 if ((rn
== 0xd) && (arm_decode_field (given
, 21, 21) == 1))
6303 *unpredictable_code
= UNPRED_R13_AND_WB
;
6309 *unpredictable_code
= UNPRED_R15
;
6313 if (arm_decode_field_multiple (given
, 13, 15, 22, 22) > 4)
6315 *unpredictable_code
= UNPRED_Q_GT_4
;
6329 unsigned long rn
= arm_decode_field (given
, 16, 19);
6331 if ((rn
== 0xd) && (arm_decode_field (given
, 21, 21) == 1))
6333 *unpredictable_code
= UNPRED_R13_AND_WB
;
6338 *unpredictable_code
= UNPRED_R15
;
6345 case MVE_VLDRB_GATHER_T1
:
6346 if (arm_decode_field (given
, 0, 0) == 1)
6348 *unpredictable_code
= UNPRED_OS
;
6353 /* To handle common code with T2-T4 variants. */
6354 case MVE_VLDRH_GATHER_T2
:
6355 case MVE_VLDRW_GATHER_T3
:
6356 case MVE_VLDRD_GATHER_T4
:
6358 unsigned long qd
= arm_decode_field_multiple (given
, 13, 15, 22, 22);
6359 unsigned long qm
= arm_decode_field_multiple (given
, 1, 3, 5, 5);
6363 *unpredictable_code
= UNPRED_Q_REGS_EQUAL
;
6367 if (arm_decode_field (given
, 16, 19) == 0xf)
6369 *unpredictable_code
= UNPRED_R15
;
6376 case MVE_VLDRW_GATHER_T5
:
6377 case MVE_VLDRD_GATHER_T6
:
6379 unsigned long qd
= arm_decode_field_multiple (given
, 13, 15, 22, 22);
6380 unsigned long qm
= arm_decode_field_multiple (given
, 17, 19, 7, 7);
6384 *unpredictable_code
= UNPRED_Q_REGS_EQUAL
;
6391 case MVE_VSTRB_SCATTER_T1
:
6392 if (arm_decode_field (given
, 16, 19) == 0xf)
6394 *unpredictable_code
= UNPRED_R15
;
6397 else if (arm_decode_field (given
, 0, 0) == 1)
6399 *unpredictable_code
= UNPRED_OS
;
6405 case MVE_VSTRH_SCATTER_T2
:
6406 case MVE_VSTRW_SCATTER_T3
:
6407 case MVE_VSTRD_SCATTER_T4
:
6408 if (arm_decode_field (given
, 16, 19) == 0xf)
6410 *unpredictable_code
= UNPRED_R15
;
6416 case MVE_VMOV2_VEC_LANE_TO_GP
:
6417 case MVE_VMOV2_GP_TO_VEC_LANE
:
6418 case MVE_VCVT_BETWEEN_FP_INT
:
6419 case MVE_VCVT_FROM_FP_TO_INT
:
6421 unsigned long rt
= arm_decode_field (given
, 0, 3);
6422 unsigned long rt2
= arm_decode_field (given
, 16, 19);
6424 if ((rt
== 0xd) || (rt2
== 0xd))
6426 *unpredictable_code
= UNPRED_R13
;
6429 else if ((rt
== 0xf) || (rt2
== 0xf))
6431 *unpredictable_code
= UNPRED_R15
;
6434 else if (rt
== rt2
&& matched_insn
!= MVE_VMOV2_GP_TO_VEC_LANE
)
6436 *unpredictable_code
= UNPRED_GP_REGS_EQUAL
;
6445 case MVE_VMAXNMV_FP
:
6446 case MVE_VMAXNMAV_FP
:
6447 case MVE_VMINNMV_FP
:
6448 case MVE_VMINNMAV_FP
:
6452 case MVE_VMOV_HFP_TO_GP
:
6453 case MVE_VMOV_GP_TO_VEC_LANE
:
6454 case MVE_VMOV_VEC_LANE_TO_GP
:
6456 unsigned long rda
= arm_decode_field (given
, 12, 15);
6459 *unpredictable_code
= UNPRED_R13
;
6462 else if (rda
== 0xf)
6464 *unpredictable_code
= UNPRED_R15
;
6477 if (arm_decode_field (given
, 20, 21) == 2)
6479 Qd
= arm_decode_field_multiple (given
, 13, 15, 22, 22);
6480 Qm
= arm_decode_field_multiple (given
, 1, 3, 5, 5);
6481 Qn
= arm_decode_field_multiple (given
, 17, 19, 7, 7);
6483 if ((Qd
== Qn
) || (Qd
== Qm
))
6485 *unpredictable_code
= UNPRED_Q_REGS_EQ_AND_SIZE_2
;
6496 case MVE_VQDMULL_T1
:
6502 if (arm_decode_field (given
, 28, 28) == 1)
6504 Qd
= arm_decode_field_multiple (given
, 13, 15, 22, 22);
6505 Qm
= arm_decode_field_multiple (given
, 1, 3, 5, 5);
6506 Qn
= arm_decode_field_multiple (given
, 17, 19, 7, 7);
6508 if ((Qd
== Qn
) || (Qd
== Qm
))
6510 *unpredictable_code
= UNPRED_Q_REGS_EQ_AND_SIZE_1
;
6520 case MVE_VQDMULL_T2
:
6522 unsigned long gpr
= arm_decode_field (given
, 0, 3);
6525 *unpredictable_code
= UNPRED_R13
;
6528 else if (gpr
== 0xf)
6530 *unpredictable_code
= UNPRED_R15
;
6534 if (arm_decode_field (given
, 28, 28) == 1)
6537 = arm_decode_field_multiple (given
, 13, 15, 22, 22);
6538 unsigned long Qn
= arm_decode_field_multiple (given
, 17, 19, 7, 7);
6542 *unpredictable_code
= UNPRED_Q_REGS_EQ_AND_SIZE_1
;
6553 case MVE_VRMLSLDAVH
:
6556 if (arm_decode_field (given
, 20, 22) == 6)
6558 *unpredictable_code
= UNPRED_R13
;
6566 if (arm_decode_field (given
, 1, 3) == 6)
6568 *unpredictable_code
= UNPRED_R13
;
6577 unsigned long Qd
= arm_decode_field_multiple (given
, 13, 15, 22, 22);
6578 unsigned long Qm
= arm_decode_field_multiple (given
, 1, 3, 5, 5);
6579 if ((Qd
== Qm
) && arm_decode_field (given
, 20, 21) == 2)
6581 *unpredictable_code
= UNPRED_Q_REGS_EQ_AND_SIZE_2
;
6590 unsigned long Qd
= arm_decode_field_multiple (given
, 13, 15, 22, 22);
6591 unsigned long Qm
= arm_decode_field_multiple (given
, 1, 3, 5, 5);
6592 if ((Qd
== Qm
) && arm_decode_field (given
, 20, 20) == 1)
6594 *unpredictable_code
= UNPRED_Q_REGS_EQ_AND_SIZE_1
;
6607 if (arm_decode_field (given
, 20, 20) == 1)
6609 Qda
= arm_decode_field_multiple (given
, 13, 15, 22, 22);
6610 Qm
= arm_decode_field_multiple (given
, 1, 3, 5, 5);
6611 Qn
= arm_decode_field_multiple (given
, 17, 19, 7, 7);
6613 if ((Qda
== Qn
) || (Qda
== Qm
))
6615 *unpredictable_code
= UNPRED_Q_REGS_EQ_AND_SIZE_1
;
6627 if (arm_decode_field (given
, 16, 19) == 0xd)
6629 *unpredictable_code
= UNPRED_R13
;
6637 unsigned long qd
= arm_decode_field_multiple (given
, 13, 15, 22, 22);
6638 unsigned long qm
= arm_decode_field_multiple (given
, 1, 3, 6, 6);
6642 *unpredictable_code
= UNPRED_Q_REGS_EQUAL
;
6661 unsigned long gpr
= arm_decode_field (given
, 9, 11);
6662 gpr
= ((gpr
<< 1) | 1);
6665 *unpredictable_code
= UNPRED_R13
;
6668 else if (gpr
== 0xf)
6670 *unpredictable_code
= UNPRED_R15
;
6683 print_mve_vmov_index (struct disassemble_info
*info
, unsigned long given
)
6685 unsigned long op1
= arm_decode_field (given
, 21, 22);
6686 unsigned long op2
= arm_decode_field (given
, 5, 6);
6687 unsigned long h
= arm_decode_field (given
, 16, 16);
6688 unsigned long index_operand
, esize
, targetBeat
, idx
;
6689 void *stream
= info
->stream
;
6690 fprintf_styled_ftype func
= info
->fprintf_styled_func
;
6692 if ((op1
& 0x2) == 0x2)
6694 index_operand
= op2
;
6697 else if (((op1
& 0x2) == 0x0) && ((op2
& 0x1) == 0x1))
6699 index_operand
= op2
>> 1;
6702 else if (((op1
& 0x2) == 0) && ((op2
& 0x3) == 0))
6709 func (stream
, dis_style_text
, "<undefined index>");
6713 targetBeat
= (op1
& 0x1) | (h
<< 1);
6714 idx
= index_operand
+ targetBeat
* (32/esize
);
6716 func (stream
, dis_style_immediate
, "%lu", idx
);
6719 /* Print neon and mve 8-bit immediate that can be a 8, 16, 32, or 64-bits
6720 in length and integer of floating-point type. */
6722 print_simd_imm8 (struct disassemble_info
*info
, unsigned long given
,
6723 unsigned int ibit_loc
, const struct mopcode32
*insn
)
6726 int cmode
= (given
>> 8) & 0xf;
6727 int op
= (given
>> 5) & 0x1;
6728 unsigned long value
= 0, hival
= 0;
6732 void *stream
= info
->stream
;
6733 fprintf_styled_ftype func
= info
->fprintf_styled_func
;
6735 /* On Neon the 'i' bit is at bit 24, on mve it is
6737 bits
|= ((given
>> ibit_loc
) & 1) << 7;
6738 bits
|= ((given
>> 16) & 7) << 4;
6739 bits
|= ((given
>> 0) & 15) << 0;
6743 shift
= (cmode
>> 1) & 3;
6744 value
= (unsigned long) bits
<< (8 * shift
);
6747 else if (cmode
< 12)
6749 shift
= (cmode
>> 1) & 1;
6750 value
= (unsigned long) bits
<< (8 * shift
);
6753 else if (cmode
< 14)
6755 shift
= (cmode
& 1) + 1;
6756 value
= (unsigned long) bits
<< (8 * shift
);
6757 value
|= (1ul << (8 * shift
)) - 1;
6760 else if (cmode
== 14)
6764 /* Bit replication into bytes. */
6770 for (ix
= 7; ix
>= 0; ix
--)
6772 mask
= ((bits
>> ix
) & 1) ? 0xff : 0;
6774 value
= (value
<< 8) | mask
;
6776 hival
= (hival
<< 8) | mask
;
6782 /* Byte replication. */
6783 value
= (unsigned long) bits
;
6789 /* Floating point encoding. */
6792 value
= (unsigned long) (bits
& 0x7f) << 19;
6793 value
|= (unsigned long) (bits
& 0x80) << 24;
6794 tmp
= bits
& 0x40 ? 0x3c : 0x40;
6795 value
|= (unsigned long) tmp
<< 24;
6801 func (stream
, dis_style_text
, "<illegal constant %.8x:%x:%x>",
6807 /* printU determines whether the immediate value should be printed as
6809 unsigned printU
= 0;
6810 switch (insn
->mve_op
)
6814 /* We want this for instructions that don't have a 'signed' type. */
6818 case MVE_VMOV_IMM_TO_VEC
:
6825 func (stream
, dis_style_immediate
, "#%ld", value
);
6826 func (stream
, dis_style_comment_start
, "\t@ 0x%.2lx", value
);
6830 func (stream
, dis_style_immediate
, printU
? "#%lu" : "#%ld", value
);
6831 func (stream
, dis_style_comment_start
, "\t@ 0x%.4lx", value
);
6837 unsigned char valbytes
[4];
6840 /* Do this a byte at a time so we don't have to
6841 worry about the host's endianness. */
6842 valbytes
[0] = value
& 0xff;
6843 valbytes
[1] = (value
>> 8) & 0xff;
6844 valbytes
[2] = (value
>> 16) & 0xff;
6845 valbytes
[3] = (value
>> 24) & 0xff;
6847 floatformat_to_double
6848 (& floatformat_ieee_single_little
, valbytes
,
6851 func (stream
, dis_style_immediate
, "#%.7g", fvalue
);
6852 func (stream
, dis_style_comment_start
, "\t@ 0x%.8lx", value
);
6856 func (stream
, dis_style_immediate
,
6857 printU
? "#%lu" : "#%ld",
6858 (long) (((value
& 0x80000000L
) != 0)
6860 ? value
| ~0xffffffffL
: value
));
6861 func (stream
, dis_style_comment_start
, "\t@ 0x%.8lx", value
);
6866 func (stream
, dis_style_immediate
, "#0x%.8lx%.8lx", hival
, value
);
6876 print_mve_undefined (struct disassemble_info
*info
,
6877 enum mve_undefined undefined_code
)
6879 void *stream
= info
->stream
;
6880 fprintf_styled_ftype func
= info
->fprintf_styled_func
;
6881 /* Initialize REASON to avoid compiler warning about uninitialized
6882 usage, though such usage should be impossible. */
6883 const char *reason
= "??";
6885 switch (undefined_code
)
6888 reason
= "illegal size";
6892 reason
= "size equals zero";
6896 reason
= "size equals two";
6900 reason
= "size equals three";
6903 case UNDEF_SIZE_LE_1
:
6904 reason
= "size <= 1";
6907 case UNDEF_SIZE_NOT_0
:
6908 reason
= "size not equal to 0";
6911 case UNDEF_SIZE_NOT_2
:
6912 reason
= "size not equal to 2";
6915 case UNDEF_SIZE_NOT_3
:
6916 reason
= "size not equal to 3";
6919 case UNDEF_NOT_UNS_SIZE_0
:
6920 reason
= "not unsigned and size = zero";
6923 case UNDEF_NOT_UNS_SIZE_1
:
6924 reason
= "not unsigned and size = one";
6927 case UNDEF_NOT_UNSIGNED
:
6928 reason
= "not unsigned";
6931 case UNDEF_VCVT_IMM6
:
6932 reason
= "invalid imm6";
6935 case UNDEF_VCVT_FSI_IMM6
:
6936 reason
= "fsi = 0 and invalid imm6";
6939 case UNDEF_BAD_OP1_OP2
:
6940 reason
= "bad size with op2 = 2 and op1 = 0 or 1";
6943 case UNDEF_BAD_U_OP1_OP2
:
6944 reason
= "unsigned with op2 = 0 and op1 = 0 or 1";
6947 case UNDEF_OP_0_BAD_CMODE
:
6948 reason
= "op field equal 0 and bad cmode";
6951 case UNDEF_XCHG_UNS
:
6952 reason
= "exchange and unsigned together";
6960 func (stream
, dis_style_text
, "\t\tundefined instruction: %s", reason
);
6964 print_mve_unpredictable (struct disassemble_info
*info
,
6965 enum mve_unpredictable unpredict_code
)
6967 void *stream
= info
->stream
;
6968 fprintf_styled_ftype func
= info
->fprintf_styled_func
;
6969 /* Initialize REASON to avoid compiler warning about uninitialized
6970 usage, though such usage should be impossible. */
6971 const char *reason
= "??";
6973 switch (unpredict_code
)
6975 case UNPRED_IT_BLOCK
:
6976 reason
= "mve instruction in it block";
6979 case UNPRED_FCA_0_FCB_1
:
6980 reason
= "condition bits, fca = 0 and fcb = 1";
6984 reason
= "use of r13 (sp)";
6988 reason
= "use of r15 (pc)";
6992 reason
= "start register block > r4";
6996 reason
= "start register block > r6";
6999 case UNPRED_R13_AND_WB
:
7000 reason
= "use of r13 and write back";
7003 case UNPRED_Q_REGS_EQUAL
:
7004 reason
= "same vector register used for destination and other operand";
7008 reason
= "use of offset scaled";
7011 case UNPRED_GP_REGS_EQUAL
:
7012 reason
= "same general-purpose register used for both operands";
7015 case UNPRED_Q_REGS_EQ_AND_SIZE_1
:
7016 reason
= "use of identical q registers and size = 1";
7019 case UNPRED_Q_REGS_EQ_AND_SIZE_2
:
7020 reason
= "use of identical q registers and size = 1";
7028 func (stream
, dis_style_comment_start
, "%s: %s",
7029 UNPREDICTABLE_INSTRUCTION
, reason
);
7032 /* Print register block operand for mve vld2/vld4/vst2/vld4. */
7035 print_mve_register_blocks (struct disassemble_info
*info
,
7036 unsigned long given
,
7037 enum mve_instructions matched_insn
)
7039 void *stream
= info
->stream
;
7040 fprintf_styled_ftype func
= info
->fprintf_styled_func
;
7042 unsigned long q_reg_start
= arm_decode_field_multiple (given
,
7045 switch (matched_insn
)
7049 if (q_reg_start
<= 6)
7051 func (stream
, dis_style_text
, "{");
7052 func (stream
, dis_style_register
, "q%ld", q_reg_start
);
7053 func (stream
, dis_style_text
, ", ");
7054 func (stream
, dis_style_register
, "q%ld", q_reg_start
+ 1);
7055 func (stream
, dis_style_text
, "}");
7058 func (stream
, dis_style_text
, "<illegal reg q%ld>", q_reg_start
);
7063 if (q_reg_start
<= 4)
7065 func (stream
, dis_style_text
, "{");
7066 func (stream
, dis_style_register
, "q%ld", q_reg_start
);
7067 func (stream
, dis_style_text
, ", ");
7068 func (stream
, dis_style_register
, "q%ld", q_reg_start
+ 1);
7069 func (stream
, dis_style_text
, ", ");
7070 func (stream
, dis_style_register
, "q%ld", q_reg_start
+ 2);
7071 func (stream
, dis_style_text
, ", ");
7072 func (stream
, dis_style_register
, "q%ld", q_reg_start
+ 3);
7073 func (stream
, dis_style_text
, "}");
7076 func (stream
, dis_style_text
, "<illegal reg q%ld>", q_reg_start
);
7085 print_mve_rounding_mode (struct disassemble_info
*info
,
7086 unsigned long given
,
7087 enum mve_instructions matched_insn
)
7089 void *stream
= info
->stream
;
7090 fprintf_styled_ftype func
= info
->fprintf_styled_func
;
7092 switch (matched_insn
)
7094 case MVE_VCVT_FROM_FP_TO_INT
:
7096 switch (arm_decode_field (given
, 8, 9))
7099 func (stream
, dis_style_mnemonic
, "a");
7103 func (stream
, dis_style_mnemonic
, "n");
7107 func (stream
, dis_style_mnemonic
, "p");
7111 func (stream
, dis_style_mnemonic
, "m");
7122 switch (arm_decode_field (given
, 7, 9))
7125 func (stream
, dis_style_mnemonic
, "n");
7129 func (stream
, dis_style_mnemonic
, "x");
7133 func (stream
, dis_style_mnemonic
, "a");
7137 func (stream
, dis_style_mnemonic
, "z");
7141 func (stream
, dis_style_mnemonic
, "m");
7145 func (stream
, dis_style_mnemonic
, "p");
7161 print_mve_vcvt_size (struct disassemble_info
*info
,
7162 unsigned long given
,
7163 enum mve_instructions matched_insn
)
7165 unsigned long mode
= 0;
7166 void *stream
= info
->stream
;
7167 fprintf_styled_ftype func
= info
->fprintf_styled_func
;
7169 switch (matched_insn
)
7171 case MVE_VCVT_FP_FIX_VEC
:
7173 mode
= (((given
& 0x200) >> 7)
7174 | ((given
& 0x10000000) >> 27)
7175 | ((given
& 0x100) >> 8));
7180 func (stream
, dis_style_mnemonic
, "f16.s16");
7184 func (stream
, dis_style_mnemonic
, "s16.f16");
7188 func (stream
, dis_style_mnemonic
, "f16.u16");
7192 func (stream
, dis_style_mnemonic
, "u16.f16");
7196 func (stream
, dis_style_mnemonic
, "f32.s32");
7200 func (stream
, dis_style_mnemonic
, "s32.f32");
7204 func (stream
, dis_style_mnemonic
, "f32.u32");
7208 func (stream
, dis_style_mnemonic
, "u32.f32");
7216 case MVE_VCVT_BETWEEN_FP_INT
:
7218 unsigned long size
= arm_decode_field (given
, 18, 19);
7219 unsigned long op
= arm_decode_field (given
, 7, 8);
7226 func (stream
, dis_style_mnemonic
, "f16.s16");
7230 func (stream
, dis_style_mnemonic
, "f16.u16");
7234 func (stream
, dis_style_mnemonic
, "s16.f16");
7238 func (stream
, dis_style_mnemonic
, "u16.f16");
7250 func (stream
, dis_style_mnemonic
, "f32.s32");
7254 func (stream
, dis_style_mnemonic
, "f32.u32");
7258 func (stream
, dis_style_mnemonic
, "s32.f32");
7262 func (stream
, dis_style_mnemonic
, "u32.f32");
7269 case MVE_VCVT_FP_HALF_FP
:
7271 unsigned long op
= arm_decode_field (given
, 28, 28);
7273 func (stream
, dis_style_mnemonic
, "f16.f32");
7275 func (stream
, dis_style_mnemonic
, "f32.f16");
7279 case MVE_VCVT_FROM_FP_TO_INT
:
7281 unsigned long size
= arm_decode_field_multiple (given
, 7, 7, 18, 19);
7286 func (stream
, dis_style_mnemonic
, "s16.f16");
7290 func (stream
, dis_style_mnemonic
, "u16.f16");
7294 func (stream
, dis_style_mnemonic
, "s32.f32");
7298 func (stream
, dis_style_mnemonic
, "u32.f32");
7313 print_mve_rotate (struct disassemble_info
*info
, unsigned long rot
,
7314 unsigned long rot_width
)
7316 void *stream
= info
->stream
;
7317 fprintf_styled_ftype func
= info
->fprintf_styled_func
;
7324 func (stream
, dis_style_immediate
, "90");
7327 func (stream
, dis_style_immediate
, "270");
7333 else if (rot_width
== 2)
7338 func (stream
, dis_style_immediate
, "0");
7341 func (stream
, dis_style_immediate
, "90");
7344 func (stream
, dis_style_immediate
, "180");
7347 func (stream
, dis_style_immediate
, "270");
7356 print_instruction_predicate (struct disassemble_info
*info
)
7358 void *stream
= info
->stream
;
7359 fprintf_styled_ftype func
= info
->fprintf_styled_func
;
7361 if (vpt_block_state
.next_pred_state
== PRED_THEN
)
7362 func (stream
, dis_style_mnemonic
, "t");
7363 else if (vpt_block_state
.next_pred_state
== PRED_ELSE
)
7364 func (stream
, dis_style_mnemonic
, "e");
7368 print_mve_size (struct disassemble_info
*info
,
7370 enum mve_instructions matched_insn
)
7372 void *stream
= info
->stream
;
7373 fprintf_styled_ftype func
= info
->fprintf_styled_func
;
7375 switch (matched_insn
)
7381 case MVE_VADD_VEC_T1
:
7382 case MVE_VADD_VEC_T2
:
7388 case MVE_VCMP_VEC_T1
:
7389 case MVE_VCMP_VEC_T2
:
7390 case MVE_VCMP_VEC_T3
:
7391 case MVE_VCMP_VEC_T4
:
7392 case MVE_VCMP_VEC_T5
:
7393 case MVE_VCMP_VEC_T6
:
7406 case MVE_VLDRB_GATHER_T1
:
7407 case MVE_VLDRH_GATHER_T2
:
7408 case MVE_VLDRW_GATHER_T3
:
7409 case MVE_VLDRD_GATHER_T4
:
7422 case MVE_VMUL_VEC_T1
:
7423 case MVE_VMUL_VEC_T2
:
7429 case MVE_VPT_VEC_T1
:
7430 case MVE_VPT_VEC_T2
:
7431 case MVE_VPT_VEC_T3
:
7432 case MVE_VPT_VEC_T4
:
7433 case MVE_VPT_VEC_T5
:
7434 case MVE_VPT_VEC_T6
:
7446 case MVE_VQDMULH_T1
:
7447 case MVE_VQRDMULH_T2
:
7448 case MVE_VQDMULH_T3
:
7449 case MVE_VQRDMULH_T4
:
7468 case MVE_VSTRB_SCATTER_T1
:
7469 case MVE_VSTRH_SCATTER_T2
:
7470 case MVE_VSTRW_SCATTER_T3
:
7473 case MVE_VSUB_VEC_T1
:
7474 case MVE_VSUB_VEC_T2
:
7476 func (stream
, dis_style_mnemonic
, "%s", mve_vec_sizename
[size
]);
7478 func (stream
, dis_style_text
, "<undef size>");
7482 case MVE_VADD_FP_T1
:
7483 case MVE_VADD_FP_T2
:
7484 case MVE_VSUB_FP_T1
:
7485 case MVE_VSUB_FP_T2
:
7486 case MVE_VCMP_FP_T1
:
7487 case MVE_VCMP_FP_T2
:
7488 case MVE_VFMA_FP_SCALAR
:
7491 case MVE_VFMAS_FP_SCALAR
:
7493 case MVE_VMAXNMA_FP
:
7494 case MVE_VMAXNMV_FP
:
7495 case MVE_VMAXNMAV_FP
:
7497 case MVE_VMINNMA_FP
:
7498 case MVE_VMINNMV_FP
:
7499 case MVE_VMINNMAV_FP
:
7500 case MVE_VMUL_FP_T1
:
7501 case MVE_VMUL_FP_T2
:
7505 func (stream
, dis_style_mnemonic
, "32");
7507 func (stream
, dis_style_mnemonic
, "16");
7513 case MVE_VMLADAV_T1
:
7515 case MVE_VMLSDAV_T1
:
7518 case MVE_VQDMULL_T1
:
7519 case MVE_VQDMULL_T2
:
7523 func (stream
, dis_style_mnemonic
, "16");
7525 func (stream
, dis_style_mnemonic
, "32");
7530 func (stream
, dis_style_mnemonic
, "8");
7532 func (stream
, dis_style_mnemonic
, "16");
7539 func (stream
, dis_style_mnemonic
, "32");
7542 func (stream
, dis_style_mnemonic
, "16");
7545 func (stream
, dis_style_mnemonic
, "8");
7552 case MVE_VMOV_GP_TO_VEC_LANE
:
7553 case MVE_VMOV_VEC_LANE_TO_GP
:
7557 func (stream
, dis_style_mnemonic
, "32");
7562 func (stream
, dis_style_mnemonic
, "16");
7565 case 8: case 9: case 10: case 11:
7566 case 12: case 13: case 14: case 15:
7567 func (stream
, dis_style_mnemonic
, "8");
7575 case MVE_VMOV_IMM_TO_VEC
:
7578 case 0: case 4: case 8:
7579 case 12: case 24: case 26:
7580 func (stream
, dis_style_mnemonic
, "i32");
7583 func (stream
, dis_style_mnemonic
, "i16");
7586 func (stream
, dis_style_mnemonic
, "i8");
7589 func (stream
, dis_style_mnemonic
, "i64");
7592 func (stream
, dis_style_mnemonic
, "f32");
7599 case MVE_VMULL_POLY
:
7601 func (stream
, dis_style_mnemonic
, "p8");
7603 func (stream
, dis_style_mnemonic
, "p16");
7609 case 0: case 2: case 4:
7610 case 6: case 12: case 13:
7611 func (stream
, dis_style_mnemonic
, "32");
7615 func (stream
, dis_style_mnemonic
, "16");
7629 func (stream
, dis_style_mnemonic
, "32");
7633 func (stream
, dis_style_mnemonic
, "16");
7651 func (stream
, dis_style_mnemonic
, "16");
7655 func (stream
, dis_style_mnemonic
, "32");
7676 func (stream
, dis_style_mnemonic
, "8");
7680 func (stream
, dis_style_mnemonic
, "16");
7683 case 4: case 5: case 6: case 7:
7684 func (stream
, dis_style_mnemonic
, "32");
7698 /* Return true if INSN is a shift insn with an immediate shift amount
7699 which needs decoding as per print_mve_shift_n. */
7702 mve_shift_insn_p (enum mve_instructions insn
)
7727 print_mve_shift_n (struct disassemble_info
*info
, long given
,
7728 enum mve_instructions matched_insn
)
7730 void *stream
= info
->stream
;
7731 fprintf_styled_ftype func
= info
->fprintf_styled_func
;
7734 = matched_insn
== MVE_VQSHL_T2
7735 || matched_insn
== MVE_VQSHLU_T3
7736 || matched_insn
== MVE_VSHL_T1
7737 || matched_insn
== MVE_VSHLL_T1
7738 || matched_insn
== MVE_VSLI
;
7740 unsigned imm6
= (given
& 0x3f0000) >> 16;
7742 if (matched_insn
== MVE_VSHLL_T1
)
7745 unsigned shiftAmount
= 0;
7746 if ((imm6
& 0x20) != 0)
7747 shiftAmount
= startAt0
? imm6
- 32 : 64 - imm6
;
7748 else if ((imm6
& 0x10) != 0)
7749 shiftAmount
= startAt0
? imm6
- 16 : 32 - imm6
;
7750 else if ((imm6
& 0x08) != 0)
7751 shiftAmount
= startAt0
? imm6
- 8 : 16 - imm6
;
7753 print_mve_undefined (info
, UNDEF_SIZE_0
);
7755 func (stream
, dis_style_immediate
, "%u", shiftAmount
);
7759 print_vec_condition (struct disassemble_info
*info
, long given
,
7760 enum mve_instructions matched_insn
)
7762 void *stream
= info
->stream
;
7763 fprintf_styled_ftype func
= info
->fprintf_styled_func
;
7766 switch (matched_insn
)
7769 case MVE_VCMP_FP_T1
:
7770 vec_cond
= (((given
& 0x1000) >> 10)
7771 | ((given
& 1) << 1)
7772 | ((given
& 0x0080) >> 7));
7773 func (stream
, dis_style_sub_mnemonic
, "%s", vec_condnames
[vec_cond
]);
7777 case MVE_VCMP_FP_T2
:
7778 vec_cond
= (((given
& 0x1000) >> 10)
7779 | ((given
& 0x0020) >> 4)
7780 | ((given
& 0x0080) >> 7));
7781 func (stream
, dis_style_sub_mnemonic
, "%s", vec_condnames
[vec_cond
]);
7784 case MVE_VPT_VEC_T1
:
7785 case MVE_VCMP_VEC_T1
:
7786 vec_cond
= (given
& 0x0080) >> 7;
7787 func (stream
, dis_style_sub_mnemonic
, "%s", vec_condnames
[vec_cond
]);
7790 case MVE_VPT_VEC_T2
:
7791 case MVE_VCMP_VEC_T2
:
7792 vec_cond
= 2 | ((given
& 0x0080) >> 7);
7793 func (stream
, dis_style_sub_mnemonic
, "%s", vec_condnames
[vec_cond
]);
7796 case MVE_VPT_VEC_T3
:
7797 case MVE_VCMP_VEC_T3
:
7798 vec_cond
= 4 | ((given
& 1) << 1) | ((given
& 0x0080) >> 7);
7799 func (stream
, dis_style_sub_mnemonic
, "%s", vec_condnames
[vec_cond
]);
7802 case MVE_VPT_VEC_T4
:
7803 case MVE_VCMP_VEC_T4
:
7804 vec_cond
= (given
& 0x0080) >> 7;
7805 func (stream
, dis_style_sub_mnemonic
, "%s", vec_condnames
[vec_cond
]);
7808 case MVE_VPT_VEC_T5
:
7809 case MVE_VCMP_VEC_T5
:
7810 vec_cond
= 2 | ((given
& 0x0080) >> 7);
7811 func (stream
, dis_style_sub_mnemonic
, "%s", vec_condnames
[vec_cond
]);
7814 case MVE_VPT_VEC_T6
:
7815 case MVE_VCMP_VEC_T6
:
7816 vec_cond
= 4 | ((given
& 0x0020) >> 4) | ((given
& 0x0080) >> 7);
7817 func (stream
, dis_style_sub_mnemonic
, "%s", vec_condnames
[vec_cond
]);
7832 #define WRITEBACK_BIT_SET (given & (1 << W_BIT))
7833 #define IMMEDIATE_BIT_SET (given & (1 << I_BIT))
7834 #define NEGATIVE_BIT_SET ((given & (1 << U_BIT)) == 0)
7835 #define PRE_BIT_SET (given & (1 << P_BIT))
7837 /* The assembler string for an instruction can include %{X:...%} patterns,
7838 where the 'X' is one of the characters understood by this function.
7840 This function takes the X character, and returns a new style. This new
7841 style will be used by the caller to temporarily change the current base
7844 static enum disassembler_style
7845 decode_base_style (const char x
)
7849 case 'A': return dis_style_address
;
7850 case 'B': return dis_style_sub_mnemonic
;
7851 case 'C': return dis_style_comment_start
;
7852 case 'D': return dis_style_assembler_directive
;
7853 case 'I': return dis_style_immediate
;
7854 case 'M': return dis_style_mnemonic
;
7855 case 'O': return dis_style_address_offset
;
7856 case 'R': return dis_style_register
;
7857 case 'S': return dis_style_symbol
;
7858 case 'T': return dis_style_text
;
7864 /* Print one coprocessor instruction on INFO->STREAM.
7865 Return TRUE if the instuction matched, FALSE if this is not a
7866 recognised coprocessor instruction. */
7869 print_insn_coprocessor_1 (const struct sopcode32
*opcodes
,
7871 struct disassemble_info
*info
,
7875 const struct sopcode32
*insn
;
7876 void *stream
= info
->stream
;
7877 fprintf_styled_ftype func
= info
->fprintf_styled_func
;
7879 unsigned long value
= 0;
7882 struct arm_private_data
*private_data
= info
->private_data
;
7883 arm_feature_set allowed_arches
= ARM_ARCH_NONE
;
7884 arm_feature_set arm_ext_v8_1m_main
=
7885 ARM_FEATURE_CORE_HIGH (ARM_EXT2_V8_1M_MAIN
);
7886 enum disassembler_style base_style
= dis_style_mnemonic
;
7887 enum disassembler_style old_base_style
= base_style
;
7889 allowed_arches
= private_data
->features
;
7891 for (insn
= opcodes
; insn
->assembler
; insn
++)
7893 unsigned long u_reg
= 16;
7894 bool is_unpredictable
= false;
7895 signed long value_in_comment
= 0;
7898 if (ARM_FEATURE_ZERO (insn
->arch
))
7899 switch (insn
->value
)
7901 case SENTINEL_IWMMXT_START
:
7902 if (info
->mach
!= bfd_mach_arm_XScale
7903 && info
->mach
!= bfd_mach_arm_iWMMXt
7904 && info
->mach
!= bfd_mach_arm_iWMMXt2
)
7907 while ((! ARM_FEATURE_ZERO (insn
->arch
))
7908 && insn
->value
!= SENTINEL_IWMMXT_END
);
7911 case SENTINEL_IWMMXT_END
:
7914 case SENTINEL_GENERIC_START
:
7915 allowed_arches
= private_data
->features
;
7923 value
= insn
->value
;
7924 cp_num
= (given
>> 8) & 0xf;
7928 /* The high 4 bits are 0xe for Arm conditional instructions, and
7929 0xe for arm unconditional instructions. The rest of the
7930 encoding is the same. */
7932 value
|= 0xe0000000;
7940 /* Only match unconditional instuctions against unconditional
7942 if ((given
& 0xf0000000) == 0xf0000000)
7949 cond
= (given
>> 28) & 0xf;
7955 if ((insn
->isa
== T32
&& !thumb
)
7956 || (insn
->isa
== ARM
&& thumb
))
7959 if ((given
& mask
) != value
)
7962 if (! ARM_CPU_HAS_FEATURE (insn
->arch
, allowed_arches
))
7965 if (insn
->value
== 0xfe000010 /* mcr2 */
7966 || insn
->value
== 0xfe100010 /* mrc2 */
7967 || insn
->value
== 0xfc100000 /* ldc2 */
7968 || insn
->value
== 0xfc000000) /* stc2 */
7970 if (cp_num
== 9 || cp_num
== 10 || cp_num
== 11)
7971 is_unpredictable
= true;
7973 /* Armv8.1-M Mainline FP & MVE instructions. */
7974 if (ARM_CPU_HAS_FEATURE (arm_ext_v8_1m_main
, allowed_arches
)
7975 && !ARM_CPU_IS_ANY (allowed_arches
)
7976 && (cp_num
== 8 || cp_num
== 14 || cp_num
== 15))
7980 else if (insn
->value
== 0x0e000000 /* cdp */
7981 || insn
->value
== 0xfe000000 /* cdp2 */
7982 || insn
->value
== 0x0e000010 /* mcr */
7983 || insn
->value
== 0x0e100010 /* mrc */
7984 || insn
->value
== 0x0c100000 /* ldc */
7985 || insn
->value
== 0x0c000000) /* stc */
7987 /* Floating-point instructions. */
7988 if (cp_num
== 9 || cp_num
== 10 || cp_num
== 11)
7991 /* Armv8.1-M Mainline FP & MVE instructions. */
7992 if (ARM_CPU_HAS_FEATURE (arm_ext_v8_1m_main
, allowed_arches
)
7993 && !ARM_CPU_IS_ANY (allowed_arches
)
7994 && (cp_num
== 8 || cp_num
== 14 || cp_num
== 15))
7997 else if ((insn
->value
== 0xec100f80 /* vldr (system register) */
7998 || insn
->value
== 0xec000f80) /* vstr (system register) */
7999 && arm_decode_field (given
, 24, 24) == 0
8000 && arm_decode_field (given
, 21, 21) == 0)
8001 /* If the P and W bits are both 0 then these encodings match the MVE
8002 VLDR and VSTR instructions, these are in a different table, so we
8003 don't let it match here. */
8006 for (c
= insn
->assembler
; *c
; c
++)
8010 const char mod
= *++c
;
8018 old_base_style
= base_style
;
8019 base_style
= decode_base_style (*c
);
8026 base_style
= old_base_style
;
8030 func (stream
, base_style
, "%%");
8036 int rn
= (given
>> 16) & 0xf;
8037 bfd_vma offset
= given
& 0xff;
8040 offset
= given
& 0x7f;
8042 func (stream
, dis_style_text
, "[");
8043 func (stream
, dis_style_register
, "%s",
8044 arm_regnames
[(given
>> 16) & 0xf]);
8046 if (PRE_BIT_SET
|| WRITEBACK_BIT_SET
)
8048 /* Not unindexed. The offset is scaled. */
8050 /* vldr.16/vstr.16 will shift the address
8051 left by 1 bit only. */
8052 offset
= offset
* 2;
8054 offset
= offset
* 4;
8056 if (NEGATIVE_BIT_SET
)
8059 value_in_comment
= offset
;
8066 func (stream
, dis_style_text
, ", ");
8067 func (stream
, dis_style_immediate
, "#%d",
8069 func (stream
, dis_style_text
, "]%s",
8070 WRITEBACK_BIT_SET
? "!" : "");
8072 else if (NEGATIVE_BIT_SET
)
8074 func (stream
, dis_style_text
, ", ");
8075 func (stream
, dis_style_immediate
, "#-0");
8076 func (stream
, dis_style_text
, "]");
8079 func (stream
, dis_style_text
, "]");
8083 func (stream
, dis_style_text
, "]");
8085 if (WRITEBACK_BIT_SET
)
8089 func (stream
, dis_style_text
, ", ");
8090 func (stream
, dis_style_immediate
,
8091 "#%d", (int) offset
);
8093 else if (NEGATIVE_BIT_SET
)
8095 func (stream
, dis_style_text
, ", ");
8096 func (stream
, dis_style_immediate
, "#-0");
8101 func (stream
, dis_style_text
, ", {");
8102 func (stream
, dis_style_immediate
, "%s%d",
8103 (NEGATIVE_BIT_SET
&& !offset
) ? "-" : "",
8105 func (stream
, dis_style_text
, "}");
8106 value_in_comment
= offset
;
8109 if (rn
== 15 && (PRE_BIT_SET
|| WRITEBACK_BIT_SET
))
8111 func (stream
, dis_style_comment_start
, "\t@ ");
8112 /* For unaligned PCs, apply off-by-alignment
8114 info
->print_address_func (offset
+ pc
8115 + info
->bytes_per_chunk
* 2
8124 int regno
= ((given
>> 12) & 0xf) | ((given
>> (22 - 4)) & 0x10);
8125 int offset
= (given
>> 1) & 0x3f;
8127 func (stream
, dis_style_text
, "{");
8129 func (stream
, dis_style_register
, "d%d", regno
);
8130 else if (regno
+ offset
> 32)
8132 func (stream
, dis_style_register
, "d%d", regno
);
8133 func (stream
, dis_style_text
, "-<overflow reg d%d>",
8134 regno
+ offset
- 1);
8138 func (stream
, dis_style_register
, "d%d", regno
);
8139 func (stream
, dis_style_text
, "-");
8140 func (stream
, dis_style_register
, "d%d",
8141 regno
+ offset
- 1);
8143 func (stream
, dis_style_text
, "}");
8149 bool single
= ((given
>> 8) & 1) == 0;
8150 char reg_prefix
= single
? 's' : 'd';
8151 int Dreg
= (given
>> 22) & 0x1;
8152 int Vdreg
= (given
>> 12) & 0xf;
8153 int reg
= single
? ((Vdreg
<< 1) | Dreg
)
8154 : ((Dreg
<< 4) | Vdreg
);
8155 int num
= (given
>> (single
? 0 : 1)) & 0x7f;
8156 int maxreg
= single
? 31 : 15;
8157 int topreg
= reg
+ num
- 1;
8159 func (stream
, dis_style_text
, "{");
8166 func (stream
, dis_style_register
,
8167 "%c%d", reg_prefix
, reg
);
8168 func (stream
, dis_style_text
, ", ");
8170 else if (topreg
> maxreg
)
8172 func (stream
, dis_style_register
, "%c%d",
8174 func (stream
, dis_style_text
, "-<overflow reg d%d, ",
8175 single
? topreg
>> 1 : topreg
);
8179 func (stream
, dis_style_register
,
8180 "%c%d", reg_prefix
, reg
);
8181 func (stream
, dis_style_text
, "-");
8182 func (stream
, dis_style_register
, "%c%d",
8183 reg_prefix
, topreg
);
8184 func (stream
, dis_style_text
, ", ");
8186 func (stream
, dis_style_register
, "VPR");
8187 func (stream
, dis_style_text
, "}");
8192 if (cond
!= COND_UNCOND
)
8193 is_unpredictable
= true;
8197 if (cond
!= COND_UNCOND
&& cp_num
== 9)
8198 is_unpredictable
= true;
8202 func (stream
, dis_style_mnemonic
, "%s",
8203 arm_conditional
[cond
]);
8209 = arm_decode_field_multiple (given
, 13, 15, 22, 22);
8214 func (stream
, dis_style_register
, "FPSCR");
8217 func (stream
, dis_style_register
, "FPSCR_nzcvqc");
8220 func (stream
, dis_style_register
, "VPR");
8223 func (stream
, dis_style_register
, "P0");
8226 func (stream
, dis_style_register
, "FPCXTNS");
8229 func (stream
, dis_style_register
, "FPCXTS");
8232 func (stream
, dis_style_text
, "<invalid reg %lu>",
8239 case '0': case '1': case '2': case '3': case '4':
8240 case '5': case '6': case '7': case '8': case '9':
8244 c
= arm_decode_bitfield (c
, given
, &value
, &width
);
8250 is_unpredictable
= true;
8255 /* Eat the 'u' character. */
8259 is_unpredictable
= true;
8262 func (stream
, dis_style_register
, "%s",
8263 arm_regnames
[value
]);
8266 if (given
& (1 << 6))
8270 func (stream
, dis_style_register
, "d%ld", value
);
8275 func (stream
, dis_style_text
,
8276 "<illegal reg q%ld.5>", value
>> 1);
8278 func (stream
, dis_style_register
,
8279 "q%ld", value
>> 1);
8282 func (stream
, base_style
, "%ld", value
);
8283 value_in_comment
= value
;
8287 /* Converts immediate 8 bit back to float value. */
8288 unsigned floatVal
= (value
& 0x80) << 24
8289 | (value
& 0x3F) << 19
8290 | ((value
& 0x40) ? (0xF8 << 22) : (1 << 30));
8292 /* Quarter float have a maximum value of 31.0.
8293 Get floating point value multiplied by 1e7.
8294 The maximum value stays in limit of a 32-bit int. */
8296 (78125 << (((floatVal
>> 23) & 0xFF) - 124)) *
8297 (16 + (value
& 0xF));
8299 if (!(decVal
% 1000000))
8301 func (stream
, dis_style_immediate
, "%ld", value
);
8302 func (stream
, dis_style_comment_start
,
8303 "\t@ 0x%08x %c%u.%01u",
8304 floatVal
, value
& 0x80 ? '-' : ' ',
8306 decVal
% 10000000 / 1000000);
8308 else if (!(decVal
% 10000))
8310 func (stream
, dis_style_immediate
, "%ld", value
);
8311 func (stream
, dis_style_comment_start
,
8312 "\t@ 0x%08x %c%u.%03u",
8313 floatVal
, value
& 0x80 ? '-' : ' ',
8315 decVal
% 10000000 / 10000);
8319 func (stream
, dis_style_immediate
, "%ld", value
);
8320 func (stream
, dis_style_comment_start
,
8321 "\t@ 0x%08x %c%u.%07u",
8322 floatVal
, value
& 0x80 ? '-' : ' ',
8323 decVal
/ 10000000, decVal
% 10000000);
8329 int from
= (given
& (1 << 7)) ? 32 : 16;
8330 func (stream
, dis_style_immediate
, "%ld",
8337 func (stream
, dis_style_mnemonic
, "%s",
8338 iwmmxt_wwnames
[value
]);
8340 func (stream
, dis_style_mnemonic
, "%s",
8341 iwmmxt_wwssnames
[value
]);
8345 func (stream
, dis_style_register
, "%s",
8346 iwmmxt_regnames
[value
]);
8349 func (stream
, dis_style_register
, "%s",
8350 iwmmxt_cregnames
[value
]);
8354 func (stream
, dis_style_immediate
, "0x%lx",
8355 (value
& 0xffffffffUL
));
8362 func (stream
, dis_style_mnemonic
, "eq");
8366 func (stream
, dis_style_mnemonic
, "vs");
8370 func (stream
, dis_style_mnemonic
, "ge");
8374 func (stream
, dis_style_mnemonic
, "gt");
8378 func (stream
, dis_style_text
, "??");
8386 func (stream
, dis_style_mnemonic
, "%c", *c
);
8390 if (value
== ((1ul << width
) - 1))
8391 func (stream
, base_style
, "%c", *c
);
8394 func (stream
, base_style
, "%c",
8395 c
[(1 << width
) - (int) value
]);
8407 int single
= *c
++ == 'y';
8412 case '4': /* Sm pair */
8413 case '0': /* Sm, Dm */
8414 regno
= given
& 0x0000000f;
8418 regno
+= (given
>> 5) & 1;
8421 regno
+= ((given
>> 5) & 1) << 4;
8424 case '1': /* Sd, Dd */
8425 regno
= (given
>> 12) & 0x0000000f;
8429 regno
+= (given
>> 22) & 1;
8432 regno
+= ((given
>> 22) & 1) << 4;
8435 case '2': /* Sn, Dn */
8436 regno
= (given
>> 16) & 0x0000000f;
8440 regno
+= (given
>> 7) & 1;
8443 regno
+= ((given
>> 7) & 1) << 4;
8446 case '3': /* List */
8447 func (stream
, dis_style_text
, "{");
8448 regno
= (given
>> 12) & 0x0000000f;
8452 regno
+= (given
>> 22) & 1;
8455 regno
+= ((given
>> 22) & 1) << 4;
8462 func (stream
, dis_style_register
, "%c%d",
8463 single
? 's' : 'd', regno
);
8467 int count
= given
& 0xff;
8474 func (stream
, dis_style_text
, "-");
8475 func (stream
, dis_style_register
, "%c%d",
8480 func (stream
, dis_style_text
, "}");
8484 func (stream
, dis_style_text
, ", ");
8485 func (stream
, dis_style_register
, "%c%d",
8486 single
? 's' : 'd', regno
+ 1);
8492 switch (given
& 0x00400100)
8495 func (stream
, dis_style_mnemonic
, "b");
8498 func (stream
, dis_style_mnemonic
, "h");
8501 func (stream
, dis_style_mnemonic
, "w");
8504 func (stream
, dis_style_mnemonic
, "d");
8513 /* given (20, 23) | given (0, 3) */
8514 value
= ((given
>> 16) & 0xf0) | (given
& 0xf);
8515 func (stream
, dis_style_immediate
, "%d", (int) value
);
8520 /* This is like the 'A' operator, except that if
8521 the width field "M" is zero, then the offset is
8522 *not* multiplied by four. */
8524 int offset
= given
& 0xff;
8525 int multiplier
= (given
& 0x00000100) ? 4 : 1;
8527 func (stream
, dis_style_text
, "[");
8528 func (stream
, dis_style_register
, "%s",
8529 arm_regnames
[(given
>> 16) & 0xf]);
8533 value_in_comment
= offset
* multiplier
;
8534 if (NEGATIVE_BIT_SET
)
8535 value_in_comment
= - value_in_comment
;
8542 func (stream
, dis_style_text
, ", ");
8543 func (stream
, dis_style_immediate
, "#%s%d",
8544 NEGATIVE_BIT_SET
? "-" : "",
8545 offset
* multiplier
);
8546 func (stream
, dis_style_text
, "]%s",
8547 WRITEBACK_BIT_SET
? "!" : "");
8551 func (stream
, dis_style_text
, "], ");
8552 func (stream
, dis_style_immediate
, "#%s%d",
8553 NEGATIVE_BIT_SET
? "-" : "",
8554 offset
* multiplier
);
8558 func (stream
, dis_style_text
, "]");
8564 int imm4
= (given
>> 4) & 0xf;
8565 int puw_bits
= ((given
>> 22) & 6) | ((given
>> W_BIT
) & 1);
8566 int ubit
= ! NEGATIVE_BIT_SET
;
8567 const char *rm
= arm_regnames
[given
& 0xf];
8568 const char *rn
= arm_regnames
[(given
>> 16) & 0xf];
8574 func (stream
, dis_style_text
, "[");
8575 func (stream
, dis_style_register
, "%s", rn
);
8576 func (stream
, dis_style_text
, "], ");
8577 func (stream
, dis_style_text
, "%c", ubit
? '+' : '-');
8578 func (stream
, dis_style_register
, "%s", rm
);
8581 func (stream
, dis_style_text
, ", ");
8582 func (stream
, dis_style_sub_mnemonic
, "lsl ");
8583 func (stream
, dis_style_immediate
, "#%d", imm4
);
8591 func (stream
, dis_style_text
, "[");
8592 func (stream
, dis_style_register
, "%s", rn
);
8593 func (stream
, dis_style_text
, ", ");
8594 func (stream
, dis_style_text
, "%c", ubit
? '+' : '-');
8595 func (stream
, dis_style_register
, "%s", rm
);
8598 func (stream
, dis_style_text
, ", ");
8599 func (stream
, dis_style_sub_mnemonic
, "lsl ");
8600 func (stream
, dis_style_immediate
, "#%d", imm4
);
8602 func (stream
, dis_style_text
, "]");
8603 if (puw_bits
== 5 || puw_bits
== 7)
8604 func (stream
, dis_style_text
, "!");
8608 func (stream
, dis_style_text
, "INVALID");
8616 imm5
= ((given
& 0x100) >> 4) | (given
& 0xf);
8617 func (stream
, dis_style_immediate
, "%ld",
8618 (imm5
== 0) ? 32 : imm5
);
8629 base_style
= dis_style_comment_start
;
8632 base_style
= dis_style_text
;
8634 func (stream
, base_style
, "%c", *c
);
8638 if (value_in_comment
> 32 || value_in_comment
< -16)
8639 func (stream
, dis_style_comment_start
, "\t@ 0x%lx",
8640 (value_in_comment
& 0xffffffffUL
));
8642 if (is_unpredictable
)
8643 func (stream
, dis_style_comment_start
, UNPREDICTABLE_INSTRUCTION
);
8651 print_insn_coprocessor (bfd_vma pc
,
8652 struct disassemble_info
*info
,
8656 return print_insn_coprocessor_1 (coprocessor_opcodes
,
8657 pc
, info
, given
, thumb
);
8661 print_insn_generic_coprocessor (bfd_vma pc
,
8662 struct disassemble_info
*info
,
8666 return print_insn_coprocessor_1 (generic_coprocessor_opcodes
,
8667 pc
, info
, given
, thumb
);
8670 /* Decodes and prints ARM addressing modes. Returns the offset
8671 used in the address, if any, if it is worthwhile printing the
8672 offset as a hexadecimal value in a comment at the end of the
8673 line of disassembly. */
8676 print_arm_address (bfd_vma pc
, struct disassemble_info
*info
, long given
)
8678 void *stream
= info
->stream
;
8679 fprintf_styled_ftype func
= info
->fprintf_styled_func
;
8682 if (((given
& 0x000f0000) == 0x000f0000)
8683 && ((given
& 0x02000000) == 0))
8685 offset
= given
& 0xfff;
8687 func (stream
, dis_style_text
, "[");
8688 func (stream
, dis_style_register
, "pc");
8692 /* Pre-indexed. Elide offset of positive zero when
8694 if (WRITEBACK_BIT_SET
|| NEGATIVE_BIT_SET
|| offset
)
8696 func (stream
, dis_style_text
, ", ");
8697 func (stream
, dis_style_immediate
, "#%s%d",
8698 NEGATIVE_BIT_SET
? "-" : "", (int) offset
);
8701 if (NEGATIVE_BIT_SET
)
8706 /* Cope with the possibility of write-back
8707 being used. Probably a very dangerous thing
8708 for the programmer to do, but who are we to
8710 func (stream
, dis_style_text
, "]%s", WRITEBACK_BIT_SET
? "!" : "");
8712 else /* Post indexed. */
8714 func (stream
, dis_style_text
, "], ");
8715 func (stream
, dis_style_immediate
, "#%s%d",
8716 NEGATIVE_BIT_SET
? "-" : "", (int) offset
);
8718 /* Ie ignore the offset. */
8722 func (stream
, dis_style_comment_start
, "\t@ ");
8723 info
->print_address_func (offset
, info
);
8728 func (stream
, dis_style_text
, "[");
8729 func (stream
, dis_style_register
, "%s",
8730 arm_regnames
[(given
>> 16) & 0xf]);
8734 if ((given
& 0x02000000) == 0)
8736 /* Elide offset of positive zero when non-writeback. */
8737 offset
= given
& 0xfff;
8738 if (WRITEBACK_BIT_SET
|| NEGATIVE_BIT_SET
|| offset
)
8740 func (stream
, dis_style_text
, ", ");
8741 func (stream
, dis_style_immediate
, "#%s%d",
8742 NEGATIVE_BIT_SET
? "-" : "", (int) offset
);
8747 func (stream
, dis_style_text
, ", %s",
8748 NEGATIVE_BIT_SET
? "-" : "");
8749 arm_decode_shift (given
, func
, stream
, true);
8752 func (stream
, dis_style_text
, "]%s",
8753 WRITEBACK_BIT_SET
? "!" : "");
8757 if ((given
& 0x02000000) == 0)
8759 /* Always show offset. */
8760 offset
= given
& 0xfff;
8761 func (stream
, dis_style_text
, "], ");
8762 func (stream
, dis_style_immediate
, "#%s%d",
8763 NEGATIVE_BIT_SET
? "-" : "", (int) offset
);
8767 func (stream
, dis_style_text
, "], %s",
8768 NEGATIVE_BIT_SET
? "-" : "");
8769 arm_decode_shift (given
, func
, stream
, true);
8772 if (NEGATIVE_BIT_SET
)
8776 return (signed long) offset
;
8780 /* Print one cde instruction on INFO->STREAM.
8781 Return TRUE if the instuction matched, FALSE if this is not a
8782 recognised cde instruction. */
8784 print_insn_cde (struct disassemble_info
*info
, long given
, bool thumb
)
8786 const struct cdeopcode32
*insn
;
8787 void *stream
= info
->stream
;
8788 fprintf_styled_ftype func
= info
->fprintf_styled_func
;
8789 enum disassembler_style base_style
= dis_style_mnemonic
;
8790 enum disassembler_style old_base_style
= base_style
;
8794 /* Manually extract the coprocessor code from a known point.
8795 This position is the same across all CDE instructions. */
8796 for (insn
= cde_opcodes
; insn
->assembler
; insn
++)
8798 uint16_t coproc
= (given
>> insn
->coproc_shift
) & insn
->coproc_mask
;
8799 uint16_t coproc_mask
= 1 << coproc
;
8800 if (! (coproc_mask
& cde_coprocs
))
8803 if ((given
& insn
->mask
) == insn
->value
)
8805 bool is_unpredictable
= false;
8808 for (c
= insn
->assembler
; *c
; c
++)
8818 old_base_style
= base_style
;
8819 base_style
= decode_base_style (*c
);
8826 base_style
= old_base_style
;
8830 func (stream
, base_style
, "%%");
8833 case '0': case '1': case '2': case '3': case '4':
8834 case '5': case '6': case '7': case '8': case '9':
8837 unsigned long value
;
8839 c
= arm_decode_bitfield (c
, given
, &value
, &width
);
8845 is_unpredictable
= true;
8849 is_unpredictable
= true;
8852 func (stream
, dis_style_register
, "%s",
8853 arm_regnames
[value
]);
8858 func (stream
, dis_style_register
, "%s", "APSR_nzcv");
8860 func (stream
, dis_style_register
, "%s",
8861 arm_regnames
[value
]);
8865 func (stream
, dis_style_register
, "%s",
8866 arm_regnames
[(value
+ 1) & 15]);
8870 func (stream
, dis_style_immediate
, "%ld", value
);
8874 if (given
& (1 << 6))
8875 func (stream
, dis_style_register
, "q%ld", value
>> 1);
8876 else if (given
& (1 << 24))
8877 func (stream
, dis_style_register
, "d%ld", value
);
8880 /* Encoding for S register is different than for D and
8881 Q registers. S registers are encoded using the top
8882 single bit in position 22 as the lowest bit of the
8883 register number, while for Q and D it represents the
8884 highest bit of the register number. */
8885 uint8_t top_bit
= (value
>> 4) & 1;
8886 uint8_t tmp
= (value
<< 1) & 0x1e;
8887 uint8_t res
= tmp
| top_bit
;
8888 func (stream
, dis_style_register
, "s%u", res
);
8900 uint8_t proc_number
= (given
>> 8) & 0x7;
8901 func (stream
, dis_style_register
, "p%u", proc_number
);
8907 uint8_t a_offset
= 28;
8908 if (given
& (1 << a_offset
))
8909 func (stream
, dis_style_mnemonic
, "a");
8919 base_style
= dis_style_comment_start
;
8921 base_style
= dis_style_text
;
8923 func (stream
, base_style
, "%c", *c
);
8927 if (is_unpredictable
)
8928 func (stream
, dis_style_comment_start
, UNPREDICTABLE_INSTRUCTION
);
8940 /* Print one neon instruction on INFO->STREAM.
8941 Return TRUE if the instuction matched, FALSE if this is not a
8942 recognised neon instruction. */
8945 print_insn_neon (struct disassemble_info
*info
, long given
, bool thumb
)
8947 const struct opcode32
*insn
;
8948 void *stream
= info
->stream
;
8949 fprintf_styled_ftype func
= info
->fprintf_styled_func
;
8950 enum disassembler_style base_style
= dis_style_mnemonic
;
8951 enum disassembler_style old_base_style
= base_style
;
8955 if ((given
& 0xef000000) == 0xef000000)
8957 /* Move bit 28 to bit 24 to translate Thumb2 to ARM encoding. */
8958 unsigned long bit28
= given
& (1 << 28);
8960 given
&= 0x00ffffff;
8962 given
|= 0xf3000000;
8964 given
|= 0xf2000000;
8966 else if ((given
& 0xff000000) == 0xf9000000)
8967 given
^= 0xf9000000 ^ 0xf4000000;
8968 /* BFloat16 neon instructions without special top byte handling. */
8969 else if ((given
& 0xff000000) == 0xfe000000
8970 || (given
& 0xff000000) == 0xfc000000)
8972 /* vdup is also a valid neon instruction. */
8973 else if ((given
& 0xff900f5f) != 0xee800b10)
8977 for (insn
= neon_opcodes
; insn
->assembler
; insn
++)
8979 unsigned long cond_mask
= insn
->mask
;
8980 unsigned long cond_value
= insn
->value
;
8985 if ((cond_mask
& 0xf0000000) == 0) {
8986 /* For the entries in neon_opcodes, an opcode mask/value with
8987 the high 4 bits equal to 0 indicates a conditional
8988 instruction. For thumb however, we need to include those
8989 bits in the instruction matching. */
8990 cond_mask
|= 0xf0000000;
8991 /* Furthermore, the thumb encoding of a conditional instruction
8992 will have the high 4 bits equal to 0xe. */
8993 cond_value
|= 0xe0000000;
9002 if ((given
& 0xf0000000) == 0xf0000000)
9004 /* If the instruction is unconditional, update the mask to only
9005 match against unconditional opcode values. */
9006 cond_mask
|= 0xf0000000;
9011 cond
= (given
>> 28) & 0xf;
9017 if ((given
& cond_mask
) == cond_value
)
9019 signed long value_in_comment
= 0;
9020 bool is_unpredictable
= false;
9023 for (c
= insn
->assembler
; *c
; c
++)
9033 old_base_style
= base_style
;
9034 base_style
= decode_base_style (*c
);
9041 base_style
= old_base_style
;
9045 func (stream
, base_style
, "%%");
9049 if (thumb
&& ifthen_state
)
9050 is_unpredictable
= true;
9054 func (stream
, dis_style_mnemonic
, "%s",
9055 arm_conditional
[cond
]);
9060 static const unsigned char enc
[16] =
9062 0x4, 0x14, /* st4 0,1 */
9074 int rd
= ((given
>> 12) & 0xf) | (((given
>> 22) & 1) << 4);
9075 int rn
= ((given
>> 16) & 0xf);
9076 int rm
= ((given
>> 0) & 0xf);
9077 int align
= ((given
>> 4) & 0x3);
9078 int type
= ((given
>> 8) & 0xf);
9079 int n
= enc
[type
] & 0xf;
9080 int stride
= (enc
[type
] >> 4) + 1;
9083 func (stream
, dis_style_text
, "{");
9085 for (ix
= 0; ix
!= n
; ix
++)
9088 func (stream
, dis_style_text
, ",");
9089 func (stream
, dis_style_register
, "d%d",
9093 func (stream
, dis_style_register
, "d%d", rd
);
9096 func (stream
, dis_style_register
, "d%d", rd
);
9097 func (stream
, dis_style_text
, "-");
9098 func (stream
, dis_style_register
, "d%d",
9101 func (stream
, dis_style_text
, "}, [");
9102 func (stream
, dis_style_register
, "%s",
9106 func (stream
, dis_style_text
, " :");
9107 func (stream
, dis_style_immediate
, "%d",
9110 func (stream
, dis_style_text
, "]");
9112 func (stream
, dis_style_text
, "!");
9115 func (stream
, dis_style_text
, ", ");
9116 func (stream
, dis_style_register
, "%s",
9124 int rd
= ((given
>> 12) & 0xf) | (((given
>> 22) & 1) << 4);
9125 int rn
= ((given
>> 16) & 0xf);
9126 int rm
= ((given
>> 0) & 0xf);
9127 int idx_align
= ((given
>> 4) & 0xf);
9129 int size
= ((given
>> 10) & 0x3);
9130 int idx
= idx_align
>> (size
+ 1);
9131 int length
= ((given
>> 8) & 3) + 1;
9135 if (length
> 1 && size
> 0)
9136 stride
= (idx_align
& (1 << size
)) ? 2 : 1;
9142 int amask
= (1 << size
) - 1;
9143 if ((idx_align
& (1 << size
)) != 0)
9147 if ((idx_align
& amask
) == amask
)
9149 else if ((idx_align
& amask
) != 0)
9156 if (size
== 2 && (idx_align
& 2) != 0)
9158 align
= (idx_align
& 1) ? 16 << size
: 0;
9162 if ((size
== 2 && (idx_align
& 3) != 0)
9163 || (idx_align
& 1) != 0)
9170 if ((idx_align
& 3) == 3)
9172 align
= (idx_align
& 3) * 64;
9175 align
= (idx_align
& 1) ? 32 << size
: 0;
9182 func (stream
, dis_style_text
, "{");
9183 for (i
= 0; i
< length
; i
++)
9186 func (stream
, dis_style_text
, ",");
9187 func (stream
, dis_style_register
, "d%d[%d]",
9188 rd
+ i
* stride
, idx
);
9190 func (stream
, dis_style_text
, "}, [");
9191 func (stream
, dis_style_register
, "%s",
9195 func (stream
, dis_style_text
, " :");
9196 func (stream
, dis_style_immediate
, "%d", align
);
9198 func (stream
, dis_style_text
, "]");
9200 func (stream
, dis_style_text
, "!");
9203 func (stream
, dis_style_text
, ", ");
9204 func (stream
, dis_style_register
, "%s",
9212 int rd
= ((given
>> 12) & 0xf) | (((given
>> 22) & 1) << 4);
9213 int rn
= ((given
>> 16) & 0xf);
9214 int rm
= ((given
>> 0) & 0xf);
9215 int align
= ((given
>> 4) & 0x1);
9216 int size
= ((given
>> 6) & 0x3);
9217 int type
= ((given
>> 8) & 0x3);
9219 int stride
= ((given
>> 5) & 0x1);
9222 if (stride
&& (n
== 1))
9227 func (stream
, dis_style_text
, "{");
9229 for (ix
= 0; ix
!= n
; ix
++)
9232 func (stream
, dis_style_text
, ",");
9233 func (stream
, dis_style_register
, "d%d[]",
9237 func (stream
, dis_style_register
, "d%d[]", rd
);
9240 func (stream
, dis_style_register
, "d%d[]", rd
);
9241 func (stream
, dis_style_text
, "-");
9242 func (stream
, dis_style_register
, "d%d[]",
9245 func (stream
, dis_style_text
, "}, [");
9246 func (stream
, dis_style_register
, "%s",
9250 align
= (8 * (type
+ 1)) << size
;
9252 align
= (size
> 1) ? align
>> 1 : align
;
9253 if (type
== 2 || (type
== 0 && !size
))
9254 func (stream
, dis_style_text
,
9255 " :<bad align %d>", align
);
9258 func (stream
, dis_style_text
, " :");
9259 func (stream
, dis_style_immediate
,
9263 func (stream
, dis_style_text
, "]");
9265 func (stream
, dis_style_text
, "!");
9268 func (stream
, dis_style_text
, ", ");
9269 func (stream
, dis_style_register
, "%s",
9277 int raw_reg
= (given
& 0xf) | ((given
>> 1) & 0x10);
9278 int size
= (given
>> 20) & 3;
9279 int reg
= raw_reg
& ((4 << size
) - 1);
9280 int ix
= raw_reg
>> size
>> 2;
9282 func (stream
, dis_style_register
, "d%d[%d]", reg
, ix
);
9287 /* Neon encoded constant for mov, mvn, vorr, vbic. */
9290 int cmode
= (given
>> 8) & 0xf;
9291 int op
= (given
>> 5) & 0x1;
9292 unsigned long value
= 0, hival
= 0;
9297 bits
|= ((given
>> 24) & 1) << 7;
9298 bits
|= ((given
>> 16) & 7) << 4;
9299 bits
|= ((given
>> 0) & 15) << 0;
9303 shift
= (cmode
>> 1) & 3;
9304 value
= (unsigned long) bits
<< (8 * shift
);
9307 else if (cmode
< 12)
9309 shift
= (cmode
>> 1) & 1;
9310 value
= (unsigned long) bits
<< (8 * shift
);
9313 else if (cmode
< 14)
9315 shift
= (cmode
& 1) + 1;
9316 value
= (unsigned long) bits
<< (8 * shift
);
9317 value
|= (1ul << (8 * shift
)) - 1;
9320 else if (cmode
== 14)
9324 /* Bit replication into bytes. */
9330 for (ix
= 7; ix
>= 0; ix
--)
9332 mask
= ((bits
>> ix
) & 1) ? 0xff : 0;
9334 value
= (value
<< 8) | mask
;
9336 hival
= (hival
<< 8) | mask
;
9342 /* Byte replication. */
9343 value
= (unsigned long) bits
;
9349 /* Floating point encoding. */
9352 value
= (unsigned long) (bits
& 0x7f) << 19;
9353 value
|= (unsigned long) (bits
& 0x80) << 24;
9354 tmp
= bits
& 0x40 ? 0x3c : 0x40;
9355 value
|= (unsigned long) tmp
<< 24;
9361 func (stream
, dis_style_text
,
9362 "<illegal constant %.8x:%x:%x>",
9370 func (stream
, dis_style_immediate
, "#%ld", value
);
9371 func (stream
, dis_style_comment_start
,
9372 "\t@ 0x%.2lx", value
);
9376 func (stream
, dis_style_immediate
, "#%ld", value
);
9377 func (stream
, dis_style_comment_start
,
9378 "\t@ 0x%.4lx", value
);
9384 unsigned char valbytes
[4];
9387 /* Do this a byte at a time so we don't have to
9388 worry about the host's endianness. */
9389 valbytes
[0] = value
& 0xff;
9390 valbytes
[1] = (value
>> 8) & 0xff;
9391 valbytes
[2] = (value
>> 16) & 0xff;
9392 valbytes
[3] = (value
>> 24) & 0xff;
9394 floatformat_to_double
9395 (& floatformat_ieee_single_little
, valbytes
,
9398 func (stream
, dis_style_immediate
,
9400 func (stream
, dis_style_comment_start
,
9401 "\t@ 0x%.8lx", value
);
9405 func (stream
, dis_style_immediate
, "#%ld",
9406 (long) (((value
& 0x80000000L
) != 0)
9407 ? value
| ~0xffffffffL
: value
));
9408 func (stream
, dis_style_comment_start
,
9409 "\t@ 0x%.8lx", value
);
9414 func (stream
, dis_style_immediate
,
9415 "#0x%.8lx%.8lx", hival
, value
);
9426 int regno
= ((given
>> 16) & 0xf) | ((given
>> (7 - 4)) & 0x10);
9427 int num
= (given
>> 8) & 0x3;
9429 func (stream
, dis_style_text
, "{");
9431 func (stream
, dis_style_register
, "d%d", regno
);
9432 else if (num
+ regno
>= 32)
9434 func (stream
, dis_style_register
, "d%d", regno
);
9435 func (stream
, dis_style_text
, "-<overflow reg d%d",
9440 func (stream
, dis_style_register
, "d%d", regno
);
9441 func (stream
, dis_style_text
, "-");
9442 func (stream
, dis_style_register
, "d%d",
9445 func (stream
, dis_style_text
, "}");
9450 case '0': case '1': case '2': case '3': case '4':
9451 case '5': case '6': case '7': case '8': case '9':
9454 unsigned long value
;
9456 c
= arm_decode_bitfield (c
, given
, &value
, &width
);
9461 func (stream
, dis_style_register
, "%s",
9462 arm_regnames
[value
]);
9465 func (stream
, base_style
, "%ld", value
);
9466 value_in_comment
= value
;
9469 func (stream
, dis_style_immediate
, "%ld",
9470 (1ul << width
) - value
);
9476 /* Various width encodings. */
9478 int base
= 8 << (*c
- 'S'); /* 8,16 or 32 */
9483 if (*c
>= '0' && *c
<= '9')
9485 else if (*c
>= 'a' && *c
<= 'f')
9486 limit
= *c
- 'a' + 10;
9492 if (value
< low
|| value
> high
)
9493 func (stream
, dis_style_text
,
9494 "<illegal width %d>", base
<< value
);
9496 func (stream
, base_style
, "%d",
9501 if (given
& (1 << 6))
9505 func (stream
, dis_style_register
, "d%ld", value
);
9510 func (stream
, dis_style_text
,
9511 "<illegal reg q%ld.5>", value
>> 1);
9513 func (stream
, dis_style_register
,
9514 "q%ld", value
>> 1);
9520 func (stream
, dis_style_text
, "%c", *c
);
9524 if (value
== ((1ul << width
) - 1))
9525 func (stream
, dis_style_text
, "%c", *c
);
9528 func (stream
, dis_style_mnemonic
, "%c",
9529 c
[(1 << width
) - (int) value
]);
9545 base_style
= dis_style_comment_start
;
9548 base_style
= dis_style_text
;
9550 func (stream
, base_style
, "%c", *c
);
9555 if (value_in_comment
> 32 || value_in_comment
< -16)
9556 func (stream
, dis_style_comment_start
, "\t@ 0x%lx",
9559 if (is_unpredictable
)
9560 func (stream
, dis_style_comment_start
, UNPREDICTABLE_INSTRUCTION
);
9568 /* Print one mve instruction on INFO->STREAM.
9569 Return TRUE if the instuction matched, FALSE if this is not a
9570 recognised mve instruction. */
9573 print_insn_mve (struct disassemble_info
*info
, long given
)
9575 const struct mopcode32
*insn
;
9576 void *stream
= info
->stream
;
9577 fprintf_styled_ftype func
= info
->fprintf_styled_func
;
9578 enum disassembler_style base_style
= dis_style_mnemonic
;
9579 enum disassembler_style old_base_style
= base_style
;
9581 for (insn
= mve_opcodes
; insn
->assembler
; insn
++)
9583 if (((given
& insn
->mask
) == insn
->value
)
9584 && !is_mve_encoding_conflict (given
, insn
->mve_op
))
9586 signed long value_in_comment
= 0;
9587 bool is_unpredictable
= false;
9588 bool is_undefined
= false;
9590 enum mve_unpredictable unpredictable_cond
= UNPRED_NONE
;
9591 enum mve_undefined undefined_cond
= UNDEF_NONE
;
9593 /* Most vector mve instruction are illegal in a it block.
9594 There are a few exceptions; check for them. */
9595 if (ifthen_state
&& !is_mve_okay_in_it (insn
->mve_op
))
9597 is_unpredictable
= true;
9598 unpredictable_cond
= UNPRED_IT_BLOCK
;
9600 else if (is_mve_unpredictable (given
, insn
->mve_op
,
9601 &unpredictable_cond
))
9602 is_unpredictable
= true;
9604 if (is_mve_undefined (given
, insn
->mve_op
, &undefined_cond
))
9605 is_undefined
= true;
9607 /* In "VORR Qd, Qm, Qn", if Qm==Qn, VORR is nothing but VMOV,
9608 i.e "VMOV Qd, Qm". */
9609 if ((insn
->mve_op
== MVE_VORR_REG
)
9610 && (arm_decode_field (given
, 1, 3)
9611 == arm_decode_field (given
, 17, 19)))
9614 for (c
= insn
->assembler
; *c
; c
++)
9624 old_base_style
= base_style
;
9625 base_style
= decode_base_style (*c
);
9632 base_style
= old_base_style
;
9636 func (stream
, base_style
, "%%");
9640 /* Don't print anything for '+' as it is implied. */
9641 if (arm_decode_field (given
, 23, 23) == 0)
9642 func (stream
, dis_style_immediate
, "-");
9647 func (stream
, dis_style_mnemonic
, "%s",
9648 arm_conditional
[IFTHEN_COND
]);
9652 print_mve_vld_str_addr (info
, given
, insn
->mve_op
);
9657 long mve_mask
= mve_extract_pred_mask (given
);
9658 func (stream
, dis_style_mnemonic
, "%s",
9659 mve_predicatenames
[mve_mask
]);
9665 unsigned int imm5
= 0;
9666 imm5
|= arm_decode_field (given
, 6, 7);
9667 imm5
|= (arm_decode_field (given
, 12, 14) << 2);
9668 func (stream
, dis_style_immediate
, "#%u",
9669 (imm5
== 0) ? 32 : imm5
);
9674 func (stream
, dis_style_immediate
, "#%u",
9675 (arm_decode_field (given
, 7, 7) == 0) ? 64 : 48);
9679 print_vec_condition (info
, given
, insn
->mve_op
);
9683 if (arm_decode_field (given
, 0, 0) == 1)
9686 = arm_decode_field (given
, 4, 4)
9687 | (arm_decode_field (given
, 6, 6) << 1);
9689 func (stream
, dis_style_text
, ", ");
9690 func (stream
, dis_style_sub_mnemonic
, "uxtw ");
9691 func (stream
, dis_style_immediate
, "#%lu", size
);
9696 print_mve_rounding_mode (info
, given
, insn
->mve_op
);
9700 print_mve_vcvt_size (info
, given
, insn
->mve_op
);
9705 unsigned long op1
= arm_decode_field (given
, 21, 22);
9707 if ((insn
->mve_op
== MVE_VMOV_VEC_LANE_TO_GP
))
9709 /* Check for signed. */
9710 if (arm_decode_field (given
, 23, 23) == 0)
9712 /* We don't print 's' for S32. */
9713 if ((arm_decode_field (given
, 5, 6) == 0)
9714 && ((op1
== 0) || (op1
== 1)))
9717 func (stream
, dis_style_mnemonic
, "s");
9720 func (stream
, dis_style_mnemonic
, "u");
9724 if (arm_decode_field (given
, 28, 28) == 0)
9725 func (stream
, dis_style_mnemonic
, "s");
9727 func (stream
, dis_style_mnemonic
, "u");
9733 print_instruction_predicate (info
);
9737 if (arm_decode_field (given
, 21, 21) == 1)
9738 func (stream
, dis_style_text
, "!");
9742 print_mve_register_blocks (info
, given
, insn
->mve_op
);
9746 /* SIMD encoded constant for mov, mvn, vorr, vbic. */
9748 print_simd_imm8 (info
, given
, 28, insn
);
9752 print_mve_vmov_index (info
, given
);
9756 if (arm_decode_field (given
, 12, 12) == 0)
9757 func (stream
, dis_style_mnemonic
, "b");
9759 func (stream
, dis_style_mnemonic
, "t");
9763 if (arm_decode_field (given
, 12, 12) == 1)
9764 func (stream
, dis_style_mnemonic
, "x");
9767 case '0': case '1': case '2': case '3': case '4':
9768 case '5': case '6': case '7': case '8': case '9':
9771 unsigned long value
;
9773 c
= arm_decode_bitfield (c
, given
, &value
, &width
);
9779 is_unpredictable
= true;
9780 else if (value
== 15)
9781 func (stream
, dis_style_register
, "zr");
9783 func (stream
, dis_style_register
, "%s",
9784 arm_regnames
[value
]);
9788 func (stream
, dis_style_sub_mnemonic
, "%s",
9789 arm_conditional
[value
]);
9794 func (stream
, dis_style_sub_mnemonic
, "%s",
9795 arm_conditional
[value
]);
9799 if (value
== 13 || value
== 15)
9800 is_unpredictable
= true;
9802 func (stream
, dis_style_register
, "%s",
9803 arm_regnames
[value
]);
9807 print_mve_size (info
,
9813 func (stream
, dis_style_mnemonic
, "i");
9817 func (stream
, dis_style_mnemonic
, "a");
9821 unsigned int odd_reg
= (value
<< 1) | 1;
9822 func (stream
, dis_style_register
, "%s",
9823 arm_regnames
[odd_reg
]);
9829 = arm_decode_field (given
, 0, 6);
9830 unsigned long mod_imm
= imm
;
9832 switch (insn
->mve_op
)
9834 case MVE_VLDRW_GATHER_T5
:
9835 case MVE_VSTRW_SCATTER_T5
:
9836 mod_imm
= mod_imm
<< 2;
9838 case MVE_VSTRD_SCATTER_T6
:
9839 case MVE_VLDRD_GATHER_T6
:
9840 mod_imm
= mod_imm
<< 3;
9847 func (stream
, dis_style_immediate
, "%lu",
9852 func (stream
, dis_style_immediate
, "%lu",
9857 unsigned int even_reg
= value
<< 1;
9858 func (stream
, dis_style_register
, "%s",
9859 arm_regnames
[even_reg
]);
9866 func (stream
, dis_style_immediate
, "1");
9869 func (stream
, dis_style_immediate
, "2");
9872 func (stream
, dis_style_immediate
, "4");
9875 func (stream
, dis_style_immediate
, "8");
9882 print_mve_rotate (info
, value
, width
);
9885 func (stream
, dis_style_register
, "%s",
9886 arm_regnames
[value
]);
9889 if (mve_shift_insn_p (insn
->mve_op
))
9890 print_mve_shift_n (info
, given
, insn
->mve_op
);
9891 else if (insn
->mve_op
== MVE_VSHLL_T2
)
9892 func (stream
, dis_style_immediate
, "%s",
9893 mve_vec_sizename
[value
]);
9896 if (insn
->mve_op
== MVE_VSHLC
&& value
== 0)
9898 func (stream
, base_style
, "%ld", value
);
9899 value_in_comment
= value
;
9903 func (stream
, dis_style_register
, "s%ld", value
);
9907 func (stream
, dis_style_text
,
9908 "<illegal reg q%ld.5>", value
);
9910 func (stream
, dis_style_register
, "q%ld", value
);
9913 func (stream
, dis_style_immediate
,
9928 base_style
= dis_style_comment_start
;
9931 base_style
= dis_style_text
;
9933 func (stream
, base_style
, "%c", *c
);
9937 if (value_in_comment
> 32 || value_in_comment
< -16)
9938 func (stream
, dis_style_comment_start
, "\t@ 0x%lx",
9941 if (is_unpredictable
)
9942 print_mve_unpredictable (info
, unpredictable_cond
);
9945 print_mve_undefined (info
, undefined_cond
);
9947 if (!vpt_block_state
.in_vpt_block
9949 && is_vpt_instruction (given
))
9950 mark_inside_vpt_block (given
);
9951 else if (vpt_block_state
.in_vpt_block
)
9952 update_vpt_block_state ();
9961 /* Return the name of a v7A special register. */
9964 banked_regname (unsigned reg
)
9968 case 15: return "CPSR";
9969 case 32: return "R8_usr";
9970 case 33: return "R9_usr";
9971 case 34: return "R10_usr";
9972 case 35: return "R11_usr";
9973 case 36: return "R12_usr";
9974 case 37: return "SP_usr";
9975 case 38: return "LR_usr";
9976 case 40: return "R8_fiq";
9977 case 41: return "R9_fiq";
9978 case 42: return "R10_fiq";
9979 case 43: return "R11_fiq";
9980 case 44: return "R12_fiq";
9981 case 45: return "SP_fiq";
9982 case 46: return "LR_fiq";
9983 case 48: return "LR_irq";
9984 case 49: return "SP_irq";
9985 case 50: return "LR_svc";
9986 case 51: return "SP_svc";
9987 case 52: return "LR_abt";
9988 case 53: return "SP_abt";
9989 case 54: return "LR_und";
9990 case 55: return "SP_und";
9991 case 60: return "LR_mon";
9992 case 61: return "SP_mon";
9993 case 62: return "ELR_hyp";
9994 case 63: return "SP_hyp";
9995 case 79: return "SPSR";
9996 case 110: return "SPSR_fiq";
9997 case 112: return "SPSR_irq";
9998 case 114: return "SPSR_svc";
9999 case 116: return "SPSR_abt";
10000 case 118: return "SPSR_und";
10001 case 124: return "SPSR_mon";
10002 case 126: return "SPSR_hyp";
10003 default: return NULL
;
10007 /* Return the name of the DMB/DSB option. */
10008 static const char *
10009 data_barrier_option (unsigned option
)
10011 switch (option
& 0xf)
10013 case 0xf: return "sy";
10014 case 0xe: return "st";
10015 case 0xd: return "ld";
10016 case 0xb: return "ish";
10017 case 0xa: return "ishst";
10018 case 0x9: return "ishld";
10019 case 0x7: return "un";
10020 case 0x6: return "unst";
10021 case 0x5: return "nshld";
10022 case 0x3: return "osh";
10023 case 0x2: return "oshst";
10024 case 0x1: return "oshld";
10025 default: return NULL
;
10029 /* Print one ARM instruction from PC on INFO->STREAM. */
10032 print_insn_arm (bfd_vma pc
, struct disassemble_info
*info
, long given
)
10034 const struct opcode32
*insn
;
10035 void *stream
= info
->stream
;
10036 fprintf_styled_ftype func
= info
->fprintf_styled_func
;
10037 struct arm_private_data
*private_data
= info
->private_data
;
10038 enum disassembler_style base_style
= dis_style_mnemonic
;
10039 enum disassembler_style old_base_style
= base_style
;
10041 if (print_insn_coprocessor (pc
, info
, given
, false))
10044 if (print_insn_neon (info
, given
, false))
10047 if (print_insn_generic_coprocessor (pc
, info
, given
, false))
10050 for (insn
= arm_opcodes
; insn
->assembler
; insn
++)
10052 if ((given
& insn
->mask
) != insn
->value
)
10055 if (! ARM_CPU_HAS_FEATURE (insn
->arch
, private_data
->features
))
10058 /* Special case: an instruction with all bits set in the condition field
10059 (0xFnnn_nnnn) is only matched if all those bits are set in insn->mask,
10060 or by the catchall at the end of the table. */
10061 if ((given
& 0xF0000000) != 0xF0000000
10062 || (insn
->mask
& 0xF0000000) == 0xF0000000
10063 || (insn
->mask
== 0 && insn
->value
== 0))
10065 unsigned long u_reg
= 16;
10066 unsigned long U_reg
= 16;
10067 bool is_unpredictable
= false;
10068 signed long value_in_comment
= 0;
10071 for (c
= insn
->assembler
; *c
; c
++)
10075 bool allow_unpredictable
= false;
10083 old_base_style
= base_style
;
10084 base_style
= decode_base_style (*c
);
10091 base_style
= old_base_style
;
10095 func (stream
, base_style
, "%%");
10099 value_in_comment
= print_arm_address (pc
, info
, given
);
10103 /* Set P address bit and use normal address
10104 printing routine. */
10105 value_in_comment
= print_arm_address (pc
, info
, given
| (1 << P_BIT
));
10109 /* Armv4 does not have a BX instruction, however, when
10110 assembled with the --fix-v4bx option GAS will accept
10111 and assemble a BX instruction when assembling for
10112 Armv4. When disassembling we also disassemble it as a
10113 BX instruction, but do make the user aware that this
10114 instruction is only supported on HW from Armv4T
10116 if (info
->mach
== bfd_mach_arm_4
)
10117 func (stream
, dis_style_text
, "\t@ from Armv4T onwards");
10121 allow_unpredictable
= true;
10122 /* Fall through. */
10124 if ((given
& 0x004f0000) == 0x004f0000)
10126 /* PC relative with immediate offset. */
10127 bfd_vma offset
= ((given
& 0xf00) >> 4) | (given
& 0xf);
10131 /* Elide positive zero offset. */
10132 if (offset
|| NEGATIVE_BIT_SET
)
10134 func (stream
, dis_style_text
, "[");
10135 func (stream
, dis_style_register
, "pc");
10136 func (stream
, dis_style_text
, ", ");
10137 func (stream
, dis_style_immediate
, "#%s%d",
10138 (NEGATIVE_BIT_SET
? "-" : ""),
10140 func (stream
, dis_style_text
, "]");
10144 func (stream
, dis_style_text
, "[");
10145 func (stream
, dis_style_register
, "pc");
10146 func (stream
, dis_style_text
, "]");
10148 if (NEGATIVE_BIT_SET
)
10150 func (stream
, dis_style_comment_start
, "\t@ ");
10151 info
->print_address_func (offset
+ pc
+ 8, info
);
10155 /* Always show the offset. */
10156 func (stream
, dis_style_text
, "[");
10157 func (stream
, dis_style_register
, "pc");
10158 func (stream
, dis_style_text
, "], ");
10159 func (stream
, dis_style_immediate
, "#%s%d",
10160 NEGATIVE_BIT_SET
? "-" : "", (int) offset
);
10161 if (! allow_unpredictable
)
10162 is_unpredictable
= true;
10167 int offset
= ((given
& 0xf00) >> 4) | (given
& 0xf);
10169 func (stream
, dis_style_text
, "[");
10170 func (stream
, dis_style_register
, "%s",
10171 arm_regnames
[(given
>> 16) & 0xf]);
10175 if (IMMEDIATE_BIT_SET
)
10177 /* Elide offset for non-writeback
10179 if (WRITEBACK_BIT_SET
|| NEGATIVE_BIT_SET
10182 func (stream
, dis_style_text
, ", ");
10183 func (stream
, dis_style_immediate
,
10185 (NEGATIVE_BIT_SET
? "-" : ""),
10189 if (NEGATIVE_BIT_SET
)
10192 value_in_comment
= offset
;
10196 /* Register Offset or Register Pre-Indexed. */
10197 func (stream
, dis_style_text
, ", %s",
10198 NEGATIVE_BIT_SET
? "-" : "");
10199 func (stream
, dis_style_register
, "%s",
10200 arm_regnames
[given
& 0xf]);
10202 /* Writing back to the register that is the source/
10203 destination of the load/store is unpredictable. */
10204 if (! allow_unpredictable
10205 && WRITEBACK_BIT_SET
10206 && ((given
& 0xf) == ((given
>> 12) & 0xf)))
10207 is_unpredictable
= true;
10210 func (stream
, dis_style_text
, "]%s",
10211 WRITEBACK_BIT_SET
? "!" : "");
10215 if (IMMEDIATE_BIT_SET
)
10217 /* Immediate Post-indexed. */
10218 /* PR 10924: Offset must be printed, even if it is zero. */
10219 func (stream
, dis_style_text
, "], ");
10220 func (stream
, dis_style_immediate
, "#%s%d",
10221 NEGATIVE_BIT_SET
? "-" : "", offset
);
10222 if (NEGATIVE_BIT_SET
)
10224 value_in_comment
= offset
;
10228 /* Register Post-indexed. */
10229 func (stream
, dis_style_text
, "], %s",
10230 NEGATIVE_BIT_SET
? "-" : "");
10231 func (stream
, dis_style_register
, "%s",
10232 arm_regnames
[given
& 0xf]);
10234 /* Writing back to the register that is the source/
10235 destination of the load/store is unpredictable. */
10236 if (! allow_unpredictable
10237 && (given
& 0xf) == ((given
>> 12) & 0xf))
10238 is_unpredictable
= true;
10241 if (! allow_unpredictable
)
10243 /* Writeback is automatically implied by post- addressing.
10244 Setting the W bit is unnecessary and ARM specify it as
10245 being unpredictable. */
10246 if (WRITEBACK_BIT_SET
10247 /* Specifying the PC register as the post-indexed
10248 registers is also unpredictable. */
10249 || (! IMMEDIATE_BIT_SET
&& ((given
& 0xf) == 0xf)))
10250 is_unpredictable
= true;
10258 bfd_vma disp
= (((given
& 0xffffff) ^ 0x800000) - 0x800000);
10259 bfd_vma target
= disp
* 4 + pc
+ 8;
10260 info
->print_address_func (target
, info
);
10262 /* Fill in instruction information. */
10263 info
->insn_info_valid
= 1;
10264 info
->insn_type
= dis_branch
;
10265 info
->target
= target
;
10270 if (((given
>> 28) & 0xf) != 0xe)
10271 func (stream
, dis_style_mnemonic
, "%s",
10272 arm_conditional
[(given
>> 28) & 0xf]);
10280 func (stream
, dis_style_text
, "{");
10281 for (reg
= 0; reg
< 16; reg
++)
10282 if ((given
& (1 << reg
)) != 0)
10285 func (stream
, dis_style_text
, ", ");
10287 func (stream
, dis_style_register
, "%s",
10288 arm_regnames
[reg
]);
10290 func (stream
, dis_style_text
, "}");
10292 is_unpredictable
= true;
10297 arm_decode_shift (given
, func
, stream
, false);
10301 if ((given
& 0x02000000) != 0)
10303 unsigned int rotate
= (given
& 0xf00) >> 7;
10304 unsigned int immed
= (given
& 0xff);
10307 a
= (immed
<< ((32 - rotate
) & 31)
10308 | immed
>> rotate
) & 0xffffffff;
10309 /* If there is another encoding with smaller rotate,
10310 the rotate should be specified directly. */
10311 for (i
= 0; i
< 32; i
+= 2)
10312 if ((a
<< i
| a
>> ((32 - i
) & 31)) <= 0xff)
10317 func (stream
, dis_style_immediate
, "#%d", immed
);
10318 func (stream
, dis_style_text
, ", ");
10319 func (stream
, dis_style_immediate
, "%d", rotate
);
10322 func (stream
, dis_style_immediate
, "#%d", a
);
10323 value_in_comment
= a
;
10326 arm_decode_shift (given
, func
, stream
, true);
10330 if ((given
& 0x0000f000) == 0x0000f000)
10331 func (stream
, dis_style_mnemonic
, "p");
10334 if ((given
& 0x0000f000) == 0x0000f000)
10335 func (stream
, dis_style_text
,
10336 "\t@ p-variant is OBSOLETE");
10340 if ((given
& 0x01200000) == 0x00200000)
10341 func (stream
, dis_style_mnemonic
, "t");
10346 int offset
= given
& 0xff;
10348 value_in_comment
= offset
* 4;
10349 if (NEGATIVE_BIT_SET
)
10350 value_in_comment
= - value_in_comment
;
10352 func (stream
, dis_style_text
, "[%s",
10353 arm_regnames
[(given
>> 16) & 0xf]);
10358 func (stream
, dis_style_text
, ", #%d]%s",
10359 (int) value_in_comment
,
10360 WRITEBACK_BIT_SET
? "!" : "");
10362 func (stream
, dis_style_text
, "]");
10366 func (stream
, dis_style_text
, "]");
10368 if (WRITEBACK_BIT_SET
)
10371 func (stream
, dis_style_text
,
10372 ", #%d", (int) value_in_comment
);
10376 func (stream
, dis_style_text
,
10377 ", {%d}", (int) offset
);
10378 value_in_comment
= offset
;
10385 /* Print ARM V5 BLX(1) address: pc+25 bits. */
10388 bfd_vma offset
= 0;
10390 if (! NEGATIVE_BIT_SET
)
10391 /* Is signed, hi bits should be ones. */
10392 offset
= (-1) ^ 0x00ffffff;
10394 /* Offset is (SignExtend(offset field)<<2). */
10395 offset
+= given
& 0x00ffffff;
10397 address
= offset
+ pc
+ 8;
10399 if (given
& 0x01000000)
10400 /* H bit allows addressing to 2-byte boundaries. */
10403 info
->print_address_func (address
, info
);
10405 /* Fill in instruction information. */
10406 info
->insn_info_valid
= 1;
10407 info
->insn_type
= dis_branch
;
10408 info
->target
= address
;
10413 if ((given
& 0x02000200) == 0x200)
10416 unsigned sysm
= (given
& 0x004f0000) >> 16;
10418 sysm
|= (given
& 0x300) >> 4;
10419 name
= banked_regname (sysm
);
10422 func (stream
, dis_style_register
, "%s", name
);
10424 func (stream
, dis_style_text
,
10425 "(UNDEF: %lu)", (unsigned long) sysm
);
10429 func (stream
, dis_style_register
, "%cPSR_",
10430 (given
& 0x00400000) ? 'S' : 'C');
10432 if (given
& 0x80000)
10433 func (stream
, dis_style_register
, "f");
10434 if (given
& 0x40000)
10435 func (stream
, dis_style_register
, "s");
10436 if (given
& 0x20000)
10437 func (stream
, dis_style_register
, "x");
10438 if (given
& 0x10000)
10439 func (stream
, dis_style_register
, "c");
10444 if ((given
& 0xf0) == 0x60)
10446 switch (given
& 0xf)
10449 func (stream
, dis_style_sub_mnemonic
, "sy");
10452 func (stream
, dis_style_immediate
, "#%d",
10453 (int) given
& 0xf);
10459 const char * opt
= data_barrier_option (given
& 0xf);
10461 func (stream
, dis_style_sub_mnemonic
, "%s", opt
);
10463 func (stream
, dis_style_immediate
,
10464 "#%d", (int) given
& 0xf);
10468 case '0': case '1': case '2': case '3': case '4':
10469 case '5': case '6': case '7': case '8': case '9':
10472 unsigned long value
;
10474 c
= arm_decode_bitfield (c
, given
, &value
, &width
);
10480 is_unpredictable
= true;
10481 /* Fall through. */
10484 /* We want register + 1 when decoding T. */
10486 value
= (value
+ 1) & 0xf;
10490 /* Eat the 'u' character. */
10493 if (u_reg
== value
)
10494 is_unpredictable
= true;
10499 /* Eat the 'U' character. */
10502 if (U_reg
== value
)
10503 is_unpredictable
= true;
10506 func (stream
, dis_style_register
, "%s",
10507 arm_regnames
[value
]);
10510 func (stream
, base_style
, "%ld", value
);
10511 value_in_comment
= value
;
10514 func (stream
, dis_style_immediate
,
10516 value_in_comment
= value
* 8;
10519 func (stream
, dis_style_immediate
,
10521 value_in_comment
= value
+ 1;
10524 func (stream
, dis_style_immediate
,
10527 /* Some SWI instructions have special
10529 if ((given
& 0x0fffffff) == 0x0FF00000)
10530 func (stream
, dis_style_comment_start
,
10532 else if ((given
& 0x0fffffff) == 0x0FF00001)
10533 func (stream
, dis_style_comment_start
,
10537 func (stream
, dis_style_immediate
,
10538 "%01lx", value
& 0xf);
10539 value_in_comment
= value
;
10544 func (stream
, dis_style_text
, "%c", *c
);
10548 if (value
== ((1ul << width
) - 1))
10549 func (stream
, base_style
, "%c", *c
);
10552 func (stream
, base_style
, "%c",
10553 c
[(1 << width
) - (int) value
]);
10566 imm
= (given
& 0xf) | ((given
& 0xfff00) >> 4);
10567 func (stream
, dis_style_immediate
, "%d", imm
);
10568 value_in_comment
= imm
;
10573 /* LSB and WIDTH fields of BFI or BFC. The machine-
10574 language instruction encodes LSB and MSB. */
10576 long msb
= (given
& 0x001f0000) >> 16;
10577 long lsb
= (given
& 0x00000f80) >> 7;
10578 long w
= msb
- lsb
+ 1;
10582 func (stream
, dis_style_immediate
, "#%lu", lsb
);
10583 func (stream
, dis_style_text
, ", ");
10584 func (stream
, dis_style_immediate
, "#%lu", w
);
10587 func (stream
, dis_style_text
,
10588 "(invalid: %lu:%lu)", lsb
, msb
);
10593 /* Get the PSR/banked register name. */
10596 unsigned sysm
= (given
& 0x004f0000) >> 16;
10598 sysm
|= (given
& 0x300) >> 4;
10599 name
= banked_regname (sysm
);
10602 func (stream
, dis_style_register
, "%s", name
);
10604 func (stream
, dis_style_text
,
10605 "(UNDEF: %lu)", (unsigned long) sysm
);
10610 /* 16-bit unsigned immediate from a MOVT or MOVW
10611 instruction, encoded in bits 0:11 and 15:19. */
10613 long hi
= (given
& 0x000f0000) >> 4;
10614 long lo
= (given
& 0x00000fff);
10615 long imm16
= hi
| lo
;
10617 func (stream
, dis_style_immediate
, "#%lu", imm16
);
10618 value_in_comment
= imm16
;
10630 base_style
= dis_style_comment_start
;
10633 base_style
= dis_style_text
;
10635 func (stream
, base_style
, "%c", *c
);
10639 if (value_in_comment
> 32 || value_in_comment
< -16)
10640 func (stream
, dis_style_comment_start
, "\t@ 0x%lx",
10641 (value_in_comment
& 0xffffffffUL
));
10643 if (is_unpredictable
)
10644 func (stream
, dis_style_comment_start
, UNPREDICTABLE_INSTRUCTION
);
10649 func (stream
, dis_style_comment_start
, UNKNOWN_INSTRUCTION_32BIT
,
10654 /* Print one 16-bit Thumb instruction from PC on INFO->STREAM. */
10657 print_insn_thumb16 (bfd_vma pc
, struct disassemble_info
*info
, long given
)
10659 const struct opcode16
*insn
;
10660 void *stream
= info
->stream
;
10661 fprintf_styled_ftype func
= info
->fprintf_styled_func
;
10662 enum disassembler_style base_style
= dis_style_mnemonic
;
10663 enum disassembler_style old_base_style
= base_style
;
10665 for (insn
= thumb_opcodes
; insn
->assembler
; insn
++)
10666 if ((given
& insn
->mask
) == insn
->value
)
10668 signed long value_in_comment
= 0;
10669 const char *c
= insn
->assembler
;
10679 base_style
= dis_style_comment_start
;
10682 base_style
= dis_style_text
;
10684 func (stream
, base_style
, "%c", *c
);
10695 old_base_style
= base_style
;
10696 base_style
= decode_base_style (*c
);
10703 base_style
= old_base_style
;
10707 func (stream
, base_style
, "%%");
10712 func (stream
, dis_style_mnemonic
, "%s",
10713 arm_conditional
[IFTHEN_COND
]);
10718 func (stream
, dis_style_mnemonic
, "%s",
10719 arm_conditional
[IFTHEN_COND
]);
10721 func (stream
, dis_style_mnemonic
, "s");
10728 ifthen_next_state
= given
& 0xff;
10729 for (tmp
= given
<< 1; tmp
& 0xf; tmp
<<= 1)
10730 func (stream
, dis_style_mnemonic
,
10731 ((given
^ tmp
) & 0x10) ? "e" : "t");
10732 func (stream
, dis_style_text
, "\t");
10733 func (stream
, dis_style_sub_mnemonic
, "%s",
10734 arm_conditional
[(given
>> 4) & 0xf]);
10739 if (ifthen_next_state
)
10740 func (stream
, dis_style_comment_start
,
10741 "\t@ unpredictable branch in IT block\n");
10746 func (stream
, dis_style_comment_start
,
10747 "\t@ unpredictable <IT:%s>",
10748 arm_conditional
[IFTHEN_COND
]);
10755 reg
= (given
>> 3) & 0x7;
10756 if (given
& (1 << 6))
10759 func (stream
, dis_style_register
, "%s", arm_regnames
[reg
]);
10768 if (given
& (1 << 7))
10771 func (stream
, dis_style_register
, "%s", arm_regnames
[reg
]);
10776 if (given
& (1 << 8))
10778 /* Fall through. */
10780 if (*c
== 'O' && (given
& (1 << 8)))
10782 /* Fall through. */
10788 func (stream
, dis_style_text
, "{");
10790 /* It would be nice if we could spot
10791 ranges, and generate the rS-rE format: */
10792 for (reg
= 0; (reg
< 8); reg
++)
10793 if ((given
& (1 << reg
)) != 0)
10796 func (stream
, dis_style_text
, ", ");
10798 func (stream
, dis_style_register
, "%s",
10799 arm_regnames
[reg
]);
10805 func (stream
, dis_style_text
, ", ");
10807 func (stream
, dis_style_register
, "%s",
10808 arm_regnames
[14] /* "lr" */);
10814 func (stream
, dis_style_text
, ", ");
10815 func (stream
, dis_style_register
, "%s",
10816 arm_regnames
[15] /* "pc" */);
10819 func (stream
, dis_style_text
, "}");
10824 /* Print writeback indicator for a LDMIA. We are doing a
10825 writeback if the base register is not in the register
10827 if ((given
& (1 << ((given
& 0x0700) >> 8))) == 0)
10828 func (stream
, dis_style_text
, "!");
10832 /* Print ARM V6T2 CZB address: pc+4+6 bits. */
10834 bfd_vma address
= (pc
+ 4
10835 + ((given
& 0x00f8) >> 2)
10836 + ((given
& 0x0200) >> 3));
10837 info
->print_address_func (address
, info
);
10839 /* Fill in instruction information. */
10840 info
->insn_info_valid
= 1;
10841 info
->insn_type
= dis_branch
;
10842 info
->target
= address
;
10847 /* Right shift immediate -- bits 6..10; 1-31 print
10848 as themselves, 0 prints as 32. */
10850 long imm
= (given
& 0x07c0) >> 6;
10853 func (stream
, dis_style_immediate
, "#%ld", imm
);
10857 case '0': case '1': case '2': case '3': case '4':
10858 case '5': case '6': case '7': case '8': case '9':
10860 int bitstart
= *c
++ - '0';
10863 while (*c
>= '0' && *c
<= '9')
10864 bitstart
= (bitstart
* 10) + *c
++ - '0';
10873 while (*c
>= '0' && *c
<= '9')
10874 bitend
= (bitend
* 10) + *c
++ - '0';
10877 reg
= given
>> bitstart
;
10878 reg
&= ((bfd_vma
) 2 << (bitend
- bitstart
)) - 1;
10883 func (stream
, dis_style_register
, "%s",
10884 arm_regnames
[reg
]);
10888 func (stream
, dis_style_immediate
, "%ld",
10890 value_in_comment
= reg
;
10894 func (stream
, dis_style_immediate
, "%ld",
10895 (long) (reg
<< 1));
10896 value_in_comment
= reg
<< 1;
10900 func (stream
, dis_style_immediate
, "%ld",
10901 (long) (reg
<< 2));
10902 value_in_comment
= reg
<< 2;
10906 /* PC-relative address -- the bottom two
10907 bits of the address are dropped
10908 before the calculation. */
10909 info
->print_address_func
10910 (((pc
+ 4) & ~3) + (reg
<< 2), info
);
10911 value_in_comment
= 0;
10915 func (stream
, dis_style_immediate
, "0x%04lx",
10920 reg
= ((reg
^ (1 << bitend
)) - (1 << bitend
));
10921 bfd_vma target
= reg
* 2 + pc
+ 4;
10922 info
->print_address_func (target
, info
);
10923 value_in_comment
= 0;
10925 /* Fill in instruction information. */
10926 info
->insn_info_valid
= 1;
10927 info
->insn_type
= dis_branch
;
10928 info
->target
= target
;
10932 func (stream
, dis_style_mnemonic
, "%s",
10933 arm_conditional
[reg
]);
10944 if ((given
& (1 << bitstart
)) != 0)
10945 func (stream
, base_style
, "%c", *c
);
10950 if ((given
& (1 << bitstart
)) != 0)
10951 func (stream
, base_style
, "%c", *c
++);
10953 func (stream
, base_style
, "%c", *++c
);
10967 if (value_in_comment
> 32 || value_in_comment
< -16)
10968 func (stream
, dis_style_comment_start
,
10969 "\t@ 0x%lx", value_in_comment
);
10974 func (stream
, dis_style_comment_start
, UNKNOWN_INSTRUCTION_16BIT
,
10979 /* Return the name of an V7M special register. */
10981 static const char *
10982 psr_name (int regno
)
10986 case 0x0: return "APSR";
10987 case 0x1: return "IAPSR";
10988 case 0x2: return "EAPSR";
10989 case 0x3: return "PSR";
10990 case 0x5: return "IPSR";
10991 case 0x6: return "EPSR";
10992 case 0x7: return "IEPSR";
10993 case 0x8: return "MSP";
10994 case 0x9: return "PSP";
10995 case 0xa: return "MSPLIM";
10996 case 0xb: return "PSPLIM";
10997 case 0x10: return "PRIMASK";
10998 case 0x11: return "BASEPRI";
10999 case 0x12: return "BASEPRI_MAX";
11000 case 0x13: return "FAULTMASK";
11001 case 0x14: return "CONTROL";
11002 case 0x88: return "MSP_NS";
11003 case 0x89: return "PSP_NS";
11004 case 0x8a: return "MSPLIM_NS";
11005 case 0x8b: return "PSPLIM_NS";
11006 case 0x90: return "PRIMASK_NS";
11007 case 0x91: return "BASEPRI_NS";
11008 case 0x93: return "FAULTMASK_NS";
11009 case 0x94: return "CONTROL_NS";
11010 case 0x98: return "SP_NS";
11011 default: return "<unknown>";
11015 /* Print one 32-bit Thumb instruction from PC on INFO->STREAM. */
11018 print_insn_thumb32 (bfd_vma pc
, struct disassemble_info
*info
, long given
)
11020 const struct opcode32
*insn
;
11021 void *stream
= info
->stream
;
11022 fprintf_styled_ftype func
= info
->fprintf_styled_func
;
11023 bool is_mve
= is_mve_architecture (info
);
11024 enum disassembler_style base_style
= dis_style_mnemonic
;
11025 enum disassembler_style old_base_style
= base_style
;
11027 if (print_insn_coprocessor (pc
, info
, given
, true))
11030 if (!is_mve
&& print_insn_neon (info
, given
, true))
11033 if (is_mve
&& print_insn_mve (info
, given
))
11036 if (print_insn_cde (info
, given
, true))
11039 if (print_insn_generic_coprocessor (pc
, info
, given
, true))
11042 for (insn
= thumb32_opcodes
; insn
->assembler
; insn
++)
11043 if ((given
& insn
->mask
) == insn
->value
)
11045 bool is_clrm
= false;
11046 bool is_unpredictable
= false;
11047 signed long value_in_comment
= 0;
11048 const char *c
= insn
->assembler
;
11055 base_style
= dis_style_comment_start
;
11057 base_style
= dis_style_text
;
11058 func (stream
, base_style
, "%c", *c
);
11068 old_base_style
= base_style
;
11069 base_style
= decode_base_style (*c
);
11076 base_style
= old_base_style
;
11080 func (stream
, base_style
, "%%");
11085 func (stream
, dis_style_mnemonic
, "%s",
11086 arm_conditional
[IFTHEN_COND
]);
11090 if (ifthen_next_state
)
11091 func (stream
, dis_style_comment_start
,
11092 "\t@ unpredictable branch in IT block\n");
11097 func (stream
, dis_style_comment_start
,
11098 "\t@ unpredictable <IT:%s>",
11099 arm_conditional
[IFTHEN_COND
]);
11104 unsigned int imm12
= 0;
11106 imm12
|= (given
& 0x000000ffu
);
11107 imm12
|= (given
& 0x00007000u
) >> 4;
11108 imm12
|= (given
& 0x04000000u
) >> 15;
11109 func (stream
, dis_style_immediate
, "#%u", imm12
);
11110 value_in_comment
= imm12
;
11116 unsigned int bits
= 0, imm
, imm8
, mod
;
11118 bits
|= (given
& 0x000000ffu
);
11119 bits
|= (given
& 0x00007000u
) >> 4;
11120 bits
|= (given
& 0x04000000u
) >> 15;
11121 imm8
= (bits
& 0x0ff);
11122 mod
= (bits
& 0xf00) >> 8;
11125 case 0: imm
= imm8
; break;
11126 case 1: imm
= ((imm8
<< 16) | imm8
); break;
11127 case 2: imm
= ((imm8
<< 24) | (imm8
<< 8)); break;
11128 case 3: imm
= ((imm8
<< 24) | (imm8
<< 16) | (imm8
<< 8) | imm8
); break;
11130 mod
= (bits
& 0xf80) >> 7;
11131 imm8
= (bits
& 0x07f) | 0x80;
11132 imm
= (((imm8
<< (32 - mod
)) | (imm8
>> mod
)) & 0xffffffff);
11134 func (stream
, dis_style_immediate
, "#%u", imm
);
11135 value_in_comment
= imm
;
11141 unsigned int imm
= 0;
11143 imm
|= (given
& 0x000000ffu
);
11144 imm
|= (given
& 0x00007000u
) >> 4;
11145 imm
|= (given
& 0x04000000u
) >> 15;
11146 imm
|= (given
& 0x000f0000u
) >> 4;
11147 func (stream
, dis_style_immediate
, "#%u", imm
);
11148 value_in_comment
= imm
;
11154 unsigned int imm
= 0;
11156 imm
|= (given
& 0x000f0000u
) >> 16;
11157 imm
|= (given
& 0x00000ff0u
) >> 0;
11158 imm
|= (given
& 0x0000000fu
) << 12;
11159 func (stream
, dis_style_immediate
, "#%u", imm
);
11160 value_in_comment
= imm
;
11166 unsigned int imm
= 0;
11168 imm
|= (given
& 0x000f0000u
) >> 4;
11169 imm
|= (given
& 0x00000fffu
) >> 0;
11170 func (stream
, dis_style_immediate
, "#%u", imm
);
11171 value_in_comment
= imm
;
11177 unsigned int imm
= 0;
11179 imm
|= (given
& 0x00000fffu
);
11180 imm
|= (given
& 0x000f0000u
) >> 4;
11181 func (stream
, dis_style_immediate
, "#%u", imm
);
11182 value_in_comment
= imm
;
11188 unsigned int reg
= (given
& 0x0000000fu
);
11189 unsigned int stp
= (given
& 0x00000030u
) >> 4;
11190 unsigned int imm
= 0;
11191 imm
|= (given
& 0x000000c0u
) >> 6;
11192 imm
|= (given
& 0x00007000u
) >> 10;
11194 func (stream
, dis_style_register
, "%s", arm_regnames
[reg
]);
11200 func (stream
, dis_style_text
, ", ");
11201 func (stream
, dis_style_sub_mnemonic
, "lsl ");
11202 func (stream
, dis_style_immediate
, "#%u", imm
);
11209 func (stream
, dis_style_text
, ", ");
11210 func (stream
, dis_style_sub_mnemonic
, "lsr ");
11211 func (stream
, dis_style_immediate
, "#%u", imm
);
11217 func (stream
, dis_style_text
, ", ");
11218 func (stream
, dis_style_sub_mnemonic
, "asr ");
11219 func (stream
, dis_style_immediate
, "#%u", imm
);
11225 func (stream
, dis_style_text
, ", ");
11226 func (stream
, dis_style_sub_mnemonic
, "rrx");
11230 func (stream
, dis_style_text
, ", ");
11231 func (stream
, dis_style_sub_mnemonic
, "ror ");
11232 func (stream
, dis_style_immediate
, "#%u", imm
);
11240 unsigned int Rn
= (given
& 0x000f0000) >> 16;
11241 unsigned int U
= ! NEGATIVE_BIT_SET
;
11242 unsigned int op
= (given
& 0x00000f00) >> 8;
11243 unsigned int i12
= (given
& 0x00000fff);
11244 unsigned int i8
= (given
& 0x000000ff);
11245 bool writeback
= false, postind
= false;
11246 bfd_vma offset
= 0;
11248 func (stream
, dis_style_text
, "[");
11249 func (stream
, dis_style_register
, "%s", arm_regnames
[Rn
]);
11250 if (U
) /* 12-bit positive immediate offset. */
11254 value_in_comment
= offset
;
11256 else if (Rn
== 15) /* 12-bit negative immediate offset. */
11257 offset
= - (int) i12
;
11258 else if (op
== 0x0) /* Shifted register offset. */
11260 unsigned int Rm
= (i8
& 0x0f);
11261 unsigned int sh
= (i8
& 0x30) >> 4;
11263 func (stream
, dis_style_text
, ", ");
11264 func (stream
, dis_style_register
, "%s",
11268 func (stream
, dis_style_text
, ", ");
11269 func (stream
, dis_style_sub_mnemonic
, "lsl ");
11270 func (stream
, dis_style_immediate
, "#%u", sh
);
11272 func (stream
, dis_style_text
, "]");
11277 case 0xE: /* 8-bit positive immediate offset. */
11281 case 0xC: /* 8-bit negative immediate offset. */
11285 case 0xF: /* 8-bit + preindex with wb. */
11290 case 0xD: /* 8-bit - preindex with wb. */
11295 case 0xB: /* 8-bit + postindex. */
11300 case 0x9: /* 8-bit - postindex. */
11306 func (stream
, dis_style_text
, ", <undefined>]");
11312 func (stream
, dis_style_text
, "], ");
11313 func (stream
, dis_style_immediate
, "#%d", (int) offset
);
11319 func (stream
, dis_style_text
, ", ");
11320 func (stream
, dis_style_immediate
, "#%d",
11323 func (stream
, dis_style_text
, writeback
? "]!" : "]");
11328 func (stream
, dis_style_comment_start
, "\t@ ");
11329 info
->print_address_func (((pc
+ 4) & ~3) + offset
, info
);
11337 unsigned int U
= ! NEGATIVE_BIT_SET
;
11338 unsigned int W
= WRITEBACK_BIT_SET
;
11339 unsigned int Rn
= (given
& 0x000f0000) >> 16;
11340 unsigned int off
= (given
& 0x000000ff);
11342 func (stream
, dis_style_text
, "[");
11343 func (stream
, dis_style_register
, "%s", arm_regnames
[Rn
]);
11349 func (stream
, dis_style_text
, ", ");
11350 func (stream
, dis_style_immediate
, "#%c%u",
11351 U
? '+' : '-', off
* 4);
11352 value_in_comment
= off
* 4 * (U
? 1 : -1);
11354 func (stream
, dis_style_text
, "]");
11356 func (stream
, dis_style_text
, "!");
11360 func (stream
, dis_style_text
, "], ");
11363 func (stream
, dis_style_immediate
, "#%c%u",
11364 U
? '+' : '-', off
* 4);
11365 value_in_comment
= off
* 4 * (U
? 1 : -1);
11369 func (stream
, dis_style_text
, "{");
11370 func (stream
, dis_style_immediate
, "%u", off
);
11371 func (stream
, dis_style_text
, "}");
11372 value_in_comment
= off
;
11380 unsigned int Sbit
= (given
& 0x01000000) >> 24;
11381 unsigned int type
= (given
& 0x00600000) >> 21;
11386 func (stream
, dis_style_mnemonic
, Sbit
? "sb" : "b");
11389 func (stream
, dis_style_mnemonic
, Sbit
? "sh" : "h");
11393 func (stream
, dis_style_text
, "??");
11396 func (stream
, dis_style_text
, "??");
11404 /* Fall through. */
11410 func (stream
, dis_style_text
, "{");
11411 for (reg
= 0; reg
< 16; reg
++)
11412 if ((given
& (1 << reg
)) != 0)
11415 func (stream
, dis_style_text
, ", ");
11417 if (is_clrm
&& reg
== 13)
11418 func (stream
, dis_style_text
, "(invalid: %s)",
11419 arm_regnames
[reg
]);
11420 else if (is_clrm
&& reg
== 15)
11421 func (stream
, dis_style_register
, "%s", "APSR");
11423 func (stream
, dis_style_register
, "%s",
11424 arm_regnames
[reg
]);
11426 func (stream
, dis_style_text
, "}");
11432 unsigned int msb
= (given
& 0x0000001f);
11433 unsigned int lsb
= 0;
11435 lsb
|= (given
& 0x000000c0u
) >> 6;
11436 lsb
|= (given
& 0x00007000u
) >> 10;
11437 func (stream
, dis_style_immediate
, "#%u", lsb
);
11438 func (stream
, dis_style_text
, ", ");
11439 func (stream
, dis_style_immediate
, "#%u", msb
- lsb
+ 1);
11445 unsigned int width
= (given
& 0x0000001f) + 1;
11446 unsigned int lsb
= 0;
11448 lsb
|= (given
& 0x000000c0u
) >> 6;
11449 lsb
|= (given
& 0x00007000u
) >> 10;
11450 func (stream
, dis_style_immediate
, "#%u", lsb
);
11451 func (stream
, dis_style_text
, ", ");
11452 func (stream
, dis_style_immediate
, "#%u", width
);
11458 unsigned int boff
= (((given
& 0x07800000) >> 23) << 1);
11459 func (stream
, dis_style_immediate
, "%x", boff
);
11465 unsigned int immA
= (given
& 0x001f0000u
) >> 16;
11466 unsigned int immB
= (given
& 0x000007feu
) >> 1;
11467 unsigned int immC
= (given
& 0x00000800u
) >> 11;
11468 bfd_vma offset
= 0;
11470 offset
|= immA
<< 12;
11471 offset
|= immB
<< 2;
11472 offset
|= immC
<< 1;
11474 offset
= (offset
& 0x10000) ? offset
- (1 << 17) : offset
;
11476 info
->print_address_func (pc
+ 4 + offset
, info
);
11482 unsigned int immA
= (given
& 0x007f0000u
) >> 16;
11483 unsigned int immB
= (given
& 0x000007feu
) >> 1;
11484 unsigned int immC
= (given
& 0x00000800u
) >> 11;
11485 bfd_vma offset
= 0;
11487 offset
|= immA
<< 12;
11488 offset
|= immB
<< 2;
11489 offset
|= immC
<< 1;
11491 offset
= (offset
& 0x40000) ? offset
- (1 << 19) : offset
;
11493 info
->print_address_func (pc
+ 4 + offset
, info
);
11499 unsigned int immA
= (given
& 0x00010000u
) >> 16;
11500 unsigned int immB
= (given
& 0x000007feu
) >> 1;
11501 unsigned int immC
= (given
& 0x00000800u
) >> 11;
11502 bfd_vma offset
= 0;
11504 offset
|= immA
<< 12;
11505 offset
|= immB
<< 2;
11506 offset
|= immC
<< 1;
11508 offset
= (offset
& 0x1000) ? offset
- (1 << 13) : offset
;
11510 info
->print_address_func (pc
+ 4 + offset
, info
);
11512 unsigned int T
= (given
& 0x00020000u
) >> 17;
11513 unsigned int endoffset
= (((given
& 0x07800000) >> 23) << 1);
11514 unsigned int boffset
= (T
== 1) ? 4 : 2;
11515 func (stream
, dis_style_text
, ", ");
11516 func (stream
, dis_style_immediate
, "%x",
11517 endoffset
+ boffset
);
11523 unsigned int immh
= (given
& 0x000007feu
) >> 1;
11524 unsigned int imml
= (given
& 0x00000800u
) >> 11;
11527 imm32
|= immh
<< 2;
11528 imm32
|= imml
<< 1;
11530 info
->print_address_func (pc
+ 4 + imm32
, info
);
11536 unsigned int immh
= (given
& 0x000007feu
) >> 1;
11537 unsigned int imml
= (given
& 0x00000800u
) >> 11;
11540 imm32
|= immh
<< 2;
11541 imm32
|= imml
<< 1;
11543 info
->print_address_func (pc
+ 4 - imm32
, info
);
11549 unsigned int S
= (given
& 0x04000000u
) >> 26;
11550 unsigned int J1
= (given
& 0x00002000u
) >> 13;
11551 unsigned int J2
= (given
& 0x00000800u
) >> 11;
11552 bfd_vma offset
= 0;
11554 offset
|= !S
<< 20;
11555 offset
|= J2
<< 19;
11556 offset
|= J1
<< 18;
11557 offset
|= (given
& 0x003f0000) >> 4;
11558 offset
|= (given
& 0x000007ff) << 1;
11559 offset
-= (1 << 20);
11561 bfd_vma target
= pc
+ 4 + offset
;
11562 info
->print_address_func (target
, info
);
11564 /* Fill in instruction information. */
11565 info
->insn_info_valid
= 1;
11566 info
->insn_type
= dis_branch
;
11567 info
->target
= target
;
11573 unsigned int S
= (given
& 0x04000000u
) >> 26;
11574 unsigned int I1
= (given
& 0x00002000u
) >> 13;
11575 unsigned int I2
= (given
& 0x00000800u
) >> 11;
11576 bfd_vma offset
= 0;
11578 offset
|= !S
<< 24;
11579 offset
|= !(I1
^ S
) << 23;
11580 offset
|= !(I2
^ S
) << 22;
11581 offset
|= (given
& 0x03ff0000u
) >> 4;
11582 offset
|= (given
& 0x000007ffu
) << 1;
11583 offset
-= (1 << 24);
11586 /* BLX target addresses are always word aligned. */
11587 if ((given
& 0x00001000u
) == 0)
11590 info
->print_address_func (offset
, info
);
11592 /* Fill in instruction information. */
11593 info
->insn_info_valid
= 1;
11594 info
->insn_type
= dis_branch
;
11595 info
->target
= offset
;
11601 unsigned int shift
= 0;
11603 shift
|= (given
& 0x000000c0u
) >> 6;
11604 shift
|= (given
& 0x00007000u
) >> 10;
11605 if (WRITEBACK_BIT_SET
)
11607 func (stream
, dis_style_text
, ", ");
11608 func (stream
, dis_style_sub_mnemonic
, "asr ");
11609 func (stream
, dis_style_immediate
, "#%u", shift
);
11613 func (stream
, dis_style_text
, ", ");
11614 func (stream
, dis_style_sub_mnemonic
, "lsl ");
11615 func (stream
, dis_style_immediate
, "#%u", shift
);
11617 /* else print nothing - lsl #0 */
11623 unsigned int rot
= (given
& 0x00000030) >> 4;
11627 func (stream
, dis_style_text
, ", ");
11628 func (stream
, dis_style_sub_mnemonic
, "ror ");
11629 func (stream
, dis_style_immediate
, "#%u", rot
* 8);
11635 if ((given
& 0xf0) == 0x60)
11637 switch (given
& 0xf)
11640 func (stream
, dis_style_sub_mnemonic
, "sy");
11643 func (stream
, dis_style_immediate
, "#%d",
11644 (int) given
& 0xf);
11650 const char * opt
= data_barrier_option (given
& 0xf);
11652 func (stream
, dis_style_sub_mnemonic
, "%s", opt
);
11654 func (stream
, dis_style_immediate
, "#%d",
11655 (int) given
& 0xf);
11660 if ((given
& 0xff) == 0)
11662 func (stream
, dis_style_register
, "%cPSR_",
11663 (given
& 0x100000) ? 'S' : 'C');
11666 func (stream
, dis_style_register
, "f");
11668 func (stream
, dis_style_register
, "s");
11670 func (stream
, dis_style_register
, "x");
11672 func (stream
, dis_style_register
, "c");
11674 else if ((given
& 0x20) == 0x20)
11677 unsigned sysm
= (given
& 0xf00) >> 8;
11679 sysm
|= (given
& 0x30);
11680 sysm
|= (given
& 0x00100000) >> 14;
11681 name
= banked_regname (sysm
);
11684 func (stream
, dis_style_register
, "%s", name
);
11686 func (stream
, dis_style_text
,
11687 "(UNDEF: %lu)", (unsigned long) sysm
);
11691 func (stream
, dis_style_register
, "%s",
11692 psr_name (given
& 0xff));
11697 if (((given
& 0xff) == 0)
11698 || ((given
& 0x20) == 0x20))
11701 unsigned sm
= (given
& 0xf0000) >> 16;
11703 sm
|= (given
& 0x30);
11704 sm
|= (given
& 0x00100000) >> 14;
11705 name
= banked_regname (sm
);
11708 func (stream
, dis_style_register
, "%s", name
);
11710 func (stream
, dis_style_text
,
11711 "(UNDEF: %lu)", (unsigned long) sm
);
11714 func (stream
, dis_style_register
, "%s",
11715 psr_name (given
& 0xff));
11718 case '0': case '1': case '2': case '3': case '4':
11719 case '5': case '6': case '7': case '8': case '9':
11724 c
= arm_decode_bitfield (c
, given
, &val
, &width
);
11730 func (stream
, dis_style_mnemonic
, "%s",
11731 mve_vec_sizename
[val
]);
11733 func (stream
, dis_style_text
, "<undef size>");
11737 func (stream
, base_style
, "%lu", val
);
11738 value_in_comment
= val
;
11742 func (stream
, dis_style_immediate
, "%lu", val
+ 1);
11743 value_in_comment
= val
+ 1;
11747 func (stream
, dis_style_immediate
, "%lu", val
* 4);
11748 value_in_comment
= val
* 4;
11753 is_unpredictable
= true;
11754 /* Fall through. */
11757 is_unpredictable
= true;
11758 /* Fall through. */
11760 func (stream
, dis_style_register
, "%s",
11761 arm_regnames
[val
]);
11765 func (stream
, base_style
, "%s", arm_conditional
[val
]);
11770 if (val
== ((1ul << width
) - 1))
11771 func (stream
, base_style
, "%c", *c
);
11777 func (stream
, dis_style_immediate
, "%c", *c
);
11781 func (stream
, dis_style_mnemonic
, "%c",
11782 c
[(1 << width
) - (int) val
]);
11787 func (stream
, dis_style_immediate
, "0x%lx",
11788 val
& 0xffffffffUL
);
11798 /* PR binutils/12534
11799 If we have a PC relative offset in an LDRD or STRD
11800 instructions then display the decoded address. */
11801 if (((given
>> 16) & 0xf) == 0xf)
11803 bfd_vma offset
= (given
& 0xff) * 4;
11805 if ((given
& (1 << 23)) == 0)
11807 func (stream
, dis_style_comment_start
, "\t@ ");
11808 info
->print_address_func ((pc
& ~3) + 4 + offset
, info
);
11817 if (value_in_comment
> 32 || value_in_comment
< -16)
11818 func (stream
, dis_style_comment_start
, "\t@ 0x%lx",
11821 if (is_unpredictable
)
11822 func (stream
, dis_style_comment_start
, UNPREDICTABLE_INSTRUCTION
);
11828 func (stream
, dis_style_comment_start
, UNKNOWN_INSTRUCTION_32BIT
,
11833 /* Print data bytes on INFO->STREAM. */
11836 print_insn_data (bfd_vma pc ATTRIBUTE_UNUSED
,
11837 struct disassemble_info
*info
,
11840 fprintf_styled_ftype func
= info
->fprintf_styled_func
;
11842 switch (info
->bytes_per_chunk
)
11845 func (info
->stream
, dis_style_assembler_directive
, ".byte");
11846 func (info
->stream
, dis_style_text
, "\t");
11847 func (info
->stream
, dis_style_immediate
, "0x%02lx", given
);
11850 func (info
->stream
, dis_style_assembler_directive
, ".short");
11851 func (info
->stream
, dis_style_text
, "\t");
11852 func (info
->stream
, dis_style_immediate
, "0x%04lx", given
);
11855 func (info
->stream
, dis_style_assembler_directive
, ".word");
11856 func (info
->stream
, dis_style_text
, "\t");
11857 func (info
->stream
, dis_style_immediate
, "0x%08lx", given
);
11864 /* Disallow mapping symbols ($a, $b, $d, $t etc) from
11865 being displayed in symbol relative addresses.
11867 Also disallow private symbol, with __tagsym$$ prefix,
11868 from ARM RVCT toolchain being displayed. */
11871 arm_symbol_is_valid (asymbol
* sym
,
11872 struct disassemble_info
* info ATTRIBUTE_UNUSED
)
11879 name
= bfd_asymbol_name (sym
);
11881 return (name
&& *name
!= '$' && strncmp (name
, "__tagsym$$", 10));
11884 /* Parse the string of disassembler options. */
11887 parse_arm_disassembler_options (const char *options
)
11891 force_thumb
= false;
11892 FOR_EACH_DISASSEMBLER_OPTION (opt
, options
)
11894 if (startswith (opt
, "reg-names-"))
11897 for (i
= 0; i
< NUM_ARM_OPTIONS
; i
++)
11898 if (disassembler_options_cmp (opt
, regnames
[i
].name
) == 0)
11900 regname_selected
= i
;
11904 if (i
>= NUM_ARM_OPTIONS
)
11905 /* xgettext: c-format */
11906 opcodes_error_handler (_("unrecognised register name set: %s"),
11909 else if (startswith (opt
, "force-thumb"))
11911 else if (startswith (opt
, "no-force-thumb"))
11913 else if (startswith (opt
, "coproc"))
11915 const char *procptr
= opt
+ sizeof ("coproc") - 1;
11917 uint8_t coproc_number
= strtol (procptr
, &endptr
, 10);
11918 if (endptr
!= procptr
+ 1 || coproc_number
> 7)
11920 opcodes_error_handler (_("cde coprocessor not between 0-7: %s"),
11924 if (*endptr
!= '=')
11926 opcodes_error_handler (_("coproc must have an argument: %s"),
11931 if (startswith (endptr
, "generic"))
11932 cde_coprocs
&= ~(1 << coproc_number
);
11933 else if (startswith (endptr
, "cde")
11934 || startswith (endptr
, "CDE"))
11935 cde_coprocs
|= (1 << coproc_number
);
11938 opcodes_error_handler (
11939 _("coprocN argument takes options \"generic\","
11940 " \"cde\", or \"CDE\": %s"), opt
);
11944 /* xgettext: c-format */
11945 opcodes_error_handler (_("unrecognised disassembler option: %s"), opt
);
11952 mapping_symbol_for_insn (bfd_vma pc
, struct disassemble_info
*info
,
11953 enum map_type
*map_symbol
);
11955 /* Search back through the insn stream to determine if this instruction is
11956 conditionally executed. */
11959 find_ifthen_state (bfd_vma pc
,
11960 struct disassemble_info
*info
,
11963 unsigned char b
[2];
11966 /* COUNT is twice the number of instructions seen. It will be odd if we
11967 just crossed an instruction boundary. */
11970 unsigned int seen_it
;
11973 ifthen_address
= pc
;
11980 /* Scan backwards looking for IT instructions, keeping track of where
11981 instruction boundaries are. We don't know if something is actually an
11982 IT instruction until we find a definite instruction boundary. */
11985 if (addr
== 0 || info
->symbol_at_address_func (addr
, info
))
11987 /* A symbol must be on an instruction boundary, and will not
11988 be within an IT block. */
11989 if (seen_it
&& (count
& 1))
11995 status
= info
->read_memory_func (addr
, (bfd_byte
*) b
, 2, info
);
12000 insn
= (b
[0]) | (b
[1] << 8);
12002 insn
= (b
[1]) | (b
[0] << 8);
12005 if ((insn
& 0xf800) < 0xe800)
12007 /* Addr + 2 is an instruction boundary. See if this matches
12008 the expected boundary based on the position of the last
12015 if ((insn
& 0xff00) == 0xbf00 && (insn
& 0xf) != 0)
12017 enum map_type type
= MAP_ARM
;
12018 bool found
= mapping_symbol_for_insn (addr
, info
, &type
);
12020 if (!found
|| (found
&& type
== MAP_THUMB
))
12022 /* This could be an IT instruction. */
12024 it_count
= count
>> 1;
12027 if ((insn
& 0xf800) >= 0xe800)
12030 count
= (count
+ 2) | 1;
12031 /* IT blocks contain at most 4 instructions. */
12032 if (count
>= 8 && !seen_it
)
12035 /* We found an IT instruction. */
12036 ifthen_state
= (seen_it
& 0xe0) | ((seen_it
<< it_count
) & 0x1f);
12037 if ((ifthen_state
& 0xf) == 0)
12041 /* Returns nonzero and sets *MAP_TYPE if the N'th symbol is a
12045 is_mapping_symbol (struct disassemble_info
*info
,
12047 enum map_type
*map_type
)
12049 const char *name
= bfd_asymbol_name (info
->symtab
[n
]);
12052 && (name
[1] == 'a' || name
[1] == 't' || name
[1] == 'd')
12053 && (name
[2] == 0 || name
[2] == '.'))
12055 *map_type
= ((name
[1] == 'a') ? MAP_ARM
12056 : (name
[1] == 't') ? MAP_THUMB
12064 /* Try to infer the code type (ARM or Thumb) from a mapping symbol.
12065 Returns nonzero if *MAP_TYPE was set. */
12068 get_map_sym_type (struct disassemble_info
*info
,
12070 enum map_type
*map_type
)
12072 /* If the symbol is in a different section, ignore it. */
12073 if (info
->section
!= NULL
&& info
->section
!= info
->symtab
[n
]->section
)
12076 return is_mapping_symbol (info
, n
, map_type
);
12079 /* Try to infer the code type (ARM or Thumb) from a non-mapping symbol.
12080 Returns nonzero if *MAP_TYPE was set. */
12083 get_sym_code_type (struct disassemble_info
*info
,
12085 enum map_type
*map_type
)
12087 elf_symbol_type
*es
;
12091 /* If the symbol is in a different section, ignore it. */
12092 if (info
->section
!= NULL
&& info
->section
!= info
->symtab
[n
]->section
)
12095 /* PR 30230: Reject non-ELF symbols, eg synthetic ones. */
12096 sym
= info
->symtab
[n
];
12097 if (bfd_asymbol_flavour (sym
) != bfd_target_elf_flavour
)
12100 es
= (elf_symbol_type
*) sym
;
12101 type
= ELF_ST_TYPE (es
->internal_elf_sym
.st_info
);
12103 /* If the symbol has function type then use that. */
12104 if (type
== STT_FUNC
|| type
== STT_GNU_IFUNC
)
12106 if (ARM_GET_SYM_BRANCH_TYPE (es
->internal_elf_sym
.st_target_internal
)
12107 == ST_BRANCH_TO_THUMB
)
12108 *map_type
= MAP_THUMB
;
12110 *map_type
= MAP_ARM
;
12117 /* Search the mapping symbol state for instruction at pc. This is only
12118 applicable for elf target.
12120 There is an assumption Here, info->private_data contains the correct AND
12121 up-to-date information about current scan process. The information will be
12122 used to speed this search process.
12124 Return TRUE if the mapping state can be determined, and map_symbol
12125 will be updated accordingly. Otherwise, return FALSE. */
12128 mapping_symbol_for_insn (bfd_vma pc
, struct disassemble_info
*info
,
12129 enum map_type
*map_symbol
)
12131 bfd_vma addr
, section_vma
= 0;
12132 int n
, last_sym
= -1;
12133 bool found
= false;
12134 bool can_use_search_opt_p
= false;
12136 /* Sanity check. */
12140 /* Default to DATA. A text section is required by the ABI to contain an
12141 INSN mapping symbol at the start. A data section has no such
12142 requirement, hence if no mapping symbol is found the section must
12143 contain only data. This however isn't very useful if the user has
12144 fully stripped the binaries. If this is the case use the section
12145 attributes to determine the default. If we have no section default to
12146 INSN as well, as we may be disassembling some raw bytes on a baremetal
12147 HEX file or similar. */
12148 enum map_type type
= MAP_DATA
;
12149 if ((info
->section
&& info
->section
->flags
& SEC_CODE
) || !info
->section
)
12151 struct arm_private_data
*private_data
;
12153 if (info
->private_data
== NULL
|| info
->symtab
== NULL
12154 || info
->symtab_size
== 0
12155 || bfd_asymbol_flavour (*info
->symtab
) != bfd_target_elf_flavour
)
12158 private_data
= info
->private_data
;
12160 /* First, look for mapping symbols. */
12161 if (pc
<= private_data
->last_mapping_addr
)
12162 private_data
->last_mapping_sym
= -1;
12164 /* Start scanning at the start of the function, or wherever
12165 we finished last time. */
12166 n
= info
->symtab_pos
+ 1;
12168 /* If the last stop offset is different from the current one it means we
12169 are disassembling a different glob of bytes. As such the optimization
12170 would not be safe and we should start over. */
12171 can_use_search_opt_p
12172 = (private_data
->last_mapping_sym
>= 0
12173 && info
->stop_offset
== private_data
->last_stop_offset
);
12175 if (n
>= private_data
->last_mapping_sym
&& can_use_search_opt_p
)
12176 n
= private_data
->last_mapping_sym
;
12178 /* Look down while we haven't passed the location being disassembled.
12179 The reason for this is that there's no defined order between a symbol
12180 and an mapping symbol that may be at the same address. We may have to
12181 look at least one position ahead. */
12182 for (; n
< info
->symtab_size
; n
++)
12184 addr
= bfd_asymbol_value (info
->symtab
[n
]);
12187 if (get_map_sym_type (info
, n
, &type
))
12196 n
= info
->symtab_pos
;
12197 if (n
>= private_data
->last_mapping_sym
&& can_use_search_opt_p
)
12198 n
= private_data
->last_mapping_sym
;
12200 /* No mapping symbol found at this address. Look backwards
12201 for a preceeding one, but don't go pass the section start
12202 otherwise a data section with no mapping symbol can pick up
12203 a text mapping symbol of a preceeding section. The documentation
12204 says section can be NULL, in which case we will seek up all the
12207 section_vma
= info
->section
->vma
;
12209 for (; n
>= 0; n
--)
12211 addr
= bfd_asymbol_value (info
->symtab
[n
]);
12212 if (addr
< section_vma
)
12215 if (get_map_sym_type (info
, n
, &type
))
12224 /* If no mapping symbol was found, try looking up without a mapping
12225 symbol. This is done by walking up from the current PC to the nearest
12226 symbol. We don't actually have to loop here since symtab_pos will
12227 contain the nearest symbol already. */
12230 n
= info
->symtab_pos
;
12231 if (n
>= 0 && get_sym_code_type (info
, n
, &type
))
12238 private_data
->last_mapping_sym
= last_sym
;
12239 private_data
->last_type
= type
;
12240 private_data
->last_stop_offset
= info
->stop_offset
;
12242 *map_symbol
= type
;
12246 /* Given a bfd_mach_arm_XXX value, this function fills in the fields
12247 of the supplied arm_feature_set structure with bitmasks indicating
12248 the supported base architectures and coprocessor extensions.
12250 FIXME: This could more efficiently implemented as a constant array,
12251 although it would also be less robust. */
12254 select_arm_features (unsigned long mach
,
12255 arm_feature_set
* features
)
12257 arm_feature_set arch_fset
;
12258 const arm_feature_set fpu_any
= FPU_ANY
;
12260 #undef ARM_SET_FEATURES
12261 #define ARM_SET_FEATURES(FSET) \
12263 const arm_feature_set fset = FSET; \
12264 arch_fset = fset; \
12267 /* When several architecture versions share the same bfd_mach_arm_XXX value
12268 the most featureful is chosen. */
12271 case bfd_mach_arm_2
: ARM_SET_FEATURES (ARM_ARCH_V2
); break;
12272 case bfd_mach_arm_2a
: ARM_SET_FEATURES (ARM_ARCH_V2S
); break;
12273 case bfd_mach_arm_3
: ARM_SET_FEATURES (ARM_ARCH_V3
); break;
12274 case bfd_mach_arm_3M
: ARM_SET_FEATURES (ARM_ARCH_V3M
); break;
12275 case bfd_mach_arm_4
: ARM_SET_FEATURES (ARM_ARCH_V4
); break;
12276 case bfd_mach_arm_ep9312
:
12277 case bfd_mach_arm_4T
: ARM_SET_FEATURES (ARM_ARCH_V4T
); break;
12278 case bfd_mach_arm_5
: ARM_SET_FEATURES (ARM_ARCH_V5
); break;
12279 case bfd_mach_arm_5T
: ARM_SET_FEATURES (ARM_ARCH_V5T
); break;
12280 case bfd_mach_arm_5TE
: ARM_SET_FEATURES (ARM_ARCH_V5TE
); break;
12281 case bfd_mach_arm_XScale
: ARM_SET_FEATURES (ARM_ARCH_XSCALE
); break;
12282 case bfd_mach_arm_iWMMXt
: ARM_SET_FEATURES (ARM_ARCH_IWMMXT
); break;
12283 case bfd_mach_arm_iWMMXt2
: ARM_SET_FEATURES (ARM_ARCH_IWMMXT2
); break;
12284 case bfd_mach_arm_5TEJ
: ARM_SET_FEATURES (ARM_ARCH_V5TEJ
); break;
12285 case bfd_mach_arm_6
: ARM_SET_FEATURES (ARM_ARCH_V6
); break;
12286 case bfd_mach_arm_6KZ
: ARM_SET_FEATURES (ARM_ARCH_V6KZ
); break;
12287 case bfd_mach_arm_6T2
: ARM_SET_FEATURES (ARM_ARCH_V6KZT2
); break;
12288 case bfd_mach_arm_6K
: ARM_SET_FEATURES (ARM_ARCH_V6K
); break;
12289 case bfd_mach_arm_7
: ARM_SET_FEATURES (ARM_ARCH_V7VE
); break;
12290 case bfd_mach_arm_6M
: ARM_SET_FEATURES (ARM_ARCH_V6M
); break;
12291 case bfd_mach_arm_6SM
: ARM_SET_FEATURES (ARM_ARCH_V6SM
); break;
12292 case bfd_mach_arm_7EM
: ARM_SET_FEATURES (ARM_ARCH_V7EM
); break;
12293 case bfd_mach_arm_8
:
12295 /* Add bits for extensions that Armv8.6-A recognizes. */
12296 arm_feature_set armv8_6_ext_fset
12297 = ARM_FEATURE_CORE_HIGH (ARM_EXT2_FP16_INST
);
12298 ARM_SET_FEATURES (ARM_ARCH_V8_6A
);
12299 ARM_MERGE_FEATURE_SETS (arch_fset
, arch_fset
, armv8_6_ext_fset
);
12302 case bfd_mach_arm_8R
: ARM_SET_FEATURES (ARM_ARCH_V8R_CRC
); break;
12303 case bfd_mach_arm_8M_BASE
: ARM_SET_FEATURES (ARM_ARCH_V8M_BASE
); break;
12304 case bfd_mach_arm_8M_MAIN
: ARM_SET_FEATURES (ARM_ARCH_V8M_MAIN
); break;
12305 case bfd_mach_arm_8_1M_MAIN
:
12306 ARM_SET_FEATURES (ARM_ARCH_V8_1M_MAIN
);
12307 arm_feature_set mve_all
12308 = ARM_FEATURE_CORE_HIGH (ARM_EXT2_MVE
| ARM_EXT2_MVE_FP
);
12309 ARM_MERGE_FEATURE_SETS (arch_fset
, arch_fset
, mve_all
);
12312 case bfd_mach_arm_9
: ARM_SET_FEATURES (ARM_ARCH_V9A
); break;
12313 /* If the machine type is unknown allow all architecture types and all
12314 extensions, with the exception of MVE as that clashes with NEON. */
12315 case bfd_mach_arm_unknown
:
12316 ARM_SET_FEATURES (ARM_ARCH_UNKNOWN
);
12321 #undef ARM_SET_FEATURES
12323 /* None of the feature bits related to -mfpu have an impact on Tag_CPU_arch
12324 and thus on bfd_mach_arm_XXX value. Therefore for a given
12325 bfd_mach_arm_XXX value all coprocessor feature bits should be allowed. */
12326 ARM_MERGE_FEATURE_SETS (*features
, arch_fset
, fpu_any
);
12330 /* NOTE: There are no checks in these routines that
12331 the relevant number of data bytes exist. */
12334 print_insn (bfd_vma pc
, struct disassemble_info
*info
, bool little
)
12336 unsigned char b
[4];
12337 unsigned long given
;
12339 int is_thumb
= false;
12340 int is_data
= false;
12342 unsigned int size
= 4;
12343 void (*printer
) (bfd_vma
, struct disassemble_info
*, long);
12344 bool found
= false;
12345 struct arm_private_data
*private_data
;
12347 /* Clear instruction information field. */
12348 info
->insn_info_valid
= 0;
12349 info
->branch_delay_insns
= 0;
12350 info
->data_size
= 0;
12351 info
->insn_type
= dis_noninsn
;
12355 if (info
->disassembler_options
)
12357 parse_arm_disassembler_options (info
->disassembler_options
);
12359 /* To avoid repeated parsing of these options, we remove them here. */
12360 info
->disassembler_options
= NULL
;
12363 /* PR 10288: Control which instructions will be disassembled. */
12364 if (info
->private_data
== NULL
)
12366 static struct arm_private_data
private;
12368 if (info
->flavour
!= bfd_target_elf_flavour
12369 && (info
->flags
& USER_SPECIFIED_MACHINE_TYPE
) == 0)
12370 /* If the user did not use the -m command line switch then default to
12371 disassembling all types of ARM instruction.
12373 If this is an arm elf target, build attributes will be used to
12374 determine info->mach, which enable us to be more accurate when
12375 disassembling since we know what the target architecture version is.
12376 For any other target see the comment below:
12378 The info->mach value has to be ignored as this will be based on
12379 the default archictecture for the target and/or hints in the notes
12380 section, but it will never be greater than the current largest arm
12381 machine value (iWMMXt2), which is only equivalent to the V5TE
12382 architecture. ARM architectures have advanced beyond the machine
12383 value encoding, and these newer architectures would be ignored if
12384 the machine value was used.
12386 Ie the -m switch is used to restrict which instructions will be
12387 disassembled. If it is necessary to use the -m switch to tell
12388 objdump that an ARM binary is being disassembled, eg because the
12389 input is a raw binary file, but it is also desired to disassemble
12390 all ARM instructions then use "-marm". This will select the
12391 "unknown" arm architecture which is compatible with any ARM
12393 info
->mach
= bfd_mach_arm_unknown
;
12395 /* Compute the architecture bitmask from the machine number.
12396 Note: This assumes that the machine number will not change
12397 during disassembly.... */
12398 select_arm_features (info
->mach
, & private.features
);
12400 private.last_mapping_sym
= -1;
12401 private.last_mapping_addr
= 0;
12402 private.last_stop_offset
= 0;
12404 info
->private_data
= & private;
12407 private_data
= info
->private_data
;
12409 /* Decide if our code is going to be little-endian, despite what the
12410 function argument might say. */
12411 little_code
= ((info
->endian_code
== BFD_ENDIAN_LITTLE
) || little
);
12413 /* For ELF, consult the symbol table to determine what kind of code
12414 or data we have. */
12415 if (info
->symtab_size
!= 0
12416 && bfd_asymbol_flavour (*info
->symtab
) == bfd_target_elf_flavour
)
12421 enum map_type type
= MAP_ARM
;
12423 found
= mapping_symbol_for_insn (pc
, info
, &type
);
12424 last_sym
= private_data
->last_mapping_sym
;
12426 is_thumb
= (private_data
->last_type
== MAP_THUMB
);
12427 is_data
= (private_data
->last_type
== MAP_DATA
);
12429 /* Look a little bit ahead to see if we should print out
12430 two or four bytes of data. If there's a symbol,
12431 mapping or otherwise, after two bytes then don't
12435 size
= 4 - (pc
& 3);
12436 for (n
= last_sym
+ 1; n
< info
->symtab_size
; n
++)
12438 addr
= bfd_asymbol_value (info
->symtab
[n
]);
12440 && (info
->section
== NULL
12441 || info
->section
== info
->symtab
[n
]->section
))
12443 if (addr
- pc
< size
)
12448 /* If the next symbol is after three bytes, we need to
12449 print only part of the data, so that we can use either
12450 .byte or .short. */
12452 size
= (pc
& 1) ? 1 : 2;
12456 if (info
->symbols
!= NULL
)
12458 if (bfd_asymbol_flavour (*info
->symbols
) == bfd_target_coff_flavour
)
12460 coff_symbol_type
* cs
;
12462 cs
= coffsymbol (*info
->symbols
);
12463 is_thumb
= ( cs
->native
->u
.syment
.n_sclass
== C_THUMBEXT
12464 || cs
->native
->u
.syment
.n_sclass
== C_THUMBSTAT
12465 || cs
->native
->u
.syment
.n_sclass
== C_THUMBLABEL
12466 || cs
->native
->u
.syment
.n_sclass
== C_THUMBEXTFUNC
12467 || cs
->native
->u
.syment
.n_sclass
== C_THUMBSTATFUNC
);
12469 else if (bfd_asymbol_flavour (*info
->symbols
) == bfd_target_elf_flavour
12472 /* If no mapping symbol has been found then fall back to the type
12473 of the function symbol. */
12474 elf_symbol_type
* es
;
12477 es
= *(elf_symbol_type
**)(info
->symbols
);
12478 type
= ELF_ST_TYPE (es
->internal_elf_sym
.st_info
);
12481 ((ARM_GET_SYM_BRANCH_TYPE (es
->internal_elf_sym
.st_target_internal
)
12482 == ST_BRANCH_TO_THUMB
) || type
== STT_ARM_16BIT
);
12484 else if (bfd_asymbol_flavour (*info
->symbols
)
12485 == bfd_target_mach_o_flavour
)
12487 bfd_mach_o_asymbol
*asym
= (bfd_mach_o_asymbol
*)*info
->symbols
;
12489 is_thumb
= (asym
->n_desc
& BFD_MACH_O_N_ARM_THUMB_DEF
);
12497 info
->display_endian
= little
? BFD_ENDIAN_LITTLE
: BFD_ENDIAN_BIG
;
12499 info
->display_endian
= little_code
? BFD_ENDIAN_LITTLE
: BFD_ENDIAN_BIG
;
12501 info
->bytes_per_line
= 4;
12503 /* PR 10263: Disassemble data if requested to do so by the user. */
12504 if (is_data
&& ((info
->flags
& DISASSEMBLE_DATA
) == 0))
12508 /* Size was already set above. */
12509 info
->bytes_per_chunk
= size
;
12510 printer
= print_insn_data
;
12512 status
= info
->read_memory_func (pc
, (bfd_byte
*) b
, size
, info
);
12515 for (i
= size
- 1; i
>= 0; i
--)
12516 given
= b
[i
] | (given
<< 8);
12518 for (i
= 0; i
< (int) size
; i
++)
12519 given
= b
[i
] | (given
<< 8);
12521 else if (!is_thumb
)
12523 /* In ARM mode endianness is a straightforward issue: the instruction
12524 is four bytes long and is either ordered 0123 or 3210. */
12525 printer
= print_insn_arm
;
12526 info
->bytes_per_chunk
= 4;
12529 status
= info
->read_memory_func (pc
, (bfd_byte
*) b
, 4, info
);
12531 given
= (b
[0]) | (b
[1] << 8) | (b
[2] << 16) | ((unsigned) b
[3] << 24);
12533 given
= (b
[3]) | (b
[2] << 8) | (b
[1] << 16) | ((unsigned) b
[0] << 24);
12537 /* In Thumb mode we have the additional wrinkle of two
12538 instruction lengths. Fortunately, the bits that determine
12539 the length of the current instruction are always to be found
12540 in the first two bytes. */
12541 printer
= print_insn_thumb16
;
12542 info
->bytes_per_chunk
= 2;
12545 status
= info
->read_memory_func (pc
, (bfd_byte
*) b
, 2, info
);
12547 given
= (b
[0]) | (b
[1] << 8);
12549 given
= (b
[1]) | (b
[0] << 8);
12553 /* These bit patterns signal a four-byte Thumb
12555 if ((given
& 0xF800) == 0xF800
12556 || (given
& 0xF800) == 0xF000
12557 || (given
& 0xF800) == 0xE800)
12559 status
= info
->read_memory_func (pc
+ 2, (bfd_byte
*) b
, 2, info
);
12561 given
= (b
[0]) | (b
[1] << 8) | (given
<< 16);
12563 given
= (b
[1]) | (b
[0] << 8) | (given
<< 16);
12565 printer
= print_insn_thumb32
;
12570 if (ifthen_address
!= pc
)
12571 find_ifthen_state (pc
, info
, little_code
);
12575 if ((ifthen_state
& 0xf) == 0x8)
12576 ifthen_next_state
= 0;
12578 ifthen_next_state
= (ifthen_state
& 0xe0)
12579 | ((ifthen_state
& 0xf) << 1);
12585 info
->memory_error_func (status
, pc
, info
);
12588 if (info
->flags
& INSN_HAS_RELOC
)
12589 /* If the instruction has a reloc associated with it, then
12590 the offset field in the instruction will actually be the
12591 addend for the reloc. (We are using REL type relocs).
12592 In such cases, we can ignore the pc when computing
12593 addresses, since the addend is not currently pc-relative. */
12596 printer (pc
, info
, given
);
12600 ifthen_state
= ifthen_next_state
;
12601 ifthen_address
+= size
;
12607 print_insn_big_arm (bfd_vma pc
, struct disassemble_info
*info
)
12609 /* Detect BE8-ness and record it in the disassembler info. */
12610 if (info
->flavour
== bfd_target_elf_flavour
12611 && info
->section
!= NULL
12612 && (elf_elfheader (info
->section
->owner
)->e_flags
& EF_ARM_BE8
))
12613 info
->endian_code
= BFD_ENDIAN_LITTLE
;
12615 return print_insn (pc
, info
, false);
12619 print_insn_little_arm (bfd_vma pc
, struct disassemble_info
*info
)
12621 return print_insn (pc
, info
, true);
12624 const disasm_options_and_args_t
*
12625 disassembler_options_arm (void)
12627 static disasm_options_and_args_t
*opts_and_args
;
12629 if (opts_and_args
== NULL
)
12631 disasm_options_t
*opts
;
12634 opts_and_args
= XNEW (disasm_options_and_args_t
);
12635 opts_and_args
->args
= NULL
;
12637 opts
= &opts_and_args
->options
;
12638 opts
->name
= XNEWVEC (const char *, NUM_ARM_OPTIONS
+ 1);
12639 opts
->description
= XNEWVEC (const char *, NUM_ARM_OPTIONS
+ 1);
12641 for (i
= 0; i
< NUM_ARM_OPTIONS
; i
++)
12643 opts
->name
[i
] = regnames
[i
].name
;
12644 if (regnames
[i
].description
!= NULL
)
12645 opts
->description
[i
] = _(regnames
[i
].description
);
12647 opts
->description
[i
] = NULL
;
12649 /* The array we return must be NULL terminated. */
12650 opts
->name
[i
] = NULL
;
12651 opts
->description
[i
] = NULL
;
12654 return opts_and_args
;
12658 print_arm_disassembler_options (FILE *stream
)
12660 unsigned int i
, max_len
= 0;
12661 fprintf (stream
, _("\n\
12662 The following ARM specific disassembler options are supported for use with\n\
12663 the -M switch:\n"));
12665 for (i
= 0; i
< NUM_ARM_OPTIONS
; i
++)
12667 unsigned int len
= strlen (regnames
[i
].name
);
12672 for (i
= 0, max_len
++; i
< NUM_ARM_OPTIONS
; i
++)
12673 fprintf (stream
, " %s%*c %s\n",
12675 (int)(max_len
- strlen (regnames
[i
].name
)), ' ',
12676 _(regnames
[i
].description
));