]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gas/ChangeLog
x86: Allow 32-bit registers for tpause and umwait
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 15 Apr 2018 15:38:23 +0000 (08:38 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 15 Apr 2018 15:38:36 +0000 (08:38 -0700)
commitae1d38437284b31d5a1c604bcf391d4543be00a5
tree1a7ec14d5cbdfdd8967109fb45dcca742ee81740
parent7c31c22f1a18d91e104f1ffd5df8895d2459fe48
x86: Allow 32-bit registers for tpause and umwait

Since only the first 32 bits of input operand are used for tpause and
umwait, the REX.W bit is skipped.  Both 32-bit registers and 64-bit
registers are allowed.

gas/

* testsuite/gas/i386/x86-64-waitpkg.s: Add 32-bit registers
tests for tpause and umwait.
* testsuite/gas/i386/x86-64-waitpkg-intel.d: Updated.
* testsuite/gas/i386/x86-64-waitpkg.d: Likewise.

opcodes/

* i386-dis.c (prefix_table): Replace Em with Edq on tpause and
umwait.
* i386-opc.tbl: Allow 32-bit registers for tpause and umwait in
64-bit mode.
* i386-tbl.h: Regenerated.
gas/ChangeLog
gas/testsuite/gas/i386/x86-64-waitpkg-intel.d
gas/testsuite/gas/i386/x86-64-waitpkg.d
gas/testsuite/gas/i386/x86-64-waitpkg.s
opcodes/ChangeLog
opcodes/i386-dis.c
opcodes/i386-opc.tbl
opcodes/i386-tbl.h