diff options
author | Jan Beulich <jbeulich@suse.com> | 2025-02-14 10:47:50 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2025-02-14 10:47:50 +0100 |
commit | 9754d1a75059281d9ce9b510d8146c5e0ce2152c (patch) | |
tree | 5b7a7bb6a9d4e1594bfe8eff2715ad95755cbd78 | |
parent | f59d6a9c3bf02e71141b6fcb0e644f719cdf69ed (diff) | |
download | binutils-9754d1a75059281d9ce9b510d8146c5e0ce2152c.zip binutils-9754d1a75059281d9ce9b510d8146c5e0ce2152c.tar.gz binutils-9754d1a75059281d9ce9b510d8146c5e0ce2152c.tar.bz2 |
x86: drop redundant i.operands checks from output_disp()
The opcode space, major opcode, and - where applicable - opcode
extension checks fully qualify the insns we're after; operand matching
has been done far earlier, so wrong operand counts cannot occur here.
-rw-r--r-- | gas/config/tc-i386.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index d648158..9cfc4df 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -12943,17 +12943,14 @@ output_disp (fragS *insn_start_frag, offsetT insn_start_off) && (i.rm.mode == 2 || (i.rm.mode == 0 && i.rm.regmem == 5)) && ((space == SPACE_BASE - && i.operands == 1 && i.tm.base_opcode == 0xff && (i.rm.reg == 2 || i.rm.reg == 4)) || ((space == SPACE_BASE || space == SPACE_0F38 || space == SPACE_MAP4) - && i.operands == 2 && i.tm.base_opcode == 0x8b) || ((space == SPACE_BASE || space == SPACE_MAP4) - && i.operands >= 2 && (i.tm.base_opcode == 0x85 || (i.tm.base_opcode | (i.operands > 2 ? 0x3a : 0x38)) == 0x3b)))) |