diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-05-03 21:42:34 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-05-03 21:42:34 -0700 |
commit | a04019c7f4e95d862bce855301e28ba1e7c27dba (patch) | |
tree | 06bf224f620c6624ba009417f2b0bf5ec4c89f7e /nasm.h | |
parent | 34c768fcc55476fa94c997294477693c436b438b (diff) | |
download | nasm-a04019c7f4e95d862bce855301e28ba1e7c27dba.tar.gz nasm-a04019c7f4e95d862bce855301e28ba1e7c27dba.tar.bz2 nasm-a04019c7f4e95d862bce855301e28ba1e7c27dba.zip |
Infrastructure support for AMD's new XOP prefix
Handle AMD's XOP prefixes; they use basically the same encoding as VEX
prefixes, so treat them simply as a variant of VEX.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'nasm.h')
-rw-r--r-- | nasm.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -599,7 +599,7 @@ enum ccode { /* condition code names */ #define REX_H 0x80 /* High register present, REX forbidden */ #define REX_D 0x0100 /* Instruction uses DREX instead of REX */ #define REX_OC 0x0200 /* DREX suffix has the OC0 bit set */ -#define REX_V 0x0400 /* Instruction uses VEX instead of REX */ +#define REX_V 0x0400 /* Instruction uses VEX/XOP instead of REX */ /* * Note that because segment registers may be used as instruction @@ -702,7 +702,7 @@ typedef struct insn { /* an instruction itself */ bool forw_ref; /* is there a forward reference? */ int rex; /* Special REX Prefix */ int drexdst; /* Destination register for DREX/VEX suffix */ - int vex_m; /* M register for VEX prefix */ + int vex_cm; /* Class and M field for VEX prefix */ int vex_wlp; /* W, P and L information for VEX prefix */ } insn; |