diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2020-10-13 19:28:58 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2020-10-13 19:29:09 -0700 |
commit | 7b47a312561818d9853f8e89fa43a86304f7040c (patch) | |
tree | d242382570ab54bf6bbfa74ba2e26a0fcc6fb451 /opcodes/i386-opc.h | |
parent | 6248f5e4fc4ad1e433156520e44ac3217c39a621 (diff) | |
download | gdb-7b47a312561818d9853f8e89fa43a86304f7040c.zip gdb-7b47a312561818d9853f8e89fa43a86304f7040c.tar.gz gdb-7b47a312561818d9853f8e89fa43a86304f7040c.tar.bz2 |
x86: Rename VexOpcode to OpcodePrefix
Rename VexOpcode to OpcodePrefix so that OpcodePrefix can be used for
regular encoding prefix.
gas/
* config/tc-i386.c (build_vex_prefix): Replace vexopcode with
opcodeprefix.
(build_evex_prefix): Likewise.
(is_any_vex_encoding): Don't check vexopcode.
(output_insn): Handle opcodeprefix.
opcodes/
* i386-gen.c (opcode_modifiers): Replace VexOpcode with
OpcodePrefix.
* i386-opc.h (VexOpcode): Renamed to ...
(OpcodePrefix): This.
(PREFIX_NONE): New.
(PREFIX_0X66): Likewise.
(PREFIX_0XF2): Likewise.
(PREFIX_0XF3): Likewise.
* i386-opc.tbl (Prefix_0X66): New.
(Prefix_0XF2): Likewise.
(Prefix_0XF3): Likewise.
Replace VexOpcode= with OpcodePrefix=. Use Prefix_0X66 on xorpd.
Use Prefix_0XF3 on cvtdq2pd. Use Prefix_0XF2 on cvtpd2dq.
* i386-tbl.h: Regenerated.
Diffstat (limited to 'opcodes/i386-opc.h')
-rw-r--r-- | opcodes/i386-opc.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/opcodes/i386-opc.h b/opcodes/i386-opc.h index 7e8947d..e783683 100644 --- a/opcodes/i386-opc.h +++ b/opcodes/i386-opc.h @@ -561,6 +561,16 @@ enum #define VEXW1 2 #define VEXWIG 3 VexW, + /* Regular opcode prefix: + 0: None + 1: Add 0x66 opcode prefix. + 2: Add 0xf2 opcode prefix. + 3: Add 0xf3 opcode prefix. + */ +#define PREFIX_NONE 0 +#define PREFIX_0X66 1 +#define PREFIX_0XF2 2 +#define PREFIX_0XF3 3 /* VEX opcode prefix: 0: VEX 0x0F opcode prefix. 1: VEX 0x0F38 opcode prefix. @@ -575,7 +585,7 @@ enum #define XOP08 3 #define XOP09 4 #define XOP0A 5 - VexOpcode, + OpcodePrefix, /* number of VEX source operands: 0: <= 2 source operands. 1: 2 XOP source operands. @@ -720,7 +730,7 @@ typedef struct i386_opcode_modifier unsigned int vex:2; unsigned int vexvvvv:2; unsigned int vexw:2; - unsigned int vexopcode:3; + unsigned int opcodeprefix:3; unsigned int vexsources:2; unsigned int sib:3; unsigned int sse2avx:1; |