x86: avoid strcmp() in a few places
commit6d86a54595d80b93baaaafe0b4db3dea6a5d451e
authorJan Beulich <jbeulich@suse.com>
Fri, 20 Jan 2023 09:17:23 +0000 (20 10:17 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 20 Jan 2023 09:17:23 +0000 (20 10:17 +0100)
tree2c2a8be567ad9ddd769b55766b2035131a1c5558
parent992dd393c9430ac77df30017f47dc607da69e9a0
x86: avoid strcmp() in a few places

Now that we have identifiers for the mnemonic strings we can avoid
strcmp() in a number of places, comparing the offsets into the mnemonic
string table instead. While doing this also
- convert a leftover strncmp() to startswith() (apparently an oversight
  when rebasing the original patch introducing the startswith() uses),
- use the new shorthand for current_templates->start also elsewhere in
  md_assemble() (valid up to the point where match_template() is
  called).
gas/config/tc-i386.c