[AArch64][SVE 15/32] Add {insert,extract}_all_fields helpers
authorRichard Sandiford <richard.sandiford@arm.com>
Wed, 21 Sep 2016 15:51:16 +0000 (16:51 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Wed, 21 Sep 2016 15:51:16 +0000 (16:51 +0100)
commitb5464a6825e40e6d8ab2dd86c7ff5d65bedd64d4
treed20a8aec105117180a6d86412a769c762ac6ee7c
parent42408347b86745fdbd4bec9ee3a6a3fee31c4dee
[AArch64][SVE 15/32] Add {insert,extract}_all_fields helpers

Several of the SVE operands use the aarch64_operand fields array
to store the fields that make up the operand, rather than hard-coding
the names in the C code.  This patch adds helpers for inserting and
extracting those fields.

opcodes/
* aarch64-asm.c: Include libiberty.h.
(insert_fields): New function.
(aarch64_ins_imm): Use it.
* aarch64-dis.c (extract_fields): New function.
(aarch64_ext_imm): Use it.
opcodes/ChangeLog
opcodes/aarch64-asm.c
opcodes/aarch64-dis.c