Skip to content

Commit 853000b

Browse files
Daniel SmithAmanieu
authored andcommitted
Add __mmask8 type
1 parent 02e0aa1 commit 853000b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

crates/stdarch-verify/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ fn to_type(t: &syn::Type) -> proc_macro2::TokenStream {
145145
"__m512" => quote! { &M512 },
146146
"__m512d" => quote! { &M512D },
147147
"__m512i" => quote! { &M512I },
148+
"__mmask8" => quote! { &MMASK8 },
148149
"__mmask16" => quote! { &MMASK16 },
149150
"__m64" => quote! { &M64 },
150151
"bool" => quote! { &BOOL },

crates/stdarch-verify/tests/x86-intel.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ static M256D: Type = Type::M256D;
5353
static M512: Type = Type::M512;
5454
static M512I: Type = Type::M512I;
5555
static M512D: Type = Type::M512D;
56+
static MMASK8: Type = Type::MMASK8;
5657
static MMASK16: Type = Type::MMASK16;
5758

5859
static TUPLE: Type = Type::Tuple;
@@ -76,6 +77,7 @@ enum Type {
7677
M512,
7778
M512D,
7879
M512I,
80+
MMASK8,
7981
MMASK16,
8082
Tuple,
8183
CpuidResult,
@@ -653,6 +655,7 @@ fn equate(t: &Type, intel: &str, intrinsic: &str, is_const: bool) -> Result<(),
653655
(&Type::ConstPtr(&Type::M512I), "__m512i const*") => {}
654656
(&Type::ConstPtr(&Type::M512D), "__m512d const*") => {}
655657

658+
(&Type::MMASK8, "__mmask8") => {}
656659
(&Type::MMASK16, "__mmask16") => {}
657660

658661
// This is a macro (?) in C which seems to mutate its arguments, but

0 commit comments

Comments
 (0)