diff options
author | Jan Beulich <jbeulich@suse.com> | 2025-08-08 11:42:32 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2025-08-08 11:42:32 +0200 |
commit | 7ec7556f86d4665c26ef63184cee7057213957c1 (patch) | |
tree | c53ced17ca2895927bb38683b90cd434182d310e | |
parent | 0f67878b82cdb34dae1975d3db8da133fadd6ad3 (diff) | |
download | binutils-7ec7556f86d4665c26ef63184cee7057213957c1.zip binutils-7ec7556f86d4665c26ef63184cee7057213957c1.tar.gz binutils-7ec7556f86d4665c26ef63184cee7057213957c1.tar.bz2 |
opcodes/aarch64: shrink aarch64_ext_ldst_reglist()'s data[]
The values are all pretty small; one is even a boolean. No point in
wasting 32 bits for every one of the fields.
-rw-r--r-- | opcodes/aarch64-dis.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/opcodes/aarch64-dis.c b/opcodes/aarch64-dis.c index af62bd8..3ca22bb 100644 --- a/opcodes/aarch64-dis.c +++ b/opcodes/aarch64-dis.c @@ -501,21 +501,21 @@ aarch64_ext_ldst_reglist (const aarch64_operand *self ATTRIBUTE_UNUSED, static const struct { - unsigned is_reserved; - unsigned num_regs; - unsigned num_elements; + unsigned num_regs:8; + unsigned num_elements:8; + bool is_reserved:1; } data [] = - { {0, 4, 4}, - {1, 4, 4}, - {0, 4, 1}, - {0, 4, 2}, - {0, 3, 3}, - {1, 3, 3}, - {0, 3, 1}, - {0, 1, 1}, - {0, 2, 2}, - {1, 2, 2}, - {0, 2, 1}, + { {4, 4, false}, + {4, 4, true}, + {4, 1, false}, + {4, 2, false}, + {3, 3, false}, + {3, 3, true}, + {3, 1, false}, + {1, 1, false}, + {2, 2, false}, + {2, 2, true}, + {2, 1, false}, }; /* Rt */ |