Add CheckRegSize to instructions which require register size check.
commitea02f61be2b6725a2170fc4f62b7a7cb01a4fb72
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 14 Oct 2010 18:45:07 +0000 (14 18:45 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 14 Oct 2010 18:45:07 +0000 (14 18:45 +0000)
tree9d9023f1c9439a9d0bb1c939755472c9b6c7742c
parentc13f8a6374abebdb483586ee48c90f6f51770edf
Add CheckRegSize to instructions which require register size check.

gas/

2010-10-14  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (match_template): Check checkregsize
instead of w for register size check.

gas/testsuite/

2010-10-14  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/i386.exp: Run inval-reg.

* gas/i386/inval-reg.l: New.
* gas/i386/inval-reg.s: Likewise.

opcodes/

2010-10-14  H.J. Lu  <hongjiu.lu@intel.com>

* i386-gen.c (opcode_modifiers): Add CheckRegSize.

* i386-opc.h (CheckRegSize): New.
(i386_opcode_modifier): Add checkregsize.

* i386-opc.tbl: Add CheckRegSize to instructions which
require register size check.
* i386-tbl.h: Regenerated.
gas/ChangeLog
gas/config/tc-i386.c
gas/testsuite/ChangeLog
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/inval-reg.l [new file with mode: 0644]
gas/testsuite/gas/i386/inval-reg.s [new file with mode: 0644]
opcodes/ChangeLog
opcodes/i386-gen.c
opcodes/i386-opc.h
opcodes/i386-opc.tbl
opcodes/i386-tbl.h