aboutsummaryrefslogtreecommitdiff
path: root/opcodes/i386-init.h
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2022-10-31 17:56:06 +0100
committerJan Beulich <jbeulich@suse.com>2022-10-31 17:56:06 +0100
commit8f0212acb19da47fa9d9feeaae42e71c8817cafc (patch)
treee87ebfd50f0099aaa587de359f3effba3f50f96d /opcodes/i386-init.h
parent5bab16fdf1775c8abd16376458c5843fbe1d4314 (diff)
downloadgdb-8f0212acb19da47fa9d9feeaae42e71c8817cafc.zip
gdb-8f0212acb19da47fa9d9feeaae42e71c8817cafc.tar.gz
gdb-8f0212acb19da47fa9d9feeaae42e71c8817cafc.tar.bz2
x86: minor improvements to optimize_imm() (part III)
Earlier tidying still missed an opportunity: There's no need for the "anyimm" static variable. Instead of using it in the loop to mask "allowed" (which is necessary to satisfy operand_type_or()'s assertions) simply use "mask", requiring it to be calculated first. That way the post-loop masking by "mask" ahead of the operand_type_all_zero() can be dropped.
Diffstat (limited to 'opcodes/i386-init.h')
-rw-r--r--opcodes/i386-init.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/opcodes/i386-init.h b/opcodes/i386-init.h
index e662ba6..133827a 100644
--- a/opcodes/i386-init.h
+++ b/opcodes/i386-init.h
@@ -1993,7 +1993,3 @@
#define OPERAND_TYPE_IMM32_32S_64_DISP32_64 \
{ { 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, \
0, 0, 0, 0, 0, 0 } }
-
-#define OPERAND_TYPE_ANYIMM \
- { { 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
- 0, 0, 0, 0, 0, 0 } }