diff options
author | Matthew Malcomson <matthew.malcomson@arm.com> | 2019-05-09 10:29:13 +0100 |
---|---|---|
committer | Matthew Malcomson <matthew.malcomson@arm.com> | 2019-05-09 10:29:13 +0100 |
commit | 5cd99750959f54fea9e7290ec850df6c96878b56 (patch) | |
tree | 0a9371a8551aed6136fb8969e4cca3de7daef2ca /opcodes/aarch64-opc.c | |
parent | 7ce2460a77a8f66a145c11522f494f3262255390 (diff) | |
download | gdb-5cd99750959f54fea9e7290ec850df6c96878b56.zip gdb-5cd99750959f54fea9e7290ec850df6c96878b56.tar.gz gdb-5cd99750959f54fea9e7290ec850df6c96878b56.tar.bz2 |
[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.
Diffstat (limited to 'opcodes/aarch64-opc.c')
-rw-r--r-- | opcodes/aarch64-opc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/opcodes/aarch64-opc.c b/opcodes/aarch64-opc.c index 5be0d0f..a3f38a9 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 " |