This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH 02/16] [binutils][aarch64] Allow movprfx for SVE2 instructions.
- From: Matthew Malcomson <Matthew dot Malcomson at arm dot com>
- To: "binutils at sourceware dot org" <binutils at sourceware dot org>
- Cc: nd <nd at arm dot com>, Matthew Malcomson <Matthew dot Malcomson at arm dot com>
- Date: Wed, 1 May 2019 14:44:34 +0000
- Subject: [PATCH 02/16] [binutils][aarch64] Allow movprfx for SVE2 instructions.
- References: <1556721866-21052-1-git-send-email-matthew.malcomson@arm.com>
SVE2 introduces a number of new instructions that work with the movprfx
instruction. This commit ensures that SVE2 instructions are accounted
for.
opcodes/ChangeLog:
2019-04-02 Matthew Malcomson <matthew.malcomson@arm.com>
* aarch64-opc.c (verify_constraints): Check for movprfx for sve2
instructions.
---
opcodes/aarch64-opc.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/opcodes/aarch64-opc.c b/opcodes/aarch64-opc.c
index a174116..33e4af6 100644
--- a/opcodes/aarch64-opc.c
+++ b/opcodes/aarch64-opc.c
@@ -4864,7 +4864,9 @@ verify_constraints (const struct aarch64_inst *inst,
{
/* Check to see if the MOVPRFX SVE instruction is followed by an SVE
instruction for better error messages. */
- if (!opcode->avariant || !(*opcode->avariant & AARCH64_FEATURE_SVE))
+ if (!opcode->avariant
+ || !(*opcode->avariant &
+ (AARCH64_FEATURE_SVE | AARCH64_FEATURE_SVE2)))
{
mismatch_detail->kind = AARCH64_OPDE_SYNTAX_ERROR;
mismatch_detail->error = _("SVE instruction expected after "
--
2.7.4