]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
x86: correct decoding of nop/reserved space (0f18 ... 0x1f)
authorJan Beulich <jbeulich@suse.com>
Wed, 10 Mar 2021 07:14:11 +0000 (08:14 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 10 Mar 2021 07:14:11 +0000 (08:14 +0100)
commit319419837c371a14e64e6affb0cb7abf37764d78
treeba21e51c48e5828c6d7bf1a48aed47b2f714c053
parent67b0f684803f5bec9b801c43fe1559bc88c15bb6
x86: correct decoding of nop/reserved space (0f18 ... 0x1f)

All encodings not used in this range are (reserved) NOPs. Hence their
decoding should be fully consistent. For this to work the PREFIX_IGNORED
logic needs slightly extending, such that the attribute will also
- have an effect when used inside prefix_table[], yet without always
  falling back to using slot 0,
- cause prefixes marked as ignored while decoding through prefix_table[]
  to no longer be considered decoded, when encountered in a subsequent
  decoding step.

In adjacent code also drop meaningless PREFIX_OPCODE.
gas/ChangeLog
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/nops-8.d [new file with mode: 0644]
gas/testsuite/gas/i386/nops-8.s [new file with mode: 0644]
gas/testsuite/gas/i386/prefetch-intel.d
gas/testsuite/gas/i386/prefetch.d
gas/testsuite/gas/i386/x86-64-prefetch-intel.d
gas/testsuite/gas/i386/x86-64-prefetch.d
opcodes/ChangeLog
opcodes/i386-dis.c