[binutils][aarch64] Allow movprfx for SVE2 instructions.
authorMatthew Malcomson <matthew.malcomson@arm.com>
Thu, 9 May 2019 09:29:13 +0000 (10:29 +0100)
committerMatthew Malcomson <matthew.malcomson@arm.com>
Thu, 9 May 2019 09:29:13 +0000 (10:29 +0100)
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.

opcodes/ChangeLog
opcodes/aarch64-opc.c

index e1003f6897894bbc71b1f2e748c347659c429891..e09c02e2f245bef6d8e53bd03d9bdc9ce500dac1 100644 (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
index 5be0d0f14181f063d69ff0b9aac8bfc0ca74a434..a3f38a911de7db1a7eac873fe7eabc0210060ff5 100644 (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 "