Handle invalid prefixes for rdrand and rdseed
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 15 Apr 2015 16:53:13 +0000 (09:53 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 15 Apr 2015 16:57:55 +0000 (09:57 -0700)
commitf24bcbaa5a6e30556e2da20bfd78e7823741475a
tree1a56cd0b6f00c81f88800c767c226a0578a5c67a
parent507bd32558eb1c0054b7989d52ac1ab25cc5b0ac
Handle invalid prefixes for rdrand and rdseed

This patch puts rdrand and rdseed in prefix_table so that invalid
prefixes for rdrand and rdseed are handled properly.

gas/testsuite/

PR binutils/17898
* gas/i386/prefix.s: Add rdrand/rdseed prefix tests.
* gas/i386/prefix.d: Updated.

opcodes/

PR binutils/17898
* i386-dis.c (PREFIX_0FC7_REG_6): Renamed to ...
(PREFIX_MOD_0_0FC7_REG_6): This.
(PREFIX_MOD_3_0FC7_REG_6): New.
(PREFIX_MOD_3_0FC7_REG_7): Likewise.
(prefix_table): Replace PREFIX_0FC7_REG_6 with
PREFIX_MOD_0_0FC7_REG_6.  Add PREFIX_MOD_3_0FC7_REG_6 and
PREFIX_MOD_3_0FC7_REG_7.
(mod_table): Replace PREFIX_0FC7_REG_6 with
PREFIX_MOD_0_0FC7_REG_6.  Use PREFIX_MOD_3_0FC7_REG_6 and
PREFIX_MOD_3_0FC7_REG_7.
gas/testsuite/ChangeLog
gas/testsuite/gas/i386/prefix.d
gas/testsuite/gas/i386/prefix.s
opcodes/ChangeLog
opcodes/i386-dis.c