aarch64: [SME] Add MOV and MOVA instructions
authorPrzemyslaw Wirkus <przemyslaw.wirkus@arm.com>
Wed, 17 Nov 2021 19:31:25 +0000 (19:31 +0000)
committerPrzemyslaw Wirkus <przemyslaw.wirkus@arm.com>
Wed, 17 Nov 2021 19:32:17 +0000 (19:32 +0000)
commit7bb5f07c8aa5168009f1e7b6857a30f0ee5ad16a
treee8a7449925ac32ef3a5ebf0db7276c348ca5bb8c
parent971eda734150ea9cdea47be259486c3a8d087037
aarch64: [SME] Add MOV and MOVA instructions

This patch is adding new MOV (alias) and MOVA SME instruction.

gas/ChangeLog:

* config/tc-aarch64.c (enum sme_hv_slice): new enum.
(struct reloc_entry): Added ZAH and ZAV registers.
(parse_sme_immediate): Immediate parser.
(parse_sme_za_hv_tiles_operand): ZA tile parser.
(parse_sme_za_hv_tiles_operand_index): Index parser.
(parse_operands): Added ZA tile parser calls.
(REGNUMS): New macro. Regs with suffix.
(REGSET16S): New macro. 16 regs with suffix.
* testsuite/gas/aarch64/sme-2-illegal.d: New test.
* testsuite/gas/aarch64/sme-2-illegal.l: New test.
* testsuite/gas/aarch64/sme-2-illegal.s: New test.
* testsuite/gas/aarch64/sme-2.d: New test.
* testsuite/gas/aarch64/sme-2.s: New test.
* testsuite/gas/aarch64/sme-2a.d: New test.
* testsuite/gas/aarch64/sme-2a.s: New test.
* testsuite/gas/aarch64/sme-3-illegal.d: New test.
* testsuite/gas/aarch64/sme-3-illegal.l: New test.
* testsuite/gas/aarch64/sme-3-illegal.s: New test.
* testsuite/gas/aarch64/sme-3.d: New test.
* testsuite/gas/aarch64/sme-3.s: New test.
* testsuite/gas/aarch64/sme-3a.d: New test.
* testsuite/gas/aarch64/sme-3a.s: New test.

include/ChangeLog:

* opcode/aarch64.h (enum aarch64_opnd): New enums
AARCH64_OPND_SME_ZA_HV_idx_src and
AARCH64_OPND_SME_ZA_HV_idx_dest.
(struct aarch64_opnd_info): New ZA tile vector struct.

opcodes/ChangeLog:

* aarch64-asm.c (aarch64_ins_sme_za_hv_tiles):
New inserter.
* aarch64-asm.h (AARCH64_DECL_OPD_INSERTER):
New inserter ins_sme_za_hv_tiles.
* aarch64-dis.c (aarch64_ext_sme_za_hv_tiles):
New extractor.
* aarch64-dis.h (AARCH64_DECL_OPD_EXTRACTOR):
New extractor ext_sme_za_hv_tiles.
* aarch64-opc.c (aarch64_print_operand):
Handle SME_ZA_HV_idx_src and SME_ZA_HV_idx_dest.
* aarch64-opc.h (enum aarch64_field_kind): New enums
FLD_SME_size_10, FLD_SME_Q, FLD_SME_V and FLD_SME_Rv.
(struct aarch64_operand): Increase fields size to 5.
* aarch64-tbl.h (OP_SME_BHSDQ_PM_BHSDQ): New qualifiers
aarch64-asm-2.c: Regenerate.
aarch64-dis-2.c: Regenerate.
aarch64-opc-2.c: Regenerate.
26 files changed:
gas/config/tc-aarch64.c
gas/testsuite/gas/aarch64/sme-2-illegal.d [new file with mode: 0644]
gas/testsuite/gas/aarch64/sme-2-illegal.l [new file with mode: 0644]
gas/testsuite/gas/aarch64/sme-2-illegal.s [new file with mode: 0644]
gas/testsuite/gas/aarch64/sme-2.d [new file with mode: 0644]
gas/testsuite/gas/aarch64/sme-2.s [new file with mode: 0644]
gas/testsuite/gas/aarch64/sme-2a.d [new file with mode: 0644]
gas/testsuite/gas/aarch64/sme-2a.s [new file with mode: 0644]
gas/testsuite/gas/aarch64/sme-3-illegal.d [new file with mode: 0644]
gas/testsuite/gas/aarch64/sme-3-illegal.l [new file with mode: 0644]
gas/testsuite/gas/aarch64/sme-3-illegal.s [new file with mode: 0644]
gas/testsuite/gas/aarch64/sme-3.d [new file with mode: 0644]
gas/testsuite/gas/aarch64/sme-3.s [new file with mode: 0644]
gas/testsuite/gas/aarch64/sme-3a.d [new file with mode: 0644]
gas/testsuite/gas/aarch64/sme-3a.s [new file with mode: 0644]
include/opcode/aarch64.h
opcodes/aarch64-asm-2.c
opcodes/aarch64-asm.c
opcodes/aarch64-asm.h
opcodes/aarch64-dis-2.c
opcodes/aarch64-dis.c
opcodes/aarch64-dis.h
opcodes/aarch64-opc-2.c
opcodes/aarch64-opc.c
opcodes/aarch64-opc.h
opcodes/aarch64-tbl.h