diff options
author | H.J. Lu <hjl@lucon.org> | 2009-12-16 04:00:34 +0000 |
---|---|---|
committer | H.J. Lu <hjl@lucon.org> | 2009-12-16 04:00:34 +0000 |
commit | 0c9ae79f21a3c7e3f79c13e8b06862c79ab97ef4 (patch) | |
tree | 11398c67e3709bc83ff06453bb2405f742b3902f /opcodes/i386-opc.h | |
parent | 31ef6c7bc2556b3da454e663779c8eacac28cf4d (diff) | |
download | binutils-redhat-0c9ae79f21a3c7e3f79c13e8b06862c79ab97ef4.tar.gz |
Replace Vex2Sources and Vex3Sources with VexSources.
gas/
2009-12-15 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (process_operands): Check vexsources
instead of vex3sources.
(build_modrm_byte): Check vexsources instead of vex2sources
and vex3sources.
opcodes/
2009-12-15 H.J. Lu <hongjiu.lu@intel.com>
* i386-gen.c (opcode_modifiers): Remove Vex3Sources and
Vex2Sources. Add VexSources.
* i386-opc.h ()Vex2Sources: Removed.
(Vex3Sources): Likewise.
(VEX2SOURCES): New.
(VEX3SOURCES): Likewise.
(VexSources): Likewise.
(i386_opcode_modifier): Remove vex2sources and vex3sources.
Add vexsources.
* i386-opc.tbl: Replace Vex2Sources with VexSources=1 and
Vex3Sourceswith VexSources=2.
* i386-tbl.h: Regenerated.
Diffstat (limited to 'opcodes/i386-opc.h')
-rw-r--r-- | opcodes/i386-opc.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/opcodes/i386-opc.h b/opcodes/i386-opc.h index 2bc07b0289..08fe068cb0 100644 --- a/opcodes/i386-opc.h +++ b/opcodes/i386-opc.h @@ -306,10 +306,14 @@ enum XOP09, /* insn has XOP 0x0A opcode prefix. */ XOP0A, - /* insn has VEX prefix with 2 sources. */ - Vex2Sources, - /* insn has VEX prefix with 3 sources. */ - Vex3Sources, + /* number of VEX source operands: + 0: < 2 source operands. + 1: 2 source operands. + 2: 3 source operands. + */ +#define VEX2SOURCES 1 +#define VEX3SOURCES 2 + VexSources, /* instruction has VEX 8 bit imm */ VexImmExt, /* SSE to AVX support required */ @@ -379,8 +383,7 @@ typedef struct i386_opcode_modifier unsigned int xop08:1; unsigned int xop09:1; unsigned int xop0a:1; - unsigned int vex2sources:1; - unsigned int vex3sources:1; + unsigned int vexsources:2; unsigned int veximmext:1; unsigned int sse2avx:1; unsigned int noavx:1; |