Ignore MOD field for control/debug register move
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 22 Sep 2014 16:38:53 +0000 (09:38 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 22 Sep 2014 16:38:53 +0000 (09:38 -0700)
commit68f34464821105e0c74a0ce16c5d26d4c3e1d20c
treed2cde5142f9aee2b2bf582bb65e7bc6d4c6180af
parent20b23ee6c89b3c412f78017d777ca2d3d2937431
Ignore MOD field for control/debug register move

This patch ignores the MOD field in control/debug register move
instructions.

gas/testsuite/

* gas/i386/cdr.d: New file.
* gas/i386/cdr.s: Likewise.
* gas/i386/x86-64-cdr.d: Likewise.

* gas/i386/i386.exp: Run cdr and x86-64-cdr.

opcodes/

* i386-dis.c (MOD_0F20): Removed.
(MOD_0F21): Likewise.
(MOD_0F22): Likewise.
(MOD_0F23): Likewise.
(dis386_twobyte): Replace MOD_0F20, MOD_0F21, MOD_0F22 and
MOD_0F23 with "movZ".
(mod_table): Remove MOD_0F20, MOD_0F21, MOD_0F22 and MOD_0F23.
(OP_R): Check mod/rm byte and call OP_E_register.
gas/testsuite/ChangeLog
gas/testsuite/gas/i386/cdr.d [new file with mode: 0644]
gas/testsuite/gas/i386/cdr.s [new file with mode: 0644]
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/x86-64-cdr.d [new file with mode: 0644]
opcodes/ChangeLog
opcodes/i386-dis.c