x86: simplify .dispNN setting
authorJan Beulich <jbeulich@suse.com>
Tue, 15 Jun 2021 06:00:45 +0000 (08:00 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 15 Jun 2021 06:00:45 +0000 (08:00 +0200)
commit2f2be86bbb8d26f780183e45b169748ef625f03d
tree43118b9e088c86ed84e75c447dbbd1a1a85fcc8f
parent649658972ca923250019ca15e4ddd98bf28bf123
x86: simplify .dispNN setting

First of all eliminate the disp{16,32,32s} static variables, which are
used solely for setting a temporary variable in build_modrm_byte(). The
effect there can be had without use of such a temporary and without
operand_type_or(), by just setting the single bit each that needs
setting.

Then use operand_type_and_not(..., anydisp) when all dispNN bits want
clearing together.
gas/ChangeLog
gas/config/tc-i386.c