diff options
author | Jin Kyu Song <jin.kyu.song@intel.com> | 2013-11-26 17:27:48 -0800 |
---|---|---|
committer | Jin Kyu Song <jin.kyu.song@intel.com> | 2013-11-27 15:43:33 -0800 |
commit | 6cfa968e8d3ef6344ef3e92b37d64a277124ee29 (patch) | |
tree | 92d4a6a08785eb99527de35c9406f4da004a29e0 /insns.pl | |
parent | 08ae610ec96d2f07543eb0caf90ec429ddf89f32 (diff) | |
download | nasm-6cfa968e8d3ef6344ef3e92b37d64a277124ee29.tar.gz nasm-6cfa968e8d3ef6344ef3e92b37d64a277124ee29.tar.bz2 nasm-6cfa968e8d3ef6344ef3e92b37d64a277124ee29.zip |
iflags: Add IF_EVEX for checking {evex} availability
For checking the availability of {evex} prefix, AVX512 iflag
has been used. But this is a flag for an instruction set
not for an encoding scheme. And there are some AVX512 instructions
encoded with VEX prefix.
So a new instruction flag (IF_EVEX) is added for the instructions
which are actually encoded with EVEX prefix.
This flag is automatically added by insns.pl, so no need to add manually
in insns.dat.
Signed-off-by: Jin Kyu Song <jin.kyu.song@intel.com>
Diffstat (limited to 'insns.pl')
-rwxr-xr-x | insns.pl | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -495,9 +495,7 @@ sub format_insn($$$$$) { $nd = 1 if $flags =~ /(^|\,)ND($|\,)/; $flags =~ s/(^|\,)ND($|\,)/\1/g; $flags =~ s/(^|\,)X64($|\,)/\1LONG,X86_64\2/g; - $flags =~ s/(^|\,)AVX512CD($|\,)/\1AVX512CD,AVX512\2/g; - $flags =~ s/(^|\,)AVX512ER($|\,)/\1AVX512ER,AVX512\2/g; - $flags =~ s/(^|\,)AVX512PF($|\,)/\1AVX512PF,AVX512\2/g; + $flags .= ",EVEX" if ($codes =~ /evex\./); $rawflags = $flags; $flagsindex = insns_flag_index(split(',',$flags)); |