From: Matthew Malcomson Date: Thu, 9 May 2019 09:29:13 +0000 (+0100) Subject: [binutils][aarch64] Allow movprfx for SVE2 instructions. X-Git-Tag: binutils-2_33~1300 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5cd99750959f54fea9e7290ec850df6c96878b56;p=thirdparty%2Fbinutils-gdb.git [binutils][aarch64] Allow movprfx for SVE2 instructions. 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-05-09 Matthew Malcomson * aarch64-opc.c (verify_constraints): Check for movprfx for sve2 instructions. --- diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index e1003f68978..e09c02e2f24 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,8 @@ +2019-05-09 Matthew Malcomson + + * aarch64-opc.c (verify_constraints): Check for movprfx for sve2 + instructions. + 2019-05-09 Matthew Malcomson * aarch64-tbl.h diff --git a/opcodes/aarch64-opc.c b/opcodes/aarch64-opc.c index 5be0d0f1418..a3f38a911de 100644 --- a/opcodes/aarch64-opc.c +++ b/opcodes/aarch64-opc.c @@ -4867,7 +4867,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 "