summaryrefslogtreecommitdiff
path: root/insns.pl
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2013-11-10 11:45:24 +0400
committerCyrill Gorcunov <gorcunov@gmail.com>2013-11-24 13:21:04 +0400
commitea882d0b595be687d34db59cd32a174970e56456 (patch)
treeed36cb9b155082f59b85034abfad0c51d477dc6a /insns.pl
parent970df6f47f3437996e98f581e53cde1f66518a0c (diff)
downloadnasm-ea882d0b595be687d34db59cd32a174970e56456.tar.gz
nasm-ea882d0b595be687d34db59cd32a174970e56456.tar.bz2
nasm-ea882d0b595be687d34db59cd32a174970e56456.zip
insns: Restore back MMX,FPU flags
In commit 9bb987d8e0330429afba42015b1fc7c7ca0d1b16 we had to drop some flags due to flags type used in nasm code. Since now flags internal structure is reworked, we can restore them back. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'insns.pl')
-rwxr-xr-xinsns.pl15
1 files changed, 0 insertions, 15 deletions
diff --git a/insns.pl b/insns.pl
index bf91469..c9d7b7f 100755
--- a/insns.pl
+++ b/insns.pl
@@ -433,10 +433,6 @@ sub format_insn($$$$$) {
my $num, $nd = 0, $rawflags, $flagsindex;
my @bytecode;
my $op, @ops, $opp, @opx, @oppx, @decos, @opevex;
- my @iflags = ( "FPU", "MMX", "3DNOW", "SSE", "SSE2",
- "SSE3", "VMX", "SSSE3", "SSE4A", "SSE41",
- "SSE42", "SSE5", "AVX", "AVX2", "AVX512",
- "FMA", "BMI1", "BMI2", "TBM", "RTM", "INVPCID");
return (undef, undef) if $operands eq "ignore";
@@ -486,17 +482,6 @@ sub format_insn($$$$$) {
}
$decorators =~ tr/a-z/A-Z/;
- # check if two different insn set types are set
- $cnt = 0;
- foreach $fla (split(/,/, $flags)) {
- if (grep(/$fla/, @iflags)) {
- $cnt++;
- if ($cnt >= 2) {
- die "Too many insn set flags in $flags\n";
- }
- }
- }
-
# format the flags
$nd = 1 if $flags =~ /(^|\,)ND($|\,)/;
$flags =~ s/(^|\,)ND($|\,)/\1/g;