[PATCH v5 1/2] gas, aarch64: Add SME2 lutv2 extension
Richard Earnshaw (lists)
Richard.Earnshaw@arm.com
Mon Jun 24 14:03:21 GMT 2024
On 21/06/2024 16:30, saurabh.jha@arm.com wrote:
>
> Introduces instructions for the SME2 lutv2 extension for AArch64. They
> are documented in the following links:
>
> * https://developer.arm.com/documentation/ddi0602/2024-03/SME-Instructions/LUTI4--four-registers--8-bit---Lookup-table-read-with-4-bit-indexes-and-8-bit-elements-?lang=en
> * https://developer.arm.com/documentation/ddi0602/2024-03/SME-Instructions/MOVT--vector-to-table---Move-vector-register-to-ZT0-?lang=en
>
> For both luti4 instructions, we introduced an operand called
> SME_Znx2_BIT_INDEX. We use the existing function parse_vector_reg_list
> for parsing but modified that function so that it can accept operands
> without qualifiers and rejects instructions that have operands with
> qualifiers but are not supposed to have operands with qualifiers.
> For disassembly, we modified print_register_list so that it could
> accept register lists without qualifiers.
>
> For one luti4 instruction, we introduced a SME_Zdnx4_STRIDED. It is
> similar to SME_Ztx4_STRIDED and we could use existing code for parsing,
> encoding, and disassembly.
>
> For movt instruction, we introduced an operand called SME_ZT0_INDEX2_12.
> This is a ZT0 register with a bit index encoded in [13:12]. It is
> similar to SME_ZT0_INDEX.
>
> We also introduced an iclass named sme_size_12_b so that we can encode
> size bits [13:12] correctly when only 'b' is allowed as qualifier.
> ---
> Hi,
>
> Regression tested for aarch64-none-elf and found no regressions.
>
> This is version 5 of this patch series. The difference from version 4
> are style fixes in `gas/config/tc-aarch64.c`. Specifically, there were
> three instances where I did not have space between function name and
> open paranthesis and one instance where an inline comment was giving
> dot, space, space, new sentence error. Fixed those style errors.
>
> Ok for binutils-master? I don't have commit access so can someone please
> commit on my behalf?
>
Thanks, I've pushed this.
FTR, I've removed the deep links to parts of the Arm architecture manuals and just cited the document number as a whole. Experience has shown that deep links like this do not stand the test of time, which isn't helpful in a 'forever' commit message.
R.
> Regards,
> Saurabh
> ---
> gas/NEWS | 2 +
> gas/config/tc-aarch64.c | 92 +++++++++++++++++-
> gas/doc/c-aarch64.texi | 2 +
> gas/testsuite/gas/aarch64/sme2-8-invalid.l | 14 +--
> gas/testsuite/gas/aarch64/sme2-lutv2-bad.d | 3 +
> gas/testsuite/gas/aarch64/sme2-lutv2-bad.l | 15 +++
> .../gas/aarch64/sme2-lutv2-illegal.d | 3 +
> .../gas/aarch64/sme2-lutv2-illegal.l | 70 ++++++++++++++
> .../gas/aarch64/sme2-lutv2-illegal.s | 95 +++++++++++++++++++
> gas/testsuite/gas/aarch64/sme2-lutv2.d | 24 +++++
> gas/testsuite/gas/aarch64/sme2-lutv2.s | 22 +++++
> include/opcode/aarch64.h | 6 ++
> opcodes/aarch64-asm.c | 1 +
> opcodes/aarch64-dis.c | 6 ++
> opcodes/aarch64-opc.c | 30 +++++-
> opcodes/aarch64-opc.h | 2 +
> opcodes/aarch64-tbl.h | 33 +++++++
> 17 files changed, 406 insertions(+), 14 deletions(-)
> create mode 100644 gas/testsuite/gas/aarch64/sme2-lutv2-bad.d
> create mode 100644 gas/testsuite/gas/aarch64/sme2-lutv2-bad.l
> create mode 100644 gas/testsuite/gas/aarch64/sme2-lutv2-illegal.d
> create mode 100644 gas/testsuite/gas/aarch64/sme2-lutv2-illegal.l
> create mode 100644 gas/testsuite/gas/aarch64/sme2-lutv2-illegal.s
> create mode 100644 gas/testsuite/gas/aarch64/sme2-lutv2.d
> create mode 100644 gas/testsuite/gas/aarch64/sme2-lutv2.s
>
More information about the Binutils
mailing list