diff options
author | Matthew Malcomson <matthew.malcomson@arm.com> | 2019-05-09 10:29:21 +0100 |
---|---|---|
committer | Matthew Malcomson <matthew.malcomson@arm.com> | 2019-05-09 10:29:21 +0100 |
commit | cd50a87ae29f163e7d254729a902a5e51fcccbbc (patch) | |
tree | 846a94ad055f754de290541aae7b6421ce85f1bb /opcodes/aarch64-asm.c | |
parent | 3c705960ca0e12bb5d3a12d14ca6703006102d98 (diff) | |
download | gdb-cd50a87ae29f163e7d254729a902a5e51fcccbbc.zip gdb-cd50a87ae29f163e7d254729a902a5e51fcccbbc.tar.gz gdb-cd50a87ae29f163e7d254729a902a5e51fcccbbc.tar.bz2 |
[binutils][aarch64] New sve_size_013 iclass.
Add sve_size_013 instruction class
This new iclass handles instructions such as pmullb whose size specifier
can only be encoded as 0, 1, or 3.
include/ChangeLog:
2019-05-09 Matthew Malcomson <matthew.malcomson@arm.com>
* opcode/aarch64.h (enum aarch64_insn_class): Add sve_size_013 iclass.
opcodes/ChangeLog:
2019-05-09 Matthew Malcomson <matthew.malcomson@arm.com>
* aarch64-asm.c (aarch64_encode_variant_using_iclass): Handle
sve_size_013 iclass encode.
* aarch64-dis.c (aarch64_decode_variant_using_iclass): Handle
sve_size_013 iclass decode.
Diffstat (limited to 'opcodes/aarch64-asm.c')
-rw-r--r-- | opcodes/aarch64-asm.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/opcodes/aarch64-asm.c b/opcodes/aarch64-asm.c index 674eba5..0ec27b2 100644 --- a/opcodes/aarch64-asm.c +++ b/opcodes/aarch64-asm.c @@ -1613,6 +1613,7 @@ do_special_encoding (struct aarch64_inst *inst) static void aarch64_encode_variant_using_iclass (struct aarch64_inst *inst) { + int variant = 0; switch (inst->opcode->iclass) { case sve_cpy: @@ -1669,6 +1670,13 @@ aarch64_encode_variant_using_iclass (struct aarch64_inst *inst) aarch64_get_variant (inst) + 1, 0); break; + case sve_size_013: + variant = aarch64_get_variant (inst); + if (variant == 2) + variant = 3; + insert_field (FLD_size, &inst->value, variant, 0); + break; + default: break; } |