diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2009-12-16 04:00:35 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2009-12-16 04:00:35 +0000 |
commit | 8cd7925b457188d333760956a2aa06d8aa302fb0 (patch) | |
tree | 3b29eee0ff3c5e12b8173f1e361797a6d73e83cd /opcodes/i386-opc.h | |
parent | 1ef99a7be96373a4018f793730e9366172510bb7 (diff) | |
download | gdb-8cd7925b457188d333760956a2aa06d8aa302fb0.zip gdb-8cd7925b457188d333760956a2aa06d8aa302fb0.tar.gz gdb-8cd7925b457188d333760956a2aa06d8aa302fb0.tar.bz2 |
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 2bc07b0..08fe068 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; |