]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[AArch64][SVE 15/32] Add {insert,extract}_all_fields helpers
authorRichard Sandiford <richard.sandiford@arm.com>
Wed, 15 Jun 2016 20:46:49 +0000 (21:46 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Tue, 23 Aug 2016 08:41:02 +0000 (09:41 +0100)
commitd4cee232fb33b3e90b8a2c13fe8f7cdde32a3dbd
tree9520221b988718dd5b313d5cdf99864fd3b83e27
parente9ed6966afb5f5ea6d01cd1492bdba156b700407
[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.

Change-Id: I23658f0ea290c9a14380946c42e2d1d40997fd07
opcodes/aarch64-asm.c
opcodes/aarch64-dis.c