diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2010-10-14 18:45:07 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2010-10-14 18:45:07 +0000 |
commit | ea02f61be2b6725a2170fc4f62b7a7cb01a4fb72 (patch) | |
tree | 9d9023f1c9439a9d0bb1c939755472c9b6c7742c /opcodes/i386-opc.h | |
parent | c13f8a6374abebdb483586ee48c90f6f51770edf (diff) | |
download | binutils-redhat-ea02f61be2b6725a2170fc4f62b7a7cb01a4fb72.tar.gz |
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.
Diffstat (limited to 'opcodes/i386-opc.h')
-rw-r--r-- | opcodes/i386-opc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/opcodes/i386-opc.h b/opcodes/i386-opc.h index 239f9de54d..fe4fe97b19 100644 --- a/opcodes/i386-opc.h +++ b/opcodes/i386-opc.h @@ -237,6 +237,8 @@ enum Size32, /* needs size prefix if in 64-bit mode */ Size64, + /* check register size. */ + CheckRegSize, /* instruction ignores operand size prefix and in Intel mode ignores mnemonic size suffix check. */ IgnoreSize, @@ -375,6 +377,7 @@ typedef struct i386_opcode_modifier unsigned int size16:1; unsigned int size32:1; unsigned int size64:1; + unsigned int checkregsize:1; unsigned int ignoresize:1; unsigned int defaultsize:1; unsigned int no_bsuf:1; |