Add __mmask8 type
This commit is contained in:
parent
e0ffa88fe7
commit
48b086a827
2 changed files with 4 additions and 0 deletions
|
|
@ -145,6 +145,7 @@ fn to_type(t: &syn::Type) -> proc_macro2::TokenStream {
|
|||
"__m512" => quote! { &M512 },
|
||||
"__m512d" => quote! { &M512D },
|
||||
"__m512i" => quote! { &M512I },
|
||||
"__mmask8" => quote! { &MMASK8 },
|
||||
"__mmask16" => quote! { &MMASK16 },
|
||||
"__m64" => quote! { &M64 },
|
||||
"bool" => quote! { &BOOL },
|
||||
|
|
|
|||
|
|
@ -53,6 +53,7 @@ static M256D: Type = Type::M256D;
|
|||
static M512: Type = Type::M512;
|
||||
static M512I: Type = Type::M512I;
|
||||
static M512D: Type = Type::M512D;
|
||||
static MMASK8: Type = Type::MMASK8;
|
||||
static MMASK16: Type = Type::MMASK16;
|
||||
|
||||
static TUPLE: Type = Type::Tuple;
|
||||
|
|
@ -76,6 +77,7 @@ enum Type {
|
|||
M512,
|
||||
M512D,
|
||||
M512I,
|
||||
MMASK8,
|
||||
MMASK16,
|
||||
Tuple,
|
||||
CpuidResult,
|
||||
|
|
@ -653,6 +655,7 @@ fn equate(t: &Type, intel: &str, intrinsic: &str, is_const: bool) -> Result<(),
|
|||
(&Type::ConstPtr(&Type::M512I), "__m512i const*") => {}
|
||||
(&Type::ConstPtr(&Type::M512D), "__m512d const*") => {}
|
||||
|
||||
(&Type::MMASK8, "__mmask8") => {}
|
||||
(&Type::MMASK16, "__mmask16") => {}
|
||||
|
||||
// This is a macro (?) in C which seems to mutate its arguments, but
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue