diff options
author | H. Peter Anvin <hpa@zytor.com> | 2013-11-28 12:11:24 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2013-11-28 12:21:11 -0800 |
commit | 621a69ac5c2c2e3339c0bc0cb3e9cbf2c136bebf (patch) | |
tree | 4b2ac40d8cf58e619db984114583f80cf78a9adc /parser.c | |
parent | 2e15eca688ac1550ab26be0a071df1e868776449 (diff) | |
download | nasm-621a69ac5c2c2e3339c0bc0cb3e9cbf2c136bebf.tar.gz nasm-621a69ac5c2c2e3339c0bc0cb3e9cbf2c136bebf.tar.bz2 nasm-621a69ac5c2c2e3339c0bc0cb3e9cbf2c136bebf.zip |
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 'parser.c')
-rw-r--r-- | parser.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -102,7 +102,9 @@ static int prefix_slot(int prefix) case P_ASP: return PPS_ASIZE; case P_EVEX: - return PPS_EVEX; + case P_VEX3: + case P_VEX2: + return PPS_VEX; default: nasm_error(ERR_PANIC, "Invalid value %d passed to prefix_slot()", prefix); return -1; |