Handle prefixes before fwait
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 1 May 2014 16:39:51 +0000 (09:39 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 1 May 2014 16:45:06 +0000 (09:45 -0700)
commit86a80a50f2cb244e6b9ec18b93675972baa50d78
tree6b7c1691a09a08ff6819df9335af56bcc1a4f7f1
parentf8c2a73c881913a25c1cb5be766516a75588c7ab
Handle prefixes before fwait

0x9b (fwait) is both an instruction and an opcode prefix.  When 0x9b is
treated as an instruction, we need to handle any prefixes before it.
This patch handles it properly.

gas/testsuite/

PR binutils/16891
* gas/i386/opcode.s: Add test for fwait with prefix.
* gas/i386/opcode-intel.d: Updated.
* gas/i386/opcode-suffix.d: Likewise.
* gas/i386/opcode.d: Likewise.

opcodes/

PR binutils/16891
* i386-dis.c (print_insn): Handle prefixes before fwait.
gas/testsuite/ChangeLog
gas/testsuite/gas/i386/opcode-intel.d
gas/testsuite/gas/i386/opcode-suffix.d
gas/testsuite/gas/i386/opcode.d
gas/testsuite/gas/i386/opcode.s
opcodes/ChangeLog
opcodes/i386-dis.c