]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
aarch64: use an enumeration for operand indices.
authorRichard Earnshaw <rearnsha@arm.com>
Mon, 14 Jul 2025 16:30:01 +0000 (17:30 +0100)
committerRichard Earnshaw <rearnsha@arm.com>
Mon, 21 Jul 2025 17:17:51 +0000 (18:17 +0100)
commit63de89b2c1d503575a79669af1c9251bf67140bf
tree2ed2c6285aa026f4a6fad65054006a8551059065
parent6a35f84cebc9370f2010e9d3ee72692ba1b4b65d
aarch64: use an enumeration for operand indices.

The generated aarch64 operand tables use index values into an array.  But if
the table of operands is modified by inserting a new operand into the middle
of the table, *all* the index values can change, leading to a lot of
churn in the generated output.

include/opcode/aarch64.h already provides an enumeration for the operands,
so make use of that instead of printing out the raw index values.
opcodes/aarch64-asm-2.c
opcodes/aarch64-dis-2.c
opcodes/aarch64-gen.c