diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2010-10-14 18:45:10 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2010-10-14 18:45:10 +0000 |
commit | 56ffb741123b59c22828fdf4afb1c67f81f2fa24 (patch) | |
tree | e68a5f7ee05eacc2d9b2b23824ff0c55fcade5ea /opcodes/i386-opc.h | |
parent | 7062b0a0dfe70957e9cb04749efb627a3032c3f2 (diff) | |
download | binutils-56ffb741123b59c22828fdf4afb1c67f81f2fa24.zip binutils-56ffb741123b59c22828fdf4afb1c67f81f2fa24.tar.gz binutils-56ffb741123b59c22828fdf4afb1c67f81f2fa24.tar.bz2 |
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 239f9de..fe4fe97 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; |