]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
opcodes/aarch64: shrink aarch64_ext_ldst_reglist()'s data[]
authorJan Beulich <jbeulich@suse.com>
Fri, 8 Aug 2025 09:42:32 +0000 (11:42 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 8 Aug 2025 09:42:32 +0000 (11:42 +0200)
The values are all pretty small; one is even a boolean. No point in
wasting 32 bits for every one of the fields.

opcodes/aarch64-dis.c

index af62bd88398d7e88412813fe6e5c09bd23309f85..3ca22bb5c8ac4e4ce544c6ff13a618c4fbe225c6 100644 (file)
@@ -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 */