From 48b086a8279d753a89c6379f1d6c1b651c4e2882 Mon Sep 17 00:00:00 2001 From: Daniel Smith Date: Wed, 27 May 2020 22:35:36 +0000 Subject: [PATCH] Add __mmask8 type --- library/stdarch/crates/stdarch-verify/src/lib.rs | 1 + library/stdarch/crates/stdarch-verify/tests/x86-intel.rs | 3 +++ 2 files changed, 4 insertions(+) diff --git a/library/stdarch/crates/stdarch-verify/src/lib.rs b/library/stdarch/crates/stdarch-verify/src/lib.rs index c56fb0de7ea9..62ad41c48f19 100644 --- a/library/stdarch/crates/stdarch-verify/src/lib.rs +++ b/library/stdarch/crates/stdarch-verify/src/lib.rs @@ -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 }, diff --git a/library/stdarch/crates/stdarch-verify/tests/x86-intel.rs b/library/stdarch/crates/stdarch-verify/tests/x86-intel.rs index 572de603d348..bf8ede607126 100644 --- a/library/stdarch/crates/stdarch-verify/tests/x86-intel.rs +++ b/library/stdarch/crates/stdarch-verify/tests/x86-intel.rs @@ -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