summaryrefslogtreecommitdiff
path: root/nasm.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2013-11-28 12:11:24 -0800
committerH. Peter Anvin <hpa@zytor.com>2013-11-28 12:21:11 -0800
commit621a69ac5c2c2e3339c0bc0cb3e9cbf2c136bebf (patch)
tree4b2ac40d8cf58e619db984114583f80cf78a9adc /nasm.h
parent2e15eca688ac1550ab26be0a071df1e868776449 (diff)
downloadnasm-621a69ac5c2c2e3339c0bc0cb3e9cbf2c136bebf.tar.gz
Add {vex3} and {vex2} prefixes by analogy with {evex}
Allow specifying {vex3} or {vex2} (the latter is currently always redundant, unless we end up with instructions at some point can be specified with legacy prefixes or VEX) to select a specific encoding of VEX-encoded instructions. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'nasm.h')
-rw-r--r--nasm.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/nasm.h b/nasm.h
index 87e82d26..f499c49a 100644
--- a/nasm.h
+++ b/nasm.h
@@ -565,6 +565,8 @@ enum prefixes { /* instruction prefixes */
P_XRELEASE,
P_BND,
P_EVEX,
+ P_VEX3,
+ P_VEX2,
PREFIX_ENUM_LIMIT
};
@@ -647,7 +649,7 @@ enum prefix_pos {
PPS_SEG, /* Segment override prefix */
PPS_OSIZE, /* Operand size prefix */
PPS_ASIZE, /* Address size prefix */
- PPS_EVEX, /* EVEX prefix */
+ PPS_VEX, /* VEX type */
MAXPREFIX /* Total number of prefix slots */
};