[PATCH v4 04/11] [Binutils] aarch64: Fix sve2p1 extq instruction operands.

Srinath Parvathaneni srinath.parvathaneni@arm.com
Fri Jun 21 15:23:24 GMT 2024


Hi,

This patch fixes the syntax of sve2p1 "extq" instruction by modifying the operands
count to 4. A new operand AARCH64_OPND_SVE_UIMM4 is defined to handle the 4th
argument an 4-bit unsigned immediate of extq instruction. The instruction encoding
is updated to use constraint C_SCAN_MOVPRFX, to enable "extq" instruction to immediately
precede in program order by a MOVPRFX instruction. Also removed the unused operand
AARCH64_OPND_SVE_Zm_imm4.

This issues was reported here:
 https://sourceware.org/pipermail/binutils/2024-February/132408.html

Regression testing for aarch64-none-elf target and found no regressions.

Ok for binutils master?

Regards,
Srinath.
---
 gas/config/tc-aarch64.c                      |  2 +-
 gas/testsuite/gas/aarch64/sve2p1-1-bad.l     | 12 ++++++------
 gas/testsuite/gas/aarch64/sve2p1-1.d         | 12 ++++++------
 gas/testsuite/gas/aarch64/sve2p1-1.s         | 12 ++++++------
 gas/testsuite/gas/aarch64/sve2p1-3-invalid.d |  3 +++
 gas/testsuite/gas/aarch64/sve2p1-3-invalid.l | 17 +++++++++++++++++
 gas/testsuite/gas/aarch64/sve2p1-3-invalid.s | 16 ++++++++++++++++
 gas/testsuite/gas/aarch64/sve2p1-3.d         | 20 ++++++++++++++++++++
 gas/testsuite/gas/aarch64/sve2p1-3.s         | 12 ++++++++++++
 include/opcode/aarch64.h                     |  2 +-
 opcodes/aarch64-opc.c                        | 11 ++++-------
 opcodes/aarch64-tbl.h                        |  7 +++----
 12 files changed, 95 insertions(+), 31 deletions(-)
 create mode 100644 gas/testsuite/gas/aarch64/sve2p1-3-invalid.d
 create mode 100644 gas/testsuite/gas/aarch64/sve2p1-3-invalid.l
 create mode 100644 gas/testsuite/gas/aarch64/sve2p1-3-invalid.s
 create mode 100644 gas/testsuite/gas/aarch64/sve2p1-3.d
 create mode 100644 gas/testsuite/gas/aarch64/sve2p1-3.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: v4-0004-Binutils-aarch64-Fix-sve2p1-extq-instruction-oper.patch
Type: text/x-patch
Size: 13223 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20240621/67c16b38/attachment-0001.bin>


More information about the Binutils mailing list