[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  <matthew.malcomson@arm.com>

	* aarch64-opc.c (verify_constraints): Check for movprfx for sve2
	instructions.
This commit is contained in:
Matthew Malcomson 2019-05-09 10:29:13 +01:00
parent 7ce2460a77
commit 5cd9975095
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2019-05-09 Matthew Malcomson <matthew.malcomson@arm.com>
* aarch64-opc.c (verify_constraints): Check for movprfx for sve2
instructions.
2019-05-09 Matthew Malcomson <matthew.malcomson@arm.com>
* aarch64-tbl.h

View File

@ -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 "