From 1040ec5e0fe1287fc949934204e36f75c1cac82d Mon Sep 17 00:00:00 2001 From: Asger Hautop Drewsen Date: Mon, 28 Sep 2026 16:53:37 +0100 Subject: [PATCH 01/43] docs: Fix typo in `__get_cpuid_max` description --- library/stdarch/crates/core_arch/src/x86/cpuid.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/stdarch/crates/core_arch/src/x86/cpuid.rs b/library/stdarch/crates/core_arch/src/x86/cpuid.rs index 3f13ea8369bb8..f74574fb53dec 100644 --- a/library/stdarch/crates/core_arch/src/x86/cpuid.rs +++ b/library/stdarch/crates/core_arch/src/x86/cpuid.rs @@ -111,7 +111,7 @@ pub fn __cpuid(leaf: u32) -> CpuidResult { /// Returns the EAX and EBX register after calling CPUID with the provided `leaf`, /// with `sub_leaf` set to 0. /// -/// If `leaf` if 0 or `0x80000000`, the first tuple argument contains the maximum +/// If `leaf` is 0 or `0x80000000`, the first tuple argument contains the maximum /// supported basic or extended leaf, respectively. /// /// See also [`__cpuid`](fn.__cpuid.html) and From 09831964a5f6fea316b322a5ecf0bcb6b5c3f04d Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Wed, 19 Aug 2026 22:49:14 +0200 Subject: [PATCH 02/43] assert_instr: add support for explicit exclusion of bad instructions --- .../crates/assert-instr-macro/src/lib.rs | 85 ++++++++++++------- .../stdarch/crates/core_arch/src/x86/sse2.rs | 4 +- .../stdarch/crates/stdarch-gen-arm/README.md | 2 +- .../stdarch/crates/stdarch-test/src/lib.rs | 12 ++- 4 files changed, 66 insertions(+), 37 deletions(-) diff --git a/library/stdarch/crates/assert-instr-macro/src/lib.rs b/library/stdarch/crates/assert-instr-macro/src/lib.rs index 839aae67cb2b0..224e8b6e62708 100644 --- a/library/stdarch/crates/assert-instr-macro/src/lib.rs +++ b/library/stdarch/crates/assert-instr-macro/src/lib.rs @@ -35,6 +35,7 @@ pub fn assert_instr( }; let instr = &invoc.instr; + let not = invoc.not; let name = &func.sig.ident; let maybe_allow_deprecated = if func .attrs @@ -179,7 +180,7 @@ pub fn assert_instr( fn #assert_name() { #to_test - ::stdarch_test::assert(#shim_name as usize, stringify!(#shim_name), #instr); + ::stdarch_test::assert(#shim_name as usize, stringify!(#shim_name), #instr, &[#(#not),*]); } }; @@ -192,51 +193,71 @@ pub fn assert_instr( struct Invoc { instr: String, + not: Vec, args: Vec<(syn::Ident, syn::Expr)>, } +fn parse_instr(input: syn::parse::ParseStream<'_>) -> syn::Result { + use syn::{Token, ext::IdentExt}; + + let mut instr = String::new(); + while !input.is_empty() { + if let Ok(ident) = syn::Ident::parse_any(input) { + instr.push_str(&ident.to_string()); + continue; + } + if input.parse::().is_ok() { + instr.push('.'); + continue; + } + if let Ok(s) = input.parse::() { + instr.push_str(&s.value()); + continue; + } + // Some other token, must be start of the next thing. + break; + } + if instr.is_empty() { + return Err(input.error("expected an instruction")); + } + Ok(instr) +} + impl syn::parse::Parse for Invoc { fn parse(input: syn::parse::ParseStream<'_>) -> syn::Result { - use syn::{Token, ext::IdentExt}; + use syn::{Token, parenthesized}; + + let instr = parse_instr(input)?; + let mut not = Vec::new(); + let mut args = Vec::new(); - let mut instr = String::new(); while !input.is_empty() { - if input.parse::().is_ok() { - break; - } - if let Ok(ident) = syn::Ident::parse_any(input) { - instr.push_str(&ident.to_string()); - continue; - } - if input.parse::().is_ok() { - instr.push('.'); - continue; + // Parse the comma after the previous thing + if input.parse::().is_err() { + return Err(input.error("extra tokens at end")); } - if let Ok(s) = input.parse::() { - instr.push_str(&s.value()); + + // This is either `not(instr)` or `arg = val`. + // We treat `not` as a magic identifier here. + + let name = input.parse::()?; + + if name == "not" { + let content; + parenthesized!(content in input); + let not_instr = parse_instr(&content)?; + if !content.is_empty() { + return Err(input.error("expected just an instruction in `not(...)`")); + } + not.push(not_instr); continue; } - println!("{:?}", input.cursor().token_stream()); - return Err(input.error("expected an instruction")); - } - if instr.is_empty() { - return Err(input.error("expected an instruction before comma")); - } - let mut args = Vec::new(); - while !input.is_empty() { - let name = input.parse::()?; + input.parse::()?; let expr = input.parse::()?; args.push((name, expr)); - - if input.parse::().is_err() { - if !input.is_empty() { - return Err(input.error("extra tokens at end")); - } - break; - } } - Ok(Self { instr, args }) + Ok(Self { instr, not, args }) } } diff --git a/library/stdarch/crates/core_arch/src/x86/sse2.rs b/library/stdarch/crates/core_arch/src/x86/sse2.rs index 4d5b23dc7225b..76099b301f768 100644 --- a/library/stdarch/crates/core_arch/src/x86/sse2.rs +++ b/library/stdarch/crates/core_arch/src/x86/sse2.rs @@ -1485,7 +1485,7 @@ pub const fn _mm_move_epi64(a: __m128i) -> __m128i { /// [Intel's documentation](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_packs_epi16) #[inline] #[target_feature(enable = "sse2")] -#[cfg_attr(test, assert_instr(packsswb))] +#[cfg_attr(test, assert_instr(packsswb, not(pminsw), not(pmaxsw)))] #[stable(feature = "simd_x86", since = "1.27.0")] pub fn _mm_packs_epi16(a: __m128i, b: __m128i) -> __m128i { unsafe { transmute(packsswb(a.as_i16x8(), b.as_i16x8())) } @@ -1509,7 +1509,7 @@ pub fn _mm_packs_epi32(a: __m128i, b: __m128i) -> __m128i { /// [Intel's documentation](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_packus_epi16) #[inline] #[target_feature(enable = "sse2")] -#[cfg_attr(test, assert_instr(packuswb))] +#[cfg_attr(test, assert_instr(packuswb, not(pminsw), not(pmaxsw)))] #[stable(feature = "simd_x86", since = "1.27.0")] pub fn _mm_packus_epi16(a: __m128i, b: __m128i) -> __m128i { unsafe { transmute(packuswb(a.as_i16x8(), b.as_i16x8())) } diff --git a/library/stdarch/crates/stdarch-gen-arm/README.md b/library/stdarch/crates/stdarch-gen-arm/README.md index 970721681c04a..1a10afedb52bd 100644 --- a/library/stdarch/crates/stdarch-gen-arm/README.md +++ b/library/stdarch/crates/stdarch-gen-arm/README.md @@ -91,7 +91,7 @@ attribute: - `target_features` (_Optional_) - A sequence of target features to enable for this intrinsic (merged with any global `arch_cfgs` settings). - `assert_instr` (_Optional_) - - A sequence of strings expected to be found in the assembly. Required if `attr` is not set. + - A string expected to be found in the assembly, followed by value assignments for const generic arguments to be used for this test. Required if `attr` is not set. - `safety` (_Optional_) - Use `safe`, or map `unsafe:` to a sequence of unsafety comments: - `custom: ""` diff --git a/library/stdarch/crates/stdarch-test/src/lib.rs b/library/stdarch/crates/stdarch-test/src/lib.rs index 9ef25a7957c1d..61451034cd3a0 100644 --- a/library/stdarch/crates/stdarch-test/src/lib.rs +++ b/library/stdarch/crates/stdarch-test/src/lib.rs @@ -54,7 +54,7 @@ impl hash::Hash for Function { /// /// This asserts that the function at `fnptr` contains the instruction /// `expected` provided. -pub fn assert(shim_addr: usize, fnname: &str, expected: &str) { +pub fn assert(shim_addr: usize, fnname: &str, expected: &str, not: &[&str]) { // Make sure that the shim is not removed black_box(shim_addr); @@ -100,6 +100,12 @@ pub fn assert(shim_addr: usize, fnname: &str, expected: &str) { // && !instruction[expected.len()..].starts_with(|c: char| c.is_ascii_alphanumeric()) }); + let found_bad = not + .iter() + // We deliberately only check `sarts_with` here, so one can exclude a bunch of related + // instructions at once. + .find(|not| instrs.iter().any(|instr| instr.starts_with(**not))); + // Look for subroutine call instructions in the disassembly to detect whether // inlining failed: all intrinsics are `#[inline(always)]`, so calling one // intrinsic from another should not generate subroutine call instructions. @@ -191,7 +197,7 @@ pub fn assert(shim_addr: usize, fnname: &str, expected: &str) { ); let probably_only_one_instruction = instrs.len() < instruction_limit; - if found && probably_only_one_instruction && !inlining_failed { + if found && found_bad.is_none() && probably_only_one_instruction && !inlining_failed { return; } @@ -204,6 +210,8 @@ pub fn assert(shim_addr: usize, fnname: &str, expected: &str) { if !found { panic!("failed to find instruction `{expected}` in the disassembly"); + } else if let Some(bad) = found_bad { + panic!("instruction found, but the disassembly also contains the bad instructions `{bad}`"); } else if !probably_only_one_instruction { panic!( "instruction found, but the disassembly contains too many \ From 6a28c4652e3fbea8b351b3e6eaef11584cedf297 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Wed, 19 Aug 2026 23:06:24 +0200 Subject: [PATCH 03/43] make assert_instr total instruction limit configurable per-test --- .../crates/assert-instr-macro/src/lib.rs | 31 ++++- .../stdarch/crates/core_arch/src/x86/avx2.rs | 8 +- .../stdarch/crates/core_arch/src/x86/sse2.rs | 6 +- .../stdarch/crates/core_arch/src/x86/sse41.rs | 2 +- .../stdarch/crates/stdarch-test/src/lib.rs | 123 +++++++++--------- 5 files changed, 96 insertions(+), 74 deletions(-) diff --git a/library/stdarch/crates/assert-instr-macro/src/lib.rs b/library/stdarch/crates/assert-instr-macro/src/lib.rs index 224e8b6e62708..47f58a8533694 100644 --- a/library/stdarch/crates/assert-instr-macro/src/lib.rs +++ b/library/stdarch/crates/assert-instr-macro/src/lib.rs @@ -36,6 +36,11 @@ pub fn assert_instr( let instr = &invoc.instr; let not = invoc.not; + let limit = match invoc.limit { + None => quote! { None }, + Some(l) => quote! { Some(#l) }, + }; + let name = &func.sig.ident; let maybe_allow_deprecated = if func .attrs @@ -180,7 +185,7 @@ pub fn assert_instr( fn #assert_name() { #to_test - ::stdarch_test::assert(#shim_name as usize, stringify!(#shim_name), #instr, &[#(#not),*]); + ::stdarch_test::assert(#shim_name as usize, stringify!(#shim_name), #instr, &[#(#not),*], #limit); } }; @@ -194,6 +199,7 @@ pub fn assert_instr( struct Invoc { instr: String, not: Vec, + limit: Option, args: Vec<(syn::Ident, syn::Expr)>, } @@ -229,6 +235,7 @@ impl syn::parse::Parse for Invoc { let instr = parse_instr(input)?; let mut not = Vec::new(); + let mut limit = None; let mut args = Vec::new(); while !input.is_empty() { @@ -236,9 +243,13 @@ impl syn::parse::Parse for Invoc { if input.parse::().is_err() { return Err(input.error("extra tokens at end")); } + // Handle trailing comma. + if input.is_empty() { + break; + } - // This is either `not(instr)` or `arg = val`. - // We treat `not` as a magic identifier here. + // This is either `not(instr)` or `limit(n)` or `arg = val`. + // We treat `not` and `limit` as a magic identifier here. let name = input.parse::()?; @@ -252,12 +263,24 @@ impl syn::parse::Parse for Invoc { not.push(not_instr); continue; } + if name == "limit" { + let content; + parenthesized!(content in input); + let n = content.parse::()?; + limit = Some(n); + continue; + } input.parse::()?; let expr = input.parse::()?; args.push((name, expr)); } - Ok(Self { instr, not, args }) + Ok(Self { + instr, + not, + limit, + args, + }) } } diff --git a/library/stdarch/crates/core_arch/src/x86/avx2.rs b/library/stdarch/crates/core_arch/src/x86/avx2.rs index 56dacd1f0970c..01874cdf113c6 100644 --- a/library/stdarch/crates/core_arch/src/x86/avx2.rs +++ b/library/stdarch/crates/core_arch/src/x86/avx2.rs @@ -2309,7 +2309,7 @@ pub const fn _mm256_or_si256(a: __m256i, b: __m256i) -> __m256i { /// [Intel's documentation](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm256_packs_epi16) #[inline] #[target_feature(enable = "avx2")] -#[cfg_attr(test, assert_instr(vpacksswb))] +#[cfg_attr(test, assert_instr(vpacksswb, limit(2)))] #[stable(feature = "simd_x86", since = "1.27.0")] pub fn _mm256_packs_epi16(a: __m256i, b: __m256i) -> __m256i { unsafe { transmute(packsswb(a.as_i16x16(), b.as_i16x16())) } @@ -2321,7 +2321,7 @@ pub fn _mm256_packs_epi16(a: __m256i, b: __m256i) -> __m256i { /// [Intel's documentation](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm256_packs_epi32) #[inline] #[target_feature(enable = "avx2")] -#[cfg_attr(test, assert_instr(vpackssdw))] +#[cfg_attr(test, assert_instr(vpackssdw, limit(2)))] #[stable(feature = "simd_x86", since = "1.27.0")] pub fn _mm256_packs_epi32(a: __m256i, b: __m256i) -> __m256i { unsafe { transmute(packssdw(a.as_i32x8(), b.as_i32x8())) } @@ -2333,7 +2333,7 @@ pub fn _mm256_packs_epi32(a: __m256i, b: __m256i) -> __m256i { /// [Intel's documentation](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm256_packus_epi16) #[inline] #[target_feature(enable = "avx2")] -#[cfg_attr(test, assert_instr(vpackuswb))] +#[cfg_attr(test, assert_instr(vpackuswb, limit(2)))] #[stable(feature = "simd_x86", since = "1.27.0")] pub fn _mm256_packus_epi16(a: __m256i, b: __m256i) -> __m256i { unsafe { transmute(packuswb(a.as_i16x16(), b.as_i16x16())) } @@ -2345,7 +2345,7 @@ pub fn _mm256_packus_epi16(a: __m256i, b: __m256i) -> __m256i { /// [Intel's documentation](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm256_packus_epi32) #[inline] #[target_feature(enable = "avx2")] -#[cfg_attr(test, assert_instr(vpackusdw))] +#[cfg_attr(test, assert_instr(vpackusdw, limit(2)))] #[stable(feature = "simd_x86", since = "1.27.0")] pub fn _mm256_packus_epi32(a: __m256i, b: __m256i) -> __m256i { unsafe { transmute(packusdw(a.as_i32x8(), b.as_i32x8())) } diff --git a/library/stdarch/crates/core_arch/src/x86/sse2.rs b/library/stdarch/crates/core_arch/src/x86/sse2.rs index 76099b301f768..d825522effe60 100644 --- a/library/stdarch/crates/core_arch/src/x86/sse2.rs +++ b/library/stdarch/crates/core_arch/src/x86/sse2.rs @@ -1485,7 +1485,7 @@ pub const fn _mm_move_epi64(a: __m128i) -> __m128i { /// [Intel's documentation](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_packs_epi16) #[inline] #[target_feature(enable = "sse2")] -#[cfg_attr(test, assert_instr(packsswb, not(pminsw), not(pmaxsw)))] +#[cfg_attr(test, assert_instr(packsswb, limit(2), not(pminsw), not(pmaxsw)))] #[stable(feature = "simd_x86", since = "1.27.0")] pub fn _mm_packs_epi16(a: __m128i, b: __m128i) -> __m128i { unsafe { transmute(packsswb(a.as_i16x8(), b.as_i16x8())) } @@ -1497,7 +1497,7 @@ pub fn _mm_packs_epi16(a: __m128i, b: __m128i) -> __m128i { /// [Intel's documentation](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_packs_epi32) #[inline] #[target_feature(enable = "sse2")] -#[cfg_attr(test, assert_instr(packssdw))] +#[cfg_attr(test, assert_instr(packssdw, limit(2)))] #[stable(feature = "simd_x86", since = "1.27.0")] pub fn _mm_packs_epi32(a: __m128i, b: __m128i) -> __m128i { unsafe { transmute(packssdw(a.as_i32x4(), b.as_i32x4())) } @@ -1509,7 +1509,7 @@ pub fn _mm_packs_epi32(a: __m128i, b: __m128i) -> __m128i { /// [Intel's documentation](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_packus_epi16) #[inline] #[target_feature(enable = "sse2")] -#[cfg_attr(test, assert_instr(packuswb, not(pminsw), not(pmaxsw)))] +#[cfg_attr(test, assert_instr(packuswb, limit(2), not(pminsw), not(pmaxsw)))] #[stable(feature = "simd_x86", since = "1.27.0")] pub fn _mm_packus_epi16(a: __m128i, b: __m128i) -> __m128i { unsafe { transmute(packuswb(a.as_i16x8(), b.as_i16x8())) } diff --git a/library/stdarch/crates/core_arch/src/x86/sse41.rs b/library/stdarch/crates/core_arch/src/x86/sse41.rs index b9f60cb8b8416..5b0afcd338df7 100644 --- a/library/stdarch/crates/core_arch/src/x86/sse41.rs +++ b/library/stdarch/crates/core_arch/src/x86/sse41.rs @@ -424,7 +424,7 @@ pub const fn _mm_min_epu32(a: __m128i, b: __m128i) -> __m128i { /// [Intel's documentation](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_packus_epi32) #[inline] #[target_feature(enable = "sse4.1")] -#[cfg_attr(test, assert_instr(packusdw))] +#[cfg_attr(test, assert_instr(packusdw, limit(2)))] #[stable(feature = "simd_x86", since = "1.27.0")] pub fn _mm_packus_epi32(a: __m128i, b: __m128i) -> __m128i { unsafe { transmute(packusdw(a.as_i32x4(), b.as_i32x4())) } diff --git a/library/stdarch/crates/stdarch-test/src/lib.rs b/library/stdarch/crates/stdarch-test/src/lib.rs index 61451034cd3a0..2075e9d820ff4 100644 --- a/library/stdarch/crates/stdarch-test/src/lib.rs +++ b/library/stdarch/crates/stdarch-test/src/lib.rs @@ -54,7 +54,7 @@ impl hash::Hash for Function { /// /// This asserts that the function at `fnptr` contains the instruction /// `expected` provided. -pub fn assert(shim_addr: usize, fnname: &str, expected: &str, not: &[&str]) { +pub fn assert(shim_addr: usize, fnname: &str, expected: &str, not: &[&str], limit: Option) { // Make sure that the shim is not removed black_box(shim_addr); @@ -133,68 +133,67 @@ pub fn assert(shim_addr: usize, fnname: &str, expected: &str, not: &[&str]) { let instruction_limit = std::env::var("STDARCH_ASSERT_INSTR_LIMIT") .ok() - .map_or_else( - || match expected { - // `cpuid` returns a pretty big aggregate structure, so exempt - // it from the slightly more restrictive 22 instructions below. - "cpuid" => 30, - - // These require 8 loads and stores, so it _just_ overflows the limit - "aesencwide128kl" | "aesencwide256kl" | "aesdecwide128kl" | "aesdecwide256kl" => 24, - - // Apparently, on Windows, LLVM generates a bunch of - // saves/restores of xmm registers around these instructions, - // which exceeds the limit of 20 below. As it seems dictated by - // Windows's ABI (I believe?), we probably can't do much - // about it. - "vzeroall" | "vzeroupper" if cfg!(windows) => 30, - - // Intrinsics using `cvtpi2ps` are typically "composites" and - // in some cases exceed the limit. - "cvtpi2ps" => 25, - // core_arch/src/arm_shared/simd32 - // vfmaq_n_f32_vfma : #instructions = 26 >= 22 (limit) - "usad8" | "vfma" | "vfms" => 27, - "qadd8" | "qsub8" | "sadd8" | "sel" | "shadd8" | "shsub8" | "usub8" | "ssub8" => 29, - // core_arch/src/arm_shared/simd32 - // vst1q_s64_x4_vst1 : #instructions = 27 >= 22 (limit) - "vld3" => 28, - // core_arch/src/arm_shared/simd32 - // vld4q_lane_u32_vld4 : #instructions = 36 >= 22 (limit) - "vld4" => 37, - // core_arch/src/arm_shared/simd32 - // vst1q_s64_x4_vst1 : #instructions = 40 >= 22 (limit) - "vst1" => 41, - // core_arch/src/arm_shared/simd32 - // vst3q_u32_vst3 : #instructions = 25 >= 22 (limit) - "vst3" => 26, - // core_arch/src/arm_shared/simd32 - // vst4q_u32_vst4 : #instructions = 33 >= 22 (limit) - "vst4" => 34, - - // core_arch/src/arm_shared/simd32 - // vst1q_p64_x4_nop : #instructions = 33 >= 22 (limit) - "nop" if fnname.contains("vst1q_p64") => 34, - - // AMX intrinsics generate a lot of move instructions to load/store the tile registers - // due to Rust ABI - _ if fnname.contains("___tile") => 165, - - // Original limit was 20 instructions, but ARM DSP Intrinsics - // are exactly 20 instructions long. So, bump the limit to 22 - // instead of adding here a long list of exceptions. - _ => { - // aarch64_be may add reverse instructions which increases - // the number of instructions generated. - if cfg!(all(target_endian = "big", target_arch = "aarch64")) { - 32 - } else { - 22 - } + .map(|v| v.parse().unwrap()) + .or(limit.map(|n| n + 1)) // adjust for the `<` below: `limit = 2` means 2 instructions is okay + .unwrap_or_else(|| match expected { + // `cpuid` returns a pretty big aggregate structure, so exempt + // it from the slightly more restrictive 22 instructions below. + "cpuid" => 30, + + // These require 8 loads and stores, so it _just_ overflows the limit + "aesencwide128kl" | "aesencwide256kl" | "aesdecwide128kl" | "aesdecwide256kl" => 24, + + // Apparently, on Windows, LLVM generates a bunch of + // saves/restores of xmm registers around these instructions, + // which exceeds the limit of 20 below. As it seems dictated by + // Windows's ABI (I believe?), we probably can't do much + // about it. + "vzeroall" | "vzeroupper" if cfg!(windows) => 30, + + // Intrinsics using `cvtpi2ps` are typically "composites" and + // in some cases exceed the limit. + "cvtpi2ps" => 25, + // core_arch/src/arm_shared/simd32 + // vfmaq_n_f32_vfma : #instructions = 26 >= 22 (limit) + "usad8" | "vfma" | "vfms" => 27, + "qadd8" | "qsub8" | "sadd8" | "sel" | "shadd8" | "shsub8" | "usub8" | "ssub8" => 29, + // core_arch/src/arm_shared/simd32 + // vst1q_s64_x4_vst1 : #instructions = 27 >= 22 (limit) + "vld3" => 28, + // core_arch/src/arm_shared/simd32 + // vld4q_lane_u32_vld4 : #instructions = 36 >= 22 (limit) + "vld4" => 37, + // core_arch/src/arm_shared/simd32 + // vst1q_s64_x4_vst1 : #instructions = 40 >= 22 (limit) + "vst1" => 41, + // core_arch/src/arm_shared/simd32 + // vst3q_u32_vst3 : #instructions = 25 >= 22 (limit) + "vst3" => 26, + // core_arch/src/arm_shared/simd32 + // vst4q_u32_vst4 : #instructions = 33 >= 22 (limit) + "vst4" => 34, + + // core_arch/src/arm_shared/simd32 + // vst1q_p64_x4_nop : #instructions = 33 >= 22 (limit) + "nop" if fnname.contains("vst1q_p64") => 34, + + // AMX intrinsics generate a lot of move instructions to load/store the tile registers + // due to Rust ABI + _ if fnname.contains("___tile") => 165, + + // Original limit was 20 instructions, but ARM DSP Intrinsics + // are exactly 20 instructions long. So, bump the limit to 22 + // instead of adding here a long list of exceptions. + _ => { + // aarch64_be may add reverse instructions which increases + // the number of instructions generated. + if cfg!(all(target_endian = "big", target_arch = "aarch64")) { + 32 + } else { + 22 } - }, - |v| v.parse().unwrap(), - ); + } + }); let probably_only_one_instruction = instrs.len() < instruction_limit; if found && found_bad.is_none() && probably_only_one_instruction && !inlining_failed { From 06cdd560626427a31a171cf2861d069424812004 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Thu, 20 Aug 2026 07:50:03 +0200 Subject: [PATCH 04/43] make x86-64 asm more consistent --- library/stdarch/ci/run.sh | 8 +++++++- library/stdarch/crates/core_arch/src/x86/avx2.rs | 8 ++++---- library/stdarch/crates/core_arch/src/x86/sse2.rs | 6 +++--- library/stdarch/crates/core_arch/src/x86/sse41.rs | 2 +- 4 files changed, 15 insertions(+), 9 deletions(-) diff --git a/library/stdarch/ci/run.sh b/library/stdarch/ci/run.sh index 8c75df6afbe4f..eb0b60fc3ed08 100755 --- a/library/stdarch/ci/run.sh +++ b/library/stdarch/ci/run.sh @@ -32,8 +32,14 @@ case ${TARGET} in ;; # Some x86_64 targets enable by default more features beyond SSE2, # which cause some instruction assertion checks to fail. + # (This does not disable tests that need more features, they get enabled based on + # what the host actually supports.) x86_64-*) - export RUSTFLAGS="${RUSTFLAGS} -C target-feature=-sse3" + # We want frame pointers to be consistent across targets. On the ios_macabi target + # we cannot turn them off, so let's turn them on everywhere. + # If we ever turn these off, a bunch of `limit(...)` clauses should be reduced to + # avoid tests becoming less strict! + export RUSTFLAGS="${RUSTFLAGS} -C target-feature=-sse3 -Cforce-frame-pointers=on" ;; #Unoptimized build uses fast-isel which breaks with msa mips-* | mipsel-*) diff --git a/library/stdarch/crates/core_arch/src/x86/avx2.rs b/library/stdarch/crates/core_arch/src/x86/avx2.rs index 01874cdf113c6..eb25fc86b93ab 100644 --- a/library/stdarch/crates/core_arch/src/x86/avx2.rs +++ b/library/stdarch/crates/core_arch/src/x86/avx2.rs @@ -2309,7 +2309,7 @@ pub const fn _mm256_or_si256(a: __m256i, b: __m256i) -> __m256i { /// [Intel's documentation](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm256_packs_epi16) #[inline] #[target_feature(enable = "avx2")] -#[cfg_attr(test, assert_instr(vpacksswb, limit(2)))] +#[cfg_attr(test, assert_instr(vpacksswb, limit(5)))] #[stable(feature = "simd_x86", since = "1.27.0")] pub fn _mm256_packs_epi16(a: __m256i, b: __m256i) -> __m256i { unsafe { transmute(packsswb(a.as_i16x16(), b.as_i16x16())) } @@ -2321,7 +2321,7 @@ pub fn _mm256_packs_epi16(a: __m256i, b: __m256i) -> __m256i { /// [Intel's documentation](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm256_packs_epi32) #[inline] #[target_feature(enable = "avx2")] -#[cfg_attr(test, assert_instr(vpackssdw, limit(2)))] +#[cfg_attr(test, assert_instr(vpackssdw, limit(5)))] #[stable(feature = "simd_x86", since = "1.27.0")] pub fn _mm256_packs_epi32(a: __m256i, b: __m256i) -> __m256i { unsafe { transmute(packssdw(a.as_i32x8(), b.as_i32x8())) } @@ -2333,7 +2333,7 @@ pub fn _mm256_packs_epi32(a: __m256i, b: __m256i) -> __m256i { /// [Intel's documentation](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm256_packus_epi16) #[inline] #[target_feature(enable = "avx2")] -#[cfg_attr(test, assert_instr(vpackuswb, limit(2)))] +#[cfg_attr(test, assert_instr(vpackuswb, limit(5)))] #[stable(feature = "simd_x86", since = "1.27.0")] pub fn _mm256_packus_epi16(a: __m256i, b: __m256i) -> __m256i { unsafe { transmute(packuswb(a.as_i16x16(), b.as_i16x16())) } @@ -2345,7 +2345,7 @@ pub fn _mm256_packus_epi16(a: __m256i, b: __m256i) -> __m256i { /// [Intel's documentation](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm256_packus_epi32) #[inline] #[target_feature(enable = "avx2")] -#[cfg_attr(test, assert_instr(vpackusdw, limit(2)))] +#[cfg_attr(test, assert_instr(vpackusdw, limit(5)))] #[stable(feature = "simd_x86", since = "1.27.0")] pub fn _mm256_packus_epi32(a: __m256i, b: __m256i) -> __m256i { unsafe { transmute(packusdw(a.as_i32x8(), b.as_i32x8())) } diff --git a/library/stdarch/crates/core_arch/src/x86/sse2.rs b/library/stdarch/crates/core_arch/src/x86/sse2.rs index d825522effe60..cb8506e493a44 100644 --- a/library/stdarch/crates/core_arch/src/x86/sse2.rs +++ b/library/stdarch/crates/core_arch/src/x86/sse2.rs @@ -1485,7 +1485,7 @@ pub const fn _mm_move_epi64(a: __m128i) -> __m128i { /// [Intel's documentation](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_packs_epi16) #[inline] #[target_feature(enable = "sse2")] -#[cfg_attr(test, assert_instr(packsswb, limit(2), not(pminsw), not(pmaxsw)))] +#[cfg_attr(test, assert_instr(packsswb, limit(5), not(pminsw), not(pmaxsw)))] #[stable(feature = "simd_x86", since = "1.27.0")] pub fn _mm_packs_epi16(a: __m128i, b: __m128i) -> __m128i { unsafe { transmute(packsswb(a.as_i16x8(), b.as_i16x8())) } @@ -1497,7 +1497,7 @@ pub fn _mm_packs_epi16(a: __m128i, b: __m128i) -> __m128i { /// [Intel's documentation](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_packs_epi32) #[inline] #[target_feature(enable = "sse2")] -#[cfg_attr(test, assert_instr(packssdw, limit(2)))] +#[cfg_attr(test, assert_instr(packssdw, limit(5)))] #[stable(feature = "simd_x86", since = "1.27.0")] pub fn _mm_packs_epi32(a: __m128i, b: __m128i) -> __m128i { unsafe { transmute(packssdw(a.as_i32x4(), b.as_i32x4())) } @@ -1509,7 +1509,7 @@ pub fn _mm_packs_epi32(a: __m128i, b: __m128i) -> __m128i { /// [Intel's documentation](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_packus_epi16) #[inline] #[target_feature(enable = "sse2")] -#[cfg_attr(test, assert_instr(packuswb, limit(2), not(pminsw), not(pmaxsw)))] +#[cfg_attr(test, assert_instr(packuswb, limit(5), not(pminsw), not(pmaxsw)))] #[stable(feature = "simd_x86", since = "1.27.0")] pub fn _mm_packus_epi16(a: __m128i, b: __m128i) -> __m128i { unsafe { transmute(packuswb(a.as_i16x8(), b.as_i16x8())) } diff --git a/library/stdarch/crates/core_arch/src/x86/sse41.rs b/library/stdarch/crates/core_arch/src/x86/sse41.rs index 5b0afcd338df7..034b286f6c61e 100644 --- a/library/stdarch/crates/core_arch/src/x86/sse41.rs +++ b/library/stdarch/crates/core_arch/src/x86/sse41.rs @@ -424,7 +424,7 @@ pub const fn _mm_min_epu32(a: __m128i, b: __m128i) -> __m128i { /// [Intel's documentation](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_packus_epi32) #[inline] #[target_feature(enable = "sse4.1")] -#[cfg_attr(test, assert_instr(packusdw, limit(2)))] +#[cfg_attr(test, assert_instr(packusdw, limit(5)))] #[stable(feature = "simd_x86", since = "1.27.0")] pub fn _mm_packus_epi32(a: __m128i, b: __m128i) -> __m128i { unsafe { transmute(packusdw(a.as_i32x4(), b.as_i32x4())) } From 0f2d45dfe84bf3e828c79516e07954c86c134586 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Thu, 20 Aug 2026 14:29:24 +0200 Subject: [PATCH 05/43] add the new tests to more intrinsics --- library/stdarch/crates/core_arch/src/x86/avx2.rs | 8 ++++---- library/stdarch/crates/core_arch/src/x86/avx512bw.rs | 8 ++++---- library/stdarch/crates/core_arch/src/x86/sse2.rs | 6 +++--- library/stdarch/crates/core_arch/src/x86/sse41.rs | 2 +- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/library/stdarch/crates/core_arch/src/x86/avx2.rs b/library/stdarch/crates/core_arch/src/x86/avx2.rs index eb25fc86b93ab..aa5da02ae1577 100644 --- a/library/stdarch/crates/core_arch/src/x86/avx2.rs +++ b/library/stdarch/crates/core_arch/src/x86/avx2.rs @@ -2309,7 +2309,7 @@ pub const fn _mm256_or_si256(a: __m256i, b: __m256i) -> __m256i { /// [Intel's documentation](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm256_packs_epi16) #[inline] #[target_feature(enable = "avx2")] -#[cfg_attr(test, assert_instr(vpacksswb, limit(5)))] +#[cfg_attr(test, assert_instr(vpacksswb, limit(5), not(vpmin), not(vpmax)))] #[stable(feature = "simd_x86", since = "1.27.0")] pub fn _mm256_packs_epi16(a: __m256i, b: __m256i) -> __m256i { unsafe { transmute(packsswb(a.as_i16x16(), b.as_i16x16())) } @@ -2321,7 +2321,7 @@ pub fn _mm256_packs_epi16(a: __m256i, b: __m256i) -> __m256i { /// [Intel's documentation](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm256_packs_epi32) #[inline] #[target_feature(enable = "avx2")] -#[cfg_attr(test, assert_instr(vpackssdw, limit(5)))] +#[cfg_attr(test, assert_instr(vpackssdw, limit(5), not(vpmin), not(vpmax)))] #[stable(feature = "simd_x86", since = "1.27.0")] pub fn _mm256_packs_epi32(a: __m256i, b: __m256i) -> __m256i { unsafe { transmute(packssdw(a.as_i32x8(), b.as_i32x8())) } @@ -2333,7 +2333,7 @@ pub fn _mm256_packs_epi32(a: __m256i, b: __m256i) -> __m256i { /// [Intel's documentation](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm256_packus_epi16) #[inline] #[target_feature(enable = "avx2")] -#[cfg_attr(test, assert_instr(vpackuswb, limit(5)))] +#[cfg_attr(test, assert_instr(vpackuswb, limit(5), not(vpmin), not(vpmax)))] #[stable(feature = "simd_x86", since = "1.27.0")] pub fn _mm256_packus_epi16(a: __m256i, b: __m256i) -> __m256i { unsafe { transmute(packuswb(a.as_i16x16(), b.as_i16x16())) } @@ -2345,7 +2345,7 @@ pub fn _mm256_packus_epi16(a: __m256i, b: __m256i) -> __m256i { /// [Intel's documentation](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm256_packus_epi32) #[inline] #[target_feature(enable = "avx2")] -#[cfg_attr(test, assert_instr(vpackusdw, limit(5)))] +#[cfg_attr(test, assert_instr(vpackusdw, limit(5), not(vpmin), not(vpmax)))] #[stable(feature = "simd_x86", since = "1.27.0")] pub fn _mm256_packus_epi32(a: __m256i, b: __m256i) -> __m256i { unsafe { transmute(packusdw(a.as_i32x8(), b.as_i32x8())) } diff --git a/library/stdarch/crates/core_arch/src/x86/avx512bw.rs b/library/stdarch/crates/core_arch/src/x86/avx512bw.rs index 46aeaaadbfe33..87c4fdc184a16 100644 --- a/library/stdarch/crates/core_arch/src/x86/avx512bw.rs +++ b/library/stdarch/crates/core_arch/src/x86/avx512bw.rs @@ -6478,7 +6478,7 @@ pub fn _mm_maskz_maddubs_epi16(k: __mmask8, a: __m128i, b: __m128i) -> __m128i { #[inline] #[target_feature(enable = "avx512bw")] #[stable(feature = "stdarch_x86_avx512", since = "1.89")] -#[cfg_attr(test, assert_instr(vpackssdw))] +#[cfg_attr(test, assert_instr(vpackssdw, limit(5), not(vpmin), not(vpmax)))] pub fn _mm512_packs_epi32(a: __m512i, b: __m512i) -> __m512i { unsafe { transmute(vpackssdw(a.as_i32x16(), b.as_i32x16())) } } @@ -6573,7 +6573,7 @@ pub fn _mm_maskz_packs_epi32(k: __mmask8, a: __m128i, b: __m128i) -> __m128i { #[inline] #[target_feature(enable = "avx512bw")] #[stable(feature = "stdarch_x86_avx512", since = "1.89")] -#[cfg_attr(test, assert_instr(vpacksswb))] +#[cfg_attr(test, assert_instr(vpacksswb, limit(5), not(vpmin), not(vpmax)))] pub fn _mm512_packs_epi16(a: __m512i, b: __m512i) -> __m512i { unsafe { transmute(vpacksswb(a.as_i16x32(), b.as_i16x32())) } } @@ -6668,7 +6668,7 @@ pub fn _mm_maskz_packs_epi16(k: __mmask16, a: __m128i, b: __m128i) -> __m128i { #[inline] #[target_feature(enable = "avx512bw")] #[stable(feature = "stdarch_x86_avx512", since = "1.89")] -#[cfg_attr(test, assert_instr(vpackusdw))] +#[cfg_attr(test, assert_instr(vpackusdw, limit(5), not(vpmin), not(vpmax)))] pub fn _mm512_packus_epi32(a: __m512i, b: __m512i) -> __m512i { unsafe { transmute(vpackusdw(a.as_i32x16(), b.as_i32x16())) } } @@ -6763,7 +6763,7 @@ pub fn _mm_maskz_packus_epi32(k: __mmask8, a: __m128i, b: __m128i) -> __m128i { #[inline] #[target_feature(enable = "avx512bw")] #[stable(feature = "stdarch_x86_avx512", since = "1.89")] -#[cfg_attr(test, assert_instr(vpackuswb))] +#[cfg_attr(test, assert_instr(vpackuswb, limit(5), not(vpmin), not(vpmax)))] pub fn _mm512_packus_epi16(a: __m512i, b: __m512i) -> __m512i { unsafe { transmute(vpackuswb(a.as_i16x32(), b.as_i16x32())) } } diff --git a/library/stdarch/crates/core_arch/src/x86/sse2.rs b/library/stdarch/crates/core_arch/src/x86/sse2.rs index cb8506e493a44..7096b7cc55c52 100644 --- a/library/stdarch/crates/core_arch/src/x86/sse2.rs +++ b/library/stdarch/crates/core_arch/src/x86/sse2.rs @@ -1485,7 +1485,7 @@ pub const fn _mm_move_epi64(a: __m128i) -> __m128i { /// [Intel's documentation](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_packs_epi16) #[inline] #[target_feature(enable = "sse2")] -#[cfg_attr(test, assert_instr(packsswb, limit(5), not(pminsw), not(pmaxsw)))] +#[cfg_attr(test, assert_instr(packsswb, limit(5), not(pmin), not(pmax)))] #[stable(feature = "simd_x86", since = "1.27.0")] pub fn _mm_packs_epi16(a: __m128i, b: __m128i) -> __m128i { unsafe { transmute(packsswb(a.as_i16x8(), b.as_i16x8())) } @@ -1497,7 +1497,7 @@ pub fn _mm_packs_epi16(a: __m128i, b: __m128i) -> __m128i { /// [Intel's documentation](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_packs_epi32) #[inline] #[target_feature(enable = "sse2")] -#[cfg_attr(test, assert_instr(packssdw, limit(5)))] +#[cfg_attr(test, assert_instr(packssdw, limit(5), not(pmin), not(pmax)))] #[stable(feature = "simd_x86", since = "1.27.0")] pub fn _mm_packs_epi32(a: __m128i, b: __m128i) -> __m128i { unsafe { transmute(packssdw(a.as_i32x4(), b.as_i32x4())) } @@ -1509,7 +1509,7 @@ pub fn _mm_packs_epi32(a: __m128i, b: __m128i) -> __m128i { /// [Intel's documentation](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_packus_epi16) #[inline] #[target_feature(enable = "sse2")] -#[cfg_attr(test, assert_instr(packuswb, limit(5), not(pminsw), not(pmaxsw)))] +#[cfg_attr(test, assert_instr(packuswb, limit(5), not(pmin), not(pmax)))] #[stable(feature = "simd_x86", since = "1.27.0")] pub fn _mm_packus_epi16(a: __m128i, b: __m128i) -> __m128i { unsafe { transmute(packuswb(a.as_i16x8(), b.as_i16x8())) } diff --git a/library/stdarch/crates/core_arch/src/x86/sse41.rs b/library/stdarch/crates/core_arch/src/x86/sse41.rs index 034b286f6c61e..0c4c18916502e 100644 --- a/library/stdarch/crates/core_arch/src/x86/sse41.rs +++ b/library/stdarch/crates/core_arch/src/x86/sse41.rs @@ -424,7 +424,7 @@ pub const fn _mm_min_epu32(a: __m128i, b: __m128i) -> __m128i { /// [Intel's documentation](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_packus_epi32) #[inline] #[target_feature(enable = "sse4.1")] -#[cfg_attr(test, assert_instr(packusdw, limit(5)))] +#[cfg_attr(test, assert_instr(packusdw, limit(5), not(pmin), not(pmax)))] #[stable(feature = "simd_x86", since = "1.27.0")] pub fn _mm_packus_epi32(a: __m128i, b: __m128i) -> __m128i { unsafe { transmute(packusdw(a.as_i32x4(), b.as_i32x4())) } From 0c7dd1e770de8c04db5b652a89acdc3baa5fe7da Mon Sep 17 00:00:00 2001 From: James Barford-Evans Date: Wed, 14 Oct 2026 10:36:43 +0100 Subject: [PATCH 06/43] Add `$` to bash string interpolation --- library/stdarch/ci/intrinsic-test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/stdarch/ci/intrinsic-test.sh b/library/stdarch/ci/intrinsic-test.sh index 4b7a3d27ea4e2..3a926c3b9f7ba 100755 --- a/library/stdarch/ci/intrinsic-test.sh +++ b/library/stdarch/ci/intrinsic-test.sh @@ -43,7 +43,7 @@ INTRINSIC_TEST="--manifest-path=crates/intrinsic-test/Cargo.toml" case ${TARGET} in aarch64_be*) - export CFLAGS="-I${AARCH64_BE_TOOLCHAIN}/aarch64_be-none-linux-gnu/libc/usr/include --sysroot={AARCH64_BE_TOOLCHAIN}/aarch64_be-none-linux-gnu/libc -Wno-nonportable-vector-initialization" + export CFLAGS="-I${AARCH64_BE_TOOLCHAIN}/aarch64_be-none-linux-gnu/libc/usr/include --sysroot=${AARCH64_BE_TOOLCHAIN}/aarch64_be-none-linux-gnu/libc -Wno-nonportable-vector-initialization" ARCH=aarch64_be RUNTIME_RUSTFLAGS= ;; From a15341d3e78517706252ce759fa80d99eb6b3b26 Mon Sep 17 00:00:00 2001 From: James Barford-Evans Date: Tue, 20 Oct 2026 12:06:41 +0100 Subject: [PATCH 07/43] bfloat16 types --- library/stdarch/crates/core_arch/Cargo.toml | 5 +- .../core_arch/src/arm_shared/neon/mod.rs | 76 +++++++++++++++++++ library/stdarch/crates/core_arch/src/lib.rs | 4 +- library/stdarch/crates/core_arch/src/simd.rs | 6 ++ 4 files changed, 89 insertions(+), 2 deletions(-) diff --git a/library/stdarch/crates/core_arch/Cargo.toml b/library/stdarch/crates/core_arch/Cargo.toml index ee3eff825c790..e69705e004bce 100644 --- a/library/stdarch/crates/core_arch/Cargo.toml +++ b/library/stdarch/crates/core_arch/Cargo.toml @@ -25,7 +25,10 @@ stdarch-test = { version = "0.*", path = "../stdarch-test" } syscalls = { version = "0.6.18", default-features = false } [lints.rust] -unexpected_cfgs = { level = "warn", check-cfg = ['cfg(target_has_reliable_f16)'] } +unexpected_cfgs = { level = "warn", check-cfg = [ + 'cfg(target_has_reliable_f16b)', + 'cfg(target_has_reliable_f16)', +] } [lints.clippy] too_long_first_doc_paragraph = "allow" diff --git a/library/stdarch/crates/core_arch/src/arm_shared/neon/mod.rs b/library/stdarch/crates/core_arch/src/arm_shared/neon/mod.rs index 3af59b1dfb7cb..6d204c55dfd3d 100644 --- a/library/stdarch/crates/core_arch/src/arm_shared/neon/mod.rs +++ b/library/stdarch/crates/core_arch/src/arm_shared/neon/mod.rs @@ -48,6 +48,12 @@ pub(crate) type p16 = u16; pub(crate) type p64 = u64; pub(crate) type p128 = u128; +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[allow(non_camel_case_types)] +#[unstable(feature = "f16b", issue = "160630")] +pub(crate) type bfloat16_t = core::num::f16b; + types! { #![cfg_attr(not(target_arch = "arm"), stable(feature = "neon_intrinsics", since = "1.59.0"))] #![cfg_attr(target_arch = "arm", unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800"))] @@ -113,6 +119,18 @@ types! { pub struct float16x8_t(8 x pub(crate) f16); } +#[cfg(any(target_has_reliable_f16b, doc))] +types! { + /// Arm-specific 64-bit wide vector of four packed `f16b`. + #[doc(cfg(target_has_reliable_f16b))] + stability: [unstable(feature = "f16b", issue = "160630")] + pub struct bfloat16x4_t(4 x pub(crate) bfloat16_t); + /// Arm-specific 128-bit wide vector of eight packed `f16b`. + #[doc(cfg(target_has_reliable_f16b))] + stability: [unstable(feature = "f16b", issue = "160630")] + pub struct bfloat16x8_t(8 x pub(crate) bfloat16_t); +} + /// Arm-specific type containing two `int8x8_t` vectors. #[repr(C)] #[derive(Copy, Clone, Debug)] @@ -833,6 +851,64 @@ pub struct float16x8x4_t( pub float16x8_t, ); +/// Arm-specific type containing two `bfloat16x4_t` vectors. +#[repr(C)] +#[derive(Copy, Clone, Debug)] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[unstable(feature = "f16b", issue = "160630")] +pub struct bfloat16x4x2_t(pub bfloat16x4_t, pub bfloat16x4_t); + +/// Arm-specific type containing three `bfloat16x4_t` vectors. +#[repr(C)] +#[derive(Copy, Clone, Debug)] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[unstable(feature = "f16b", issue = "160630")] +pub struct bfloat16x4x3_t(pub bfloat16x4_t, pub bfloat16x4_t, pub bfloat16x4_t); + +/// Arm-specific type containing four `bfloat16x4_t` vectors. +#[repr(C)] +#[derive(Copy, Clone, Debug)] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[unstable(feature = "f16b", issue = "160630")] +pub struct bfloat16x4x4_t( + pub bfloat16x4_t, + pub bfloat16x4_t, + pub bfloat16x4_t, + pub bfloat16x4_t, +); + +/// Arm-specific type containing two `bfloat16x8_t` vectors. +#[repr(C)] +#[derive(Copy, Clone, Debug)] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[unstable(feature = "f16b", issue = "160630")] +pub struct bfloat16x8x2_t(pub bfloat16x8_t, pub bfloat16x8_t); + +/// Arm-specific type containing three `bfloat16x8_t` vectors. +#[repr(C)] +#[derive(Copy, Clone, Debug)] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[unstable(feature = "f16b", issue = "160630")] +pub struct bfloat16x8x3_t(pub bfloat16x8_t, pub bfloat16x8_t, pub bfloat16x8_t); + +/// Arm-specific type containing four `bfloat16x8_t` vectors. +#[repr(C)] +#[derive(Copy, Clone, Debug)] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[unstable(feature = "f16b", issue = "160630")] +pub struct bfloat16x8x4_t( + pub bfloat16x8_t, + pub bfloat16x8_t, + pub bfloat16x8_t, + pub bfloat16x8_t, +); + /// Arm-specific type containing two `float32x2_t` vectors. #[repr(C)] #[derive(Copy, Clone, Debug)] diff --git a/library/stdarch/crates/core_arch/src/lib.rs b/library/stdarch/crates/core_arch/src/lib.rs index c7e2d93b886a7..2af8a830cda04 100644 --- a/library/stdarch/crates/core_arch/src/lib.rs +++ b/library/stdarch/crates/core_arch/src/lib.rs @@ -40,7 +40,9 @@ movrs_target_feature, clflushopt_target_feature, min_adt_const_params, - num_internals + num_internals, + f16b, + cfg_target_has_reliable_f16b )] #![cfg_attr( any(target_arch = "powerpc", target_arch = "powerpc64"), diff --git a/library/stdarch/crates/core_arch/src/simd.rs b/library/stdarch/crates/core_arch/src/simd.rs index 08ee17548a01d..286f9b3bbcd09 100644 --- a/library/stdarch/crates/core_arch/src/simd.rs +++ b/library/stdarch/crates/core_arch/src/simd.rs @@ -37,6 +37,8 @@ unsafe impl SimdElement for i64 {} unsafe impl SimdElement for i128 {} unsafe impl SimdElement for f16 {} +#[cfg(any(target_has_reliable_f16b, doc))] +unsafe impl SimdElement for core::num::f16b {} unsafe impl SimdElement for f32 {} unsafe impl SimdElement for f64 {} @@ -342,6 +344,8 @@ pub(crate) type i16x4 = Simd; pub(crate) type i32x2 = Simd; pub(crate) type i64x1 = Simd; +#[cfg(any(target_has_reliable_f16b, doc))] +pub(crate) type f16bx4 = Simd; pub(crate) type f16x4 = Simd; pub(crate) type f32x2 = Simd; pub(crate) type f64x1 = Simd; @@ -358,6 +362,8 @@ pub(crate) type i16x8 = Simd; pub(crate) type i32x4 = Simd; pub(crate) type i64x2 = Simd; +#[cfg(any(target_has_reliable_f16b, doc))] +pub(crate) type f16bx8 = Simd; pub(crate) type f16x8 = Simd; pub(crate) type f32x4 = Simd; pub(crate) type f64x2 = Simd; From fdaa68373d7efc1c23bace32f0e42b95ea72ce9a Mon Sep 17 00:00:00 2001 From: James Barford-Evans Date: Tue, 20 Oct 2026 12:06:41 +0100 Subject: [PATCH 08/43] Update Arm intrinsic generator --- .../crates/stdarch-gen-arm/src/fn_suffix.rs | 51 ++++++++++++------- .../crates/stdarch-gen-arm/src/typekinds.rs | 32 ++++++++++-- 2 files changed, 61 insertions(+), 22 deletions(-) diff --git a/library/stdarch/crates/stdarch-gen-arm/src/fn_suffix.rs b/library/stdarch/crates/stdarch-gen-arm/src/fn_suffix.rs index 6fba3dc74476e..3b27b533b0c97 100644 --- a/library/stdarch/crates/stdarch-gen-arm/src/fn_suffix.rs +++ b/library/stdarch/crates/stdarch-gen-arm/src/fn_suffix.rs @@ -44,7 +44,7 @@ pub fn type_to_size(str_type: &str) -> i32 { "int8x8_t" | "int8x16_t" | "i8" | "s8" | "uint8x8_t" | "uint8x16_t" | "u8" | "poly8x8_t" | "poly8x16_t" => 8, "int16x4_t" | "int16x8_t" | "i16" | "s16" | "uint16x4_t" | "uint16x8_t" | "u16" - | "float16x4_t" | "float16x8_t" | "_f16" | "poly16x4_t" | "poly16x8_t" => 16, + | "_bf16" | "float16x4_t" | "float16x8_t" | "_f16" | "poly16x4_t" | "poly16x8_t" => 16, "int32x2_t" | "int32x4_t" | "i32" | "s32" | "uint32x2_t" | "uint32x4_t" | "u32" | "float32x2_t" | "float32x4_t" | "f32" => 32, "int64x1_t" | "int64x2_t" | "i64" | "s64" | "uint64x1_t" | "uint64x2_t" | "u64" @@ -54,9 +54,17 @@ pub fn type_to_size(str_type: &str) -> i32 { } } +fn is_bfloat(ty: &VectorType) -> bool { + match ty.base_type() { + BaseType::Sized(BaseTypeKind::BFloat, _) => true, + _ => false, + } +} + fn neon_get_base_and_char(ty: &VectorType) -> (u32, char, bool) { let lanes = ty.lanes(); match ty.base_type() { + BaseType::Sized(BaseTypeKind::BFloat, size) => (*size, 'b', *size * lanes == 128), BaseType::Sized(BaseTypeKind::Float, size) => (*size, 'f', *size * lanes == 128), BaseType::Sized(BaseTypeKind::Int, size) => (*size, 's', *size * lanes == 128), BaseType::Sized(BaseTypeKind::UInt, size) => (*size, 'u', *size * lanes == 128), @@ -73,11 +81,16 @@ pub fn make_neon_suffix(type_kind: TypeKind, suffix_kind: SuffixKind) -> String TypeKind::Vector(ty) => { let tuple_size = ty.tuple_size().map_or(0, |t| t.to_int()); let (base_size, prefix_char, requires_q) = neon_get_base_and_char(&ty); + let prefix_str = if is_bfloat(&ty) { + String::from("bf") + } else { + String::from(prefix_char) + }; let prefix_q = if requires_q { "q" } else { "" }; let lanes = ty.lanes(); match suffix_kind { SuffixKind::Normal => { - let mut str_suffix: String = format!("{prefix_q}_{prefix_char}{base_size}"); + let mut str_suffix: String = format!("{prefix_q}_{prefix_str}{base_size}"); if tuple_size > 0 { str_suffix.push_str("_x"); str_suffix.push_str(tuple_size.to_string().as_str()); @@ -85,11 +98,11 @@ pub fn make_neon_suffix(type_kind: TypeKind, suffix_kind: SuffixKind) -> String str_suffix } SuffixKind::NSuffix => { - format!("{prefix_q}_n_{prefix_char}{base_size}") + format!("{prefix_q}_n_{prefix_str}{base_size}") } - SuffixKind::NoQ => format!("_{prefix_char}{base_size}"), - SuffixKind::NoQNSuffix => format!("_n{prefix_char}{base_size}"), + SuffixKind::NoQ => format!("_{prefix_str}{base_size}"), + SuffixKind::NoQNSuffix => format!("_n{prefix_str}{base_size}"), SuffixKind::Unsigned => { let t = type_kind.to_string(); @@ -114,10 +127,10 @@ pub fn make_neon_suffix(type_kind: TypeKind, suffix_kind: SuffixKind) -> String } SuffixKind::Base => base_size.to_string(), SuffixKind::NoX => { - format!("{prefix_q}_{prefix_char}{base_size}") + format!("{prefix_q}_{prefix_str}{base_size}") } SuffixKind::Dup => { - let mut str_suffix: String = format!("{prefix_q}_dup_{prefix_char}{base_size}"); + let mut str_suffix: String = format!("{prefix_q}_dup_{prefix_str}{base_size}"); if tuple_size > 0 { str_suffix.push_str("_x"); str_suffix.push_str(tuple_size.to_string().as_str()); @@ -125,40 +138,40 @@ pub fn make_neon_suffix(type_kind: TypeKind, suffix_kind: SuffixKind) -> String str_suffix } SuffixKind::DupNox => { - format!("{prefix_q}_dup_{prefix_char}{base_size}") + format!("{prefix_q}_dup_{prefix_str}{base_size}") } SuffixKind::LaneNoX => { - format!("{prefix_q}_lane_{prefix_char}{base_size}") + format!("{prefix_q}_lane_{prefix_str}{base_size}") } SuffixKind::LaneQNoX => { - format!("{prefix_q}_laneq_{prefix_char}{base_size}") + format!("{prefix_q}_laneq_{prefix_str}{base_size}") } SuffixKind::Rot270 => { - format!("{prefix_q}_rot270_{prefix_char}{base_size}") + format!("{prefix_q}_rot270_{prefix_str}{base_size}") } SuffixKind::Rot270Lane => { - format!("{prefix_q}_rot270_lane_{prefix_char}{base_size}") + format!("{prefix_q}_rot270_lane_{prefix_str}{base_size}") } SuffixKind::Rot270LaneQ => { - format!("{prefix_q}_rot270_laneq_{prefix_char}{base_size}") + format!("{prefix_q}_rot270_laneq_{prefix_str}{base_size}") } SuffixKind::Rot180 => { - format!("{prefix_q}_rot180_{prefix_char}{base_size}") + format!("{prefix_q}_rot180_{prefix_str}{base_size}") } SuffixKind::Rot180Lane => { - format!("{prefix_q}_rot180_lane_{prefix_char}{base_size}") + format!("{prefix_q}_rot180_lane_{prefix_str}{base_size}") } SuffixKind::Rot180LaneQ => { - format!("{prefix_q}_rot180_laneq_{prefix_char}{base_size}") + format!("{prefix_q}_rot180_laneq_{prefix_str}{base_size}") } SuffixKind::Rot90 => { - format!("{prefix_q}_rot90_{prefix_char}{base_size}") + format!("{prefix_q}_rot90_{prefix_str}{base_size}") } SuffixKind::Rot90Lane => { - format!("{prefix_q}_rot90_lane_{prefix_char}{base_size}") + format!("{prefix_q}_rot90_lane_{prefix_str}{base_size}") } SuffixKind::Rot90LaneQ => { - format!("{prefix_q}_rot90_laneq_{prefix_char}{base_size}") + format!("{prefix_q}_rot90_laneq_{prefix_str}{base_size}") } SuffixKind::BaseByteSize => format!("{}", base_size / 8), } diff --git a/library/stdarch/crates/stdarch-gen-arm/src/typekinds.rs b/library/stdarch/crates/stdarch-gen-arm/src/typekinds.rs index c3aa22294d9fc..f833cb3d5d207 100644 --- a/library/stdarch/crates/stdarch-gen-arm/src/typekinds.rs +++ b/library/stdarch/crates/stdarch-gen-arm/src/typekinds.rs @@ -77,7 +77,7 @@ impl TypeKindOptions { BaseTypeKind::Int => self.s, BaseTypeKind::UInt => self.u, BaseTypeKind::Poly => self.p, - BaseTypeKind::Bool => false, + BaseTypeKind::BFloat | BaseTypeKind::Bool => false, } } } @@ -113,6 +113,7 @@ impl fmt::Display for TypeKindOptions { #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] pub enum BaseTypeKind { Float, + BFloat, Int, UInt, Bool, @@ -497,7 +498,7 @@ impl FromStr for VectorType { fn from_str(s: &str) -> Result { static RE: LazyLock = LazyLock::new(|| { - Regex::new(r"^(?:(?:sv(?P(?:uint|int|bool|float)(?:\d+)?))|(?:(?P(?:uint|int|bool|poly|float)(?:\d+)?)x(?P(?:\d+)?)))(?:x(?P2|3|4))?_t$").unwrap() + Regex::new(r"^(?:(?:sv(?P(?:uint|int|bool|float|bfloat)(?:\d+)?))|(?:(?P(?:uint|int|bool|poly|float|bfloat)(?:\d+)?)x(?P(?:\d+)?)))(?:x(?P2|3|4))?_t$").unwrap() }); if let Some(c) = RE.captures(s) { @@ -634,6 +635,7 @@ impl FromStr for BaseTypeKind { fn from_str(s: &str) -> Result { match s { "float" | "f" => Ok(Self::Float), + "bfloat" | "bf16" => Ok(Self::BFloat), "int" | "i" => Ok(Self::Int), "uint" | "u" => Ok(Self::UInt), "poly" | "p" => Ok(Self::Poly), @@ -647,9 +649,14 @@ impl ToRepr for BaseTypeKind { fn repr(&self, repr: TypeRepr) -> String { match (repr, self) { (TypeRepr::C, Self::Float) => "float", + (TypeRepr::C, Self::BFloat) => "bfloat16", (TypeRepr::C, Self::Int) => "int", (TypeRepr::C, Self::UInt) => "uint", (TypeRepr::C, Self::Poly) => "poly", + + (TypeRepr::Rust, Self::BFloat) => "bfloat16_t", + (TypeRepr::LLVMMachine | TypeRepr::ACLENotation, Self::BFloat) => "bf16", + (TypeRepr::Rust | TypeRepr::LLVMMachine | TypeRepr::ACLENotation, Self::Float) => "f", (TypeRepr::Rust, Self::Int) | (TypeRepr::LLVMMachine, Self::Int | Self::UInt) => "i", (TypeRepr::Rust | TypeRepr::ACLENotation, Self::UInt) => "u", @@ -692,6 +699,10 @@ impl BaseType { pub fn is_float(&self) -> bool { self.kind() == &BaseTypeKind::Float } + + pub fn is_bfloat(&self) -> bool { + self.kind() == &BaseTypeKind::BFloat + } } impl FromStr for BaseType { @@ -709,6 +720,13 @@ impl FromStr for BaseType { .map(u32::from_str) .transpose() .unwrap(); + + if kind == BaseTypeKind::BFloat && size != Some(16) { + return Err(format!( + "a `bfloat` must have a size of `16`, got `{size:?}`" + )); + } + match size { Some(size) => Ok(Self::Sized(kind, size)), None => Ok(Self::Unsized(kind)), @@ -733,6 +751,7 @@ impl ToRepr for BaseType { (Sized(_, size), SizeLiteral) if *size == 128 => "q".to_string(), (_, SizeLiteral) => unreachable!("cannot represent {self:#?} as size literal"), (Sized(Float, _) | Unsized(Float), TypeKind) => "f".to_string(), + (Sized(BFloat, _) | Unsized(BFloat), TypeKind) => "bf16".to_string(), (Sized(Int, _) | Unsized(Int), TypeKind) => "s".to_string(), (Sized(UInt, _) | Unsized(UInt), TypeKind) => "u".to_string(), (Sized(_, size), Size) => size.to_string(), @@ -740,7 +759,14 @@ impl ToRepr for BaseType { assert!(size.is_power_of_two() && *size >= 8); (size >> 3).trailing_zeros().to_string() } - (Sized(kind, size), _) => format!("{}{size}", kind.repr(repr)), + (Sized(kind, size), _) => { + if self.is_bfloat() { + assert!(*size == 16); + format!("{}", kind.repr(repr)) + } else { + format!("{}{size}", kind.repr(repr)) + } + } (Unsized(kind), _) => kind.repr(repr), } } From b5bf5101d8a1b64eec1c0de17becd39d1d44d674 Mon Sep 17 00:00:00 2001 From: James Barford-Evans Date: Tue, 20 Oct 2026 12:06:41 +0100 Subject: [PATCH 09/43] Update test harness --- .../missing_aarch64_be_common.txt | 6 + .../intrinsic-test/missing_aarch64_common.txt | 6 + .../crates/intrinsic-test/src/arm/mod.rs | 13 +- .../crates/intrinsic-test/src/arm/types.rs | 6 + .../intrinsic-test/src/common/gen_rust.rs | 22 +++ .../src/common/intrinsic_helpers.rs | 3 + .../intrinsic-test/src/common/values.rs | 5 +- .../stdarch/crates/stdarch-verify/src/lib.rs | 9 + .../crates/stdarch-verify/tests/arm.rs | 181 ++++++++++++++++++ 9 files changed, 244 insertions(+), 7 deletions(-) diff --git a/library/stdarch/crates/intrinsic-test/missing_aarch64_be_common.txt b/library/stdarch/crates/intrinsic-test/missing_aarch64_be_common.txt index 327c8207a0ff5..9f22e528ba0fb 100644 --- a/library/stdarch/crates/intrinsic-test/missing_aarch64_be_common.txt +++ b/library/stdarch/crates/intrinsic-test/missing_aarch64_be_common.txt @@ -14,12 +14,14 @@ vscale_f32 vscaleq_f16 vscaleq_f32 vscaleq_f64 +vluti2_lane_bf16 vluti2_lane_p16 vluti2_lane_p8 vluti2_lane_s16 vluti2_lane_s8 vluti2_lane_u16 vluti2_lane_u8 +vluti2q_lane_bf16 vluti2q_lane_p16 vluti2q_lane_p8 vluti2q_lane_s16 @@ -28,6 +30,7 @@ vluti2q_lane_u16 vluti2_laneq_f16 vluti2_lane_f16 vluti2_laneq_f16 +vluti2_laneq_bf16 vluti2_laneq_p16 vluti2_laneq_p8 vluti2_laneq_s16 @@ -36,6 +39,7 @@ vluti2_laneq_u16 vluti2_laneq_u8 vluti2q_lane_f16 vluti2q_laneq_f16 +vluti2q_laneq_bf16 vluti2q_laneq_p16 vluti2q_laneq_p8 vluti2q_laneq_s16 @@ -44,6 +48,7 @@ vluti2q_laneq_u16 vluti2q_laneq_u8 vluti2q_lane_u8 vluti4q_lane_f16_x2 +vluti4q_lane_bf16_x2 vluti4q_lane_p16_x2 vluti4q_lane_p8 vluti4q_lane_s16_x2 @@ -51,6 +56,7 @@ vluti4q_lane_s8 vluti4q_lane_u16_x2 vluti4q_lane_u8 vluti4q_laneq_f16_x2 +vluti4q_laneq_bf16_x2 vluti4q_laneq_p16_x2 vluti4q_laneq_p8 vluti4q_laneq_s16_x2 diff --git a/library/stdarch/crates/intrinsic-test/missing_aarch64_common.txt b/library/stdarch/crates/intrinsic-test/missing_aarch64_common.txt index 327c8207a0ff5..f154f90442efe 100644 --- a/library/stdarch/crates/intrinsic-test/missing_aarch64_common.txt +++ b/library/stdarch/crates/intrinsic-test/missing_aarch64_common.txt @@ -14,17 +14,20 @@ vscale_f32 vscaleq_f16 vscaleq_f32 vscaleq_f64 +vluti2_lane_bf16 vluti2_lane_p16 vluti2_lane_p8 vluti2_lane_s16 vluti2_lane_s8 vluti2_lane_u16 vluti2_lane_u8 +vluti2q_lane_bf16 vluti2q_lane_p16 vluti2q_lane_p8 vluti2q_lane_s16 vluti2q_lane_s8 vluti2q_lane_u16 +vluti2_laneq_bf16 vluti2_laneq_f16 vluti2_lane_f16 vluti2_laneq_f16 @@ -35,6 +38,7 @@ vluti2_laneq_s8 vluti2_laneq_u16 vluti2_laneq_u8 vluti2q_lane_f16 +vluti2q_laneq_bf16 vluti2q_laneq_f16 vluti2q_laneq_p16 vluti2q_laneq_p8 @@ -43,6 +47,7 @@ vluti2q_laneq_s8 vluti2q_laneq_u16 vluti2q_laneq_u8 vluti2q_lane_u8 +vluti4q_lane_bf16_x2 vluti4q_lane_f16_x2 vluti4q_lane_p16_x2 vluti4q_lane_p8 @@ -50,6 +55,7 @@ vluti4q_lane_s16_x2 vluti4q_lane_s8 vluti4q_lane_u16_x2 vluti4q_lane_u8 +vluti4q_laneq_bf16_x2 vluti4q_laneq_f16_x2 vluti4q_laneq_p16_x2 vluti4q_laneq_p8 diff --git a/library/stdarch/crates/intrinsic-test/src/arm/mod.rs b/library/stdarch/crates/intrinsic-test/src/arm/mod.rs index 5e892c613464a..38f57310a3745 100644 --- a/library/stdarch/crates/intrinsic-test/src/arm/mod.rs +++ b/library/stdarch/crates/intrinsic-test/src/arm/mod.rs @@ -45,8 +45,8 @@ impl SupportedArchitecture for Arm { let a32 = cli_options.target.starts_with("armv7"); match cli_options.cc_arg_style { CcArgStyle::Clang if !a32 && !big_endian => vec![ - "-march=armv8.6a+crypto+crc+dotprod+fp16+sve2-aes+sve2-sm4+sve2-sha3+sve2-bitperm+\ - f32mm+f64mm+sve2p1", + "-march=armv8.6a+crypto+crc+dotprod+fp16+bf16+sve2-aes+sve2-sm4+sve2-sha3+\ + sve2-bitperm+f32mm+f64mm+sve2p1", ], CcArgStyle::Clang => vec!["-march=armv8.6a+crypto+crc+dotprod+fp16"], // SVE tests aren't run under GCC so there are no target features added for SVE @@ -70,9 +70,6 @@ impl SupportedArchitecture for Arm { .into_iter() // Skip intrinsics that don't return a value. .filter(|i| i.results.kind() != TypeKind::Void) - // Skip bfloat intrinsics - not currently supported - .filter(|i| i.results.kind() != TypeKind::BFloat) - .filter(|i| !i.arguments.iter().any(|a| a.ty.kind() == TypeKind::BFloat)) // Skip SVE intrinsics that have `f16` - not yet implemented! .filter(|i| { let has_f16_arg = i @@ -121,6 +118,8 @@ impl SupportedArchitecture for Arm { .filter(|i| !i.arguments.iter().any(|a| a.is_ptr())) // Skip intrinsics with 128-bit elements (e.g. `p128`) .filter(|i| !i.arguments.iter().any(|a| a.ty.inner_size() == 128)) + // A32 does not provide polynomial 128-bit return types either. + .filter(|i| !(a32 && i.results.inner_size() == 128)) // Skip intrinsics from `--skip` .filter(|i| !cli_options.skip.contains(&i.name)) // Skip A64-specific intrinsics on A32 @@ -178,9 +177,13 @@ const RUST_PRELUDE: &str = r#" #![cfg_attr(any(target_arch = "aarch64", target_arch = "arm64ec"), feature(stdarch_neon_ftts))] #![cfg_attr(any(target_arch = "aarch64", target_arch = "arm64ec"), feature(stdarch_neon_feat_lut))] #![cfg_attr(any(target_arch = "aarch64", target_arch = "arm64ec"), feature(stdarch_neon_fp8))] +#![cfg_attr(any(target_arch = "aarch64", target_arch = "arm64ec"), feature(stdarch_neon_bf16))] #![cfg_attr(all(any(target_arch = "aarch64", target_arch = "arm64ec"), target_endian = "little"), feature(stdarch_aarch64_sve))] #![cfg_attr(any(target_arch = "aarch64", target_arch = "arm64ec"), feature(faminmax))] #![feature(stdarch_neon_f16)] +#![feature(f16b)] + +use core::num::f16b; #[cfg(any(target_arch = "aarch64", target_arch = "arm64ec"))] use core_arch::arch::aarch64::*; diff --git a/library/stdarch/crates/intrinsic-test/src/arm/types.rs b/library/stdarch/crates/intrinsic-test/src/arm/types.rs index cced3bc40c0e1..b14a6b7d83b44 100644 --- a/library/stdarch/crates/intrinsic-test/src/arm/types.rs +++ b/library/stdarch/crates/intrinsic-test/src/arm/types.rs @@ -39,6 +39,12 @@ impl TypeDefinition for ArmType { } fn rust_type(&self) -> String { + // Scalar BF16 uses Rust's `f16b` spelling rather than `bf16`. This also + // gives the comparison wrapper its expected `NanEqF16b` name. + if self.kind() == TypeKind::BFloat && self.simd_len.is_none() && self.vec_len.is_none() { + return "f16b".to_string(); + } + let rust_prefix = self.kind.rust_prefix(); let c_prefix = self.kind.c_prefix(); diff --git a/library/stdarch/crates/intrinsic-test/src/common/gen_rust.rs b/library/stdarch/crates/intrinsic-test/src/common/gen_rust.rs index f319418b49c7f..350744e53fd0e 100644 --- a/library/stdarch/crates/intrinsic-test/src/common/gen_rust.rs +++ b/library/stdarch/crates/intrinsic-test/src/common/gen_rust.rs @@ -31,6 +31,23 @@ macro_rules! wrap_partialeq { } wrap_partialeq!(NanEqF16(f16), NanEqF32(f32), NanEqF64(f64)); + +#[cfg(target_has_reliable_f16b)] +#[derive(Debug, Copy, Clone)] +#[repr(transparent)] +pub struct NanEqF16b(f16b); + +#[cfg(target_has_reliable_f16b)] +impl PartialEq for NanEqF16b { + fn eq(&self, other: &Self) -> bool { + let a = f32::from(self.0); + let b = f32::from(other.0); + a == b || (a.is_nan() && b.is_nan()) + } +} + +#[cfg(target_has_reliable_f16b)] +impl Eq for NanEqF16b {} "#; /// Run rustfmt on the generated source code @@ -131,6 +148,9 @@ core_arch = {{ path = "../../crates/core_arch" }} [build-dependencies] cc = "1" + +[lints.rust] +unexpected_cfgs = {{ level = "warn", check-cfg = ['cfg(target_has_reliable_f16b)'] }} "#, authors = env!("CARGO_PKG_AUTHORS") .split(":") @@ -165,6 +185,8 @@ pub fn write_lib_rs( {notice} #![feature(simd_ffi)] #![feature(f16)] +#![feature(cfg_target_has_reliable_f16b)] +#![allow(internal_features)] #![allow(unused)] // Cargo will spam the logs if these warnings are not silenced. diff --git a/library/stdarch/crates/intrinsic-test/src/common/intrinsic_helpers.rs b/library/stdarch/crates/intrinsic-test/src/common/intrinsic_helpers.rs index bc47a90d3fe16..76da7ca80b4b1 100644 --- a/library/stdarch/crates/intrinsic-test/src/common/intrinsic_helpers.rs +++ b/library/stdarch/crates/intrinsic-test/src/common/intrinsic_helpers.rs @@ -79,6 +79,7 @@ impl TypeKind { pub fn c_prefix(&self) -> &str { match self { Self::Bool => "bool", + Self::BFloat => "bfloat", Self::Float => "float", Self::Int(Sign::Signed) => "int", Self::Int(Sign::Unsigned) => "uint", @@ -253,6 +254,8 @@ pub(crate) fn default_fixed_vector_comparison( ), ")", ) + } else if ty.kind == TypeKind::BFloat { + ("NanEqF16b(".to_string(), ")") } else if ty.kind == TypeKind::Float { ( match ty.inner_size() { diff --git a/library/stdarch/crates/intrinsic-test/src/common/values.rs b/library/stdarch/crates/intrinsic-test/src/common/values.rs index d1f333fd19363..88d217b288e81 100644 --- a/library/stdarch/crates/intrinsic-test/src/common/values.rs +++ b/library/stdarch/crates/intrinsic-test/src/common/values.rs @@ -61,10 +61,10 @@ pub fn test_values_array(ty: &IntrinsicType) -> String { .. } => (1, TypeKind::Bool), IntrinsicType { - kind: TypeKind::Float, + kind: kind @ (TypeKind::Float | TypeKind::BFloat), bit_len: Some(bit_len), .. - } => (*bit_len, TypeKind::Float), + } => (*bit_len, *kind), IntrinsicType { kind: TypeKind::Vector, .. @@ -87,6 +87,7 @@ pub fn test_values_array(ty: &IntrinsicType) -> String { fmt(&format_args!("{}", if src == 1 { true } else { false })) } TypeKind::Float => fmt(&format_args!("f{bit_len}::from_bits({src:#x})")), + TypeKind::BFloat => fmt(&format_args!("f16b::from_bits({src:#x})")), TypeKind::Vector | TypeKind::Int(Sign::Signed) if (src >> (bit_len - 1)) != 0 => { // `src` is a two's complement representation of a negative value. let mask = !0u64 >> (64 - bit_len); diff --git a/library/stdarch/crates/stdarch-verify/src/lib.rs b/library/stdarch/crates/stdarch-verify/src/lib.rs index 5412ab466ad58..98e174cd47308 100644 --- a/library/stdarch/crates/stdarch-verify/src/lib.rs +++ b/library/stdarch/crates/stdarch-verify/src/lib.rs @@ -205,6 +205,7 @@ fn to_type(t: &syn::Type) -> proc_macro2::TokenStream { "__tile1024i" => quote! { &TILE1024I }, "bool" => quote! { &BOOL }, "bf16" => quote! { &BF16 }, + "f16b" | "bfloat16_t" => quote! { &BF16 }, "f16" => quote! { &F16 }, "f32" => quote! { &F32 }, "f64" => quote! { &F64 }, @@ -292,6 +293,14 @@ fn to_type(t: &syn::Type) -> proc_macro2::TokenStream { "uint64x2x3_t" => quote! { &U64X2X3 }, "uint64x2x4_t" => quote! { &U64X2X4 }, "float16x2_t" => quote! { &F16X2 }, + "bfloat16x4_t" => quote! { &BF16X4 }, + "bfloat16x4x2_t" => quote! { &BF16X4X2 }, + "bfloat16x4x3_t" => quote! { &BF16X4X3 }, + "bfloat16x4x4_t" => quote! { &BF16X4X4 }, + "bfloat16x8_t" => quote! { &BF16X8 }, + "bfloat16x8x2_t" => quote! { &BF16X8X2 }, + "bfloat16x8x3_t" => quote! { &BF16X8X3 }, + "bfloat16x8x4_t" => quote! { &BF16X8X4 }, "float16x4_t" => quote! { &F16X4 }, "float16x4x2_t" => quote! { &F16X4X2 }, "float16x4x3_t" => quote! { &F16X4X3 }, diff --git a/library/stdarch/crates/stdarch-verify/tests/arm.rs b/library/stdarch/crates/stdarch-verify/tests/arm.rs index 6ba9c17c4804c..d2934bdc4093a 100644 --- a/library/stdarch/crates/stdarch-verify/tests/arm.rs +++ b/library/stdarch/crates/stdarch-verify/tests/arm.rs @@ -17,6 +17,7 @@ struct Function { } static BOOL: Type = Type::PrimBool; +static BF16: Type = Type::BFloat16; static F16: Type = Type::PrimFloat(16); static F32: Type = Type::PrimFloat(32); static F64: Type = Type::PrimFloat(64); @@ -34,6 +35,14 @@ static GENERICT: Type = Type::GenericParam("T"); static GENERICU: Type = Type::GenericParam("U"); static F16X4: Type = Type::F(16, 4, 1); +static BF16X4: Type = Type::BF(4, 1); +static BF16X4X2: Type = Type::BF(4, 2); +static BF16X4X3: Type = Type::BF(4, 3); +static BF16X4X4: Type = Type::BF(4, 4); +static BF16X8: Type = Type::BF(8, 1); +static BF16X8X2: Type = Type::BF(8, 2); +static BF16X8X3: Type = Type::BF(8, 3); +static BF16X8X4: Type = Type::BF(8, 4); static F16X4X2: Type = Type::F(16, 4, 2); static F16X4X3: Type = Type::F(16, 4, 3); static F16X4X4: Type = Type::F(16, 4, 4); @@ -209,6 +218,7 @@ static SVPATTERN: Type = Type::Enum("svpattern"); enum Type { Void, PrimBool, + BFloat16, PrimFloat(u8), PrimSigned(u8), PrimUnsigned(u8), @@ -221,6 +231,7 @@ enum Type { U(u8, u8, u8), P(u8, u8, u8), F(u8, u8, u8), + BF(u8, u8), Pred(u8), SVI(u8, u8), SVU(u8, u8), @@ -276,6 +287,10 @@ fn verify_all_signatures() { "vreinterpretq_p64_p128", "vreinterpretq_p128_p64", "vreinterpretq_f32_p128", + "vreinterpret_bf16_f16", + "vreinterpret_f16_bf16", + "vreinterpretq_bf16_f16", + "vreinterpretq_f16_bf16", "vtst_p16", "vtstq_p16", "__dbg", @@ -489,6 +504,15 @@ fn parse_ty_base(s: &str) -> &'static Type { match s { "bool" => &BOOL, "void" => &VOID, + "bfloat16_t" => &BF16, + "bfloat16x4_t" => &BF16X4, + "bfloat16x4x2_t" => &BF16X4X2, + "bfloat16x4x3_t" => &BF16X4X3, + "bfloat16x4x4_t" => &BF16X4X4, + "bfloat16x8_t" => &BF16X8, + "bfloat16x8x2_t" => &BF16X8X2, + "bfloat16x8x3_t" => &BF16X8X3, + "bfloat16x8x4_t" => &BF16X8X4, "float16_t" => &F16, "float16x4_t" => &F16X4, "float16x4x2_t" => &F16X4X2, @@ -683,6 +707,163 @@ static SKIP_ASSERT_INSTR_TESTS: &'static [&'static str] = &["svpfalse_b"]; // are no longer being added and just adding to this list indefinitely isn't the best solution for // dealing with that. static SKIP_RUNTIME_TESTS: &'static [&'static str] = &[ + "vbfdot_f32", + "vbfdot_lane_f32", + "vbfdot_laneq_f32", + "vbfdotq_f32", + "vbfdotq_lane_f32", + "vbfdotq_laneq_f32", + "vbfmlalbq_f32", + "vbfmlalbq_lane_f32", + "vbfmlalbq_laneq_f32", + "vbfmlaltq_f32", + "vbfmlaltq_lane_f32", + "vbfmlaltq_laneq_f32", + "vbfmmlaq_f32", + "vcombine_bf16", + "vcopy_lane_bf16", + "vcopy_laneq_bf16", + "vcopyq_lane_bf16", + "vcopyq_laneq_bf16", + "vcreate_bf16", + "vcvt_bf16_f32", + "vcvt_f32_bf16", + "vcvtah_f32_bf16", + "vcvth_bf16_f32", + "vcvtq_high_bf16_f32", + "vcvtq_high_f32_bf16", + "vcvtq_low_bf16_f32", + "vcvtq_low_f32_bf16", + "vdup_lane_bf16", + "vdup_laneq_bf16", + "vdup_n_bf16", + "vduph_lane_bf16", + "vduph_laneq_bf16", + "vdupq_lane_bf16", + "vdupq_laneq_bf16", + "vdupq_n_bf16", + "vget_high_bf16", + "vget_lane_bf16", + "vget_low_bf16", + "vgetq_lane_bf16", + "vld1_bf16", + "vld1_bf16_x2", + "vld1_bf16_x3", + "vld1_bf16_x4", + "vld1_dup_bf16", + "vld1_lane_bf16", + "vld1q_bf16", + "vld1q_bf16_x2", + "vld1q_bf16_x3", + "vld1q_bf16_x4", + "vld1q_dup_bf16", + "vld1q_lane_bf16", + "vld2_bf16", + "vld2_dup_bf16", + "vld2_lane_bf16", + "vld2q_bf16", + "vld2q_dup_bf16", + "vld2q_lane_bf16", + "vld3_bf16", + "vld3_dup_bf16", + "vld3_lane_bf16", + "vld3q_bf16", + "vld3q_dup_bf16", + "vld3q_lane_bf16", + "vld4_bf16", + "vld4_dup_bf16", + "vld4_lane_bf16", + "vld4q_bf16", + "vld4q_dup_bf16", + "vld4q_lane_bf16", + "vluti2_lane_bf16", + "vluti2_laneq_bf16", + "vluti2q_lane_bf16", + "vluti2q_laneq_bf16", + "vluti4q_lane_bf16_x2", + "vluti4q_laneq_bf16_x2", + "vreinterpret_bf16_f16", + "vreinterpret_bf16_f32", + "vreinterpret_bf16_f64", + "vreinterpret_bf16_p16", + "vreinterpret_bf16_p64", + "vreinterpret_bf16_p8", + "vreinterpret_bf16_s16", + "vreinterpret_bf16_s32", + "vreinterpret_bf16_s64", + "vreinterpret_bf16_s8", + "vreinterpret_bf16_u16", + "vreinterpret_bf16_u32", + "vreinterpret_bf16_u64", + "vreinterpret_bf16_u8", + "vreinterpret_f16_bf16", + "vreinterpret_f32_bf16", + "vreinterpret_f64_bf16", + "vreinterpret_p16_bf16", + "vreinterpret_p64_bf16", + "vreinterpret_p8_bf16", + "vreinterpret_s16_bf16", + "vreinterpret_s32_bf16", + "vreinterpret_s64_bf16", + "vreinterpret_s8_bf16", + "vreinterpret_u16_bf16", + "vreinterpret_u32_bf16", + "vreinterpret_u64_bf16", + "vreinterpret_u8_bf16", + "vreinterpretq_bf16_f16", + "vreinterpretq_bf16_f32", + "vreinterpretq_bf16_f64", + "vreinterpretq_bf16_p128", + "vreinterpretq_bf16_p16", + "vreinterpretq_bf16_p64", + "vreinterpretq_bf16_p8", + "vreinterpretq_bf16_s16", + "vreinterpretq_bf16_s32", + "vreinterpretq_bf16_s64", + "vreinterpretq_bf16_s8", + "vreinterpretq_bf16_u16", + "vreinterpretq_bf16_u32", + "vreinterpretq_bf16_u64", + "vreinterpretq_bf16_u8", + "vreinterpretq_f16_bf16", + "vreinterpretq_f32_bf16", + "vreinterpretq_f64_bf16", + "vreinterpretq_p128_bf16", + "vreinterpretq_p16_bf16", + "vreinterpretq_p64_bf16", + "vreinterpretq_p8_bf16", + "vreinterpretq_s16_bf16", + "vreinterpretq_s32_bf16", + "vreinterpretq_s64_bf16", + "vreinterpretq_s8_bf16", + "vreinterpretq_u16_bf16", + "vreinterpretq_u32_bf16", + "vreinterpretq_u64_bf16", + "vreinterpretq_u8_bf16", + "vset_lane_bf16", + "vsetq_lane_bf16", + "vst1_bf16", + "vst1_bf16_x2", + "vst1_bf16_x3", + "vst1_bf16_x4", + "vst1_lane_bf16", + "vst1q_bf16", + "vst1q_bf16_x2", + "vst1q_bf16_x3", + "vst1q_bf16_x4", + "vst1q_lane_bf16", + "vst2_bf16", + "vst2_lane_bf16", + "vst2q_bf16", + "vst2q_lane_bf16", + "vst3_bf16", + "vst3_lane_bf16", + "vst3q_bf16", + "vst3q_lane_bf16", + "vst4_bf16", + "vst4_lane_bf16", + "vst4q_bf16", + "vst4q_lane_bf16", "vaddq_s64", "vaddq_u64", "vrsqrte_f32", From ac43d475b878cf0eac58ce93e03ed42439d9e3c2 Mon Sep 17 00:00:00 2001 From: James Barford-Evans Date: Tue, 20 Oct 2026 12:06:41 +0100 Subject: [PATCH 10/43] Add bf16 intrinsics to YAML, JSON & re-generate --- .../core_arch/src/aarch64/neon/generated.rs | 256 + .../src/arm_shared/neon/generated.rs | 4944 ++++++++++- .../spec/neon/aarch64.spec.yml | 193 + .../spec/neon/arm_shared.spec.yml | 1366 +++ .../intrinsics_data/arm_intrinsics.json | 7507 +++++++++++++---- 5 files changed, 12558 insertions(+), 1708 deletions(-) diff --git a/library/stdarch/crates/core_arch/src/aarch64/neon/generated.rs b/library/stdarch/crates/core_arch/src/aarch64/neon/generated.rs index 0f92c6dec0a9f..3f2d55a9feafa 100644 --- a/library/stdarch/crates/core_arch/src/aarch64/neon/generated.rs +++ b/library/stdarch/crates/core_arch/src/aarch64/neon/generated.rs @@ -4604,6 +4604,36 @@ pub fn vcombine_f64(a: float64x1_t, b: float64x1_t) -> float64x2_t { } } #[doc = "Insert vector element from another vector element"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vcopy_lane_bf16)"] +#[inline] +#[target_feature(enable = "neon")] +#[cfg_attr(test, assert_instr(nop, LANE1 = 3, LANE2 = 3))] +#[rustc_legacy_const_generics(1, 3)] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[unstable(feature = "stdarch_neon_bf16", issue = "none")] +pub fn vcopy_lane_bf16( + a: bfloat16x4_t, + b: bfloat16x4_t, +) -> bfloat16x4_t { + unsafe { transmute(vcopy_lane_u16::(transmute(a), transmute(b))) } +} +#[doc = "Insert vector element from another vector element"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vcopyq_lane_bf16)"] +#[inline] +#[target_feature(enable = "neon")] +#[cfg_attr(test, assert_instr(nop, LANE1 = 7, LANE2 = 3))] +#[rustc_legacy_const_generics(1, 3)] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[unstable(feature = "stdarch_neon_bf16", issue = "none")] +pub fn vcopyq_lane_bf16( + a: bfloat16x8_t, + b: bfloat16x4_t, +) -> bfloat16x8_t { + unsafe { transmute(vcopyq_lane_u16::(transmute(a), transmute(b))) } +} +#[doc = "Insert vector element from another vector element"] #[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vcopy_lane_f32)"] #[inline] #[target_feature(enable = "neon")] @@ -4811,6 +4841,36 @@ pub fn vcopy_lane_p64( b } #[doc = "Insert vector element from another vector element"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vcopy_laneq_bf16)"] +#[inline] +#[target_feature(enable = "neon")] +#[cfg_attr(test, assert_instr(nop, LANE1 = 3, LANE2 = 7))] +#[rustc_legacy_const_generics(1, 3)] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[unstable(feature = "stdarch_neon_bf16", issue = "none")] +pub fn vcopy_laneq_bf16( + a: bfloat16x4_t, + b: bfloat16x8_t, +) -> bfloat16x4_t { + unsafe { transmute(vcopy_laneq_u16::(transmute(a), transmute(b))) } +} +#[doc = "Insert vector element from another vector element"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vcopyq_laneq_bf16)"] +#[inline] +#[target_feature(enable = "neon")] +#[cfg_attr(test, assert_instr(nop, LANE1 = 7, LANE2 = 7))] +#[rustc_legacy_const_generics(1, 3)] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[unstable(feature = "stdarch_neon_bf16", issue = "none")] +pub fn vcopyq_laneq_bf16( + a: bfloat16x8_t, + b: bfloat16x8_t, +) -> bfloat16x8_t { + unsafe { transmute(vcopyq_laneq_u16::(transmute(a), transmute(b))) } +} +#[doc = "Insert vector element from another vector element"] #[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vcopy_laneq_f32)"] #[inline] #[target_feature(enable = "neon")] @@ -11411,6 +11471,50 @@ pub unsafe fn vldap1q_lane_p64(ptr: *const p64, src: poly64x2_t transmute(vldap1q_lane_s64::(ptr as *mut i64, transmute(src))) } #[doc = "Lookup table read with 2-bit indices"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vluti2_lane_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[target_feature(enable = "neon,lut,bf16")] +#[cfg_attr(all(test, not(target_env = "msvc")), assert_instr(luti2, LANE = 1))] +#[rustc_legacy_const_generics(2)] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[unstable(feature = "stdarch_neon_bf16", issue = "none")] +pub unsafe fn vluti2_lane_bf16(a: bfloat16x4_t, b: uint8x8_t) -> bfloat16x8_t { + static_assert!(LANE >= 0 && LANE <= 3); + unsafe extern "llvm-intrinsic" { + #[cfg_attr( + any(target_arch = "aarch64", target_arch = "arm64ec"), + link_name = "llvm.aarch64.neon.vluti2.lane.v8bf16.v4bf16" + )] + fn _vluti2_lane_bf16(a: bfloat16x4_t, b: uint8x8_t, n: i32) -> bfloat16x8_t; + } + _vluti2_lane_bf16(a, b, LANE) +} +#[doc = "Lookup table read with 2-bit indices"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vluti2q_lane_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[target_feature(enable = "neon,lut,bf16")] +#[cfg_attr(all(test, not(target_env = "msvc")), assert_instr(luti2, LANE = 1))] +#[rustc_legacy_const_generics(2)] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[unstable(feature = "stdarch_neon_bf16", issue = "none")] +pub unsafe fn vluti2q_lane_bf16(a: bfloat16x8_t, b: uint8x8_t) -> bfloat16x8_t { + static_assert!(LANE >= 0 && LANE <= 3); + unsafe extern "llvm-intrinsic" { + #[cfg_attr( + any(target_arch = "aarch64", target_arch = "arm64ec"), + link_name = "llvm.aarch64.neon.vluti2.lane.v8bf16.v8bf16" + )] + fn _vluti2q_lane_bf16(a: bfloat16x8_t, b: uint8x8_t, n: i32) -> bfloat16x8_t; + } + _vluti2q_lane_bf16(a, b, LANE) +} +#[doc = "Lookup table read with 2-bit indices"] #[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vluti2_lane_f16)"] #[doc = "## Safety"] #[doc = " * Neon intrinsic unsafe"] @@ -11621,6 +11725,50 @@ pub unsafe fn vluti2q_lane_s16(a: int16x8_t, b: uint8x8_t) -> i _vluti2q_lane_s16(a, b, LANE) } #[doc = "Lookup table read with 2-bit indices"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vluti2_laneq_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[target_feature(enable = "neon,lut,bf16")] +#[cfg_attr(all(test, not(target_env = "msvc")), assert_instr(luti2, LANE = 1))] +#[rustc_legacy_const_generics(2)] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[unstable(feature = "stdarch_neon_bf16", issue = "none")] +pub unsafe fn vluti2_laneq_bf16(a: bfloat16x4_t, b: uint8x16_t) -> bfloat16x8_t { + static_assert!(LANE >= 0 && LANE <= 7); + unsafe extern "llvm-intrinsic" { + #[cfg_attr( + any(target_arch = "aarch64", target_arch = "arm64ec"), + link_name = "llvm.aarch64.neon.vluti2.laneq.v8bf16.v4bf16" + )] + fn _vluti2_laneq_bf16(a: bfloat16x4_t, b: uint8x16_t, n: i32) -> bfloat16x8_t; + } + _vluti2_laneq_bf16(a, b, LANE) +} +#[doc = "Lookup table read with 2-bit indices"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vluti2q_laneq_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[target_feature(enable = "neon,lut,bf16")] +#[cfg_attr(all(test, not(target_env = "msvc")), assert_instr(luti2, LANE = 1))] +#[rustc_legacy_const_generics(2)] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[unstable(feature = "stdarch_neon_bf16", issue = "none")] +pub unsafe fn vluti2q_laneq_bf16(a: bfloat16x8_t, b: uint8x16_t) -> bfloat16x8_t { + static_assert!(LANE >= 0 && LANE <= 7); + unsafe extern "llvm-intrinsic" { + #[cfg_attr( + any(target_arch = "aarch64", target_arch = "arm64ec"), + link_name = "llvm.aarch64.neon.vluti2.laneq.v8bf16.v8bf16" + )] + fn _vluti2q_laneq_bf16(a: bfloat16x8_t, b: uint8x16_t, n: i32) -> bfloat16x8_t; + } + _vluti2q_laneq_bf16(a, b, LANE) +} +#[doc = "Lookup table read with 2-bit indices"] #[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vluti2_laneq_f16)"] #[doc = "## Safety"] #[doc = " * Neon intrinsic unsafe"] @@ -11831,6 +11979,36 @@ pub unsafe fn vluti2q_laneq_s16(a: int16x8_t, b: uint8x16_t) - _vluti2q_laneq_s16(a, b, INDEX) } #[doc = "Lookup table read with 4-bit indices"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vluti4q_lane_bf16_x2)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[target_feature(enable = "neon,lut,bf16")] +#[cfg_attr(all(test, not(target_env = "msvc")), assert_instr(luti4, LANE = 0))] +#[rustc_legacy_const_generics(2)] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[unstable(feature = "stdarch_neon_bf16", issue = "none")] +pub unsafe fn vluti4q_lane_bf16_x2( + a: bfloat16x8x2_t, + b: uint8x8_t, +) -> bfloat16x8_t { + static_assert!(LANE >= 0 && LANE <= 1); + unsafe extern "llvm-intrinsic" { + #[cfg_attr( + any(target_arch = "aarch64", target_arch = "arm64ec"), + link_name = "llvm.aarch64.neon.vluti4q.lane.x2.v8bf16" + )] + fn _vluti4q_lane_bf16_x2( + a0: bfloat16x8_t, + a1: bfloat16x8_t, + b: uint8x8_t, + n: i32, + ) -> bfloat16x8_t; + } + _vluti4q_lane_bf16_x2(a.0, a.1, b, LANE) +} +#[doc = "Lookup table read with 4-bit indices"] #[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vluti4q_lane_f16_x2)"] #[doc = "## Safety"] #[doc = " * Neon intrinsic unsafe"] @@ -11936,6 +12114,36 @@ pub unsafe fn vluti4q_lane_p8(a: poly8x16_t, b: uint8x8_t) -> p transmute(vluti4q_lane_s8::(transmute(a), b)) } #[doc = "Lookup table read with 4-bit indices"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vluti4q_laneq_bf16_x2)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[target_feature(enable = "neon,lut,bf16")] +#[cfg_attr(all(test, not(target_env = "msvc")), assert_instr(luti4, LANE = 0))] +#[rustc_legacy_const_generics(2)] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[unstable(feature = "stdarch_neon_bf16", issue = "none")] +pub unsafe fn vluti4q_laneq_bf16_x2( + a: bfloat16x8x2_t, + b: uint8x16_t, +) -> bfloat16x8_t { + static_assert!(LANE >= 0 && LANE <= 3); + unsafe extern "llvm-intrinsic" { + #[cfg_attr( + any(target_arch = "aarch64", target_arch = "arm64ec"), + link_name = "llvm.aarch64.neon.vluti4q.laneq.x2.v8bf16" + )] + fn _vluti4q_laneq_bf16_x2( + a0: bfloat16x8_t, + a1: bfloat16x8_t, + b: uint8x16_t, + n: i32, + ) -> bfloat16x8_t; + } + _vluti4q_laneq_bf16_x2(a.0, a.1, b, LANE) +} +#[doc = "Lookup table read with 4-bit indices"] #[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vluti4q_laneq_f16_x2)"] #[doc = "## Safety"] #[doc = " * Neon intrinsic unsafe"] @@ -21187,6 +21395,54 @@ pub fn vrecpxh_f16(a: f16) -> f16 { unsafe { _vrecpxh_f16(a) } } #[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_bf16_f64)"] +#[inline] +#[target_feature(enable = "neon")] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[unstable(feature = "stdarch_neon_bf16", issue = "none")] +#[cfg(not(target_arch = "arm64ec"))] +#[cfg_attr(test, assert_instr(nop))] +pub fn vreinterpret_bf16_f64(a: float64x1_t) -> bfloat16x4_t { + unsafe { transmute(a) } +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_bf16_f64)"] +#[inline] +#[target_feature(enable = "neon")] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[unstable(feature = "stdarch_neon_bf16", issue = "none")] +#[cfg(not(target_arch = "arm64ec"))] +#[cfg_attr(test, assert_instr(nop))] +pub fn vreinterpretq_bf16_f64(a: float64x2_t) -> bfloat16x8_t { + unsafe { transmute(a) } +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_f64_bf16)"] +#[inline] +#[target_feature(enable = "neon")] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[unstable(feature = "stdarch_neon_bf16", issue = "none")] +#[cfg(not(target_arch = "arm64ec"))] +#[cfg_attr(test, assert_instr(nop))] +pub fn vreinterpret_f64_bf16(a: bfloat16x4_t) -> float64x1_t { + unsafe { transmute(a) } +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_f64_bf16)"] +#[inline] +#[target_feature(enable = "neon")] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[unstable(feature = "stdarch_neon_bf16", issue = "none")] +#[cfg(not(target_arch = "arm64ec"))] +#[cfg_attr(test, assert_instr(nop))] +pub fn vreinterpretq_f64_bf16(a: bfloat16x8_t) -> float64x2_t { + unsafe { transmute(a) } +} +#[doc = "Vector reinterpret cast operation"] #[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_f64_f16)"] #[inline] #[target_feature(enable = "neon")] diff --git a/library/stdarch/crates/core_arch/src/arm_shared/neon/generated.rs b/library/stdarch/crates/core_arch/src/arm_shared/neon/generated.rs index 237f8fb413c99..684f4c5a79d93 100644 --- a/library/stdarch/crates/core_arch/src/arm_shared/neon/generated.rs +++ b/library/stdarch/crates/core_arch/src/arm_shared/neon/generated.rs @@ -3753,6 +3753,594 @@ pub fn vand_u64(a: uint64x1_t, b: uint64x1_t) -> uint64x1_t { pub fn vandq_u64(a: uint64x2_t, b: uint64x2_t) -> uint64x2_t { unsafe { simd_and(a, b) } } +#[doc = "BFloat16 floating-point dot product (vector)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vbfdot_f32)"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vdot.bf16"))] +#[cfg_attr( + all( + test, + any(target_arch = "aarch64", target_arch = "arm64ec"), + not(target_env = "msvc") + ), + assert_instr(bfdot) +)] +pub fn vbfdot_f32(a: float32x2_t, b: bfloat16x4_t, c: bfloat16x4_t) -> float32x2_t { + unsafe extern "llvm-intrinsic" { + #[cfg_attr( + any(target_arch = "aarch64", target_arch = "arm64ec"), + link_name = "llvm.aarch64.neon.bfdot.v2f32.v4bf16" + )] + #[cfg_attr(target_arch = "arm", link_name = "llvm.arm.neon.bfdot.v2f32.v4bf16")] + fn _vbfdot_f32(a: float32x2_t, b: bfloat16x4_t, c: bfloat16x4_t) -> float32x2_t; + } + unsafe { _vbfdot_f32(a, b, c) } +} +#[doc = "BFloat16 floating-point dot product (vector)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vbfdotq_f32)"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vdot.bf16"))] +#[cfg_attr( + all( + test, + any(target_arch = "aarch64", target_arch = "arm64ec"), + not(target_env = "msvc") + ), + assert_instr(bfdot) +)] +pub fn vbfdotq_f32(a: float32x4_t, b: bfloat16x8_t, c: bfloat16x8_t) -> float32x4_t { + unsafe extern "llvm-intrinsic" { + #[cfg_attr( + any(target_arch = "aarch64", target_arch = "arm64ec"), + link_name = "llvm.aarch64.neon.bfdot.v4f32.v8bf16" + )] + #[cfg_attr(target_arch = "arm", link_name = "llvm.arm.neon.bfdot.v4f32.v8bf16")] + fn _vbfdotq_f32(a: float32x4_t, b: bfloat16x8_t, c: bfloat16x8_t) -> float32x4_t; + } + unsafe { _vbfdotq_f32(a, b, c) } +} +#[doc = "BFloat16 floating-point dot product (vector, by element)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vbfdot_lane_f32)"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vdot.bf16", LANE = 0))] +#[cfg_attr( + all( + test, + any(target_arch = "aarch64", target_arch = "arm64ec"), + not(target_env = "msvc") + ), + assert_instr(bfdot, LANE = 0) +)] +pub fn vbfdot_lane_f32( + a: float32x2_t, + b: bfloat16x4_t, + c: bfloat16x4_t, +) -> float32x2_t { + static_assert_uimm_bits!(LANE, 1); + let pairs: bfloat16x4_t = c; + unsafe { + let duped: bfloat16x4_t = transmute(vdup_lane_u32::(transmute(pairs))); + vbfdot_f32(a, b, duped) + } +} +#[doc = "BFloat16 floating-point dot product (vector, by element)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vbfdotq_lane_f32)"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vdot.bf16", LANE = 0))] +#[cfg_attr( + all( + test, + any(target_arch = "aarch64", target_arch = "arm64ec"), + not(target_env = "msvc") + ), + assert_instr(bfdot, LANE = 0) +)] +pub fn vbfdotq_lane_f32( + a: float32x4_t, + b: bfloat16x8_t, + c: bfloat16x4_t, +) -> float32x4_t { + static_assert_uimm_bits!(LANE, 1); + let pairs: bfloat16x4_t = c; + unsafe { + let duped: bfloat16x8_t = transmute(vdupq_lane_u32::(transmute(pairs))); + vbfdotq_f32(a, b, duped) + } +} +#[doc = "BFloat16 floating-point dot product (vector, by element)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vbfdot_laneq_f32)"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vdot.bf16", LANE = 0))] +#[cfg_attr( + all( + test, + any(target_arch = "aarch64", target_arch = "arm64ec"), + not(target_env = "msvc") + ), + assert_instr(bfdot, LANE = 0) +)] +pub fn vbfdot_laneq_f32( + a: float32x2_t, + b: bfloat16x4_t, + c: bfloat16x8_t, +) -> float32x2_t { + static_assert_uimm_bits!(LANE, 2); + let pairs: bfloat16x8_t = c; + unsafe { + let duped: bfloat16x4_t = transmute(vdup_laneq_u32::(transmute(pairs))); + vbfdot_f32(a, b, duped) + } +} +#[doc = "BFloat16 floating-point dot product (vector, by element)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vbfdotq_laneq_f32)"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vdot.bf16", LANE = 0))] +#[cfg_attr( + all( + test, + any(target_arch = "aarch64", target_arch = "arm64ec"), + not(target_env = "msvc") + ), + assert_instr(bfdot, LANE = 0) +)] +pub fn vbfdotq_laneq_f32( + a: float32x4_t, + b: bfloat16x8_t, + c: bfloat16x8_t, +) -> float32x4_t { + static_assert_uimm_bits!(LANE, 2); + let pairs: bfloat16x8_t = c; + unsafe { + let duped: bfloat16x8_t = transmute(vdupq_laneq_u32::(transmute(pairs))); + vbfdotq_f32(a, b, duped) + } +} +#[doc = "BFloat16 floating-point widening multiply-add long (vector)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vbfmlalbq_f32)"] +#[inline] +#[cfg(target_endian = "little")] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vfmab.bf16"))] +#[cfg_attr( + all( + test, + any(target_arch = "aarch64", target_arch = "arm64ec"), + not(target_env = "msvc") + ), + assert_instr(bfmlalb) +)] +pub fn vbfmlalbq_f32(a: float32x4_t, b: bfloat16x8_t, c: bfloat16x8_t) -> float32x4_t { + unsafe extern "llvm-intrinsic" { + #[cfg_attr( + any(target_arch = "aarch64", target_arch = "arm64ec"), + link_name = "llvm.aarch64.neon.bfmlalb" + )] + #[cfg_attr(target_arch = "arm", link_name = "llvm.arm.neon.bfmlalb")] + fn _vbfmlalbq_f32(a: float32x4_t, b: bfloat16x8_t, c: bfloat16x8_t) -> float32x4_t; + } + unsafe { _vbfmlalbq_f32(a, b, c) } +} +#[doc = "BFloat16 floating-point widening multiply-add long (vector)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vbfmlalbq_f32)"] +#[inline] +#[cfg(target_endian = "big")] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vfmab.bf16"))] +#[cfg_attr( + all( + test, + any(target_arch = "aarch64", target_arch = "arm64ec"), + not(target_env = "msvc") + ), + assert_instr(bfmlalb) +)] +pub fn vbfmlalbq_f32(a: float32x4_t, b: bfloat16x8_t, c: bfloat16x8_t) -> float32x4_t { + unsafe extern "llvm-intrinsic" { + #[cfg_attr( + any(target_arch = "aarch64", target_arch = "arm64ec"), + link_name = "llvm.aarch64.neon.bfmlalb" + )] + #[cfg_attr(target_arch = "arm", link_name = "llvm.arm.neon.bfmlalb")] + fn _vbfmlalbq_f32(a: float32x4_t, b: bfloat16x8_t, c: bfloat16x8_t) -> float32x4_t; + } + unsafe { + let a: float32x4_t = simd_shuffle!(a, a, [3, 2, 1, 0]); + let b: bfloat16x8_t = simd_shuffle!(b, b, [7, 6, 5, 4, 3, 2, 1, 0]); + let c: bfloat16x8_t = simd_shuffle!(c, c, [7, 6, 5, 4, 3, 2, 1, 0]); + let ret_val: float32x4_t = _vbfmlalbq_f32(a, b, c); + simd_shuffle!(ret_val, ret_val, [3, 2, 1, 0]) + } +} +#[doc = "BFloat16 floating-point widening multiply-add long (vector)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vbfmlalbq_lane_f32)"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vfmab.bf16", LANE = 0))] +#[cfg_attr( + all( + test, + any(target_arch = "aarch64", target_arch = "arm64ec"), + not(target_env = "msvc") + ), + assert_instr(bfmlalb, LANE = 0) +)] +pub fn vbfmlalbq_lane_f32( + a: float32x4_t, + b: bfloat16x8_t, + c: bfloat16x4_t, +) -> float32x4_t { + static_assert_uimm_bits!(LANE, 2); + unsafe { + let duped: bfloat16x8_t = transmute(vdupq_lane_u16::(transmute(c))); + vbfmlalbq_f32(a, b, duped) + } +} +#[doc = "BFloat16 floating-point widening multiply-add long (vector)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vbfmlalbq_laneq_f32)"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vfmab.bf16", LANE = 0))] +#[cfg_attr( + all( + test, + any(target_arch = "aarch64", target_arch = "arm64ec"), + not(target_env = "msvc") + ), + assert_instr(bfmlalb, LANE = 0) +)] +pub fn vbfmlalbq_laneq_f32( + a: float32x4_t, + b: bfloat16x8_t, + c: bfloat16x8_t, +) -> float32x4_t { + static_assert_uimm_bits!(LANE, 3); + unsafe { + let duped: bfloat16x8_t = transmute(vdupq_laneq_u16::(transmute(c))); + vbfmlalbq_f32(a, b, duped) + } +} +#[doc = "BFloat16 floating-point widening multiply-add long (vector)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vbfmlaltq_f32)"] +#[inline] +#[cfg(target_endian = "little")] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vfmat.bf16"))] +#[cfg_attr( + all( + test, + any(target_arch = "aarch64", target_arch = "arm64ec"), + not(target_env = "msvc") + ), + assert_instr(bfmlalt) +)] +pub fn vbfmlaltq_f32(a: float32x4_t, b: bfloat16x8_t, c: bfloat16x8_t) -> float32x4_t { + unsafe extern "llvm-intrinsic" { + #[cfg_attr( + any(target_arch = "aarch64", target_arch = "arm64ec"), + link_name = "llvm.aarch64.neon.bfmlalt" + )] + #[cfg_attr(target_arch = "arm", link_name = "llvm.arm.neon.bfmlalt")] + fn _vbfmlaltq_f32(a: float32x4_t, b: bfloat16x8_t, c: bfloat16x8_t) -> float32x4_t; + } + unsafe { _vbfmlaltq_f32(a, b, c) } +} +#[doc = "BFloat16 floating-point widening multiply-add long (vector)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vbfmlaltq_f32)"] +#[inline] +#[cfg(target_endian = "big")] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vfmat.bf16"))] +#[cfg_attr( + all( + test, + any(target_arch = "aarch64", target_arch = "arm64ec"), + not(target_env = "msvc") + ), + assert_instr(bfmlalt) +)] +pub fn vbfmlaltq_f32(a: float32x4_t, b: bfloat16x8_t, c: bfloat16x8_t) -> float32x4_t { + unsafe extern "llvm-intrinsic" { + #[cfg_attr( + any(target_arch = "aarch64", target_arch = "arm64ec"), + link_name = "llvm.aarch64.neon.bfmlalt" + )] + #[cfg_attr(target_arch = "arm", link_name = "llvm.arm.neon.bfmlalt")] + fn _vbfmlaltq_f32(a: float32x4_t, b: bfloat16x8_t, c: bfloat16x8_t) -> float32x4_t; + } + unsafe { + let a: float32x4_t = simd_shuffle!(a, a, [3, 2, 1, 0]); + let b: bfloat16x8_t = simd_shuffle!(b, b, [7, 6, 5, 4, 3, 2, 1, 0]); + let c: bfloat16x8_t = simd_shuffle!(c, c, [7, 6, 5, 4, 3, 2, 1, 0]); + let ret_val: float32x4_t = _vbfmlaltq_f32(a, b, c); + simd_shuffle!(ret_val, ret_val, [3, 2, 1, 0]) + } +} +#[doc = "BFloat16 floating-point widening multiply-add long (vector)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vbfmlaltq_lane_f32)"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vfmat.bf16", LANE = 0))] +#[cfg_attr( + all( + test, + any(target_arch = "aarch64", target_arch = "arm64ec"), + not(target_env = "msvc") + ), + assert_instr(bfmlalt, LANE = 0) +)] +pub fn vbfmlaltq_lane_f32( + a: float32x4_t, + b: bfloat16x8_t, + c: bfloat16x4_t, +) -> float32x4_t { + static_assert_uimm_bits!(LANE, 2); + unsafe { + let duped: bfloat16x8_t = transmute(vdupq_lane_u16::(transmute(c))); + vbfmlaltq_f32(a, b, duped) + } +} +#[doc = "BFloat16 floating-point widening multiply-add long (vector)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vbfmlaltq_laneq_f32)"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vfmat.bf16", LANE = 0))] +#[cfg_attr( + all( + test, + any(target_arch = "aarch64", target_arch = "arm64ec"), + not(target_env = "msvc") + ), + assert_instr(bfmlalt, LANE = 0) +)] +pub fn vbfmlaltq_laneq_f32( + a: float32x4_t, + b: bfloat16x8_t, + c: bfloat16x8_t, +) -> float32x4_t { + static_assert_uimm_bits!(LANE, 3); + unsafe { + let duped: bfloat16x8_t = transmute(vdupq_laneq_u16::(transmute(c))); + vbfmlaltq_f32(a, b, duped) + } +} +#[doc = "BFloat16 floating-point matrix multiply-accumulate into 2x2 matrix"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vbfmmlaq_f32)"] +#[inline] +#[cfg(target_endian = "little")] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vmmla.bf16"))] +#[cfg_attr( + all( + test, + any(target_arch = "aarch64", target_arch = "arm64ec"), + not(target_env = "msvc") + ), + assert_instr(bfmmla) +)] +pub fn vbfmmlaq_f32(a: float32x4_t, b: bfloat16x8_t, c: bfloat16x8_t) -> float32x4_t { + unsafe extern "llvm-intrinsic" { + #[cfg_attr( + any(target_arch = "aarch64", target_arch = "arm64ec"), + link_name = "llvm.aarch64.neon.bfmmla" + )] + #[cfg_attr(target_arch = "arm", link_name = "llvm.arm.neon.bfmmla")] + fn _vbfmmlaq_f32(a: float32x4_t, b: bfloat16x8_t, c: bfloat16x8_t) -> float32x4_t; + } + unsafe { _vbfmmlaq_f32(a, b, c) } +} +#[doc = "BFloat16 floating-point matrix multiply-accumulate into 2x2 matrix"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vbfmmlaq_f32)"] +#[inline] +#[cfg(target_endian = "big")] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vmmla.bf16"))] +#[cfg_attr( + all( + test, + any(target_arch = "aarch64", target_arch = "arm64ec"), + not(target_env = "msvc") + ), + assert_instr(bfmmla) +)] +pub fn vbfmmlaq_f32(a: float32x4_t, b: bfloat16x8_t, c: bfloat16x8_t) -> float32x4_t { + unsafe extern "llvm-intrinsic" { + #[cfg_attr( + any(target_arch = "aarch64", target_arch = "arm64ec"), + link_name = "llvm.aarch64.neon.bfmmla" + )] + #[cfg_attr(target_arch = "arm", link_name = "llvm.arm.neon.bfmmla")] + fn _vbfmmlaq_f32(a: float32x4_t, b: bfloat16x8_t, c: bfloat16x8_t) -> float32x4_t; + } + unsafe { + let a: float32x4_t = simd_shuffle!(a, a, [3, 2, 1, 0]); + let b: bfloat16x8_t = simd_shuffle!(b, b, [7, 6, 5, 4, 3, 2, 1, 0]); + let c: bfloat16x8_t = simd_shuffle!(c, c, [7, 6, 5, 4, 3, 2, 1, 0]); + let ret_val: float32x4_t = _vbfmmlaq_f32(a, b, c); + simd_shuffle!(ret_val, ret_val, [3, 2, 1, 0]) + } +} #[doc = "Vector bitwise bit clear."] #[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vbic_s16)"] #[inline] @@ -7758,6 +8346,59 @@ pub fn vcntq_p8(a: poly8x16_t) -> poly8x16_t { unsafe { transmute(vcntq_s8(transmute(a))) } } #[doc = "Join two smaller vectors into a single larger vector"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vcombine_bf16)"] +#[inline] +#[cfg(target_endian = "little")] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub fn vcombine_bf16(a: bfloat16x4_t, b: bfloat16x4_t) -> bfloat16x8_t { + unsafe { simd_shuffle!(a, b, [0, 1, 2, 3, 4, 5, 6, 7]) } +} +#[doc = "Join two smaller vectors into a single larger vector"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vcombine_bf16)"] +#[inline] +#[cfg(target_endian = "big")] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub fn vcombine_bf16(a: bfloat16x4_t, b: bfloat16x4_t) -> bfloat16x8_t { + unsafe { + let a: bfloat16x4_t = simd_shuffle!(a, a, [3, 2, 1, 0]); + let b: bfloat16x4_t = simd_shuffle!(b, b, [3, 2, 1, 0]); + let ret_val: bfloat16x8_t = simd_shuffle!(a, b, [0, 1, 2, 3, 4, 5, 6, 7]); + simd_shuffle!(ret_val, ret_val, [7, 6, 5, 4, 3, 2, 1, 0]) + } +} +#[doc = "Join two smaller vectors into a single larger vector"] #[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vcombine_f16)"] #[inline] #[cfg(target_endian = "little")] @@ -8304,6 +8945,31 @@ pub fn vcombine_p64(a: poly64x1_t, b: poly64x1_t) -> poly64x2_t { } } #[doc = "Insert vector element from another vector element"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vcreate_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vcreate_bf16(a: u64) -> bfloat16x4_t { + transmute(a) +} +#[doc = "Insert vector element from another vector element"] #[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vcreate_f16)"] #[inline] #[target_feature(enable = "neon")] @@ -8578,6 +9244,48 @@ pub fn vcreate_p16(a: u64) -> poly16x4_t { pub fn vcreate_p64(a: u64) -> poly64x1_t { unsafe { transmute(a) } } +#[doc = "Floating-point convert from single-precision to BFloat16 format (vector)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vcvt_bf16_f32)"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg(target_arch = "arm")] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vcvt.bf16.f32"))] +pub fn vcvt_bf16_f32(a: float32x4_t) -> bfloat16x4_t { + unsafe extern "llvm-intrinsic" { + #[cfg_attr(target_arch = "arm", link_name = "llvm.arm.neon.vcvtfp2bf.v4bf16")] + fn _vcvt_bf16_f32(a: float32x4_t) -> bfloat16x4_t; + } + unsafe { _vcvt_bf16_f32(a) } +} +#[doc = "Floating-point convert from single-precision to BFloat16 format (vector)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vcvt_bf16_f32)"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg(not(target_arch = "arm"))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(bfcvtn) +)] +pub fn vcvt_bf16_f32(a: float32x4_t) -> bfloat16x4_t { + unsafe { vget_low_bf16(vcvtq_low_bf16_f32(a)) } +} #[doc = "Floating-point convert to lower precision narrow"] #[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vcvt_f16_f32)"] #[inline] @@ -8689,6 +9397,32 @@ pub fn vcvt_f16_u16(a: uint16x4_t) -> float16x4_t { pub fn vcvtq_f16_u16(a: uint16x8_t) -> float16x8_t { unsafe { simd_cast(a) } } +#[doc = "Shift Left Long (by element size)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vcvt_f32_bf16)"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vshll.i16"))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(shll) +)] +pub fn vcvt_f32_bf16(a: bfloat16x4_t) -> float32x4_t { + unsafe { + let half: uint16x4_t = transmute(a); + vreinterpretq_f32_u32(vshll_n_u16::<16>(half)) + } +} #[doc = "Floating-point convert to higher precision long"] #[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vcvt_f32_f16)"] #[inline] @@ -9584,6 +10318,371 @@ pub fn vcvtq_u32_f32(a: float32x4_t) -> uint32x4_t { } unsafe { _vcvtq_u32_f32(a) } } +#[doc = "Shift Left (immediate)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vcvtah_f32_bf16)"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub fn vcvtah_f32_bf16(a: bfloat16_t) -> f32 { + f32::from_bits((a.to_bits() as u32) << 16) +} +#[doc = "Floating-point convert from single-precision to BFloat16 format (scalar)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vcvth_bf16_f32)"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vcvtb.bf16.f32"))] +#[cfg_attr( + all( + test, + any(target_arch = "aarch64", target_arch = "arm64ec"), + not(target_env = "msvc") + ), + assert_instr(bfcvt) +)] +pub fn vcvth_bf16_f32(a: f32) -> bfloat16_t { + unsafe extern "llvm-intrinsic" { + #[cfg_attr(target_arch = "arm", link_name = "llvm.arm.neon.vcvtbfp2bf")] + #[cfg_attr( + any(target_arch = "aarch64", target_arch = "arm64ec"), + link_name = "llvm.aarch64.neon.bfcvt" + )] + fn _vcvth_bf16_f32(a: f32) -> bfloat16_t; + } + unsafe { _vcvth_bf16_f32(a) } +} +#[doc = "Floating-point convert from single-precision to BFloat16 format (vector)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vcvtq_high_bf16_f32)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(target_endian = "little")] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg(not(target_arch = "arm"))] +#[cfg_attr( + all( + test, + any(target_arch = "aarch64", target_arch = "arm64ec"), + target_endian = "little" + ), + assert_instr(bfcvtn2) +)] +#[cfg_attr( + all(test, target_arch = "aarch64", target_endian = "big"), + assert_instr(bfcvtn) +)] +pub unsafe fn vcvtq_high_bf16_f32(_inactive: bfloat16x8_t, a: float32x4_t) -> bfloat16x8_t { + unsafe extern "llvm-intrinsic" { + #[cfg_attr( + any(target_arch = "aarch64", target_arch = "arm64ec"), + link_name = "llvm.aarch64.neon.bfcvtn2" + )] + fn _vcvtq_high_bf16_f32(_inactive: bfloat16x8_t, a: float32x4_t) -> bfloat16x8_t; + } + _vcvtq_high_bf16_f32(_inactive, a) +} +#[doc = "Floating-point convert from single-precision to BFloat16 format (vector)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vcvtq_high_bf16_f32)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(target_endian = "big")] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg(not(target_arch = "arm"))] +#[cfg_attr( + all( + test, + any(target_arch = "aarch64", target_arch = "arm64ec"), + target_endian = "little" + ), + assert_instr(bfcvtn2) +)] +#[cfg_attr( + all(test, target_arch = "aarch64", target_endian = "big"), + assert_instr(bfcvtn) +)] +pub unsafe fn vcvtq_high_bf16_f32(_inactive: bfloat16x8_t, a: float32x4_t) -> bfloat16x8_t { + unsafe extern "llvm-intrinsic" { + #[cfg_attr( + any(target_arch = "aarch64", target_arch = "arm64ec"), + link_name = "llvm.aarch64.neon.bfcvtn2" + )] + fn _vcvtq_high_bf16_f32(_inactive: bfloat16x8_t, a: float32x4_t) -> bfloat16x8_t; + } + let _inactive: bfloat16x8_t = simd_shuffle!(_inactive, _inactive, [7, 6, 5, 4, 3, 2, 1, 0]); + let a: float32x4_t = simd_shuffle!(a, a, [3, 2, 1, 0]); + let ret_val: bfloat16x8_t = _vcvtq_high_bf16_f32(_inactive, a); + simd_shuffle!(ret_val, ret_val, [7, 6, 5, 4, 3, 2, 1, 0]) +} +#[doc = "Floating-point convert from single-precision to BFloat16 format (vector)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vcvtq_high_bf16_f32)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg(target_arch = "arm")] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vcvt.bf16.f32"))] +pub unsafe fn vcvtq_high_bf16_f32(_inactive: bfloat16x8_t, a: float32x4_t) -> bfloat16x8_t { + let b: bfloat16x4_t = simd_shuffle!(_inactive, _inactive, [0, 1, 2, 3]); + let a: int32x4_t = transmute(a); + let a: int16x8_t = transmute(a); + let a: float32x4_t = transmute(a); + let a: bfloat16x4_t = vcvt_bf16_f32(a); + let vec: bfloat16x4_t = simd_shuffle!(a, a, [0, 1, 2, 3]); + simd_shuffle!(vec, b, [0, 1, 2, 3, 4, 5, 6, 7]) +} +#[doc = "Shift Left Long (by element size)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vcvtq_high_f32_bf16)"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vshll.i16"))] +#[cfg_attr( + all( + test, + any(target_arch = "aarch64", target_arch = "arm64ec"), + target_endian = "little" + ), + assert_instr(shll2) +)] +#[cfg_attr( + all(test, target_arch = "aarch64", target_endian = "big"), + assert_instr(shll) +)] +pub fn vcvtq_high_f32_bf16(a: bfloat16x8_t) -> float32x4_t { + unsafe { + let half: uint16x4_t = vget_high_u16(transmute(a)); + vreinterpretq_f32_u32(vshll_n_u16::<16>(half)) + } +} +#[doc = "Floating-point convert from single-precision to BFloat16 format (vector)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vcvtq_low_bf16_f32)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(target_endian = "little")] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg(target_arch = "arm")] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vcvt.bf16.f32"))] +pub unsafe fn vcvtq_low_bf16_f32(a: float32x4_t) -> bfloat16x8_t { + let a: int32x4_t = transmute(a); + let a: int8x16_t = transmute(a); + let a: float32x4_t = transmute(a); + let vec: bfloat16x4_t = vcvt_bf16_f32(a); + let z: bfloat16x4_t = bfloat16x4_t([ + bfloat16_t::from_bits(0x0), + bfloat16_t::from_bits(0x0), + bfloat16_t::from_bits(0x0), + bfloat16_t::from_bits(0x0), + ]); + simd_shuffle!(z, vec, [0, 1, 2, 3, 4, 5, 6, 7]) +} +#[doc = "Floating-point convert from single-precision to BFloat16 format (vector)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vcvtq_low_bf16_f32)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(target_endian = "big")] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg(target_arch = "arm")] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vcvt.bf16.f32"))] +pub unsafe fn vcvtq_low_bf16_f32(a: float32x4_t) -> bfloat16x8_t { + let a: float32x4_t = simd_shuffle!(a, a, [3, 2, 1, 0]); + let a: int32x4_t = transmute(a); + let a: int8x16_t = transmute(a); + let a: float32x4_t = transmute(a); + let vec: bfloat16x4_t = vcvt_bf16_f32(a); + let z: bfloat16x4_t = bfloat16x4_t([ + bfloat16_t::from_bits(0x0), + bfloat16_t::from_bits(0x0), + bfloat16_t::from_bits(0x0), + bfloat16_t::from_bits(0x0), + ]); + let ret_val: bfloat16x8_t = simd_shuffle!(z, vec, [0, 1, 2, 3, 4, 5, 6, 7]); + simd_shuffle!(ret_val, ret_val, [7, 6, 5, 4, 3, 2, 1, 0]) +} +#[doc = "Floating-point convert from single-precision to BFloat16 format (vector)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vcvtq_low_bf16_f32)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(target_endian = "little")] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg(not(target_arch = "arm"))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(bfcvtn) +)] +pub unsafe fn vcvtq_low_bf16_f32(a: float32x4_t) -> bfloat16x8_t { + unsafe extern "llvm-intrinsic" { + #[cfg_attr( + any(target_arch = "aarch64", target_arch = "arm64ec"), + link_name = "llvm.aarch64.neon.bfcvtn" + )] + fn _vcvtq_low_bf16_f32(a: float32x4_t) -> bfloat16x8_t; + } + _vcvtq_low_bf16_f32(a) +} +#[doc = "Floating-point convert from single-precision to BFloat16 format (vector)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vcvtq_low_bf16_f32)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(target_endian = "big")] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg(not(target_arch = "arm"))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(bfcvtn) +)] +pub unsafe fn vcvtq_low_bf16_f32(a: float32x4_t) -> bfloat16x8_t { + unsafe extern "llvm-intrinsic" { + #[cfg_attr( + any(target_arch = "aarch64", target_arch = "arm64ec"), + link_name = "llvm.aarch64.neon.bfcvtn" + )] + fn _vcvtq_low_bf16_f32(a: float32x4_t) -> bfloat16x8_t; + } + let a: float32x4_t = simd_shuffle!(a, a, [3, 2, 1, 0]); + let ret_val: bfloat16x8_t = _vcvtq_low_bf16_f32(a); + simd_shuffle!(ret_val, ret_val, [7, 6, 5, 4, 3, 2, 1, 0]) +} +#[doc = "Shift Left Long (by element size)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vcvtq_low_f32_bf16)"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vshll.i16"))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(shll) +)] +pub fn vcvtq_low_f32_bf16(a: bfloat16x8_t) -> float32x4_t { + unsafe { + let half: uint16x4_t = vget_low_u16(transmute(a)); + vreinterpretq_f32_u32(vshll_n_u16::<16>(half)) + } +} #[doc = "Dot product arithmetic (indexed)"] #[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vdot_lane_s32)"] #[inline] @@ -10052,6 +11151,34 @@ pub fn vdotq_u32(a: uint32x4_t, b: uint8x16_t, c: uint8x16_t) -> uint32x4_t { simd_shuffle!(ret_val, ret_val, [3, 2, 1, 0]) } } +#[doc = "Duplicate vector element to vector or scalar"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vdup_lane_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop, LANE = 2))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop, LANE = 2) +)] +pub unsafe fn vdup_lane_bf16(a: bfloat16x4_t) -> bfloat16x4_t { + static_assert_uimm_bits!(LANE, 2); + let c: uint16x4_t = vreinterpret_u16_bf16(a); + let duped: uint16x4_t = vdup_lane_u16::(c); + vreinterpret_bf16_u16(duped) +} #[doc = "Set all vector lanes to the same value"] #[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vdup_lane_f16)"] #[inline] @@ -11158,6 +12285,118 @@ pub fn vdup_lane_u64(a: uint64x1_t) -> uint64x1_t { static_assert!(N == 0); a } +#[doc = "Duplicate vector element to vector or scalar"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vdup_laneq_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(target_endian = "little")] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop, LANE = 2))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop, LANE = 2) +)] +pub unsafe fn vdup_laneq_bf16(a: bfloat16x8_t) -> bfloat16x4_t { + static_assert_uimm_bits!(LANE, 3); + simd_shuffle!(a, a, [LANE as u32; 4]) +} +#[doc = "Duplicate vector element to vector or scalar"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vdup_laneq_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(target_endian = "big")] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop, LANE = 2))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop, LANE = 2) +)] +pub unsafe fn vdup_laneq_bf16(a: bfloat16x8_t) -> bfloat16x4_t { + static_assert_uimm_bits!(LANE, 3); + let a: bfloat16x8_t = simd_shuffle!(a, a, [7, 6, 5, 4, 3, 2, 1, 0]); + let ret_val: bfloat16x4_t = simd_shuffle!(a, a, [LANE as u32; 4]); + simd_shuffle!(ret_val, ret_val, [3, 2, 1, 0]) +} +#[doc = "Duplicate vector element to vector or scalar"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vdupq_laneq_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(target_endian = "little")] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop, LANE = 2))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop, LANE = 2) +)] +pub unsafe fn vdupq_laneq_bf16(a: bfloat16x8_t) -> bfloat16x8_t { + static_assert_uimm_bits!(LANE, 3); + simd_shuffle!(a, a, [LANE as u32; 8]) +} +#[doc = "Duplicate vector element to vector or scalar"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vdupq_laneq_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(target_endian = "big")] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop, LANE = 2))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop, LANE = 2) +)] +pub unsafe fn vdupq_laneq_bf16(a: bfloat16x8_t) -> bfloat16x8_t { + static_assert_uimm_bits!(LANE, 3); + let a: bfloat16x8_t = simd_shuffle!(a, a, [7, 6, 5, 4, 3, 2, 1, 0]); + let ret_val: bfloat16x8_t = simd_shuffle!(a, a, [LANE as u32; 8]); + simd_shuffle!(ret_val, ret_val, [7, 6, 5, 4, 3, 2, 1, 0]) +} #[doc = "Set all vector lanes to the same value"] #[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vdup_laneq_f16)"] #[inline] @@ -12270,6 +13509,31 @@ pub fn vdup_laneq_u64(a: uint64x2_t) -> uint64x1_t { static_assert_uimm_bits!(N, 1); unsafe { transmute(vgetq_lane_u64::(a)) } } +#[doc = "Duplicate vector element to vector or scalar"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vdup_n_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vdup_n_bf16(a: bfloat16_t) -> bfloat16x4_t { + vreinterpret_bf16_u16(vdup_n_u16(a.to_bits())) +} #[doc = "Create a new vector with all lanes set to a value"] #[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vdup_n_f16)"] #[inline] @@ -12806,6 +14070,86 @@ fn vdup_n_f32_vfp4(value: f32) -> float32x2_t { fn vdupq_n_f32_vfp4(value: f32) -> float32x4_t { float32x4_t::splat(value) } +#[doc = "Duplicate vector element to vector or scalar"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vduph_lane_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop, LANE = 2))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop, LANE = 2) +)] +pub unsafe fn vduph_lane_bf16(a: bfloat16x4_t) -> bfloat16_t { + static_assert_uimm_bits!(LANE, 2); + vget_lane_bf16::(a) +} +#[doc = "Duplicate vector element to vector or scalar"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vduph_laneq_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop, LANE = 2))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop, LANE = 2) +)] +pub unsafe fn vduph_laneq_bf16(a: bfloat16x8_t) -> bfloat16_t { + static_assert_uimm_bits!(LANE, 3); + vgetq_lane_bf16::(a) +} +#[doc = "Duplicate vector element to vector or scalar"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vdupq_lane_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop, LANE = 2))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop, LANE = 2) +)] +pub unsafe fn vdupq_lane_bf16(a: bfloat16x4_t) -> bfloat16x8_t { + static_assert_uimm_bits!(LANE, 2); + let c: uint16x4_t = vreinterpret_u16_bf16(a); + let duped: uint16x8_t = vdupq_lane_u16::(c); + vreinterpretq_bf16_u16(duped) +} #[doc = "Set all vector lanes to the same value"] #[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vdupq_lane_s64)"] #[inline] @@ -13012,6 +14356,31 @@ pub fn vdupq_laneq_u64(a: uint64x2_t) -> uint64x2_t { simd_shuffle!(ret_val, ret_val, [1, 0]) } } +#[doc = "Duplicate vector element to vector or scalar"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vdupq_n_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vdupq_n_bf16(a: bfloat16_t) -> bfloat16x8_t { + vreinterpretq_bf16_u16(vdupq_n_u16(a.to_bits())) +} #[doc = "Vector bitwise exclusive or (vector)"] #[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/veor_s8)"] #[inline] @@ -15191,6 +16560,60 @@ pub fn vfms_n_f32(a: float32x2_t, b: float32x2_t, c: f32) -> float32x2_t { pub fn vfmsq_n_f32(a: float32x4_t, b: float32x4_t, c: f32) -> float32x4_t { vfmsq_f32(a, b, vdupq_n_f32_vfp4(c)) } +#[doc = "Duplicate vector element to vector or scalar"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vget_high_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(target_endian = "little")] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vget_high_bf16(a: bfloat16x8_t) -> bfloat16x4_t { + simd_shuffle!(a, a, [4, 5, 6, 7]) +} +#[doc = "Duplicate vector element to vector or scalar"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vget_high_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(target_endian = "big")] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vget_high_bf16(a: bfloat16x8_t) -> bfloat16x4_t { + let a: bfloat16x8_t = simd_shuffle!(a, a, [7, 6, 5, 4, 3, 2, 1, 0]); + let ret_val: bfloat16x4_t = simd_shuffle!(a, a, [4, 5, 6, 7]); + simd_shuffle!(ret_val, ret_val, [3, 2, 1, 0]) +} #[doc = "Duplicate vector element to vector"] #[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vget_high_f16)"] #[inline] @@ -15999,6 +17422,61 @@ pub fn vget_high_u64(a: uint64x2_t) -> uint64x1_t { uint64x1_t([simd_extract!(a, 1)]) } } +#[doc = "Duplicate vector element to vector or scalar"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vget_lane_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(target_endian = "little")] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop, LANE = 2))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop, LANE = 2) +)] +pub unsafe fn vget_lane_bf16(a: bfloat16x4_t) -> bfloat16_t { + static_assert_uimm_bits!(LANE, 2); + simd_extract!(a, LANE as u32) +} +#[doc = "Duplicate vector element to vector or scalar"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vget_lane_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(target_endian = "big")] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop, LANE = 2))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop, LANE = 2) +)] +pub unsafe fn vget_lane_bf16(a: bfloat16x4_t) -> bfloat16_t { + static_assert_uimm_bits!(LANE, 2); + let a: bfloat16x4_t = simd_shuffle!(a, a, [3, 2, 1, 0]); + simd_extract!(a, LANE as u32) +} #[doc = "Duplicate vector element to scalar"] #[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vget_lane_f16)"] #[inline] @@ -17045,6 +18523,31 @@ pub fn vget_lane_u64(v: uint64x1_t) -> u64 { unsafe { simd_extract!(v, 0) } } #[doc = "Duplicate vector element to vector or scalar"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vget_low_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vget_low_bf16(a: bfloat16x8_t) -> bfloat16x4_t { + transmute(vget_low_u64(transmute(a))) +} +#[doc = "Duplicate vector element to vector or scalar"] #[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vget_low_f32)"] #[inline] #[cfg(target_endian = "little")] @@ -17524,6 +19027,61 @@ pub fn vget_low_u64(a: uint64x2_t) -> uint64x1_t { uint64x1_t([simd_extract!(a, 0)]) } } +#[doc = "Duplicate vector element to vector or scalar"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vgetq_lane_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(target_endian = "little")] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop, LANE = 2))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop, LANE = 2) +)] +pub unsafe fn vgetq_lane_bf16(a: bfloat16x8_t) -> bfloat16_t { + static_assert_uimm_bits!(LANE, 3); + simd_extract!(a, LANE as u32) +} +#[doc = "Duplicate vector element to vector or scalar"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vgetq_lane_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(target_endian = "big")] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop, LANE = 2))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop, LANE = 2) +)] +pub unsafe fn vgetq_lane_bf16(a: bfloat16x8_t) -> bfloat16_t { + static_assert_uimm_bits!(LANE, 3); + let a: bfloat16x8_t = simd_shuffle!(a, a, [7, 6, 5, 4, 3, 2, 1, 0]); + simd_extract!(a, LANE as u32) +} #[doc = "Halving add"] #[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vhadd_s8)"] #[inline] @@ -18220,6 +19778,436 @@ pub fn vhsubq_u32(a: uint32x4_t, b: uint32x4_t) -> uint32x4_t { } unsafe { _vhsubq_u32(a, b) } } +#[doc = "Load multiple single-element structures to one, two, three, or four registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld1_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vld1_bf16(ptr: *const bfloat16_t) -> bfloat16x4_t { + crate::ptr::read_unaligned(ptr.cast()) +} +#[doc = "Load multiple single-element structures to one, two, three, or four registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld1q_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vld1q_bf16(ptr: *const bfloat16_t) -> bfloat16x8_t { + crate::ptr::read_unaligned(ptr.cast()) +} +#[doc = "Load multiple single-element structures to one, two, three, or four registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld1_bf16_x2)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg(target_arch = "arm")] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld1.8"))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(ld1) +)] +pub unsafe fn vld1_bf16_x2(ptr: *const bfloat16_t) -> bfloat16x4x2_t { + transmute(vld1_u16_x2(ptr.cast())) +} +#[doc = "Load multiple single-element structures to one, two, three, or four registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld1_bf16_x3)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg(target_arch = "arm")] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld1.8"))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(ld1) +)] +pub unsafe fn vld1_bf16_x3(ptr: *const bfloat16_t) -> bfloat16x4x3_t { + transmute(vld1_u16_x3(ptr.cast())) +} +#[doc = "Load multiple single-element structures to one, two, three, or four registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld1_bf16_x4)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg(target_arch = "arm")] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld1.8"))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(ld1) +)] +pub unsafe fn vld1_bf16_x4(ptr: *const bfloat16_t) -> bfloat16x4x4_t { + transmute(vld1_u16_x4(ptr.cast())) +} +#[doc = "Load multiple single-element structures to one, two, three, or four registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld1q_bf16_x2)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg(target_arch = "arm")] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld1.8"))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(ld1) +)] +pub unsafe fn vld1q_bf16_x2(ptr: *const bfloat16_t) -> bfloat16x8x2_t { + transmute(vld1q_u16_x2(ptr.cast())) +} +#[doc = "Load multiple single-element structures to one, two, three, or four registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld1q_bf16_x3)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg(target_arch = "arm")] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld1.8"))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(ld1) +)] +pub unsafe fn vld1q_bf16_x3(ptr: *const bfloat16_t) -> bfloat16x8x3_t { + transmute(vld1q_u16_x3(ptr.cast())) +} +#[doc = "Load multiple single-element structures to one, two, three, or four registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld1q_bf16_x4)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg(target_arch = "arm")] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld1.8"))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(ld1) +)] +pub unsafe fn vld1q_bf16_x4(ptr: *const bfloat16_t) -> bfloat16x8x4_t { + transmute(vld1q_u16_x4(ptr.cast())) +} +#[doc = "Load multiple single-element structures to one, two, three, or four registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld1_bf16_x2)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg(not(target_arch = "arm"))] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld1.8"))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(ld1) +)] +pub unsafe fn vld1_bf16_x2(ptr: *const bfloat16_t) -> bfloat16x4x2_t { + unsafe extern "llvm-intrinsic" { + #[cfg_attr( + any(target_arch = "aarch64", target_arch = "arm64ec"), + link_name = "llvm.aarch64.neon.ld1x2.v4bf16.p0" + )] + fn _vld1_bf16_x2(ptr: *const bfloat16_t) -> bfloat16x4x2_t; + } + _vld1_bf16_x2(ptr) +} +#[doc = "Load multiple single-element structures to one, two, three, or four registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld1_bf16_x3)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg(not(target_arch = "arm"))] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld1.8"))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(ld1) +)] +pub unsafe fn vld1_bf16_x3(ptr: *const bfloat16_t) -> bfloat16x4x3_t { + unsafe extern "llvm-intrinsic" { + #[cfg_attr( + any(target_arch = "aarch64", target_arch = "arm64ec"), + link_name = "llvm.aarch64.neon.ld1x3.v4bf16.p0" + )] + fn _vld1_bf16_x3(ptr: *const bfloat16_t) -> bfloat16x4x3_t; + } + _vld1_bf16_x3(ptr) +} +#[doc = "Load multiple single-element structures to one, two, three, or four registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld1_bf16_x4)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg(not(target_arch = "arm"))] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld1.8"))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(ld1) +)] +pub unsafe fn vld1_bf16_x4(ptr: *const bfloat16_t) -> bfloat16x4x4_t { + unsafe extern "llvm-intrinsic" { + #[cfg_attr( + any(target_arch = "aarch64", target_arch = "arm64ec"), + link_name = "llvm.aarch64.neon.ld1x4.v4bf16.p0" + )] + fn _vld1_bf16_x4(ptr: *const bfloat16_t) -> bfloat16x4x4_t; + } + _vld1_bf16_x4(ptr) +} +#[doc = "Load multiple single-element structures to one, two, three, or four registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld1q_bf16_x2)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg(not(target_arch = "arm"))] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld1.8"))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(ld1) +)] +pub unsafe fn vld1q_bf16_x2(ptr: *const bfloat16_t) -> bfloat16x8x2_t { + unsafe extern "llvm-intrinsic" { + #[cfg_attr( + any(target_arch = "aarch64", target_arch = "arm64ec"), + link_name = "llvm.aarch64.neon.ld1x2.v8bf16.p0" + )] + fn _vld1q_bf16_x2(ptr: *const bfloat16_t) -> bfloat16x8x2_t; + } + _vld1q_bf16_x2(ptr) +} +#[doc = "Load multiple single-element structures to one, two, three, or four registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld1q_bf16_x3)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg(not(target_arch = "arm"))] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld1.8"))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(ld1) +)] +pub unsafe fn vld1q_bf16_x3(ptr: *const bfloat16_t) -> bfloat16x8x3_t { + unsafe extern "llvm-intrinsic" { + #[cfg_attr( + any(target_arch = "aarch64", target_arch = "arm64ec"), + link_name = "llvm.aarch64.neon.ld1x3.v8bf16.p0" + )] + fn _vld1q_bf16_x3(ptr: *const bfloat16_t) -> bfloat16x8x3_t; + } + _vld1q_bf16_x3(ptr) +} +#[doc = "Load multiple single-element structures to one, two, three, or four registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld1q_bf16_x4)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg(not(target_arch = "arm"))] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld1.8"))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(ld1) +)] +pub unsafe fn vld1q_bf16_x4(ptr: *const bfloat16_t) -> bfloat16x8x4_t { + unsafe extern "llvm-intrinsic" { + #[cfg_attr( + any(target_arch = "aarch64", target_arch = "arm64ec"), + link_name = "llvm.aarch64.neon.ld1x4.v8bf16.p0" + )] + fn _vld1q_bf16_x4(ptr: *const bfloat16_t) -> bfloat16x8x4_t; + } + _vld1q_bf16_x4(ptr) +} +#[doc = "Load one single-element structure and Replicate to all lanes (of one register)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld1_dup_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vld1_dup_bf16(ptr: *const bfloat16_t) -> bfloat16x4_t { + transmute(vld1_dup_u16(ptr.cast())) +} +#[doc = "Load one single-element structure and Replicate to all lanes (of one register)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld1q_dup_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vld1q_dup_bf16(ptr: *const bfloat16_t) -> bfloat16x8_t { + transmute(vld1q_dup_u16(ptr.cast())) +} #[doc = "Load one single-element structure and replicate to all lanes of one register"] #[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld1_dup_f16)"] #[doc = "## Safety"] @@ -19290,6 +21278,62 @@ pub unsafe fn vld1q_f32_x4(a: *const f32) -> float32x4x4_t { crate::ptr::read_unaligned(a.cast()) } #[doc = "Load one single-element structure to one lane of one register"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld1_lane_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop, LANE = 2))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop, LANE = 2) +)] +pub unsafe fn vld1_lane_bf16( + ptr: *const bfloat16_t, + src: bfloat16x4_t, +) -> bfloat16x4_t { + transmute(vld1_lane_u16::(ptr.cast(), transmute(src))) +} +#[doc = "Load one single-element structure to one lane of one register"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld1q_lane_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop, LANE = 2))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop, LANE = 2) +)] +pub unsafe fn vld1q_lane_bf16( + ptr: *const bfloat16_t, + src: bfloat16x8_t, +) -> bfloat16x8_t { + transmute(vld1q_lane_u16::(ptr.cast(), transmute(src))) +} +#[doc = "Load one single-element structure to one lane of one register"] #[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld1_lane_f16)"] #[doc = "## Safety"] #[doc = " * Neon intrinsic unsafe"] @@ -21751,6 +23795,486 @@ pub unsafe fn vld1q_dup_p64(ptr: *const p64) -> poly64x2_t { let x = vld1q_lane_p64::<0>(ptr, transmute(u64x2::splat(0))); simd_shuffle!(x, x, [0, 0]) } +#[doc = "Load multiple 2-element structures to two registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld2_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg(target_arch = "arm")] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld2.16"))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(ld2) +)] +pub unsafe fn vld2_bf16(ptr: *const bfloat16_t) -> bfloat16x4x2_t { + transmute(vld2_u16(ptr.cast())) +} +#[doc = "Load multiple 2-element structures to two registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld2q_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg(target_arch = "arm")] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld2.16"))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(ld2) +)] +pub unsafe fn vld2q_bf16(ptr: *const bfloat16_t) -> bfloat16x8x2_t { + transmute(vld2q_u16(ptr.cast())) +} +#[doc = "Load multiple 2-element structures to two registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld3_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg(target_arch = "arm")] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld3.16"))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(ld3) +)] +pub unsafe fn vld3_bf16(ptr: *const bfloat16_t) -> bfloat16x4x3_t { + transmute(vld3_u16(ptr.cast())) +} +#[doc = "Load multiple 2-element structures to two registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld3q_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg(target_arch = "arm")] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld3.16"))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(ld3) +)] +pub unsafe fn vld3q_bf16(ptr: *const bfloat16_t) -> bfloat16x8x3_t { + transmute(vld3q_u16(ptr.cast())) +} +#[doc = "Load multiple 2-element structures to two registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld4_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg(target_arch = "arm")] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld4.16"))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(ld4) +)] +pub unsafe fn vld4_bf16(ptr: *const bfloat16_t) -> bfloat16x4x4_t { + transmute(vld4_u16(ptr.cast())) +} +#[doc = "Load multiple 2-element structures to two registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld4q_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg(target_arch = "arm")] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld4.16"))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(ld4) +)] +pub unsafe fn vld4q_bf16(ptr: *const bfloat16_t) -> bfloat16x8x4_t { + transmute(vld4q_u16(ptr.cast())) +} +#[doc = "Load multiple 2-element structures to two registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld2_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg(not(target_arch = "arm"))] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld2.16"))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(ld2) +)] +pub unsafe fn vld2_bf16(ptr: *const bfloat16_t) -> bfloat16x4x2_t { + unsafe extern "llvm-intrinsic" { + #[cfg_attr( + any(target_arch = "aarch64", target_arch = "arm64ec"), + link_name = "llvm.aarch64.neon.ld2.v4bf16.p0" + )] + fn _vld2_bf16(ptr: *const bfloat16_t) -> bfloat16x4x2_t; + } + _vld2_bf16(ptr) +} +#[doc = "Load multiple 2-element structures to two registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld2q_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg(not(target_arch = "arm"))] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld2.16"))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(ld2) +)] +pub unsafe fn vld2q_bf16(ptr: *const bfloat16_t) -> bfloat16x8x2_t { + unsafe extern "llvm-intrinsic" { + #[cfg_attr( + any(target_arch = "aarch64", target_arch = "arm64ec"), + link_name = "llvm.aarch64.neon.ld2.v8bf16.p0" + )] + fn _vld2q_bf16(ptr: *const bfloat16_t) -> bfloat16x8x2_t; + } + _vld2q_bf16(ptr) +} +#[doc = "Load multiple 2-element structures to two registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld3_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg(not(target_arch = "arm"))] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld3.16"))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(ld3) +)] +pub unsafe fn vld3_bf16(ptr: *const bfloat16_t) -> bfloat16x4x3_t { + unsafe extern "llvm-intrinsic" { + #[cfg_attr( + any(target_arch = "aarch64", target_arch = "arm64ec"), + link_name = "llvm.aarch64.neon.ld3.v4bf16.p0" + )] + fn _vld3_bf16(ptr: *const bfloat16_t) -> bfloat16x4x3_t; + } + _vld3_bf16(ptr) +} +#[doc = "Load multiple 2-element structures to two registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld3q_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg(not(target_arch = "arm"))] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld3.16"))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(ld3) +)] +pub unsafe fn vld3q_bf16(ptr: *const bfloat16_t) -> bfloat16x8x3_t { + unsafe extern "llvm-intrinsic" { + #[cfg_attr( + any(target_arch = "aarch64", target_arch = "arm64ec"), + link_name = "llvm.aarch64.neon.ld3.v8bf16.p0" + )] + fn _vld3q_bf16(ptr: *const bfloat16_t) -> bfloat16x8x3_t; + } + _vld3q_bf16(ptr) +} +#[doc = "Load multiple 2-element structures to two registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld4_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg(not(target_arch = "arm"))] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld4.16"))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(ld4) +)] +pub unsafe fn vld4_bf16(ptr: *const bfloat16_t) -> bfloat16x4x4_t { + unsafe extern "llvm-intrinsic" { + #[cfg_attr( + any(target_arch = "aarch64", target_arch = "arm64ec"), + link_name = "llvm.aarch64.neon.ld4.v4bf16.p0" + )] + fn _vld4_bf16(ptr: *const bfloat16_t) -> bfloat16x4x4_t; + } + _vld4_bf16(ptr) +} +#[doc = "Load multiple 2-element structures to two registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld4q_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg(not(target_arch = "arm"))] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld4.16"))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(ld4) +)] +pub unsafe fn vld4q_bf16(ptr: *const bfloat16_t) -> bfloat16x8x4_t { + unsafe extern "llvm-intrinsic" { + #[cfg_attr( + any(target_arch = "aarch64", target_arch = "arm64ec"), + link_name = "llvm.aarch64.neon.ld4.v8bf16.p0" + )] + fn _vld4q_bf16(ptr: *const bfloat16_t) -> bfloat16x8x4_t; + } + _vld4q_bf16(ptr) +} +#[doc = "Load single 2-element structure and Replicate to all lanes of two registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld2_dup_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld2.16"))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(ld2) +)] +pub unsafe fn vld2_dup_bf16(ptr: *const bfloat16_t) -> bfloat16x4x2_t { + transmute(vld2_dup_u16(ptr.cast())) +} +#[doc = "Load single 2-element structure and Replicate to all lanes of two registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld2q_dup_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld2.16"))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(ld2) +)] +pub unsafe fn vld2q_dup_bf16(ptr: *const bfloat16_t) -> bfloat16x8x2_t { + transmute(vld2q_dup_u16(ptr.cast())) +} +#[doc = "Load single 2-element structure and Replicate to all lanes of two registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld3_dup_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld3.16"))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(ld3) +)] +pub unsafe fn vld3_dup_bf16(ptr: *const bfloat16_t) -> bfloat16x4x3_t { + transmute(vld3_dup_u16(ptr.cast())) +} +#[doc = "Load single 2-element structure and Replicate to all lanes of two registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld3q_dup_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld3.16"))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(ld3) +)] +pub unsafe fn vld3q_dup_bf16(ptr: *const bfloat16_t) -> bfloat16x8x3_t { + transmute(vld3q_dup_u16(ptr.cast())) +} +#[doc = "Load single 2-element structure and Replicate to all lanes of two registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld4_dup_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld4.16"))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(ld4) +)] +pub unsafe fn vld4_dup_bf16(ptr: *const bfloat16_t) -> bfloat16x4x4_t { + transmute(vld4_dup_u16(ptr.cast())) +} +#[doc = "Load single 2-element structure and Replicate to all lanes of two registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld4q_dup_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld4.16"))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(ld4) +)] +pub unsafe fn vld4q_dup_bf16(ptr: *const bfloat16_t) -> bfloat16x8x4_t { + transmute(vld4q_dup_u16(ptr.cast())) +} #[doc = "Load single 2-element structure and replicate to all lanes of two registers"] #[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld2_dup_f16)"] #[doc = "## Safety"] @@ -22794,6 +25318,62 @@ pub unsafe fn vld2q_s32(a: *const i32) -> int32x4x2_t { } _vld2q_s32(a as _) } +#[doc = "Load single 2-element structure and Replicate to all lanes of two registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld2_lane_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld2.16", LANE = 2))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(ld2, LANE = 2) +)] +pub unsafe fn vld2_lane_bf16( + ptr: *const bfloat16_t, + src: bfloat16x4x2_t, +) -> bfloat16x4x2_t { + transmute(vld2_lane_u16::(ptr.cast(), transmute(src))) +} +#[doc = "Load single 2-element structure and Replicate to all lanes of two registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld2q_lane_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld2.16", LANE = 2))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(ld2, LANE = 2) +)] +pub unsafe fn vld2q_lane_bf16( + ptr: *const bfloat16_t, + src: bfloat16x8x2_t, +) -> bfloat16x8x2_t { + transmute(vld2q_lane_u16::(ptr.cast(), transmute(src))) +} #[doc = "Load multiple 2-element structures to two registers"] #[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld2_lane_f16)"] #[doc = "## Safety"] @@ -24699,6 +27279,62 @@ pub unsafe fn vld3q_s32(a: *const i32) -> int32x4x3_t { } _vld3q_s32(a as *const i8, 4) } +#[doc = "Load single 3-element structure to one lane of three registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld3_lane_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld3.16", LANE = 2))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(ld3, LANE = 2) +)] +pub unsafe fn vld3_lane_bf16( + ptr: *const bfloat16_t, + src: bfloat16x4x3_t, +) -> bfloat16x4x3_t { + transmute(vld3_lane_u16::(ptr.cast(), transmute(src))) +} +#[doc = "Load single 3-element structure to one lane of three registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld3q_lane_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld3.16", LANE = 2))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(ld3, LANE = 2) +)] +pub unsafe fn vld3q_lane_bf16( + ptr: *const bfloat16_t, + src: bfloat16x8x3_t, +) -> bfloat16x8x3_t { + transmute(vld3q_lane_u16::(ptr.cast(), transmute(src))) +} #[doc = "Load multiple 3-element structures to two registers"] #[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld3_lane_f16)"] #[doc = "## Safety"] @@ -26650,6 +29286,62 @@ pub unsafe fn vld4q_s32(a: *const i32) -> int32x4x4_t { } _vld4q_s32(a as *const i8, 4) } +#[doc = "Load single 4-element structure and Replicate to all lanes of four registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld4_lane_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld4.16", LANE = 2))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(ld4, LANE = 2) +)] +pub unsafe fn vld4_lane_bf16( + ptr: *const bfloat16_t, + src: bfloat16x4x4_t, +) -> bfloat16x4x4_t { + transmute(vld4_lane_u16::(ptr.cast(), transmute(src))) +} +#[doc = "Load single 4-element structure and Replicate to all lanes of four registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld4q_lane_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld4.16", LANE = 2))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(ld4, LANE = 2) +)] +pub unsafe fn vld4q_lane_bf16( + ptr: *const bfloat16_t, + src: bfloat16x8x4_t, +) -> bfloat16x8x4_t { + transmute(vld4q_lane_u16::(ptr.cast(), transmute(src))) +} #[doc = "Load multiple 4-element structures to two registers"] #[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vld4_lane_f16)"] #[doc = "## Safety"] @@ -42264,293 +44956,657 @@ pub fn vrecpsq_f32(a: float32x4_t, b: float32x4_t) -> float32x4_t { unsafe { _vrecpsq_f32(a, b) } } #[doc = "Vector reinterpret cast operation"] -#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_f32_f16)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_bf16_f16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] #[inline] -#[target_feature(enable = "neon")] -#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] #[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] #[cfg_attr( all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), assert_instr(nop) )] +pub unsafe fn vreinterpret_bf16_f16(a: float16x4_t) -> bfloat16x4_t { + transmute(a) +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_bf16_f32)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - stable(feature = "stdarch_neon_fp16", since = "1.94.0") + unstable(feature = "stdarch_neon_bf16", issue = "none") )] #[cfg_attr( target_arch = "arm", unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") )] -#[cfg(not(target_arch = "arm64ec"))] -pub fn vreinterpret_f32_f16(a: float16x4_t) -> float32x2_t { - unsafe { transmute(a) } +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vreinterpret_bf16_f32(a: float32x2_t) -> bfloat16x4_t { + transmute(a) } #[doc = "Vector reinterpret cast operation"] -#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_s8_f16)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_bf16_p16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] #[inline] -#[target_feature(enable = "neon")] -#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] #[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] #[cfg_attr( all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), assert_instr(nop) )] +pub unsafe fn vreinterpret_bf16_p16(a: poly16x4_t) -> bfloat16x4_t { + transmute(a) +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_bf16_p64)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - stable(feature = "stdarch_neon_fp16", since = "1.94.0") + unstable(feature = "stdarch_neon_bf16", issue = "none") )] #[cfg_attr( target_arch = "arm", unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") )] -#[cfg(not(target_arch = "arm64ec"))] -pub fn vreinterpret_s8_f16(a: float16x4_t) -> int8x8_t { - unsafe { transmute(a) } +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vreinterpret_bf16_p64(a: poly64x1_t) -> bfloat16x4_t { + transmute(a) } #[doc = "Vector reinterpret cast operation"] -#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_s32_f16)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_bf16_p8)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] #[inline] -#[target_feature(enable = "neon")] -#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] #[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] #[cfg_attr( all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), assert_instr(nop) )] +pub unsafe fn vreinterpret_bf16_p8(a: poly8x8_t) -> bfloat16x4_t { + transmute(a) +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_bf16_s16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - stable(feature = "stdarch_neon_fp16", since = "1.94.0") + unstable(feature = "stdarch_neon_bf16", issue = "none") )] #[cfg_attr( target_arch = "arm", unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") )] -#[cfg(not(target_arch = "arm64ec"))] -pub fn vreinterpret_s32_f16(a: float16x4_t) -> int32x2_t { - unsafe { transmute(a) } +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vreinterpret_bf16_s16(a: int16x4_t) -> bfloat16x4_t { + transmute(a) } #[doc = "Vector reinterpret cast operation"] -#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_s64_f16)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_bf16_s32)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] #[inline] -#[target_feature(enable = "neon")] -#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] #[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] #[cfg_attr( all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), assert_instr(nop) )] +pub unsafe fn vreinterpret_bf16_s32(a: int32x2_t) -> bfloat16x4_t { + transmute(a) +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_bf16_s64)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - stable(feature = "stdarch_neon_fp16", since = "1.94.0") + unstable(feature = "stdarch_neon_bf16", issue = "none") )] #[cfg_attr( target_arch = "arm", unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") )] -#[cfg(not(target_arch = "arm64ec"))] -pub fn vreinterpret_s64_f16(a: float16x4_t) -> int64x1_t { - unsafe { transmute(a) } +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vreinterpret_bf16_s64(a: int64x1_t) -> bfloat16x4_t { + transmute(a) } #[doc = "Vector reinterpret cast operation"] -#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_u8_f16)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_bf16_s8)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] #[inline] -#[target_feature(enable = "neon")] -#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] #[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] #[cfg_attr( all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), assert_instr(nop) )] +pub unsafe fn vreinterpret_bf16_s8(a: int8x8_t) -> bfloat16x4_t { + transmute(a) +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_bf16_u16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - stable(feature = "stdarch_neon_fp16", since = "1.94.0") + unstable(feature = "stdarch_neon_bf16", issue = "none") )] #[cfg_attr( target_arch = "arm", unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") )] -#[cfg(not(target_arch = "arm64ec"))] -pub fn vreinterpret_u8_f16(a: float16x4_t) -> uint8x8_t { - unsafe { transmute(a) } +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vreinterpret_bf16_u16(a: uint16x4_t) -> bfloat16x4_t { + transmute(a) } #[doc = "Vector reinterpret cast operation"] -#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_u32_f16)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_bf16_u32)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] #[inline] -#[target_feature(enable = "neon")] -#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] #[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] #[cfg_attr( all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), assert_instr(nop) )] +pub unsafe fn vreinterpret_bf16_u32(a: uint32x2_t) -> bfloat16x4_t { + transmute(a) +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_bf16_u64)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - stable(feature = "stdarch_neon_fp16", since = "1.94.0") + unstable(feature = "stdarch_neon_bf16", issue = "none") )] #[cfg_attr( target_arch = "arm", unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") )] -#[cfg(not(target_arch = "arm64ec"))] -pub fn vreinterpret_u32_f16(a: float16x4_t) -> uint32x2_t { - unsafe { transmute(a) } +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vreinterpret_bf16_u64(a: uint64x1_t) -> bfloat16x4_t { + transmute(a) } #[doc = "Vector reinterpret cast operation"] -#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_u64_f16)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_bf16_u8)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] #[inline] -#[target_feature(enable = "neon")] -#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] #[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] #[cfg_attr( all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), assert_instr(nop) )] +pub unsafe fn vreinterpret_bf16_u8(a: uint8x8_t) -> bfloat16x4_t { + transmute(a) +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_f16_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - stable(feature = "stdarch_neon_fp16", since = "1.94.0") + unstable(feature = "stdarch_neon_bf16", issue = "none") )] #[cfg_attr( target_arch = "arm", unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") )] -#[cfg(not(target_arch = "arm64ec"))] -pub fn vreinterpret_u64_f16(a: float16x4_t) -> uint64x1_t { - unsafe { transmute(a) } +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vreinterpret_f16_bf16(a: bfloat16x4_t) -> float16x4_t { + transmute(a) } #[doc = "Vector reinterpret cast operation"] -#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_p8_f16)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_f32_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] #[inline] -#[target_feature(enable = "neon")] -#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] #[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] #[cfg_attr( all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), assert_instr(nop) )] +pub unsafe fn vreinterpret_f32_bf16(a: bfloat16x4_t) -> float32x2_t { + transmute(a) +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_p16_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - stable(feature = "stdarch_neon_fp16", since = "1.94.0") + unstable(feature = "stdarch_neon_bf16", issue = "none") )] #[cfg_attr( target_arch = "arm", unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") )] -#[cfg(not(target_arch = "arm64ec"))] -pub fn vreinterpret_p8_f16(a: float16x4_t) -> poly8x8_t { - unsafe { transmute(a) } +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vreinterpret_p16_bf16(a: bfloat16x4_t) -> poly16x4_t { + transmute(a) } #[doc = "Vector reinterpret cast operation"] -#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_f32_f16)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_p64_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] #[inline] -#[target_feature(enable = "neon")] -#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] #[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] #[cfg_attr( all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), assert_instr(nop) )] +pub unsafe fn vreinterpret_p64_bf16(a: bfloat16x4_t) -> poly64x1_t { + transmute(a) +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_p8_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - stable(feature = "stdarch_neon_fp16", since = "1.94.0") + unstable(feature = "stdarch_neon_bf16", issue = "none") )] #[cfg_attr( target_arch = "arm", unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") )] -#[cfg(not(target_arch = "arm64ec"))] -pub fn vreinterpretq_f32_f16(a: float16x8_t) -> float32x4_t { - unsafe { transmute(a) } +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vreinterpret_p8_bf16(a: bfloat16x4_t) -> poly8x8_t { + transmute(a) } #[doc = "Vector reinterpret cast operation"] -#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_s8_f16)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_s16_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] #[inline] -#[target_feature(enable = "neon")] -#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] #[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] #[cfg_attr( all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), assert_instr(nop) )] +pub unsafe fn vreinterpret_s16_bf16(a: bfloat16x4_t) -> int16x4_t { + transmute(a) +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_s32_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - stable(feature = "stdarch_neon_fp16", since = "1.94.0") + unstable(feature = "stdarch_neon_bf16", issue = "none") )] #[cfg_attr( target_arch = "arm", unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") )] -#[cfg(not(target_arch = "arm64ec"))] -pub fn vreinterpretq_s8_f16(a: float16x8_t) -> int8x16_t { - unsafe { transmute(a) } +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vreinterpret_s32_bf16(a: bfloat16x4_t) -> int32x2_t { + transmute(a) } #[doc = "Vector reinterpret cast operation"] -#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_s32_f16)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_s64_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] #[inline] -#[target_feature(enable = "neon")] -#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] #[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] #[cfg_attr( all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), assert_instr(nop) )] +pub unsafe fn vreinterpret_s64_bf16(a: bfloat16x4_t) -> int64x1_t { + transmute(a) +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_s8_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - stable(feature = "stdarch_neon_fp16", since = "1.94.0") + unstable(feature = "stdarch_neon_bf16", issue = "none") )] #[cfg_attr( target_arch = "arm", unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") )] -#[cfg(not(target_arch = "arm64ec"))] -pub fn vreinterpretq_s32_f16(a: float16x8_t) -> int32x4_t { - unsafe { transmute(a) } +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vreinterpret_s8_bf16(a: bfloat16x4_t) -> int8x8_t { + transmute(a) } #[doc = "Vector reinterpret cast operation"] -#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_s64_f16)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_u16_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] #[inline] -#[target_feature(enable = "neon")] -#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] #[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] #[cfg_attr( all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), assert_instr(nop) )] +pub unsafe fn vreinterpret_u16_bf16(a: bfloat16x4_t) -> uint16x4_t { + transmute(a) +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_u32_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - stable(feature = "stdarch_neon_fp16", since = "1.94.0") + unstable(feature = "stdarch_neon_bf16", issue = "none") )] #[cfg_attr( target_arch = "arm", unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") )] -#[cfg(not(target_arch = "arm64ec"))] -pub fn vreinterpretq_s64_f16(a: float16x8_t) -> int64x2_t { - unsafe { transmute(a) } +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vreinterpret_u32_bf16(a: bfloat16x4_t) -> uint32x2_t { + transmute(a) } #[doc = "Vector reinterpret cast operation"] -#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_u8_f16)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_u64_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] #[inline] -#[target_feature(enable = "neon")] -#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] #[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] #[cfg_attr( all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), assert_instr(nop) )] +pub unsafe fn vreinterpret_u64_bf16(a: bfloat16x4_t) -> uint64x1_t { + transmute(a) +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_u8_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - stable(feature = "stdarch_neon_fp16", since = "1.94.0") + unstable(feature = "stdarch_neon_bf16", issue = "none") )] #[cfg_attr( target_arch = "arm", unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") )] -#[cfg(not(target_arch = "arm64ec"))] -pub fn vreinterpretq_u8_f16(a: float16x8_t) -> uint8x16_t { - unsafe { transmute(a) } +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vreinterpret_u8_bf16(a: bfloat16x4_t) -> uint8x8_t { + transmute(a) } #[doc = "Vector reinterpret cast operation"] -#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_u32_f16)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_f32_f16)"] #[inline] #[target_feature(enable = "neon")] #[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))] @@ -42568,11 +45624,11 @@ pub fn vreinterpretq_u8_f16(a: float16x8_t) -> uint8x16_t { unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") )] #[cfg(not(target_arch = "arm64ec"))] -pub fn vreinterpretq_u32_f16(a: float16x8_t) -> uint32x4_t { +pub fn vreinterpret_f32_f16(a: float16x4_t) -> float32x2_t { unsafe { transmute(a) } } #[doc = "Vector reinterpret cast operation"] -#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_u64_f16)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_s8_f16)"] #[inline] #[target_feature(enable = "neon")] #[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))] @@ -42590,11 +45646,11 @@ pub fn vreinterpretq_u32_f16(a: float16x8_t) -> uint32x4_t { unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") )] #[cfg(not(target_arch = "arm64ec"))] -pub fn vreinterpretq_u64_f16(a: float16x8_t) -> uint64x2_t { +pub fn vreinterpret_s8_f16(a: float16x4_t) -> int8x8_t { unsafe { transmute(a) } } #[doc = "Vector reinterpret cast operation"] -#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_p8_f16)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_s32_f16)"] #[inline] #[target_feature(enable = "neon")] #[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))] @@ -42612,11 +45668,11 @@ pub fn vreinterpretq_u64_f16(a: float16x8_t) -> uint64x2_t { unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") )] #[cfg(not(target_arch = "arm64ec"))] -pub fn vreinterpretq_p8_f16(a: float16x8_t) -> poly8x16_t { +pub fn vreinterpret_s32_f16(a: float16x4_t) -> int32x2_t { unsafe { transmute(a) } } #[doc = "Vector reinterpret cast operation"] -#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_f16_f32)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_s64_f16)"] #[inline] #[target_feature(enable = "neon")] #[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))] @@ -42634,11 +45690,11 @@ pub fn vreinterpretq_p8_f16(a: float16x8_t) -> poly8x16_t { unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") )] #[cfg(not(target_arch = "arm64ec"))] -pub fn vreinterpret_f16_f32(a: float32x2_t) -> float16x4_t { +pub fn vreinterpret_s64_f16(a: float16x4_t) -> int64x1_t { unsafe { transmute(a) } } #[doc = "Vector reinterpret cast operation"] -#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_f16_f32)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_u8_f16)"] #[inline] #[target_feature(enable = "neon")] #[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))] @@ -42656,11 +45712,11 @@ pub fn vreinterpret_f16_f32(a: float32x2_t) -> float16x4_t { unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") )] #[cfg(not(target_arch = "arm64ec"))] -pub fn vreinterpretq_f16_f32(a: float32x4_t) -> float16x8_t { +pub fn vreinterpret_u8_f16(a: float16x4_t) -> uint8x8_t { unsafe { transmute(a) } } #[doc = "Vector reinterpret cast operation"] -#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_f16_s8)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_u32_f16)"] #[inline] #[target_feature(enable = "neon")] #[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))] @@ -42678,11 +45734,11 @@ pub fn vreinterpretq_f16_f32(a: float32x4_t) -> float16x8_t { unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") )] #[cfg(not(target_arch = "arm64ec"))] -pub fn vreinterpret_f16_s8(a: int8x8_t) -> float16x4_t { +pub fn vreinterpret_u32_f16(a: float16x4_t) -> uint32x2_t { unsafe { transmute(a) } } #[doc = "Vector reinterpret cast operation"] -#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_f16_s8)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_u64_f16)"] #[inline] #[target_feature(enable = "neon")] #[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))] @@ -42700,11 +45756,11 @@ pub fn vreinterpret_f16_s8(a: int8x8_t) -> float16x4_t { unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") )] #[cfg(not(target_arch = "arm64ec"))] -pub fn vreinterpretq_f16_s8(a: int8x16_t) -> float16x8_t { +pub fn vreinterpret_u64_f16(a: float16x4_t) -> uint64x1_t { unsafe { transmute(a) } } #[doc = "Vector reinterpret cast operation"] -#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_f16_s32)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_p8_f16)"] #[inline] #[target_feature(enable = "neon")] #[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))] @@ -42722,11 +45778,11 @@ pub fn vreinterpretq_f16_s8(a: int8x16_t) -> float16x8_t { unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") )] #[cfg(not(target_arch = "arm64ec"))] -pub fn vreinterpret_f16_s32(a: int32x2_t) -> float16x4_t { +pub fn vreinterpret_p8_f16(a: float16x4_t) -> poly8x8_t { unsafe { transmute(a) } } #[doc = "Vector reinterpret cast operation"] -#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_f16_s32)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_f32_f16)"] #[inline] #[target_feature(enable = "neon")] #[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))] @@ -42744,11 +45800,11 @@ pub fn vreinterpret_f16_s32(a: int32x2_t) -> float16x4_t { unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") )] #[cfg(not(target_arch = "arm64ec"))] -pub fn vreinterpretq_f16_s32(a: int32x4_t) -> float16x8_t { +pub fn vreinterpretq_f32_f16(a: float16x8_t) -> float32x4_t { unsafe { transmute(a) } } #[doc = "Vector reinterpret cast operation"] -#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_f16_s64)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_s8_f16)"] #[inline] #[target_feature(enable = "neon")] #[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))] @@ -42766,11 +45822,11 @@ pub fn vreinterpretq_f16_s32(a: int32x4_t) -> float16x8_t { unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") )] #[cfg(not(target_arch = "arm64ec"))] -pub fn vreinterpret_f16_s64(a: int64x1_t) -> float16x4_t { +pub fn vreinterpretq_s8_f16(a: float16x8_t) -> int8x16_t { unsafe { transmute(a) } } #[doc = "Vector reinterpret cast operation"] -#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_f16_s64)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_s32_f16)"] #[inline] #[target_feature(enable = "neon")] #[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))] @@ -42788,11 +45844,11 @@ pub fn vreinterpret_f16_s64(a: int64x1_t) -> float16x4_t { unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") )] #[cfg(not(target_arch = "arm64ec"))] -pub fn vreinterpretq_f16_s64(a: int64x2_t) -> float16x8_t { +pub fn vreinterpretq_s32_f16(a: float16x8_t) -> int32x4_t { unsafe { transmute(a) } } #[doc = "Vector reinterpret cast operation"] -#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_f16_u8)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_s64_f16)"] #[inline] #[target_feature(enable = "neon")] #[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))] @@ -42810,11 +45866,11 @@ pub fn vreinterpretq_f16_s64(a: int64x2_t) -> float16x8_t { unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") )] #[cfg(not(target_arch = "arm64ec"))] -pub fn vreinterpret_f16_u8(a: uint8x8_t) -> float16x4_t { +pub fn vreinterpretq_s64_f16(a: float16x8_t) -> int64x2_t { unsafe { transmute(a) } } #[doc = "Vector reinterpret cast operation"] -#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_f16_u8)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_u8_f16)"] #[inline] #[target_feature(enable = "neon")] #[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))] @@ -42832,11 +45888,11 @@ pub fn vreinterpret_f16_u8(a: uint8x8_t) -> float16x4_t { unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") )] #[cfg(not(target_arch = "arm64ec"))] -pub fn vreinterpretq_f16_u8(a: uint8x16_t) -> float16x8_t { +pub fn vreinterpretq_u8_f16(a: float16x8_t) -> uint8x16_t { unsafe { transmute(a) } } #[doc = "Vector reinterpret cast operation"] -#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_f16_u32)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_u32_f16)"] #[inline] #[target_feature(enable = "neon")] #[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))] @@ -42854,11 +45910,297 @@ pub fn vreinterpretq_f16_u8(a: uint8x16_t) -> float16x8_t { unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") )] #[cfg(not(target_arch = "arm64ec"))] -pub fn vreinterpret_f16_u32(a: uint32x2_t) -> float16x4_t { +pub fn vreinterpretq_u32_f16(a: float16x8_t) -> uint32x4_t { unsafe { transmute(a) } } #[doc = "Vector reinterpret cast operation"] -#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_f16_u32)"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_u64_f16)"] +#[inline] +#[target_feature(enable = "neon")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +#[cfg_attr( + not(target_arch = "arm"), + stable(feature = "stdarch_neon_fp16", since = "1.94.0") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg(not(target_arch = "arm64ec"))] +pub fn vreinterpretq_u64_f16(a: float16x8_t) -> uint64x2_t { + unsafe { transmute(a) } +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_p8_f16)"] +#[inline] +#[target_feature(enable = "neon")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +#[cfg_attr( + not(target_arch = "arm"), + stable(feature = "stdarch_neon_fp16", since = "1.94.0") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg(not(target_arch = "arm64ec"))] +pub fn vreinterpretq_p8_f16(a: float16x8_t) -> poly8x16_t { + unsafe { transmute(a) } +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_f16_f32)"] +#[inline] +#[target_feature(enable = "neon")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +#[cfg_attr( + not(target_arch = "arm"), + stable(feature = "stdarch_neon_fp16", since = "1.94.0") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg(not(target_arch = "arm64ec"))] +pub fn vreinterpret_f16_f32(a: float32x2_t) -> float16x4_t { + unsafe { transmute(a) } +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_f16_f32)"] +#[inline] +#[target_feature(enable = "neon")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +#[cfg_attr( + not(target_arch = "arm"), + stable(feature = "stdarch_neon_fp16", since = "1.94.0") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg(not(target_arch = "arm64ec"))] +pub fn vreinterpretq_f16_f32(a: float32x4_t) -> float16x8_t { + unsafe { transmute(a) } +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_f16_s8)"] +#[inline] +#[target_feature(enable = "neon")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +#[cfg_attr( + not(target_arch = "arm"), + stable(feature = "stdarch_neon_fp16", since = "1.94.0") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg(not(target_arch = "arm64ec"))] +pub fn vreinterpret_f16_s8(a: int8x8_t) -> float16x4_t { + unsafe { transmute(a) } +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_f16_s8)"] +#[inline] +#[target_feature(enable = "neon")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +#[cfg_attr( + not(target_arch = "arm"), + stable(feature = "stdarch_neon_fp16", since = "1.94.0") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg(not(target_arch = "arm64ec"))] +pub fn vreinterpretq_f16_s8(a: int8x16_t) -> float16x8_t { + unsafe { transmute(a) } +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_f16_s32)"] +#[inline] +#[target_feature(enable = "neon")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +#[cfg_attr( + not(target_arch = "arm"), + stable(feature = "stdarch_neon_fp16", since = "1.94.0") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg(not(target_arch = "arm64ec"))] +pub fn vreinterpret_f16_s32(a: int32x2_t) -> float16x4_t { + unsafe { transmute(a) } +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_f16_s32)"] +#[inline] +#[target_feature(enable = "neon")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +#[cfg_attr( + not(target_arch = "arm"), + stable(feature = "stdarch_neon_fp16", since = "1.94.0") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg(not(target_arch = "arm64ec"))] +pub fn vreinterpretq_f16_s32(a: int32x4_t) -> float16x8_t { + unsafe { transmute(a) } +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_f16_s64)"] +#[inline] +#[target_feature(enable = "neon")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +#[cfg_attr( + not(target_arch = "arm"), + stable(feature = "stdarch_neon_fp16", since = "1.94.0") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg(not(target_arch = "arm64ec"))] +pub fn vreinterpret_f16_s64(a: int64x1_t) -> float16x4_t { + unsafe { transmute(a) } +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_f16_s64)"] +#[inline] +#[target_feature(enable = "neon")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +#[cfg_attr( + not(target_arch = "arm"), + stable(feature = "stdarch_neon_fp16", since = "1.94.0") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg(not(target_arch = "arm64ec"))] +pub fn vreinterpretq_f16_s64(a: int64x2_t) -> float16x8_t { + unsafe { transmute(a) } +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_f16_u8)"] +#[inline] +#[target_feature(enable = "neon")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +#[cfg_attr( + not(target_arch = "arm"), + stable(feature = "stdarch_neon_fp16", since = "1.94.0") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg(not(target_arch = "arm64ec"))] +pub fn vreinterpret_f16_u8(a: uint8x8_t) -> float16x4_t { + unsafe { transmute(a) } +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_f16_u8)"] +#[inline] +#[target_feature(enable = "neon")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +#[cfg_attr( + not(target_arch = "arm"), + stable(feature = "stdarch_neon_fp16", since = "1.94.0") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg(not(target_arch = "arm64ec"))] +pub fn vreinterpretq_f16_u8(a: uint8x16_t) -> float16x8_t { + unsafe { transmute(a) } +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpret_f16_u32)"] +#[inline] +#[target_feature(enable = "neon")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +#[cfg_attr( + not(target_arch = "arm"), + stable(feature = "stdarch_neon_fp16", since = "1.94.0") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg(not(target_arch = "arm64ec"))] +pub fn vreinterpret_f16_u32(a: uint32x2_t) -> float16x4_t { + unsafe { transmute(a) } +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_f16_u32)"] #[inline] #[target_feature(enable = "neon")] #[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))] @@ -44072,6 +47414,706 @@ pub fn vreinterpretq_u16_p16(a: poly16x8_t) -> uint16x8_t { unsafe { transmute(a) } } #[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_bf16_f16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vreinterpretq_bf16_f16(a: float16x8_t) -> bfloat16x8_t { + transmute(a) +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_bf16_f32)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vreinterpretq_bf16_f32(a: float32x4_t) -> bfloat16x8_t { + transmute(a) +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_bf16_p128)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vreinterpretq_bf16_p128(a: p128) -> bfloat16x8_t { + transmute(a) +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_bf16_p16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vreinterpretq_bf16_p16(a: poly16x8_t) -> bfloat16x8_t { + transmute(a) +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_bf16_p64)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vreinterpretq_bf16_p64(a: poly64x2_t) -> bfloat16x8_t { + transmute(a) +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_bf16_p8)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vreinterpretq_bf16_p8(a: poly8x16_t) -> bfloat16x8_t { + transmute(a) +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_bf16_s16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vreinterpretq_bf16_s16(a: int16x8_t) -> bfloat16x8_t { + transmute(a) +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_bf16_s32)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vreinterpretq_bf16_s32(a: int32x4_t) -> bfloat16x8_t { + transmute(a) +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_bf16_s64)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vreinterpretq_bf16_s64(a: int64x2_t) -> bfloat16x8_t { + transmute(a) +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_bf16_s8)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vreinterpretq_bf16_s8(a: int8x16_t) -> bfloat16x8_t { + transmute(a) +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_bf16_u16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vreinterpretq_bf16_u16(a: uint16x8_t) -> bfloat16x8_t { + transmute(a) +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_bf16_u32)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vreinterpretq_bf16_u32(a: uint32x4_t) -> bfloat16x8_t { + transmute(a) +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_bf16_u64)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vreinterpretq_bf16_u64(a: uint64x2_t) -> bfloat16x8_t { + transmute(a) +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_bf16_u8)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vreinterpretq_bf16_u8(a: uint8x16_t) -> bfloat16x8_t { + transmute(a) +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_f16_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vreinterpretq_f16_bf16(a: bfloat16x8_t) -> float16x8_t { + transmute(a) +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_f32_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vreinterpretq_f32_bf16(a: bfloat16x8_t) -> float32x4_t { + transmute(a) +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_p128_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vreinterpretq_p128_bf16(a: bfloat16x8_t) -> p128 { + transmute(a) +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_p16_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vreinterpretq_p16_bf16(a: bfloat16x8_t) -> poly16x8_t { + transmute(a) +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_p64_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vreinterpretq_p64_bf16(a: bfloat16x8_t) -> poly64x2_t { + transmute(a) +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_p8_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vreinterpretq_p8_bf16(a: bfloat16x8_t) -> poly8x16_t { + transmute(a) +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_s16_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vreinterpretq_s16_bf16(a: bfloat16x8_t) -> int16x8_t { + transmute(a) +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_s32_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vreinterpretq_s32_bf16(a: bfloat16x8_t) -> int32x4_t { + transmute(a) +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_s64_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vreinterpretq_s64_bf16(a: bfloat16x8_t) -> int64x2_t { + transmute(a) +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_s8_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vreinterpretq_s8_bf16(a: bfloat16x8_t) -> int8x16_t { + transmute(a) +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_u16_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vreinterpretq_u16_bf16(a: bfloat16x8_t) -> uint16x8_t { + transmute(a) +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_u32_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vreinterpretq_u32_bf16(a: bfloat16x8_t) -> uint32x4_t { + transmute(a) +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_u64_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vreinterpretq_u64_bf16(a: bfloat16x8_t) -> uint64x2_t { + transmute(a) +} +#[doc = "Vector reinterpret cast operation"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_u8_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop) +)] +pub unsafe fn vreinterpretq_u8_bf16(a: bfloat16x8_t) -> uint8x16_t { + transmute(a) +} +#[doc = "Vector reinterpret cast operation"] #[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vreinterpretq_f16_p128)"] #[inline] #[target_feature(enable = "neon")] @@ -53322,6 +57364,118 @@ pub fn vrsubhn_u64(a: uint64x2_t, b: uint64x2_t) -> uint32x2_t { unsafe { transmute(vrsubhn_s64(transmute(a), transmute(b))) } } #[doc = "Insert vector element from another vector element"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vset_lane_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(target_endian = "little")] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop, LANE = 2))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop, LANE = 2) +)] +pub unsafe fn vset_lane_bf16(a: bfloat16_t, v: bfloat16x4_t) -> bfloat16x4_t { + static_assert_uimm_bits!(LANE, 2); + simd_insert!(v, LANE as u32, a) +} +#[doc = "Insert vector element from another vector element"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vset_lane_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(target_endian = "big")] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop, LANE = 2))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop, LANE = 2) +)] +pub unsafe fn vset_lane_bf16(a: bfloat16_t, v: bfloat16x4_t) -> bfloat16x4_t { + static_assert_uimm_bits!(LANE, 2); + let v: bfloat16x4_t = simd_shuffle!(v, v, [3, 2, 1, 0]); + let ret_val: bfloat16x4_t = simd_insert!(v, LANE as u32, a); + simd_shuffle!(ret_val, ret_val, [3, 2, 1, 0]) +} +#[doc = "Insert vector element from another vector element"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vsetq_lane_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(target_endian = "little")] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop, LANE = 2))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop, LANE = 2) +)] +pub unsafe fn vsetq_lane_bf16(a: bfloat16_t, v: bfloat16x8_t) -> bfloat16x8_t { + static_assert_uimm_bits!(LANE, 3); + simd_insert!(v, LANE as u32, a) +} +#[doc = "Insert vector element from another vector element"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vsetq_lane_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(target_endian = "big")] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop, LANE = 2))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop, LANE = 2) +)] +pub unsafe fn vsetq_lane_bf16(a: bfloat16_t, v: bfloat16x8_t) -> bfloat16x8_t { + static_assert_uimm_bits!(LANE, 3); + let v: bfloat16x8_t = simd_shuffle!(v, v, [7, 6, 5, 4, 3, 2, 1, 0]); + let ret_val: bfloat16x8_t = simd_insert!(v, LANE as u32, a); + simd_shuffle!(ret_val, ret_val, [7, 6, 5, 4, 3, 2, 1, 0]) +} +#[doc = "Insert vector element from another vector element"] #[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vset_lane_f16)"] #[inline] #[cfg(target_endian = "little")] @@ -57733,6 +61887,206 @@ pub fn vsriq_n_p16(a: poly16x8_t, b: poly16x8_t) -> poly16x8_t { static_assert!(1 <= N && N <= 16); unsafe { transmute(vshiftrins_v8i16::(transmute(a), transmute(b))) } } +#[doc = "Store multiple single-element structures from one, two, three, or four registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vst1_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vst1.8"))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(str) +)] +pub unsafe fn vst1_bf16(ptr: *mut bfloat16_t, val: bfloat16x4_t) { + crate::ptr::write_unaligned(ptr.cast(), val) +} +#[doc = "Store multiple single-element structures from one, two, three, or four registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vst1q_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vst1.8"))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(str) +)] +pub unsafe fn vst1q_bf16(ptr: *mut bfloat16_t, val: bfloat16x8_t) { + crate::ptr::write_unaligned(ptr.cast(), val) +} +#[doc = "Load single 2-element structure and Replicate to all lanes of two registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vst1_bf16_x2)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vst1.16"))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(st1) +)] +pub unsafe fn vst1_bf16_x2(ptr: *mut bfloat16_t, val: bfloat16x4x2_t) { + vst1_u16_x2(ptr.cast(), transmute(val)) +} +#[doc = "Load single 2-element structure and Replicate to all lanes of two registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vst1_bf16_x3)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vst1.16"))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(st1) +)] +pub unsafe fn vst1_bf16_x3(ptr: *mut bfloat16_t, val: bfloat16x4x3_t) { + vst1_u16_x3(ptr.cast(), transmute(val)) +} +#[doc = "Load single 2-element structure and Replicate to all lanes of two registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vst1_bf16_x4)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vst1.16"))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(st1) +)] +pub unsafe fn vst1_bf16_x4(ptr: *mut bfloat16_t, val: bfloat16x4x4_t) { + vst1_u16_x4(ptr.cast(), transmute(val)) +} +#[doc = "Load single 2-element structure and Replicate to all lanes of two registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vst1q_bf16_x2)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vst1.16"))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(st1) +)] +pub unsafe fn vst1q_bf16_x2(ptr: *mut bfloat16_t, val: bfloat16x8x2_t) { + vst1q_u16_x2(ptr.cast(), transmute(val)) +} +#[doc = "Load single 2-element structure and Replicate to all lanes of two registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vst1q_bf16_x3)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vst1.16"))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(st1) +)] +pub unsafe fn vst1q_bf16_x3(ptr: *mut bfloat16_t, val: bfloat16x8x3_t) { + vst1q_u16_x3(ptr.cast(), transmute(val)) +} +#[doc = "Load single 2-element structure and Replicate to all lanes of two registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vst1q_bf16_x4)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vst1.16"))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(st1) +)] +pub unsafe fn vst1q_bf16_x4(ptr: *mut bfloat16_t, val: bfloat16x8x4_t) { + vst1q_u16_x4(ptr.cast(), transmute(val)) +} #[doc = "Store multiple single-element structures from one, two, three, or four registers."] #[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vst1_f16)"] #[doc = "## Safety"] @@ -58561,6 +62915,56 @@ pub unsafe fn vst1q_f32_x4(a: *mut f32, b: float32x4x4_t) { } _vst1q_f32_x4(b.0, b.1, b.2, b.3, a) } +#[doc = "Store a single-element structure from one lane of one register"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vst1_lane_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop, LANE = 2))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop, LANE = 2) +)] +pub unsafe fn vst1_lane_bf16(a: *mut bfloat16_t, v: bfloat16x4_t) { + vst1_lane_u16::(a.cast(), transmute(v)) +} +#[doc = "Store a single-element structure from one lane of one register"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vst1q_lane_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop, LANE = 2))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop, LANE = 2) +)] +pub unsafe fn vst1q_lane_bf16(a: *mut bfloat16_t, v: bfloat16x8_t) { + vst1q_lane_u16::(a.cast(), transmute(v)) +} #[doc = "Store multiple single-element structures from one, two, three, or four registers"] #[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vst1_lane_f16)"] #[doc = "## Safety"] @@ -61184,6 +65588,56 @@ pub unsafe fn vst1q_lane_p64(a: *mut p64, b: poly64x2_t) { crate::ptr::write_unaligned(a, simd_extract!(b, LANE as u32)) } #[doc = "Store multiple 2-element structures from two registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vst2_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop, LANE = 0))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop, LANE = 0) +)] +pub unsafe fn vst2_bf16(a: *mut bfloat16_t, b: bfloat16x4x2_t) { + vst2_u16(a.cast(), transmute(b)) +} +#[doc = "Store multiple 2-element structures from two registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vst2q_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop, LANE = 0))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop, LANE = 0) +)] +pub unsafe fn vst2q_bf16(a: *mut bfloat16_t, b: bfloat16x8x2_t) { + vst2q_u16(a.cast(), transmute(b)) +} +#[doc = "Store multiple 2-element structures from two registers"] #[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vst2_f16)"] #[doc = "## Safety"] #[doc = " * Neon intrinsic unsafe"] @@ -61487,6 +65941,56 @@ pub unsafe fn vst2q_s32(a: *mut i32, b: int32x4x2_t) { } _vst2q_s32(a as _, b.0, b.1, 4) } +#[doc = "Store single 2-element structure from one lane of two registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vst2_lane_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vst2.16", LANE = 2))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(st2, LANE = 2) +)] +pub unsafe fn vst2_lane_bf16(a: *mut bfloat16_t, v: bfloat16x4x2_t) { + vst2_lane_u16::(a.cast(), transmute(v)) +} +#[doc = "Store single 2-element structure from one lane of two registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vst2q_lane_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vst2.16", LANE = 2))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(st2, LANE = 2) +)] +pub unsafe fn vst2q_lane_bf16(a: *mut bfloat16_t, v: bfloat16x8x2_t) { + vst2q_lane_u16::(a.cast(), transmute(v)) +} #[doc = "Store multiple 2-element structures from two registers"] #[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vst2_lane_f16)"] #[doc = "## Safety"] @@ -62349,6 +66853,56 @@ pub unsafe fn vst2q_p16(a: *mut p16, b: poly16x8x2_t) { vst2q_s16(transmute(a), transmute(b)) } #[doc = "Store multiple 3-element structures from three registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vst3_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop, LANE = 0))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop, LANE = 0) +)] +pub unsafe fn vst3_bf16(a: *mut bfloat16_t, b: bfloat16x4x3_t) { + vst3_u16(a.cast(), transmute(b)) +} +#[doc = "Store multiple 3-element structures from three registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vst3q_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop, LANE = 0))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop, LANE = 0) +)] +pub unsafe fn vst3q_bf16(a: *mut bfloat16_t, b: bfloat16x8x3_t) { + vst3q_u16(a.cast(), transmute(b)) +} +#[doc = "Store multiple 3-element structures from three registers"] #[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vst3_f16)"] #[doc = "## Safety"] #[doc = " * Neon intrinsic unsafe"] @@ -62620,6 +67174,56 @@ pub unsafe fn vst3_s32(a: *mut i32, b: int32x2x3_t) { pub unsafe fn vst3q_s32(a: *mut i32, b: int32x4x3_t) { crate::core_arch::macros::interleaving_store!(i32, 4, 3, a, b) } +#[doc = "Store single 3-element structure from one lane of three registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vst3_lane_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vst3.16", LANE = 2))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(st3, LANE = 2) +)] +pub unsafe fn vst3_lane_bf16(a: *mut bfloat16_t, v: bfloat16x4x3_t) { + vst3_lane_u16::(a.cast(), transmute(v)) +} +#[doc = "Store single 3-element structure from one lane of three registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vst3q_lane_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vst3.16", LANE = 2))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(st3, LANE = 2) +)] +pub unsafe fn vst3q_lane_bf16(a: *mut bfloat16_t, v: bfloat16x8x3_t) { + vst3q_lane_u16::(a.cast(), transmute(v)) +} #[doc = "Store multiple 3-element structures from three registers"] #[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vst3_lane_f16)"] #[doc = "## Safety"] @@ -63538,6 +68142,56 @@ pub unsafe fn vst3q_p16(a: *mut p16, b: poly16x8x3_t) { vst3q_s16(transmute(a), transmute(b)) } #[doc = "Store multiple 4-element structures from four registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vst4_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop, LANE = 0))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop, LANE = 0) +)] +pub unsafe fn vst4_bf16(a: *mut bfloat16_t, b: bfloat16x4x4_t) { + vst4_u16(a.cast(), transmute(b)) +} +#[doc = "Store multiple 4-element structures from four registers"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vst4q_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop, LANE = 0))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(nop, LANE = 0) +)] +pub unsafe fn vst4q_bf16(a: *mut bfloat16_t, b: bfloat16x8x4_t) { + vst4q_u16(a.cast(), transmute(b)) +} +#[doc = "Store multiple 4-element structures from four registers"] #[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vst4_f16)"] #[doc = "## Safety"] #[doc = " * Neon intrinsic unsafe"] @@ -63904,6 +68558,56 @@ pub unsafe fn vst4_s32(a: *mut i32, b: int32x2x4_t) { pub unsafe fn vst4q_s32(a: *mut i32, b: int32x4x4_t) { crate::core_arch::macros::interleaving_store!(i32, 4, 4, a, b) } +#[doc = "Store single 4-element structure from one lane of four registerss"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vst4_lane_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vst4.16", LANE = 2))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(st4, LANE = 2) +)] +pub unsafe fn vst4_lane_bf16(a: *mut bfloat16_t, v: bfloat16x4x4_t) { + vst4_lane_u16::(a.cast(), transmute(v)) +} +#[doc = "Store single 4-element structure from one lane of four registerss"] +#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vst4q_lane_bf16)"] +#[doc = "## Safety"] +#[doc = " * Neon intrinsic unsafe"] +#[inline] +#[cfg(any(target_has_reliable_f16b, doc))] +#[doc(cfg(target_has_reliable_f16b))] +#[target_feature(enable = "neon,bf16")] +#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] +#[cfg_attr( + not(target_arch = "arm"), + unstable(feature = "stdarch_neon_bf16", issue = "none") +)] +#[cfg_attr( + target_arch = "arm", + unstable(feature = "stdarch_arm_neon_intrinsics", issue = "111800") +)] +#[cfg_attr(all(test, target_arch = "arm"), assert_instr("vst4.16", LANE = 2))] +#[cfg_attr( + all(test, any(target_arch = "aarch64", target_arch = "arm64ec")), + assert_instr(st4, LANE = 2) +)] +pub unsafe fn vst4q_lane_bf16(a: *mut bfloat16_t, v: bfloat16x8x4_t) { + vst4q_lane_u16::(a.cast(), transmute(v)) +} #[doc = "Store multiple 4-element structures from four registers"] #[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vst4_lane_f16)"] #[doc = "## Safety"] diff --git a/library/stdarch/crates/stdarch-gen-arm/spec/neon/aarch64.spec.yml b/library/stdarch/crates/stdarch-gen-arm/spec/neon/aarch64.spec.yml index 0b52f2701fa0e..a1c955bc5c629 100644 --- a/library/stdarch/crates/stdarch-gen-arm/spec/neon/aarch64.spec.yml +++ b/library/stdarch/crates/stdarch-gen-arm/spec/neon/aarch64.spec.yml @@ -41,6 +41,10 @@ neon-i8mm: &neon-i8mm neon-fp16: &neon-fp16 FnCall: [target_feature, ['enable = "neon,fp16"']] +# #[target_feature(enable = "neon,bf16")] +neon-bf16: &neon-bf16 + FnCall: [target_feature, ['enable = "neon,bf16"']] + # #[cfg_attr(not(target_arch = "arm"), target_feature(enable = "fhm"))] enable-fhm: &enable-fhm FnCall: [cfg_attr, [{ FnCall: [not, ['target_arch = "arm"']]}, { FnCall: [target_feature, ['enable = "fhm"']] }]] @@ -59,6 +63,18 @@ aarch64-crc-stable: &aarch64-crc-stable neon-unstable-f16: &neon-unstable-f16 FnCall: [unstable, ['feature = "stdarch_neon_f16"', 'issue = "136306"']] +# #[unstable(feature = "stdarch_neon_bf16", issue = "none")] +neon-unstable-bf16: &neon-unstable-bf16 + FnCall: [unstable, ['feature = "stdarch_neon_bf16"', 'issue = "none"']] + +# #[cfg(any(target_has_reliable_f16b, doc))] +cfg-reliable-bf16: &cfg-reliable-bf16 + FnCall: [cfg, [{ FnCall: [any, [target_has_reliable_f16b, doc]]}]] + +# #[doc(cfg(target_has_reliable_f16b))] +doc-cfg-reliable-bf16: &doc-cfg-reliable-bf16 + FnCall: [doc, [{ FnCall: [cfg, [target_has_reliable_f16b]]}]] + # #[unstable(feature = "stdarch_neon_feat_lut", issue = "138050")] neon-unstable-feat-lut: &neon-unstable-feat-lut FnCall: [unstable, ['feature = "stdarch_neon_feat_lut"', 'issue = "138050"']] @@ -14215,3 +14231,180 @@ intrinsics: compose: - FnCall: [static_assert_uimm_bits!, [IMM5, "1"]] - FnCall: ['simd_extract!', [a, 'IMM5 as u32'], [] , true] + +########## bf16 intrinsics + - name: "vreinterpret{neon_type[1].no}{neon_type[0].noq}" + doc: Vector reinterpret cast operation + arguments: ["a: {type[0]}"] + return_type: "{type[1]}" + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-unstable-bf16 + - *target-not-arm64ec + assert_instr: [nop] + safety: safe + types: + - [float64x1_t, bfloat16x4_t] + - [bfloat16x4_t, float64x1_t] + - [float64x2_t, bfloat16x8_t] + - [bfloat16x8_t, float64x2_t] + compose: + - FnCall: [transmute, [a]] + + - name: "vcopy{neon_type[0].lane_nox}" + doc: "Insert vector element from another vector element" + arguments: ["a: {neon_type[0]}", "b: {neon_type[1]}"] + return_type: "{neon_type[0]}" + attr: + - FnCall: [cfg_attr, [test, {FnCall: [assert_instr, [nop, 'LANE1 = {type[2]}', 'LANE2 = {type[3]}']]}]] + - FnCall: [rustc_legacy_const_generics, ['1', '3']] + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-unstable-bf16 + static_defs: ['const LANE1: i32, const LANE2: i32'] + safety: safe + types: + - [bfloat16x4_t, bfloat16x4_t, '3', '3', 'vcopy_lane_u16'] + - [bfloat16x8_t, bfloat16x4_t, '7', '3', 'vcopyq_lane_u16'] + compose: + - FnCall: [transmute, [FnCall: ['{type[4]}::', [FnCall: [transmute, [a]], FnCall: [transmute, [b]]]]]] + + - name: "vcopy{neon_type[0].laneq_nox}" + doc: "Insert vector element from another vector element" + arguments: ["a: {neon_type[0]}", "b: {neon_type[1]}"] + return_type: "{neon_type[0]}" + attr: + - FnCall: [cfg_attr, [test, {FnCall: [assert_instr, [nop, 'LANE1 = {type[2]}', 'LANE2 = {type[3]}']]}]] + - FnCall: [rustc_legacy_const_generics, ['1', '3']] + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-unstable-bf16 + static_defs: ['const LANE1: i32, const LANE2: i32'] + safety: safe + types: + - [bfloat16x4_t, bfloat16x8_t, '3', '7', 'vcopy_laneq_u16'] + - [bfloat16x8_t, bfloat16x8_t, '7', '7', 'vcopyq_laneq_u16'] + compose: + - FnCall: [transmute, [FnCall: ['{type[4]}::', [FnCall: [transmute, [a]], FnCall: [transmute, [b]]]]]] + + # MSVC's dumpbin prints raw opcodes for BF16 LUT instructions. + - name: "vluti2{neon_type[0].lane_nox}" + doc: "Lookup table read with 2-bit indices" + arguments: ["a: {neon_type[0]}", "b: {neon_type[1]}"] + return_type: "bfloat16x8_t" + attr: + - FnCall: [target_feature, ['enable = "neon,lut,bf16"']] + - FnCall: [cfg_attr, [*msvc-disabled, {FnCall: [assert_instr, [luti2, 'LANE = 1']]}]] + - FnCall: [rustc_legacy_const_generics, ['2']] + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-unstable-bf16 + static_defs: ['const LANE: i32'] + safety: + unsafe: [neon] + types: + - [bfloat16x4_t, uint8x8_t, 'LANE >= 0 && LANE <= 3'] + - [bfloat16x8_t, uint8x8_t, 'LANE >= 0 && LANE <= 3'] + compose: + - FnCall: ['static_assert!', ['{type[2]}']] + - LLVMLink: + name: "vluti2{neon_type[0].lane_nox}" + arguments: + - 'a: {neon_type[0]}' + - 'b: {neon_type[1]}' + - 'n: i32' + links: + - link: "llvm.aarch64.neon.vluti2.lane.v8bf16.{neon_type[0]}" + arch: aarch64,arm64ec + - FnCall: ['_vluti2{neon_type[0].lane_nox}', [a, b, LANE]] + + - name: "vluti2{neon_type[0].laneq_nox}" + doc: "Lookup table read with 2-bit indices" + arguments: ["a: {neon_type[0]}", "b: {neon_type[1]}"] + return_type: "bfloat16x8_t" + attr: + - FnCall: [target_feature, ['enable = "neon,lut,bf16"']] + - FnCall: [cfg_attr, [*msvc-disabled, {FnCall: [assert_instr, [luti2, 'LANE = 1']]}]] + - FnCall: [rustc_legacy_const_generics, ['2']] + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-unstable-bf16 + static_defs: ['const LANE: i32'] + safety: + unsafe: [neon] + types: + - [bfloat16x4_t, uint8x16_t, 'LANE >= 0 && LANE <= 7'] + - [bfloat16x8_t, uint8x16_t, 'LANE >= 0 && LANE <= 7'] + compose: + - FnCall: ['static_assert!', ['{type[2]}']] + - LLVMLink: + name: "vluti2{neon_type[0].laneq_nox}" + arguments: + - 'a: {neon_type[0]}' + - 'b: {neon_type[1]}' + - 'n: i32' + links: + - link: "llvm.aarch64.neon.vluti2.laneq.v8bf16.{neon_type[0]}" + arch: aarch64,arm64ec + - FnCall: ['_vluti2{neon_type[0].laneq_nox}', [a, b, LANE]] + + - name: "vluti4q_lane_bf16_x2" + doc: "Lookup table read with 4-bit indices" + arguments: ["a: {neon_type[0]}", "b: {neon_type[1]}"] + return_type: "bfloat16x8_t" + attr: + - FnCall: [target_feature, ['enable = "neon,lut,bf16"']] + - FnCall: [cfg_attr, [*msvc-disabled, {FnCall: [assert_instr, [luti4, 'LANE = 0']]}]] + - FnCall: [rustc_legacy_const_generics, ['2']] + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-unstable-bf16 + static_defs: ['const LANE: i32'] + safety: + unsafe: [neon] + types: + - [bfloat16x8x2_t, uint8x8_t, 'LANE >= 0 && LANE <= 1'] + compose: + - FnCall: ['static_assert!', ['{type[2]}']] + - LLVMLink: + name: "vluti4q_lane_bf16_x2" + arguments: + - 'a0: bfloat16x8_t' + - 'a1: bfloat16x8_t' + - 'b: {neon_type[1]}' + - 'n: i32' + links: + - link: "llvm.aarch64.neon.vluti4q.lane.x2.v8bf16" + arch: aarch64,arm64ec + - FnCall: ['_vluti4q_lane_bf16_x2', [a.0, a.1, b, LANE]] + + - name: "vluti4q_laneq_bf16_x2" + doc: "Lookup table read with 4-bit indices" + arguments: ["a: {neon_type[0]}", "b: {neon_type[1]}"] + return_type: "bfloat16x8_t" + attr: + - FnCall: [target_feature, ['enable = "neon,lut,bf16"']] + - FnCall: [cfg_attr, [*msvc-disabled, {FnCall: [assert_instr, [luti4, 'LANE = 0']]}]] + - FnCall: [rustc_legacy_const_generics, ['2']] + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-unstable-bf16 + static_defs: ['const LANE: i32'] + safety: + unsafe: [neon] + types: + - [bfloat16x8x2_t, uint8x16_t, 'LANE >= 0 && LANE <= 3'] + compose: + - FnCall: ['static_assert!', ['{type[2]}']] + - LLVMLink: + name: "vluti4q_laneq_bf16_x2" + arguments: + - 'a0: bfloat16x8_t' + - 'a1: bfloat16x8_t' + - 'b: {neon_type[1]}' + - 'n: i32' + links: + - link: "llvm.aarch64.neon.vluti4q.laneq.x2.v8bf16" + arch: aarch64,arm64ec + - FnCall: ['_vluti4q_laneq_bf16_x2', [a.0, a.1, b, LANE]] diff --git a/library/stdarch/crates/stdarch-gen-arm/spec/neon/arm_shared.spec.yml b/library/stdarch/crates/stdarch-gen-arm/spec/neon/arm_shared.spec.yml index 35c2a108c39ab..e80c4b2f8dc4b 100644 --- a/library/stdarch/crates/stdarch-gen-arm/spec/neon/arm_shared.spec.yml +++ b/library/stdarch/crates/stdarch-gen-arm/spec/neon/arm_shared.spec.yml @@ -55,6 +55,10 @@ not-arm: ¬-arm neon-target-aarch64-arm64ec: &neon-target-aarch64-arm64ec FnCall: [all, [test, {FnCall: [any, ['target_arch = "aarch64"', 'target_arch = "arm64ec"']]}]] +# MSVC's dumpbin prints raw opcodes for these BF16 instructions. +neon-target-aarch64-arm64ec-no-msvc: &neon-target-aarch64-arm64ec-no-msvc + FnCall: [all, [test, {FnCall: [any, ['target_arch = "aarch64"', 'target_arch = "arm64ec"']]}, {FnCall: [not, ['target_env = "msvc"']]}]] + neon-target-aarch64-le: &neon-target-aarch64-le FnCall: [all, [test, 'target_arch = "aarch64"', 'target_endian = "little"', {FnCall: [not, [windows]]}]] @@ -99,6 +103,10 @@ neon-i8mm: &neon-i8mm neon-fp16: &neon-fp16 FnCall: [target_feature, ['enable = "neon,fp16"']] +# #[target_feature(enable = "neon,bf16")] +neon-bf16: &neon-bf16 + FnCall: [target_feature, ['enable = "neon,bf16"']] + # #[cfg_attr[target_arch = "arm", target_feature(enable = "neon,fp16")] arm-fp16: &arm-fp16 FnCall: [cfg_attr, ['target_arch = "arm"', {FnCall: [target_feature, ['enable = "fp16"']]}]] @@ -128,6 +136,18 @@ neon-unstable-f16: &neon-unstable-f16 all-neon-target-aarch64-arm64ec-little-endian: &all-neon-target-aarch64-arm64ec-little-endian FnCall: [all, [test, {FnCall: [any, ['target_arch = "aarch64"', 'target_arch = "arm64ec"']]}, 'target_endian = "little"']] +# #[cfg_attr(not(target_arch = "arm"), unstable(feature = "stdarch_neon_bf16", issue = "none"))] +neon-unstable-bf16: &neon-unstable-bf16 + FnCall: [cfg_attr, [*not-arm, {FnCall: [unstable, ['feature = "stdarch_neon_bf16"', 'issue = "none"']]}]] + +# #[cfg(any(target_has_reliable_f16b, doc))] +cfg-reliable-bf16: &cfg-reliable-bf16 + FnCall: [cfg, [{ FnCall: [any, [target_has_reliable_f16b, doc]]}]] + +# #[doc(cfg(target_has_reliable_f16b))] +doc-cfg-reliable-bf16: &doc-cfg-reliable-bf16 + FnCall: [doc, [{ FnCall: [cfg, [target_has_reliable_f16b]]}]] + intrinsics: - name: "vand{neon_type.no}" doc: Vector bitwise and @@ -15338,3 +15358,1349 @@ intrinsics: - ['vrev64q_f32', 'float32x4_t', 'vrev64.32', 'rev64', '[1, 0, 3, 2]'] compose: - FnCall: ['simd_shuffle!', [a, a, '{type[4]}']] + +##### bf16 intrinsics + - name: "vbfdot{neon_type[0].no}" + doc: "BFloat16 floating-point dot product (vector)" + arguments: ["a: {neon_type[0]}", "b: {neon_type[1]}", "c: {neon_type[2]}"] + return_type: "{neon_type[0]}" + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, ['"vdot.bf16"']]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec-no-msvc, {FnCall: [assert_instr, [bfdot]]}]] + safety: safe + types: + - [float32x2_t, bfloat16x4_t, bfloat16x4_t] + - [float32x4_t, bfloat16x8_t, bfloat16x8_t] + compose: + - LLVMLink: + name: "bfdot.{neon_type[0]}" + links: + - link: "llvm.aarch64.neon.bfdot.{neon_type[0]}.{neon_type[1]}" + arch: aarch64,arm64ec + - link: "llvm.arm.neon.bfdot.{neon_type[0]}.{neon_type[1]}" + arch: arm + + - name: "vbfdot{neon_type[0].lane_nox}" + doc: "BFloat16 floating-point dot product (vector, by element)" + arguments: ["a: {neon_type[0]}", "b: {neon_type[1]}", "c: {neon_type[2]}"] + return_type: "{neon_type[0]}" + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, ['"vdot.bf16"', 'LANE = 0']]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec-no-msvc, {FnCall: [assert_instr, [bfdot, 'LANE = 0']]}]] + safety: safe + static_defs: ['const LANE: i32'] + types: + - [float32x2_t, bfloat16x4_t, bfloat16x4_t, 'vdup_lane_u32'] + - [float32x4_t, bfloat16x8_t, bfloat16x4_t, 'vdupq_lane_u32'] + compose: + - FnCall: [static_assert_uimm_bits!, [LANE, '1']] + - Let: [pairs, "{neon_type[2]}", "c"] + - Let: [duped, '{neon_type[1]}', FnCall: [transmute, [FnCall: ['{type[3]}::', [FnCall: [transmute, [pairs]]]]]]] + - FnCall: ['vbfdot{neon_type[0].no}', [a, b, duped]] + + - name: "vbfdot{neon_type[0].laneq_nox}" + doc: "BFloat16 floating-point dot product (vector, by element)" + arguments: ["a: {neon_type[0]}", "b: {neon_type[1]}", "c: {neon_type[2]}"] + return_type: "{neon_type[0]}" + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, ['"vdot.bf16"', 'LANE = 0']]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec-no-msvc, {FnCall: [assert_instr, [bfdot, 'LANE = 0']]}]] + safety: safe + static_defs: ['const LANE: i32'] + types: + - [float32x4_t, bfloat16x8_t, bfloat16x8_t, 'vdupq_laneq_u32'] + - [float32x2_t, bfloat16x4_t, bfloat16x8_t, 'vdup_laneq_u32'] + compose: + - FnCall: [static_assert_uimm_bits!, [LANE, '2']] + - Let: [pairs, "{neon_type[2]}", "c"] + - Let: [duped, '{neon_type[1]}', FnCall: [transmute, [FnCall: ['{type[3]}::', [FnCall: [transmute, [pairs]]]]]]] + - FnCall: ['vbfdot{neon_type[0].no}', [a, b, duped]] + + - name: "vbfmlalbq_f32" + big_endian_inverse: true + doc: "BFloat16 floating-point widening multiply-add long (vector)" + arguments: ["a: {neon_type[0]}", "b: {neon_type[1]}", "c: {neon_type[2]}"] + return_type: "{neon_type[0]}" + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, ['"vfmab.bf16"']]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec-no-msvc, {FnCall: [assert_instr, [bfmlalb]]}]] + safety: safe + types: + - [float32x4_t, bfloat16x8_t, bfloat16x8_t] + compose: + - LLVMLink: + name: "vbfmlalbq_f32" + links: + - link: "llvm.aarch64.neon.bfmlalb" + arch: aarch64,arm64ec + - link: "llvm.arm.neon.bfmlalb" + arch: arm + +# "vbfmlalbq_lane_f32" ARM + - name: "vbfmlalbq_lane_f32" + doc: "BFloat16 floating-point widening multiply-add long (vector)" + arguments: ["a: {neon_type[0]}", "b: {neon_type[1]}", "c: {neon_type[2]}"] + return_type: "{neon_type[0]}" + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, ['"vfmab.bf16"', 'LANE = 0']]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec-no-msvc, {FnCall: [assert_instr, [bfmlalb, 'LANE = 0']]}]] + safety: safe + static_defs: ['const LANE: i32'] + types: + - [float32x4_t, bfloat16x8_t, bfloat16x4_t] + compose: + - FnCall: [static_assert_uimm_bits!, [LANE, '2']] + - Let: [duped, bfloat16x8_t, FnCall: [transmute, [FnCall: ['vdupq_lane_u16::', [FnCall: [transmute, [c]]]]]]] + - FnCall: [vbfmlalbq_f32, [a, b, duped]] + + - name: "vbfmlalbq_laneq_f32" + doc: "BFloat16 floating-point widening multiply-add long (vector)" + arguments: ["a: {neon_type[0]}", "b: {neon_type[1]}", "c: {neon_type[2]}"] + return_type: "{neon_type[0]}" + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, ['"vfmab.bf16"', 'LANE = 0']]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec-no-msvc, {FnCall: [assert_instr, [bfmlalb, 'LANE = 0']]}]] + safety: safe + static_defs: ['const LANE: i32'] + types: + - [float32x4_t, bfloat16x8_t, bfloat16x8_t] + compose: + - FnCall: [static_assert_uimm_bits!, [LANE, '3']] + - Let: [duped, bfloat16x8_t, FnCall: [transmute, [FnCall: ['vdupq_laneq_u16::', [FnCall: [transmute, [c]]]]]]] + - FnCall: [vbfmlalbq_f32, [a, b, duped]] + + - name: "vbfmlaltq_f32" + big_endian_inverse: true + doc: "BFloat16 floating-point widening multiply-add long (vector)" + arguments: ["a: {neon_type[0]}", "b: {neon_type[1]}", "c: {neon_type[2]}"] + return_type: "{neon_type[0]}" + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, ['"vfmat.bf16"']]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec-no-msvc, {FnCall: [assert_instr, [bfmlalt]]}]] + safety: safe + types: + - [float32x4_t, bfloat16x8_t, bfloat16x8_t] + compose: + - LLVMLink: + name: "vbfmlalbq_f32" + links: + - link: "llvm.aarch64.neon.bfmlalt" + arch: aarch64,arm64ec + - link: "llvm.arm.neon.bfmlalt" + arch: arm + +# "vbfmlalbq_lane_f32" ARM + - name: "vbfmlaltq_lane_f32" + doc: "BFloat16 floating-point widening multiply-add long (vector)" + arguments: ["a: {neon_type[0]}", "b: {neon_type[1]}", "c: {neon_type[2]}"] + return_type: "{neon_type[0]}" + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, ['"vfmat.bf16"', 'LANE = 0']]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec-no-msvc, {FnCall: [assert_instr, [bfmlalt, 'LANE = 0']]}]] + safety: safe + static_defs: ['const LANE: i32'] + types: + - [float32x4_t, bfloat16x8_t, bfloat16x4_t] + compose: + - FnCall: [static_assert_uimm_bits!, [LANE, '2']] + - Let: [duped, bfloat16x8_t, FnCall: [transmute, [FnCall: ['vdupq_lane_u16::', [FnCall: [transmute, [c]]]]]]] + - FnCall: [vbfmlaltq_f32, [a, b, duped]] + + - name: "vbfmlaltq_laneq_f32" + doc: "BFloat16 floating-point widening multiply-add long (vector)" + arguments: ["a: {neon_type[0]}", "b: {neon_type[1]}", "c: {neon_type[2]}"] + return_type: "{neon_type[0]}" + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, ['"vfmat.bf16"', 'LANE = 0']]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec-no-msvc, {FnCall: [assert_instr, [bfmlalt, 'LANE = 0']]}]] + safety: safe + static_defs: ['const LANE: i32'] + types: + - [float32x4_t, bfloat16x8_t, bfloat16x8_t] + compose: + - FnCall: [static_assert_uimm_bits!, [LANE, '3']] + - Let: [duped, bfloat16x8_t, FnCall: [transmute, [FnCall: ['vdupq_laneq_u16::', [FnCall: [transmute, [c]]]]]]] + - FnCall: [vbfmlaltq_f32, [a, b, duped]] + + - name: "vbfmmlaq_f32" + big_endian_inverse: true + doc: "BFloat16 floating-point matrix multiply-accumulate into 2x2 matrix" + arguments: ["a: {neon_type[0]}", "b: {neon_type[1]}", "c: {neon_type[2]}"] + return_type: "{neon_type[0]}" + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, ['"vmmla.bf16"']]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec-no-msvc, {FnCall: [assert_instr, [bfmmla]]}]] + safety: safe + types: + - [float32x4_t, bfloat16x8_t, bfloat16x8_t] + compose: + - LLVMLink: + name: "bfmmla.{neon_type[0]}" + links: + - link: "llvm.aarch64.neon.bfmmla" + arch: aarch64,arm64ec + - link: "llvm.arm.neon.bfmmla" + arch: arm + + - name: "vcombine_bf16" + doc: Join two smaller vectors into a single larger vector + arguments: ["a: {neon_type[0]}", "b: {neon_type[0]}"] + return_type: "{neon_type[1]}" + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, [nop]]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec, {FnCall: [assert_instr, [nop]]}]] + safety: safe + big_endian_inverse: true + types: + - [bfloat16x4_t, bfloat16x8_t] + compose: + - FnCall: [simd_shuffle!, [a, b, '[0, 1, 2, 3, 4, 5, 6, 7]']] + + - name: "vcreate_bf16" + doc: Insert vector element from another vector element + arguments: ["a: {type[0]}"] + return_type: "{neon_type[1]}" + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, [nop]]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec, {FnCall: [assert_instr, [nop]]}]] + safety: + unsafe: [neon] + types: + - ['u64', 'bfloat16x4_t'] + compose: + - FnCall: [transmute, [a]] + + - name: "vcvt_bf16_f32" + doc: "Floating-point convert from single-precision to BFloat16 format (vector)" + arguments: ["a: {neon_type[0]}"] + return_type: "{neon_type[1]}" + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - *target-is-arm + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, ['"vcvt.bf16.f32"']]}]] + safety: safe + types: + - [float32x4_t, bfloat16x4_t] + compose: + - LLVMLink: + name: "vcvt_bf16_f32" + links: + - link: "llvm.arm.neon.vcvtfp2bf.v4bf16" + arch: arm + + - name: "vcvt_bf16_f32" + doc: "Floating-point convert from single-precision to BFloat16 format (vector)" + arguments: ["a: {neon_type[0]}"] + return_type: "{neon_type[1]}" + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-unstable-bf16 + - *target-not-arm + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec, {FnCall: [assert_instr, [bfcvtn]]}]] + safety: safe + types: + - [float32x4_t, bfloat16x4_t] + compose: + - FnCall: [vget_low_bf16, [FnCall: [vcvtq_low_bf16_f32, [a], [], true]], [], true] + + - name: "vcvt_f32_bf16" + doc: "Shift Left Long (by element size)" + arguments: ["a: {neon_type[0]}"] + return_type: "{neon_type[1]}" + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, ['"vshll.i16"']]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec, {FnCall: [assert_instr, [shll]]}]] + safety: safe + types: + - [bfloat16x4_t, float32x4_t] + compose: + - Let: [half, uint16x4_t, FnCall: [transmute, [a]]] + - FnCall: [vreinterpretq_f32_u32, [FnCall: ['vshll_n_u16::<16>', [half]]]] + + - name: "vcvtah_f32_bf16" + doc: "Shift Left (immediate)" + arguments: ["a: {type[0]}"] + return_type: "{type[1]}" + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, [nop]]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec, {FnCall: [assert_instr, [nop]]}]] + safety: safe + types: + - ['bfloat16_t', float32_t] + compose: + - FnCall: [f32::from_bits, ['(a.to_bits() as u32) << 16']] + + - name: "vcvth_bf16_f32" + doc: "Floating-point convert from single-precision to BFloat16 format (scalar)" + arguments: ["a: {type[0]}"] + return_type: "{type[1]}" + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, ['"vcvtb.bf16.f32"']]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec-no-msvc, {FnCall: [assert_instr, [bfcvt]]}]] + safety: safe + types: + - [float32_t, bfloat16_t] + compose: + - LLVMLink: + name: "vcvth_bf16_f32" + links: + - link: "llvm.arm.neon.vcvtbfp2bf" + arch: arm + - link: "llvm.aarch64.neon.bfcvt" + arch: aarch64,arm64ec + + - name: "vcvtq_low_bf16_f32" + big_endian_inverse: true + doc: "Floating-point convert from single-precision to BFloat16 format (vector)" + arguments: ["a: {type[0]}"] + return_type: "{type[1]}" + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - *target-is-arm + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, ['"vcvt.bf16.f32"']]}]] + safety: + unsafe: [neon] + types: + - [float32x4_t, bfloat16x8_t] + compose: + - Let: [a, int32x4_t, FnCall: [transmute, [a]]] + - Let: [a, int8x16_t, FnCall: [transmute, [a]]] + - Let: [a, float32x4_t, FnCall: [transmute, [a]]] + - Let: [vec, bfloat16x4_t, FnCall: [vcvt_bf16_f32, [a]]] + - Let: [z, bfloat16x4_t, 'bfloat16x4_t([bfloat16_t::from_bits(0x0), bfloat16_t::from_bits(0x0), bfloat16_t::from_bits(0x0), bfloat16_t::from_bits(0x0)])'] + - FnCall: [simd_shuffle!, [z, vec, '[0, 1, 2, 3, 4, 5, 6, 7]']] + + - name: "vcvtq_low_bf16_f32" + big_endian_inverse: true + doc: "Floating-point convert from single-precision to BFloat16 format (vector)" + arguments: ["a: {type[0]}"] + return_type: "{type[1]}" + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - *target-not-arm + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec, {FnCall: [assert_instr, [bfcvtn]]}]] + safety: + unsafe: [neon] + types: + - [float32x4_t, bfloat16x8_t] + compose: + - LLVMLink: + name: "vcvtq_low_bf16_f32" + links: + - link: "llvm.aarch64.neon.bfcvtn" + arch: aarch64,arm64ec + + - name: "vcvtq_high_f32_bf16" + doc: "Shift Left Long (by element size)" + arguments: ["a: {type[1]}"] + return_type: "{type[0]}" + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, ['"vshll.i16"']]}]] + - FnCall: [cfg_attr, [*all-neon-target-aarch64-arm64ec-little-endian, {FnCall: [assert_instr, [shll2]]}]] + # Reversing big-endian lanes lets LLVM use the low-half instruction. + - FnCall: [cfg_attr, [*neon-target-aarch64-be, {FnCall: [assert_instr, [shll]]}]] + safety: safe + types: + - [float32x4_t, bfloat16x8_t] + compose: + - Let: [half, uint16x4_t, FnCall: [vget_high_u16, [FnCall: [transmute, [a]]]]] + - FnCall: [vreinterpretq_f32_u32, [FnCall: ['vshll_n_u16::<16>', [half]]]] + + - name: "vcvtq_high_bf16_f32" + big_endian_inverse: true + doc: "Floating-point convert from single-precision to BFloat16 format (vector)" + arguments: ["_inactive: {neon_type[0]}", "a: {neon_type[1]}"] + return_type: "{neon_type[0]}" + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - *target-not-arm + - FnCall: [cfg_attr, [*all-neon-target-aarch64-arm64ec-little-endian, {FnCall: [assert_instr, [bfcvtn2]]}]] + # Reversing big-endian lanes lets LLVM use the low-half instruction. + - FnCall: [cfg_attr, [*neon-target-aarch64-be, {FnCall: [assert_instr, [bfcvtn]]}]] + safety: + unsafe: [neon] + types: + - [bfloat16x8_t, float32x4_t] + compose: + - LLVMLink: + name: "vcvtq_high_bf16_f32" + links: + - link: "llvm.aarch64.neon.bfcvtn2" + arch: aarch64,arm64ec + + # T + - name: "vcvtq_high_bf16_f32" + doc: "Floating-point convert from single-precision to BFloat16 format (vector)" + arguments: ["_inactive: {neon_type[0]}", "a: {neon_type[1]}"] + return_type: "{neon_type[0]}" + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - *target-is-arm + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, ['"vcvt.bf16.f32"']]}]] + safety: + unsafe: [neon] + types: + - [bfloat16x8_t, float32x4_t] + compose: + - Let: [b, bfloat16x4_t, FnCall: [simd_shuffle!, [_inactive, _inactive, '[0, 1, 2, 3]']]] + - Let: [a, int32x4_t, FnCall: [transmute, [a]]] + - Let: [a, int16x8_t, FnCall: [transmute, [a]]] + - Let: [a, float32x4_t, FnCall: [transmute, [a]]] + - Let: [a, bfloat16x4_t, FnCall: [vcvt_bf16_f32, [a]]] + - Let: [vec, bfloat16x4_t, FnCall: [simd_shuffle!, [a, a, '[0, 1, 2, 3]']]] + - FnCall: [simd_shuffle!, [vec, b, '[0, 1, 2, 3, 4, 5, 6, 7]']] + + - name: "vcvtq_low_f32_bf16" + doc: "Shift Left Long (by element size)" + arguments: ["a: {neon_type[0]}"] + return_type: "{neon_type[1]}" + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, ['"vshll.i16"']]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec, {FnCall: [assert_instr, [shll]]}]] + safety: safe + types: + - [bfloat16x8_t, float32x4_t] + compose: + - Let: [half, uint16x4_t, FnCall: [vget_low_u16, [FnCall: [transmute, [a]]]]] + - FnCall: [vreinterpretq_f32_u32, [FnCall: ['vshll_n_u16::<16>', [half]]]] + + - name: "vdup_lane_bf16" + doc: "Duplicate vector element to vector or scalar" + arguments: ["a: bfloat16x4_t"] + return_type: "{neon_type[0]}" + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, [nop, 'LANE = 2']]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec, {FnCall: [assert_instr, [nop, 'LANE = 2']]}]] + safety: + unsafe: [neon] + static_defs: ['const LANE: i32'] + types: + - [bfloat16x4_t, bfloat16x4_t] + compose: + - FnCall: [static_assert_uimm_bits!, [LANE, 2]] + - Let: [c, uint16x4_t, FnCall: [vreinterpret_u16_bf16, [a]]] + - Let: [duped, uint16x4_t, FnCall: ['vdup_lane_u16::', [c]]] + - FnCall: [vreinterpret_bf16_u16, [duped]] + + - name: "vdupq_lane_bf16" + doc: "Duplicate vector element to vector or scalar" + arguments: ["a: {neon_type[0]}"] + return_type: "{neon_type[1]}" + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, [nop, 'LANE = 2']]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec, {FnCall: [assert_instr, [nop, 'LANE = 2']]}]] + safety: + unsafe: [neon] + static_defs: ['const LANE: i32'] + types: + - [bfloat16x4_t, bfloat16x8_t] + compose: + # cast to u16s, duplicate the lane using a u16 intrinsic and then cast back + - FnCall: [static_assert_uimm_bits!, [LANE, 2]] + - Let: [c, uint16x4_t, FnCall: [vreinterpret_u16_bf16, [a]]] + - Let: [duped, uint16x8_t, FnCall: ['vdupq_lane_u16::', [c]]] + - FnCall: [vreinterpretq_bf16_u16, [duped]] + + - name: "vdup_n_bf16" + doc: "Duplicate vector element to vector or scalar" + arguments: ["a: {type[0]}"] + return_type: "{neon_type[1]}" + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, [nop]]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec, {FnCall: [assert_instr, [nop]]}]] + safety: + unsafe: [neon] + types: + - [bfloat16_t, bfloat16x4_t] + compose: + - FnCall: [vreinterpret_bf16_u16, [FnCall: [vdup_n_u16, [MethodCall: [a, to_bits, []]]]]] + + - name: "vdupq_n_bf16" + doc: "Duplicate vector element to vector or scalar" + arguments: ["a: {type[0]}"] + return_type: "{neon_type[1]}" + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, [nop]]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec, {FnCall: [assert_instr, [nop]]}]] + safety: + unsafe: [neon] + types: + - [bfloat16_t, bfloat16x8_t] + compose: + - FnCall: [vreinterpretq_bf16_u16, [FnCall: [vdupq_n_u16, [MethodCall: [a, to_bits, []]]]]] + + - name: "vget_lane_bf16" + big_endian_inverse: true + doc: "Duplicate vector element to vector or scalar" + arguments: ["a: {neon_type[0]}"] + return_type: "{type[1]}" + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, [nop, 'LANE = 2']]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec, {FnCall: [assert_instr, [nop, 'LANE = 2']]}]] + safety: + unsafe: [neon] + static_defs: ['const LANE: i32'] + types: + - [bfloat16x4_t, bfloat16_t] + compose: + - FnCall: [static_assert_uimm_bits!, [LANE, '2']] + - FnCall: [simd_extract!, [a, 'LANE as u32']] + + - name: "vgetq_lane_bf16" + big_endian_inverse: true + doc: "Duplicate vector element to vector or scalar" + arguments: ["a: {neon_type[0]}"] + return_type: "{type[1]}" + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, [nop, 'LANE = 2']]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec, {FnCall: [assert_instr, [nop, 'LANE = 2']]}]] + safety: + unsafe: [neon] + static_defs: ['const LANE: i32'] + types: + - [bfloat16x8_t, bfloat16_t] + compose: + - FnCall: [static_assert_uimm_bits!, [LANE, '3']] + - FnCall: [simd_extract!, [a, 'LANE as u32']] + + - name: "vduph_lane_bf16" + doc: "Duplicate vector element to vector or scalar" + arguments: ["a: {neon_type[0]}"] + return_type: "{type[1]}" + static_defs: ['const LANE: i32'] + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, [nop, 'LANE = 2']]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec, {FnCall: [assert_instr, [nop, 'LANE = 2']]}]] + safety: + unsafe: [neon] + types: + - [bfloat16x4_t, bfloat16_t] + compose: + - FnCall: [static_assert_uimm_bits!, [LANE, 2]] + - FnCall: ['vget_lane_bf16::', [a]] + + - name: "vduph_laneq_bf16" + doc: "Duplicate vector element to vector or scalar" + arguments: ["a: {neon_type[0]}"] + return_type: "{type[1]}" + static_defs: ['const LANE: i32'] + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, [nop, 'LANE = 2']]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec, {FnCall: [assert_instr, [nop, 'LANE = 2']]}]] + safety: + unsafe: [neon] + types: + - [bfloat16x8_t, bfloat16_t] + compose: + - FnCall: [static_assert_uimm_bits!, [LANE, '3']] + - FnCall: ['vgetq_lane_bf16::', [a]] + + - name: "vdup{neon_type[1].laneq_nox}" + big_endian_inverse: true + doc: "Duplicate vector element to vector or scalar" + arguments: ["a: {neon_type[0]}"] + return_type: "{neon_type[1]}" + static_defs: ['const LANE: i32'] + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, [nop, 'LANE = 2']]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec, {FnCall: [assert_instr, [nop, 'LANE = 2']]}]] + safety: + unsafe: [neon] + types: + - [bfloat16x8_t, bfloat16x4_t] + - [bfloat16x8_t, bfloat16x8_t] + compose: + - FnCall: ["static_assert_uimm_bits!", [LANE, '3']] + - FnCall: ["simd_shuffle!", [a, a, '[LANE as u32; {neon_type[1].lane}]']] + + - name: "vget_high_bf16" + big_endian_inverse: true + doc: "Duplicate vector element to vector or scalar" + arguments: ["a: {neon_type[0]}"] + return_type: "{neon_type[1]}" + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, [nop]]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec, {FnCall: [assert_instr, [nop]]}]] + safety: + unsafe: [neon] + types: + - [bfloat16x8_t, bfloat16x4_t] + compose: + - FnCall: [simd_shuffle!, [a, a, "[4, 5, 6, 7]"]] + + - name: "vget_low_bf16" + doc: "Duplicate vector element to vector or scalar" + arguments: ["a: {neon_type[0]}"] + return_type: "{neon_type[1]}" + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, [nop]]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec, {FnCall: [assert_instr, [nop]]}]] + safety: + unsafe: [neon] + types: + - [bfloat16x8_t, bfloat16x4_t] + compose: + - FnCall: [transmute, [FnCall: [vget_low_u64, [FnCall: [transmute, [a]]]]]] + + - name: "vld1{neon_type[1].no}" + doc: "Load multiple single-element structures to one, two, three, or four registers" + arguments: ["ptr: *const {type[0]}"] + return_type: "{neon_type[1]}" + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, [nop]]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec, {FnCall: [assert_instr, [nop]]}]] + safety: + unsafe: [neon] + types: + - [bfloat16_t, bfloat16x4_t] + - [bfloat16_t, bfloat16x8_t] + compose: + - FnCall: ['crate::ptr::read_unaligned', [MethodCall: [ptr, cast, []]]] + + - name: "{type[0]}" + doc: "Load multiple single-element structures to one, two, three, or four registers" + arguments: ["ptr: *const {type[1]}"] + return_type: "{neon_type[2]}" + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *target-is-arm + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, ['"vld1.8"']]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec, {FnCall: [assert_instr, [ld1]]}]] + safety: + unsafe: [neon] + types: + - ['vld1_bf16_x2', bfloat16_t, bfloat16x4x2_t, "ld1x2.v4bf16.p0", 'vld1_u16_x2'] + - ['vld1q_bf16_x2', bfloat16_t, bfloat16x8x2_t, "ld1x2.v8bf16.p0", 'vld1q_u16_x2'] + - ['vld1_bf16_x3', bfloat16_t, bfloat16x4x3_t, "ld1x3.v4bf16.p0", 'vld1_u16_x3'] + - ['vld1q_bf16_x3', bfloat16_t, bfloat16x8x3_t, "ld1x3.v8bf16.p0", 'vld1q_u16_x3'] + - ['vld1_bf16_x4', bfloat16_t, bfloat16x4x4_t, "ld1x4.v4bf16.p0", 'vld1_u16_x4'] + - ['vld1q_bf16_x4', bfloat16_t, bfloat16x8x4_t, "ld1x4.v8bf16.p0", 'vld1q_u16_x4'] + compose: + - FnCall: [transmute, [FnCall: ['{type[4]}', [MethodCall: [ptr, cast, []]]]]] + + - name: "{type[0]}" + doc: "Load multiple single-element structures to one, two, three, or four registers" + arguments: ["ptr: *const {type[1]}"] + return_type: "{neon_type[2]}" + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *target-not-arm + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, ['"vld1.8"']]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec, {FnCall: [assert_instr, [ld1]]}]] + safety: + unsafe: [neon] + types: + - ['vld1_bf16_x2', bfloat16_t, bfloat16x4x2_t, "ld1x2.v4bf16.p0", 'vld1_u16_x2'] + - ['vld1q_bf16_x2', bfloat16_t, bfloat16x8x2_t, "ld1x2.v8bf16.p0", 'vld1q_u16_x2'] + - ['vld1_bf16_x3', bfloat16_t, bfloat16x4x3_t, "ld1x3.v4bf16.p0", 'vld1_u16_x3'] + - ['vld1q_bf16_x3', bfloat16_t, bfloat16x8x3_t, "ld1x3.v8bf16.p0", 'vld1q_u16_x3'] + - ['vld1_bf16_x4', bfloat16_t, bfloat16x4x4_t, "ld1x4.v4bf16.p0", 'vld1_u16_x4'] + - ['vld1q_bf16_x4', bfloat16_t, bfloat16x8x4_t, "ld1x4.v8bf16.p0", 'vld1q_u16_x4'] + compose: + - LLVMLink: + name: "{type[0]}" + links: + - link: "llvm.aarch64.neon.{type[3]}" + arch: aarch64,arm64ec + + - name: "{type[0]}" + doc: "Load one single-element structure and Replicate to all lanes (of one register)" + arguments: ["ptr: *const {type[1]}"] + return_type: "{neon_type[2]}" + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, [nop]]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec, {FnCall: [assert_instr, [nop]]}]] + safety: + unsafe: [neon] + types: + - ['vld1_dup_bf16', bfloat16_t, bfloat16x4_t, 'f16bx4::splat', 'vld1_dup_u16'] + - ['vld1q_dup_bf16', bfloat16_t, bfloat16x8_t, 'f16bx8::splat', 'vld1q_dup_u16'] + compose: + - FnCall: [transmute, [FnCall: ['{type[4]}', [MethodCall: [ptr, cast, []]]]]] + + - name: "{type[0]}" + doc: "Load one single-element structure to one lane of one register" + arguments: ["ptr: *const {type[1]}", "src: {neon_type[2]}"] + return_type: "{neon_type[2]}" + static_defs: ['const LANE: i32'] + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, [nop, 'LANE = 2']]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec, {FnCall: [assert_instr, [nop, 'LANE = 2']]}]] + safety: + unsafe: [neon] + types: + - ['vld1_lane_bf16', bfloat16_t, bfloat16x4_t, '2', 'vld1_lane_u16'] + - ['vld1q_lane_bf16', bfloat16_t, bfloat16x8_t, '3', 'vld1q_lane_u16'] + compose: + - FnCall: [transmute, [FnCall: ['{type[4]}::', [MethodCall: [ptr, cast, []], FnCall: [transmute, [src]]]]]] + + - name: "{type[0]}" + doc: "Load multiple 2-element structures to two registers" + arguments: ["ptr: *const {type[1]}"] + return_type: "{neon_type[2]}" + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *target-is-arm + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, ['"v{type[4]}.16"']]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec, {FnCall: [assert_instr, ['{type[4]}']]}]] + safety: + unsafe: [neon] + types: + - ['vld2_bf16', bfloat16_t, bfloat16x4x2_t, "ld2.v4bf16.p0", 'ld2', 'vld2_u16'] + - ['vld2q_bf16', bfloat16_t, bfloat16x8x2_t, "ld2.v8bf16.p0", 'ld2', 'vld2q_u16'] + - ['vld3_bf16', bfloat16_t, bfloat16x4x3_t, "ld3.v4bf16.p0", 'ld3', 'vld3_u16'] + - ['vld3q_bf16', bfloat16_t, bfloat16x8x3_t, "ld3.v8bf16.p0", 'ld3', 'vld3q_u16'] + - ['vld4_bf16', bfloat16_t, bfloat16x4x4_t, "ld4.v4bf16.p0", 'ld4', 'vld4_u16'] + - ['vld4q_bf16', bfloat16_t, bfloat16x8x4_t, "ld4.v8bf16.p0", 'ld4', 'vld4q_u16'] + compose: + - FnCall: [transmute, [FnCall: ['{type[5]}', [MethodCall: [ptr, cast, []]]]]] + + - name: "{type[0]}" + doc: "Load multiple 2-element structures to two registers" + arguments: ["ptr: *const {type[1]}"] + return_type: "{neon_type[2]}" + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *target-not-arm + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, ['"v{type[4]}.16"']]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec, {FnCall: [assert_instr, ['{type[4]}']]}]] + safety: + unsafe: [neon] + types: + - ['vld2_bf16', bfloat16_t, bfloat16x4x2_t, "ld2.v4bf16.p0", 'ld2', 'vld2_u16'] + - ['vld2q_bf16', bfloat16_t, bfloat16x8x2_t, "ld2.v8bf16.p0", 'ld2', 'vld2q_u16'] + - ['vld3_bf16', bfloat16_t, bfloat16x4x3_t, "ld3.v4bf16.p0", 'ld3', 'vld3_u16'] + - ['vld3q_bf16', bfloat16_t, bfloat16x8x3_t, "ld3.v8bf16.p0", 'ld3', 'vld3q_u16'] + - ['vld4_bf16', bfloat16_t, bfloat16x4x4_t, "ld4.v4bf16.p0", 'ld4', 'vld4_u16'] + - ['vld4q_bf16', bfloat16_t, bfloat16x8x4_t, "ld4.v8bf16.p0", 'ld4', 'vld4q_u16'] + compose: + - LLVMLink: + name: "{type[0]}" + links: + - link: "llvm.aarch64.neon.{type[3]}" + arch: aarch64,arm64ec + + - name: "{type[0]}" + doc: "Load single 2-element structure and Replicate to all lanes of two registers" + arguments: ["ptr: *const {type[1]}"] + return_type: "{neon_type[2]}" + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, ['"v{type[4]}.16"']]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec, {FnCall: [assert_instr, ['{type[4]}']]}]] + safety: + unsafe: [neon] + types: + - ['vld2_dup_bf16', bfloat16_t, bfloat16x4x2_t, "ld2r.v4bf16.p0", 'ld2', 'vld2_dup_u16'] + - ['vld2q_dup_bf16', bfloat16_t, bfloat16x8x2_t, "ld2dup.v8bf16.p0", 'ld2', 'vld2q_dup_u16'] + - ['vld3_dup_bf16', bfloat16_t, bfloat16x4x3_t, "ld3r.v4bf16.p0", 'ld3', 'vld3_dup_u16'] + - ['vld3q_dup_bf16', bfloat16_t, bfloat16x8x3_t, "ld3dup.v8bf16.p0", 'ld3', 'vld3q_dup_u16'] + - ['vld4_dup_bf16', bfloat16_t, bfloat16x4x4_t, "ld4r.v4bf16.p0", 'ld4', 'vld4_dup_u16'] + - ['vld4q_dup_bf16', bfloat16_t, bfloat16x8x4_t, "ld4dup.v8bf16.p0", 'ld4', 'vld4q_dup_u16'] + compose: + - FnCall: [transmute, [FnCall: ['{type[5]}', [MethodCall: [ptr, cast, []]]]]] + + - name: "{type[0]}" + doc: "Load single 2-element structure and Replicate to all lanes of two registers" + arguments: ["ptr: *const {type[1]}", "src: {neon_type[2]}"] + return_type: "{neon_type[2]}" + static_defs: ['const LANE: i32'] + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, ['"v{type[4]}.16"', 'LANE = 2']]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec, {FnCall: [assert_instr, ['{type[4]}', 'LANE = 2']]}]] + safety: + unsafe: [neon] + types: + - ['vld2_lane_bf16', bfloat16_t, bfloat16x4x2_t, "ld2lane.v4bf16.p0", 'ld2', '2', 'vld2_lane_u16'] + - ['vld2q_lane_bf16', bfloat16_t, bfloat16x8x2_t, "ld2lane.v8bf16.p0", 'ld2', '3', 'vld2q_lane_u16'] + compose: + - FnCall: [transmute, [FnCall: ['{type[6]}::', [MethodCall: [ptr, cast, []], FnCall: [transmute, [src]]]]]] + + - name: "{type[0]}" + doc: "Load single 3-element structure to one lane of three registers" + arguments: ["ptr: *const {type[1]}", "src: {neon_type[2]}"] + return_type: "{neon_type[2]}" + static_defs: ['const LANE: i32'] + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, ['"v{type[4]}.16"', 'LANE = 2']]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec, {FnCall: [assert_instr, ['{type[4]}', 'LANE = 2']]}]] + safety: + unsafe: [neon] + types: + - ['vld3_lane_bf16', bfloat16_t, bfloat16x4x3_t, "ld3lane.v4bf16.p0", 'ld3', '2', 'vld3_lane_u16'] + - ['vld3q_lane_bf16', bfloat16_t, bfloat16x8x3_t, "ld3lane.v8bf16.p0", 'ld3', '3', 'vld3q_lane_u16'] + compose: + - FnCall: [transmute, [FnCall: ['{type[6]}::', [MethodCall: [ptr, cast, []], FnCall: [transmute, [src]]]]]] + + - name: "{type[0]}" + doc: "Load single 4-element structure and Replicate to all lanes of four registers" + arguments: ["ptr: *const {type[1]}", "src: {neon_type[2]}"] + return_type: "{neon_type[2]}" + static_defs: ['const LANE: i32'] + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, ['"v{type[4]}.16"', 'LANE = 2']]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec, {FnCall: [assert_instr, ['{type[4]}', 'LANE = 2']]}]] + safety: + unsafe: [neon] + types: + - ['vld4_lane_bf16', bfloat16_t, bfloat16x4x4_t, "ld4lane.v4bf16.p0", 'ld4', '2', 'vld4_lane_u16'] + - ['vld4q_lane_bf16', bfloat16_t, bfloat16x8x4_t, "ld4lane.v8bf16.p0", 'ld4', '3', 'vld4q_lane_u16'] + compose: + - FnCall: [transmute, [FnCall: ['{type[6]}::', [MethodCall: [ptr, cast, []], FnCall: [transmute, [src]]]]]] + + - name: "{type[0]}" + doc: "Insert vector element from another vector element" + arguments: ["a: {type[1]}", "v: {neon_type[2]}"] + return_type: "{neon_type[2]}" + big_endian_inverse: true + static_defs: ['const LANE: i32'] + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, ['nop', 'LANE = 2']]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec, {FnCall: [assert_instr, ['nop', 'LANE = 2']]}]] + safety: + unsafe: [neon] + types: + - ['vset_lane_bf16', bfloat16_t, bfloat16x4_t, '2'] + - ['vsetq_lane_bf16', bfloat16_t, bfloat16x8_t, '3'] + compose: + - FnCall: [static_assert_uimm_bits!, [LANE, '{type[3]}']] + - FnCall: ['simd_insert!', [v, 'LANE as u32', a]] + + - name: "{type[0]}" + doc: "Store multiple single-element structures from one, two, three, or four registers" + arguments: ["ptr: *mut {type[1]}", "val: {neon_type[2]}"] + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, ['"vst1.8"']]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec, {FnCall: [assert_instr, [str]]}]] + safety: + unsafe: [neon] + types: + - ['vst1_bf16', bfloat16_t, bfloat16x4_t, '2', 'vst1_u16'] + - ['vst1q_bf16', bfloat16_t, bfloat16x8_t, '3', 'vst1q_u16'] + compose: + - FnCall: ['crate::ptr::write_unaligned', [MethodCall: [ptr, cast, []], val]] + + - name: "{type[0]}" + doc: "Load single 2-element structure and Replicate to all lanes of two registers" + arguments: ["ptr: *mut {type[1]}", "val: {neon_type[2]}"] + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, ['"v{type[4]}.16"']]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec, {FnCall: [assert_instr, ['{type[4]}']]}]] + safety: + unsafe: [neon] + types: + - ['vst1_bf16_x2', bfloat16_t, bfloat16x4x2_t, "st1x2.p0.v4bf16", 'st1', 'vst1_u16_x2'] + - ['vst1q_bf16_x2', bfloat16_t, bfloat16x8x2_t, "st1x2.p0.v8bf16", 'st1', 'vst1q_u16_x2'] + - ['vst1_bf16_x3', bfloat16_t, bfloat16x4x3_t, "st1x3.p0.v4bf16", 'st1', 'vst1_u16_x3'] + - ['vst1q_bf16_x3', bfloat16_t, bfloat16x8x3_t, "st1x3.p0.v8bf16", 'st1', 'vst1q_u16_x3'] + - ['vst1_bf16_x4', bfloat16_t, bfloat16x4x4_t, "st1x4.p0.v4bf16", 'st1', 'vst1_u16_x4'] + - ['vst1q_bf16_x4', bfloat16_t, bfloat16x8x4_t, "st1x4.p0.v8bf16", 'st1', 'vst1q_u16_x4'] + compose: + - FnCall: ['{type[5]}', [MethodCall: [ptr, cast, []], FnCall: [transmute, [val]]]] + + - name: "{type[0]}" + doc: "Store a single-element structure from one lane of one register" + arguments: ["a: *mut {type[1]}", "v: {neon_type[2]}"] + static_defs: ['const LANE: i32'] + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, ['nop', 'LANE = 2']]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec, {FnCall: [assert_instr, ['nop', 'LANE = 2']]}]] + safety: + unsafe: [neon] + types: + - ['vst1_lane_bf16', bfloat16_t, bfloat16x4_t, '2', 'vst1_lane_u16'] + - ['vst1q_lane_bf16', bfloat16_t, bfloat16x8_t, '3', 'vst1q_lane_u16'] + compose: + - FnCall: ['{type[4]}::', [MethodCall: [a, cast, []], FnCall: [transmute, [v]]]] + + - name: "{type[0]}" + doc: "Store multiple 2-element structures from two registers" + arguments: ["a: *mut {type[1]}", "b: {neon_type[2]}"] + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, ['nop', 'LANE = 0']]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec, {FnCall: [assert_instr, ['nop', 'LANE = 0']]}]] + safety: + unsafe: [neon] + types: + - ['vst2_bf16', bfloat16_t, bfloat16x4x2_t, '4', 'vst2_u16'] + - ['vst2q_bf16', bfloat16_t, bfloat16x8x2_t, '8', 'vst2q_u16'] + compose: + - FnCall: ['{type[4]}', [MethodCall: [a, cast, []], FnCall: [transmute, [b]]]] + + - name: "{type[0]}" + doc: "Store single 2-element structure from one lane of two registers" + arguments: ["a: *mut {type[1]}", "v: {neon_type[2]}"] + static_defs: ['const LANE: i32'] + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, ['"vst2.16"', 'LANE = 2']]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec, {FnCall: [assert_instr, ['st2', 'LANE = 2']]}]] + safety: + unsafe: [neon] + types: + - ['vst2_lane_bf16', bfloat16_t, bfloat16x4x2_t, 'st2lane.v4bf16', '2', 'vst2_lane_u16'] + - ['vst2q_lane_bf16', bfloat16_t, bfloat16x8x2_t, 'st2lane.v8bf16', '3', 'vst2q_lane_u16'] + compose: + - FnCall: ['{type[5]}::', [MethodCall: [a, cast, []], FnCall: [transmute, [v]]]] + + - name: "{type[0]}" + doc: "Store multiple 3-element structures from three registers" + arguments: ["a: *mut {type[1]}", "b: {neon_type[2]}"] + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, ['nop', 'LANE = 0']]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec, {FnCall: [assert_instr, ['nop', 'LANE = 0']]}]] + safety: + unsafe: [neon] + types: + - ['vst3_bf16', bfloat16_t, bfloat16x4x3_t, '4', 'vst3_u16'] + - ['vst3q_bf16', bfloat16_t, bfloat16x8x3_t, '8', 'vst3q_u16'] + compose: + - FnCall: ['{type[4]}', [MethodCall: [a, cast, []], FnCall: [transmute, [b]]]] + + - name: "{type[0]}" + doc: "Store single 3-element structure from one lane of three registers" + arguments: ["a: *mut {type[1]}", "v: {neon_type[2]}"] + static_defs: ['const LANE: i32'] + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, ['"vst3.16"', 'LANE = 2']]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec, {FnCall: [assert_instr, ['st3', 'LANE = 2']]}]] + safety: + unsafe: [neon] + types: + - ['vst3_lane_bf16', bfloat16_t, bfloat16x4x3_t, 'st3lane.v4bf16', '2', 'vst3_lane_u16'] + - ['vst3q_lane_bf16', bfloat16_t, bfloat16x8x3_t, 'st3lane.v8bf16', '3', 'vst3q_lane_u16'] + compose: + - FnCall: ['{type[5]}::', [MethodCall: [a, cast, []], FnCall: [transmute, [v]]]] + + - name: "{type[0]}" + doc: "Store multiple 4-element structures from four registers" + arguments: ["a: *mut {type[1]}", "b: {neon_type[2]}"] + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, ['nop', 'LANE = 0']]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec, {FnCall: [assert_instr, ['nop', 'LANE = 0']]}]] + safety: + unsafe: [neon] + types: + - ['vst4_bf16', bfloat16_t, bfloat16x4x4_t, '4', 'vst4_u16'] + - ['vst4q_bf16', bfloat16_t, bfloat16x8x4_t, '8', 'vst4q_u16'] + compose: + - FnCall: ['{type[4]}', [MethodCall: [a, cast, []], FnCall: [transmute, [b]]]] + + - name: "{type[0]}" + doc: "Store single 4-element structure from one lane of four registerss" + arguments: ["a: *mut {type[1]}", "v: {neon_type[2]}"] + static_defs: ['const LANE: i32'] + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, ['"vst4.16"', 'LANE = 2']]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec, {FnCall: [assert_instr, ['st4', 'LANE = 2']]}]] + safety: + unsafe: [neon] + types: + - ['vst4_lane_bf16', bfloat16_t, bfloat16x4x4_t, 'st4lane.v4bf16', '2', 'vst4_lane_u16'] + - ['vst4q_lane_bf16', bfloat16_t, bfloat16x8x4_t, 'st4lane.v8bf16', '3', 'vst4q_lane_u16'] + compose: + - FnCall: ['{type[5]}::', [MethodCall: [a, cast, []], FnCall: [transmute, [v]]]] + + - name: "vreinterpret{type[0]}" + doc: "Vector reinterpret cast operation" + arguments: ["a: {type[1]}"] + return_type: "{type[2]}" + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, [nop]]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec, {FnCall: [assert_instr, [nop]]}]] + safety: + unsafe: [neon] + types: + - ["_bf16_f16", "float16x4_t", "bfloat16x4_t"] + - ["_bf16_f32", "float32x2_t", "bfloat16x4_t"] + - ["_bf16_p16", "poly16x4_t", "bfloat16x4_t"] + - ["_bf16_p64", "poly64x1_t", "bfloat16x4_t"] + - ["_bf16_p8", "poly8x8_t", "bfloat16x4_t"] + - ["_bf16_s16", "int16x4_t", "bfloat16x4_t"] + - ["_bf16_s32", "int32x2_t", "bfloat16x4_t"] + - ["_bf16_s64", "int64x1_t", "bfloat16x4_t"] + - ["_bf16_s8", "int8x8_t", "bfloat16x4_t"] + - ["_bf16_u16", "uint16x4_t", "bfloat16x4_t"] + - ["_bf16_u32", "uint32x2_t", "bfloat16x4_t"] + - ["_bf16_u64", "uint64x1_t", "bfloat16x4_t"] + - ["_bf16_u8", "uint8x8_t", "bfloat16x4_t"] + - ["_f16_bf16", "bfloat16x4_t", "float16x4_t"] + - ["_f32_bf16", "bfloat16x4_t", "float32x2_t"] + - ["_p8_bf16", "bfloat16x4_t", "poly8x8_t"] + - ["_p16_bf16", "bfloat16x4_t", "poly16x4_t"] + - ["_p64_bf16", "bfloat16x4_t", "poly64x1_t"] + - ["_s8_bf16", "bfloat16x4_t", "int8x8_t"] + - ["_s16_bf16", "bfloat16x4_t", "int16x4_t"] + - ["_s32_bf16", "bfloat16x4_t", "int32x2_t"] + - ["_s64_bf16", "bfloat16x4_t", "int64x1_t"] + - ["_u8_bf16", "bfloat16x4_t", "uint8x8_t"] + - ["_u16_bf16", "bfloat16x4_t", "uint16x4_t"] + - ["_u32_bf16", "bfloat16x4_t", "uint32x2_t"] + - ["_u64_bf16", "bfloat16x4_t", "uint64x1_t"] + compose: + - FnCall: [transmute, [a]] + + - name: "vreinterpretq{type[0]}" + doc: "Vector reinterpret cast operation" + arguments: ["a: {type[1]}"] + return_type: "{type[2]}" + attr: + - *cfg-reliable-bf16 + - *doc-cfg-reliable-bf16 + - *neon-bf16 + - *neon-v8 + - *neon-unstable-bf16 + - *neon-cfg-arm-unstable + - FnCall: [cfg_attr, [*test-is-arm, {FnCall: [assert_instr, [nop]]}]] + - FnCall: [cfg_attr, [*neon-target-aarch64-arm64ec, {FnCall: [assert_instr, [nop]]}]] + safety: + unsafe: [neon] + types: + - ["_bf16_f16", "float16x8_t", "bfloat16x8_t"] + - ["_bf16_f32", "float32x4_t", "bfloat16x8_t"] + - ["_bf16_p128", "p128", "bfloat16x8_t"] + - ["_bf16_p16", "poly16x8_t", "bfloat16x8_t"] + - ["_bf16_p64", "poly64x2_t", "bfloat16x8_t"] + - ["_bf16_p8", "poly8x16_t", "bfloat16x8_t"] + - ["_bf16_s16", "int16x8_t", "bfloat16x8_t"] + - ["_bf16_s32", "int32x4_t", "bfloat16x8_t"] + - ["_bf16_s64", "int64x2_t", "bfloat16x8_t"] + - ["_bf16_s8", "int8x16_t", "bfloat16x8_t"] + - ["_bf16_u16", "uint16x8_t", "bfloat16x8_t"] + - ["_bf16_u32", "uint32x4_t", "bfloat16x8_t"] + - ["_bf16_u64", "uint64x2_t", "bfloat16x8_t"] + - ["_bf16_u8", "uint8x16_t", "bfloat16x8_t"] + - ["_f16_bf16", "bfloat16x8_t", "float16x8_t"] + - ["_f32_bf16", "bfloat16x8_t", "float32x4_t"] + - ["_p128_bf16", "bfloat16x8_t", "p128"] + - ["_p16_bf16", "bfloat16x8_t", "poly16x8_t"] + - ["_p64_bf16", "bfloat16x8_t", "poly64x2_t"] + - ["_p8_bf16", "bfloat16x8_t", "poly8x16_t"] + - ["_s16_bf16", "bfloat16x8_t", "int16x8_t"] + - ["_s32_bf16", "bfloat16x8_t", "int32x4_t"] + - ["_s64_bf16", "bfloat16x8_t", "int64x2_t"] + - ["_s8_bf16", "bfloat16x8_t", "int8x16_t"] + - ["_u16_bf16", "bfloat16x8_t", "uint16x8_t"] + - ["_u32_bf16", "bfloat16x8_t", "uint32x4_t"] + - ["_u64_bf16", "bfloat16x8_t", "uint64x2_t"] + - ["_u8_bf16", "bfloat16x8_t", "uint8x16_t"] + compose: + - FnCall: [transmute, [a]] diff --git a/library/stdarch/intrinsics_data/arm_intrinsics.json b/library/stdarch/intrinsics_data/arm_intrinsics.json index 7f749fe4d8842..171b042bc3e98 100644 --- a/library/stdarch/intrinsics_data/arm_intrinsics.json +++ b/library/stdarch/intrinsics_data/arm_intrinsics.json @@ -51174,15 +51174,15 @@ "svfloat16x2_t tuple", "uint64_t imm_index" ], + "return_type": { + "value": "svfloat16_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 1 } }, - "return_type": { - "value": "svfloat16_t" - }, "Architectures": [ "A64" ] @@ -51194,15 +51194,15 @@ "svfloat32x2_t tuple", "uint64_t imm_index" ], + "return_type": { + "value": "svfloat32_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 1 } }, - "return_type": { - "value": "svfloat32_t" - }, "Architectures": [ "A64" ] @@ -51214,15 +51214,15 @@ "svfloat64x2_t tuple", "uint64_t imm_index" ], + "return_type": { + "value": "svfloat64_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 1 } }, - "return_type": { - "value": "svfloat64_t" - }, "Architectures": [ "A64" ] @@ -51234,15 +51234,15 @@ "svint16x2_t tuple", "uint64_t imm_index" ], + "return_type": { + "value": "svint16_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 1 } }, - "return_type": { - "value": "svint16_t" - }, "Architectures": [ "A64" ] @@ -51254,15 +51254,15 @@ "svint32x2_t tuple", "uint64_t imm_index" ], + "return_type": { + "value": "svint32_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 1 } }, - "return_type": { - "value": "svint32_t" - }, "Architectures": [ "A64" ] @@ -51274,15 +51274,15 @@ "svint64x2_t tuple", "uint64_t imm_index" ], + "return_type": { + "value": "svint64_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 1 } }, - "return_type": { - "value": "svint64_t" - }, "Architectures": [ "A64" ] @@ -51294,15 +51294,15 @@ "svint8x2_t tuple", "uint64_t imm_index" ], + "return_type": { + "value": "svint8_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 1 } }, - "return_type": { - "value": "svint8_t" - }, "Architectures": [ "A64" ] @@ -51314,15 +51314,15 @@ "svuint16x2_t tuple", "uint64_t imm_index" ], + "return_type": { + "value": "svuint16_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 1 } }, - "return_type": { - "value": "svuint16_t" - }, "Architectures": [ "A64" ] @@ -51334,15 +51334,15 @@ "svuint32x2_t tuple", "uint64_t imm_index" ], + "return_type": { + "value": "svuint32_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 1 } }, - "return_type": { - "value": "svuint32_t" - }, "Architectures": [ "A64" ] @@ -51354,15 +51354,15 @@ "svuint64x2_t tuple", "uint64_t imm_index" ], + "return_type": { + "value": "svuint64_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 1 } }, - "return_type": { - "value": "svuint64_t" - }, "Architectures": [ "A64" ] @@ -51374,15 +51374,15 @@ "svuint8x2_t tuple", "uint64_t imm_index" ], + "return_type": { + "value": "svuint8_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 1 } }, - "return_type": { - "value": "svuint8_t" - }, "Architectures": [ "A64" ] @@ -51394,15 +51394,15 @@ "svfloat16x3_t tuple", "uint64_t imm_index" ], + "return_type": { + "value": "svfloat16_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 2 } }, - "return_type": { - "value": "svfloat16_t" - }, "Architectures": [ "A64" ] @@ -51414,15 +51414,15 @@ "svfloat32x3_t tuple", "uint64_t imm_index" ], + "return_type": { + "value": "svfloat32_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 2 } }, - "return_type": { - "value": "svfloat32_t" - }, "Architectures": [ "A64" ] @@ -51434,15 +51434,15 @@ "svfloat64x3_t tuple", "uint64_t imm_index" ], + "return_type": { + "value": "svfloat64_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 2 } }, - "return_type": { - "value": "svfloat64_t" - }, "Architectures": [ "A64" ] @@ -51454,15 +51454,15 @@ "svint16x3_t tuple", "uint64_t imm_index" ], + "return_type": { + "value": "svint16_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 2 } }, - "return_type": { - "value": "svint16_t" - }, "Architectures": [ "A64" ] @@ -51474,15 +51474,15 @@ "svint32x3_t tuple", "uint64_t imm_index" ], + "return_type": { + "value": "svint32_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 2 } }, - "return_type": { - "value": "svint32_t" - }, "Architectures": [ "A64" ] @@ -51494,15 +51494,15 @@ "svint64x3_t tuple", "uint64_t imm_index" ], + "return_type": { + "value": "svint64_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 2 } }, - "return_type": { - "value": "svint64_t" - }, "Architectures": [ "A64" ] @@ -51514,15 +51514,15 @@ "svint8x3_t tuple", "uint64_t imm_index" ], + "return_type": { + "value": "svint8_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 2 } }, - "return_type": { - "value": "svint8_t" - }, "Architectures": [ "A64" ] @@ -51534,15 +51534,15 @@ "svuint16x3_t tuple", "uint64_t imm_index" ], + "return_type": { + "value": "svuint16_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 2 } }, - "return_type": { - "value": "svuint16_t" - }, "Architectures": [ "A64" ] @@ -51554,15 +51554,15 @@ "svuint32x3_t tuple", "uint64_t imm_index" ], + "return_type": { + "value": "svuint32_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 2 } }, - "return_type": { - "value": "svuint32_t" - }, "Architectures": [ "A64" ] @@ -51574,15 +51574,15 @@ "svuint64x3_t tuple", "uint64_t imm_index" ], + "return_type": { + "value": "svuint64_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 2 } }, - "return_type": { - "value": "svuint64_t" - }, "Architectures": [ "A64" ] @@ -51594,15 +51594,15 @@ "svuint8x3_t tuple", "uint64_t imm_index" ], + "return_type": { + "value": "svuint8_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 2 } }, - "return_type": { - "value": "svuint8_t" - }, "Architectures": [ "A64" ] @@ -51614,15 +51614,15 @@ "svfloat16x4_t tuple", "uint64_t imm_index" ], + "return_type": { + "value": "svfloat16_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 3 } }, - "return_type": { - "value": "svfloat16_t" - }, "Architectures": [ "A64" ] @@ -51634,15 +51634,15 @@ "svfloat32x4_t tuple", "uint64_t imm_index" ], + "return_type": { + "value": "svfloat32_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 3 } }, - "return_type": { - "value": "svfloat32_t" - }, "Architectures": [ "A64" ] @@ -51654,15 +51654,15 @@ "svfloat64x4_t tuple", "uint64_t imm_index" ], + "return_type": { + "value": "svfloat64_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 3 } }, - "return_type": { - "value": "svfloat64_t" - }, "Architectures": [ "A64" ] @@ -51674,15 +51674,15 @@ "svint16x4_t tuple", "uint64_t imm_index" ], + "return_type": { + "value": "svint16_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 3 } }, - "return_type": { - "value": "svint16_t" - }, "Architectures": [ "A64" ] @@ -51694,15 +51694,15 @@ "svint32x4_t tuple", "uint64_t imm_index" ], + "return_type": { + "value": "svint32_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 3 } }, - "return_type": { - "value": "svint32_t" - }, "Architectures": [ "A64" ] @@ -51714,15 +51714,15 @@ "svint64x4_t tuple", "uint64_t imm_index" ], + "return_type": { + "value": "svint64_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 3 } }, - "return_type": { - "value": "svint64_t" - }, "Architectures": [ "A64" ] @@ -51734,15 +51734,15 @@ "svint8x4_t tuple", "uint64_t imm_index" ], + "return_type": { + "value": "svint8_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 3 } }, - "return_type": { - "value": "svint8_t" - }, "Architectures": [ "A64" ] @@ -51754,15 +51754,15 @@ "svuint16x4_t tuple", "uint64_t imm_index" ], + "return_type": { + "value": "svuint16_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 3 } }, - "return_type": { - "value": "svuint16_t" - }, "Architectures": [ "A64" ] @@ -51774,15 +51774,15 @@ "svuint32x4_t tuple", "uint64_t imm_index" ], + "return_type": { + "value": "svuint32_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 3 } }, - "return_type": { - "value": "svuint32_t" - }, "Architectures": [ "A64" ] @@ -51794,15 +51794,15 @@ "svuint64x4_t tuple", "uint64_t imm_index" ], + "return_type": { + "value": "svuint64_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 3 } }, - "return_type": { - "value": "svuint64_t" - }, "Architectures": [ "A64" ] @@ -51814,15 +51814,15 @@ "svuint8x4_t tuple", "uint64_t imm_index" ], + "return_type": { + "value": "svuint8_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 3 } }, - "return_type": { - "value": "svuint8_t" - }, "Architectures": [ "A64" ] @@ -163197,15 +163197,15 @@ "uint64_t imm_index", "svfloat16_t x" ], + "return_type": { + "value": "svfloat16x2_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 1 } }, - "return_type": { - "value": "svfloat16x2_t" - }, "Architectures": [ "A64" ] @@ -163218,15 +163218,15 @@ "uint64_t imm_index", "svfloat32_t x" ], + "return_type": { + "value": "svfloat32x2_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 1 } }, - "return_type": { - "value": "svfloat32x2_t" - }, "Architectures": [ "A64" ] @@ -163239,15 +163239,15 @@ "uint64_t imm_index", "svfloat64_t x" ], + "return_type": { + "value": "svfloat64x2_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 1 } }, - "return_type": { - "value": "svfloat64x2_t" - }, "Architectures": [ "A64" ] @@ -163260,15 +163260,15 @@ "uint64_t imm_index", "svint16_t x" ], + "return_type": { + "value": "svint16x2_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 1 } }, - "return_type": { - "value": "svint16x2_t" - }, "Architectures": [ "A64" ] @@ -163281,15 +163281,15 @@ "uint64_t imm_index", "svint32_t x" ], + "return_type": { + "value": "svint32x2_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 1 } }, - "return_type": { - "value": "svint32x2_t" - }, "Architectures": [ "A64" ] @@ -163302,15 +163302,15 @@ "uint64_t imm_index", "svint64_t x" ], + "return_type": { + "value": "svint64x2_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 1 } }, - "return_type": { - "value": "svint64x2_t" - }, "Architectures": [ "A64" ] @@ -163323,15 +163323,15 @@ "uint64_t imm_index", "svint8_t x" ], + "return_type": { + "value": "svint8x2_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 1 } }, - "return_type": { - "value": "svint8x2_t" - }, "Architectures": [ "A64" ] @@ -163344,15 +163344,15 @@ "uint64_t imm_index", "svuint16_t x" ], + "return_type": { + "value": "svuint16x2_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 1 } }, - "return_type": { - "value": "svuint16x2_t" - }, "Architectures": [ "A64" ] @@ -163365,15 +163365,15 @@ "uint64_t imm_index", "svuint32_t x" ], + "return_type": { + "value": "svuint32x2_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 1 } }, - "return_type": { - "value": "svuint32x2_t" - }, "Architectures": [ "A64" ] @@ -163386,15 +163386,15 @@ "uint64_t imm_index", "svuint64_t x" ], + "return_type": { + "value": "svuint64x2_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 1 } }, - "return_type": { - "value": "svuint64x2_t" - }, "Architectures": [ "A64" ] @@ -163407,15 +163407,15 @@ "uint64_t imm_index", "svuint8_t x" ], + "return_type": { + "value": "svuint8x2_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 1 } }, - "return_type": { - "value": "svuint8x2_t" - }, "Architectures": [ "A64" ] @@ -163428,15 +163428,15 @@ "uint64_t imm_index", "svfloat16_t x" ], + "return_type": { + "value": "svfloat16x3_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 2 } }, - "return_type": { - "value": "svfloat16x3_t" - }, "Architectures": [ "A64" ] @@ -163449,15 +163449,15 @@ "uint64_t imm_index", "svfloat32_t x" ], + "return_type": { + "value": "svfloat32x3_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 2 } }, - "return_type": { - "value": "svfloat32x3_t" - }, "Architectures": [ "A64" ] @@ -163470,15 +163470,15 @@ "uint64_t imm_index", "svfloat64_t x" ], + "return_type": { + "value": "svfloat64x3_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 2 } }, - "return_type": { - "value": "svfloat64x3_t" - }, "Architectures": [ "A64" ] @@ -163491,15 +163491,15 @@ "uint64_t imm_index", "svint16_t x" ], + "return_type": { + "value": "svint16x3_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 2 } }, - "return_type": { - "value": "svint16x3_t" - }, "Architectures": [ "A64" ] @@ -163512,15 +163512,15 @@ "uint64_t imm_index", "svint32_t x" ], + "return_type": { + "value": "svint32x3_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 2 } }, - "return_type": { - "value": "svint32x3_t" - }, "Architectures": [ "A64" ] @@ -163533,15 +163533,15 @@ "uint64_t imm_index", "svint64_t x" ], + "return_type": { + "value": "svint64x3_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 2 } }, - "return_type": { - "value": "svint64x3_t" - }, "Architectures": [ "A64" ] @@ -163554,15 +163554,15 @@ "uint64_t imm_index", "svint8_t x" ], + "return_type": { + "value": "svint8x3_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 2 } }, - "return_type": { - "value": "svint8x3_t" - }, "Architectures": [ "A64" ] @@ -163575,15 +163575,15 @@ "uint64_t imm_index", "svuint16_t x" ], + "return_type": { + "value": "svuint16x3_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 2 } }, - "return_type": { - "value": "svuint16x3_t" - }, "Architectures": [ "A64" ] @@ -163596,15 +163596,15 @@ "uint64_t imm_index", "svuint32_t x" ], + "return_type": { + "value": "svuint32x3_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 2 } }, - "return_type": { - "value": "svuint32x3_t" - }, "Architectures": [ "A64" ] @@ -163617,15 +163617,15 @@ "uint64_t imm_index", "svuint64_t x" ], + "return_type": { + "value": "svuint64x3_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 2 } }, - "return_type": { - "value": "svuint64x3_t" - }, "Architectures": [ "A64" ] @@ -163638,15 +163638,15 @@ "uint64_t imm_index", "svuint8_t x" ], + "return_type": { + "value": "svuint8x3_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 2 } }, - "return_type": { - "value": "svuint8x3_t" - }, "Architectures": [ "A64" ] @@ -163659,15 +163659,15 @@ "uint64_t imm_index", "svfloat16_t x" ], + "return_type": { + "value": "svfloat16x4_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 3 } }, - "return_type": { - "value": "svfloat16x4_t" - }, "Architectures": [ "A64" ] @@ -163680,15 +163680,15 @@ "uint64_t imm_index", "svfloat32_t x" ], + "return_type": { + "value": "svfloat32x4_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 3 } }, - "return_type": { - "value": "svfloat32x4_t" - }, "Architectures": [ "A64" ] @@ -163701,15 +163701,15 @@ "uint64_t imm_index", "svfloat64_t x" ], + "return_type": { + "value": "svfloat64x4_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 3 } }, - "return_type": { - "value": "svfloat64x4_t" - }, "Architectures": [ "A64" ] @@ -163722,15 +163722,15 @@ "uint64_t imm_index", "svint16_t x" ], + "return_type": { + "value": "svint16x4_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 3 } }, - "return_type": { - "value": "svint16x4_t" - }, "Architectures": [ "A64" ] @@ -163743,15 +163743,15 @@ "uint64_t imm_index", "svint32_t x" ], + "return_type": { + "value": "svint32x4_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 3 } }, - "return_type": { - "value": "svint32x4_t" - }, "Architectures": [ "A64" ] @@ -163764,15 +163764,15 @@ "uint64_t imm_index", "svint64_t x" ], + "return_type": { + "value": "svint64x4_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 3 } }, - "return_type": { - "value": "svint64x4_t" - }, "Architectures": [ "A64" ] @@ -163785,15 +163785,15 @@ "uint64_t imm_index", "svint8_t x" ], + "return_type": { + "value": "svint8x4_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 3 } }, - "return_type": { - "value": "svint8x4_t" - }, "Architectures": [ "A64" ] @@ -163806,15 +163806,15 @@ "uint64_t imm_index", "svuint16_t x" ], + "return_type": { + "value": "svuint16x4_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 3 } }, - "return_type": { - "value": "svuint16x4_t" - }, "Architectures": [ "A64" ] @@ -163827,15 +163827,15 @@ "uint64_t imm_index", "svuint32_t x" ], + "return_type": { + "value": "svuint32x4_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 3 } }, - "return_type": { - "value": "svuint32x4_t" - }, "Architectures": [ "A64" ] @@ -163848,15 +163848,15 @@ "uint64_t imm_index", "svuint64_t x" ], + "return_type": { + "value": "svuint64x4_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 3 } }, - "return_type": { - "value": "svuint64x4_t" - }, "Architectures": [ "A64" ] @@ -163869,15 +163869,15 @@ "uint64_t imm_index", "svuint8_t x" ], + "return_type": { + "value": "svuint8x4_t" + }, "Arguments_Preparation": { "imm_index": { "minimum": 0, "maximum": 3 } }, - "return_type": { - "value": "svuint8x4_t" - }, "Architectures": [ "A64" ] @@ -201117,6 +201117,462 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vbfdot_f32", + "arguments": [ + "float32x2_t r", + "bfloat16x4_t a", + "bfloat16x4_t b" + ], + "return_type": { + "value": "float32x2_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vn.4H" + }, + "b": { + "register": "Vm.4H" + }, + "r": { + "register": "Vd.2S" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "BFDOT" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vbfdot_lane_f32", + "arguments": [ + "float32x2_t r", + "bfloat16x4_t a", + "bfloat16x4_t b", + "const int lane" + ], + "return_type": { + "value": "float32x2_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vn.4H" + }, + "b": { + "register": "Vm.4H" + }, + "lane": { + "minimum": 0, + "maximum": 1 + }, + "r": { + "register": "Vd.2S" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "BFDOT" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vbfdot_laneq_f32", + "arguments": [ + "float32x2_t r", + "bfloat16x4_t a", + "bfloat16x8_t b", + "const int lane" + ], + "return_type": { + "value": "float32x2_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vn.4H" + }, + "b": { + "register": "Vm.8H" + }, + "lane": { + "minimum": 0, + "maximum": 3 + }, + "r": { + "register": "Vd.2S" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "BFDOT" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vbfdotq_f32", + "arguments": [ + "float32x4_t r", + "bfloat16x8_t a", + "bfloat16x8_t b" + ], + "return_type": { + "value": "float32x4_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vn.8H" + }, + "b": { + "register": "Vm.8H" + }, + "r": { + "register": "Vd.4S" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "BFDOT" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vbfdotq_lane_f32", + "arguments": [ + "float32x4_t r", + "bfloat16x8_t a", + "bfloat16x4_t b", + "const int lane" + ], + "return_type": { + "value": "float32x4_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vn.8H" + }, + "b": { + "register": "Vm.4H" + }, + "lane": { + "minimum": 0, + "maximum": 1 + }, + "r": { + "register": "Vd.4S" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "BFDOT" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vbfdotq_laneq_f32", + "arguments": [ + "float32x4_t r", + "bfloat16x8_t a", + "bfloat16x8_t b", + "const int lane" + ], + "return_type": { + "value": "float32x4_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vn.8H" + }, + "b": { + "register": "Vm.8H" + }, + "lane": { + "minimum": 0, + "maximum": 3 + }, + "r": { + "register": "Vd.4S" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "BFDOT" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vbfmlalbq_f32", + "arguments": [ + "float32x4_t r", + "bfloat16x8_t a", + "bfloat16x8_t b" + ], + "return_type": { + "value": "float32x4_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vn.8H" + }, + "b": { + "register": "Vm.8H" + }, + "r": { + "register": "Vd.4S" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "BFMLALB" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vbfmlalbq_lane_f32", + "arguments": [ + "float32x4_t r", + "bfloat16x8_t a", + "bfloat16x4_t b", + "const int lane" + ], + "return_type": { + "value": "float32x4_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vn.8H" + }, + "b": { + "register": "Vm.4H" + }, + "lane": { + "minimum": 0, + "maximum": 3 + }, + "r": { + "register": "Vd.4S" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "BFMLALB" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vbfmlalbq_laneq_f32", + "arguments": [ + "float32x4_t r", + "bfloat16x8_t a", + "bfloat16x8_t b", + "const int lane" + ], + "return_type": { + "value": "float32x4_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vn.8H" + }, + "b": { + "register": "Vm.8H" + }, + "lane": { + "minimum": 0, + "maximum": 7 + }, + "r": { + "register": "Vd.4S" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "BFMLALB" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vbfmlaltq_f32", + "arguments": [ + "float32x4_t r", + "bfloat16x8_t a", + "bfloat16x8_t b" + ], + "return_type": { + "value": "float32x4_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vn.8H" + }, + "b": { + "register": "Vm.8H" + }, + "r": { + "register": "Vd.4S" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "BFMLALT" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vbfmlaltq_lane_f32", + "arguments": [ + "float32x4_t r", + "bfloat16x8_t a", + "bfloat16x4_t b", + "const int lane" + ], + "return_type": { + "value": "float32x4_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vn.8H" + }, + "b": { + "register": "Vm.4H" + }, + "lane": { + "minimum": 0, + "maximum": 3 + }, + "r": { + "register": "Vd.4S" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "BFMLALT" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vbfmlaltq_laneq_f32", + "arguments": [ + "float32x4_t r", + "bfloat16x8_t a", + "bfloat16x8_t b", + "const int lane" + ], + "return_type": { + "value": "float32x4_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vn.8H" + }, + "b": { + "register": "Vm.8H" + }, + "lane": { + "minimum": 0, + "maximum": 7 + }, + "r": { + "register": "Vd.4S" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "BFMLALT" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vbfmmlaq_f32", + "arguments": [ + "float32x4_t r", + "bfloat16x8_t a", + "bfloat16x8_t b" + ], + "return_type": { + "value": "float32x4_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vn.8H" + }, + "b": { + "register": "Vm.8H" + }, + "r": { + "register": "Vd.4S" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "BFMMLA" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vbic_s16", @@ -212637,6 +213093,35 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vcombine_bf16", + "arguments": [ + "bfloat16x4_t low", + "bfloat16x4_t high" + ], + "return_type": { + "value": "bfloat16x8_t" + }, + "Arguments_Preparation": { + "high": { + "register": "Vm.4H" + }, + "low": { + "register": "Vn.4H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "DUP", + "INS" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vcombine_f16", @@ -213054,6 +213539,43 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vcopy_lane_bf16", + "arguments": [ + "bfloat16x4_t a", + "const int lane1", + "bfloat16x4_t b", + "const int lane2" + ], + "return_type": { + "value": "bfloat16x4_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.4H" + }, + "b": { + "register": "Vn.4H" + }, + "lane1": { + "minimum": 0, + "maximum": 3 + }, + "lane2": { + "minimum": 0, + "maximum": 3 + } + }, + "Architectures": [ + "A64" + ], + "instructions": [ + [ + "INS" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vcopy_lane_f32", @@ -213536,6 +214058,43 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vcopy_laneq_bf16", + "arguments": [ + "bfloat16x4_t a", + "const int lane1", + "bfloat16x8_t b", + "const int lane2" + ], + "return_type": { + "value": "bfloat16x4_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.4H" + }, + "b": { + "register": "Vn.8H" + }, + "lane1": { + "minimum": 0, + "maximum": 3 + }, + "lane2": { + "minimum": 0, + "maximum": 7 + } + }, + "Architectures": [ + "A64" + ], + "instructions": [ + [ + "INS" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vcopy_laneq_f32", @@ -214018,6 +214577,43 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vcopyq_lane_bf16", + "arguments": [ + "bfloat16x8_t a", + "const int lane1", + "bfloat16x4_t b", + "const int lane2" + ], + "return_type": { + "value": "bfloat16x8_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.8H" + }, + "b": { + "register": "Vn.4H" + }, + "lane1": { + "minimum": 0, + "maximum": 7 + }, + "lane2": { + "minimum": 0, + "maximum": 3 + } + }, + "Architectures": [ + "A64" + ], + "instructions": [ + [ + "INS" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vcopyq_lane_f32", @@ -214500,6 +215096,43 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vcopyq_laneq_bf16", + "arguments": [ + "bfloat16x8_t a", + "const int lane1", + "bfloat16x8_t b", + "const int lane2" + ], + "return_type": { + "value": "bfloat16x8_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.8H" + }, + "b": { + "register": "Vn.8H" + }, + "lane1": { + "minimum": 0, + "maximum": 7 + }, + "lane2": { + "minimum": 0, + "maximum": 7 + } + }, + "Architectures": [ + "A64" + ], + "instructions": [ + [ + "INS" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vcopyq_laneq_f32", @@ -214982,6 +215615,30 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vcreate_bf16", + "arguments": [ + "uint64_t a" + ], + "return_type": { + "value": "bfloat16x4_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Xn" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "INS" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vcreate_f16", @@ -215329,6 +215986,30 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vcvt_bf16_f32", + "arguments": [ + "float32x4_t a" + ], + "return_type": { + "value": "bfloat16x4_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vn.4S" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "BFCVTN" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vcvt_f16_f32", @@ -215402,6 +216083,30 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vcvt_f32_bf16", + "arguments": [ + "bfloat16x4_t a" + ], + "return_type": { + "value": "float32x4_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vn.8H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "SHLL" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vcvt_f32_f16", @@ -216395,6 +217100,30 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vcvtah_f32_bf16", + "arguments": [ + "bfloat16_t a" + ], + "return_type": { + "value": "float32_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Hn" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "SHL" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vcvtah_s16_f16", @@ -217017,6 +217746,30 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vcvth_bf16_f32", + "arguments": [ + "float32_t a" + ], + "return_type": { + "value": "bfloat16_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Sn" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "BFCVT" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vcvth_f16_s16", @@ -219597,6 +220350,106 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vcvtq_high_bf16_f32", + "arguments": [ + "bfloat16x8_t inactive", + "float32x4_t a" + ], + "return_type": { + "value": "bfloat16x8_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vn.4S" + }, + "inactive": { + "register": "Vd.8H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "BFCVTN2" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vcvtq_high_f32_bf16", + "arguments": [ + "bfloat16x8_t a" + ], + "return_type": { + "value": "float32x4_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vn.8H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "SHLL2" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vcvtq_low_bf16_f32", + "arguments": [ + "float32x4_t a" + ], + "return_type": { + "value": "bfloat16x8_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vn.4S" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "BFCVTN" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vcvtq_low_f32_bf16", + "arguments": [ + "bfloat16x8_t a" + ], + "return_type": { + "value": "float32x4_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vn.8H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "SHLL" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vcvtq_n_f16_s16", @@ -221026,6 +221879,35 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vdup_lane_bf16", + "arguments": [ + "bfloat16x4_t vec", + "const int lane" + ], + "return_type": { + "value": "bfloat16x4_t" + }, + "Arguments_Preparation": { + "lane": { + "minimum": 0, + "maximum": 3 + }, + "vec": { + "register": "Vn.4H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "DUP" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vdup_lane_f16", @@ -221443,6 +222325,35 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vdup_laneq_bf16", + "arguments": [ + "bfloat16x8_t vec", + "const int lane" + ], + "return_type": { + "value": "bfloat16x4_t" + }, + "Arguments_Preparation": { + "lane": { + "minimum": 0, + "maximum": 7 + }, + "vec": { + "register": "Vn.8H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "DUP" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vdup_laneq_f16", @@ -221835,6 +222746,30 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vdup_n_bf16", + "arguments": [ + "bfloat16_t value" + ], + "return_type": { + "value": "bfloat16x4_t" + }, + "Arguments_Preparation": { + "value": { + "register": "rn" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "DUP" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vdup_n_f16", @@ -222518,6 +223453,35 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vduph_lane_bf16", + "arguments": [ + "bfloat16x4_t vec", + "const int lane" + ], + "return_type": { + "value": "bfloat16_t" + }, + "Arguments_Preparation": { + "lane": { + "minimum": 0, + "maximum": 3 + }, + "vec": { + "register": "Vn.4H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "DUP" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vduph_lane_f16", @@ -222630,6 +223594,35 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vduph_laneq_bf16", + "arguments": [ + "bfloat16x8_t vec", + "const int lane" + ], + "return_type": { + "value": "bfloat16_t" + }, + "Arguments_Preparation": { + "lane": { + "minimum": 0, + "maximum": 7 + }, + "vec": { + "register": "Vn.8H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "DUP" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vduph_laneq_f16", @@ -222742,6 +223735,35 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vdupq_lane_bf16", + "arguments": [ + "bfloat16x4_t vec", + "const int lane" + ], + "return_type": { + "value": "bfloat16x8_t" + }, + "Arguments_Preparation": { + "lane": { + "minimum": 0, + "maximum": 3 + }, + "vec": { + "register": "Vn.4H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "DUP" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vdupq_lane_f16", @@ -223159,6 +224181,35 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vdupq_laneq_bf16", + "arguments": [ + "bfloat16x8_t vec", + "const int lane" + ], + "return_type": { + "value": "bfloat16x8_t" + }, + "Arguments_Preparation": { + "lane": { + "minimum": 0, + "maximum": 7 + }, + "vec": { + "register": "Vn.8H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "DUP" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vdupq_laneq_f16", @@ -223551,6 +224602,30 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vdupq_n_bf16", + "arguments": [ + "bfloat16_t value" + ], + "return_type": { + "value": "bfloat16x8_t" + }, + "Arguments_Preparation": { + "value": { + "register": "rn" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "DUP" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vdupq_n_f16", @@ -228692,6 +229767,30 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vget_high_bf16", + "arguments": [ + "bfloat16x8_t a" + ], + "return_type": { + "value": "bfloat16x4_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vn.8H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "DUP" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vget_high_f16", @@ -229041,13 +230140,13 @@ }, { "SIMD_ISA": "Neon", - "name": "vget_lane_f16", + "name": "vget_lane_bf16", "arguments": [ - "float16x4_t v", + "bfloat16x4_t v", "const int lane" ], "return_type": { - "value": "float16_t" + "value": "bfloat16_t" }, "Arguments_Preparation": { "lane": { @@ -229059,7 +230158,6 @@ } }, "Architectures": [ - "v7", "A32", "A64" ], @@ -229071,160 +230169,13 @@ }, { "SIMD_ISA": "Neon", - "name": "vget_lane_f32", - "arguments": [ - "float32x2_t v", - "const int lane" - ], - "return_type": { - "value": "float32_t" - }, - "Arguments_Preparation": { - "lane": { - "minimum": 0, - "maximum": 1 - }, - "v": { - "register": "Vn.2S" - } - }, - "Architectures": [ - "v7", - "A32", - "A64" - ], - "instructions": [ - [ - "DUP" - ] - ] - }, - { - "SIMD_ISA": "Neon", - "name": "vget_lane_f64", - "arguments": [ - "float64x1_t v", - "const int lane" - ], - "return_type": { - "value": "float64_t" - }, - "Arguments_Preparation": { - "lane": { - "minimum": 0, - "maximum": 0 - }, - "v": { - "register": "Vn.1D" - } - }, - "Architectures": [ - "A64" - ], - "instructions": [ - [ - "DUP" - ] - ] - }, - { - "SIMD_ISA": "Neon", - "name": "vget_lane_p16", - "arguments": [ - "poly16x4_t v", - "const int lane" - ], - "return_type": { - "value": "poly16_t" - }, - "Arguments_Preparation": { - "lane": { - "minimum": 0, - "maximum": 3 - }, - "v": { - "register": "Vn.4H" - } - }, - "Architectures": [ - "v7", - "A32", - "A64" - ], - "instructions": [ - [ - "UMOV" - ] - ] - }, - { - "SIMD_ISA": "Neon", - "name": "vget_lane_p64", - "arguments": [ - "poly64x1_t v", - "const int lane" - ], - "return_type": { - "value": "poly64_t" - }, - "Arguments_Preparation": { - "lane": { - "minimum": 0, - "maximum": 0 - }, - "v": { - "register": "Vn.1D" - } - }, - "Architectures": [ - "A32", - "A64" - ], - "instructions": [ - [ - "UMOV" - ] - ] - }, - { - "SIMD_ISA": "Neon", - "name": "vget_lane_p8", - "arguments": [ - "poly8x8_t v", - "const int lane" - ], - "return_type": { - "value": "poly8_t" - }, - "Arguments_Preparation": { - "lane": { - "minimum": 0, - "maximum": 7 - }, - "v": { - "register": "Vn.8B" - } - }, - "Architectures": [ - "v7", - "A32", - "A64" - ], - "instructions": [ - [ - "UMOV" - ] - ] - }, - { - "SIMD_ISA": "Neon", - "name": "vget_lane_s16", + "name": "vget_lane_f16", "arguments": [ - "int16x4_t v", + "float16x4_t v", "const int lane" ], "return_type": { - "value": "int16_t" + "value": "float16_t" }, "Arguments_Preparation": { "lane": { @@ -229242,19 +230193,19 @@ ], "instructions": [ [ - "SMOV" + "DUP" ] ] }, { "SIMD_ISA": "Neon", - "name": "vget_lane_s32", + "name": "vget_lane_f32", "arguments": [ - "int32x2_t v", + "float32x2_t v", "const int lane" ], "return_type": { - "value": "int32_t" + "value": "float32_t" }, "Arguments_Preparation": { "lane": { @@ -229272,19 +230223,19 @@ ], "instructions": [ [ - "SMOV" + "DUP" ] ] }, { "SIMD_ISA": "Neon", - "name": "vget_lane_s64", + "name": "vget_lane_f64", "arguments": [ - "int64x1_t v", + "float64x1_t v", "const int lane" ], "return_type": { - "value": "int64_t" + "value": "float64_t" }, "Arguments_Preparation": { "lane": { @@ -229296,55 +230247,23 @@ } }, "Architectures": [ - "v7", - "A32", "A64" ], "instructions": [ [ - "UMOV" - ] - ] - }, - { - "SIMD_ISA": "Neon", - "name": "vget_lane_s8", - "arguments": [ - "int8x8_t v", - "const int lane" - ], - "return_type": { - "value": "int8_t" - }, - "Arguments_Preparation": { - "lane": { - "minimum": 0, - "maximum": 7 - }, - "v": { - "register": "Vn.8B" - } - }, - "Architectures": [ - "v7", - "A32", - "A64" - ], - "instructions": [ - [ - "SMOV" + "DUP" ] ] }, { "SIMD_ISA": "Neon", - "name": "vget_lane_u16", + "name": "vget_lane_p16", "arguments": [ - "uint16x4_t v", + "poly16x4_t v", "const int lane" ], "return_type": { - "value": "uint16_t" + "value": "poly16_t" }, "Arguments_Preparation": { "lane": { @@ -229368,43 +230287,13 @@ }, { "SIMD_ISA": "Neon", - "name": "vget_lane_u32", - "arguments": [ - "uint32x2_t v", - "const int lane" - ], - "return_type": { - "value": "uint32_t" - }, - "Arguments_Preparation": { - "lane": { - "minimum": 0, - "maximum": 1 - }, - "v": { - "register": "Vn.2S" - } - }, - "Architectures": [ - "v7", - "A32", - "A64" - ], - "instructions": [ - [ - "UMOV" - ] - ] - }, - { - "SIMD_ISA": "Neon", - "name": "vget_lane_u64", + "name": "vget_lane_p64", "arguments": [ - "uint64x1_t v", + "poly64x1_t v", "const int lane" ], "return_type": { - "value": "uint64_t" + "value": "poly64_t" }, "Arguments_Preparation": { "lane": { @@ -229416,7 +230305,6 @@ } }, "Architectures": [ - "v7", "A32", "A64" ], @@ -229428,13 +230316,13 @@ }, { "SIMD_ISA": "Neon", - "name": "vget_lane_u8", + "name": "vget_lane_p8", "arguments": [ - "uint8x8_t v", + "poly8x8_t v", "const int lane" ], "return_type": { - "value": "uint8_t" + "value": "poly8_t" }, "Arguments_Preparation": { "lane": { @@ -229456,6 +230344,270 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vget_lane_s16", + "arguments": [ + "int16x4_t v", + "const int lane" + ], + "return_type": { + "value": "int16_t" + }, + "Arguments_Preparation": { + "lane": { + "minimum": 0, + "maximum": 3 + }, + "v": { + "register": "Vn.4H" + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "SMOV" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vget_lane_s32", + "arguments": [ + "int32x2_t v", + "const int lane" + ], + "return_type": { + "value": "int32_t" + }, + "Arguments_Preparation": { + "lane": { + "minimum": 0, + "maximum": 1 + }, + "v": { + "register": "Vn.2S" + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "SMOV" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vget_lane_s64", + "arguments": [ + "int64x1_t v", + "const int lane" + ], + "return_type": { + "value": "int64_t" + }, + "Arguments_Preparation": { + "lane": { + "minimum": 0, + "maximum": 0 + }, + "v": { + "register": "Vn.1D" + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "UMOV" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vget_lane_s8", + "arguments": [ + "int8x8_t v", + "const int lane" + ], + "return_type": { + "value": "int8_t" + }, + "Arguments_Preparation": { + "lane": { + "minimum": 0, + "maximum": 7 + }, + "v": { + "register": "Vn.8B" + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "SMOV" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vget_lane_u16", + "arguments": [ + "uint16x4_t v", + "const int lane" + ], + "return_type": { + "value": "uint16_t" + }, + "Arguments_Preparation": { + "lane": { + "minimum": 0, + "maximum": 3 + }, + "v": { + "register": "Vn.4H" + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "UMOV" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vget_lane_u32", + "arguments": [ + "uint32x2_t v", + "const int lane" + ], + "return_type": { + "value": "uint32_t" + }, + "Arguments_Preparation": { + "lane": { + "minimum": 0, + "maximum": 1 + }, + "v": { + "register": "Vn.2S" + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "UMOV" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vget_lane_u64", + "arguments": [ + "uint64x1_t v", + "const int lane" + ], + "return_type": { + "value": "uint64_t" + }, + "Arguments_Preparation": { + "lane": { + "minimum": 0, + "maximum": 0 + }, + "v": { + "register": "Vn.1D" + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "UMOV" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vget_lane_u8", + "arguments": [ + "uint8x8_t v", + "const int lane" + ], + "return_type": { + "value": "uint8_t" + }, + "Arguments_Preparation": { + "lane": { + "minimum": 0, + "maximum": 7 + }, + "v": { + "register": "Vn.8B" + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "UMOV" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vget_low_bf16", + "arguments": [ + "bfloat16x8_t a" + ], + "return_type": { + "value": "bfloat16x4_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vn.8H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "DUP" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vget_low_f16", @@ -229803,6 +230955,35 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vgetq_lane_bf16", + "arguments": [ + "bfloat16x8_t v", + "const int lane" + ], + "return_type": { + "value": "bfloat16_t" + }, + "Arguments_Preparation": { + "lane": { + "minimum": 0, + "maximum": 7 + }, + "v": { + "register": "Vn.8H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "DUP" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vgetq_lane_f16", @@ -230916,6 +232097,127 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vld1_bf16", + "arguments": [ + "bfloat16_t const * ptr" + ], + "return_type": { + "value": "bfloat16x4_t" + }, + "Arguments_Preparation": { + "ptr": { + "register": "Xn" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "LD1" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vld1_bf16_x2", + "arguments": [ + "bfloat16_t const * ptr" + ], + "return_type": { + "value": "bfloat16x4x2_t" + }, + "Arguments_Preparation": { + "ptr": { + "register": "Xn" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "LD1" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vld1_bf16_x3", + "arguments": [ + "bfloat16_t const * ptr" + ], + "return_type": { + "value": "bfloat16x4x3_t" + }, + "Arguments_Preparation": { + "ptr": { + "register": "Xn" + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "LD1" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vld1_bf16_x4", + "arguments": [ + "bfloat16_t const * ptr" + ], + "return_type": { + "value": "bfloat16x4x4_t" + }, + "Arguments_Preparation": { + "ptr": { + "register": "Xn" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "LD1" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vld1_dup_bf16", + "arguments": [ + "bfloat16_t const * ptr" + ], + "return_type": { + "value": "bfloat16x4_t" + }, + "Arguments_Preparation": { + "ptr": { + "register": "Xn" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "LD1R" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vld1_dup_f16", @@ -231557,14 +232859,14 @@ }, { "SIMD_ISA": "Neon", - "name": "vld1_lane_f16", + "name": "vld1_lane_bf16", "arguments": [ - "float16_t const * ptr", - "float16x4_t src", + "bfloat16_t const * ptr", + "bfloat16x4_t src", "const int lane" ], "return_type": { - "value": "float16x4_t" + "value": "bfloat16x4_t" }, "Arguments_Preparation": { "lane": { @@ -231579,7 +232881,6 @@ } }, "Architectures": [ - "v7", "A32", "A64" ], @@ -231591,25 +232892,25 @@ }, { "SIMD_ISA": "Neon", - "name": "vld1_lane_f32", + "name": "vld1_lane_f16", "arguments": [ - "float32_t const * ptr", - "float32x2_t src", + "float16_t const * ptr", + "float16x4_t src", "const int lane" ], "return_type": { - "value": "float32x2_t" + "value": "float16x4_t" }, "Arguments_Preparation": { "lane": { "minimum": 0, - "maximum": 1 + "maximum": 3 }, "ptr": { "register": "Xn" }, "src": { - "register": "Vt.2S" + "register": "Vt.4H" } }, "Architectures": [ @@ -231625,57 +232926,25 @@ }, { "SIMD_ISA": "Neon", - "name": "vld1_lane_f64", - "arguments": [ - "float64_t const * ptr", - "float64x1_t src", - "const int lane" - ], - "return_type": { - "value": "float64x1_t" - }, - "Arguments_Preparation": { - "lane": { - "minimum": 0, - "maximum": 0 - }, - "ptr": { - "register": "Xn" - }, - "src": { - "register": "Vt.1D" - } - }, - "Architectures": [ - "A64" - ], - "instructions": [ - [ - "LD1" - ] - ] - }, - { - "SIMD_ISA": "Neon", - "name": "vld1_lane_p16", + "name": "vld1_lane_f32", "arguments": [ - "poly16_t const * ptr", - "poly16x4_t src", + "float32_t const * ptr", + "float32x2_t src", "const int lane" ], "return_type": { - "value": "poly16x4_t" + "value": "float32x2_t" }, "Arguments_Preparation": { "lane": { "minimum": 0, - "maximum": 3 + "maximum": 1 }, "ptr": { "register": "Xn" }, "src": { - "register": "Vt.4H" + "register": "Vt.2S" } }, "Architectures": [ @@ -231691,14 +232960,14 @@ }, { "SIMD_ISA": "Neon", - "name": "vld1_lane_p64", + "name": "vld1_lane_f64", "arguments": [ - "poly64_t const * ptr", - "poly64x1_t src", + "float64_t const * ptr", + "float64x1_t src", "const int lane" ], "return_type": { - "value": "poly64x1_t" + "value": "float64x1_t" }, "Arguments_Preparation": { "lane": { @@ -231713,41 +232982,6 @@ } }, "Architectures": [ - "A32", - "A64" - ], - "instructions": [ - [ - "LD1" - ] - ] - }, - { - "SIMD_ISA": "Neon", - "name": "vld1_lane_p8", - "arguments": [ - "poly8_t const * ptr", - "poly8x8_t src", - "const int lane" - ], - "return_type": { - "value": "poly8x8_t" - }, - "Arguments_Preparation": { - "lane": { - "minimum": 0, - "maximum": 7 - }, - "ptr": { - "register": "Xn" - }, - "src": { - "register": "Vt.8B" - } - }, - "Architectures": [ - "v7", - "A32", "A64" ], "instructions": [ @@ -231758,14 +232992,14 @@ }, { "SIMD_ISA": "Neon", - "name": "vld1_lane_s16", + "name": "vld1_lane_p16", "arguments": [ - "int16_t const * ptr", - "int16x4_t src", + "poly16_t const * ptr", + "poly16x4_t src", "const int lane" ], "return_type": { - "value": "int16x4_t" + "value": "poly16x4_t" }, "Arguments_Preparation": { "lane": { @@ -231792,48 +233026,14 @@ }, { "SIMD_ISA": "Neon", - "name": "vld1_lane_s32", - "arguments": [ - "int32_t const * ptr", - "int32x2_t src", - "const int lane" - ], - "return_type": { - "value": "int32x2_t" - }, - "Arguments_Preparation": { - "lane": { - "minimum": 0, - "maximum": 1 - }, - "ptr": { - "register": "Xn" - }, - "src": { - "register": "Vt.2S" - } - }, - "Architectures": [ - "v7", - "A32", - "A64" - ], - "instructions": [ - [ - "LD1" - ] - ] - }, - { - "SIMD_ISA": "Neon", - "name": "vld1_lane_s64", + "name": "vld1_lane_p64", "arguments": [ - "int64_t const * ptr", - "int64x1_t src", + "poly64_t const * ptr", + "poly64x1_t src", "const int lane" ], "return_type": { - "value": "int64x1_t" + "value": "poly64x1_t" }, "Arguments_Preparation": { "lane": { @@ -231848,7 +233048,6 @@ } }, "Architectures": [ - "v7", "A32", "A64" ], @@ -231860,14 +233059,150 @@ }, { "SIMD_ISA": "Neon", - "name": "vld1_lane_s8", + "name": "vld1_lane_p8", "arguments": [ - "int8_t const * ptr", - "int8x8_t src", + "poly8_t const * ptr", + "poly8x8_t src", "const int lane" ], "return_type": { - "value": "int8x8_t" + "value": "poly8x8_t" + }, + "Arguments_Preparation": { + "lane": { + "minimum": 0, + "maximum": 7 + }, + "ptr": { + "register": "Xn" + }, + "src": { + "register": "Vt.8B" + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "LD1" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vld1_lane_s16", + "arguments": [ + "int16_t const * ptr", + "int16x4_t src", + "const int lane" + ], + "return_type": { + "value": "int16x4_t" + }, + "Arguments_Preparation": { + "lane": { + "minimum": 0, + "maximum": 3 + }, + "ptr": { + "register": "Xn" + }, + "src": { + "register": "Vt.4H" + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "LD1" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vld1_lane_s32", + "arguments": [ + "int32_t const * ptr", + "int32x2_t src", + "const int lane" + ], + "return_type": { + "value": "int32x2_t" + }, + "Arguments_Preparation": { + "lane": { + "minimum": 0, + "maximum": 1 + }, + "ptr": { + "register": "Xn" + }, + "src": { + "register": "Vt.2S" + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "LD1" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vld1_lane_s64", + "arguments": [ + "int64_t const * ptr", + "int64x1_t src", + "const int lane" + ], + "return_type": { + "value": "int64x1_t" + }, + "Arguments_Preparation": { + "lane": { + "minimum": 0, + "maximum": 0 + }, + "ptr": { + "register": "Xn" + }, + "src": { + "register": "Vt.1D" + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "LD1" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vld1_lane_s8", + "arguments": [ + "int8_t const * ptr", + "int8x8_t src", + "const int lane" + ], + "return_type": { + "value": "int8x8_t" }, "Arguments_Preparation": { "lane": { @@ -233124,6 +234459,127 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vld1q_bf16", + "arguments": [ + "bfloat16_t const * ptr" + ], + "return_type": { + "value": "bfloat16x8_t" + }, + "Arguments_Preparation": { + "ptr": { + "register": "Xn" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "LD1" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vld1q_bf16_x2", + "arguments": [ + "bfloat16_t const * ptr" + ], + "return_type": { + "value": "bfloat16x8x2_t" + }, + "Arguments_Preparation": { + "ptr": { + "register": "Xn" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "LD1" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vld1q_bf16_x3", + "arguments": [ + "bfloat16_t const * ptr" + ], + "return_type": { + "value": "bfloat16x8x3_t" + }, + "Arguments_Preparation": { + "ptr": { + "register": "Xn" + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "LD1" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vld1q_bf16_x4", + "arguments": [ + "bfloat16_t const * ptr" + ], + "return_type": { + "value": "bfloat16x8x4_t" + }, + "Arguments_Preparation": { + "ptr": { + "register": "Xn" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "LD1" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vld1q_dup_bf16", + "arguments": [ + "bfloat16_t const * ptr" + ], + "return_type": { + "value": "bfloat16x8_t" + }, + "Arguments_Preparation": { + "ptr": { + "register": "Xn" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "LD1R" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vld1q_dup_f16", @@ -233763,6 +235219,39 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vld1q_lane_bf16", + "arguments": [ + "bfloat16_t const * ptr", + "bfloat16x8_t src", + "const int lane" + ], + "return_type": { + "value": "bfloat16x8_t" + }, + "Arguments_Preparation": { + "lane": { + "minimum": 0, + "maximum": 7 + }, + "ptr": { + "register": "Xn" + }, + "src": { + "register": "Vt.8H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "LD1" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vld1q_lane_f16", @@ -235332,6 +236821,54 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vld2_bf16", + "arguments": [ + "bfloat16_t const * ptr" + ], + "return_type": { + "value": "bfloat16x4x2_t" + }, + "Arguments_Preparation": { + "ptr": { + "register": "Xn" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "LD2" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vld2_dup_bf16", + "arguments": [ + "bfloat16_t const * ptr" + ], + "return_type": { + "value": "bfloat16x4x2_t" + }, + "Arguments_Preparation": { + "ptr": { + "register": "Xn" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "LD2R" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vld2_dup_f16", @@ -235752,6 +237289,42 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vld2_lane_bf16", + "arguments": [ + "bfloat16_t const * ptr", + "bfloat16x4x2_t src", + "const int lane" + ], + "return_type": { + "value": "bfloat16x4x2_t" + }, + "Arguments_Preparation": { + "lane": { + "minimum": 0, + "maximum": 3 + }, + "ptr": { + "register": "Xn" + }, + "src.val[0]": { + "register": "Vt.4H" + }, + "src.val[1]": { + "register": "Vt2.4H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "LD2" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vld2_lane_f16", @@ -236536,6 +238109,54 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vld2q_bf16", + "arguments": [ + "bfloat16_t const * ptr" + ], + "return_type": { + "value": "bfloat16x8x2_t" + }, + "Arguments_Preparation": { + "ptr": { + "register": "Xn" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "LD2" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vld2q_dup_bf16", + "arguments": [ + "bfloat16_t const * ptr" + ], + "return_type": { + "value": "bfloat16x8x2_t" + }, + "Arguments_Preparation": { + "ptr": { + "register": "Xn" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "LD2R" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vld2q_dup_f16", @@ -236951,6 +238572,42 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vld2q_lane_bf16", + "arguments": [ + "bfloat16_t const * ptr", + "bfloat16x8x2_t src", + "const int lane" + ], + "return_type": { + "value": "bfloat16x8x2_t" + }, + "Arguments_Preparation": { + "lane": { + "minimum": 0, + "maximum": 7 + }, + "ptr": { + "register": "Xn" + }, + "src.val[0]": { + "register": "Vt.8H" + }, + "src.val[1]": { + "register": "Vt2.8H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "LD2" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vld2q_lane_f16", @@ -237724,6 +239381,54 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vld3_bf16", + "arguments": [ + "bfloat16_t const * ptr" + ], + "return_type": { + "value": "bfloat16x4x3_t" + }, + "Arguments_Preparation": { + "ptr": { + "register": "Xn" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "LD3" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vld3_dup_bf16", + "arguments": [ + "bfloat16_t const * ptr" + ], + "return_type": { + "value": "bfloat16x4x3_t" + }, + "Arguments_Preparation": { + "ptr": { + "register": "Xn" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "LD3R" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vld3_dup_f16", @@ -238144,6 +239849,45 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vld3_lane_bf16", + "arguments": [ + "bfloat16_t const * ptr", + "bfloat16x4x3_t src", + "const int lane" + ], + "return_type": { + "value": "bfloat16x4x3_t" + }, + "Arguments_Preparation": { + "lane": { + "minimum": 0, + "maximum": 3 + }, + "ptr": { + "register": "Xn" + }, + "src.val[0]": { + "register": "Vt.4H" + }, + "src.val[1]": { + "register": "Vt2.4H" + }, + "src.val[2]": { + "register": "Vt3.4H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "LD3" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vld3_lane_f16", @@ -238970,6 +240714,54 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vld3q_bf16", + "arguments": [ + "bfloat16_t const * ptr" + ], + "return_type": { + "value": "bfloat16x8x3_t" + }, + "Arguments_Preparation": { + "ptr": { + "register": "Xn" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "LD3" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vld3q_dup_bf16", + "arguments": [ + "bfloat16_t const * ptr" + ], + "return_type": { + "value": "bfloat16x8x3_t" + }, + "Arguments_Preparation": { + "ptr": { + "register": "Xn" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "LD3R" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vld3q_dup_f16", @@ -239385,6 +241177,45 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vld3q_lane_bf16", + "arguments": [ + "bfloat16_t const * ptr", + "bfloat16x8x3_t src", + "const int lane" + ], + "return_type": { + "value": "bfloat16x8x3_t" + }, + "Arguments_Preparation": { + "lane": { + "minimum": 0, + "maximum": 7 + }, + "ptr": { + "register": "Xn" + }, + "src.val[0]": { + "register": "Vt.8H" + }, + "src.val[1]": { + "register": "Vt2.8H" + }, + "src.val[2]": { + "register": "Vt3.8H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "LD3" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vld3q_lane_f16", @@ -240200,6 +242031,54 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vld4_bf16", + "arguments": [ + "bfloat16_t const * ptr" + ], + "return_type": { + "value": "bfloat16x4x4_t" + }, + "Arguments_Preparation": { + "ptr": { + "register": "Xn" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "LD4" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vld4_dup_bf16", + "arguments": [ + "bfloat16_t const * ptr" + ], + "return_type": { + "value": "bfloat16x4x4_t" + }, + "Arguments_Preparation": { + "ptr": { + "register": "Xn" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "LD4R" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vld4_dup_f16", @@ -240620,6 +242499,48 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vld4_lane_bf16", + "arguments": [ + "bfloat16_t const * ptr", + "bfloat16x4x4_t src", + "const int lane" + ], + "return_type": { + "value": "bfloat16x4x4_t" + }, + "Arguments_Preparation": { + "lane": { + "minimum": 0, + "maximum": 3 + }, + "ptr": { + "register": "Xn" + }, + "src.val[0]": { + "register": "Vt.4H" + }, + "src.val[1]": { + "register": "Vt2.4H" + }, + "src.val[2]": { + "register": "Vt3.4H" + }, + "src.val[3]": { + "register": "Vt4.4H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "LD4" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vld4_lane_f16", @@ -241488,6 +243409,54 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vld4q_bf16", + "arguments": [ + "bfloat16_t const * ptr" + ], + "return_type": { + "value": "bfloat16x8x4_t" + }, + "Arguments_Preparation": { + "ptr": { + "register": "Xn" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "LD4" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vld4q_dup_bf16", + "arguments": [ + "bfloat16_t const * ptr" + ], + "return_type": { + "value": "bfloat16x8x4_t" + }, + "Arguments_Preparation": { + "ptr": { + "register": "Xn" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "LD4R" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vld4q_dup_f16", @@ -241903,6 +243872,48 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vld4q_lane_bf16", + "arguments": [ + "bfloat16_t const * ptr", + "bfloat16x8x4_t src", + "const int lane" + ], + "return_type": { + "value": "bfloat16x8x4_t" + }, + "Arguments_Preparation": { + "lane": { + "minimum": 0, + "maximum": 7 + }, + "ptr": { + "register": "Xn" + }, + "src.val[0]": { + "register": "Vt.8H" + }, + "src.val[1]": { + "register": "Vt2.8H" + }, + "src.val[2]": { + "register": "Vt3.8H" + }, + "src.val[3]": { + "register": "Vt4.8H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "LD4" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vld4q_lane_f16", @@ -243042,14 +245053,14 @@ }, { "SIMD_ISA": "Neon", - "name": "vluti2_lane_f16", + "name": "vluti2_lane_bf16", "arguments": [ - "float16x4_t vn", + "bfloat16x4_t vn", "uint8x8_t vm", "const int index" ], "return_type": { - "value": "float16x8_t" + "value": "bfloat16x8_t" }, "Arguments_Preparation": { "index": { @@ -243074,14 +245085,14 @@ }, { "SIMD_ISA": "Neon", - "name": "vluti2_lane_p16", + "name": "vluti2_lane_f16", "arguments": [ - "poly16x4_t vn", + "float16x4_t vn", "uint8x8_t vm", "const int index" ], "return_type": { - "value": "poly16x8_t" + "value": "float16x8_t" }, "Arguments_Preparation": { "index": { @@ -243106,46 +245117,14 @@ }, { "SIMD_ISA": "Neon", - "name": "vluti2_lane_p8", - "arguments": [ - "poly8x8_t vn", - "uint8x8_t vm", - "const int index" - ], - "return_type": { - "value": "poly8x16_t" - }, - "Arguments_Preparation": { - "index": { - "minimum": 0, - "maximum": 1 - }, - "vm": { - "register": "Vm" - }, - "vn": { - "register": "Vn.16B" - } - }, - "Architectures": [ - "A64" - ], - "instructions": [ - [ - "LUTI2" - ] - ] - }, - { - "SIMD_ISA": "Neon", - "name": "vluti2_lane_s16", + "name": "vluti2_lane_p16", "arguments": [ - "int16x4_t vn", + "poly16x4_t vn", "uint8x8_t vm", "const int index" ], "return_type": { - "value": "int16x8_t" + "value": "poly16x8_t" }, "Arguments_Preparation": { "index": { @@ -243170,14 +245149,14 @@ }, { "SIMD_ISA": "Neon", - "name": "vluti2_lane_s8", + "name": "vluti2_lane_p8", "arguments": [ - "int8x8_t vn", + "poly8x8_t vn", "uint8x8_t vm", "const int index" ], "return_type": { - "value": "int8x16_t" + "value": "poly8x16_t" }, "Arguments_Preparation": { "index": { @@ -243202,14 +245181,14 @@ }, { "SIMD_ISA": "Neon", - "name": "vluti2_lane_u16", + "name": "vluti2_lane_s16", "arguments": [ - "uint16x4_t vn", + "int16x4_t vn", "uint8x8_t vm", "const int index" ], "return_type": { - "value": "uint16x8_t" + "value": "int16x8_t" }, "Arguments_Preparation": { "index": { @@ -243234,14 +245213,14 @@ }, { "SIMD_ISA": "Neon", - "name": "vluti2_lane_u8", + "name": "vluti2_lane_s8", "arguments": [ - "uint8x8_t vn", + "int8x8_t vn", "uint8x8_t vm", "const int index" ], "return_type": { - "value": "uint8x16_t" + "value": "int8x16_t" }, "Arguments_Preparation": { "index": { @@ -243264,6 +245243,102 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vluti2_lane_u16", + "arguments": [ + "uint16x4_t vn", + "uint8x8_t vm", + "const int index" + ], + "return_type": { + "value": "uint16x8_t" + }, + "Arguments_Preparation": { + "index": { + "minimum": 0, + "maximum": 3 + }, + "vm": { + "register": "Vm" + }, + "vn": { + "register": "Vn.8H" + } + }, + "Architectures": [ + "A64" + ], + "instructions": [ + [ + "LUTI2" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vluti2_lane_u8", + "arguments": [ + "uint8x8_t vn", + "uint8x8_t vm", + "const int index" + ], + "return_type": { + "value": "uint8x16_t" + }, + "Arguments_Preparation": { + "index": { + "minimum": 0, + "maximum": 1 + }, + "vm": { + "register": "Vm" + }, + "vn": { + "register": "Vn.16B" + } + }, + "Architectures": [ + "A64" + ], + "instructions": [ + [ + "LUTI2" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vluti2_laneq_bf16", + "arguments": [ + "bfloat16x4_t vn", + "uint8x16_t vm", + "const int index" + ], + "return_type": { + "value": "bfloat16x8_t" + }, + "Arguments_Preparation": { + "index": { + "minimum": 0, + "maximum": 7 + }, + "vm": { + "register": "Vm" + }, + "vn": { + "register": "Vn.8H" + } + }, + "Architectures": [ + "A64" + ], + "instructions": [ + [ + "LUTI2" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vluti2_laneq_f16", @@ -243488,6 +245563,38 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vluti2q_lane_bf16", + "arguments": [ + "bfloat16x8_t vn", + "uint8x8_t vm", + "const int index" + ], + "return_type": { + "value": "bfloat16x8_t" + }, + "Arguments_Preparation": { + "index": { + "minimum": 0, + "maximum": 3 + }, + "vm": { + "register": "Vm" + }, + "vn": { + "register": "Vn.8H" + } + }, + "Architectures": [ + "A64" + ], + "instructions": [ + [ + "LUTI2" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vluti2q_lane_f16", @@ -243712,6 +245819,38 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vluti2q_laneq_bf16", + "arguments": [ + "bfloat16x8_t vn", + "uint8x16_t vm", + "const int index" + ], + "return_type": { + "value": "bfloat16x8_t" + }, + "Arguments_Preparation": { + "index": { + "minimum": 0, + "maximum": 7 + }, + "vm": { + "register": "Vm" + }, + "vn": { + "register": "Vn.8H" + } + }, + "Architectures": [ + "A64" + ], + "instructions": [ + [ + "LUTI2" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vluti2q_laneq_f16", @@ -243938,49 +246077,14 @@ }, { "SIMD_ISA": "Neon", - "name": "vluti4q_lane_f16_x2", - "arguments": [ - "float16x8x2_t vn", - "uint8x8_t vm", - "const int index" - ], - "return_type": { - "value": "float16x8_t" - }, - "Arguments_Preparation": { - "index": { - "minimum": 0, - "maximum": 1 - }, - "vm": { - "register": "Vm" - }, - "vn.val[0]": { - "register": "Vn1.8H" - }, - "vn.val[1]": { - "register": "Vn2.8H" - } - }, - "Architectures": [ - "A64" - ], - "instructions": [ - [ - "LUTI4" - ] - ] - }, - { - "SIMD_ISA": "Neon", - "name": "vluti4q_lane_p16_x2", + "name": "vluti4q_lane_bf16_x2", "arguments": [ - "poly16x8x2_t vn", + "bfloat16x8x2_t vn", "uint8x8_t vm", "const int index" ], "return_type": { - "value": "poly16x8_t" + "value": "bfloat16x8_t" }, "Arguments_Preparation": { "index": { @@ -244008,46 +246112,14 @@ }, { "SIMD_ISA": "Neon", - "name": "vluti4q_lane_p8", - "arguments": [ - "poly8x16_t vn", - "uint8x8_t vm", - "const int index" - ], - "return_type": { - "value": "poly8x16_t" - }, - "Arguments_Preparation": { - "index": { - "minimum": 0, - "maximum": 0 - }, - "vm": { - "register": "Vm" - }, - "vn": { - "register": "Vn.16B" - } - }, - "Architectures": [ - "A64" - ], - "instructions": [ - [ - "LUTI4" - ] - ] - }, - { - "SIMD_ISA": "Neon", - "name": "vluti4q_lane_s16_x2", + "name": "vluti4q_lane_f16_x2", "arguments": [ - "int16x8x2_t vn", + "float16x8x2_t vn", "uint8x8_t vm", "const int index" ], "return_type": { - "value": "int16x8_t" + "value": "float16x8_t" }, "Arguments_Preparation": { "index": { @@ -244075,46 +246147,14 @@ }, { "SIMD_ISA": "Neon", - "name": "vluti4q_lane_s8", - "arguments": [ - "int8x16_t vn", - "uint8x8_t vm", - "const int index" - ], - "return_type": { - "value": "int8x16_t" - }, - "Arguments_Preparation": { - "index": { - "minimum": 0, - "maximum": 0 - }, - "vm": { - "register": "Vm" - }, - "vn": { - "register": "Vn.16B" - } - }, - "Architectures": [ - "A64" - ], - "instructions": [ - [ - "LUTI4" - ] - ] - }, - { - "SIMD_ISA": "Neon", - "name": "vluti4q_lane_u16_x2", + "name": "vluti4q_lane_p16_x2", "arguments": [ - "uint16x8x2_t vn", + "poly16x8x2_t vn", "uint8x8_t vm", "const int index" ], "return_type": { - "value": "uint16x8_t" + "value": "poly16x8_t" }, "Arguments_Preparation": { "index": { @@ -244142,14 +246182,14 @@ }, { "SIMD_ISA": "Neon", - "name": "vluti4q_lane_u8", + "name": "vluti4q_lane_p8", "arguments": [ - "uint8x16_t vn", + "poly8x16_t vn", "uint8x8_t vm", "const int index" ], "return_type": { - "value": "uint8x16_t" + "value": "poly8x16_t" }, "Arguments_Preparation": { "index": { @@ -244172,6 +246212,175 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vluti4q_lane_s16_x2", + "arguments": [ + "int16x8x2_t vn", + "uint8x8_t vm", + "const int index" + ], + "return_type": { + "value": "int16x8_t" + }, + "Arguments_Preparation": { + "index": { + "minimum": 0, + "maximum": 1 + }, + "vm": { + "register": "Vm" + }, + "vn.val[0]": { + "register": "Vn1.8H" + }, + "vn.val[1]": { + "register": "Vn2.8H" + } + }, + "Architectures": [ + "A64" + ], + "instructions": [ + [ + "LUTI4" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vluti4q_lane_s8", + "arguments": [ + "int8x16_t vn", + "uint8x8_t vm", + "const int index" + ], + "return_type": { + "value": "int8x16_t" + }, + "Arguments_Preparation": { + "index": { + "minimum": 0, + "maximum": 0 + }, + "vm": { + "register": "Vm" + }, + "vn": { + "register": "Vn.16B" + } + }, + "Architectures": [ + "A64" + ], + "instructions": [ + [ + "LUTI4" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vluti4q_lane_u16_x2", + "arguments": [ + "uint16x8x2_t vn", + "uint8x8_t vm", + "const int index" + ], + "return_type": { + "value": "uint16x8_t" + }, + "Arguments_Preparation": { + "index": { + "minimum": 0, + "maximum": 1 + }, + "vm": { + "register": "Vm" + }, + "vn.val[0]": { + "register": "Vn1.8H" + }, + "vn.val[1]": { + "register": "Vn2.8H" + } + }, + "Architectures": [ + "A64" + ], + "instructions": [ + [ + "LUTI4" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vluti4q_lane_u8", + "arguments": [ + "uint8x16_t vn", + "uint8x8_t vm", + "const int index" + ], + "return_type": { + "value": "uint8x16_t" + }, + "Arguments_Preparation": { + "index": { + "minimum": 0, + "maximum": 0 + }, + "vm": { + "register": "Vm" + }, + "vn": { + "register": "Vn.16B" + } + }, + "Architectures": [ + "A64" + ], + "instructions": [ + [ + "LUTI4" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vluti4q_laneq_bf16_x2", + "arguments": [ + "bfloat16x8x2_t vn", + "uint8x16_t vm", + "const int index" + ], + "return_type": { + "value": "bfloat16x8_t" + }, + "Arguments_Preparation": { + "index": { + "minimum": 0, + "maximum": 3 + }, + "vm": { + "register": "Vm" + }, + "vn.val[0]": { + "register": "Vn1.8H" + }, + "vn.val[1]": { + "register": "Vn2.8H" + } + }, + "Architectures": [ + "A64" + ], + "instructions": [ + [ + "LUTI4" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vluti4q_laneq_f16_x2", @@ -276421,12 +278630,12 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_f16_f32", + "name": "vreinterpret_bf16_f32", "arguments": [ "float32x2_t a" ], "return_type": { - "value": "float16x4_t" + "value": "bfloat16x4_t" }, "Arguments_Preparation": { "a": { @@ -276434,7 +278643,6 @@ } }, "Architectures": [ - "v7", "A32", "A64" ], @@ -276446,12 +278654,12 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_f16_f64", + "name": "vreinterpret_bf16_f64", "arguments": [ "float64x1_t a" ], "return_type": { - "value": "float16x4_t" + "value": "bfloat16x4_t" }, "Arguments_Preparation": { "a": { @@ -276469,12 +278677,12 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_f16_p16", + "name": "vreinterpret_bf16_p16", "arguments": [ "poly16x4_t a" ], "return_type": { - "value": "float16x4_t" + "value": "bfloat16x4_t" }, "Arguments_Preparation": { "a": { @@ -276482,7 +278690,6 @@ } }, "Architectures": [ - "v7", "A32", "A64" ], @@ -276494,12 +278701,12 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_f16_p64", + "name": "vreinterpret_bf16_p64", "arguments": [ "poly64x1_t a" ], "return_type": { - "value": "float16x4_t" + "value": "bfloat16x4_t" }, "Arguments_Preparation": { "a": { @@ -276518,12 +278725,12 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_f16_p8", + "name": "vreinterpret_bf16_p8", "arguments": [ "poly8x8_t a" ], "return_type": { - "value": "float16x4_t" + "value": "bfloat16x4_t" }, "Arguments_Preparation": { "a": { @@ -276531,7 +278738,6 @@ } }, "Architectures": [ - "v7", "A32", "A64" ], @@ -276543,12 +278749,12 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_f16_s16", + "name": "vreinterpret_bf16_s16", "arguments": [ "int16x4_t a" ], "return_type": { - "value": "float16x4_t" + "value": "bfloat16x4_t" }, "Arguments_Preparation": { "a": { @@ -276556,7 +278762,6 @@ } }, "Architectures": [ - "v7", "A32", "A64" ], @@ -276568,12 +278773,12 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_f16_s32", + "name": "vreinterpret_bf16_s32", "arguments": [ "int32x2_t a" ], "return_type": { - "value": "float16x4_t" + "value": "bfloat16x4_t" }, "Arguments_Preparation": { "a": { @@ -276581,7 +278786,6 @@ } }, "Architectures": [ - "v7", "A32", "A64" ], @@ -276593,12 +278797,12 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_f16_s64", + "name": "vreinterpret_bf16_s64", "arguments": [ "int64x1_t a" ], "return_type": { - "value": "float16x4_t" + "value": "bfloat16x4_t" }, "Arguments_Preparation": { "a": { @@ -276606,7 +278810,6 @@ } }, "Architectures": [ - "v7", "A32", "A64" ], @@ -276618,12 +278821,12 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_f16_s8", + "name": "vreinterpret_bf16_s8", "arguments": [ "int8x8_t a" ], "return_type": { - "value": "float16x4_t" + "value": "bfloat16x4_t" }, "Arguments_Preparation": { "a": { @@ -276631,7 +278834,6 @@ } }, "Architectures": [ - "v7", "A32", "A64" ], @@ -276643,12 +278845,12 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_f16_u16", + "name": "vreinterpret_bf16_u16", "arguments": [ "uint16x4_t a" ], "return_type": { - "value": "float16x4_t" + "value": "bfloat16x4_t" }, "Arguments_Preparation": { "a": { @@ -276656,7 +278858,6 @@ } }, "Architectures": [ - "v7", "A32", "A64" ], @@ -276668,7 +278869,326 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_f16_u32", + "name": "vreinterpret_bf16_u32", + "arguments": [ + "uint32x2_t a" + ], + "return_type": { + "value": "bfloat16x4_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.2S" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpret_bf16_u64", + "arguments": [ + "uint64x1_t a" + ], + "return_type": { + "value": "bfloat16x4_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.1D" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpret_bf16_u8", + "arguments": [ + "uint8x8_t a" + ], + "return_type": { + "value": "bfloat16x4_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.8B" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpret_f16_f32", + "arguments": [ + "float32x2_t a" + ], + "return_type": { + "value": "float16x4_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.2S" + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpret_f16_f64", + "arguments": [ + "float64x1_t a" + ], + "return_type": { + "value": "float16x4_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.1D" + } + }, + "Architectures": [ + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpret_f16_p16", + "arguments": [ + "poly16x4_t a" + ], + "return_type": { + "value": "float16x4_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.4H" + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpret_f16_p64", + "arguments": [ + "poly64x1_t a" + ], + "return_type": { + "value": "float16x4_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.1D" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpret_f16_p8", + "arguments": [ + "poly8x8_t a" + ], + "return_type": { + "value": "float16x4_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.8B" + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpret_f16_s16", + "arguments": [ + "int16x4_t a" + ], + "return_type": { + "value": "float16x4_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.4H" + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpret_f16_s32", + "arguments": [ + "int32x2_t a" + ], + "return_type": { + "value": "float16x4_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.2S" + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpret_f16_s64", + "arguments": [ + "int64x1_t a" + ], + "return_type": { + "value": "float16x4_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.1D" + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpret_f16_s8", + "arguments": [ + "int8x8_t a" + ], + "return_type": { + "value": "float16x4_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.8B" + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpret_f16_u16", + "arguments": [ + "uint16x4_t a" + ], + "return_type": { + "value": "float16x4_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.4H" + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpret_f16_u32", "arguments": [ "uint32x2_t a" ], @@ -276741,6 +279261,30 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpret_f32_bf16", + "arguments": [ + "bfloat16x4_t a" + ], + "return_type": { + "value": "float32x2_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.4H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vreinterpret_f32_f16", @@ -277039,6 +279583,29 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpret_f64_bf16", + "arguments": [ + "bfloat16x4_t a" + ], + "return_type": { + "value": "float64x1_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.4H" + } + }, + "Architectures": [ + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vreinterpret_f64_f16", @@ -277338,6 +279905,30 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpret_p16_bf16", + "arguments": [ + "bfloat16x4_t a" + ], + "return_type": { + "value": "poly16x4_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.4H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vreinterpret_p16_f16", @@ -277660,6 +280251,30 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpret_p64_bf16", + "arguments": [ + "bfloat16x4_t a" + ], + "return_type": { + "value": "poly64x1_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.4H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vreinterpret_p64_f16", @@ -277947,6 +280562,30 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpret_p8_bf16", + "arguments": [ + "bfloat16x4_t a" + ], + "return_type": { + "value": "poly8x8_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.4H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vreinterpret_p8_f16", @@ -278269,6 +280908,30 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpret_s16_bf16", + "arguments": [ + "bfloat16x4_t a" + ], + "return_type": { + "value": "int16x4_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.4H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vreinterpret_s16_f16", @@ -278591,6 +281254,30 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpret_s32_bf16", + "arguments": [ + "bfloat16x4_t a" + ], + "return_type": { + "value": "int32x2_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.4H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vreinterpret_s32_f16", @@ -278913,6 +281600,30 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpret_s64_bf16", + "arguments": [ + "bfloat16x4_t a" + ], + "return_type": { + "value": "int64x1_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.4H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vreinterpret_s64_f16", @@ -279235,6 +281946,30 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpret_s8_bf16", + "arguments": [ + "bfloat16x4_t a" + ], + "return_type": { + "value": "int8x8_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.4H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vreinterpret_s8_f16", @@ -279559,9 +282294,9 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_u16_f16", + "name": "vreinterpret_u16_bf16", "arguments": [ - "float16x4_t a" + "bfloat16x4_t a" ], "return_type": { "value": "uint16x4_t" @@ -279572,7 +282307,6 @@ } }, "Architectures": [ - "v7", "A32", "A64" ], @@ -279584,16 +282318,16 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_u16_f32", + "name": "vreinterpret_u16_f16", "arguments": [ - "float32x2_t a" + "float16x4_t a" ], "return_type": { "value": "uint16x4_t" }, "Arguments_Preparation": { "a": { - "register": "Vd.2S" + "register": "Vd.4H" } }, "Architectures": [ @@ -279609,39 +282343,16 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_u16_f64", - "arguments": [ - "float64x1_t a" - ], - "return_type": { - "value": "uint16x4_t" - }, - "Arguments_Preparation": { - "a": { - "register": "Vd.1D" - } - }, - "Architectures": [ - "A64" - ], - "instructions": [ - [ - "NOP" - ] - ] - }, - { - "SIMD_ISA": "Neon", - "name": "vreinterpret_u16_p16", + "name": "vreinterpret_u16_f32", "arguments": [ - "poly16x4_t a" + "float32x2_t a" ], "return_type": { "value": "uint16x4_t" }, "Arguments_Preparation": { "a": { - "register": "Vd.4H" + "register": "Vd.2S" } }, "Architectures": [ @@ -279657,9 +282368,9 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_u16_p64", + "name": "vreinterpret_u16_f64", "arguments": [ - "poly64x1_t a" + "float64x1_t a" ], "return_type": { "value": "uint16x4_t" @@ -279670,7 +282381,6 @@ } }, "Architectures": [ - "A32", "A64" ], "instructions": [ @@ -279681,34 +282391,9 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_u16_p8", - "arguments": [ - "poly8x8_t a" - ], - "return_type": { - "value": "uint16x4_t" - }, - "Arguments_Preparation": { - "a": { - "register": "Vd.8B" - } - }, - "Architectures": [ - "v7", - "A32", - "A64" - ], - "instructions": [ - [ - "NOP" - ] - ] - }, - { - "SIMD_ISA": "Neon", - "name": "vreinterpret_u16_s16", + "name": "vreinterpret_u16_p16", "arguments": [ - "int16x4_t a" + "poly16x4_t a" ], "return_type": { "value": "uint16x4_t" @@ -279731,34 +282416,9 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_u16_s32", - "arguments": [ - "int32x2_t a" - ], - "return_type": { - "value": "uint16x4_t" - }, - "Arguments_Preparation": { - "a": { - "register": "Vd.2S" - } - }, - "Architectures": [ - "v7", - "A32", - "A64" - ], - "instructions": [ - [ - "NOP" - ] - ] - }, - { - "SIMD_ISA": "Neon", - "name": "vreinterpret_u16_s64", + "name": "vreinterpret_u16_p64", "arguments": [ - "int64x1_t a" + "poly64x1_t a" ], "return_type": { "value": "uint16x4_t" @@ -279769,7 +282429,6 @@ } }, "Architectures": [ - "v7", "A32", "A64" ], @@ -279781,9 +282440,9 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_u16_s8", + "name": "vreinterpret_u16_p8", "arguments": [ - "int8x8_t a" + "poly8x8_t a" ], "return_type": { "value": "uint16x4_t" @@ -279806,16 +282465,16 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_u16_u32", + "name": "vreinterpret_u16_s16", "arguments": [ - "uint32x2_t a" + "int16x4_t a" ], "return_type": { "value": "uint16x4_t" }, "Arguments_Preparation": { "a": { - "register": "Vd.2S" + "register": "Vd.4H" } }, "Architectures": [ @@ -279831,16 +282490,16 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_u16_u64", + "name": "vreinterpret_u16_s32", "arguments": [ - "uint64x1_t a" + "int32x2_t a" ], "return_type": { "value": "uint16x4_t" }, "Arguments_Preparation": { "a": { - "register": "Vd.1D" + "register": "Vd.2S" } }, "Architectures": [ @@ -279856,16 +282515,16 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_u16_u8", + "name": "vreinterpret_u16_s64", "arguments": [ - "uint8x8_t a" + "int64x1_t a" ], "return_type": { "value": "uint16x4_t" }, "Arguments_Preparation": { "a": { - "register": "Vd.8B" + "register": "Vd.1D" } }, "Architectures": [ @@ -279881,16 +282540,16 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_u32_f16", + "name": "vreinterpret_u16_s8", "arguments": [ - "float16x4_t a" + "int8x8_t a" ], "return_type": { - "value": "uint32x2_t" + "value": "uint16x4_t" }, "Arguments_Preparation": { "a": { - "register": "Vd.4H" + "register": "Vd.8B" } }, "Architectures": [ @@ -279906,12 +282565,12 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_u32_f32", + "name": "vreinterpret_u16_u32", "arguments": [ - "float32x2_t a" + "uint32x2_t a" ], "return_type": { - "value": "uint32x2_t" + "value": "uint16x4_t" }, "Arguments_Preparation": { "a": { @@ -279931,12 +282590,12 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_u32_f64", + "name": "vreinterpret_u16_u64", "arguments": [ - "float64x1_t a" + "uint64x1_t a" ], "return_type": { - "value": "uint32x2_t" + "value": "uint16x4_t" }, "Arguments_Preparation": { "a": { @@ -279944,6 +282603,8 @@ } }, "Architectures": [ + "v7", + "A32", "A64" ], "instructions": [ @@ -279954,16 +282615,16 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_u32_p16", + "name": "vreinterpret_u16_u8", "arguments": [ - "poly16x4_t a" + "uint8x8_t a" ], "return_type": { - "value": "uint32x2_t" + "value": "uint16x4_t" }, "Arguments_Preparation": { "a": { - "register": "Vd.4H" + "register": "Vd.8B" } }, "Architectures": [ @@ -279979,16 +282640,16 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_u32_p64", + "name": "vreinterpret_u32_bf16", "arguments": [ - "poly64x1_t a" + "bfloat16x4_t a" ], "return_type": { "value": "uint32x2_t" }, "Arguments_Preparation": { "a": { - "register": "Vd.1D" + "register": "Vd.4H" } }, "Architectures": [ @@ -280003,16 +282664,16 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_u32_p8", + "name": "vreinterpret_u32_f16", "arguments": [ - "poly8x8_t a" + "float16x4_t a" ], "return_type": { "value": "uint32x2_t" }, "Arguments_Preparation": { "a": { - "register": "Vd.8B" + "register": "Vd.4H" } }, "Architectures": [ @@ -280028,16 +282689,16 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_u32_s16", + "name": "vreinterpret_u32_f32", "arguments": [ - "int16x4_t a" + "float32x2_t a" ], "return_type": { "value": "uint32x2_t" }, "Arguments_Preparation": { "a": { - "register": "Vd.4H" + "register": "Vd.2S" } }, "Architectures": [ @@ -280053,16 +282714,39 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_u32_s32", + "name": "vreinterpret_u32_f64", "arguments": [ - "int32x2_t a" + "float64x1_t a" ], "return_type": { "value": "uint32x2_t" }, "Arguments_Preparation": { "a": { - "register": "Vd.2S" + "register": "Vd.1D" + } + }, + "Architectures": [ + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpret_u32_p16", + "arguments": [ + "poly16x4_t a" + ], + "return_type": { + "value": "uint32x2_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.4H" } }, "Architectures": [ @@ -280078,9 +282762,9 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_u32_s64", + "name": "vreinterpret_u32_p64", "arguments": [ - "int64x1_t a" + "poly64x1_t a" ], "return_type": { "value": "uint32x2_t" @@ -280091,7 +282775,6 @@ } }, "Architectures": [ - "v7", "A32", "A64" ], @@ -280103,9 +282786,9 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_u32_s8", + "name": "vreinterpret_u32_p8", "arguments": [ - "int8x8_t a" + "poly8x8_t a" ], "return_type": { "value": "uint32x2_t" @@ -280128,9 +282811,9 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_u32_u16", + "name": "vreinterpret_u32_s16", "arguments": [ - "uint16x4_t a" + "int16x4_t a" ], "return_type": { "value": "uint32x2_t" @@ -280153,16 +282836,16 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_u32_u64", + "name": "vreinterpret_u32_s32", "arguments": [ - "uint64x1_t a" + "int32x2_t a" ], "return_type": { "value": "uint32x2_t" }, "Arguments_Preparation": { "a": { - "register": "Vd.1D" + "register": "Vd.2S" } }, "Architectures": [ @@ -280178,16 +282861,16 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_u32_u8", + "name": "vreinterpret_u32_s64", "arguments": [ - "uint8x8_t a" + "int64x1_t a" ], "return_type": { "value": "uint32x2_t" }, "Arguments_Preparation": { "a": { - "register": "Vd.8B" + "register": "Vd.1D" } }, "Architectures": [ @@ -280203,16 +282886,16 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_u64_f16", + "name": "vreinterpret_u32_s8", "arguments": [ - "float16x4_t a" + "int8x8_t a" ], "return_type": { - "value": "uint64x1_t" + "value": "uint32x2_t" }, "Arguments_Preparation": { "a": { - "register": "Vd.4H" + "register": "Vd.8B" } }, "Architectures": [ @@ -280228,16 +282911,16 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_u64_f32", + "name": "vreinterpret_u32_u16", "arguments": [ - "float32x2_t a" + "uint16x4_t a" ], "return_type": { - "value": "uint64x1_t" + "value": "uint32x2_t" }, "Arguments_Preparation": { "a": { - "register": "Vd.2S" + "register": "Vd.4H" } }, "Architectures": [ @@ -280253,12 +282936,12 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_u64_f64", + "name": "vreinterpret_u32_u64", "arguments": [ - "float64x1_t a" + "uint64x1_t a" ], "return_type": { - "value": "uint64x1_t" + "value": "uint32x2_t" }, "Arguments_Preparation": { "a": { @@ -280266,6 +282949,8 @@ } }, "Architectures": [ + "v7", + "A32", "A64" ], "instructions": [ @@ -280276,16 +282961,16 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_u64_p16", + "name": "vreinterpret_u32_u8", "arguments": [ - "poly16x4_t a" + "uint8x8_t a" ], "return_type": { - "value": "uint64x1_t" + "value": "uint32x2_t" }, "Arguments_Preparation": { "a": { - "register": "Vd.4H" + "register": "Vd.8B" } }, "Architectures": [ @@ -280301,16 +282986,16 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_u64_p64", + "name": "vreinterpret_u64_bf16", "arguments": [ - "poly64x1_t a" + "bfloat16x4_t a" ], "return_type": { "value": "uint64x1_t" }, "Arguments_Preparation": { "a": { - "register": "Vd.1D" + "register": "Vd.4H" } }, "Architectures": [ @@ -280325,16 +283010,16 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_u64_p8", + "name": "vreinterpret_u64_f16", "arguments": [ - "poly8x8_t a" + "float16x4_t a" ], "return_type": { "value": "uint64x1_t" }, "Arguments_Preparation": { "a": { - "register": "Vd.8B" + "register": "Vd.4H" } }, "Architectures": [ @@ -280350,16 +283035,16 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_u64_s16", + "name": "vreinterpret_u64_f32", "arguments": [ - "int16x4_t a" + "float32x2_t a" ], "return_type": { "value": "uint64x1_t" }, "Arguments_Preparation": { "a": { - "register": "Vd.4H" + "register": "Vd.2S" } }, "Architectures": [ @@ -280375,21 +283060,19 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_u64_s32", + "name": "vreinterpret_u64_f64", "arguments": [ - "int32x2_t a" + "float64x1_t a" ], "return_type": { "value": "uint64x1_t" }, "Arguments_Preparation": { "a": { - "register": "Vd.2S" + "register": "Vd.1D" } }, "Architectures": [ - "v7", - "A32", "A64" ], "instructions": [ @@ -280400,16 +283083,16 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_u64_s64", + "name": "vreinterpret_u64_p16", "arguments": [ - "int64x1_t a" + "poly16x4_t a" ], "return_type": { "value": "uint64x1_t" }, "Arguments_Preparation": { "a": { - "register": "Vd.1D" + "register": "Vd.4H" } }, "Architectures": [ @@ -280425,20 +283108,19 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_u64_s8", + "name": "vreinterpret_u64_p64", "arguments": [ - "int8x8_t a" + "poly64x1_t a" ], "return_type": { "value": "uint64x1_t" }, "Arguments_Preparation": { "a": { - "register": "Vd.8B" + "register": "Vd.1D" } }, "Architectures": [ - "v7", "A32", "A64" ], @@ -280450,16 +283132,16 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_u64_u16", + "name": "vreinterpret_u64_p8", "arguments": [ - "uint16x4_t a" + "poly8x8_t a" ], "return_type": { "value": "uint64x1_t" }, "Arguments_Preparation": { "a": { - "register": "Vd.4H" + "register": "Vd.8B" } }, "Architectures": [ @@ -280475,16 +283157,16 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_u64_u32", + "name": "vreinterpret_u64_s16", "arguments": [ - "uint32x2_t a" + "int16x4_t a" ], "return_type": { "value": "uint64x1_t" }, "Arguments_Preparation": { "a": { - "register": "Vd.2S" + "register": "Vd.4H" } }, "Architectures": [ @@ -280500,16 +283182,16 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_u64_u8", + "name": "vreinterpret_u64_s32", "arguments": [ - "uint8x8_t a" + "int32x2_t a" ], "return_type": { "value": "uint64x1_t" }, "Arguments_Preparation": { "a": { - "register": "Vd.8B" + "register": "Vd.2S" } }, "Architectures": [ @@ -280525,16 +283207,16 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_u8_f16", + "name": "vreinterpret_u64_s64", "arguments": [ - "float16x4_t a" + "int64x1_t a" ], "return_type": { - "value": "uint8x8_t" + "value": "uint64x1_t" }, "Arguments_Preparation": { "a": { - "register": "Vd.4H" + "register": "Vd.1D" } }, "Architectures": [ @@ -280550,16 +283232,16 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_u8_f32", + "name": "vreinterpret_u64_s8", "arguments": [ - "float32x2_t a" + "int8x8_t a" ], "return_type": { - "value": "uint8x8_t" + "value": "uint64x1_t" }, "Arguments_Preparation": { "a": { - "register": "Vd.2S" + "register": "Vd.8B" } }, "Architectures": [ @@ -280575,19 +283257,21 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_u8_f64", + "name": "vreinterpret_u64_u16", "arguments": [ - "float64x1_t a" + "uint16x4_t a" ], "return_type": { - "value": "uint8x8_t" + "value": "uint64x1_t" }, "Arguments_Preparation": { "a": { - "register": "Vd.1D" + "register": "Vd.4H" } }, "Architectures": [ + "v7", + "A32", "A64" ], "instructions": [ @@ -280598,16 +283282,16 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_u8_p16", + "name": "vreinterpret_u64_u32", "arguments": [ - "poly16x4_t a" + "uint32x2_t a" ], "return_type": { - "value": "uint8x8_t" + "value": "uint64x1_t" }, "Arguments_Preparation": { "a": { - "register": "Vd.4H" + "register": "Vd.2S" } }, "Architectures": [ @@ -280623,19 +283307,20 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_u8_p64", + "name": "vreinterpret_u64_u8", "arguments": [ - "poly64x1_t a" + "uint8x8_t a" ], "return_type": { - "value": "uint8x8_t" + "value": "uint64x1_t" }, "Arguments_Preparation": { "a": { - "register": "Vd.1D" + "register": "Vd.8B" } }, "Architectures": [ + "v7", "A32", "A64" ], @@ -280647,20 +283332,19 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_u8_p8", + "name": "vreinterpret_u8_bf16", "arguments": [ - "poly8x8_t a" + "bfloat16x4_t a" ], "return_type": { "value": "uint8x8_t" }, "Arguments_Preparation": { "a": { - "register": "Vd.8B" + "register": "Vd.4H" } }, "Architectures": [ - "v7", "A32", "A64" ], @@ -280672,9 +283356,156 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpret_u8_s16", + "name": "vreinterpret_u8_f16", "arguments": [ - "int16x4_t a" + "float16x4_t a" + ], + "return_type": { + "value": "uint8x8_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.4H" + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpret_u8_f32", + "arguments": [ + "float32x2_t a" + ], + "return_type": { + "value": "uint8x8_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.2S" + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpret_u8_f64", + "arguments": [ + "float64x1_t a" + ], + "return_type": { + "value": "uint8x8_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.1D" + } + }, + "Architectures": [ + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpret_u8_p16", + "arguments": [ + "poly16x4_t a" + ], + "return_type": { + "value": "uint8x8_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.4H" + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpret_u8_p64", + "arguments": [ + "poly64x1_t a" + ], + "return_type": { + "value": "uint8x8_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.1D" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpret_u8_p8", + "arguments": [ + "poly8x8_t a" + ], + "return_type": { + "value": "uint8x8_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.8B" + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpret_u8_s16", + "arguments": [ + "int16x4_t a" ], "return_type": { "value": "uint8x8_t" @@ -280845,6 +283676,341 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpretq_bf16_f32", + "arguments": [ + "float32x4_t a" + ], + "return_type": { + "value": "bfloat16x8_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.4S" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpretq_bf16_f64", + "arguments": [ + "float64x2_t a" + ], + "return_type": { + "value": "bfloat16x8_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.2D" + } + }, + "Architectures": [ + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpretq_bf16_p128", + "arguments": [ + "poly128_t a" + ], + "return_type": { + "value": "bfloat16x8_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.1Q" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpretq_bf16_p16", + "arguments": [ + "poly16x8_t a" + ], + "return_type": { + "value": "bfloat16x8_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.8H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpretq_bf16_p64", + "arguments": [ + "poly64x2_t a" + ], + "return_type": { + "value": "bfloat16x8_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.2D" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpretq_bf16_p8", + "arguments": [ + "poly8x16_t a" + ], + "return_type": { + "value": "bfloat16x8_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.16B" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpretq_bf16_s16", + "arguments": [ + "int16x8_t a" + ], + "return_type": { + "value": "bfloat16x8_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.8H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpretq_bf16_s32", + "arguments": [ + "int32x4_t a" + ], + "return_type": { + "value": "bfloat16x8_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.4S" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpretq_bf16_s64", + "arguments": [ + "int64x2_t a" + ], + "return_type": { + "value": "bfloat16x8_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.2D" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpretq_bf16_s8", + "arguments": [ + "int8x16_t a" + ], + "return_type": { + "value": "bfloat16x8_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.16B" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpretq_bf16_u16", + "arguments": [ + "uint16x8_t a" + ], + "return_type": { + "value": "bfloat16x8_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.8H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpretq_bf16_u32", + "arguments": [ + "uint32x4_t a" + ], + "return_type": { + "value": "bfloat16x8_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.4S" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpretq_bf16_u64", + "arguments": [ + "uint64x2_t a" + ], + "return_type": { + "value": "bfloat16x8_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.2D" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpretq_bf16_u8", + "arguments": [ + "uint8x16_t a" + ], + "return_type": { + "value": "bfloat16x8_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.16B" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vreinterpretq_f16_f32", @@ -280993,9 +284159,109 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpretq_f16_s16", + "name": "vreinterpretq_f16_s16", + "arguments": [ + "int16x8_t a" + ], + "return_type": { + "value": "float16x8_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.8H" + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpretq_f16_s32", + "arguments": [ + "int32x4_t a" + ], + "return_type": { + "value": "float16x8_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.4S" + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpretq_f16_s64", + "arguments": [ + "int64x2_t a" + ], + "return_type": { + "value": "float16x8_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.2D" + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpretq_f16_s8", + "arguments": [ + "int8x16_t a" + ], + "return_type": { + "value": "float16x8_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.16B" + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpretq_f16_u16", "arguments": [ - "int16x8_t a" + "uint16x8_t a" ], "return_type": { "value": "float16x8_t" @@ -281018,9 +284284,9 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpretq_f16_s32", + "name": "vreinterpretq_f16_u32", "arguments": [ - "int32x4_t a" + "uint32x4_t a" ], "return_type": { "value": "float16x8_t" @@ -281043,9 +284309,9 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpretq_f16_s64", + "name": "vreinterpretq_f16_u64", "arguments": [ - "int64x2_t a" + "uint64x2_t a" ], "return_type": { "value": "float16x8_t" @@ -281068,9 +284334,9 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpretq_f16_s8", + "name": "vreinterpretq_f16_u8", "arguments": [ - "int8x16_t a" + "uint8x16_t a" ], "return_type": { "value": "float16x8_t" @@ -281093,12 +284359,12 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpretq_f16_u16", + "name": "vreinterpretq_f32_bf16", "arguments": [ - "uint16x8_t a" + "bfloat16x8_t a" ], "return_type": { - "value": "float16x8_t" + "value": "float32x4_t" }, "Arguments_Preparation": { "a": { @@ -281106,82 +284372,6 @@ } }, "Architectures": [ - "v7", - "A32", - "A64" - ], - "instructions": [ - [ - "NOP" - ] - ] - }, - { - "SIMD_ISA": "Neon", - "name": "vreinterpretq_f16_u32", - "arguments": [ - "uint32x4_t a" - ], - "return_type": { - "value": "float16x8_t" - }, - "Arguments_Preparation": { - "a": { - "register": "Vd.4S" - } - }, - "Architectures": [ - "v7", - "A32", - "A64" - ], - "instructions": [ - [ - "NOP" - ] - ] - }, - { - "SIMD_ISA": "Neon", - "name": "vreinterpretq_f16_u64", - "arguments": [ - "uint64x2_t a" - ], - "return_type": { - "value": "float16x8_t" - }, - "Arguments_Preparation": { - "a": { - "register": "Vd.2D" - } - }, - "Architectures": [ - "v7", - "A32", - "A64" - ], - "instructions": [ - [ - "NOP" - ] - ] - }, - { - "SIMD_ISA": "Neon", - "name": "vreinterpretq_f16_u8", - "arguments": [ - "uint8x16_t a" - ], - "return_type": { - "value": "float16x8_t" - }, - "Arguments_Preparation": { - "a": { - "register": "Vd.16B" - } - }, - "Architectures": [ - "v7", "A32", "A64" ], @@ -281489,6 +284679,29 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpretq_f64_bf16", + "arguments": [ + "bfloat16x8_t a" + ], + "return_type": { + "value": "float64x2_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.8H" + } + }, + "Architectures": [ + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vreinterpretq_f64_f16", @@ -281813,6 +285026,30 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpretq_p128_bf16", + "arguments": [ + "bfloat16x8_t a" + ], + "return_type": { + "value": "poly128_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.8H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vreinterpretq_p128_f16", @@ -281863,9 +285100,128 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpretq_p128_f64", + "name": "vreinterpretq_p128_f64", + "arguments": [ + "float64x2_t a" + ], + "return_type": { + "value": "poly128_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.1Q" + } + }, + "Architectures": [ + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpretq_p128_p16", + "arguments": [ + "poly16x8_t a" + ], + "return_type": { + "value": "poly128_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.8H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpretq_p128_p8", + "arguments": [ + "poly8x16_t a" + ], + "return_type": { + "value": "poly128_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.16B" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpretq_p128_s16", + "arguments": [ + "int16x8_t a" + ], + "return_type": { + "value": "poly128_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.8H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpretq_p128_s32", + "arguments": [ + "int32x4_t a" + ], + "return_type": { + "value": "poly128_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.4S" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpretq_p128_s64", "arguments": [ - "float64x2_t a" + "int64x2_t a" ], "return_type": { "value": "poly128_t" @@ -281875,29 +285231,6 @@ "register": "Vd.1Q" } }, - "Architectures": [ - "A64" - ], - "instructions": [ - [ - "NOP" - ] - ] - }, - { - "SIMD_ISA": "Neon", - "name": "vreinterpretq_p128_p16", - "arguments": [ - "poly16x8_t a" - ], - "return_type": { - "value": "poly128_t" - }, - "Arguments_Preparation": { - "a": { - "register": "Vd.8H" - } - }, "Architectures": [ "A32", "A64" @@ -281910,9 +285243,9 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpretq_p128_p8", + "name": "vreinterpretq_p128_s8", "arguments": [ - "poly8x16_t a" + "int8x16_t a" ], "return_type": { "value": "poly128_t" @@ -281934,9 +285267,9 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpretq_p128_s16", + "name": "vreinterpretq_p128_u16", "arguments": [ - "int16x8_t a" + "uint16x8_t a" ], "return_type": { "value": "poly128_t" @@ -281958,9 +285291,9 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpretq_p128_s32", + "name": "vreinterpretq_p128_u32", "arguments": [ - "int32x4_t a" + "uint32x4_t a" ], "return_type": { "value": "poly128_t" @@ -281982,9 +285315,9 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpretq_p128_s64", + "name": "vreinterpretq_p128_u64", "arguments": [ - "int64x2_t a" + "uint64x2_t a" ], "return_type": { "value": "poly128_t" @@ -282006,9 +285339,9 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpretq_p128_s8", + "name": "vreinterpretq_p128_u8", "arguments": [ - "int8x16_t a" + "uint8x16_t a" ], "return_type": { "value": "poly128_t" @@ -282030,12 +285363,12 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpretq_p128_u16", + "name": "vreinterpretq_p16_bf16", "arguments": [ - "uint16x8_t a" + "bfloat16x8_t a" ], "return_type": { - "value": "poly128_t" + "value": "poly16x8_t" }, "Arguments_Preparation": { "a": { @@ -282052,78 +285385,6 @@ ] ] }, - { - "SIMD_ISA": "Neon", - "name": "vreinterpretq_p128_u32", - "arguments": [ - "uint32x4_t a" - ], - "return_type": { - "value": "poly128_t" - }, - "Arguments_Preparation": { - "a": { - "register": "Vd.4S" - } - }, - "Architectures": [ - "A32", - "A64" - ], - "instructions": [ - [ - "NOP" - ] - ] - }, - { - "SIMD_ISA": "Neon", - "name": "vreinterpretq_p128_u64", - "arguments": [ - "uint64x2_t a" - ], - "return_type": { - "value": "poly128_t" - }, - "Arguments_Preparation": { - "a": { - "register": "Vd.1Q" - } - }, - "Architectures": [ - "A32", - "A64" - ], - "instructions": [ - [ - "NOP" - ] - ] - }, - { - "SIMD_ISA": "Neon", - "name": "vreinterpretq_p128_u8", - "arguments": [ - "uint8x16_t a" - ], - "return_type": { - "value": "poly128_t" - }, - "Arguments_Preparation": { - "a": { - "register": "Vd.16B" - } - }, - "Architectures": [ - "A32", - "A64" - ], - "instructions": [ - [ - "NOP" - ] - ] - }, { "SIMD_ISA": "Neon", "name": "vreinterpretq_p16_f16", @@ -282470,6 +285731,30 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpretq_p64_bf16", + "arguments": [ + "bfloat16x8_t a" + ], + "return_type": { + "value": "poly64x2_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.8H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vreinterpretq_p64_f16", @@ -282781,6 +286066,30 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpretq_p8_bf16", + "arguments": [ + "bfloat16x8_t a" + ], + "return_type": { + "value": "poly8x16_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.8H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vreinterpretq_p8_f16", @@ -283127,6 +286436,30 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpretq_s16_bf16", + "arguments": [ + "bfloat16x8_t a" + ], + "return_type": { + "value": "int16x8_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.8H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vreinterpretq_s16_f16", @@ -283473,6 +286806,30 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpretq_s32_bf16", + "arguments": [ + "bfloat16x8_t a" + ], + "return_type": { + "value": "int32x4_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.8H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vreinterpretq_s32_f16", @@ -283646,9 +287003,84 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpretq_s32_s16", + "name": "vreinterpretq_s32_s16", + "arguments": [ + "int16x8_t a" + ], + "return_type": { + "value": "int32x4_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.8H" + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpretq_s32_s64", + "arguments": [ + "int64x2_t a" + ], + "return_type": { + "value": "int32x4_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.2D" + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpretq_s32_s8", + "arguments": [ + "int8x16_t a" + ], + "return_type": { + "value": "int32x4_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.16B" + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpretq_s32_u16", "arguments": [ - "int16x8_t a" + "uint16x8_t a" ], "return_type": { "value": "int32x4_t" @@ -283671,66 +287103,16 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpretq_s32_s64", - "arguments": [ - "int64x2_t a" - ], - "return_type": { - "value": "int32x4_t" - }, - "Arguments_Preparation": { - "a": { - "register": "Vd.2D" - } - }, - "Architectures": [ - "v7", - "A32", - "A64" - ], - "instructions": [ - [ - "NOP" - ] - ] - }, - { - "SIMD_ISA": "Neon", - "name": "vreinterpretq_s32_s8", - "arguments": [ - "int8x16_t a" - ], - "return_type": { - "value": "int32x4_t" - }, - "Arguments_Preparation": { - "a": { - "register": "Vd.16B" - } - }, - "Architectures": [ - "v7", - "A32", - "A64" - ], - "instructions": [ - [ - "NOP" - ] - ] - }, - { - "SIMD_ISA": "Neon", - "name": "vreinterpretq_s32_u16", + "name": "vreinterpretq_s32_u32", "arguments": [ - "uint16x8_t a" + "uint32x4_t a" ], "return_type": { "value": "int32x4_t" }, "Arguments_Preparation": { "a": { - "register": "Vd.8H" + "register": "Vd.4S" } }, "Architectures": [ @@ -283746,16 +287128,16 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpretq_s32_u32", + "name": "vreinterpretq_s32_u64", "arguments": [ - "uint32x4_t a" + "uint64x2_t a" ], "return_type": { "value": "int32x4_t" }, "Arguments_Preparation": { "a": { - "register": "Vd.4S" + "register": "Vd.2D" } }, "Architectures": [ @@ -283771,16 +287153,16 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpretq_s32_u64", + "name": "vreinterpretq_s32_u8", "arguments": [ - "uint64x2_t a" + "uint8x16_t a" ], "return_type": { "value": "int32x4_t" }, "Arguments_Preparation": { "a": { - "register": "Vd.2D" + "register": "Vd.16B" } }, "Architectures": [ @@ -283796,20 +287178,19 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpretq_s32_u8", + "name": "vreinterpretq_s64_bf16", "arguments": [ - "uint8x16_t a" + "bfloat16x8_t a" ], "return_type": { - "value": "int32x4_t" + "value": "int64x2_t" }, "Arguments_Preparation": { "a": { - "register": "Vd.16B" + "register": "Vd.8H" } }, "Architectures": [ - "v7", "A32", "A64" ], @@ -284165,6 +287546,30 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpretq_s8_bf16", + "arguments": [ + "bfloat16x8_t a" + ], + "return_type": { + "value": "int8x16_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.8H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vreinterpretq_s8_f16", @@ -284511,6 +287916,30 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpretq_u16_bf16", + "arguments": [ + "bfloat16x8_t a" + ], + "return_type": { + "value": "uint16x8_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.8H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vreinterpretq_u16_f16", @@ -284857,6 +288286,30 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpretq_u32_bf16", + "arguments": [ + "bfloat16x8_t a" + ], + "return_type": { + "value": "uint32x4_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.8H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vreinterpretq_u32_f16", @@ -285203,6 +288656,30 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpretq_u64_bf16", + "arguments": [ + "bfloat16x8_t a" + ], + "return_type": { + "value": "uint64x2_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.8H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vreinterpretq_u64_f16", @@ -285376,9 +288853,109 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpretq_u64_s16", + "name": "vreinterpretq_u64_s16", + "arguments": [ + "int16x8_t a" + ], + "return_type": { + "value": "uint64x2_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.8H" + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpretq_u64_s32", + "arguments": [ + "int32x4_t a" + ], + "return_type": { + "value": "uint64x2_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.4S" + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpretq_u64_s64", + "arguments": [ + "int64x2_t a" + ], + "return_type": { + "value": "uint64x2_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.2D" + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpretq_u64_s8", + "arguments": [ + "int8x16_t a" + ], + "return_type": { + "value": "uint64x2_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.16B" + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "NOP" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vreinterpretq_u64_u16", "arguments": [ - "int16x8_t a" + "uint16x8_t a" ], "return_type": { "value": "uint64x2_t" @@ -285401,9 +288978,9 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpretq_u64_s32", + "name": "vreinterpretq_u64_u32", "arguments": [ - "int32x4_t a" + "uint32x4_t a" ], "return_type": { "value": "uint64x2_t" @@ -285426,34 +289003,9 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpretq_u64_s64", - "arguments": [ - "int64x2_t a" - ], - "return_type": { - "value": "uint64x2_t" - }, - "Arguments_Preparation": { - "a": { - "register": "Vd.2D" - } - }, - "Architectures": [ - "v7", - "A32", - "A64" - ], - "instructions": [ - [ - "NOP" - ] - ] - }, - { - "SIMD_ISA": "Neon", - "name": "vreinterpretq_u64_s8", + "name": "vreinterpretq_u64_u8", "arguments": [ - "int8x16_t a" + "uint8x16_t a" ], "return_type": { "value": "uint64x2_t" @@ -285476,12 +289028,12 @@ }, { "SIMD_ISA": "Neon", - "name": "vreinterpretq_u64_u16", + "name": "vreinterpretq_u8_bf16", "arguments": [ - "uint16x8_t a" + "bfloat16x8_t a" ], "return_type": { - "value": "uint64x2_t" + "value": "uint8x16_t" }, "Arguments_Preparation": { "a": { @@ -285489,57 +289041,6 @@ } }, "Architectures": [ - "v7", - "A32", - "A64" - ], - "instructions": [ - [ - "NOP" - ] - ] - }, - { - "SIMD_ISA": "Neon", - "name": "vreinterpretq_u64_u32", - "arguments": [ - "uint32x4_t a" - ], - "return_type": { - "value": "uint64x2_t" - }, - "Arguments_Preparation": { - "a": { - "register": "Vd.4S" - } - }, - "Architectures": [ - "v7", - "A32", - "A64" - ], - "instructions": [ - [ - "NOP" - ] - ] - }, - { - "SIMD_ISA": "Neon", - "name": "vreinterpretq_u64_u8", - "arguments": [ - "uint8x16_t a" - ], - "return_type": { - "value": "uint64x2_t" - }, - "Arguments_Preparation": { - "a": { - "register": "Vd.16B" - } - }, - "Architectures": [ - "v7", "A32", "A64" ], @@ -291788,6 +295289,39 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vset_lane_bf16", + "arguments": [ + "bfloat16_t a", + "bfloat16x4_t v", + "const int lane" + ], + "return_type": { + "value": "bfloat16x4_t" + }, + "Arguments_Preparation": { + "a": { + "register": "VnH" + }, + "lane": { + "minimum": 0, + "maximum": 3 + }, + "v": { + "register": "Vd.4H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "INS" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vset_lane_f16", @@ -292093,14 +295627,150 @@ }, { "SIMD_ISA": "Neon", - "name": "vset_lane_s8", + "name": "vset_lane_s8", + "arguments": [ + "int8_t a", + "int8x8_t v", + "const int lane" + ], + "return_type": { + "value": "int8x8_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Rn" + }, + "lane": { + "minimum": 0, + "maximum": 7 + }, + "v": { + "register": "Vd.8B" + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "MOV" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vset_lane_u16", + "arguments": [ + "uint16_t a", + "uint16x4_t v", + "const int lane" + ], + "return_type": { + "value": "uint16x4_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Rn" + }, + "lane": { + "minimum": 0, + "maximum": 3 + }, + "v": { + "register": "Vd.4H" + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "MOV" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vset_lane_u32", + "arguments": [ + "uint32_t a", + "uint32x2_t v", + "const int lane" + ], + "return_type": { + "value": "uint32x2_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Rn" + }, + "lane": { + "minimum": 0, + "maximum": 1 + }, + "v": { + "register": "Vd.2S" + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "MOV" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vset_lane_u64", + "arguments": [ + "uint64_t a", + "uint64x1_t v", + "const int lane" + ], + "return_type": { + "value": "uint64x1_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Rn" + }, + "lane": { + "minimum": 0, + "maximum": 0 + }, + "v": { + "register": "Vd.1D" + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "MOV" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vset_lane_u8", "arguments": [ - "int8_t a", - "int8x8_t v", + "uint8_t a", + "uint8x8_t v", "const int lane" ], "return_type": { - "value": "int8x8_t" + "value": "uint8x8_t" }, "Arguments_Preparation": { "a": { @@ -292127,137 +295797,34 @@ }, { "SIMD_ISA": "Neon", - "name": "vset_lane_u16", + "name": "vsetq_lane_bf16", "arguments": [ - "uint16_t a", - "uint16x4_t v", + "bfloat16_t a", + "bfloat16x8_t v", "const int lane" ], "return_type": { - "value": "uint16x4_t" + "value": "bfloat16x8_t" }, "Arguments_Preparation": { "a": { - "register": "Rn" - }, - "lane": { - "minimum": 0, - "maximum": 3 - }, - "v": { - "register": "Vd.4H" - } - }, - "Architectures": [ - "v7", - "A32", - "A64" - ], - "instructions": [ - [ - "MOV" - ] - ] - }, - { - "SIMD_ISA": "Neon", - "name": "vset_lane_u32", - "arguments": [ - "uint32_t a", - "uint32x2_t v", - "const int lane" - ], - "return_type": { - "value": "uint32x2_t" - }, - "Arguments_Preparation": { - "a": { - "register": "Rn" - }, - "lane": { - "minimum": 0, - "maximum": 1 - }, - "v": { - "register": "Vd.2S" - } - }, - "Architectures": [ - "v7", - "A32", - "A64" - ], - "instructions": [ - [ - "MOV" - ] - ] - }, - { - "SIMD_ISA": "Neon", - "name": "vset_lane_u64", - "arguments": [ - "uint64_t a", - "uint64x1_t v", - "const int lane" - ], - "return_type": { - "value": "uint64x1_t" - }, - "Arguments_Preparation": { - "a": { - "register": "Rn" - }, - "lane": { - "minimum": 0, - "maximum": 0 - }, - "v": { - "register": "Vd.1D" - } - }, - "Architectures": [ - "v7", - "A32", - "A64" - ], - "instructions": [ - [ - "MOV" - ] - ] - }, - { - "SIMD_ISA": "Neon", - "name": "vset_lane_u8", - "arguments": [ - "uint8_t a", - "uint8x8_t v", - "const int lane" - ], - "return_type": { - "value": "uint8x8_t" - }, - "Arguments_Preparation": { - "a": { - "register": "Rn" + "register": "VnH" }, "lane": { "minimum": 0, "maximum": 7 }, "v": { - "register": "Vd.8B" + "register": "Vd.8H" } }, "Architectures": [ - "v7", "A32", "A64" ], "instructions": [ [ - "MOV" + "INS" ] ] }, @@ -298339,137 +301906,267 @@ }, { "SIMD_ISA": "Neon", - "name": "vsriq_n_u16", + "name": "vsriq_n_u16", + "arguments": [ + "uint16x8_t a", + "uint16x8_t b", + "const int n" + ], + "return_type": { + "value": "uint16x8_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.8H" + }, + "b": { + "register": "Vn.8H" + }, + "n": { + "minimum": 1, + "maximum": 16 + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "SRI" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vsriq_n_u32", + "arguments": [ + "uint32x4_t a", + "uint32x4_t b", + "const int n" + ], + "return_type": { + "value": "uint32x4_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.4S" + }, + "b": { + "register": "Vn.4S" + }, + "n": { + "minimum": 1, + "maximum": 32 + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "SRI" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vsriq_n_u64", + "arguments": [ + "uint64x2_t a", + "uint64x2_t b", + "const int n" + ], + "return_type": { + "value": "uint64x2_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.2D" + }, + "b": { + "register": "Vn.2D" + }, + "n": { + "minimum": 1, + "maximum": 64 + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "SRI" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vsriq_n_u8", + "arguments": [ + "uint8x16_t a", + "uint8x16_t b", + "const int n" + ], + "return_type": { + "value": "uint8x16_t" + }, + "Arguments_Preparation": { + "a": { + "register": "Vd.16B" + }, + "b": { + "register": "Vn.16B" + }, + "n": { + "minimum": 1, + "maximum": 8 + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "SRI" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vst1_bf16", "arguments": [ - "uint16x8_t a", - "uint16x8_t b", - "const int n" + "bfloat16_t * ptr", + "bfloat16x4_t val" ], "return_type": { - "value": "uint16x8_t" + "value": "void" }, "Arguments_Preparation": { - "a": { - "register": "Vd.8H" - }, - "b": { - "register": "Vn.8H" + "ptr": { + "register": "Xn" }, - "n": { - "minimum": 1, - "maximum": 16 + "val": { + "register": "Vt.4H" } }, "Architectures": [ - "v7", "A32", "A64" ], "instructions": [ [ - "SRI" + "ST1" ] ] }, { "SIMD_ISA": "Neon", - "name": "vsriq_n_u32", + "name": "vst1_bf16_x2", "arguments": [ - "uint32x4_t a", - "uint32x4_t b", - "const int n" + "bfloat16_t * ptr", + "bfloat16x4x2_t val" ], "return_type": { - "value": "uint32x4_t" + "value": "void" }, "Arguments_Preparation": { - "a": { - "register": "Vd.4S" + "ptr": { + "register": "Xn" }, - "b": { - "register": "Vn.4S" + "val.val[0]": { + "register": "Vt.4H" }, - "n": { - "minimum": 1, - "maximum": 32 + "val.val[1]": { + "register": "Vt2.4H" } }, "Architectures": [ - "v7", "A32", "A64" ], "instructions": [ [ - "SRI" + "ST1" ] ] }, { "SIMD_ISA": "Neon", - "name": "vsriq_n_u64", + "name": "vst1_bf16_x3", "arguments": [ - "uint64x2_t a", - "uint64x2_t b", - "const int n" + "bfloat16_t * ptr", + "bfloat16x4x3_t val" ], "return_type": { - "value": "uint64x2_t" + "value": "void" }, "Arguments_Preparation": { - "a": { - "register": "Vd.2D" + "ptr": { + "register": "Xn" }, - "b": { - "register": "Vn.2D" + "val.val[0]": { + "register": "Vt.4H" }, - "n": { - "minimum": 1, - "maximum": 64 + "val.val[1]": { + "register": "Vt2.4H" + }, + "val.val[2]": { + "register": "Vt3.4H" } }, "Architectures": [ - "v7", "A32", "A64" ], "instructions": [ [ - "SRI" + "ST1" ] ] }, { "SIMD_ISA": "Neon", - "name": "vsriq_n_u8", + "name": "vst1_bf16_x4", "arguments": [ - "uint8x16_t a", - "uint8x16_t b", - "const int n" + "bfloat16_t * ptr", + "bfloat16x4x4_t val" ], "return_type": { - "value": "uint8x16_t" + "value": "void" }, "Arguments_Preparation": { - "a": { - "register": "Vd.16B" + "ptr": { + "register": "Xn" }, - "b": { - "register": "Vn.16B" + "val.val[0]": { + "register": "Vt.4H" }, - "n": { - "minimum": 1, - "maximum": 8 + "val.val[1]": { + "register": "Vt2.4H" + }, + "val.val[2]": { + "register": "Vt3.4H" + }, + "val.val[3]": { + "register": "Vt4.4H" } }, "Architectures": [ - "v7", "A32", "A64" ], "instructions": [ [ - "SRI" + "ST1" ] ] }, @@ -298867,6 +302564,39 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vst1_lane_bf16", + "arguments": [ + "bfloat16_t * ptr", + "bfloat16x4_t val", + "const int lane" + ], + "return_type": { + "value": "void" + }, + "Arguments_Preparation": { + "lane": { + "minimum": 0, + "maximum": 3 + }, + "ptr": { + "register": "Xn" + }, + "val": { + "register": "Vt.4H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "ST1" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vst1_lane_f16", @@ -300846,6 +304576,136 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vst1q_bf16", + "arguments": [ + "bfloat16_t * ptr", + "bfloat16x8_t val" + ], + "return_type": { + "value": "void" + }, + "Arguments_Preparation": { + "ptr": { + "register": "Xn" + }, + "val": { + "register": "Vt.8H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "ST1" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vst1q_bf16_x2", + "arguments": [ + "bfloat16_t * ptr", + "bfloat16x8x2_t val" + ], + "return_type": { + "value": "void" + }, + "Arguments_Preparation": { + "ptr": { + "register": "Xn" + }, + "val.val[0]": { + "register": "Vt.8H" + }, + "val.val[1]": { + "register": "Vt2.8H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "ST1" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vst1q_bf16_x3", + "arguments": [ + "bfloat16_t * ptr", + "bfloat16x8x3_t val" + ], + "return_type": { + "value": "void" + }, + "Arguments_Preparation": { + "ptr": { + "register": "Xn" + }, + "val.val[0]": { + "register": "Vt.8H" + }, + "val.val[1]": { + "register": "Vt2.8H" + }, + "val.val[2]": { + "register": "Vt3.8H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "ST1" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vst1q_bf16_x4", + "arguments": [ + "bfloat16_t * ptr", + "bfloat16x8x4_t val" + ], + "return_type": { + "value": "void" + }, + "Arguments_Preparation": { + "ptr": { + "register": "Xn" + }, + "val.val[0]": { + "register": "Vt.8H" + }, + "val.val[1]": { + "register": "Vt2.8H" + }, + "val.val[2]": { + "register": "Vt3.8H" + }, + "val.val[3]": { + "register": "Vt4.8H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "ST1" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vst1q_f16", @@ -301240,6 +305100,39 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vst1q_lane_bf16", + "arguments": [ + "bfloat16_t * ptr", + "bfloat16x8_t val", + "const int lane" + ], + "return_type": { + "value": "void" + }, + "Arguments_Preparation": { + "lane": { + "minimum": 0, + "maximum": 7 + }, + "ptr": { + "register": "Xn" + }, + "val": { + "register": "Vt.8H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "ST1" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vst1q_lane_f16", @@ -303220,6 +307113,37 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vst2_bf16", + "arguments": [ + "bfloat16_t * ptr", + "bfloat16x4x2_t val" + ], + "return_type": { + "value": "void" + }, + "Arguments_Preparation": { + "ptr": { + "register": "Xn" + }, + "val.val[0]": { + "register": "Vt.4H" + }, + "val.val[1]": { + "register": "Vt2.4H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "ST2" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vst2_f16", @@ -303314,6 +307238,42 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vst2_lane_bf16", + "arguments": [ + "bfloat16_t * ptr", + "bfloat16x4x2_t val", + "const int lane" + ], + "return_type": { + "value": "void" + }, + "Arguments_Preparation": { + "lane": { + "minimum": 0, + "maximum": 3 + }, + "ptr": { + "register": "Xn" + }, + "val.val[0]": { + "register": "Vt.4H" + }, + "val.val[1]": { + "register": "Vt2.4H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "ST2" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vst2_lane_f16", @@ -304175,6 +308135,37 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vst2q_bf16", + "arguments": [ + "bfloat16_t * ptr", + "bfloat16x8x2_t val" + ], + "return_type": { + "value": "void" + }, + "Arguments_Preparation": { + "ptr": { + "register": "Xn" + }, + "val.val[0]": { + "register": "Vt.8H" + }, + "val.val[1]": { + "register": "Vt2.8H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "ST2" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vst2q_f16", @@ -304269,6 +308260,42 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vst2q_lane_bf16", + "arguments": [ + "bfloat16_t * ptr", + "bfloat16x8x2_t val", + "const int lane" + ], + "return_type": { + "value": "void" + }, + "Arguments_Preparation": { + "lane": { + "minimum": 0, + "maximum": 7 + }, + "ptr": { + "register": "Xn" + }, + "val.val[0]": { + "register": "Vt.8H" + }, + "val.val[1]": { + "register": "Vt2.8H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "ST2" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vst2q_lane_f16", @@ -305119,6 +309146,40 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vst3_bf16", + "arguments": [ + "bfloat16_t * ptr", + "bfloat16x4x3_t val" + ], + "return_type": { + "value": "void" + }, + "Arguments_Preparation": { + "ptr": { + "register": "Xn" + }, + "val.val[0]": { + "register": "Vt.4H" + }, + "val.val[1]": { + "register": "Vt2.4H" + }, + "val.val[2]": { + "register": "Vt3.4H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "ST3" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vst3_f16", @@ -305222,6 +309283,45 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vst3_lane_bf16", + "arguments": [ + "bfloat16_t * ptr", + "bfloat16x4x3_t val", + "const int lane" + ], + "return_type": { + "value": "void" + }, + "Arguments_Preparation": { + "lane": { + "minimum": 0, + "maximum": 3 + }, + "ptr": { + "register": "Xn" + }, + "val.val[0]": { + "register": "Vt.4H" + }, + "val.val[1]": { + "register": "Vt2.4H" + }, + "val.val[2]": { + "register": "Vt3.4H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "ST3" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vst3_lane_f16", @@ -306020,10 +310120,150 @@ }, { "SIMD_ISA": "Neon", - "name": "vst3_u16", + "name": "vst3_u16", + "arguments": [ + "uint16_t * ptr", + "uint16x4x3_t val" + ], + "return_type": { + "value": "void" + }, + "Arguments_Preparation": { + "ptr": { + "register": "Xn" + }, + "val.val[0]": { + "register": "Vt.4H" + }, + "val.val[1]": { + "register": "Vt2.4H" + }, + "val.val[2]": { + "register": "Vt3.4H" + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "ST3" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vst3_u32", + "arguments": [ + "uint32_t * ptr", + "uint32x2x3_t val" + ], + "return_type": { + "value": "void" + }, + "Arguments_Preparation": { + "ptr": { + "register": "Xn" + }, + "val.val[0]": { + "register": "Vt.2S" + }, + "val.val[1]": { + "register": "Vt2.2S" + }, + "val.val[2]": { + "register": "Vt3.2S" + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "ST3" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vst3_u64", + "arguments": [ + "uint64_t * ptr", + "uint64x1x3_t val" + ], + "return_type": { + "value": "void" + }, + "Arguments_Preparation": { + "ptr": { + "register": "Xn" + }, + "val.val[0]": { + "register": "Vt.1D" + }, + "val.val[1]": { + "register": "Vt2.1D" + }, + "val.val[2]": { + "register": "Vt3.1D" + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "ST1" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vst3_u8", + "arguments": [ + "uint8_t * ptr", + "uint8x8x3_t val" + ], + "return_type": { + "value": "void" + }, + "Arguments_Preparation": { + "ptr": { + "register": "Xn" + }, + "val.val[0]": { + "register": "Vt.8B" + }, + "val.val[1]": { + "register": "Vt2.8B" + }, + "val.val[2]": { + "register": "Vt3.8B" + } + }, + "Architectures": [ + "v7", + "A32", + "A64" + ], + "instructions": [ + [ + "ST3" + ] + ] + }, + { + "SIMD_ISA": "Neon", + "name": "vst3q_bf16", "arguments": [ - "uint16_t * ptr", - "uint16x4x3_t val" + "bfloat16_t * ptr", + "bfloat16x8x3_t val" ], "return_type": { "value": "void" @@ -306033,17 +310273,16 @@ "register": "Xn" }, "val.val[0]": { - "register": "Vt.4H" + "register": "Vt.8H" }, "val.val[1]": { - "register": "Vt2.4H" + "register": "Vt2.8H" }, "val.val[2]": { - "register": "Vt3.4H" + "register": "Vt3.8H" } }, "Architectures": [ - "v7", "A32", "A64" ], @@ -306055,10 +310294,10 @@ }, { "SIMD_ISA": "Neon", - "name": "vst3_u32", + "name": "vst3q_f16", "arguments": [ - "uint32_t * ptr", - "uint32x2x3_t val" + "float16_t * ptr", + "float16x8x3_t val" ], "return_type": { "value": "void" @@ -306068,13 +310307,13 @@ "register": "Xn" }, "val.val[0]": { - "register": "Vt.2S" + "register": "Vt.8H" }, "val.val[1]": { - "register": "Vt2.2S" + "register": "Vt2.8H" }, "val.val[2]": { - "register": "Vt3.2S" + "register": "Vt3.8H" } }, "Architectures": [ @@ -306090,10 +310329,10 @@ }, { "SIMD_ISA": "Neon", - "name": "vst3_u64", + "name": "vst3q_f32", "arguments": [ - "uint64_t * ptr", - "uint64x1x3_t val" + "float32_t * ptr", + "float32x4x3_t val" ], "return_type": { "value": "void" @@ -306103,13 +310342,13 @@ "register": "Xn" }, "val.val[0]": { - "register": "Vt.1D" + "register": "Vt.4S" }, "val.val[1]": { - "register": "Vt2.1D" + "register": "Vt2.4S" }, "val.val[2]": { - "register": "Vt3.1D" + "register": "Vt3.4S" } }, "Architectures": [ @@ -306119,16 +310358,16 @@ ], "instructions": [ [ - "ST1" + "ST3" ] ] }, { "SIMD_ISA": "Neon", - "name": "vst3_u8", + "name": "vst3q_f64", "arguments": [ - "uint8_t * ptr", - "uint8x8x3_t val" + "float64_t * ptr", + "float64x2x3_t val" ], "return_type": { "value": "void" @@ -306138,18 +310377,16 @@ "register": "Xn" }, "val.val[0]": { - "register": "Vt.8B" + "register": "Vt.2D" }, "val.val[1]": { - "register": "Vt2.8B" + "register": "Vt2.2D" }, "val.val[2]": { - "register": "Vt3.8B" + "register": "Vt3.2D" } }, "Architectures": [ - "v7", - "A32", "A64" ], "instructions": [ @@ -306160,15 +310397,20 @@ }, { "SIMD_ISA": "Neon", - "name": "vst3q_f16", + "name": "vst3q_lane_bf16", "arguments": [ - "float16_t * ptr", - "float16x8x3_t val" + "bfloat16_t * ptr", + "bfloat16x8x3_t val", + "const int lane" ], "return_type": { "value": "void" }, "Arguments_Preparation": { + "lane": { + "minimum": 0, + "maximum": 7 + }, "ptr": { "register": "Xn" }, @@ -306183,7 +310425,6 @@ } }, "Architectures": [ - "v7", "A32", "A64" ], @@ -306193,74 +310434,6 @@ ] ] }, - { - "SIMD_ISA": "Neon", - "name": "vst3q_f32", - "arguments": [ - "float32_t * ptr", - "float32x4x3_t val" - ], - "return_type": { - "value": "void" - }, - "Arguments_Preparation": { - "ptr": { - "register": "Xn" - }, - "val.val[0]": { - "register": "Vt.4S" - }, - "val.val[1]": { - "register": "Vt2.4S" - }, - "val.val[2]": { - "register": "Vt3.4S" - } - }, - "Architectures": [ - "v7", - "A32", - "A64" - ], - "instructions": [ - [ - "ST3" - ] - ] - }, - { - "SIMD_ISA": "Neon", - "name": "vst3q_f64", - "arguments": [ - "float64_t * ptr", - "float64x2x3_t val" - ], - "return_type": { - "value": "void" - }, - "Arguments_Preparation": { - "ptr": { - "register": "Xn" - }, - "val.val[0]": { - "register": "Vt.2D" - }, - "val.val[1]": { - "register": "Vt2.2D" - }, - "val.val[2]": { - "register": "Vt3.2D" - } - }, - "Architectures": [ - "A64" - ], - "instructions": [ - [ - "ST3" - ] - ] - }, { "SIMD_ISA": "Neon", "name": "vst3q_lane_f16", @@ -307192,6 +311365,43 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vst4_bf16", + "arguments": [ + "bfloat16_t * ptr", + "bfloat16x4x4_t val" + ], + "return_type": { + "value": "void" + }, + "Arguments_Preparation": { + "ptr": { + "register": "Xn" + }, + "val.val[0]": { + "register": "Vt.4H" + }, + "val.val[1]": { + "register": "Vt2.4H" + }, + "val.val[2]": { + "register": "Vt3.4H" + }, + "val.val[3]": { + "register": "Vt4.4H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "ST4" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vst4_f16", @@ -307304,6 +311514,48 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vst4_lane_bf16", + "arguments": [ + "bfloat16_t * ptr", + "bfloat16x4x4_t val", + "const int lane" + ], + "return_type": { + "value": "void" + }, + "Arguments_Preparation": { + "lane": { + "minimum": 0, + "maximum": 3 + }, + "ptr": { + "register": "Xn" + }, + "val.val[0]": { + "register": "Vt.4H" + }, + "val.val[1]": { + "register": "Vt2.4H" + }, + "val.val[2]": { + "register": "Vt3.4H" + }, + "val.val[3]": { + "register": "Vt4.4H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "ST4" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vst4_lane_f16", @@ -308315,6 +312567,43 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vst4q_bf16", + "arguments": [ + "bfloat16_t * ptr", + "bfloat16x8x4_t val" + ], + "return_type": { + "value": "void" + }, + "Arguments_Preparation": { + "ptr": { + "register": "Xn" + }, + "val.val[0]": { + "register": "Vt.8H" + }, + "val.val[1]": { + "register": "Vt2.8H" + }, + "val.val[2]": { + "register": "Vt3.8H" + }, + "val.val[3]": { + "register": "Vt4.8H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "ST4" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vst4q_f16", @@ -308427,6 +312716,48 @@ ] ] }, + { + "SIMD_ISA": "Neon", + "name": "vst4q_lane_bf16", + "arguments": [ + "bfloat16_t * ptr", + "bfloat16x8x4_t val", + "const int lane" + ], + "return_type": { + "value": "void" + }, + "Arguments_Preparation": { + "lane": { + "minimum": 0, + "maximum": 7 + }, + "ptr": { + "register": "Xn" + }, + "val.val[0]": { + "register": "Vt.8H" + }, + "val.val[1]": { + "register": "Vt2.8H" + }, + "val.val[2]": { + "register": "Vt3.8H" + }, + "val.val[3]": { + "register": "Vt4.8H" + } + }, + "Architectures": [ + "A32", + "A64" + ], + "instructions": [ + [ + "ST4" + ] + ] + }, { "SIMD_ISA": "Neon", "name": "vst4q_lane_f16", From bf098d90b055da80808e0e26e37c545141c002a0 Mon Sep 17 00:00:00 2001 From: James Barford-Evans Date: Mon, 26 Oct 2026 13:43:50 +0000 Subject: [PATCH 11/43] add tracking issue number --- .../core_arch/src/aarch64/neon/generated.rs | 28 +- .../src/arm_shared/neon/generated.rs | 344 +++++++++--------- .../spec/neon/aarch64.spec.yml | 4 +- .../spec/neon/arm_shared.spec.yml | 4 +- 4 files changed, 190 insertions(+), 190 deletions(-) diff --git a/library/stdarch/crates/core_arch/src/aarch64/neon/generated.rs b/library/stdarch/crates/core_arch/src/aarch64/neon/generated.rs index 3f2d55a9feafa..72f65d0d14344 100644 --- a/library/stdarch/crates/core_arch/src/aarch64/neon/generated.rs +++ b/library/stdarch/crates/core_arch/src/aarch64/neon/generated.rs @@ -4611,7 +4611,7 @@ pub fn vcombine_f64(a: float64x1_t, b: float64x1_t) -> float64x2_t { #[rustc_legacy_const_generics(1, 3)] #[cfg(any(target_has_reliable_f16b, doc))] #[doc(cfg(target_has_reliable_f16b))] -#[unstable(feature = "stdarch_neon_bf16", issue = "none")] +#[unstable(feature = "stdarch_neon_bf16", issue = "164986")] pub fn vcopy_lane_bf16( a: bfloat16x4_t, b: bfloat16x4_t, @@ -4626,7 +4626,7 @@ pub fn vcopy_lane_bf16( #[rustc_legacy_const_generics(1, 3)] #[cfg(any(target_has_reliable_f16b, doc))] #[doc(cfg(target_has_reliable_f16b))] -#[unstable(feature = "stdarch_neon_bf16", issue = "none")] +#[unstable(feature = "stdarch_neon_bf16", issue = "164986")] pub fn vcopyq_lane_bf16( a: bfloat16x8_t, b: bfloat16x4_t, @@ -4848,7 +4848,7 @@ pub fn vcopy_lane_p64( #[rustc_legacy_const_generics(1, 3)] #[cfg(any(target_has_reliable_f16b, doc))] #[doc(cfg(target_has_reliable_f16b))] -#[unstable(feature = "stdarch_neon_bf16", issue = "none")] +#[unstable(feature = "stdarch_neon_bf16", issue = "164986")] pub fn vcopy_laneq_bf16( a: bfloat16x4_t, b: bfloat16x8_t, @@ -4863,7 +4863,7 @@ pub fn vcopy_laneq_bf16( #[rustc_legacy_const_generics(1, 3)] #[cfg(any(target_has_reliable_f16b, doc))] #[doc(cfg(target_has_reliable_f16b))] -#[unstable(feature = "stdarch_neon_bf16", issue = "none")] +#[unstable(feature = "stdarch_neon_bf16", issue = "164986")] pub fn vcopyq_laneq_bf16( a: bfloat16x8_t, b: bfloat16x8_t, @@ -11480,7 +11480,7 @@ pub unsafe fn vldap1q_lane_p64(ptr: *const p64, src: poly64x2_t #[rustc_legacy_const_generics(2)] #[cfg(any(target_has_reliable_f16b, doc))] #[doc(cfg(target_has_reliable_f16b))] -#[unstable(feature = "stdarch_neon_bf16", issue = "none")] +#[unstable(feature = "stdarch_neon_bf16", issue = "164986")] pub unsafe fn vluti2_lane_bf16(a: bfloat16x4_t, b: uint8x8_t) -> bfloat16x8_t { static_assert!(LANE >= 0 && LANE <= 3); unsafe extern "llvm-intrinsic" { @@ -11502,7 +11502,7 @@ pub unsafe fn vluti2_lane_bf16(a: bfloat16x4_t, b: uint8x8_t) - #[rustc_legacy_const_generics(2)] #[cfg(any(target_has_reliable_f16b, doc))] #[doc(cfg(target_has_reliable_f16b))] -#[unstable(feature = "stdarch_neon_bf16", issue = "none")] +#[unstable(feature = "stdarch_neon_bf16", issue = "164986")] pub unsafe fn vluti2q_lane_bf16(a: bfloat16x8_t, b: uint8x8_t) -> bfloat16x8_t { static_assert!(LANE >= 0 && LANE <= 3); unsafe extern "llvm-intrinsic" { @@ -11734,7 +11734,7 @@ pub unsafe fn vluti2q_lane_s16(a: int16x8_t, b: uint8x8_t) -> i #[rustc_legacy_const_generics(2)] #[cfg(any(target_has_reliable_f16b, doc))] #[doc(cfg(target_has_reliable_f16b))] -#[unstable(feature = "stdarch_neon_bf16", issue = "none")] +#[unstable(feature = "stdarch_neon_bf16", issue = "164986")] pub unsafe fn vluti2_laneq_bf16(a: bfloat16x4_t, b: uint8x16_t) -> bfloat16x8_t { static_assert!(LANE >= 0 && LANE <= 7); unsafe extern "llvm-intrinsic" { @@ -11756,7 +11756,7 @@ pub unsafe fn vluti2_laneq_bf16(a: bfloat16x4_t, b: uint8x16_t) #[rustc_legacy_const_generics(2)] #[cfg(any(target_has_reliable_f16b, doc))] #[doc(cfg(target_has_reliable_f16b))] -#[unstable(feature = "stdarch_neon_bf16", issue = "none")] +#[unstable(feature = "stdarch_neon_bf16", issue = "164986")] pub unsafe fn vluti2q_laneq_bf16(a: bfloat16x8_t, b: uint8x16_t) -> bfloat16x8_t { static_assert!(LANE >= 0 && LANE <= 7); unsafe extern "llvm-intrinsic" { @@ -11988,7 +11988,7 @@ pub unsafe fn vluti2q_laneq_s16(a: int16x8_t, b: uint8x16_t) - #[rustc_legacy_const_generics(2)] #[cfg(any(target_has_reliable_f16b, doc))] #[doc(cfg(target_has_reliable_f16b))] -#[unstable(feature = "stdarch_neon_bf16", issue = "none")] +#[unstable(feature = "stdarch_neon_bf16", issue = "164986")] pub unsafe fn vluti4q_lane_bf16_x2( a: bfloat16x8x2_t, b: uint8x8_t, @@ -12123,7 +12123,7 @@ pub unsafe fn vluti4q_lane_p8(a: poly8x16_t, b: uint8x8_t) -> p #[rustc_legacy_const_generics(2)] #[cfg(any(target_has_reliable_f16b, doc))] #[doc(cfg(target_has_reliable_f16b))] -#[unstable(feature = "stdarch_neon_bf16", issue = "none")] +#[unstable(feature = "stdarch_neon_bf16", issue = "164986")] pub unsafe fn vluti4q_laneq_bf16_x2( a: bfloat16x8x2_t, b: uint8x16_t, @@ -21400,7 +21400,7 @@ pub fn vrecpxh_f16(a: f16) -> f16 { #[target_feature(enable = "neon")] #[cfg(any(target_has_reliable_f16b, doc))] #[doc(cfg(target_has_reliable_f16b))] -#[unstable(feature = "stdarch_neon_bf16", issue = "none")] +#[unstable(feature = "stdarch_neon_bf16", issue = "164986")] #[cfg(not(target_arch = "arm64ec"))] #[cfg_attr(test, assert_instr(nop))] pub fn vreinterpret_bf16_f64(a: float64x1_t) -> bfloat16x4_t { @@ -21412,7 +21412,7 @@ pub fn vreinterpret_bf16_f64(a: float64x1_t) -> bfloat16x4_t { #[target_feature(enable = "neon")] #[cfg(any(target_has_reliable_f16b, doc))] #[doc(cfg(target_has_reliable_f16b))] -#[unstable(feature = "stdarch_neon_bf16", issue = "none")] +#[unstable(feature = "stdarch_neon_bf16", issue = "164986")] #[cfg(not(target_arch = "arm64ec"))] #[cfg_attr(test, assert_instr(nop))] pub fn vreinterpretq_bf16_f64(a: float64x2_t) -> bfloat16x8_t { @@ -21424,7 +21424,7 @@ pub fn vreinterpretq_bf16_f64(a: float64x2_t) -> bfloat16x8_t { #[target_feature(enable = "neon")] #[cfg(any(target_has_reliable_f16b, doc))] #[doc(cfg(target_has_reliable_f16b))] -#[unstable(feature = "stdarch_neon_bf16", issue = "none")] +#[unstable(feature = "stdarch_neon_bf16", issue = "164986")] #[cfg(not(target_arch = "arm64ec"))] #[cfg_attr(test, assert_instr(nop))] pub fn vreinterpret_f64_bf16(a: bfloat16x4_t) -> float64x1_t { @@ -21436,7 +21436,7 @@ pub fn vreinterpret_f64_bf16(a: bfloat16x4_t) -> float64x1_t { #[target_feature(enable = "neon")] #[cfg(any(target_has_reliable_f16b, doc))] #[doc(cfg(target_has_reliable_f16b))] -#[unstable(feature = "stdarch_neon_bf16", issue = "none")] +#[unstable(feature = "stdarch_neon_bf16", issue = "164986")] #[cfg(not(target_arch = "arm64ec"))] #[cfg_attr(test, assert_instr(nop))] pub fn vreinterpretq_f64_bf16(a: bfloat16x8_t) -> float64x2_t { diff --git a/library/stdarch/crates/core_arch/src/arm_shared/neon/generated.rs b/library/stdarch/crates/core_arch/src/arm_shared/neon/generated.rs index 684f4c5a79d93..15bc14228c959 100644 --- a/library/stdarch/crates/core_arch/src/arm_shared/neon/generated.rs +++ b/library/stdarch/crates/core_arch/src/arm_shared/neon/generated.rs @@ -3762,7 +3762,7 @@ pub fn vandq_u64(a: uint64x2_t, b: uint64x2_t) -> uint64x2_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -3797,7 +3797,7 @@ pub fn vbfdot_f32(a: float32x2_t, b: bfloat16x4_t, c: bfloat16x4_t) -> float32x2 #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -3832,7 +3832,7 @@ pub fn vbfdotq_f32(a: float32x4_t, b: bfloat16x8_t, c: bfloat16x8_t) -> float32x #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -3868,7 +3868,7 @@ pub fn vbfdot_lane_f32( #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -3904,7 +3904,7 @@ pub fn vbfdotq_lane_f32( #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -3940,7 +3940,7 @@ pub fn vbfdot_laneq_f32( #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -3977,7 +3977,7 @@ pub fn vbfdotq_laneq_f32( #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -4013,7 +4013,7 @@ pub fn vbfmlalbq_f32(a: float32x4_t, b: bfloat16x8_t, c: bfloat16x8_t) -> float3 #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -4054,7 +4054,7 @@ pub fn vbfmlalbq_f32(a: float32x4_t, b: bfloat16x8_t, c: bfloat16x8_t) -> float3 #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -4089,7 +4089,7 @@ pub fn vbfmlalbq_lane_f32( #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -4125,7 +4125,7 @@ pub fn vbfmlalbq_laneq_f32( #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -4161,7 +4161,7 @@ pub fn vbfmlaltq_f32(a: float32x4_t, b: bfloat16x8_t, c: bfloat16x8_t) -> float3 #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -4202,7 +4202,7 @@ pub fn vbfmlaltq_f32(a: float32x4_t, b: bfloat16x8_t, c: bfloat16x8_t) -> float3 #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -4237,7 +4237,7 @@ pub fn vbfmlaltq_lane_f32( #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -4273,7 +4273,7 @@ pub fn vbfmlaltq_laneq_f32( #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -4309,7 +4309,7 @@ pub fn vbfmmlaq_f32(a: float32x4_t, b: bfloat16x8_t, c: bfloat16x8_t) -> float32 #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -8355,7 +8355,7 @@ pub fn vcntq_p8(a: poly8x16_t) -> poly8x16_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -8379,7 +8379,7 @@ pub fn vcombine_bf16(a: bfloat16x4_t, b: bfloat16x4_t) -> bfloat16x8_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -8955,7 +8955,7 @@ pub fn vcombine_p64(a: poly64x1_t, b: poly64x1_t) -> poly64x2_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -9253,7 +9253,7 @@ pub fn vcreate_p64(a: u64) -> poly64x1_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -9276,7 +9276,7 @@ pub fn vcvt_bf16_f32(a: float32x4_t) -> bfloat16x4_t { #[target_feature(enable = "neon,bf16")] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg(not(target_arch = "arm"))] #[cfg_attr( @@ -9406,7 +9406,7 @@ pub fn vcvtq_f16_u16(a: uint16x8_t) -> float16x8_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -10327,7 +10327,7 @@ pub fn vcvtq_u32_f32(a: float32x4_t) -> uint32x4_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -10350,7 +10350,7 @@ pub fn vcvtah_f32_bf16(a: bfloat16_t) -> f32 { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -10387,7 +10387,7 @@ pub fn vcvth_bf16_f32(a: f32) -> bfloat16_t { #[target_feature(enable = "neon,bf16")] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -10427,7 +10427,7 @@ pub unsafe fn vcvtq_high_bf16_f32(_inactive: bfloat16x8_t, a: float32x4_t) -> bf #[target_feature(enable = "neon,bf16")] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -10470,7 +10470,7 @@ pub unsafe fn vcvtq_high_bf16_f32(_inactive: bfloat16x8_t, a: float32x4_t) -> bf #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -10496,7 +10496,7 @@ pub unsafe fn vcvtq_high_bf16_f32(_inactive: bfloat16x8_t, a: float32x4_t) -> bf #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -10533,7 +10533,7 @@ pub fn vcvtq_high_f32_bf16(a: bfloat16x8_t) -> float32x4_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -10566,7 +10566,7 @@ pub unsafe fn vcvtq_low_bf16_f32(a: float32x4_t) -> bfloat16x8_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -10601,7 +10601,7 @@ pub unsafe fn vcvtq_low_bf16_f32(a: float32x4_t) -> bfloat16x8_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -10634,7 +10634,7 @@ pub unsafe fn vcvtq_low_bf16_f32(a: float32x4_t) -> bfloat16x8_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -10666,7 +10666,7 @@ pub unsafe fn vcvtq_low_bf16_f32(a: float32x4_t) -> bfloat16x8_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -11162,7 +11162,7 @@ pub fn vdotq_u32(a: uint32x4_t, b: uint8x16_t, c: uint8x16_t) -> uint32x4_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -12297,7 +12297,7 @@ pub fn vdup_lane_u64(a: uint64x1_t) -> uint64x1_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -12324,7 +12324,7 @@ pub unsafe fn vdup_laneq_bf16(a: bfloat16x8_t) -> bfloat16x4_t #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -12353,7 +12353,7 @@ pub unsafe fn vdup_laneq_bf16(a: bfloat16x8_t) -> bfloat16x4_t #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -12380,7 +12380,7 @@ pub unsafe fn vdupq_laneq_bf16(a: bfloat16x8_t) -> bfloat16x8_t #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -13520,7 +13520,7 @@ pub fn vdup_laneq_u64(a: uint64x2_t) -> uint64x1_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -14081,7 +14081,7 @@ fn vdupq_n_f32_vfp4(value: f32) -> float32x4_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -14107,7 +14107,7 @@ pub unsafe fn vduph_lane_bf16(a: bfloat16x4_t) -> bfloat16_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -14133,7 +14133,7 @@ pub unsafe fn vduph_laneq_bf16(a: bfloat16x8_t) -> bfloat16_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -14367,7 +14367,7 @@ pub fn vdupq_laneq_u64(a: uint64x2_t) -> uint64x2_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -16572,7 +16572,7 @@ pub fn vfmsq_n_f32(a: float32x4_t, b: float32x4_t, c: f32) -> float32x4_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -16598,7 +16598,7 @@ pub unsafe fn vget_high_bf16(a: bfloat16x8_t) -> bfloat16x4_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -17434,7 +17434,7 @@ pub fn vget_high_u64(a: uint64x2_t) -> uint64x1_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -17461,7 +17461,7 @@ pub unsafe fn vget_lane_bf16(a: bfloat16x4_t) -> bfloat16_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -18533,7 +18533,7 @@ pub fn vget_lane_u64(v: uint64x1_t) -> u64 { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -19039,7 +19039,7 @@ pub fn vget_low_u64(a: uint64x2_t) -> uint64x1_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -19066,7 +19066,7 @@ pub unsafe fn vgetq_lane_bf16(a: bfloat16x8_t) -> bfloat16_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -19789,7 +19789,7 @@ pub fn vhsubq_u32(a: uint32x4_t, b: uint32x4_t) -> uint32x4_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -19814,7 +19814,7 @@ pub unsafe fn vld1_bf16(ptr: *const bfloat16_t) -> bfloat16x4_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -19839,7 +19839,7 @@ pub unsafe fn vld1q_bf16(ptr: *const bfloat16_t) -> bfloat16x8_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg(target_arch = "arm")] #[cfg_attr( @@ -19865,7 +19865,7 @@ pub unsafe fn vld1_bf16_x2(ptr: *const bfloat16_t) -> bfloat16x4x2_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg(target_arch = "arm")] #[cfg_attr( @@ -19891,7 +19891,7 @@ pub unsafe fn vld1_bf16_x3(ptr: *const bfloat16_t) -> bfloat16x4x3_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg(target_arch = "arm")] #[cfg_attr( @@ -19917,7 +19917,7 @@ pub unsafe fn vld1_bf16_x4(ptr: *const bfloat16_t) -> bfloat16x4x4_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg(target_arch = "arm")] #[cfg_attr( @@ -19943,7 +19943,7 @@ pub unsafe fn vld1q_bf16_x2(ptr: *const bfloat16_t) -> bfloat16x8x2_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg(target_arch = "arm")] #[cfg_attr( @@ -19969,7 +19969,7 @@ pub unsafe fn vld1q_bf16_x3(ptr: *const bfloat16_t) -> bfloat16x8x3_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg(target_arch = "arm")] #[cfg_attr( @@ -19995,7 +19995,7 @@ pub unsafe fn vld1q_bf16_x4(ptr: *const bfloat16_t) -> bfloat16x8x4_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg(not(target_arch = "arm"))] #[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld1.8"))] @@ -20024,7 +20024,7 @@ pub unsafe fn vld1_bf16_x2(ptr: *const bfloat16_t) -> bfloat16x4x2_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg(not(target_arch = "arm"))] #[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld1.8"))] @@ -20053,7 +20053,7 @@ pub unsafe fn vld1_bf16_x3(ptr: *const bfloat16_t) -> bfloat16x4x3_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg(not(target_arch = "arm"))] #[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld1.8"))] @@ -20082,7 +20082,7 @@ pub unsafe fn vld1_bf16_x4(ptr: *const bfloat16_t) -> bfloat16x4x4_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg(not(target_arch = "arm"))] #[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld1.8"))] @@ -20111,7 +20111,7 @@ pub unsafe fn vld1q_bf16_x2(ptr: *const bfloat16_t) -> bfloat16x8x2_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg(not(target_arch = "arm"))] #[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld1.8"))] @@ -20140,7 +20140,7 @@ pub unsafe fn vld1q_bf16_x3(ptr: *const bfloat16_t) -> bfloat16x8x3_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg(not(target_arch = "arm"))] #[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld1.8"))] @@ -20169,7 +20169,7 @@ pub unsafe fn vld1q_bf16_x4(ptr: *const bfloat16_t) -> bfloat16x8x4_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -20194,7 +20194,7 @@ pub unsafe fn vld1_dup_bf16(ptr: *const bfloat16_t) -> bfloat16x4_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -21288,7 +21288,7 @@ pub unsafe fn vld1q_f32_x4(a: *const f32) -> float32x4x4_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -21316,7 +21316,7 @@ pub unsafe fn vld1_lane_bf16( #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -23806,7 +23806,7 @@ pub unsafe fn vld1q_dup_p64(ptr: *const p64) -> poly64x2_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg(target_arch = "arm")] #[cfg_attr( @@ -23832,7 +23832,7 @@ pub unsafe fn vld2_bf16(ptr: *const bfloat16_t) -> bfloat16x4x2_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg(target_arch = "arm")] #[cfg_attr( @@ -23858,7 +23858,7 @@ pub unsafe fn vld2q_bf16(ptr: *const bfloat16_t) -> bfloat16x8x2_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg(target_arch = "arm")] #[cfg_attr( @@ -23884,7 +23884,7 @@ pub unsafe fn vld3_bf16(ptr: *const bfloat16_t) -> bfloat16x4x3_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg(target_arch = "arm")] #[cfg_attr( @@ -23910,7 +23910,7 @@ pub unsafe fn vld3q_bf16(ptr: *const bfloat16_t) -> bfloat16x8x3_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg(target_arch = "arm")] #[cfg_attr( @@ -23936,7 +23936,7 @@ pub unsafe fn vld4_bf16(ptr: *const bfloat16_t) -> bfloat16x4x4_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg(target_arch = "arm")] #[cfg_attr( @@ -23962,7 +23962,7 @@ pub unsafe fn vld4q_bf16(ptr: *const bfloat16_t) -> bfloat16x8x4_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg(not(target_arch = "arm"))] #[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld2.16"))] @@ -23991,7 +23991,7 @@ pub unsafe fn vld2_bf16(ptr: *const bfloat16_t) -> bfloat16x4x2_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg(not(target_arch = "arm"))] #[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld2.16"))] @@ -24020,7 +24020,7 @@ pub unsafe fn vld2q_bf16(ptr: *const bfloat16_t) -> bfloat16x8x2_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg(not(target_arch = "arm"))] #[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld3.16"))] @@ -24049,7 +24049,7 @@ pub unsafe fn vld3_bf16(ptr: *const bfloat16_t) -> bfloat16x4x3_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg(not(target_arch = "arm"))] #[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld3.16"))] @@ -24078,7 +24078,7 @@ pub unsafe fn vld3q_bf16(ptr: *const bfloat16_t) -> bfloat16x8x3_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg(not(target_arch = "arm"))] #[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld4.16"))] @@ -24107,7 +24107,7 @@ pub unsafe fn vld4_bf16(ptr: *const bfloat16_t) -> bfloat16x4x4_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg(not(target_arch = "arm"))] #[cfg_attr(all(test, target_arch = "arm"), assert_instr("vld4.16"))] @@ -24136,7 +24136,7 @@ pub unsafe fn vld4q_bf16(ptr: *const bfloat16_t) -> bfloat16x8x4_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -24161,7 +24161,7 @@ pub unsafe fn vld2_dup_bf16(ptr: *const bfloat16_t) -> bfloat16x4x2_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -24186,7 +24186,7 @@ pub unsafe fn vld2q_dup_bf16(ptr: *const bfloat16_t) -> bfloat16x8x2_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -24211,7 +24211,7 @@ pub unsafe fn vld3_dup_bf16(ptr: *const bfloat16_t) -> bfloat16x4x3_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -24236,7 +24236,7 @@ pub unsafe fn vld3q_dup_bf16(ptr: *const bfloat16_t) -> bfloat16x8x3_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -24261,7 +24261,7 @@ pub unsafe fn vld4_dup_bf16(ptr: *const bfloat16_t) -> bfloat16x4x4_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -25329,7 +25329,7 @@ pub unsafe fn vld2q_s32(a: *const i32) -> int32x4x2_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -25357,7 +25357,7 @@ pub unsafe fn vld2_lane_bf16( #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -27290,7 +27290,7 @@ pub unsafe fn vld3q_s32(a: *const i32) -> int32x4x3_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -27318,7 +27318,7 @@ pub unsafe fn vld3_lane_bf16( #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -29297,7 +29297,7 @@ pub unsafe fn vld4q_s32(a: *const i32) -> int32x4x4_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -29325,7 +29325,7 @@ pub unsafe fn vld4_lane_bf16( #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -44966,7 +44966,7 @@ pub fn vrecpsq_f32(a: float32x4_t, b: float32x4_t) -> float32x4_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -44991,7 +44991,7 @@ pub unsafe fn vreinterpret_bf16_f16(a: float16x4_t) -> bfloat16x4_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -45016,7 +45016,7 @@ pub unsafe fn vreinterpret_bf16_f32(a: float32x2_t) -> bfloat16x4_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -45041,7 +45041,7 @@ pub unsafe fn vreinterpret_bf16_p16(a: poly16x4_t) -> bfloat16x4_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -45066,7 +45066,7 @@ pub unsafe fn vreinterpret_bf16_p64(a: poly64x1_t) -> bfloat16x4_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -45091,7 +45091,7 @@ pub unsafe fn vreinterpret_bf16_p8(a: poly8x8_t) -> bfloat16x4_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -45116,7 +45116,7 @@ pub unsafe fn vreinterpret_bf16_s16(a: int16x4_t) -> bfloat16x4_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -45141,7 +45141,7 @@ pub unsafe fn vreinterpret_bf16_s32(a: int32x2_t) -> bfloat16x4_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -45166,7 +45166,7 @@ pub unsafe fn vreinterpret_bf16_s64(a: int64x1_t) -> bfloat16x4_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -45191,7 +45191,7 @@ pub unsafe fn vreinterpret_bf16_s8(a: int8x8_t) -> bfloat16x4_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -45216,7 +45216,7 @@ pub unsafe fn vreinterpret_bf16_u16(a: uint16x4_t) -> bfloat16x4_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -45241,7 +45241,7 @@ pub unsafe fn vreinterpret_bf16_u32(a: uint32x2_t) -> bfloat16x4_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -45266,7 +45266,7 @@ pub unsafe fn vreinterpret_bf16_u64(a: uint64x1_t) -> bfloat16x4_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -45291,7 +45291,7 @@ pub unsafe fn vreinterpret_bf16_u8(a: uint8x8_t) -> bfloat16x4_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -45316,7 +45316,7 @@ pub unsafe fn vreinterpret_f16_bf16(a: bfloat16x4_t) -> float16x4_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -45341,7 +45341,7 @@ pub unsafe fn vreinterpret_f32_bf16(a: bfloat16x4_t) -> float32x2_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -45366,7 +45366,7 @@ pub unsafe fn vreinterpret_p16_bf16(a: bfloat16x4_t) -> poly16x4_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -45391,7 +45391,7 @@ pub unsafe fn vreinterpret_p64_bf16(a: bfloat16x4_t) -> poly64x1_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -45416,7 +45416,7 @@ pub unsafe fn vreinterpret_p8_bf16(a: bfloat16x4_t) -> poly8x8_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -45441,7 +45441,7 @@ pub unsafe fn vreinterpret_s16_bf16(a: bfloat16x4_t) -> int16x4_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -45466,7 +45466,7 @@ pub unsafe fn vreinterpret_s32_bf16(a: bfloat16x4_t) -> int32x2_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -45491,7 +45491,7 @@ pub unsafe fn vreinterpret_s64_bf16(a: bfloat16x4_t) -> int64x1_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -45516,7 +45516,7 @@ pub unsafe fn vreinterpret_s8_bf16(a: bfloat16x4_t) -> int8x8_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -45541,7 +45541,7 @@ pub unsafe fn vreinterpret_u16_bf16(a: bfloat16x4_t) -> uint16x4_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -45566,7 +45566,7 @@ pub unsafe fn vreinterpret_u32_bf16(a: bfloat16x4_t) -> uint32x2_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -45591,7 +45591,7 @@ pub unsafe fn vreinterpret_u64_bf16(a: bfloat16x4_t) -> uint64x1_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -47424,7 +47424,7 @@ pub fn vreinterpretq_u16_p16(a: poly16x8_t) -> uint16x8_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -47449,7 +47449,7 @@ pub unsafe fn vreinterpretq_bf16_f16(a: float16x8_t) -> bfloat16x8_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -47474,7 +47474,7 @@ pub unsafe fn vreinterpretq_bf16_f32(a: float32x4_t) -> bfloat16x8_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -47499,7 +47499,7 @@ pub unsafe fn vreinterpretq_bf16_p128(a: p128) -> bfloat16x8_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -47524,7 +47524,7 @@ pub unsafe fn vreinterpretq_bf16_p16(a: poly16x8_t) -> bfloat16x8_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -47549,7 +47549,7 @@ pub unsafe fn vreinterpretq_bf16_p64(a: poly64x2_t) -> bfloat16x8_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -47574,7 +47574,7 @@ pub unsafe fn vreinterpretq_bf16_p8(a: poly8x16_t) -> bfloat16x8_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -47599,7 +47599,7 @@ pub unsafe fn vreinterpretq_bf16_s16(a: int16x8_t) -> bfloat16x8_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -47624,7 +47624,7 @@ pub unsafe fn vreinterpretq_bf16_s32(a: int32x4_t) -> bfloat16x8_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -47649,7 +47649,7 @@ pub unsafe fn vreinterpretq_bf16_s64(a: int64x2_t) -> bfloat16x8_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -47674,7 +47674,7 @@ pub unsafe fn vreinterpretq_bf16_s8(a: int8x16_t) -> bfloat16x8_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -47699,7 +47699,7 @@ pub unsafe fn vreinterpretq_bf16_u16(a: uint16x8_t) -> bfloat16x8_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -47724,7 +47724,7 @@ pub unsafe fn vreinterpretq_bf16_u32(a: uint32x4_t) -> bfloat16x8_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -47749,7 +47749,7 @@ pub unsafe fn vreinterpretq_bf16_u64(a: uint64x2_t) -> bfloat16x8_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -47774,7 +47774,7 @@ pub unsafe fn vreinterpretq_bf16_u8(a: uint8x16_t) -> bfloat16x8_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -47799,7 +47799,7 @@ pub unsafe fn vreinterpretq_f16_bf16(a: bfloat16x8_t) -> float16x8_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -47824,7 +47824,7 @@ pub unsafe fn vreinterpretq_f32_bf16(a: bfloat16x8_t) -> float32x4_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -47849,7 +47849,7 @@ pub unsafe fn vreinterpretq_p128_bf16(a: bfloat16x8_t) -> p128 { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -47874,7 +47874,7 @@ pub unsafe fn vreinterpretq_p16_bf16(a: bfloat16x8_t) -> poly16x8_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -47899,7 +47899,7 @@ pub unsafe fn vreinterpretq_p64_bf16(a: bfloat16x8_t) -> poly64x2_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -47924,7 +47924,7 @@ pub unsafe fn vreinterpretq_p8_bf16(a: bfloat16x8_t) -> poly8x16_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -47949,7 +47949,7 @@ pub unsafe fn vreinterpretq_s16_bf16(a: bfloat16x8_t) -> int16x8_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -47974,7 +47974,7 @@ pub unsafe fn vreinterpretq_s32_bf16(a: bfloat16x8_t) -> int32x4_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -47999,7 +47999,7 @@ pub unsafe fn vreinterpretq_s64_bf16(a: bfloat16x8_t) -> int64x2_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -48024,7 +48024,7 @@ pub unsafe fn vreinterpretq_s8_bf16(a: bfloat16x8_t) -> int8x16_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -48049,7 +48049,7 @@ pub unsafe fn vreinterpretq_u16_bf16(a: bfloat16x8_t) -> uint16x8_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -48074,7 +48074,7 @@ pub unsafe fn vreinterpretq_u32_bf16(a: bfloat16x8_t) -> uint32x4_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -48099,7 +48099,7 @@ pub unsafe fn vreinterpretq_u64_bf16(a: bfloat16x8_t) -> uint64x2_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -57375,7 +57375,7 @@ pub fn vrsubhn_u64(a: uint64x2_t, b: uint64x2_t) -> uint32x2_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -57402,7 +57402,7 @@ pub unsafe fn vset_lane_bf16(a: bfloat16_t, v: bfloat16x4_t) -> #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -57431,7 +57431,7 @@ pub unsafe fn vset_lane_bf16(a: bfloat16_t, v: bfloat16x4_t) -> #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -57458,7 +57458,7 @@ pub unsafe fn vsetq_lane_bf16(a: bfloat16_t, v: bfloat16x8_t) - #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -61898,7 +61898,7 @@ pub fn vsriq_n_p16(a: poly16x8_t, b: poly16x8_t) -> poly16x8_t { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -61923,7 +61923,7 @@ pub unsafe fn vst1_bf16(ptr: *mut bfloat16_t, val: bfloat16x4_t) { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -61948,7 +61948,7 @@ pub unsafe fn vst1q_bf16(ptr: *mut bfloat16_t, val: bfloat16x8_t) { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -61973,7 +61973,7 @@ pub unsafe fn vst1_bf16_x2(ptr: *mut bfloat16_t, val: bfloat16x4x2_t) { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -61998,7 +61998,7 @@ pub unsafe fn vst1_bf16_x3(ptr: *mut bfloat16_t, val: bfloat16x4x3_t) { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -62023,7 +62023,7 @@ pub unsafe fn vst1_bf16_x4(ptr: *mut bfloat16_t, val: bfloat16x4x4_t) { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -62048,7 +62048,7 @@ pub unsafe fn vst1q_bf16_x2(ptr: *mut bfloat16_t, val: bfloat16x8x2_t) { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -62073,7 +62073,7 @@ pub unsafe fn vst1q_bf16_x3(ptr: *mut bfloat16_t, val: bfloat16x8x3_t) { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -62926,7 +62926,7 @@ pub unsafe fn vst1q_f32_x4(a: *mut f32, b: float32x4x4_t) { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -62951,7 +62951,7 @@ pub unsafe fn vst1_lane_bf16(a: *mut bfloat16_t, v: bfloat16x4_ #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -65598,7 +65598,7 @@ pub unsafe fn vst1q_lane_p64(a: *mut p64, b: poly64x2_t) { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -65623,7 +65623,7 @@ pub unsafe fn vst2_bf16(a: *mut bfloat16_t, b: bfloat16x4x2_t) { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -65952,7 +65952,7 @@ pub unsafe fn vst2q_s32(a: *mut i32, b: int32x4x2_t) { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -65977,7 +65977,7 @@ pub unsafe fn vst2_lane_bf16(a: *mut bfloat16_t, v: bfloat16x4x #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -66863,7 +66863,7 @@ pub unsafe fn vst2q_p16(a: *mut p16, b: poly16x8x2_t) { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -66888,7 +66888,7 @@ pub unsafe fn vst3_bf16(a: *mut bfloat16_t, b: bfloat16x4x3_t) { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -67185,7 +67185,7 @@ pub unsafe fn vst3q_s32(a: *mut i32, b: int32x4x3_t) { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -67210,7 +67210,7 @@ pub unsafe fn vst3_lane_bf16(a: *mut bfloat16_t, v: bfloat16x4x #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -68152,7 +68152,7 @@ pub unsafe fn vst3q_p16(a: *mut p16, b: poly16x8x3_t) { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -68177,7 +68177,7 @@ pub unsafe fn vst4_bf16(a: *mut bfloat16_t, b: bfloat16x4x4_t) { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -68569,7 +68569,7 @@ pub unsafe fn vst4q_s32(a: *mut i32, b: int32x4x4_t) { #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", @@ -68594,7 +68594,7 @@ pub unsafe fn vst4_lane_bf16(a: *mut bfloat16_t, v: bfloat16x4x #[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))] #[cfg_attr( not(target_arch = "arm"), - unstable(feature = "stdarch_neon_bf16", issue = "none") + unstable(feature = "stdarch_neon_bf16", issue = "164986") )] #[cfg_attr( target_arch = "arm", diff --git a/library/stdarch/crates/stdarch-gen-arm/spec/neon/aarch64.spec.yml b/library/stdarch/crates/stdarch-gen-arm/spec/neon/aarch64.spec.yml index a1c955bc5c629..4cb43ee580ecf 100644 --- a/library/stdarch/crates/stdarch-gen-arm/spec/neon/aarch64.spec.yml +++ b/library/stdarch/crates/stdarch-gen-arm/spec/neon/aarch64.spec.yml @@ -63,9 +63,9 @@ aarch64-crc-stable: &aarch64-crc-stable neon-unstable-f16: &neon-unstable-f16 FnCall: [unstable, ['feature = "stdarch_neon_f16"', 'issue = "136306"']] -# #[unstable(feature = "stdarch_neon_bf16", issue = "none")] +# #[unstable(feature = "stdarch_neon_bf16", issue = "164986")] neon-unstable-bf16: &neon-unstable-bf16 - FnCall: [unstable, ['feature = "stdarch_neon_bf16"', 'issue = "none"']] + FnCall: [unstable, ['feature = "stdarch_neon_bf16"', 'issue = "164986"']] # #[cfg(any(target_has_reliable_f16b, doc))] cfg-reliable-bf16: &cfg-reliable-bf16 diff --git a/library/stdarch/crates/stdarch-gen-arm/spec/neon/arm_shared.spec.yml b/library/stdarch/crates/stdarch-gen-arm/spec/neon/arm_shared.spec.yml index e80c4b2f8dc4b..de352e39304bc 100644 --- a/library/stdarch/crates/stdarch-gen-arm/spec/neon/arm_shared.spec.yml +++ b/library/stdarch/crates/stdarch-gen-arm/spec/neon/arm_shared.spec.yml @@ -136,9 +136,9 @@ neon-unstable-f16: &neon-unstable-f16 all-neon-target-aarch64-arm64ec-little-endian: &all-neon-target-aarch64-arm64ec-little-endian FnCall: [all, [test, {FnCall: [any, ['target_arch = "aarch64"', 'target_arch = "arm64ec"']]}, 'target_endian = "little"']] -# #[cfg_attr(not(target_arch = "arm"), unstable(feature = "stdarch_neon_bf16", issue = "none"))] +# #[cfg_attr(not(target_arch = "arm"), unstable(feature = "stdarch_neon_bf16", issue = "164986"))] neon-unstable-bf16: &neon-unstable-bf16 - FnCall: [cfg_attr, [*not-arm, {FnCall: [unstable, ['feature = "stdarch_neon_bf16"', 'issue = "none"']]}]] + FnCall: [cfg_attr, [*not-arm, {FnCall: [unstable, ['feature = "stdarch_neon_bf16"', 'issue = "164986"']]}]] # #[cfg(any(target_has_reliable_f16b, doc))] cfg-reliable-bf16: &cfg-reliable-bf16 From 3a22eb80ec7850930b796fe677fb02f3a2a91891 Mon Sep 17 00:00:00 2001 From: BernardoGV <93843760+bernardogv@users.noreply.github.com> Date: Sat, 17 Oct 2026 11:30:41 -0500 Subject: [PATCH 12/43] amdgpu: document that ds_permute/ds_bpermute take a byte address --- library/stdarch/crates/core_arch/src/amdgpu/mod.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/library/stdarch/crates/core_arch/src/amdgpu/mod.rs b/library/stdarch/crates/core_arch/src/amdgpu/mod.rs index 53aa142f678e9..461a4ccda3e79 100644 --- a/library/stdarch/crates/core_arch/src/amdgpu/mod.rs +++ b/library/stdarch/crates/core_arch/src/amdgpu/mod.rs @@ -702,10 +702,12 @@ pub fn s_memrealtime() -> u64 { /// Scatter data across all lanes in a wavefront. /// -/// Writes `value` to the lane `lane`. +/// Writes `value` to the lane addressed by `lane`. +/// +/// `lane` is a byte address, not a lane index: pass `n * 4` to write to lane `n`. /// /// Reading from inactive lanes returns `0`. -/// In case multiple values get written to the same `lane`, the value from the source lane with the higher index is taken. +/// In case multiple values get written to the same lane, the value from the source lane with the higher index is taken. /// #[doc = include_str!("intrinsic_is_convergent.md")] #[inline] @@ -715,7 +717,9 @@ pub unsafe fn ds_permute(lane: u32, value: u32) -> u32 { } /// Gather data across all lanes in a wavefront. /// -/// Returns the `value` given to `ds_permute` by lane `lane`. +/// Returns the `value` given to `ds_bpermute` by the lane addressed by `lane`. +/// +/// `lane` is a byte address, not a lane index: pass `n * 4` to read from lane `n`. /// /// Reading from inactive lanes returns `0`. /// From 45439235850074186f70249d075ca34876428ad0 Mon Sep 17 00:00:00 2001 From: TechnoPorg Date: Tue, 20 Oct 2026 09:22:35 -0400 Subject: [PATCH 13/43] refactor: move RISC-V bit manipulation intrinsics into zb.rs --- .../crates/core_arch/src/riscv32/mod.rs | 4 + .../crates/core_arch/src/riscv32/zb.rs | 137 ++++++++++++++++++ .../crates/core_arch/src/riscv32/zk.rs | 47 ------ .../crates/core_arch/src/riscv64/mod.rs | 4 + .../crates/core_arch/src/riscv64/zb.rs | 132 +++++++++++++++++ .../crates/core_arch/src/riscv_shared/mod.rs | 2 + .../crates/core_arch/src/riscv_shared/zb.rs | 91 +----------- .../crates/core_arch/src/riscv_shared/zk.rs | 74 ---------- 8 files changed, 281 insertions(+), 210 deletions(-) create mode 100644 library/stdarch/crates/core_arch/src/riscv32/zb.rs create mode 100644 library/stdarch/crates/core_arch/src/riscv64/zb.rs diff --git a/library/stdarch/crates/core_arch/src/riscv32/mod.rs b/library/stdarch/crates/core_arch/src/riscv32/mod.rs index 7ff871227b503..7017b7edc479b 100644 --- a/library/stdarch/crates/core_arch/src/riscv32/mod.rs +++ b/library/stdarch/crates/core_arch/src/riscv32/mod.rs @@ -1,6 +1,10 @@ //! RISC-V RV32 specific intrinsics +mod zb; mod zk; +#[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] +pub use zb::*; + #[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] pub use zk::*; diff --git a/library/stdarch/crates/core_arch/src/riscv32/zb.rs b/library/stdarch/crates/core_arch/src/riscv32/zb.rs new file mode 100644 index 0000000000000..c50268a462200 --- /dev/null +++ b/library/stdarch/crates/core_arch/src/riscv32/zb.rs @@ -0,0 +1,137 @@ +#[cfg(test)] +use stdarch_test::assert_instr; + +unsafe extern "llvm-intrinsic" { + #[link_name = "llvm.riscv.xperm8.i32"] + fn _xperm8_32(rs1: i32, rs2: i32) -> i32; + + #[link_name = "llvm.riscv.xperm4.i32"] + fn _xperm4_32(rs1: i32, rs2: i32) -> i32; + + #[link_name = "llvm.riscv.clmulh.i32"] + fn _clmulh_32(rs1: i32, rs2: i32) -> i32; + + #[link_name = "llvm.riscv.clmulr.i32"] + fn _clmulr_32(rs1: i32, rs2: i32) -> i32; + + #[link_name = "llvm.riscv.zip.i32"] + fn _zip(rs1: i32) -> i32; + + #[link_name = "llvm.riscv.unzip.i32"] + fn _unzip(rs1: i32) -> i32; +} + +/// Byte-wise lookup of indicies into a vector in registers. +/// +/// The xperm8 instruction operates on bytes. The rs1 register contains a vector of XLEN/8 +/// 8-bit elements. The rs2 register contains a vector of XLEN/8 8-bit indexes. The result is +/// each element in rs2 replaced by the indexed element in rs1, or zero if the index into rs2 +/// is out of bounds. +/// +/// Source: RISC-V Cryptography Extensions Volume I: Scalar & Entropy Source Instructions +/// +/// Version: v1.0.1 +/// +/// Section: 3.47 +#[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] +#[target_feature(enable = "zbkx")] +#[cfg_attr(test, assert_instr(xperm8))] +#[inline] +pub fn xperm8(rs1: usize, rs2: usize) -> usize { + unsafe { _xperm8_32(rs1 as i32, rs2 as i32) as usize } +} + +/// Nibble-wise lookup of indicies into a vector. +/// +/// The xperm4 instruction operates on nibbles. The rs1 register contains a vector of XLEN/4 +/// 4-bit elements. The rs2 register contains a vector of XLEN/4 4-bit indexes. The result is +/// each element in rs2 replaced by the indexed element in rs1, or zero if the index into rs2 +/// is out of bounds. +/// +/// Source: RISC-V Cryptography Extensions Volume I: Scalar & Entropy Source Instructions +/// +/// Version: v1.0.1 +/// +/// Section: 3.48 +#[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] +#[target_feature(enable = "zbkx")] +#[cfg_attr(test, assert_instr(xperm4))] +#[inline] +pub fn xperm4(rs1: usize, rs2: usize) -> usize { + unsafe { _xperm4_32(rs1 as i32, rs2 as i32) as usize } +} + +/// Carry-less multiply (high-part) +/// +/// clmulh produces the upper half of the 2·XLEN carry-less product. +/// +/// Source: RISC-V Bit-Manipulation ISA-extensions +/// +/// Version: v1.0.0 +/// +/// Section: 2.12 +#[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] +#[target_feature(enable = "zbkc")] +#[cfg_attr(test, assert_instr(clmulh))] +#[inline] +pub fn clmulh(rs1: usize, rs2: usize) -> usize { + unsafe { _clmulh_32(rs1 as i32, rs2 as i32) as usize } +} + +/// Carry-less multiply (reversed) +/// +/// clmulr produces bits 2·XLEN−2:XLEN-1 of the 2·XLEN carry-less product. +/// +/// Source: RISC-V Bit-Manipulation ISA-extensions +/// +/// Version: v1.0.0 +/// +/// Section: 2.13 +#[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] +#[target_feature(enable = "zbc")] +#[cfg_attr(test, assert_instr(clmulr))] +#[inline] +pub fn clmulr(rs1: usize, rs2: usize) -> usize { + unsafe { _clmulr_32(rs1 as i32, rs2 as i32) as usize } +} + +/// Place upper/lower halves of the source register into odd/even bits of the destination +/// respectivley. +/// +/// This instruction places bits in the low half of the source register into the even bit +/// positions of the destination, and bits in the high half of the source register into the odd +/// bit positions of the destination. It is the inverse of the unzip instruction. This +/// instruction is available only on RV32. +/// +/// Source: RISC-V Cryptography Extensions Volume I: Scalar & Entropy Source Instructions +/// +/// Version: v1.0.1 +/// +/// Section: 3.49 +#[target_feature(enable = "zbkb")] +// See #1464 +// #[cfg_attr(test, assert_instr(zip))] +#[inline] +#[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] +pub fn zip(rs: u32) -> u32 { + unsafe { _zip(rs as i32) as u32 } +} + +/// Place odd and even bits of the source word into upper/lower halves of the destination. +/// +/// This instruction places the even bits of the source register into the low half of the +/// destination, and the odd bits of the source into the high bits of the destination. It is +/// the inverse of the zip instruction. This instruction is available only on RV32. +/// +/// Source: RISC-V Cryptography Extensions Volume I: Scalar & Entropy Source Instructions +/// +/// Version: v1.0.1 +/// +/// Section: 3.45 +#[target_feature(enable = "zbkb")] +#[cfg_attr(test, assert_instr(unzip))] +#[inline] +#[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] +pub fn unzip(rs: u32) -> u32 { + unsafe { _unzip(rs as i32) as u32 } +} diff --git a/library/stdarch/crates/core_arch/src/riscv32/zk.rs b/library/stdarch/crates/core_arch/src/riscv32/zk.rs index 3ffe0819e75bd..1613245182863 100644 --- a/library/stdarch/crates/core_arch/src/riscv32/zk.rs +++ b/library/stdarch/crates/core_arch/src/riscv32/zk.rs @@ -14,12 +14,6 @@ unsafe extern "llvm-intrinsic" { #[link_name = "llvm.riscv.aes32dsmi"] fn _aes32dsmi(rs1: i32, rs2: i32, bs: i32) -> i32; - #[link_name = "llvm.riscv.zip.i32"] - fn _zip(rs1: i32) -> i32; - - #[link_name = "llvm.riscv.unzip.i32"] - fn _unzip(rs1: i32) -> i32; - #[link_name = "llvm.riscv.sha512sig0h"] fn _sha512sig0h(rs1: i32, rs2: i32) -> i32; @@ -154,47 +148,6 @@ pub fn aes32dsmi(rs1: u32, rs2: u32) -> u32 { unsafe { _aes32dsmi(rs1 as i32, rs2 as i32, BS as i32) as u32 } } -/// Place upper/lower halves of the source register into odd/even bits of the destination -/// respectivley. -/// -/// This instruction places bits in the low half of the source register into the even bit -/// positions of the destination, and bits in the high half of the source register into the odd -/// bit positions of the destination. It is the inverse of the unzip instruction. This -/// instruction is available only on RV32. -/// -/// Source: RISC-V Cryptography Extensions Volume I: Scalar & Entropy Source Instructions -/// -/// Version: v1.0.1 -/// -/// Section: 3.49 -#[target_feature(enable = "zbkb")] -// See #1464 -// #[cfg_attr(test, assert_instr(zip))] -#[inline] -#[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] -pub fn zip(rs: u32) -> u32 { - unsafe { _zip(rs as i32) as u32 } -} - -/// Place odd and even bits of the source word into upper/lower halves of the destination. -/// -/// This instruction places the even bits of the source register into the low half of the -/// destination, and the odd bits of the source into the high bits of the destination. It is -/// the inverse of the zip instruction. This instruction is available only on RV32. -/// -/// Source: RISC-V Cryptography Extensions Volume I: Scalar & Entropy Source Instructions -/// -/// Version: v1.0.1 -/// -/// Section: 3.45 -#[target_feature(enable = "zbkb")] -#[cfg_attr(test, assert_instr(unzip))] -#[inline] -#[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] -pub fn unzip(rs: u32) -> u32 { - unsafe { _unzip(rs as i32) as u32 } -} - /// Implements the high half of the Sigma0 transformation, as used in the SHA2-512 hash /// function \[49\] (Section 4.1.3). /// diff --git a/library/stdarch/crates/core_arch/src/riscv64/mod.rs b/library/stdarch/crates/core_arch/src/riscv64/mod.rs index a7efc0c7f58a1..8301ea2b23401 100644 --- a/library/stdarch/crates/core_arch/src/riscv64/mod.rs +++ b/library/stdarch/crates/core_arch/src/riscv64/mod.rs @@ -1,8 +1,12 @@ //! RISC-V RV64 specific intrinsics use crate::arch::asm; +mod zb; mod zk; +#[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] +pub use zb::*; + #[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] pub use zk::*; diff --git a/library/stdarch/crates/core_arch/src/riscv64/zb.rs b/library/stdarch/crates/core_arch/src/riscv64/zb.rs new file mode 100644 index 0000000000000..a26ddaa5be5e9 --- /dev/null +++ b/library/stdarch/crates/core_arch/src/riscv64/zb.rs @@ -0,0 +1,132 @@ +#[cfg(test)] +use stdarch_test::assert_instr; + +unsafe extern "llvm-intrinsic" { + #[link_name = "llvm.riscv.xperm8.i64"] + fn _xperm8_64(rs1: i64, rs2: i64) -> i64; + + #[link_name = "llvm.riscv.xperm4.i64"] + fn _xperm4_64(rs1: i64, rs2: i64) -> i64; + + #[link_name = "llvm.riscv.orc.b.i64"] + fn _orc_b_64(rs1: i64) -> i64; + + #[link_name = "llvm.riscv.clmul.i64"] + fn _clmul_64(rs1: i64, rs2: i64) -> i64; + + #[link_name = "llvm.riscv.clmulh.i64"] + fn _clmulh_64(rs1: i64, rs2: i64) -> i64; + + #[link_name = "llvm.riscv.clmulr.i64"] + fn _clmulr_64(rs1: i64, rs2: i64) -> i64; +} + +/// Byte-wise lookup of indicies into a vector in registers. +/// +/// The xperm8 instruction operates on bytes. The rs1 register contains a vector of XLEN/8 +/// 8-bit elements. The rs2 register contains a vector of XLEN/8 8-bit indexes. The result is +/// each element in rs2 replaced by the indexed element in rs1, or zero if the index into rs2 +/// is out of bounds. +/// +/// Source: RISC-V Cryptography Extensions Volume I: Scalar & Entropy Source Instructions +/// +/// Version: v1.0.1 +/// +/// Section: 3.47 +#[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] +#[target_feature(enable = "zbkx")] +#[cfg_attr(test, assert_instr(xperm8))] +#[inline] +pub fn xperm8(rs1: usize, rs2: usize) -> usize { + unsafe { _xperm8_64(rs1 as i64, rs2 as i64) as usize } +} + +/// Nibble-wise lookup of indicies into a vector. +/// +/// The xperm4 instruction operates on nibbles. The rs1 register contains a vector of XLEN/4 +/// 4-bit elements. The rs2 register contains a vector of XLEN/4 4-bit indexes. The result is +/// each element in rs2 replaced by the indexed element in rs1, or zero if the index into rs2 +/// is out of bounds. +/// +/// Source: RISC-V Cryptography Extensions Volume I: Scalar & Entropy Source Instructions +/// +/// Version: v1.0.1 +/// +/// Section: 3.48 +#[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] +#[target_feature(enable = "zbkx")] +#[cfg_attr(test, assert_instr(xperm4))] +#[inline] +pub fn xperm4(rs1: usize, rs2: usize) -> usize { + unsafe { _xperm4_64(rs1 as i64, rs2 as i64) as usize } +} + +/// Bitwise OR-Combine, byte granule +/// +/// Combines the bits within every byte through a reciprocal bitwise logical OR. This sets the bits of each byte in +/// the result rd to all zeros if no bit within the respective byte of rs is set, or to all ones if any bit within the +/// respective byte of rs is set. +/// +/// Source: RISC-V Bit-Manipulation ISA-extensions +/// +/// Version: v1.0.0 +/// +/// Section: 2.24 +#[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] +#[target_feature(enable = "zbb")] +#[cfg_attr(test, assert_instr(orc.b))] +#[inline] +pub fn orc_b(rs: usize) -> usize { + unsafe { _orc_b_64(rs as i64) as usize } +} + +/// Carry-less multiply (low-part) +/// +/// clmul produces the lower half of the 2·XLEN carry-less product. +/// +/// Source: RISC-V Bit-Manipulation ISA-extensions +/// +/// Version: v1.0.0 +/// +/// Section: 2.11 +#[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] +#[target_feature(enable = "zbkc")] +#[cfg_attr(test, assert_instr(clmul))] +#[inline] +pub fn clmul(rs1: usize, rs2: usize) -> usize { + unsafe { _clmul_64(rs1 as i64, rs2 as i64) as usize } +} + +/// Carry-less multiply (high-part) +/// +/// clmulh produces the upper half of the 2·XLEN carry-less product. +/// +/// Source: RISC-V Bit-Manipulation ISA-extensions +/// +/// Version: v1.0.0 +/// +/// Section: 2.12 +#[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] +#[target_feature(enable = "zbkc")] +#[cfg_attr(test, assert_instr(clmulh))] +#[inline] +pub fn clmulh(rs1: usize, rs2: usize) -> usize { + unsafe { _clmulh_64(rs1 as i64, rs2 as i64) as usize } +} + +/// Carry-less multiply (reversed) +/// +/// clmulr produces bits 2·XLEN−2:XLEN-1 of the 2·XLEN carry-less product. +/// +/// Source: RISC-V Bit-Manipulation ISA-extensions +/// +/// Version: v1.0.0 +/// +/// Section: 2.13 +#[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] +#[target_feature(enable = "zbc")] +#[cfg_attr(test, assert_instr(clmulr))] +#[inline] +pub fn clmulr(rs1: usize, rs2: usize) -> usize { + unsafe { _clmulr_64(rs1 as i64, rs2 as i64) as usize } +} diff --git a/library/stdarch/crates/core_arch/src/riscv_shared/mod.rs b/library/stdarch/crates/core_arch/src/riscv_shared/mod.rs index f3933f58b1ca5..b99b963eddb3f 100644 --- a/library/stdarch/crates/core_arch/src/riscv_shared/mod.rs +++ b/library/stdarch/crates/core_arch/src/riscv_shared/mod.rs @@ -25,11 +25,13 @@ //! single inline assembly block and make sure to restore the original rounding mode before the end //! of the block. mod p; +#[cfg(target_arch = "riscv32")] mod zb; mod zk; #[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] pub use p::*; +#[cfg(target_arch = "riscv32")] #[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] pub use zb::*; #[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] diff --git a/library/stdarch/crates/core_arch/src/riscv_shared/zb.rs b/library/stdarch/crates/core_arch/src/riscv_shared/zb.rs index 79ffe2af337b2..2f530058985f7 100644 --- a/library/stdarch/crates/core_arch/src/riscv_shared/zb.rs +++ b/library/stdarch/crates/core_arch/src/riscv_shared/zb.rs @@ -8,27 +8,6 @@ unsafe extern "llvm-intrinsic" { #[link_name = "llvm.riscv.clmul.i32"] fn _clmul_32(rs1: i32, rs2: i32) -> i32; - - #[link_name = "llvm.riscv.clmulh.i32"] - fn _clmulh_32(rs1: i32, rs2: i32) -> i32; - - #[link_name = "llvm.riscv.clmulr.i32"] - fn _clmulr_32(rs1: i32, rs2: i32) -> i32; -} - -#[cfg(target_arch = "riscv64")] -unsafe extern "llvm-intrinsic" { - #[link_name = "llvm.riscv.orc.b.i64"] - fn _orc_b_64(rs1: i64) -> i64; - - #[link_name = "llvm.riscv.clmul.i64"] - fn _clmul_64(rs1: i64, rs2: i64) -> i64; - - #[link_name = "llvm.riscv.clmulh.i64"] - fn _clmulh_64(rs1: i64, rs2: i64) -> i64; - - #[link_name = "llvm.riscv.clmulr.i64"] - fn _clmulr_64(rs1: i64, rs2: i64) -> i64; } /// Bitwise OR-Combine, byte granule @@ -47,15 +26,7 @@ unsafe extern "llvm-intrinsic" { #[cfg_attr(test, assert_instr(orc.b))] #[inline] pub fn orc_b(rs: usize) -> usize { - #[cfg(target_arch = "riscv32")] - unsafe { - _orc_b_32(rs as i32) as usize - } - - #[cfg(target_arch = "riscv64")] - unsafe { - _orc_b_64(rs as i64) as usize - } + unsafe { _orc_b_32(rs as i32) as usize } } /// Carry-less multiply (low-part) @@ -72,63 +43,5 @@ pub fn orc_b(rs: usize) -> usize { #[cfg_attr(test, assert_instr(clmul))] #[inline] pub fn clmul(rs1: usize, rs2: usize) -> usize { - #[cfg(target_arch = "riscv32")] - unsafe { - _clmul_32(rs1 as i32, rs2 as i32) as usize - } - - #[cfg(target_arch = "riscv64")] - unsafe { - _clmul_64(rs1 as i64, rs2 as i64) as usize - } -} - -/// Carry-less multiply (high-part) -/// -/// clmulh produces the upper half of the 2·XLEN carry-less product. -/// -/// Source: RISC-V Bit-Manipulation ISA-extensions -/// -/// Version: v1.0.0 -/// -/// Section: 2.12 -#[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] -#[target_feature(enable = "zbkc")] -#[cfg_attr(test, assert_instr(clmulh))] -#[inline] -pub fn clmulh(rs1: usize, rs2: usize) -> usize { - #[cfg(target_arch = "riscv32")] - unsafe { - _clmulh_32(rs1 as i32, rs2 as i32) as usize - } - - #[cfg(target_arch = "riscv64")] - unsafe { - _clmulh_64(rs1 as i64, rs2 as i64) as usize - } -} - -/// Carry-less multiply (reversed) -/// -/// clmulr produces bits 2·XLEN−2:XLEN-1 of the 2·XLEN carry-less product. -/// -/// Source: RISC-V Bit-Manipulation ISA-extensions -/// -/// Version: v1.0.0 -/// -/// Section: 2.13 -#[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] -#[target_feature(enable = "zbc")] -#[cfg_attr(test, assert_instr(clmulr))] -#[inline] -pub fn clmulr(rs1: usize, rs2: usize) -> usize { - #[cfg(target_arch = "riscv32")] - unsafe { - _clmulr_32(rs1 as i32, rs2 as i32) as usize - } - - #[cfg(target_arch = "riscv64")] - unsafe { - _clmulr_64(rs1 as i64, rs2 as i64) as usize - } + unsafe { _clmul_32(rs1 as i32, rs2 as i32) as usize } } diff --git a/library/stdarch/crates/core_arch/src/riscv_shared/zk.rs b/library/stdarch/crates/core_arch/src/riscv_shared/zk.rs index 589ea9779866d..0fcf13c7ac6d4 100644 --- a/library/stdarch/crates/core_arch/src/riscv_shared/zk.rs +++ b/library/stdarch/crates/core_arch/src/riscv_shared/zk.rs @@ -27,80 +27,6 @@ unsafe extern "llvm-intrinsic" { fn _sha256sum1(rs1: i32) -> i32; } -#[cfg(target_arch = "riscv32")] -unsafe extern "llvm-intrinsic" { - #[link_name = "llvm.riscv.xperm8.i32"] - fn _xperm8_32(rs1: i32, rs2: i32) -> i32; - - #[link_name = "llvm.riscv.xperm4.i32"] - fn _xperm4_32(rs1: i32, rs2: i32) -> i32; -} - -#[cfg(target_arch = "riscv64")] -unsafe extern "llvm-intrinsic" { - #[link_name = "llvm.riscv.xperm8.i64"] - fn _xperm8_64(rs1: i64, rs2: i64) -> i64; - - #[link_name = "llvm.riscv.xperm4.i64"] - fn _xperm4_64(rs1: i64, rs2: i64) -> i64; -} - -/// Byte-wise lookup of indicies into a vector in registers. -/// -/// The xperm8 instruction operates on bytes. The rs1 register contains a vector of XLEN/8 -/// 8-bit elements. The rs2 register contains a vector of XLEN/8 8-bit indexes. The result is -/// each element in rs2 replaced by the indexed element in rs1, or zero if the index into rs2 -/// is out of bounds. -/// -/// Source: RISC-V Cryptography Extensions Volume I: Scalar & Entropy Source Instructions -/// -/// Version: v1.0.1 -/// -/// Section: 3.47 -#[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] -#[target_feature(enable = "zbkx")] -#[cfg_attr(test, assert_instr(xperm8))] -#[inline] -pub fn xperm8(rs1: usize, rs2: usize) -> usize { - #[cfg(target_arch = "riscv32")] - unsafe { - _xperm8_32(rs1 as i32, rs2 as i32) as usize - } - - #[cfg(target_arch = "riscv64")] - unsafe { - _xperm8_64(rs1 as i64, rs2 as i64) as usize - } -} - -/// Nibble-wise lookup of indicies into a vector. -/// -/// The xperm4 instruction operates on nibbles. The rs1 register contains a vector of XLEN/4 -/// 4-bit elements. The rs2 register contains a vector of XLEN/4 4-bit indexes. The result is -/// each element in rs2 replaced by the indexed element in rs1, or zero if the index into rs2 -/// is out of bounds. -/// -/// Source: RISC-V Cryptography Extensions Volume I: Scalar & Entropy Source Instructions -/// -/// Version: v1.0.1 -/// -/// Section: 3.48 -#[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] -#[target_feature(enable = "zbkx")] -#[cfg_attr(test, assert_instr(xperm4))] -#[inline] -pub fn xperm4(rs1: usize, rs2: usize) -> usize { - #[cfg(target_arch = "riscv32")] - unsafe { - _xperm4_32(rs1 as i32, rs2 as i32) as usize - } - - #[cfg(target_arch = "riscv64")] - unsafe { - _xperm4_64(rs1 as i64, rs2 as i64) as usize - } -} - /// Implements the Sigma0 transformation function as used in the SHA2-256 hash function \[49\] /// (Section 4.1.2). /// From 558c0ac76dc2769e2ca9a7df5ef0681c5c084e31 Mon Sep 17 00:00:00 2001 From: TechnoPorg Date: Tue, 20 Oct 2026 09:23:51 -0400 Subject: [PATCH 14/43] refactor: make RISC-V bit manip intrinsics match C API Also exposes the 32-bit intrinsics that are supported on RV64 in riscv_shared --- .../crates/core_arch/src/riscv32/zb.rs | 44 +++++++++---------- .../crates/core_arch/src/riscv64/zb.rs | 44 +++++++++---------- .../crates/core_arch/src/riscv_shared/mod.rs | 2 - .../crates/core_arch/src/riscv_shared/zb.rs | 11 +++-- 4 files changed, 49 insertions(+), 52 deletions(-) diff --git a/library/stdarch/crates/core_arch/src/riscv32/zb.rs b/library/stdarch/crates/core_arch/src/riscv32/zb.rs index c50268a462200..7c5aef260b4df 100644 --- a/library/stdarch/crates/core_arch/src/riscv32/zb.rs +++ b/library/stdarch/crates/core_arch/src/riscv32/zb.rs @@ -15,16 +15,16 @@ unsafe extern "llvm-intrinsic" { fn _clmulr_32(rs1: i32, rs2: i32) -> i32; #[link_name = "llvm.riscv.zip.i32"] - fn _zip(rs1: i32) -> i32; + fn _zip_32(rs1: i32) -> i32; #[link_name = "llvm.riscv.unzip.i32"] - fn _unzip(rs1: i32) -> i32; + fn _unzip_32(rs1: i32) -> i32; } -/// Byte-wise lookup of indicies into a vector in registers. +/// Byte-wise lookup of indices into a vector in registers. /// -/// The xperm8 instruction operates on bytes. The rs1 register contains a vector of XLEN/8 -/// 8-bit elements. The rs2 register contains a vector of XLEN/8 8-bit indexes. The result is +/// The xperm8 instruction operates on bytes. The rs1 register contains a vector of 4 +/// 8-bit elements. The rs2 register contains a vector of 4 8-bit indexes. The result is /// each element in rs2 replaced by the indexed element in rs1, or zero if the index into rs2 /// is out of bounds. /// @@ -37,14 +37,14 @@ unsafe extern "llvm-intrinsic" { #[target_feature(enable = "zbkx")] #[cfg_attr(test, assert_instr(xperm8))] #[inline] -pub fn xperm8(rs1: usize, rs2: usize) -> usize { - unsafe { _xperm8_32(rs1 as i32, rs2 as i32) as usize } +pub fn xperm8_32(rs1: u32, rs2: u32) -> u32 { + unsafe { _xperm8_32(rs1 as i32, rs2 as i32) as u32 } } -/// Nibble-wise lookup of indicies into a vector. +/// Nibble-wise lookup of indices into a vector. /// -/// The xperm4 instruction operates on nibbles. The rs1 register contains a vector of XLEN/4 -/// 4-bit elements. The rs2 register contains a vector of XLEN/4 4-bit indexes. The result is +/// The xperm4 instruction operates on nibbles. The rs1 register contains a vector of 8 +/// 4-bit elements. The rs2 register contains a vector of 8 4-bit indexes. The result is /// each element in rs2 replaced by the indexed element in rs1, or zero if the index into rs2 /// is out of bounds. /// @@ -57,13 +57,13 @@ pub fn xperm8(rs1: usize, rs2: usize) -> usize { #[target_feature(enable = "zbkx")] #[cfg_attr(test, assert_instr(xperm4))] #[inline] -pub fn xperm4(rs1: usize, rs2: usize) -> usize { - unsafe { _xperm4_32(rs1 as i32, rs2 as i32) as usize } +pub fn xperm4_32(rs1: u32, rs2: u32) -> u32 { + unsafe { _xperm4_32(rs1 as i32, rs2 as i32) as u32 } } /// Carry-less multiply (high-part) /// -/// clmulh produces the upper half of the 2·XLEN carry-less product. +/// clmulh produces the upper half of the 64-bit carry-less product. /// /// Source: RISC-V Bit-Manipulation ISA-extensions /// @@ -74,13 +74,13 @@ pub fn xperm4(rs1: usize, rs2: usize) -> usize { #[target_feature(enable = "zbkc")] #[cfg_attr(test, assert_instr(clmulh))] #[inline] -pub fn clmulh(rs1: usize, rs2: usize) -> usize { - unsafe { _clmulh_32(rs1 as i32, rs2 as i32) as usize } +pub fn clmulh_32(rs1: u32, rs2: u32) -> u32 { + unsafe { _clmulh_32(rs1 as i32, rs2 as i32) as u32 } } /// Carry-less multiply (reversed) /// -/// clmulr produces bits 2·XLEN−2:XLEN-1 of the 2·XLEN carry-less product. +/// clmulr produces bits 62:31 of the 64-bit carry-less product. /// /// Source: RISC-V Bit-Manipulation ISA-extensions /// @@ -91,8 +91,8 @@ pub fn clmulh(rs1: usize, rs2: usize) -> usize { #[target_feature(enable = "zbc")] #[cfg_attr(test, assert_instr(clmulr))] #[inline] -pub fn clmulr(rs1: usize, rs2: usize) -> usize { - unsafe { _clmulr_32(rs1 as i32, rs2 as i32) as usize } +pub fn clmulr_32(rs1: u32, rs2: u32) -> u32 { + unsafe { _clmulr_32(rs1 as i32, rs2 as i32) as u32 } } /// Place upper/lower halves of the source register into odd/even bits of the destination @@ -113,8 +113,8 @@ pub fn clmulr(rs1: usize, rs2: usize) -> usize { // #[cfg_attr(test, assert_instr(zip))] #[inline] #[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] -pub fn zip(rs: u32) -> u32 { - unsafe { _zip(rs as i32) as u32 } +pub fn zip_32(rs: u32) -> u32 { + unsafe { _zip_32(rs as i32) as u32 } } /// Place odd and even bits of the source word into upper/lower halves of the destination. @@ -132,6 +132,6 @@ pub fn zip(rs: u32) -> u32 { #[cfg_attr(test, assert_instr(unzip))] #[inline] #[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] -pub fn unzip(rs: u32) -> u32 { - unsafe { _unzip(rs as i32) as u32 } +pub fn unzip_32(rs: u32) -> u32 { + unsafe { _unzip_32(rs as i32) as u32 } } diff --git a/library/stdarch/crates/core_arch/src/riscv64/zb.rs b/library/stdarch/crates/core_arch/src/riscv64/zb.rs index a26ddaa5be5e9..014c5b8c2befd 100644 --- a/library/stdarch/crates/core_arch/src/riscv64/zb.rs +++ b/library/stdarch/crates/core_arch/src/riscv64/zb.rs @@ -9,7 +9,7 @@ unsafe extern "llvm-intrinsic" { fn _xperm4_64(rs1: i64, rs2: i64) -> i64; #[link_name = "llvm.riscv.orc.b.i64"] - fn _orc_b_64(rs1: i64) -> i64; + fn _orc_b_64(rs: i64) -> i64; #[link_name = "llvm.riscv.clmul.i64"] fn _clmul_64(rs1: i64, rs2: i64) -> i64; @@ -21,10 +21,10 @@ unsafe extern "llvm-intrinsic" { fn _clmulr_64(rs1: i64, rs2: i64) -> i64; } -/// Byte-wise lookup of indicies into a vector in registers. +/// Byte-wise lookup of indices into a vector in registers. /// -/// The xperm8 instruction operates on bytes. The rs1 register contains a vector of XLEN/8 -/// 8-bit elements. The rs2 register contains a vector of XLEN/8 8-bit indexes. The result is +/// The xperm8 instruction operates on bytes. The rs1 register contains a vector of 8 +/// 8-bit elements. The rs2 register contains a vector of 8 8-bit indexes. The result is /// each element in rs2 replaced by the indexed element in rs1, or zero if the index into rs2 /// is out of bounds. /// @@ -37,14 +37,14 @@ unsafe extern "llvm-intrinsic" { #[target_feature(enable = "zbkx")] #[cfg_attr(test, assert_instr(xperm8))] #[inline] -pub fn xperm8(rs1: usize, rs2: usize) -> usize { - unsafe { _xperm8_64(rs1 as i64, rs2 as i64) as usize } +pub fn xperm8_64(rs1: u64, rs2: u64) -> u64 { + unsafe { _xperm8_64(rs1 as i64, rs2 as i64) as u64 } } -/// Nibble-wise lookup of indicies into a vector. +/// Nibble-wise lookup of indices into a vector. /// -/// The xperm4 instruction operates on nibbles. The rs1 register contains a vector of XLEN/4 -/// 4-bit elements. The rs2 register contains a vector of XLEN/4 4-bit indexes. The result is +/// The xperm4 instruction operates on nibbles. The rs1 register contains a vector of 16 +/// 4-bit elements. The rs2 register contains a vector of 16 4-bit indexes. The result is /// each element in rs2 replaced by the indexed element in rs1, or zero if the index into rs2 /// is out of bounds. /// @@ -57,8 +57,8 @@ pub fn xperm8(rs1: usize, rs2: usize) -> usize { #[target_feature(enable = "zbkx")] #[cfg_attr(test, assert_instr(xperm4))] #[inline] -pub fn xperm4(rs1: usize, rs2: usize) -> usize { - unsafe { _xperm4_64(rs1 as i64, rs2 as i64) as usize } +pub fn xperm4_64(rs1: u64, rs2: u64) -> u64 { + unsafe { _xperm4_64(rs1 as i64, rs2 as i64) as u64 } } /// Bitwise OR-Combine, byte granule @@ -76,13 +76,13 @@ pub fn xperm4(rs1: usize, rs2: usize) -> usize { #[target_feature(enable = "zbb")] #[cfg_attr(test, assert_instr(orc.b))] #[inline] -pub fn orc_b(rs: usize) -> usize { - unsafe { _orc_b_64(rs as i64) as usize } +pub fn orc_b_64(rs: u64) -> u64 { + unsafe { _orc_b_64(rs as i64) as u64 } } /// Carry-less multiply (low-part) /// -/// clmul produces the lower half of the 2·XLEN carry-less product. +/// clmul produces the lower half of the 128-bit carry-less product. /// /// Source: RISC-V Bit-Manipulation ISA-extensions /// @@ -93,13 +93,13 @@ pub fn orc_b(rs: usize) -> usize { #[target_feature(enable = "zbkc")] #[cfg_attr(test, assert_instr(clmul))] #[inline] -pub fn clmul(rs1: usize, rs2: usize) -> usize { - unsafe { _clmul_64(rs1 as i64, rs2 as i64) as usize } +pub fn clmul_64(rs1: u64, rs2: u64) -> u64 { + unsafe { _clmul_64(rs1 as i64, rs2 as i64) as u64 } } /// Carry-less multiply (high-part) /// -/// clmulh produces the upper half of the 2·XLEN carry-less product. +/// clmulh produces the upper half of the 128-bit carry-less product. /// /// Source: RISC-V Bit-Manipulation ISA-extensions /// @@ -110,13 +110,13 @@ pub fn clmul(rs1: usize, rs2: usize) -> usize { #[target_feature(enable = "zbkc")] #[cfg_attr(test, assert_instr(clmulh))] #[inline] -pub fn clmulh(rs1: usize, rs2: usize) -> usize { - unsafe { _clmulh_64(rs1 as i64, rs2 as i64) as usize } +pub fn clmulh_64(rs1: u64, rs2: u64) -> u64 { + unsafe { _clmulh_64(rs1 as i64, rs2 as i64) as u64 } } /// Carry-less multiply (reversed) /// -/// clmulr produces bits 2·XLEN−2:XLEN-1 of the 2·XLEN carry-less product. +/// clmulr produces bits 126:63 of the 128-bit carry-less product. /// /// Source: RISC-V Bit-Manipulation ISA-extensions /// @@ -127,6 +127,6 @@ pub fn clmulh(rs1: usize, rs2: usize) -> usize { #[target_feature(enable = "zbc")] #[cfg_attr(test, assert_instr(clmulr))] #[inline] -pub fn clmulr(rs1: usize, rs2: usize) -> usize { - unsafe { _clmulr_64(rs1 as i64, rs2 as i64) as usize } +pub fn clmulr_64(rs1: u64, rs2: u64) -> u64 { + unsafe { _clmulr_64(rs1 as i64, rs2 as i64) as u64 } } diff --git a/library/stdarch/crates/core_arch/src/riscv_shared/mod.rs b/library/stdarch/crates/core_arch/src/riscv_shared/mod.rs index b99b963eddb3f..f3933f58b1ca5 100644 --- a/library/stdarch/crates/core_arch/src/riscv_shared/mod.rs +++ b/library/stdarch/crates/core_arch/src/riscv_shared/mod.rs @@ -25,13 +25,11 @@ //! single inline assembly block and make sure to restore the original rounding mode before the end //! of the block. mod p; -#[cfg(target_arch = "riscv32")] mod zb; mod zk; #[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] pub use p::*; -#[cfg(target_arch = "riscv32")] #[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] pub use zb::*; #[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] diff --git a/library/stdarch/crates/core_arch/src/riscv_shared/zb.rs b/library/stdarch/crates/core_arch/src/riscv_shared/zb.rs index 2f530058985f7..83d8bc936735d 100644 --- a/library/stdarch/crates/core_arch/src/riscv_shared/zb.rs +++ b/library/stdarch/crates/core_arch/src/riscv_shared/zb.rs @@ -1,7 +1,6 @@ #[cfg(test)] use stdarch_test::assert_instr; -#[cfg(target_arch = "riscv32")] unsafe extern "llvm-intrinsic" { #[link_name = "llvm.riscv.orc.b.i32"] fn _orc_b_32(rs: i32) -> i32; @@ -25,13 +24,13 @@ unsafe extern "llvm-intrinsic" { #[target_feature(enable = "zbb")] #[cfg_attr(test, assert_instr(orc.b))] #[inline] -pub fn orc_b(rs: usize) -> usize { - unsafe { _orc_b_32(rs as i32) as usize } +pub fn orc_b_32(rs: u32) -> u32 { + unsafe { _orc_b_32(rs as i32) as u32 } } /// Carry-less multiply (low-part) /// -/// clmul produces the lower half of the 2·XLEN carry-less product. +/// clmul produces the lower half of the 32-bit carry-less product. /// /// Source: RISC-V Bit-Manipulation ISA-extensions /// @@ -42,6 +41,6 @@ pub fn orc_b(rs: usize) -> usize { #[target_feature(enable = "zbkc")] #[cfg_attr(test, assert_instr(clmul))] #[inline] -pub fn clmul(rs1: usize, rs2: usize) -> usize { - unsafe { _clmul_32(rs1 as i32, rs2 as i32) as usize } +pub fn clmul_32(rs1: u32, rs2: u32) -> u32 { + unsafe { _clmul_32(rs1 as i32, rs2 as i32) as u32 } } From cac7fb77c3333cae5fb094881ceb1ef289078971 Mon Sep 17 00:00:00 2001 From: TechnoPorg Date: Mon, 26 Oct 2026 09:40:37 -0400 Subject: [PATCH 15/43] refactor: make LLVM RISC-V intrinsics use unsigned types --- .../crates/core_arch/src/riscv32/zb.rs | 24 +++++------ .../crates/core_arch/src/riscv32/zk.rs | 42 +++++++++---------- .../crates/core_arch/src/riscv64/zb.rs | 24 +++++------ .../crates/core_arch/src/riscv64/zk.rs | 36 ++++++++-------- .../crates/core_arch/src/riscv_shared/zb.rs | 8 ++-- .../crates/core_arch/src/riscv_shared/zk.rs | 32 +++++++------- 6 files changed, 83 insertions(+), 83 deletions(-) diff --git a/library/stdarch/crates/core_arch/src/riscv32/zb.rs b/library/stdarch/crates/core_arch/src/riscv32/zb.rs index 7c5aef260b4df..1639890baf9bd 100644 --- a/library/stdarch/crates/core_arch/src/riscv32/zb.rs +++ b/library/stdarch/crates/core_arch/src/riscv32/zb.rs @@ -3,22 +3,22 @@ use stdarch_test::assert_instr; unsafe extern "llvm-intrinsic" { #[link_name = "llvm.riscv.xperm8.i32"] - fn _xperm8_32(rs1: i32, rs2: i32) -> i32; + fn _xperm8_32(rs1: u32, rs2: u32) -> u32; #[link_name = "llvm.riscv.xperm4.i32"] - fn _xperm4_32(rs1: i32, rs2: i32) -> i32; + fn _xperm4_32(rs1: u32, rs2: u32) -> u32; #[link_name = "llvm.riscv.clmulh.i32"] - fn _clmulh_32(rs1: i32, rs2: i32) -> i32; + fn _clmulh_32(rs1: u32, rs2: u32) -> u32; #[link_name = "llvm.riscv.clmulr.i32"] - fn _clmulr_32(rs1: i32, rs2: i32) -> i32; + fn _clmulr_32(rs1: u32, rs2: u32) -> u32; #[link_name = "llvm.riscv.zip.i32"] - fn _zip_32(rs1: i32) -> i32; + fn _zip_32(rs1: u32) -> u32; #[link_name = "llvm.riscv.unzip.i32"] - fn _unzip_32(rs1: i32) -> i32; + fn _unzip_32(rs1: u32) -> u32; } /// Byte-wise lookup of indices into a vector in registers. @@ -38,7 +38,7 @@ unsafe extern "llvm-intrinsic" { #[cfg_attr(test, assert_instr(xperm8))] #[inline] pub fn xperm8_32(rs1: u32, rs2: u32) -> u32 { - unsafe { _xperm8_32(rs1 as i32, rs2 as i32) as u32 } + unsafe { _xperm8_32(rs1, rs2) } } /// Nibble-wise lookup of indices into a vector. @@ -58,7 +58,7 @@ pub fn xperm8_32(rs1: u32, rs2: u32) -> u32 { #[cfg_attr(test, assert_instr(xperm4))] #[inline] pub fn xperm4_32(rs1: u32, rs2: u32) -> u32 { - unsafe { _xperm4_32(rs1 as i32, rs2 as i32) as u32 } + unsafe { _xperm4_32(rs1, rs2) } } /// Carry-less multiply (high-part) @@ -75,7 +75,7 @@ pub fn xperm4_32(rs1: u32, rs2: u32) -> u32 { #[cfg_attr(test, assert_instr(clmulh))] #[inline] pub fn clmulh_32(rs1: u32, rs2: u32) -> u32 { - unsafe { _clmulh_32(rs1 as i32, rs2 as i32) as u32 } + unsafe { _clmulh_32(rs1, rs2) } } /// Carry-less multiply (reversed) @@ -92,7 +92,7 @@ pub fn clmulh_32(rs1: u32, rs2: u32) -> u32 { #[cfg_attr(test, assert_instr(clmulr))] #[inline] pub fn clmulr_32(rs1: u32, rs2: u32) -> u32 { - unsafe { _clmulr_32(rs1 as i32, rs2 as i32) as u32 } + unsafe { _clmulr_32(rs1, rs2) } } /// Place upper/lower halves of the source register into odd/even bits of the destination @@ -114,7 +114,7 @@ pub fn clmulr_32(rs1: u32, rs2: u32) -> u32 { #[inline] #[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] pub fn zip_32(rs: u32) -> u32 { - unsafe { _zip_32(rs as i32) as u32 } + unsafe { _zip_32(rs) } } /// Place odd and even bits of the source word into upper/lower halves of the destination. @@ -133,5 +133,5 @@ pub fn zip_32(rs: u32) -> u32 { #[inline] #[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] pub fn unzip_32(rs: u32) -> u32 { - unsafe { _unzip_32(rs as i32) as u32 } + unsafe { _unzip_32(rs) } } diff --git a/library/stdarch/crates/core_arch/src/riscv32/zk.rs b/library/stdarch/crates/core_arch/src/riscv32/zk.rs index 1613245182863..34e5fb90a99ed 100644 --- a/library/stdarch/crates/core_arch/src/riscv32/zk.rs +++ b/library/stdarch/crates/core_arch/src/riscv32/zk.rs @@ -3,34 +3,34 @@ use stdarch_test::assert_instr; unsafe extern "llvm-intrinsic" { #[link_name = "llvm.riscv.aes32esi"] - fn _aes32esi(rs1: i32, rs2: i32, bs: i32) -> i32; + fn _aes32esi(rs1: u32, rs2: u32, bs: u32) -> u32; #[link_name = "llvm.riscv.aes32esmi"] - fn _aes32esmi(rs1: i32, rs2: i32, bs: i32) -> i32; + fn _aes32esmi(rs1: u32, rs2: u32, bs: u32) -> u32; #[link_name = "llvm.riscv.aes32dsi"] - fn _aes32dsi(rs1: i32, rs2: i32, bs: i32) -> i32; + fn _aes32dsi(rs1: u32, rs2: u32, bs: u32) -> u32; #[link_name = "llvm.riscv.aes32dsmi"] - fn _aes32dsmi(rs1: i32, rs2: i32, bs: i32) -> i32; + fn _aes32dsmi(rs1: u32, rs2: u32, bs: u32) -> u32; #[link_name = "llvm.riscv.sha512sig0h"] - fn _sha512sig0h(rs1: i32, rs2: i32) -> i32; + fn _sha512sig0h(rs1: u32, rs2: u32) -> u32; #[link_name = "llvm.riscv.sha512sig0l"] - fn _sha512sig0l(rs1: i32, rs2: i32) -> i32; + fn _sha512sig0l(rs1: u32, rs2: u32) -> u32; #[link_name = "llvm.riscv.sha512sig1h"] - fn _sha512sig1h(rs1: i32, rs2: i32) -> i32; + fn _sha512sig1h(rs1: u32, rs2: u32) -> u32; #[link_name = "llvm.riscv.sha512sig1l"] - fn _sha512sig1l(rs1: i32, rs2: i32) -> i32; + fn _sha512sig1l(rs1: u32, rs2: u32) -> u32; #[link_name = "llvm.riscv.sha512sum0r"] - fn _sha512sum0r(rs1: i32, rs2: i32) -> i32; + fn _sha512sum0r(rs1: u32, rs2: u32) -> u32; #[link_name = "llvm.riscv.sha512sum1r"] - fn _sha512sum1r(rs1: i32, rs2: i32) -> i32; + fn _sha512sum1r(rs1: u32, rs2: u32) -> u32; } /// AES final round encryption instruction for RV32. @@ -59,10 +59,10 @@ unsafe extern "llvm-intrinsic" { pub fn aes32esi(rs1: u32, rs2: u32) -> u32 { static_assert!(BS < 4); - unsafe { _aes32esi(rs1 as i32, rs2 as i32, BS as i32) as u32 } + unsafe { _aes32esi(rs1, rs2, BS as u32) } } -/// AES middle round encryption instruction for RV32 with. +/// AES middle round encryption instruction for RV32. /// /// This instruction sources a single byte from rs2 according to bs. To this it applies the /// forward AES SBox operation, and a partial forward MixColumn, before XOR’ing the result with @@ -88,7 +88,7 @@ pub fn aes32esi(rs1: u32, rs2: u32) -> u32 { pub fn aes32esmi(rs1: u32, rs2: u32) -> u32 { static_assert!(BS < 4); - unsafe { _aes32esmi(rs1 as i32, rs2 as i32, BS as i32) as u32 } + unsafe { _aes32esmi(rs1, rs2, BS as u32) } } /// AES final round decryption instruction for RV32. @@ -116,7 +116,7 @@ pub fn aes32esmi(rs1: u32, rs2: u32) -> u32 { pub fn aes32dsi(rs1: u32, rs2: u32) -> u32 { static_assert!(BS < 4); - unsafe { _aes32dsi(rs1 as i32, rs2 as i32, BS as i32) as u32 } + unsafe { _aes32dsi(rs1, rs2, BS as u32) } } /// AES middle round decryption instruction for RV32. @@ -145,7 +145,7 @@ pub fn aes32dsi(rs1: u32, rs2: u32) -> u32 { pub fn aes32dsmi(rs1: u32, rs2: u32) -> u32 { static_assert!(BS < 4); - unsafe { _aes32dsmi(rs1 as i32, rs2 as i32, BS as i32) as u32 } + unsafe { _aes32dsmi(rs1, rs2, BS as u32) } } /// Implements the high half of the Sigma0 transformation, as used in the SHA2-512 hash @@ -168,7 +168,7 @@ pub fn aes32dsmi(rs1: u32, rs2: u32) -> u32 { #[inline] #[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] pub fn sha512sig0h(rs1: u32, rs2: u32) -> u32 { - unsafe { _sha512sig0h(rs1 as i32, rs2 as i32) as u32 } + unsafe { _sha512sig0h(rs1, rs2) } } /// Implements the low half of the Sigma0 transformation, as used in the SHA2-512 hash function @@ -191,7 +191,7 @@ pub fn sha512sig0h(rs1: u32, rs2: u32) -> u32 { #[inline] #[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] pub fn sha512sig0l(rs1: u32, rs2: u32) -> u32 { - unsafe { _sha512sig0l(rs1 as i32, rs2 as i32) as u32 } + unsafe { _sha512sig0l(rs1, rs2) } } /// Implements the high half of the Sigma1 transformation, as used in the SHA2-512 hash @@ -214,7 +214,7 @@ pub fn sha512sig0l(rs1: u32, rs2: u32) -> u32 { #[inline] #[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] pub fn sha512sig1h(rs1: u32, rs2: u32) -> u32 { - unsafe { _sha512sig1h(rs1 as i32, rs2 as i32) as u32 } + unsafe { _sha512sig1h(rs1, rs2) } } /// Implements the low half of the Sigma1 transformation, as used in the SHA2-512 hash function @@ -236,7 +236,7 @@ pub fn sha512sig1h(rs1: u32, rs2: u32) -> u32 { #[inline] #[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] pub fn sha512sig1l(rs1: u32, rs2: u32) -> u32 { - unsafe { _sha512sig1l(rs1 as i32, rs2 as i32) as u32 } + unsafe { _sha512sig1l(rs1, rs2) } } /// Implements the Sum0 transformation, as used in the SHA2-512 hash function \[49\] (Section @@ -258,7 +258,7 @@ pub fn sha512sig1l(rs1: u32, rs2: u32) -> u32 { #[inline] #[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] pub fn sha512sum0r(rs1: u32, rs2: u32) -> u32 { - unsafe { _sha512sum0r(rs1 as i32, rs2 as i32) as u32 } + unsafe { _sha512sum0r(rs1, rs2) } } /// Implements the Sum1 transformation, as used in the SHA2-512 hash function \[49\] (Section @@ -280,5 +280,5 @@ pub fn sha512sum0r(rs1: u32, rs2: u32) -> u32 { #[inline] #[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] pub fn sha512sum1r(rs1: u32, rs2: u32) -> u32 { - unsafe { _sha512sum1r(rs1 as i32, rs2 as i32) as u32 } + unsafe { _sha512sum1r(rs1, rs2) } } diff --git a/library/stdarch/crates/core_arch/src/riscv64/zb.rs b/library/stdarch/crates/core_arch/src/riscv64/zb.rs index 014c5b8c2befd..95c6fdf9cda1b 100644 --- a/library/stdarch/crates/core_arch/src/riscv64/zb.rs +++ b/library/stdarch/crates/core_arch/src/riscv64/zb.rs @@ -3,22 +3,22 @@ use stdarch_test::assert_instr; unsafe extern "llvm-intrinsic" { #[link_name = "llvm.riscv.xperm8.i64"] - fn _xperm8_64(rs1: i64, rs2: i64) -> i64; + fn _xperm8_64(rs1: u64, rs2: u64) -> u64; #[link_name = "llvm.riscv.xperm4.i64"] - fn _xperm4_64(rs1: i64, rs2: i64) -> i64; + fn _xperm4_64(rs1: u64, rs2: u64) -> u64; #[link_name = "llvm.riscv.orc.b.i64"] - fn _orc_b_64(rs: i64) -> i64; + fn _orc_b_64(rs: u64) -> u64; #[link_name = "llvm.riscv.clmul.i64"] - fn _clmul_64(rs1: i64, rs2: i64) -> i64; + fn _clmul_64(rs1: u64, rs2: u64) -> u64; #[link_name = "llvm.riscv.clmulh.i64"] - fn _clmulh_64(rs1: i64, rs2: i64) -> i64; + fn _clmulh_64(rs1: u64, rs2: u64) -> u64; #[link_name = "llvm.riscv.clmulr.i64"] - fn _clmulr_64(rs1: i64, rs2: i64) -> i64; + fn _clmulr_64(rs1: u64, rs2: u64) -> u64; } /// Byte-wise lookup of indices into a vector in registers. @@ -38,7 +38,7 @@ unsafe extern "llvm-intrinsic" { #[cfg_attr(test, assert_instr(xperm8))] #[inline] pub fn xperm8_64(rs1: u64, rs2: u64) -> u64 { - unsafe { _xperm8_64(rs1 as i64, rs2 as i64) as u64 } + unsafe { _xperm8_64(rs1, rs2) } } /// Nibble-wise lookup of indices into a vector. @@ -58,7 +58,7 @@ pub fn xperm8_64(rs1: u64, rs2: u64) -> u64 { #[cfg_attr(test, assert_instr(xperm4))] #[inline] pub fn xperm4_64(rs1: u64, rs2: u64) -> u64 { - unsafe { _xperm4_64(rs1 as i64, rs2 as i64) as u64 } + unsafe { _xperm4_64(rs1, rs2) } } /// Bitwise OR-Combine, byte granule @@ -77,7 +77,7 @@ pub fn xperm4_64(rs1: u64, rs2: u64) -> u64 { #[cfg_attr(test, assert_instr(orc.b))] #[inline] pub fn orc_b_64(rs: u64) -> u64 { - unsafe { _orc_b_64(rs as i64) as u64 } + unsafe { _orc_b_64(rs) } } /// Carry-less multiply (low-part) @@ -94,7 +94,7 @@ pub fn orc_b_64(rs: u64) -> u64 { #[cfg_attr(test, assert_instr(clmul))] #[inline] pub fn clmul_64(rs1: u64, rs2: u64) -> u64 { - unsafe { _clmul_64(rs1 as i64, rs2 as i64) as u64 } + unsafe { _clmul_64(rs1, rs2) } } /// Carry-less multiply (high-part) @@ -111,7 +111,7 @@ pub fn clmul_64(rs1: u64, rs2: u64) -> u64 { #[cfg_attr(test, assert_instr(clmulh))] #[inline] pub fn clmulh_64(rs1: u64, rs2: u64) -> u64 { - unsafe { _clmulh_64(rs1 as i64, rs2 as i64) as u64 } + unsafe { _clmulh_64(rs1, rs2) } } /// Carry-less multiply (reversed) @@ -128,5 +128,5 @@ pub fn clmulh_64(rs1: u64, rs2: u64) -> u64 { #[cfg_attr(test, assert_instr(clmulr))] #[inline] pub fn clmulr_64(rs1: u64, rs2: u64) -> u64 { - unsafe { _clmulr_64(rs1 as i64, rs2 as i64) as u64 } + unsafe { _clmulr_64(rs1, rs2) } } diff --git a/library/stdarch/crates/core_arch/src/riscv64/zk.rs b/library/stdarch/crates/core_arch/src/riscv64/zk.rs index 21cfefafdd5c0..ea5486b39199c 100644 --- a/library/stdarch/crates/core_arch/src/riscv64/zk.rs +++ b/library/stdarch/crates/core_arch/src/riscv64/zk.rs @@ -5,31 +5,31 @@ use crate::arch::asm; unsafe extern "llvm-intrinsic" { #[link_name = "llvm.riscv.aes64es"] - fn _aes64es(rs1: i64, rs2: i64) -> i64; + fn _aes64es(rs1: u64, rs2: u64) -> u64; #[link_name = "llvm.riscv.aes64esm"] - fn _aes64esm(rs1: i64, rs2: i64) -> i64; + fn _aes64esm(rs1: u64, rs2: u64) -> u64; #[link_name = "llvm.riscv.aes64ds"] - fn _aes64ds(rs1: i64, rs2: i64) -> i64; + fn _aes64ds(rs1: u64, rs2: u64) -> u64; #[link_name = "llvm.riscv.aes64dsm"] - fn _aes64dsm(rs1: i64, rs2: i64) -> i64; + fn _aes64dsm(rs1: u64, rs2: u64) -> u64; #[link_name = "llvm.riscv.aes64im"] - fn _aes64im(rs1: i64) -> i64; + fn _aes64im(rs1: u64) -> u64; #[link_name = "llvm.riscv.sha512sig0"] - fn _sha512sig0(rs1: i64) -> i64; + fn _sha512sig0(rs1: u64) -> u64; #[link_name = "llvm.riscv.sha512sig1"] - fn _sha512sig1(rs1: i64) -> i64; + fn _sha512sig1(rs1: u64) -> u64; #[link_name = "llvm.riscv.sha512sum0"] - fn _sha512sum0(rs1: i64) -> i64; + fn _sha512sum0(rs1: u64) -> u64; #[link_name = "llvm.riscv.sha512sum1"] - fn _sha512sum1(rs1: i64) -> i64; + fn _sha512sum1(rs1: u64) -> u64; } /// AES final round encryption instruction for RV64. @@ -49,7 +49,7 @@ unsafe extern "llvm-intrinsic" { #[inline] #[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] pub fn aes64es(rs1: u64, rs2: u64) -> u64 { - unsafe { _aes64es(rs1 as i64, rs2 as i64) as u64 } + unsafe { _aes64es(rs1, rs2) } } /// AES middle round encryption instruction for RV64. @@ -69,7 +69,7 @@ pub fn aes64es(rs1: u64, rs2: u64) -> u64 { #[inline] #[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] pub fn aes64esm(rs1: u64, rs2: u64) -> u64 { - unsafe { _aes64esm(rs1 as i64, rs2 as i64) as u64 } + unsafe { _aes64esm(rs1, rs2) } } /// AES final round decryption instruction for RV64. @@ -89,7 +89,7 @@ pub fn aes64esm(rs1: u64, rs2: u64) -> u64 { #[inline] #[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] pub fn aes64ds(rs1: u64, rs2: u64) -> u64 { - unsafe { _aes64ds(rs1 as i64, rs2 as i64) as u64 } + unsafe { _aes64ds(rs1, rs2) } } /// AES middle round decryption instruction for RV64. @@ -109,7 +109,7 @@ pub fn aes64ds(rs1: u64, rs2: u64) -> u64 { #[inline] #[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] pub fn aes64dsm(rs1: u64, rs2: u64) -> u64 { - unsafe { _aes64dsm(rs1 as i64, rs2 as i64) as u64 } + unsafe { _aes64dsm(rs1, rs2) } } /// This instruction implements part of the KeySchedule operation for the AES Block cipher @@ -200,7 +200,7 @@ pub fn aes64ks2(rs1: u64, rs2: u64) -> u64 { #[inline] #[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] pub fn aes64im(rs1: u64) -> u64 { - unsafe { _aes64im(rs1 as i64) as u64 } + unsafe { _aes64im(rs1) } } /// Implements the Sigma0 transformation function as used in the SHA2-512 hash function \[49\] @@ -220,7 +220,7 @@ pub fn aes64im(rs1: u64) -> u64 { #[inline] #[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] pub fn sha512sig0(rs1: u64) -> u64 { - unsafe { _sha512sig0(rs1 as i64) as u64 } + unsafe { _sha512sig0(rs1) } } /// Implements the Sigma1 transformation function as used in the SHA2-512 hash function \[49\] @@ -240,7 +240,7 @@ pub fn sha512sig0(rs1: u64) -> u64 { #[inline] #[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] pub fn sha512sig1(rs1: u64) -> u64 { - unsafe { _sha512sig1(rs1 as i64) as u64 } + unsafe { _sha512sig1(rs1) } } /// Implements the Sum0 transformation function as used in the SHA2-512 hash function \[49\] @@ -260,7 +260,7 @@ pub fn sha512sig1(rs1: u64) -> u64 { #[inline] #[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] pub fn sha512sum0(rs1: u64) -> u64 { - unsafe { _sha512sum0(rs1 as i64) as u64 } + unsafe { _sha512sum0(rs1) } } /// Implements the Sum1 transformation function as used in the SHA2-512 hash function \[49\] @@ -280,5 +280,5 @@ pub fn sha512sum0(rs1: u64) -> u64 { #[inline] #[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] pub fn sha512sum1(rs1: u64) -> u64 { - unsafe { _sha512sum1(rs1 as i64) as u64 } + unsafe { _sha512sum1(rs1) } } diff --git a/library/stdarch/crates/core_arch/src/riscv_shared/zb.rs b/library/stdarch/crates/core_arch/src/riscv_shared/zb.rs index 83d8bc936735d..04a42f02357d1 100644 --- a/library/stdarch/crates/core_arch/src/riscv_shared/zb.rs +++ b/library/stdarch/crates/core_arch/src/riscv_shared/zb.rs @@ -3,10 +3,10 @@ use stdarch_test::assert_instr; unsafe extern "llvm-intrinsic" { #[link_name = "llvm.riscv.orc.b.i32"] - fn _orc_b_32(rs: i32) -> i32; + fn _orc_b_32(rs: u32) -> u32; #[link_name = "llvm.riscv.clmul.i32"] - fn _clmul_32(rs1: i32, rs2: i32) -> i32; + fn _clmul_32(rs1: u32, rs2: u32) -> u32; } /// Bitwise OR-Combine, byte granule @@ -25,7 +25,7 @@ unsafe extern "llvm-intrinsic" { #[cfg_attr(test, assert_instr(orc.b))] #[inline] pub fn orc_b_32(rs: u32) -> u32 { - unsafe { _orc_b_32(rs as i32) as u32 } + unsafe { _orc_b_32(rs) } } /// Carry-less multiply (low-part) @@ -42,5 +42,5 @@ pub fn orc_b_32(rs: u32) -> u32 { #[cfg_attr(test, assert_instr(clmul))] #[inline] pub fn clmul_32(rs1: u32, rs2: u32) -> u32 { - unsafe { _clmul_32(rs1 as i32, rs2 as i32) as u32 } + unsafe { _clmul_32(rs1, rs2) } } diff --git a/library/stdarch/crates/core_arch/src/riscv_shared/zk.rs b/library/stdarch/crates/core_arch/src/riscv_shared/zk.rs index 0fcf13c7ac6d4..6966686731e38 100644 --- a/library/stdarch/crates/core_arch/src/riscv_shared/zk.rs +++ b/library/stdarch/crates/core_arch/src/riscv_shared/zk.rs @@ -3,28 +3,28 @@ use stdarch_test::assert_instr; unsafe extern "llvm-intrinsic" { #[link_name = "llvm.riscv.sm4ed"] - fn _sm4ed(rs1: i32, rs2: i32, bs: i32) -> i32; + fn _sm4ed(rs1: u32, rs2: u32, bs: u32) -> u32; #[link_name = "llvm.riscv.sm4ks"] - fn _sm4ks(rs1: i32, rs2: i32, bs: i32) -> i32; + fn _sm4ks(rs1: u32, rs2: u32, bs: u32) -> u32; #[link_name = "llvm.riscv.sm3p0"] - fn _sm3p0(rs1: i32) -> i32; + fn _sm3p0(rs1: u32) -> u32; #[link_name = "llvm.riscv.sm3p1"] - fn _sm3p1(rs1: i32) -> i32; + fn _sm3p1(rs1: u32) -> u32; #[link_name = "llvm.riscv.sha256sig0"] - fn _sha256sig0(rs1: i32) -> i32; + fn _sha256sig0(rs1: u32) -> u32; #[link_name = "llvm.riscv.sha256sig1"] - fn _sha256sig1(rs1: i32) -> i32; + fn _sha256sig1(rs1: u32) -> u32; #[link_name = "llvm.riscv.sha256sum0"] - fn _sha256sum0(rs1: i32) -> i32; + fn _sha256sum0(rs1: u32) -> u32; #[link_name = "llvm.riscv.sha256sum1"] - fn _sha256sum1(rs1: i32) -> i32; + fn _sha256sum1(rs1: u32) -> u32; } /// Implements the Sigma0 transformation function as used in the SHA2-256 hash function \[49\] @@ -47,7 +47,7 @@ unsafe extern "llvm-intrinsic" { #[cfg_attr(test, assert_instr(sha256sig0))] #[inline] pub fn sha256sig0(rs1: u32) -> u32 { - unsafe { _sha256sig0(rs1 as i32) as u32 } + unsafe { _sha256sig0(rs1) } } /// Implements the Sigma1 transformation function as used in the SHA2-256 hash function \[49\] @@ -70,7 +70,7 @@ pub fn sha256sig0(rs1: u32) -> u32 { #[cfg_attr(test, assert_instr(sha256sig1))] #[inline] pub fn sha256sig1(rs1: u32) -> u32 { - unsafe { _sha256sig1(rs1 as i32) as u32 } + unsafe { _sha256sig1(rs1) } } /// Implements the Sum0 transformation function as used in the SHA2-256 hash function \[49\] @@ -93,7 +93,7 @@ pub fn sha256sig1(rs1: u32) -> u32 { #[cfg_attr(test, assert_instr(sha256sum0))] #[inline] pub fn sha256sum0(rs1: u32) -> u32 { - unsafe { _sha256sum0(rs1 as i32) as u32 } + unsafe { _sha256sum0(rs1) } } /// Implements the Sum1 transformation function as used in the SHA2-256 hash function \[49\] @@ -116,7 +116,7 @@ pub fn sha256sum0(rs1: u32) -> u32 { #[cfg_attr(test, assert_instr(sha256sum1))] #[inline] pub fn sha256sum1(rs1: u32) -> u32 { - unsafe { _sha256sum1(rs1 as i32) as u32 } + unsafe { _sha256sum1(rs1) } } /// Accelerates the block encrypt/decrypt operation of the SM4 block cipher \[5, 31\]. @@ -192,7 +192,7 @@ pub fn sha256sum1(rs1: u32) -> u32 { pub fn sm4ed(rs1: u32, rs2: u32) -> u32 { static_assert!(BS < 4); - unsafe { _sm4ed(rs1 as i32, rs2 as i32, BS as i32) as u32 } + unsafe { _sm4ed(rs1, rs2, BS as u32) } } /// Accelerates the Key Schedule operation of the SM4 block cipher \[5, 31\] with `bs=0`. @@ -268,7 +268,7 @@ pub fn sm4ed(rs1: u32, rs2: u32) -> u32 { pub fn sm4ks(rs1: u32, rs2: u32) -> u32 { static_assert!(BS < 4); - unsafe { _sm4ks(rs1 as i32, rs2 as i32, BS as i32) as u32 } + unsafe { _sm4ks(rs1, rs2, BS as u32) } } /// Implements the P0 transformation function as used in the SM3 hash function [4, 30]. @@ -303,7 +303,7 @@ pub fn sm4ks(rs1: u32, rs2: u32) -> u32 { #[cfg_attr(test, assert_instr(sm3p0))] #[inline] pub fn sm3p0(rs1: u32) -> u32 { - unsafe { _sm3p0(rs1 as i32) as u32 } + unsafe { _sm3p0(rs1) } } /// Implements the P1 transformation function as used in the SM3 hash function [4, 30]. @@ -344,5 +344,5 @@ pub fn sm3p0(rs1: u32) -> u32 { #[cfg_attr(test, assert_instr(sm3p1))] #[inline] pub fn sm3p1(rs1: u32) -> u32 { - unsafe { _sm3p1(rs1 as i32) as u32 } + unsafe { _sm3p1(rs1) } } From dae3a884f753e7c9d2435cef7c44a685c0c667fa Mon Sep 17 00:00:00 2001 From: TechnoPorg Date: Mon, 12 Oct 2026 09:11:54 -0400 Subject: [PATCH 16/43] cleanup: remove rustc_legacy_const_generics from unstable intrinsics --- .../crates/core_arch/src/hexagon/scalar.rs | 160 ------------------ .../stdarch/crates/core_arch/src/mips/msa.rs | 140 --------------- .../crates/core_arch/src/powerpc/vsx.rs | 1 - .../crates/core_arch/src/riscv32/zk.rs | 4 - .../crates/core_arch/src/riscv64/zk.rs | 1 - .../crates/core_arch/src/riscv_shared/zk.rs | 20 +-- .../crates/stdarch-gen-hexagon/src/scalar.rs | 11 -- .../stdarch/crates/stdarch-verify/src/lib.rs | 30 +--- .../crates/stdarch-verify/tests/arm.rs | 10 +- .../crates/stdarch-verify/tests/mips.rs | 48 +++--- .../crates/stdarch-verify/tests/x86-intel.rs | 4 +- 11 files changed, 53 insertions(+), 376 deletions(-) diff --git a/library/stdarch/crates/core_arch/src/hexagon/scalar.rs b/library/stdarch/crates/core_arch/src/hexagon/scalar.rs index 42429a95901c4..5772fd41ef576 100644 --- a/library/stdarch/crates/core_arch/src/hexagon/scalar.rs +++ b/library/stdarch/crates/core_arch/src/hexagon/scalar.rs @@ -2021,7 +2021,6 @@ pub unsafe fn Q6_R_add_RlRl_sat(rt: i32, rs: i32) -> i32 { /// Instruction Type: ALU32_ADDI /// Execution Slots: SLOT0123 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(add, IS16 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_add_RI(rs: i32) -> i32 { @@ -2089,7 +2088,6 @@ pub unsafe fn Q6_R_and_RR(rs: i32, rt: i32) -> i32 { /// Instruction Type: ALU32_2op /// Execution Slots: SLOT0123 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(and, IS10 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_and_RI(rs: i32) -> i32 { @@ -2179,7 +2177,6 @@ pub unsafe fn Q6_R_combine_RlRl(rt: i32, rs: i32) -> i32 { /// Instruction Type: ALU32_2op /// Execution Slots: SLOT0123 #[inline(always)] -#[rustc_legacy_const_generics(0, 1)] #[cfg_attr(test, assert_instr(combine, IS8 = 0, IS8_2 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_combine_II() -> i64 { @@ -2358,7 +2355,6 @@ pub unsafe fn Q6_R_or_RR(rs: i32, rt: i32) -> i32 { /// Instruction Type: ALU32_2op /// Execution Slots: SLOT0123 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(or, IS10 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_or_RI(rs: i32) -> i32 { @@ -2602,7 +2598,6 @@ pub unsafe fn Q6_P_sub_PP(rtt: i64, rss: i64) -> i64 { /// Instruction Type: ALU32_2op /// Execution Slots: SLOT0123 #[inline(always)] -#[rustc_legacy_const_generics(0)] #[cfg_attr(test, assert_instr(sub, IS10 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_sub_IR(rs: i32) -> i32 { @@ -2779,7 +2774,6 @@ pub unsafe fn Q6_R_equals_R(rs: i32) -> i32 { /// Instruction Type: ALU32_2op /// Execution Slots: SLOT0123 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_Rh_equals_I(rx: i32) -> i32 { static_assert_uimm_bits!(IU16, 16); @@ -2791,7 +2785,6 @@ pub unsafe fn Q6_Rh_equals_I(rx: i32) -> i32 { /// Instruction Type: ALU32_2op /// Execution Slots: SLOT0123 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_Rl_equals_I(rx: i32) -> i32 { static_assert_uimm_bits!(IU16, 16); @@ -2813,7 +2806,6 @@ pub unsafe fn Q6_P_equals_P(rss: i64) -> i64 { /// Instruction Type: ALU64 /// Execution Slots: SLOT0123 #[inline(always)] -#[rustc_legacy_const_generics(0)] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_equals_I() -> i64 { static_assert_simm_bits!(IS8, 8); @@ -2825,7 +2817,6 @@ pub unsafe fn Q6_P_equals_I() -> i64 { /// Instruction Type: ALU32_2op /// Execution Slots: SLOT0123 #[inline(always)] -#[rustc_legacy_const_generics(0)] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_equals_I() -> i32 { static_assert_simm_bits!(IS16, 16); @@ -3607,7 +3598,6 @@ pub unsafe fn Q6_P_bitsplit_RR(rs: i32, rt: i32) -> i64 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(bitsplit, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_bitsplit_RI(rs: i32) -> i64 { @@ -3642,7 +3632,6 @@ pub unsafe fn Q6_p_cmpb_eq_RR(rs: i32, rt: i32) -> i32 { /// Instruction Type: ALU64 /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(cmpb, IU8 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_p_cmpb_eq_RI(rs: i32) -> i32 { @@ -3666,7 +3655,6 @@ pub unsafe fn Q6_p_cmpb_gt_RR(rs: i32, rt: i32) -> i32 { /// Instruction Type: ALU64 /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(cmpb, IS8 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_p_cmpb_gt_RI(rs: i32) -> i32 { @@ -3690,7 +3678,6 @@ pub unsafe fn Q6_p_cmpb_gtu_RR(rs: i32, rt: i32) -> i32 { /// Instruction Type: ALU64 /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(cmpb, IU7 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_p_cmpb_gtu_RI(rs: i32) -> i32 { @@ -3714,7 +3701,6 @@ pub unsafe fn Q6_p_cmph_eq_RR(rs: i32, rt: i32) -> i32 { /// Instruction Type: ALU64 /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(cmph, IS8 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_p_cmph_eq_RI(rs: i32) -> i32 { @@ -3738,7 +3724,6 @@ pub unsafe fn Q6_p_cmph_gt_RR(rs: i32, rt: i32) -> i32 { /// Instruction Type: ALU64 /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(cmph, IS8 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_p_cmph_gt_RI(rs: i32) -> i32 { @@ -3762,7 +3747,6 @@ pub unsafe fn Q6_p_cmph_gtu_RR(rs: i32, rt: i32) -> i32 { /// Instruction Type: ALU64 /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(cmph, IU7 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_p_cmph_gtu_RI(rs: i32) -> i32 { @@ -3775,7 +3759,6 @@ pub unsafe fn Q6_p_cmph_gtu_RI(rs: i32) -> i32 { /// Instruction Type: ALU32_2op /// Execution Slots: SLOT0123 #[inline(always)] -#[rustc_legacy_const_generics(0)] #[cfg_attr(test, assert_instr(combine, IS8 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_combine_IR(rs: i32) -> i64 { @@ -3788,7 +3771,6 @@ pub unsafe fn Q6_P_combine_IR(rs: i32) -> i64 { /// Instruction Type: ALU32_2op /// Execution Slots: SLOT0123 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(combine, IS8 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_combine_RI(rs: i32) -> i64 { @@ -3801,7 +3783,6 @@ pub unsafe fn Q6_P_combine_RI(rs: i32) -> i64 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(cround, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_cround_RI(rs: i32) -> i32 { @@ -3869,7 +3850,6 @@ pub unsafe fn Q6_R_cmp_eq_RR(rs: i32, rt: i32) -> i32 { /// Instruction Type: ALU32_2op /// Execution Slots: SLOT0123 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(cmp, IS8 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_cmp_eq_RI(rs: i32) -> i32 { @@ -3892,7 +3872,6 @@ pub unsafe fn Q6_R_not_cmp_eq_RR(rs: i32, rt: i32) -> i32 { /// Instruction Type: ALU32_2op /// Execution Slots: SLOT0123 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_not_cmp_eq_RI(rs: i32) -> i32 { static_assert_simm_bits!(IS8, 8); @@ -3904,7 +3883,6 @@ pub unsafe fn Q6_R_not_cmp_eq_RI(rs: i32) -> i32 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(round, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_round_RI(rs: i32) -> i32 { @@ -3917,7 +3895,6 @@ pub unsafe fn Q6_R_round_RI(rs: i32) -> i32 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(round, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_round_RI_sat(rs: i32) -> i32 { @@ -3974,7 +3951,6 @@ pub unsafe fn Q6_p_any8_vcmpb_eq_PP(rss: i64, rtt: i64) -> i32 { /// Instruction Type: ALU64 /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(vcmpb, IU8 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_p_vcmpb_eq_PI(rss: i64) -> i32 { @@ -3998,7 +3974,6 @@ pub unsafe fn Q6_p_vcmpb_gt_PP(rss: i64, rtt: i64) -> i32 { /// Instruction Type: ALU64 /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(vcmpb, IS8 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_p_vcmpb_gt_PI(rss: i64) -> i32 { @@ -4011,7 +3986,6 @@ pub unsafe fn Q6_p_vcmpb_gt_PI(rss: i64) -> i32 { /// Instruction Type: ALU64 /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(vcmpb, IU7 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_p_vcmpb_gtu_PI(rss: i64) -> i32 { @@ -4024,7 +3998,6 @@ pub unsafe fn Q6_p_vcmpb_gtu_PI(rss: i64) -> i32 { /// Instruction Type: ALU64 /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(vcmph, IS8 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_p_vcmph_eq_PI(rss: i64) -> i32 { @@ -4037,7 +4010,6 @@ pub unsafe fn Q6_p_vcmph_eq_PI(rss: i64) -> i32 { /// Instruction Type: ALU64 /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(vcmph, IS8 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_p_vcmph_gt_PI(rss: i64) -> i32 { @@ -4050,7 +4022,6 @@ pub unsafe fn Q6_p_vcmph_gt_PI(rss: i64) -> i32 { /// Instruction Type: ALU64 /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(vcmph, IU7 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_p_vcmph_gtu_PI(rss: i64) -> i32 { @@ -4063,7 +4034,6 @@ pub unsafe fn Q6_p_vcmph_gtu_PI(rss: i64) -> i32 { /// Instruction Type: ALU64 /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(vcmpw, IS8 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_p_vcmpw_eq_PI(rss: i64) -> i32 { @@ -4076,7 +4046,6 @@ pub unsafe fn Q6_p_vcmpw_eq_PI(rss: i64) -> i32 { /// Instruction Type: ALU64 /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(vcmpw, IS8 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_p_vcmpw_gt_PI(rss: i64) -> i32 { @@ -4089,7 +4058,6 @@ pub unsafe fn Q6_p_vcmpw_gt_PI(rss: i64) -> i32 { /// Instruction Type: ALU64 /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(vcmpw, IU7 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_p_vcmpw_gtu_PI(rss: i64) -> i32 { @@ -4256,7 +4224,6 @@ pub unsafe fn Q6_p_bitsclr_RR(rs: i32, rt: i32) -> i32 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(bitsclr, IU6 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_p_bitsclr_RI(rs: i32) -> i32 { @@ -4291,7 +4258,6 @@ pub unsafe fn Q6_p_cmp_eq_RR(rs: i32, rt: i32) -> i32 { /// Instruction Type: ALU32_2op /// Execution Slots: SLOT0123 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(cmp, IS10 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_p_cmp_eq_RI(rs: i32) -> i32 { @@ -4315,7 +4281,6 @@ pub unsafe fn Q6_p_cmp_eq_PP(rss: i64, rtt: i64) -> i32 { /// Instruction Type: ALU32_2op /// Execution Slots: SLOT0123 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(cmp, IS8 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_p_cmp_ge_RI(rs: i32) -> i32 { @@ -4328,7 +4293,6 @@ pub unsafe fn Q6_p_cmp_ge_RI(rs: i32) -> i32 { /// Instruction Type: ALU32_2op /// Execution Slots: SLOT0123 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(cmp, IU8 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_p_cmp_geu_RI(rs: i32) -> i32 { @@ -4352,7 +4316,6 @@ pub unsafe fn Q6_p_cmp_gt_RR(rs: i32, rt: i32) -> i32 { /// Instruction Type: ALU32_2op /// Execution Slots: SLOT0123 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(cmp, IS10 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_p_cmp_gt_RI(rs: i32) -> i32 { @@ -4387,7 +4350,6 @@ pub unsafe fn Q6_p_cmp_gtu_RR(rs: i32, rt: i32) -> i32 { /// Instruction Type: ALU32_2op /// Execution Slots: SLOT0123 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(cmp, IU9 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_p_cmp_gtu_RI(rs: i32) -> i32 { @@ -4455,7 +4417,6 @@ pub unsafe fn Q6_R_mux_pRR(pu: i32, rs: i32, rt: i32) -> i32 { /// Instruction Type: ALU32_2op /// Execution Slots: SLOT0123 #[inline(always)] -#[rustc_legacy_const_generics(1, 2)] #[cfg_attr(test, assert_instr(mux, IS8 = 0, IS8_2 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_mux_pII(pu: i32) -> i32 { @@ -4469,7 +4430,6 @@ pub unsafe fn Q6_R_mux_pII(pu: i32) -> i32 { /// Instruction Type: ALU32_2op /// Execution Slots: SLOT0123 #[inline(always)] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(mux, IS8 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_mux_pRI(pu: i32, rs: i32) -> i32 { @@ -4482,7 +4442,6 @@ pub unsafe fn Q6_R_mux_pRI(pu: i32, rs: i32) -> i32 { /// Instruction Type: ALU32_2op /// Execution Slots: SLOT0123 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(mux, IS8 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_mux_pIR(pu: i32, rs: i32) -> i32 { @@ -4645,7 +4604,6 @@ pub unsafe fn Q6_p_not_cmp_gt_RR(rs: i32, rt: i32) -> i32 { /// Instruction Type: ALU32_2op /// Execution Slots: SLOT0123 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_p_not_cmp_gt_RI(rs: i32) -> i32 { static_assert_simm_bits!(IS10, 10); @@ -4667,7 +4625,6 @@ pub unsafe fn Q6_p_not_cmp_gtu_RR(rs: i32, rt: i32) -> i32 { /// Instruction Type: ALU32_2op /// Execution Slots: SLOT0123 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_p_not_cmp_gtu_RI(rs: i32) -> i32 { static_assert_uimm_bits!(IU9, 9); @@ -4689,7 +4646,6 @@ pub unsafe fn Q6_p_not_cmp_eq_RR(rs: i32, rt: i32) -> i32 { /// Instruction Type: ALU32_2op /// Execution Slots: SLOT0123 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_p_not_cmp_eq_RI(rs: i32) -> i32 { static_assert_simm_bits!(IS10, 10); @@ -4732,7 +4688,6 @@ pub unsafe fn Q6_p_not_bitsclr_RR(rs: i32, rt: i32) -> i32 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_p_not_bitsclr_RI(rs: i32) -> i32 { static_assert_uimm_bits!(IU6, 6); @@ -5084,7 +5039,6 @@ pub unsafe fn Q6_R_convert_w2sf_R(rs: i32) -> f32 { /// Instruction Type: ALU64 /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(dfclass, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_p_dfclass_PI(rss: f64) -> i32 { @@ -5141,7 +5095,6 @@ pub unsafe fn Q6_p_dfcmp_uo_PP(rss: f64, rtt: f64) -> i32 { /// Instruction Type: ALU64 /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(0)] #[cfg_attr(test, assert_instr(dfmake, IU10 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_dfmake_I_neg() -> f64 { @@ -5154,7 +5107,6 @@ pub unsafe fn Q6_P_dfmake_I_neg() -> f64 { /// Instruction Type: ALU64 /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(0)] #[cfg_attr(test, assert_instr(dfmake, IU10 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_dfmake_I_pos() -> f64 { @@ -5178,7 +5130,6 @@ pub unsafe fn Q6_R_sfadd_RR(rs: f32, rt: f32) -> f32 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(sfclass, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_p_sfclass_RI(rs: f32) -> i32 { @@ -5323,7 +5274,6 @@ pub unsafe fn Q6_R_sfmpynac_RR_lib(rx: f32, rs: f32, rt: f32) -> f32 { /// Instruction Type: ALU64 /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(0)] #[cfg_attr(test, assert_instr(sfmake, IU10 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_sfmake_I_neg() -> f32 { @@ -5336,7 +5286,6 @@ pub unsafe fn Q6_R_sfmake_I_neg() -> f32 { /// Instruction Type: ALU64 /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(0)] #[cfg_attr(test, assert_instr(sfmake, IU10 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_sfmake_I_pos() -> f32 { @@ -5404,7 +5353,6 @@ pub unsafe fn Q6_R_addacc_RR(rx: i32, rs: i32, rt: i32) -> i32 { /// Instruction Type: M /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(add, IS8 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_addacc_RI(rx: i32, rs: i32) -> i32 { @@ -5769,7 +5717,6 @@ pub unsafe fn Q6_R_mpyiacc_RR(rx: i32, rs: i32, rt: i32) -> i32 { /// Instruction Type: M /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(mpyi, IU8 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_mpyinac_RI(rx: i32, rs: i32) -> i32 { @@ -5782,7 +5729,6 @@ pub unsafe fn Q6_R_mpyinac_RI(rx: i32, rs: i32) -> i32 { /// Instruction Type: M /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(mpyi, IU8 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_mpyiacc_RI(rx: i32, rs: i32) -> i32 { @@ -7830,7 +7776,6 @@ pub unsafe fn Q6_R_addnac_RR(rx: i32, rs: i32, rt: i32) -> i32 { /// Instruction Type: M /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(add, IS8 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_addnac_RI(rx: i32, rs: i32) -> i32 { @@ -8459,7 +8404,6 @@ pub unsafe fn Q6_R_mpyacc_RR_s1_sat(rx: i32, rs: i32, rt: i32) -> i32 { /// Instruction Type: ALU64 /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(0, 2)] #[cfg_attr(test, assert_instr(add, IU6 = 0, IU6_2 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_add_mpyi_IRI(rs: i32) -> i32 { @@ -8473,7 +8417,6 @@ pub unsafe fn Q6_R_add_mpyi_IRI(rs: i32) -> i3 /// Instruction Type: ALU64 /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(add, IU6 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_add_mpyi_RRI(ru: i32, rs: i32) -> i32 { @@ -8486,7 +8429,6 @@ pub unsafe fn Q6_R_add_mpyi_RRI(ru: i32, rs: i32) -> i32 { /// Instruction Type: ALU64 /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(add, IU6_2 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_add_mpyi_RIR(ru: i32, rs: i32) -> i32 { @@ -8499,7 +8441,6 @@ pub unsafe fn Q6_R_add_mpyi_RIR(ru: i32, rs: i32) -> i32 { /// Instruction Type: ALU64 /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(0)] #[cfg_attr(test, assert_instr(add, IU6 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_add_mpyi_IRR(rs: i32, rt: i32) -> i32 { @@ -8864,7 +8805,6 @@ pub unsafe fn Q6_P_vrmpybu_PP(rss: i64, rtt: i64) -> i64 { /// Instruction Type: S_3op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(addasl, IU3 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_addasl_RRI(rt: i32, rs: i32) -> i32 { @@ -8877,7 +8817,6 @@ pub unsafe fn Q6_R_addasl_RRI(rt: i32, rs: i32) -> i32 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(asl, IU6 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_asl_PI(rss: i64) -> i64 { @@ -8890,7 +8829,6 @@ pub unsafe fn Q6_P_asl_PI(rss: i64) -> i64 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(asl, IU6 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_aslacc_PI(rxx: i64, rss: i64) -> i64 { @@ -8903,7 +8841,6 @@ pub unsafe fn Q6_P_aslacc_PI(rxx: i64, rss: i64) -> i64 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(asl, IU6 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_asland_PI(rxx: i64, rss: i64) -> i64 { @@ -8916,7 +8853,6 @@ pub unsafe fn Q6_P_asland_PI(rxx: i64, rss: i64) -> i64 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(asl, IU6 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_aslnac_PI(rxx: i64, rss: i64) -> i64 { @@ -8929,7 +8865,6 @@ pub unsafe fn Q6_P_aslnac_PI(rxx: i64, rss: i64) -> i64 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(asl, IU6 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_aslor_PI(rxx: i64, rss: i64) -> i64 { @@ -8942,7 +8877,6 @@ pub unsafe fn Q6_P_aslor_PI(rxx: i64, rss: i64) -> i64 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(asl, IU6 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_aslxacc_PI(rxx: i64, rss: i64) -> i64 { @@ -8955,7 +8889,6 @@ pub unsafe fn Q6_P_aslxacc_PI(rxx: i64, rss: i64) -> i64 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(asl, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_asl_RI(rs: i32) -> i32 { @@ -8968,7 +8901,6 @@ pub unsafe fn Q6_R_asl_RI(rs: i32) -> i32 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(asl, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_aslacc_RI(rx: i32, rs: i32) -> i32 { @@ -8981,7 +8913,6 @@ pub unsafe fn Q6_R_aslacc_RI(rx: i32, rs: i32) -> i32 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(asl, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_asland_RI(rx: i32, rs: i32) -> i32 { @@ -8994,7 +8925,6 @@ pub unsafe fn Q6_R_asland_RI(rx: i32, rs: i32) -> i32 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(asl, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_aslnac_RI(rx: i32, rs: i32) -> i32 { @@ -9007,7 +8937,6 @@ pub unsafe fn Q6_R_aslnac_RI(rx: i32, rs: i32) -> i32 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(asl, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_aslor_RI(rx: i32, rs: i32) -> i32 { @@ -9020,7 +8949,6 @@ pub unsafe fn Q6_R_aslor_RI(rx: i32, rs: i32) -> i32 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(asl, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_asl_RI_sat(rs: i32) -> i32 { @@ -9033,7 +8961,6 @@ pub unsafe fn Q6_R_asl_RI_sat(rs: i32) -> i32 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(asl, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_aslxacc_RI(rx: i32, rs: i32) -> i32 { @@ -9046,7 +8973,6 @@ pub unsafe fn Q6_R_aslxacc_RI(rx: i32, rs: i32) -> i32 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(vaslh, IU4 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_vaslh_PI(rss: i64) -> i64 { @@ -9059,7 +8985,6 @@ pub unsafe fn Q6_P_vaslh_PI(rss: i64) -> i64 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(vaslw, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_vaslw_PI(rss: i64) -> i64 { @@ -9226,7 +9151,6 @@ pub unsafe fn Q6_P_vaslw_PR(rss: i64, rt: i32) -> i64 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(asr, IU6 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_asr_PI(rss: i64) -> i64 { @@ -9239,7 +9163,6 @@ pub unsafe fn Q6_P_asr_PI(rss: i64) -> i64 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(asr, IU6 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_asracc_PI(rxx: i64, rss: i64) -> i64 { @@ -9252,7 +9175,6 @@ pub unsafe fn Q6_P_asracc_PI(rxx: i64, rss: i64) -> i64 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(asr, IU6 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_asrand_PI(rxx: i64, rss: i64) -> i64 { @@ -9265,7 +9187,6 @@ pub unsafe fn Q6_P_asrand_PI(rxx: i64, rss: i64) -> i64 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(asr, IU6 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_asrnac_PI(rxx: i64, rss: i64) -> i64 { @@ -9278,7 +9199,6 @@ pub unsafe fn Q6_P_asrnac_PI(rxx: i64, rss: i64) -> i64 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(asr, IU6 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_asror_PI(rxx: i64, rss: i64) -> i64 { @@ -9291,7 +9211,6 @@ pub unsafe fn Q6_P_asror_PI(rxx: i64, rss: i64) -> i64 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(asr, IU6 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_asr_PI_rnd(rss: i64) -> i64 { @@ -9304,7 +9223,6 @@ pub unsafe fn Q6_P_asr_PI_rnd(rss: i64) -> i64 { /// Instruction Type: S_2op /// Execution Slots: SLOT0123 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(asrrnd, IU6 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_asrrnd_PI(rss: i64) -> i64 { @@ -9317,7 +9235,6 @@ pub unsafe fn Q6_P_asrrnd_PI(rss: i64) -> i64 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(asr, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_asr_RI(rs: i32) -> i32 { @@ -9330,7 +9247,6 @@ pub unsafe fn Q6_R_asr_RI(rs: i32) -> i32 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(asr, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_asracc_RI(rx: i32, rs: i32) -> i32 { @@ -9343,7 +9259,6 @@ pub unsafe fn Q6_R_asracc_RI(rx: i32, rs: i32) -> i32 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(asr, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_asrand_RI(rx: i32, rs: i32) -> i32 { @@ -9356,7 +9271,6 @@ pub unsafe fn Q6_R_asrand_RI(rx: i32, rs: i32) -> i32 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(asr, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_asrnac_RI(rx: i32, rs: i32) -> i32 { @@ -9369,7 +9283,6 @@ pub unsafe fn Q6_R_asrnac_RI(rx: i32, rs: i32) -> i32 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(asr, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_asror_RI(rx: i32, rs: i32) -> i32 { @@ -9382,7 +9295,6 @@ pub unsafe fn Q6_R_asror_RI(rx: i32, rs: i32) -> i32 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(asr, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_asr_RI_rnd(rs: i32) -> i32 { @@ -9395,7 +9307,6 @@ pub unsafe fn Q6_R_asr_RI_rnd(rs: i32) -> i32 { /// Instruction Type: S_2op /// Execution Slots: SLOT0123 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(asrrnd, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_asrrnd_RI(rs: i32) -> i32 { @@ -9408,7 +9319,6 @@ pub unsafe fn Q6_R_asrrnd_RI(rs: i32) -> i32 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(vasrw, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_vasrw_PI(rss: i64) -> i32 { @@ -9421,7 +9331,6 @@ pub unsafe fn Q6_R_vasrw_PI(rss: i64) -> i32 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(vasrh, IU4 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_vasrh_PI(rss: i64) -> i64 { @@ -9434,7 +9343,6 @@ pub unsafe fn Q6_P_vasrh_PI(rss: i64) -> i64 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(vasrw, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_vasrw_PI(rss: i64) -> i64 { @@ -9711,7 +9619,6 @@ pub unsafe fn Q6_R_clb_P(rss: i64) -> i32 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(clrbit, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_clrbit_RI(rs: i32) -> i32 { @@ -9790,7 +9697,6 @@ pub unsafe fn Q6_P_deinterleave_P(rss: i64) -> i64 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1, 2)] #[cfg_attr(test, assert_instr(extractu, IU5 = 0, IU5_2 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_extractu_RII(rs: i32) -> i32 { @@ -9815,7 +9721,6 @@ pub unsafe fn Q6_R_extractu_RP(rs: i32, rtt: i64) -> i32 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1, 2)] #[cfg_attr(test, assert_instr(extractu, IU6 = 0, IU6_2 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_extractu_PII(rss: i64) -> i64 { @@ -9840,7 +9745,6 @@ pub unsafe fn Q6_P_extractu_PP(rss: i64, rtt: i64) -> i64 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(2, 3)] #[cfg_attr(test, assert_instr(insert, IU5 = 0, IU5_2 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_insert_RII(rx: i32, rs: i32) -> i32 { @@ -9865,7 +9769,6 @@ pub unsafe fn Q6_R_insert_RP(rx: i32, rs: i32, rtt: i64) -> i32 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(2, 3)] #[cfg_attr(test, assert_instr(insert, IU6 = 0, IU6_2 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_insert_PII(rxx: i64, rss: i64) -> i64 { @@ -10055,7 +9958,6 @@ pub unsafe fn Q6_P_vlslw_PR(rss: i64, rt: i32) -> i64 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(lsr, IU6 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_lsr_PI(rss: i64) -> i64 { @@ -10068,7 +9970,6 @@ pub unsafe fn Q6_P_lsr_PI(rss: i64) -> i64 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(lsr, IU6 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_lsracc_PI(rxx: i64, rss: i64) -> i64 { @@ -10081,7 +9982,6 @@ pub unsafe fn Q6_P_lsracc_PI(rxx: i64, rss: i64) -> i64 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(lsr, IU6 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_lsrand_PI(rxx: i64, rss: i64) -> i64 { @@ -10094,7 +9994,6 @@ pub unsafe fn Q6_P_lsrand_PI(rxx: i64, rss: i64) -> i64 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(lsr, IU6 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_lsrnac_PI(rxx: i64, rss: i64) -> i64 { @@ -10107,7 +10006,6 @@ pub unsafe fn Q6_P_lsrnac_PI(rxx: i64, rss: i64) -> i64 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(lsr, IU6 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_lsror_PI(rxx: i64, rss: i64) -> i64 { @@ -10120,7 +10018,6 @@ pub unsafe fn Q6_P_lsror_PI(rxx: i64, rss: i64) -> i64 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(lsr, IU6 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_lsrxacc_PI(rxx: i64, rss: i64) -> i64 { @@ -10133,7 +10030,6 @@ pub unsafe fn Q6_P_lsrxacc_PI(rxx: i64, rss: i64) -> i64 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(lsr, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_lsr_RI(rs: i32) -> i32 { @@ -10146,7 +10042,6 @@ pub unsafe fn Q6_R_lsr_RI(rs: i32) -> i32 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(lsr, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_lsracc_RI(rx: i32, rs: i32) -> i32 { @@ -10159,7 +10054,6 @@ pub unsafe fn Q6_R_lsracc_RI(rx: i32, rs: i32) -> i32 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(lsr, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_lsrand_RI(rx: i32, rs: i32) -> i32 { @@ -10172,7 +10066,6 @@ pub unsafe fn Q6_R_lsrand_RI(rx: i32, rs: i32) -> i32 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(lsr, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_lsrnac_RI(rx: i32, rs: i32) -> i32 { @@ -10185,7 +10078,6 @@ pub unsafe fn Q6_R_lsrnac_RI(rx: i32, rs: i32) -> i32 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(lsr, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_lsror_RI(rx: i32, rs: i32) -> i32 { @@ -10198,7 +10090,6 @@ pub unsafe fn Q6_R_lsror_RI(rx: i32, rs: i32) -> i32 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(lsr, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_lsrxacc_RI(rx: i32, rs: i32) -> i32 { @@ -10211,7 +10102,6 @@ pub unsafe fn Q6_R_lsrxacc_RI(rx: i32, rs: i32) -> i32 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(vlsrh, IU4 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_vlsrh_PI(rss: i64) -> i64 { @@ -10224,7 +10114,6 @@ pub unsafe fn Q6_P_vlsrh_PI(rss: i64) -> i64 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(vlsrw, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_vlsrw_PI(rss: i64) -> i64 { @@ -10402,7 +10291,6 @@ pub unsafe fn Q6_R_parity_PP(rss: i64, rtt: i64) -> i32 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(setbit, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_setbit_RI(rs: i32) -> i32 { @@ -10492,7 +10380,6 @@ pub unsafe fn Q6_R_vsathub_R(rs: i32) -> i32 { /// Instruction Type: S_2op /// Execution Slots: SLOT0123 #[inline(always)] -#[rustc_legacy_const_generics(2, 3)] #[cfg_attr(test, assert_instr(tableidxb, IU4 = 0, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_tableidxb_RII(rx: i32, rs: i32) -> i32 { @@ -10506,7 +10393,6 @@ pub unsafe fn Q6_R_tableidxb_RII(rx: i32, rs: i3 /// Instruction Type: S_2op /// Execution Slots: SLOT0123 #[inline(always)] -#[rustc_legacy_const_generics(2, 3)] #[cfg_attr(test, assert_instr(tableidxd, IU4 = 0, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_tableidxd_RII(rx: i32, rs: i32) -> i32 { @@ -10520,7 +10406,6 @@ pub unsafe fn Q6_R_tableidxd_RII(rx: i32, rs: i3 /// Instruction Type: S_2op /// Execution Slots: SLOT0123 #[inline(always)] -#[rustc_legacy_const_generics(2, 3)] #[cfg_attr(test, assert_instr(tableidxh, IU4 = 0, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_tableidxh_RII(rx: i32, rs: i32) -> i32 { @@ -10534,7 +10419,6 @@ pub unsafe fn Q6_R_tableidxh_RII(rx: i32, rs: i3 /// Instruction Type: S_2op /// Execution Slots: SLOT0123 #[inline(always)] -#[rustc_legacy_const_generics(2, 3)] #[cfg_attr(test, assert_instr(tableidxw, IU4 = 0, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_tableidxw_RII(rx: i32, rs: i32) -> i32 { @@ -10548,7 +10432,6 @@ pub unsafe fn Q6_R_tableidxw_RII(rx: i32, rs: i3 /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(togglebit, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_togglebit_RI(rs: i32) -> i32 { @@ -10572,7 +10455,6 @@ pub unsafe fn Q6_R_togglebit_RR(rs: i32, rt: i32) -> i32 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(tstbit, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_p_tstbit_RI(rs: i32) -> i32 { @@ -10596,7 +10478,6 @@ pub unsafe fn Q6_p_tstbit_RR(rs: i32, rt: i32) -> i32 { /// Instruction Type: S_3op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(valignb, IU3 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_valignb_PPI(rtt: i64, rss: i64) -> i64 { @@ -10785,7 +10666,6 @@ pub unsafe fn Q6_P_vsplath_R(rs: i32) -> i64 { /// Instruction Type: S_3op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(vspliceb, IU3 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_vspliceb_PPI(rss: i64, rtt: i64) -> i64 { @@ -10897,7 +10777,6 @@ pub unsafe fn Q6_P_vzxthw_R(rs: i32) -> i64 { /// Instruction Type: ALU64 /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(add, IS6 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_add_add_RRI(rs: i32, ru: i32) -> i32 { @@ -10910,7 +10789,6 @@ pub unsafe fn Q6_R_add_add_RRI(rs: i32, ru: i32) -> i32 { /// Instruction Type: ALU64 /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(0, 2)] #[cfg_attr(test, assert_instr(add, IU8 = 0, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_add_asl_IRI(rx: i32) -> i32 { @@ -10924,7 +10802,6 @@ pub unsafe fn Q6_R_add_asl_IRI(rx: i32) -> i32 { /// Instruction Type: ALU64 /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(0, 2)] #[cfg_attr(test, assert_instr(add, IU8 = 0, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_add_lsr_IRI(rx: i32) -> i32 { @@ -10938,7 +10815,6 @@ pub unsafe fn Q6_R_add_lsr_IRI(rx: i32) -> i32 { /// Instruction Type: ALU64 /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(0, 2)] #[cfg_attr(test, assert_instr(and, IU8 = 0, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_and_asl_IRI(rx: i32) -> i32 { @@ -10952,7 +10828,6 @@ pub unsafe fn Q6_R_and_asl_IRI(rx: i32) -> i32 { /// Instruction Type: ALU64 /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(0, 2)] #[cfg_attr(test, assert_instr(and, IU8 = 0, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_and_lsr_IRI(rx: i32) -> i32 { @@ -10966,7 +10841,6 @@ pub unsafe fn Q6_R_and_lsr_IRI(rx: i32) -> i32 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(add, IS6 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_add_clb_RI(rs: i32) -> i32 { @@ -10979,7 +10853,6 @@ pub unsafe fn Q6_R_add_clb_RI(rs: i32) -> i32 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(add, IS6 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_add_clb_PI(rss: i64) -> i32 { @@ -11003,7 +10876,6 @@ pub unsafe fn Q6_R_normamt_P(rss: i64) -> i32 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1, 2)] #[cfg_attr(test, assert_instr(extract, IU5 = 0, IU5_2 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_extract_RII(rs: i32) -> i32 { @@ -11028,7 +10900,6 @@ pub unsafe fn Q6_R_extract_RP(rs: i32, rtt: i64) -> i32 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1, 2)] #[cfg_attr(test, assert_instr(extract, IU6 = 0, IU6_2 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_extract_PII(rss: i64) -> i64 { @@ -11053,7 +10924,6 @@ pub unsafe fn Q6_P_extract_PP(rss: i64, rtt: i64) -> i64 { /// Instruction Type: S_3op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(0)] #[cfg_attr(test, assert_instr(lsl, IS6 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_lsl_IR(rt: i32) -> i32 { @@ -11066,7 +10936,6 @@ pub unsafe fn Q6_R_lsl_IR(rt: i32) -> i32 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_p_not_tstbit_RI(rs: i32) -> i32 { static_assert_uimm_bits!(IU5, 5); @@ -11088,7 +10957,6 @@ pub unsafe fn Q6_p_not_tstbit_RR(rs: i32, rt: i32) -> i32 { /// Instruction Type: ALU64 /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(and, IS10 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_andor_RI(rx: i32, rs: i32) -> i32 { @@ -11101,7 +10969,6 @@ pub unsafe fn Q6_R_andor_RI(rx: i32, rs: i32) -> i32 { /// Instruction Type: ALU64 /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(or, IS10 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_or_and_RRI(ru: i32, rx: i32) -> i32 { @@ -11114,7 +10981,6 @@ pub unsafe fn Q6_R_or_and_RRI(ru: i32, rx: i32) -> i32 { /// Instruction Type: ALU64 /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(or, IS10 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_oror_RI(rx: i32, rs: i32) -> i32 { @@ -11127,7 +10993,6 @@ pub unsafe fn Q6_R_oror_RI(rx: i32, rs: i32) -> i32 { /// Instruction Type: ALU64 /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(0, 2)] #[cfg_attr(test, assert_instr(or, IU8 = 0, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_or_asl_IRI(rx: i32) -> i32 { @@ -11141,7 +11006,6 @@ pub unsafe fn Q6_R_or_asl_IRI(rx: i32) -> i32 { /// Instruction Type: ALU64 /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(0, 2)] #[cfg_attr(test, assert_instr(or, IU8 = 0, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_or_lsr_IRI(rx: i32) -> i32 { @@ -11166,7 +11030,6 @@ pub unsafe fn Q6_R_parity_RR(rs: i32, rt: i32) -> i32 { /// Instruction Type: ALU64 /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(add, IS6 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_add_sub_RIR(rs: i32, ru: i32) -> i32 { @@ -11179,7 +11042,6 @@ pub unsafe fn Q6_R_add_sub_RIR(rs: i32, ru: i32) -> i32 { /// Instruction Type: ALU64 /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(0, 2)] #[cfg_attr(test, assert_instr(sub, IU8 = 0, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_sub_asl_IRI(rx: i32) -> i32 { @@ -11193,7 +11055,6 @@ pub unsafe fn Q6_R_sub_asl_IRI(rx: i32) -> i32 { /// Instruction Type: ALU64 /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(0, 2)] #[cfg_attr(test, assert_instr(sub, IU8 = 0, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_sub_lsr_IRI(rx: i32) -> i32 { @@ -11207,7 +11068,6 @@ pub unsafe fn Q6_R_sub_lsr_IRI(rx: i32) -> i32 { /// Instruction Type: S_3op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(vrcrotate, IU2 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_vrcrotate_PRI(rss: i64, rt: i32) -> i64 { @@ -11220,7 +11080,6 @@ pub unsafe fn Q6_P_vrcrotate_PRI(rss: i64, rt: i32) -> i64 { /// Instruction Type: S_3op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(3)] #[cfg_attr(test, assert_instr(vrcrotate, IU2 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_vrcrotateacc_PRI(rxx: i64, rss: i64, rt: i32) -> i64 { @@ -11299,7 +11158,6 @@ pub unsafe fn Q6_P_vxsubaddw_PP_sat(rss: i64, rtt: i64) -> i64 { /// Instruction Type: S_2op /// Execution Slots: SLOT0123 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(vasrhub, IU4 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_vasrhub_PI_rnd_sat(rss: i64) -> i32 { @@ -11312,7 +11170,6 @@ pub unsafe fn Q6_R_vasrhub_PI_rnd_sat(rss: i64) -> i32 { /// Instruction Type: S_2op /// Execution Slots: SLOT23 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(vasrhub, IU4 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_vasrhub_PI_sat(rss: i64) -> i32 { @@ -11336,7 +11193,6 @@ pub unsafe fn Q6_R_popcount_P(rss: i64) -> i32 { /// Instruction Type: S_2op /// Execution Slots: SLOT0123 #[inline(always)] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(vasrh, IU4 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_vasrh_PI_rnd(rss: i64) -> i64 { @@ -11428,7 +11284,6 @@ pub unsafe fn Q6_l2fetch_AP(rs: i32, rtt: i64) { /// Requires: V60 #[inline] #[cfg_attr(target_arch = "hexagon", target_feature(enable = "v60"))] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(rol, IU6 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_rol_PI(rss: i64) -> i64 { @@ -11443,7 +11298,6 @@ pub unsafe fn Q6_P_rol_PI(rss: i64) -> i64 { /// Requires: V60 #[inline] #[cfg_attr(target_arch = "hexagon", target_feature(enable = "v60"))] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(rol, IU6 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_rolacc_PI(rxx: i64, rss: i64) -> i64 { @@ -11458,7 +11312,6 @@ pub unsafe fn Q6_P_rolacc_PI(rxx: i64, rss: i64) -> i64 { /// Requires: V60 #[inline] #[cfg_attr(target_arch = "hexagon", target_feature(enable = "v60"))] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(rol, IU6 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_roland_PI(rxx: i64, rss: i64) -> i64 { @@ -11473,7 +11326,6 @@ pub unsafe fn Q6_P_roland_PI(rxx: i64, rss: i64) -> i64 { /// Requires: V60 #[inline] #[cfg_attr(target_arch = "hexagon", target_feature(enable = "v60"))] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(rol, IU6 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_rolnac_PI(rxx: i64, rss: i64) -> i64 { @@ -11488,7 +11340,6 @@ pub unsafe fn Q6_P_rolnac_PI(rxx: i64, rss: i64) -> i64 { /// Requires: V60 #[inline] #[cfg_attr(target_arch = "hexagon", target_feature(enable = "v60"))] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(rol, IU6 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_rolor_PI(rxx: i64, rss: i64) -> i64 { @@ -11503,7 +11354,6 @@ pub unsafe fn Q6_P_rolor_PI(rxx: i64, rss: i64) -> i64 { /// Requires: V60 #[inline] #[cfg_attr(target_arch = "hexagon", target_feature(enable = "v60"))] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(rol, IU6 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_rolxacc_PI(rxx: i64, rss: i64) -> i64 { @@ -11518,7 +11368,6 @@ pub unsafe fn Q6_P_rolxacc_PI(rxx: i64, rss: i64) -> i64 { /// Requires: V60 #[inline] #[cfg_attr(target_arch = "hexagon", target_feature(enable = "v60"))] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(rol, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_rol_RI(rs: i32) -> i32 { @@ -11533,7 +11382,6 @@ pub unsafe fn Q6_R_rol_RI(rs: i32) -> i32 { /// Requires: V60 #[inline] #[cfg_attr(target_arch = "hexagon", target_feature(enable = "v60"))] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(rol, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_rolacc_RI(rx: i32, rs: i32) -> i32 { @@ -11548,7 +11396,6 @@ pub unsafe fn Q6_R_rolacc_RI(rx: i32, rs: i32) -> i32 { /// Requires: V60 #[inline] #[cfg_attr(target_arch = "hexagon", target_feature(enable = "v60"))] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(rol, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_roland_RI(rx: i32, rs: i32) -> i32 { @@ -11563,7 +11410,6 @@ pub unsafe fn Q6_R_roland_RI(rx: i32, rs: i32) -> i32 { /// Requires: V60 #[inline] #[cfg_attr(target_arch = "hexagon", target_feature(enable = "v60"))] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(rol, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_rolnac_RI(rx: i32, rs: i32) -> i32 { @@ -11578,7 +11424,6 @@ pub unsafe fn Q6_R_rolnac_RI(rx: i32, rs: i32) -> i32 { /// Requires: V60 #[inline] #[cfg_attr(target_arch = "hexagon", target_feature(enable = "v60"))] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(rol, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_rolor_RI(rx: i32, rs: i32) -> i32 { @@ -11593,7 +11438,6 @@ pub unsafe fn Q6_R_rolor_RI(rx: i32, rs: i32) -> i32 { /// Requires: V60 #[inline] #[cfg_attr(target_arch = "hexagon", target_feature(enable = "v60"))] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(rol, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_rolxacc_RI(rx: i32, rs: i32) -> i32 { @@ -11724,7 +11568,6 @@ pub unsafe fn Q6_R_mpyinac_RR(rx: i32, rs: i32, rt: i32) -> i32 { /// Requires: V66 #[inline] #[cfg_attr(target_arch = "hexagon", target_feature(enable = "v66"))] -#[rustc_legacy_const_generics(0, 1)] #[cfg_attr(test, assert_instr(mask, IU5 = 0, IU5_2 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_mask_II() -> i32 { @@ -11740,7 +11583,6 @@ pub unsafe fn Q6_R_mask_II() -> i32 { /// Requires: V67, Audio #[inline] #[cfg_attr(target_arch = "hexagon", target_feature(enable = "v67,audio"))] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(clip, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_R_clip_RI(rs: i32) -> i32 { @@ -11755,7 +11597,6 @@ pub unsafe fn Q6_R_clip_RI(rs: i32) -> i32 { /// Requires: V67, Audio #[inline] #[cfg_attr(target_arch = "hexagon", target_feature(enable = "v67,audio"))] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(cround, IU6 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_cround_PI(rss: i64) -> i64 { @@ -11783,7 +11624,6 @@ pub unsafe fn Q6_P_cround_PR(rss: i64, rt: i32) -> i64 { /// Requires: V67, Audio #[inline] #[cfg_attr(target_arch = "hexagon", target_feature(enable = "v67,audio"))] -#[rustc_legacy_const_generics(1)] #[cfg_attr(test, assert_instr(vclip, IU5 = 0))] #[unstable(feature = "stdarch_hexagon", issue = "151523")] pub unsafe fn Q6_P_vclip_PI(rss: i64) -> i64 { diff --git a/library/stdarch/crates/core_arch/src/mips/msa.rs b/library/stdarch/crates/core_arch/src/mips/msa.rs index ebd9558ef513c..62818aece1b03 100644 --- a/library/stdarch/crates/core_arch/src/mips/msa.rs +++ b/library/stdarch/crates/core_arch/src/mips/msa.rs @@ -1408,7 +1408,6 @@ pub unsafe fn __msa_addv_d(a: v2i64, b: v2i64) -> v2i64 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(addvi.b, IMM5 = 0b10111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_addvi_b(a: v16i8) -> v16i8 { static_assert_uimm_bits!(IMM5, 5); @@ -1424,7 +1423,6 @@ pub unsafe fn __msa_addvi_b(a: v16i8) -> v16i8 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(addvi.h, IMM5 = 0b10111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_addvi_h(a: v8i16) -> v8i16 { static_assert_uimm_bits!(IMM5, 5); @@ -1440,7 +1438,6 @@ pub unsafe fn __msa_addvi_h(a: v8i16) -> v8i16 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(addvi.w, IMM5 = 0b10111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_addvi_w(a: v4i32) -> v4i32 { static_assert_uimm_bits!(IMM5, 5); @@ -1456,7 +1453,6 @@ pub unsafe fn __msa_addvi_w(a: v4i32) -> v4i32 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(addvi.d, IMM5 = 0b10111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_addvi_d(a: v2i64) -> v2i64 { static_assert_uimm_bits!(IMM5, 5); @@ -1487,7 +1483,6 @@ pub unsafe fn __msa_and_v(a: v16u8, b: v16u8) -> v16u8 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(andi.b, IMM8 = 0b10010111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_andi_b(a: v16u8) -> v16u8 { static_assert_uimm_bits!(IMM8, 8); @@ -1939,7 +1934,6 @@ pub unsafe fn __msa_bclr_d(a: v2u64, b: v2u64) -> v2u64 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(bclri.b, IMM3 = 0b111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_bclri_b(a: v16u8) -> v16u8 { static_assert_uimm_bits!(IMM3, 3); @@ -1955,7 +1949,6 @@ pub unsafe fn __msa_bclri_b(a: v16u8) -> v16u8 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(bclri.h, IMM4 = 0b1111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_bclri_h(a: v8u16) -> v8u16 { static_assert_uimm_bits!(IMM4, 4); @@ -1971,7 +1964,6 @@ pub unsafe fn __msa_bclri_h(a: v8u16) -> v8u16 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(bclri.w, IMM5 = 0b11111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_bclri_w(a: v4u32) -> v4u32 { static_assert_uimm_bits!(IMM5, 5); @@ -1987,7 +1979,6 @@ pub unsafe fn __msa_bclri_w(a: v4u32) -> v4u32 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(bclri.d, IMM6 = 0b111111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_bclri_d(a: v2u64) -> v2u64 { static_assert_uimm_bits!(IMM6, 6); @@ -2063,7 +2054,6 @@ pub unsafe fn __msa_binsl_d(a: v2u64, b: v2u64, c: v2u64) -> v2u64 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(binsli.b, IMM3 = 0b111))] -#[rustc_legacy_const_generics(2)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_binsli_b(a: v16u8, b: v16u8) -> v16u8 { static_assert_uimm_bits!(IMM3, 3); @@ -2079,7 +2069,6 @@ pub unsafe fn __msa_binsli_b(a: v16u8, b: v16u8) -> v16u8 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(binsli.h, IMM4 = 0b1111))] -#[rustc_legacy_const_generics(2)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_binsli_h(a: v8u16, b: v8u16) -> v8u16 { static_assert_uimm_bits!(IMM4, 4); @@ -2095,7 +2084,6 @@ pub unsafe fn __msa_binsli_h(a: v8u16, b: v8u16) -> v8u16 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(binsli.w, IMM5 = 0b11111))] -#[rustc_legacy_const_generics(2)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_binsli_w(a: v4u32, b: v4u32) -> v4u32 { static_assert_uimm_bits!(IMM5, 5); @@ -2111,7 +2099,6 @@ pub unsafe fn __msa_binsli_w(a: v4u32, b: v4u32) -> v4u32 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(binsli.d, IMM6 = 0b111111))] -#[rustc_legacy_const_generics(2)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_binsli_d(a: v2u64, b: v2u64) -> v2u64 { static_assert_uimm_bits!(IMM6, 6); @@ -2187,7 +2174,6 @@ pub unsafe fn __msa_binsr_d(a: v2u64, b: v2u64, c: v2u64) -> v2u64 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(binsri.b, IMM3 = 0b111))] -#[rustc_legacy_const_generics(2)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_binsri_b(a: v16u8, b: v16u8) -> v16u8 { static_assert_uimm_bits!(IMM3, 3); @@ -2203,7 +2189,6 @@ pub unsafe fn __msa_binsri_b(a: v16u8, b: v16u8) -> v16u8 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(binsri.h, IMM4 = 0b1111))] -#[rustc_legacy_const_generics(2)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_binsri_h(a: v8u16, b: v8u16) -> v8u16 { static_assert_uimm_bits!(IMM4, 4); @@ -2219,7 +2204,6 @@ pub unsafe fn __msa_binsri_h(a: v8u16, b: v8u16) -> v8u16 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(binsri.w, IMM5 = 0b11111))] -#[rustc_legacy_const_generics(2)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_binsri_w(a: v4u32, b: v4u32) -> v4u32 { static_assert_uimm_bits!(IMM5, 5); @@ -2235,7 +2219,6 @@ pub unsafe fn __msa_binsri_w(a: v4u32, b: v4u32) -> v4u32 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(binsri.d, IMM6 = 0b111111))] -#[rustc_legacy_const_generics(2)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_binsri_d(a: v2u64, b: v2u64) -> v2u64 { static_assert_uimm_bits!(IMM6, 6); @@ -2266,7 +2249,6 @@ pub unsafe fn __msa_bmnz_v(a: v16u8, b: v16u8, c: v16u8) -> v16u8 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(bmnzi.b, IMM8 = 0b11111111))] -#[rustc_legacy_const_generics(2)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_bmnzi_b(a: v16u8, b: v16u8) -> v16u8 { static_assert_uimm_bits!(IMM8, 8); @@ -2297,7 +2279,6 @@ pub unsafe fn __msa_bmz_v(a: v16u8, b: v16u8, c: v16u8) -> v16u8 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(bmzi.b, IMM8 = 0b11111111))] -#[rustc_legacy_const_generics(2)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_bmzi_b(a: v16u8, b: v16u8) -> v16u8 { static_assert_uimm_bits!(IMM8, 8); @@ -2373,7 +2354,6 @@ pub unsafe fn __msa_bneg_d(a: v2u64, b: v2u64) -> v2u64 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(bnegi.b, IMM3 = 0b111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_bnegi_b(a: v16u8) -> v16u8 { static_assert_uimm_bits!(IMM3, 3); @@ -2389,7 +2369,6 @@ pub unsafe fn __msa_bnegi_b(a: v16u8) -> v16u8 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(bnegi.h, IMM4 = 0b1111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_bnegi_h(a: v8u16) -> v8u16 { static_assert_uimm_bits!(IMM4, 4); @@ -2405,7 +2384,6 @@ pub unsafe fn __msa_bnegi_h(a: v8u16) -> v8u16 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(bnegi.w, IMM5 = 0b11111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_bnegi_w(a: v4u32) -> v4u32 { static_assert_uimm_bits!(IMM5, 5); @@ -2421,7 +2399,6 @@ pub unsafe fn __msa_bnegi_w(a: v4u32) -> v4u32 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(bnegi.d, IMM6 = 0b111111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_bnegi_d(a: v2u64) -> v2u64 { static_assert_uimm_bits!(IMM6, 6); @@ -2513,7 +2490,6 @@ pub unsafe fn __msa_bsel_v(a: v16u8, b: v16u8, c: v16u8) -> v16u8 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(bseli.b, IMM8 = 0b11111111))] -#[rustc_legacy_const_generics(2)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_bseli_b(a: v16u8, b: v16u8) -> v16u8 { static_assert_uimm_bits!(IMM8, 8); @@ -2589,7 +2565,6 @@ pub unsafe fn __msa_bset_d(a: v2u64, b: v2u64) -> v2u64 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(bseti.b, IMM3 = 0b111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_bseti_b(a: v16u8) -> v16u8 { static_assert_uimm_bits!(IMM3, 3); @@ -2605,7 +2580,6 @@ pub unsafe fn __msa_bseti_b(a: v16u8) -> v16u8 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(bseti.h, IMM4 = 0b1111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_bseti_h(a: v8u16) -> v8u16 { static_assert_uimm_bits!(IMM4, 4); @@ -2621,7 +2595,6 @@ pub unsafe fn __msa_bseti_h(a: v8u16) -> v8u16 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(bseti.w, IMM5 = 0b11111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_bseti_w(a: v4u32) -> v4u32 { static_assert_uimm_bits!(IMM5, 5); @@ -2637,7 +2610,6 @@ pub unsafe fn __msa_bseti_w(a: v4u32) -> v4u32 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(bseti.d, IMM6 = 0b111111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_bseti_d(a: v2u64) -> v2u64 { static_assert_uimm_bits!(IMM6, 6); @@ -2770,7 +2742,6 @@ pub unsafe fn __msa_ceq_d(a: v2i64, b: v2i64) -> v2i64 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(ceqi.b, IMM_S5 = -1))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_ceqi_b(a: v16i8) -> v16i8 { static_assert_simm_bits!(IMM_S5, 5); @@ -2786,7 +2757,6 @@ pub unsafe fn __msa_ceqi_b(a: v16i8) -> v16i8 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(ceqi.h, IMM_S5 = -1))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_ceqi_h(a: v8i16) -> v8i16 { static_assert_simm_bits!(IMM_S5, 5); @@ -2802,7 +2772,6 @@ pub unsafe fn __msa_ceqi_h(a: v8i16) -> v8i16 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(ceqi.w, IMM_S5 = -1))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_ceqi_w(a: v4i32) -> v4i32 { static_assert_simm_bits!(IMM_S5, 5); @@ -2818,7 +2787,6 @@ pub unsafe fn __msa_ceqi_w(a: v4i32) -> v4i32 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(ceqi.d, IMM_S5 = -1))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_ceqi_d(a: v2i64) -> v2i64 { static_assert_simm_bits!(IMM_S5, 5); @@ -2833,7 +2801,6 @@ pub unsafe fn __msa_ceqi_d(a: v2i64) -> v2i64 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(cfcmsa, IMM5 = 0b11111))] -#[rustc_legacy_const_generics(0)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_cfcmsa() -> i32 { static_assert_uimm_bits!(IMM5, 5); @@ -2970,7 +2937,6 @@ pub unsafe fn __msa_cle_u_d(a: v2u64, b: v2u64) -> v2i64 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(clei_s.b, IMM_S5 = -1))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_clei_s_b(a: v16i8) -> v16i8 { static_assert_simm_bits!(IMM_S5, 5); @@ -2987,7 +2953,6 @@ pub unsafe fn __msa_clei_s_b(a: v16i8) -> v16i8 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(clei_s.h, IMM_S5 = -1))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_clei_s_h(a: v8i16) -> v8i16 { static_assert_simm_bits!(IMM_S5, 5); @@ -3004,7 +2969,6 @@ pub unsafe fn __msa_clei_s_h(a: v8i16) -> v8i16 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(clei_s.w, IMM_S5 = -1))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_clei_s_w(a: v4i32) -> v4i32 { static_assert_simm_bits!(IMM_S5, 5); @@ -3021,7 +2985,6 @@ pub unsafe fn __msa_clei_s_w(a: v4i32) -> v4i32 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(clei_s.d, IMM_S5 = -1))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_clei_s_d(a: v2i64) -> v2i64 { static_assert_simm_bits!(IMM_S5, 5); @@ -3038,7 +3001,6 @@ pub unsafe fn __msa_clei_s_d(a: v2i64) -> v2i64 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(clei_u.b, IMM5 = 0b111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_clei_u_b(a: v16u8) -> v16i8 { static_assert_uimm_bits!(IMM5, 5); @@ -3055,7 +3017,6 @@ pub unsafe fn __msa_clei_u_b(a: v16u8) -> v16i8 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(clei_u.h, IMM5 = 0b11111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_clei_u_h(a: v8u16) -> v8i16 { static_assert_uimm_bits!(IMM5, 5); @@ -3072,7 +3033,6 @@ pub unsafe fn __msa_clei_u_h(a: v8u16) -> v8i16 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(clei_u.w, IMM5 = 0b11111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_clei_u_w(a: v4u32) -> v4i32 { static_assert_uimm_bits!(IMM5, 5); @@ -3089,7 +3049,6 @@ pub unsafe fn __msa_clei_u_w(a: v4u32) -> v4i32 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(clei_u.d, IMM5 = 0b11111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_clei_u_d(a: v2u64) -> v2i64 { static_assert_uimm_bits!(IMM5, 5); @@ -3226,7 +3185,6 @@ pub unsafe fn __msa_clt_u_d(a: v2u64, b: v2u64) -> v2i64 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(clti_s.b, IMM_S5 = 0b111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_clti_s_b(a: v16i8) -> v16i8 { static_assert_simm_bits!(IMM_S5, 5); @@ -3243,7 +3201,6 @@ pub unsafe fn __msa_clti_s_b(a: v16i8) -> v16i8 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(clti_s.h, IMM_S5 = -1))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_clti_s_h(a: v8i16) -> v8i16 { static_assert_simm_bits!(IMM_S5, 5); @@ -3260,7 +3217,6 @@ pub unsafe fn __msa_clti_s_h(a: v8i16) -> v8i16 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(clti_s.w, IMM_S5 = -1))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_clti_s_w(a: v4i32) -> v4i32 { static_assert_simm_bits!(IMM_S5, 5); @@ -3277,7 +3233,6 @@ pub unsafe fn __msa_clti_s_w(a: v4i32) -> v4i32 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(clti_s.d, IMM_S5 = -1))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_clti_s_d(a: v2i64) -> v2i64 { static_assert_simm_bits!(IMM_S5, 5); @@ -3294,7 +3249,6 @@ pub unsafe fn __msa_clti_s_d(a: v2i64) -> v2i64 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(clti_u.b, IMM5 = 0b111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_clti_u_b(a: v16u8) -> v16i8 { static_assert_uimm_bits!(IMM5, 5); @@ -3311,7 +3265,6 @@ pub unsafe fn __msa_clti_u_b(a: v16u8) -> v16i8 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(clti_u.h, IMM5 = 0b11111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_clti_u_h(a: v8u16) -> v8i16 { static_assert_uimm_bits!(IMM5, 5); @@ -3328,7 +3281,6 @@ pub unsafe fn __msa_clti_u_h(a: v8u16) -> v8i16 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(clti_u.w, IMM5 = 0b11111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_clti_u_w(a: v4u32) -> v4i32 { static_assert_uimm_bits!(IMM5, 5); @@ -3345,7 +3297,6 @@ pub unsafe fn __msa_clti_u_w(a: v4u32) -> v4i32 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(clti_u.d, IMM5 = 0b11111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_clti_u_d(a: v2u64) -> v2i64 { static_assert_uimm_bits!(IMM5, 5); @@ -3360,7 +3311,6 @@ pub unsafe fn __msa_clti_u_d(a: v2u64) -> v2i64 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(copy_s.b, IMM4 = 0b1111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_copy_s_b(a: v16i8) -> i32 { static_assert_uimm_bits!(IMM4, 4); @@ -3375,7 +3325,6 @@ pub unsafe fn __msa_copy_s_b(a: v16i8) -> i32 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(copy_s.h, IMM3 = 0b111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_copy_s_h(a: v8i16) -> i32 { static_assert_uimm_bits!(IMM3, 3); @@ -3390,7 +3339,6 @@ pub unsafe fn __msa_copy_s_h(a: v8i16) -> i32 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(copy_s.w, IMM2 = 0b11))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_copy_s_w(a: v4i32) -> i32 { static_assert_uimm_bits!(IMM2, 2); @@ -3405,7 +3353,6 @@ pub unsafe fn __msa_copy_s_w(a: v4i32) -> i32 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(copy_s.d, IMM1 = 0b1))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_copy_s_d(a: v2i64) -> i64 { static_assert_uimm_bits!(IMM1, 1); @@ -3420,7 +3367,6 @@ pub unsafe fn __msa_copy_s_d(a: v2i64) -> i64 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(copy_u.b, IMM4 = 0b1111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_copy_u_b(a: v16i8) -> u32 { static_assert_uimm_bits!(IMM4, 4); @@ -3435,7 +3381,6 @@ pub unsafe fn __msa_copy_u_b(a: v16i8) -> u32 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(copy_u.h, IMM3 = 0b111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_copy_u_h(a: v8i16) -> u32 { static_assert_uimm_bits!(IMM3, 3); @@ -3450,7 +3395,6 @@ pub unsafe fn __msa_copy_u_h(a: v8i16) -> u32 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(copy_u.w, IMM2 = 0b11))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_copy_u_w(a: v4i32) -> u32 { static_assert_uimm_bits!(IMM2, 2); @@ -3465,7 +3409,6 @@ pub unsafe fn __msa_copy_u_w(a: v4i32) -> u32 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(copy_u.d, IMM1 = 0b1))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_copy_u_d(a: v2i64) -> u64 { static_assert_uimm_bits!(IMM1, 1); @@ -3482,7 +3425,6 @@ pub unsafe fn __msa_copy_u_d(a: v2i64) -> u64 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(ctcmsa, IMM5 = 0b1))] -#[rustc_legacy_const_generics(0)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_ctcmsa(a: i32) -> () { static_assert_uimm_bits!(IMM5, 5); @@ -5856,7 +5798,6 @@ pub unsafe fn __msa_ilvr_d(a: v2i64, b: v2i64) -> v2i64 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(insert.b, IMM4 = 0b1111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_insert_b(a: v16i8, c: i32) -> v16i8 { static_assert_uimm_bits!(IMM4, 4); @@ -5872,7 +5813,6 @@ pub unsafe fn __msa_insert_b(a: v16i8, c: i32) -> v16i8 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(insert.h, IMM3 = 0b111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_insert_h(a: v8i16, c: i32) -> v8i16 { static_assert_uimm_bits!(IMM3, 3); @@ -5888,7 +5828,6 @@ pub unsafe fn __msa_insert_h(a: v8i16, c: i32) -> v8i16 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(insert.w, IMM2 = 0b11))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_insert_w(a: v4i32, c: i32) -> v4i32 { static_assert_uimm_bits!(IMM2, 2); @@ -5904,7 +5843,6 @@ pub unsafe fn __msa_insert_w(a: v4i32, c: i32) -> v4i32 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(insert.d, IMM1 = 0b1))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_insert_d(a: v2i64, c: i64) -> v2i64 { static_assert_uimm_bits!(IMM1, 1); @@ -5920,7 +5858,6 @@ pub unsafe fn __msa_insert_d(a: v2i64, c: i64) -> v2i64 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(insve.b, IMM4 = 0b1111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_insve_b(a: v16i8, c: v16i8) -> v16i8 { static_assert_uimm_bits!(IMM4, 4); @@ -5936,7 +5873,6 @@ pub unsafe fn __msa_insve_b(a: v16i8, c: v16i8) -> v16i8 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(insve.h, IMM3 = 0b111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_insve_h(a: v8i16, c: v8i16) -> v8i16 { static_assert_uimm_bits!(IMM3, 3); @@ -5952,7 +5888,6 @@ pub unsafe fn __msa_insve_h(a: v8i16, c: v8i16) -> v8i16 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(insve.w, IMM2 = 0b11))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_insve_w(a: v4i32, c: v4i32) -> v4i32 { static_assert_uimm_bits!(IMM2, 2); @@ -5968,7 +5903,6 @@ pub unsafe fn __msa_insve_w(a: v4i32, c: v4i32) -> v4i32 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(insve.d, IMM1 = 0b1))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_insve_d(a: v2i64, c: v2i64) -> v2i64 { static_assert_uimm_bits!(IMM1, 1); @@ -5984,7 +5918,6 @@ pub unsafe fn __msa_insve_d(a: v2i64, c: v2i64) -> v2i64 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(ld.b, IMM_S10 = -1))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_ld_b(mem_addr: *mut u8) -> v16i8 { static_assert_simm_bits!(IMM_S10, 10); @@ -6000,7 +5933,6 @@ pub unsafe fn __msa_ld_b(mem_addr: *mut u8) -> v16i8 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(ld.h, IMM_S11 = -2))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_ld_h(mem_addr: *mut u8) -> v8i16 { static_assert_simm_bits!(IMM_S11, 11); @@ -6017,7 +5949,6 @@ pub unsafe fn __msa_ld_h(mem_addr: *mut u8) -> v8i16 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(ld.w, IMM_S12 = -4))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_ld_w(mem_addr: *mut u8) -> v4i32 { static_assert_simm_bits!(IMM_S12, 12); @@ -6034,7 +5965,6 @@ pub unsafe fn __msa_ld_w(mem_addr: *mut u8) -> v4i32 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(ld.d, IMM_S13 = -8))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_ld_d(mem_addr: *mut u8) -> v2i64 { static_assert_simm_bits!(IMM_S13, 13); @@ -6051,7 +5981,6 @@ pub unsafe fn __msa_ld_d(mem_addr: *mut u8) -> v2i64 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(ldi.b, IMM_S10 = -1))] -#[rustc_legacy_const_generics(0)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_ldi_b() -> v16i8 { static_assert_simm_bits!(IMM_S10, 10); @@ -6067,7 +5996,6 @@ pub unsafe fn __msa_ldi_b() -> v16i8 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(ldi.h, IMM_S10 = -1))] -#[rustc_legacy_const_generics(0)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_ldi_h() -> v8i16 { static_assert_simm_bits!(IMM_S10, 10); @@ -6083,7 +6011,6 @@ pub unsafe fn __msa_ldi_h() -> v8i16 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(ldi.w, IMM_S10 = -1))] -#[rustc_legacy_const_generics(0)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_ldi_w() -> v4i32 { static_assert_simm_bits!(IMM_S10, 10); @@ -6099,7 +6026,6 @@ pub unsafe fn __msa_ldi_w() -> v4i32 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(ldi.d, IMM_S10 = -1))] -#[rustc_legacy_const_generics(0)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_ldi_d() -> v2i64 { static_assert_simm_bits!(IMM_S10, 10); @@ -6411,7 +6337,6 @@ pub unsafe fn __msa_max_u_d(a: v2u64, b: v2u64) -> v2u64 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(maxi_s.b, IMM_S5 = -1))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_maxi_s_b(a: v16i8) -> v16i8 { static_assert_simm_bits!(IMM_S5, 5); @@ -6427,7 +6352,6 @@ pub unsafe fn __msa_maxi_s_b(a: v16i8) -> v16i8 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(maxi_s.h, IMM_S5 = -1))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_maxi_s_h(a: v8i16) -> v8i16 { static_assert_simm_bits!(IMM_S5, 5); @@ -6443,7 +6367,6 @@ pub unsafe fn __msa_maxi_s_h(a: v8i16) -> v8i16 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(maxi_s.w, IMM_S5 = -1))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_maxi_s_w(a: v4i32) -> v4i32 { static_assert_simm_bits!(IMM_S5, 5); @@ -6459,7 +6382,6 @@ pub unsafe fn __msa_maxi_s_w(a: v4i32) -> v4i32 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(maxi_s.d, IMM_S5 = -1))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_maxi_s_d(a: v2i64) -> v2i64 { static_assert_simm_bits!(IMM_S5, 5); @@ -6475,7 +6397,6 @@ pub unsafe fn __msa_maxi_s_d(a: v2i64) -> v2i64 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(maxi_u.b, IMM5 = 0b11111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_maxi_u_b(a: v16u8) -> v16u8 { static_assert_uimm_bits!(IMM5, 5); @@ -6491,7 +6412,6 @@ pub unsafe fn __msa_maxi_u_b(a: v16u8) -> v16u8 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(maxi_u.h, IMM5 = 0b11111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_maxi_u_h(a: v8u16) -> v8u16 { static_assert_uimm_bits!(IMM5, 5); @@ -6507,7 +6427,6 @@ pub unsafe fn __msa_maxi_u_h(a: v8u16) -> v8u16 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(maxi_u.w, IMM5 = 0b11111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_maxi_u_w(a: v4u32) -> v4u32 { static_assert_uimm_bits!(IMM5, 5); @@ -6523,7 +6442,6 @@ pub unsafe fn __msa_maxi_u_w(a: v4u32) -> v4u32 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(maxi_u.d, IMM5 = 0b11111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_maxi_u_d(a: v2u64) -> v2u64 { static_assert_uimm_bits!(IMM5, 5); @@ -6655,7 +6573,6 @@ pub unsafe fn __msa_min_s_d(a: v2i64, b: v2i64) -> v2i64 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(mini_s.b, IMM_S5 = -1))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_mini_s_b(a: v16i8) -> v16i8 { static_assert_simm_bits!(IMM_S5, 5); @@ -6671,7 +6588,6 @@ pub unsafe fn __msa_mini_s_b(a: v16i8) -> v16i8 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(mini_s.h, IMM_S5 = -1))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_mini_s_h(a: v8i16) -> v8i16 { static_assert_simm_bits!(IMM_S5, 5); @@ -6687,7 +6603,6 @@ pub unsafe fn __msa_mini_s_h(a: v8i16) -> v8i16 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(mini_s.w, IMM_S5 = -1))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_mini_s_w(a: v4i32) -> v4i32 { static_assert_simm_bits!(IMM_S5, 5); @@ -6703,7 +6618,6 @@ pub unsafe fn __msa_mini_s_w(a: v4i32) -> v4i32 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(mini_s.d, IMM_S5 = -1))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_mini_s_d(a: v2i64) -> v2i64 { static_assert_simm_bits!(IMM_S5, 5); @@ -6775,7 +6689,6 @@ pub unsafe fn __msa_min_u_d(a: v2u64, b: v2u64) -> v2u64 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(mini_u.b, IMM5 = 0b11111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_mini_u_b(a: v16u8) -> v16u8 { static_assert_uimm_bits!(IMM5, 5); @@ -6791,7 +6704,6 @@ pub unsafe fn __msa_mini_u_b(a: v16u8) -> v16u8 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(mini_u.h, IMM5 = 0b11111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_mini_u_h(a: v8u16) -> v8u16 { static_assert_uimm_bits!(IMM5, 5); @@ -6807,7 +6719,6 @@ pub unsafe fn __msa_mini_u_h(a: v8u16) -> v8u16 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(mini_u.w, IMM5 = 0b11111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_mini_u_w(a: v4u32) -> v4u32 { static_assert_uimm_bits!(IMM5, 5); @@ -6823,7 +6734,6 @@ pub unsafe fn __msa_mini_u_w(a: v4u32) -> v4u32 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(mini_u.d, IMM5 = 0b11111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_mini_u_d(a: v2u64) -> v2u64 { static_assert_uimm_bits!(IMM5, 5); @@ -7344,7 +7254,6 @@ pub unsafe fn __msa_nor_v(a: v16u8, b: v16u8) -> v16u8 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(nori.b, IMM8 = 0b11111111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_nori_b(a: v16u8) -> v16u8 { static_assert_uimm_bits!(IMM8, 8); @@ -7376,7 +7285,6 @@ pub unsafe fn __msa_or_v(a: v16u8, b: v16u8) -> v16u8 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(ori.b, IMM8 = 0b11111111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_ori_b(a: v16u8) -> v16u8 { static_assert_uimm_bits!(IMM8, 8); @@ -7556,7 +7464,6 @@ pub unsafe fn __msa_pcnt_d(a: v2i64) -> v2i64 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(sat_s.b, IMM3 = 0b111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_sat_s_b(a: v16i8) -> v16i8 { static_assert_uimm_bits!(IMM3, 3); @@ -7572,7 +7479,6 @@ pub unsafe fn __msa_sat_s_b(a: v16i8) -> v16i8 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(sat_s.h, IMM4 = 0b1111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_sat_s_h(a: v8i16) -> v8i16 { static_assert_uimm_bits!(IMM4, 4); @@ -7588,7 +7494,6 @@ pub unsafe fn __msa_sat_s_h(a: v8i16) -> v8i16 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(sat_s.w, IMM5 = 0b11111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_sat_s_w(a: v4i32) -> v4i32 { static_assert_uimm_bits!(IMM5, 5); @@ -7604,7 +7509,6 @@ pub unsafe fn __msa_sat_s_w(a: v4i32) -> v4i32 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(sat_s.d, IMM6 = 0b111111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_sat_s_d(a: v2i64) -> v2i64 { static_assert_uimm_bits!(IMM6, 6); @@ -7620,7 +7524,6 @@ pub unsafe fn __msa_sat_s_d(a: v2i64) -> v2i64 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(sat_u.b, IMM3 = 0b111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_sat_u_b(a: v16u8) -> v16u8 { static_assert_uimm_bits!(IMM3, 3); @@ -7636,7 +7539,6 @@ pub unsafe fn __msa_sat_u_b(a: v16u8) -> v16u8 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(sat_u.h, IMM4 = 0b1111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_sat_u_h(a: v8u16) -> v8u16 { static_assert_uimm_bits!(IMM4, 4); @@ -7652,7 +7554,6 @@ pub unsafe fn __msa_sat_u_h(a: v8u16) -> v8u16 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(sat_u.w, IMM5 = 0b11111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_sat_u_w(a: v4u32) -> v4u32 { static_assert_uimm_bits!(IMM5, 5); @@ -7668,7 +7569,6 @@ pub unsafe fn __msa_sat_u_w(a: v4u32) -> v4u32 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(sat_u.d, IMM6 = 0b111111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_sat_u_d(a: v2u64) -> v2u64 { static_assert_uimm_bits!(IMM6, 6); @@ -7685,7 +7585,6 @@ pub unsafe fn __msa_sat_u_d(a: v2u64) -> v2u64 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(shf.b, IMM8 = 0b11111111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_shf_b(a: v16i8) -> v16i8 { static_assert_uimm_bits!(IMM8, 8); @@ -7702,7 +7601,6 @@ pub unsafe fn __msa_shf_b(a: v16i8) -> v16i8 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(shf.h, IMM8 = 0b11111111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_shf_h(a: v8i16) -> v8i16 { static_assert_uimm_bits!(IMM8, 8); @@ -7719,7 +7617,6 @@ pub unsafe fn __msa_shf_h(a: v8i16) -> v8i16 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(shf.w, IMM8 = 0b11111111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_shf_w(a: v4i32) -> v4i32 { static_assert_uimm_bits!(IMM8, 8); @@ -7824,7 +7721,6 @@ pub unsafe fn __msa_sld_d(a: v2i64, b: v2i64, c: i32) -> v2i64 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(sldi.b, IMM4 = 0b1111))] -#[rustc_legacy_const_generics(2)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_sldi_b(a: v16i8, b: v16i8) -> v16i8 { static_assert_uimm_bits!(IMM4, 4); @@ -7845,7 +7741,6 @@ pub unsafe fn __msa_sldi_b(a: v16i8, b: v16i8) -> v16i8 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(sldi.h, IMM3 = 0b111))] -#[rustc_legacy_const_generics(2)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_sldi_h(a: v8i16, b: v8i16) -> v8i16 { static_assert_uimm_bits!(IMM3, 3); @@ -7866,7 +7761,6 @@ pub unsafe fn __msa_sldi_h(a: v8i16, b: v8i16) -> v8i16 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(sldi.w, IMM2 = 0b11))] -#[rustc_legacy_const_generics(2)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_sldi_w(a: v4i32, b: v4i32) -> v4i32 { static_assert_uimm_bits!(IMM2, 2); @@ -7887,7 +7781,6 @@ pub unsafe fn __msa_sldi_w(a: v4i32, b: v4i32) -> v4i32 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(sldi.d, IMM1 = 0b1))] -#[rustc_legacy_const_generics(2)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_sldi_d(a: v2i64, b: v2i64) -> v2i64 { static_assert_uimm_bits!(IMM1, 1); @@ -7963,7 +7856,6 @@ pub unsafe fn __msa_sll_d(a: v2i64, b: v2i64) -> v2i64 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(slli.b, IMM4 = 0b1111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_slli_b(a: v16i8) -> v16i8 { static_assert_uimm_bits!(IMM4, 4); @@ -7979,7 +7871,6 @@ pub unsafe fn __msa_slli_b(a: v16i8) -> v16i8 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(slli.h, IMM3 = 0b111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_slli_h(a: v8i16) -> v8i16 { static_assert_uimm_bits!(IMM3, 3); @@ -7995,7 +7886,6 @@ pub unsafe fn __msa_slli_h(a: v8i16) -> v8i16 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(slli.w, IMM2 = 0b11))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_slli_w(a: v4i32) -> v4i32 { static_assert_uimm_bits!(IMM2, 2); @@ -8011,7 +7901,6 @@ pub unsafe fn __msa_slli_w(a: v4i32) -> v4i32 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(slli.d, IMM1 = 0b1))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_slli_d(a: v2i64) -> v2i64 { static_assert_uimm_bits!(IMM1, 1); @@ -8086,7 +7975,6 @@ pub unsafe fn __msa_splat_d(a: v2i64, b: i32) -> v2i64 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(splati.b, IMM4 = 0b1111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_splati_b(a: v16i8) -> v16i8 { static_assert_uimm_bits!(IMM4, 4); @@ -8101,7 +7989,6 @@ pub unsafe fn __msa_splati_b(a: v16i8) -> v16i8 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(splati.h, IMM3 = 0b111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_splati_h(a: v8i16) -> v8i16 { static_assert_uimm_bits!(IMM3, 3); @@ -8116,7 +8003,6 @@ pub unsafe fn __msa_splati_h(a: v8i16) -> v8i16 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(splati.w, IMM2 = 0b11))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_splati_w(a: v4i32) -> v4i32 { static_assert_uimm_bits!(IMM2, 2); @@ -8131,7 +8017,6 @@ pub unsafe fn __msa_splati_w(a: v4i32) -> v4i32 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(splati.d, IMM1 = 0b1))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_splati_d(a: v2i64) -> v2i64 { static_assert_uimm_bits!(IMM1, 1); @@ -8207,7 +8092,6 @@ pub unsafe fn __msa_sra_d(a: v2i64, b: v2i64) -> v2i64 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(srai.b, IMM3 = 0b111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_srai_b(a: v16i8) -> v16i8 { static_assert_uimm_bits!(IMM3, 3); @@ -8223,7 +8107,6 @@ pub unsafe fn __msa_srai_b(a: v16i8) -> v16i8 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(srai.h, IMM4 = 0b1111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_srai_h(a: v8i16) -> v8i16 { static_assert_uimm_bits!(IMM4, 4); @@ -8239,7 +8122,6 @@ pub unsafe fn __msa_srai_h(a: v8i16) -> v8i16 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(srai.w, IMM5 = 0b11111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_srai_w(a: v4i32) -> v4i32 { static_assert_uimm_bits!(IMM5, 5); @@ -8255,7 +8137,6 @@ pub unsafe fn __msa_srai_w(a: v4i32) -> v4i32 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(srai.d, IMM6 = 0b111111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_srai_d(a: v2i64) -> v2i64 { static_assert_uimm_bits!(IMM6, 6); @@ -8336,7 +8217,6 @@ pub unsafe fn __msa_srar_d(a: v2i64, b: v2i64) -> v2i64 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(srari.b, IMM3 = 0b111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_srari_b(a: v16i8) -> v16i8 { static_assert_uimm_bits!(IMM3, 3); @@ -8353,7 +8233,6 @@ pub unsafe fn __msa_srari_b(a: v16i8) -> v16i8 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(srari.h, IMM4 = 0b1111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_srari_h(a: v8i16) -> v8i16 { static_assert_uimm_bits!(IMM4, 4); @@ -8370,7 +8249,6 @@ pub unsafe fn __msa_srari_h(a: v8i16) -> v8i16 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(srari.w, IMM5 = 0b11111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_srari_w(a: v4i32) -> v4i32 { static_assert_uimm_bits!(IMM5, 5); @@ -8387,7 +8265,6 @@ pub unsafe fn __msa_srari_w(a: v4i32) -> v4i32 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(srari.d, IMM6 = 0b111111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_srari_d(a: v2i64) -> v2i64 { static_assert_uimm_bits!(IMM6, 6); @@ -8463,7 +8340,6 @@ pub unsafe fn __msa_srl_d(a: v2i64, b: v2i64) -> v2i64 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(srli.b, IMM4 = 0b1111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_srli_b(a: v16i8) -> v16i8 { static_assert_uimm_bits!(IMM4, 4); @@ -8479,7 +8355,6 @@ pub unsafe fn __msa_srli_b(a: v16i8) -> v16i8 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(srli.h, IMM3 = 0b111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_srli_h(a: v8i16) -> v8i16 { static_assert_uimm_bits!(IMM3, 3); @@ -8495,7 +8370,6 @@ pub unsafe fn __msa_srli_h(a: v8i16) -> v8i16 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(srli.w, IMM2 = 0b11))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_srli_w(a: v4i32) -> v4i32 { static_assert_uimm_bits!(IMM2, 2); @@ -8511,7 +8385,6 @@ pub unsafe fn __msa_srli_w(a: v4i32) -> v4i32 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(srli.d, IMM1 = 0b1))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_srli_d(a: v2i64) -> v2i64 { static_assert_uimm_bits!(IMM1, 1); @@ -8592,7 +8465,6 @@ pub unsafe fn __msa_srlr_d(a: v2i64, b: v2i64) -> v2i64 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(srlri.b, IMM3 = 0b111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_srlri_b(a: v16i8) -> v16i8 { static_assert_uimm_bits!(IMM3, 3); @@ -8609,7 +8481,6 @@ pub unsafe fn __msa_srlri_b(a: v16i8) -> v16i8 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(srlri.h, IMM4 = 0b1111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_srlri_h(a: v8i16) -> v8i16 { static_assert_uimm_bits!(IMM4, 4); @@ -8626,7 +8497,6 @@ pub unsafe fn __msa_srlri_h(a: v8i16) -> v8i16 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(srlri.w, IMM5 = 0b11111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_srlri_w(a: v4i32) -> v4i32 { static_assert_uimm_bits!(IMM5, 5); @@ -8643,7 +8513,6 @@ pub unsafe fn __msa_srlri_w(a: v4i32) -> v4i32 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(srlri.d, IMM6 = 0b111111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_srlri_d(a: v2i64) -> v2i64 { static_assert_uimm_bits!(IMM6, 6); @@ -8659,7 +8528,6 @@ pub unsafe fn __msa_srlri_d(a: v2i64) -> v2i64 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(st.b, IMM_S10 = -1))] -#[rustc_legacy_const_generics(2)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_st_b(a: v16i8, mem_addr: *mut u8) -> () { static_assert_simm_bits!(IMM_S10, 10); @@ -8675,7 +8543,6 @@ pub unsafe fn __msa_st_b(a: v16i8, mem_addr: *mut u8) -> () #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(st.h, IMM_S11 = -2))] -#[rustc_legacy_const_generics(2)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_st_h(a: v8i16, mem_addr: *mut u8) -> () { static_assert_simm_bits!(IMM_S11, 11); @@ -8692,7 +8559,6 @@ pub unsafe fn __msa_st_h(a: v8i16, mem_addr: *mut u8) -> () #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(st.w, IMM_S12 = -4))] -#[rustc_legacy_const_generics(2)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_st_w(a: v4i32, mem_addr: *mut u8) -> () { static_assert_simm_bits!(IMM_S12, 12); @@ -8709,7 +8575,6 @@ pub unsafe fn __msa_st_w(a: v4i32, mem_addr: *mut u8) -> () #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(st.d, IMM_S13 = -8))] -#[rustc_legacy_const_generics(2)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_st_d(a: v2i64, mem_addr: *mut u8) -> () { static_assert_simm_bits!(IMM_S13, 13); @@ -9022,7 +8887,6 @@ pub unsafe fn __msa_subv_d(a: v2i64, b: v2i64) -> v2i64 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(subvi.b, IMM5 = 0b10111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_subvi_b(a: v16i8) -> v16i8 { static_assert_uimm_bits!(IMM5, 5); @@ -9038,7 +8902,6 @@ pub unsafe fn __msa_subvi_b(a: v16i8) -> v16i8 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(subvi.h, IMM5 = 0b10111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_subvi_h(a: v8i16) -> v8i16 { static_assert_uimm_bits!(IMM5, 5); @@ -9054,7 +8917,6 @@ pub unsafe fn __msa_subvi_h(a: v8i16) -> v8i16 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(subvi.w, IMM5 = 0b10111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_subvi_w(a: v4i32) -> v4i32 { static_assert_uimm_bits!(IMM5, 5); @@ -9070,7 +8932,6 @@ pub unsafe fn __msa_subvi_w(a: v4i32) -> v4i32 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(subvi.d, IMM5 = 0b10111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_subvi_d(a: v2i64) -> v2i64 { static_assert_uimm_bits!(IMM5, 5); @@ -9174,7 +9035,6 @@ pub unsafe fn __msa_xor_v(a: v16u8, b: v16u8) -> v16u8 { #[inline] #[target_feature(enable = "msa")] #[cfg_attr(test, assert_instr(xori.b, IMM8 = 0b11111111))] -#[rustc_legacy_const_generics(1)] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_xori_b(a: v16u8) -> v16u8 { static_assert_uimm_bits!(IMM8, 8); diff --git a/library/stdarch/crates/core_arch/src/powerpc/vsx.rs b/library/stdarch/crates/core_arch/src/powerpc/vsx.rs index 5f62aebca92b9..7f8e8e4fd1cf3 100644 --- a/library/stdarch/crates/core_arch/src/powerpc/vsx.rs +++ b/library/stdarch/crates/core_arch/src/powerpc/vsx.rs @@ -176,7 +176,6 @@ mod sealed { /// Vector permute. #[inline] #[target_feature(enable = "vsx")] -//#[rustc_legacy_const_generics(2)] #[unstable(feature = "stdarch_powerpc", issue = "111145")] pub unsafe fn vec_xxpermdi(a: T, b: T) -> T where diff --git a/library/stdarch/crates/core_arch/src/riscv32/zk.rs b/library/stdarch/crates/core_arch/src/riscv32/zk.rs index 34e5fb90a99ed..ae3d80fa2a0d3 100644 --- a/library/stdarch/crates/core_arch/src/riscv32/zk.rs +++ b/library/stdarch/crates/core_arch/src/riscv32/zk.rs @@ -51,7 +51,6 @@ unsafe extern "llvm-intrinsic" { /// The `BS` parameter is expected to be a constant value and only the bottom 2 bits of `bs` are /// used. #[target_feature(enable = "zkne")] -#[rustc_legacy_const_generics(2)] // See #1464 // #[cfg_attr(test, assert_instr(aes32esi, BS = 0))] #[inline] @@ -80,7 +79,6 @@ pub fn aes32esi(rs1: u32, rs2: u32) -> u32 { /// The `bs` parameter is expected to be a constant value and only the bottom 2 bits of `bs` are /// used. #[target_feature(enable = "zkne")] -#[rustc_legacy_const_generics(2)] // See #1464 // #[cfg_attr(test, assert_instr(aes32esmi, BS = 0))] #[inline] @@ -108,7 +106,6 @@ pub fn aes32esmi(rs1: u32, rs2: u32) -> u32 { /// The `BS` parameter is expected to be a constant value and only the bottom 2 bits of `bs` are /// used. #[target_feature(enable = "zknd")] -#[rustc_legacy_const_generics(2)] // See #1464 // #[cfg_attr(test, assert_instr(aes32dsi, BS = 0))] #[inline] @@ -137,7 +134,6 @@ pub fn aes32dsi(rs1: u32, rs2: u32) -> u32 { /// The `BS` parameter is expected to be a constant value and only the bottom 2 bits of `bs` are /// used. #[target_feature(enable = "zknd")] -#[rustc_legacy_const_generics(2)] // See #1464 // #[cfg_attr(test, assert_instr(aes32dsmi, BS = 0))] #[inline] diff --git a/library/stdarch/crates/core_arch/src/riscv64/zk.rs b/library/stdarch/crates/core_arch/src/riscv64/zk.rs index ea5486b39199c..6903c2ae4f0c1 100644 --- a/library/stdarch/crates/core_arch/src/riscv64/zk.rs +++ b/library/stdarch/crates/core_arch/src/riscv64/zk.rs @@ -130,7 +130,6 @@ pub fn aes64dsm(rs1: u64, rs2: u64) -> u64 { /// /// The `RNUM` parameter is expected to be a constant value inside the range of `0..=10`. #[target_feature(enable = "zkne_or_zknd")] -#[rustc_legacy_const_generics(1)] #[inline] #[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] pub fn aes64ks1i(rs1: u64) -> u64 { diff --git a/library/stdarch/crates/core_arch/src/riscv_shared/zk.rs b/library/stdarch/crates/core_arch/src/riscv_shared/zk.rs index 6966686731e38..9902dbabf59ae 100644 --- a/library/stdarch/crates/core_arch/src/riscv_shared/zk.rs +++ b/library/stdarch/crates/core_arch/src/riscv_shared/zk.rs @@ -169,7 +169,7 @@ pub fn sha256sum1(rs1: u32) -> u32 { /// C = L(B) = B ⊕ (B ≪ 2) ⊕ (B ≪ 10) ⊕ (B ≪ 18) ⊕ (B ≪ 24) /// ``` /// -/// It can be implemented by `sm4ed` instruction like: +/// It can be implemented by the `sm4ed` instruction like this: /// /// ```no_run /// # #[cfg(any(target_arch = "riscv32", target_arch = "riscv64"))] @@ -177,16 +177,15 @@ pub fn sha256sum1(rs1: u32) -> u32 { /// # #[cfg(target_arch = "riscv32")] use core::arch::riscv32::sm4ed; /// # #[cfg(target_arch = "riscv64")] use core::arch::riscv64::sm4ed; /// let a = x1 ^ x2 ^ x3 ^ rk; -/// let c0 = sm4ed(x0, a, 0); -/// let c1 = sm4ed(c0, a, 1); // c1 represents c[0..=1], etc. -/// let c2 = sm4ed(c1, a, 2); -/// let c3 = sm4ed(c2, a, 3); +/// let c0 = sm4ed::<0>(x0, a); +/// let c1 = sm4ed::<1>(c0, a); // c1 represents c[0..=1], etc. +/// let c2 = sm4ed::<2>(c1, a); +/// let c3 = sm4ed::<3>(c2, a); /// return c3; // c3 represents c[0..=3] /// # } /// ``` #[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] #[target_feature(enable = "zksed")] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(sm4ed, BS = 0))] #[inline] pub fn sm4ed(rs1: u32, rs2: u32) -> u32 { @@ -253,16 +252,15 @@ pub fn sm4ed(rs1: u32, rs2: u32) -> u32 { /// # #[cfg(target_arch = "riscv32")] use core::arch::riscv32::sm4ed; /// # #[cfg(target_arch = "riscv64")] use core::arch::riscv64::sm4ed; /// let a = x1 ^ x2 ^ x3 ^ rk; -/// let c0 = sm4ed(x0, a, 0); -/// let c1 = sm4ed(c0, a, 1); // c1 represents c[0..=1], etc. -/// let c2 = sm4ed(c1, a, 2); -/// let c3 = sm4ed(c2, a, 3); +/// let c0 = sm4ed::<0>(x0, a); +/// let c1 = sm4ed::<1>(c0, a); // c1 represents c[0..=1], etc. +/// let c2 = sm4ed::<2>(c1, a); +/// let c3 = sm4ed::<3>(c2, a); /// return c3; // c3 represents c[0..=3] /// # } /// ``` #[unstable(feature = "riscv_ext_intrinsics", issue = "114544")] #[target_feature(enable = "zksed")] -#[rustc_legacy_const_generics(2)] #[cfg_attr(test, assert_instr(sm4ks, BS = 0))] #[inline] pub fn sm4ks(rs1: u32, rs2: u32) -> u32 { diff --git a/library/stdarch/crates/stdarch-gen-hexagon/src/scalar.rs b/library/stdarch/crates/stdarch-gen-hexagon/src/scalar.rs index 8c7880b58a023..a8da2da5736c6 100644 --- a/library/stdarch/crates/stdarch-gen-hexagon/src/scalar.rs +++ b/library/stdarch/crates/stdarch-gen-hexagon/src/scalar.rs @@ -521,17 +521,6 @@ fn generate_functions(intrinsics: &[ScalarIntrinsic]) -> String { output.push_str("#[inline(always)]\n"); } - // Immediate parameters become const generics but are passed as positional - // arguments at the call site: Q6_R_add_RI(rs, 42) rather than Q6_R_add_RI::<42>(rs). - // This matches the assembly syntax where the immediate is an operand. - if !imm_params.is_empty() { - let indices: Vec = imm_params.iter().map(|(i, _, _)| i.to_string()).collect(); - output.push_str(&format!( - "#[rustc_legacy_const_generics({})]\n", - indices.join(", ") - )); - } - if let Some(instr) = extract_instr_name(&info.asm_syntax) { if imm_params.is_empty() { output.push_str(&format!("#[cfg_attr(test, assert_instr({}))]\n", instr)); diff --git a/library/stdarch/crates/stdarch-verify/src/lib.rs b/library/stdarch/crates/stdarch-verify/src/lib.rs index 5412ab466ad58..c681eca1dd9e8 100644 --- a/library/stdarch/crates/stdarch-verify/src/lib.rs +++ b/library/stdarch/crates/stdarch-verify/src/lib.rs @@ -110,37 +110,21 @@ fn functions(input: TokenStream, dirs: &[&str]) -> TokenStream { quote! { None } }; - let required_const = find_required_const("rustc_args_required_const", &f.attrs); - let mut legacy_const_generics = - find_required_const("rustc_legacy_const_generics", &f.attrs); - if !required_const.is_empty() && !legacy_const_generics.is_empty() { - panic!( - "Can't have both #[rustc_args_required_const] and \ - #[rustc_legacy_const_generics]" - ); - } + let mut legacy_const_generics = find_legacy_const_generics(&f.attrs); // Newer intrinsics don't have `rustc_legacy_const_generics` - assume they belong at // the end of the argument list - if required_const.is_empty() && legacy_const_generics.is_empty() { + if legacy_const_generics.is_empty() { legacy_const_generics = (arguments.len()..(arguments.len() + const_arguments.len())).collect(); } - // The list of required consts, used to verify the arguments, comes from either the - // `rustc_args_required_const` or the `rustc_legacy_const_generics` attribute. - let required_const = if required_const.is_empty() { - legacy_const_generics.clone() - } else { - required_const - }; - legacy_const_generics.sort(); for (idx, ty) in legacy_const_generics - .into_iter() + .iter() .zip(const_arguments.into_iter()) { - arguments.insert(idx, ty); + arguments.insert(*idx, ty); } // Strip leading underscore from fn name when building a test @@ -162,7 +146,7 @@ fn functions(input: TokenStream, dirs: &[&str]) -> TokenStream { target_feature: #target_feature, instrs: &[#(#instrs),*], file: stringify!(#path), - required_const: &[#(#required_const),*], + legacy_const_generics: &[#(#legacy_const_generics),*], has_test: #has_test, doc: #doc } @@ -596,7 +580,7 @@ fn find_doc(attrs: &[syn::Attribute]) -> String { .collect() } -fn find_required_const(name: &str, attrs: &[syn::Attribute]) -> Vec { +fn find_legacy_const_generics(attrs: &[syn::Attribute]) -> Vec { attrs .iter() .filter_map(|a| { @@ -607,7 +591,7 @@ fn find_required_const(name: &str, attrs: &[syn::Attribute]) -> Vec { } }) .flat_map(|l| { - if l.path.segments[0].ident == name { + if l.path.segments[0].ident == "rustc_legacy_const_generics" { syn::parse2::(l.tokens.clone()) .unwrap() .args diff --git a/library/stdarch/crates/stdarch-verify/tests/arm.rs b/library/stdarch/crates/stdarch-verify/tests/arm.rs index 6ba9c17c4804c..40c132bbe8525 100644 --- a/library/stdarch/crates/stdarch-verify/tests/arm.rs +++ b/library/stdarch/crates/stdarch-verify/tests/arm.rs @@ -11,7 +11,7 @@ struct Function { target_feature: Option<&'static str>, instrs: &'static [&'static str], file: &'static str, - required_const: &'static [usize], + legacy_const_generics: &'static [usize], has_test: bool, doc: &'static str, } @@ -333,7 +333,9 @@ fn matches(rust: &Function, arm: &Intrinsic) -> Result<(), String> { // SVE uses generic type parameters to handle void pointers (Type::ConstPtr(Type::GenericParam("T")), Type::ConstPtr(Type::Void)) => (), // SVE const generics use i32 over u64 for usability reasons - (Type::PrimSigned(32), Type::PrimUnsigned(64)) if rust.required_const.contains(&i) => { + (Type::PrimSigned(32), Type::PrimUnsigned(64)) + if rust.legacy_const_generics.contains(&i) => + { () } // svset doesn't have its const argument last as we assumed when building the Function @@ -343,12 +345,12 @@ fn matches(rust: &Function, arm: &Intrinsic) -> Result<(), String> { } if *arm_const { nconst += 1; - if !rust.required_const.contains(&i) && !rust.name.starts_with("svset") { + if !rust.legacy_const_generics.contains(&i) && !rust.name.starts_with("svset") { bail!("argument const mismatch"); } } } - if nconst != rust.required_const.len() { + if nconst != rust.legacy_const_generics.len() { bail!("wrong number of const arguments"); } diff --git a/library/stdarch/crates/stdarch-verify/tests/mips.rs b/library/stdarch/crates/stdarch-verify/tests/mips.rs index ba639c3f92f76..18502ae5c79ed 100644 --- a/library/stdarch/crates/stdarch-verify/tests/mips.rs +++ b/library/stdarch/crates/stdarch-verify/tests/mips.rs @@ -14,7 +14,7 @@ struct Function { target_feature: Option<&'static str>, instrs: &'static [&'static str], file: &'static str, - required_const: &'static [usize], + legacy_const_generics: &'static [usize], has_test: bool, doc: &'static str, } @@ -94,6 +94,26 @@ enum MsaTy { MutVoidPtr, } +impl MsaTy { + fn is_const(&self) -> bool { + matches!( + self, + MsaTy::imm0_1 + | MsaTy::imm0_3 + | MsaTy::imm0_7 + | MsaTy::imm0_15 + | MsaTy::imm0_31 + | MsaTy::imm0_63 + | MsaTy::imm0_255 + | MsaTy::imm_n16_15 + | MsaTy::imm_n512_511 + | MsaTy::imm_n1024_1022 + | MsaTy::imm_n2048_2044 + | MsaTy::imm_n4096_4088 + ) + } +} + impl<'a> From<&'a str> for MsaTy { fn from(s: &'a str) -> MsaTy { match s { @@ -169,6 +189,11 @@ impl std::convert::TryFrom<&'static str> for MsaIntrinsic { arg_tys.push(MsaTy::from(arg)); } + // Some of the functions extracted from mips-msa.h have immediate arguments between non-immediate arguments, + // but Rust const generics are not function arguments and cannot be expressed in a way that matches the header. + // For the sake of verification, rust const generics are treated as "the last arguments to a function". + arg_tys.sort_by(|arg1, arg2| arg1.is_const().cmp(&arg2.is_const())); + // The instruction is the intrinsic name without the __msa_ prefix. let instruction = &id[6..]; let mut instruction = instruction.to_string(); @@ -313,30 +338,15 @@ fn matches(rust: &Function, mips: &MsaIntrinsic) -> Result<(), String> { ), } - let is_const = matches!( - mips_arg, - MsaTy::imm0_1 - | MsaTy::imm0_3 - | MsaTy::imm0_7 - | MsaTy::imm0_15 - | MsaTy::imm0_31 - | MsaTy::imm0_63 - | MsaTy::imm0_255 - | MsaTy::imm_n16_15 - | MsaTy::imm_n512_511 - | MsaTy::imm_n1024_1022 - | MsaTy::imm_n2048_2044 - | MsaTy::imm_n4096_4088 - ); - if is_const { + if mips_arg.is_const() { nconst += 1; - if !rust.required_const.contains(&i) { + if !rust.legacy_const_generics.contains(&i) { bail!("argument const mismatch"); } } } - if nconst != rust.required_const.len() { + if nconst != rust.legacy_const_generics.len() { bail!("wrong number of const arguments"); } diff --git a/library/stdarch/crates/stdarch-verify/tests/x86-intel.rs b/library/stdarch/crates/stdarch-verify/tests/x86-intel.rs index d2839bb300c2d..fbc999780bf37 100644 --- a/library/stdarch/crates/stdarch-verify/tests/x86-intel.rs +++ b/library/stdarch/crates/stdarch-verify/tests/x86-intel.rs @@ -18,7 +18,7 @@ struct Function { target_feature: Option<&'static str>, instrs: &'static [&'static str], file: &'static str, - required_const: &'static [usize], + legacy_const_generics: &'static [usize], has_test: bool, doc: &'static str, } @@ -555,7 +555,7 @@ fn matches(rust: &Function, intel: &Intrinsic) -> Result<(), String> { bail!("wrong number of arguments on {}", rust.name); } for (i, (a, b)) in intel.parameters.iter().zip(rust.arguments).enumerate() { - let is_const = rust.required_const.contains(&i); + let is_const = rust.legacy_const_generics.contains(&i); equate(b, &a.type_, &a.etype, &intel, is_const)?; } } From 1d32319807cea35e7130739b5b983602e483bde0 Mon Sep 17 00:00:00 2001 From: Trevor Gross Date: Thu, 29 Oct 2026 09:45:52 +0000 Subject: [PATCH 17/43] simd-test: Update old import style, remove outdated lint The crate is now on Rust 2024 so `rust_2018_idioms` isn't relevant. --- library/stdarch/crates/simd-test-macro/src/lib.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/library/stdarch/crates/simd-test-macro/src/lib.rs b/library/stdarch/crates/simd-test-macro/src/lib.rs index 51dd8aaf46fe7..3800c7ad0ae36 100644 --- a/library/stdarch/crates/simd-test-macro/src/lib.rs +++ b/library/stdarch/crates/simd-test-macro/src/lib.rs @@ -4,11 +4,8 @@ //! for the appropriate cfg before calling the inner test function. #![deny(rust_2018_idioms)] -#[macro_use] -extern crate quote; - use proc_macro2::{Ident, Span, TokenStream, TokenTree}; -use quote::ToTokens; +use quote::{ToTokens, quote, quote_spanned}; use std::env; #[proc_macro_attribute] From 70ea346ae07e80924a4984b58d526a349da35d8c Mon Sep 17 00:00:00 2001 From: Trevor Gross Date: Thu, 29 Oct 2026 09:47:16 +0000 Subject: [PATCH 18/43] simd-test: Update proc macros to syn 3 --- library/stdarch/Cargo.lock | 35 ++++++++++++------- .../crates/assert-instr-macro/Cargo.toml | 2 +- .../crates/assert-instr-macro/src/lib.rs | 1 + .../stdarch/crates/simd-test-macro/Cargo.toml | 2 +- .../stdarch/crates/simd-test-macro/src/lib.rs | 1 - .../stdarch/crates/stdarch-verify/Cargo.toml | 2 +- .../stdarch/crates/stdarch-verify/src/lib.rs | 31 ++++++++++------ 7 files changed, 47 insertions(+), 27 deletions(-) diff --git a/library/stdarch/Cargo.lock b/library/stdarch/Cargo.lock index 490161626c164..5750be2086cb6 100644 --- a/library/stdarch/Cargo.lock +++ b/library/stdarch/Cargo.lock @@ -73,7 +73,7 @@ version = "0.1.0" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 3.0.9", ] [[package]] @@ -145,7 +145,7 @@ dependencies = [ "heck", "proc-macro2", "quote", - "syn", + "syn 2.0.117", ] [[package]] @@ -213,7 +213,7 @@ dependencies = [ "proc-macro2", "quote", "strsim", - "syn", + "syn 2.0.117", ] [[package]] @@ -224,7 +224,7 @@ checksum = "ac3984ec7bd6cfa798e62b4a642426a5be0e68f9401cfc2a01e3fa9ea2fcdb8d" dependencies = [ "darling_core", "quote", - "syn", + "syn 2.0.117", ] [[package]] @@ -520,7 +520,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b" dependencies = [ "proc-macro2", - "syn", + "syn 2.0.117", ] [[package]] @@ -745,7 +745,7 @@ checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.117", ] [[package]] @@ -780,7 +780,7 @@ dependencies = [ "darling", "proc-macro2", "quote", - "syn", + "syn 2.0.117", ] [[package]] @@ -807,7 +807,7 @@ version = "0.1.0" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 3.0.9", ] [[package]] @@ -881,7 +881,7 @@ dependencies = [ "quote", "serde", "serde_json", - "syn", + "syn 3.0.9", ] [[package]] @@ -910,6 +910,17 @@ dependencies = [ "unicode-ident", ] +[[package]] +name = "syn" +version = "3.0.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d78c8dee4c7bf0e14673097256fed6142ce9d3b85a408189d07482442145823b" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + [[package]] name = "syscalls" version = "0.6.18" @@ -1094,7 +1105,7 @@ dependencies = [ "heck", "indexmap 2.13.1", "prettyplease", - "syn", + "syn 2.0.117", "wasm-metadata", "wit-bindgen-core", "wit-component", @@ -1110,7 +1121,7 @@ dependencies = [ "prettyplease", "proc-macro2", "quote", - "syn", + "syn 2.0.117", "wit-bindgen-core", "wit-bindgen-rust", ] @@ -1178,7 +1189,7 @@ checksum = "70e3cd084b1788766f53af483dd21f93881ff30d7320490ec3ef7526d203bad4" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.117", ] [[package]] diff --git a/library/stdarch/crates/assert-instr-macro/Cargo.toml b/library/stdarch/crates/assert-instr-macro/Cargo.toml index 77ee571ccbb82..a71dd0f69a6c8 100644 --- a/library/stdarch/crates/assert-instr-macro/Cargo.toml +++ b/library/stdarch/crates/assert-instr-macro/Cargo.toml @@ -11,7 +11,7 @@ test = false [dependencies] proc-macro2 = "1.0" quote = "1.0" -syn = { version = "2.0", features = ["full"] } +syn = { version = "3.0", features = ["full"] } [lints.rust] unexpected_cfgs = {level = "warn", check-cfg = ['cfg(optimized)'] } diff --git a/library/stdarch/crates/assert-instr-macro/src/lib.rs b/library/stdarch/crates/assert-instr-macro/src/lib.rs index 839aae67cb2b0..3c53e92c7178b 100644 --- a/library/stdarch/crates/assert-instr-macro/src/lib.rs +++ b/library/stdarch/crates/assert-instr-macro/src/lib.rs @@ -107,6 +107,7 @@ pub fn assert_instr( let generic_ty_value = syn::TypePath { qself: qself.clone(), path: path.clone(), + attrs: Vec::new(), }; // Replace any function arguments that use generic parameters with the diff --git a/library/stdarch/crates/simd-test-macro/Cargo.toml b/library/stdarch/crates/simd-test-macro/Cargo.toml index 8f9f9b13273cb..717acb03b2b54 100644 --- a/library/stdarch/crates/simd-test-macro/Cargo.toml +++ b/library/stdarch/crates/simd-test-macro/Cargo.toml @@ -11,4 +11,4 @@ test = false [dependencies] proc-macro2 = "1.0" quote = "1.0" -syn = { version = "2.0", features = ["full"] } +syn = { version = "3.0", features = ["full"] } diff --git a/library/stdarch/crates/simd-test-macro/src/lib.rs b/library/stdarch/crates/simd-test-macro/src/lib.rs index 3800c7ad0ae36..19f8b43e14e2a 100644 --- a/library/stdarch/crates/simd-test-macro/src/lib.rs +++ b/library/stdarch/crates/simd-test-macro/src/lib.rs @@ -2,7 +2,6 @@ //! //! This macro expands to a `#[test]` function which tests the local machine //! for the appropriate cfg before calling the inner test function. -#![deny(rust_2018_idioms)] use proc_macro2::{Ident, Span, TokenStream, TokenTree}; use quote::{ToTokens, quote, quote_spanned}; diff --git a/library/stdarch/crates/stdarch-verify/Cargo.toml b/library/stdarch/crates/stdarch-verify/Cargo.toml index c82a1262d04fc..ca921fd8a3cda 100644 --- a/library/stdarch/crates/stdarch-verify/Cargo.toml +++ b/library/stdarch/crates/stdarch-verify/Cargo.toml @@ -7,7 +7,7 @@ edition = "2024" [dependencies] proc-macro2 = "1.0" quote = "1.0" -syn = { version = "2.0", features = ["full"] } +syn = { version = "3.0", features = ["full"] } [lib] proc-macro = true diff --git a/library/stdarch/crates/stdarch-verify/src/lib.rs b/library/stdarch/crates/stdarch-verify/src/lib.rs index c681eca1dd9e8..9676dd7dbb7d9 100644 --- a/library/stdarch/crates/stdarch-verify/src/lib.rs +++ b/library/stdarch/crates/stdarch-verify/src/lib.rs @@ -391,23 +391,32 @@ fn to_type(t: &syn::Type) -> proc_macro2::TokenStream { }, syn::Type::Ptr(syn::TypePtr { ref elem, - ref mutability, + mutability: syn::PointerMutability::Mut(_), .. }) | syn::Type::Reference(syn::TypeReference { ref elem, - ref mutability, + mutability: Some(_), .. }) => { - // Both pointers and references can have a mut token (*mut and &mut) - if mutability.is_some() { - let tokens = to_type(elem); - quote! { &Type::MutPtr(#tokens) } - } else { - // If they don't (*const or &) then they are "const" - let tokens = to_type(elem); - quote! { &Type::ConstPtr(#tokens) } - } + // // Both pointers and references can have a mut token (*mut and &mut) + let tokens = to_type(elem); + quote! { &Type::MutPtr(#tokens) } + } + + syn::Type::Ptr(syn::TypePtr { + ref elem, + mutability: syn::PointerMutability::Const(_), + .. + }) + | syn::Type::Reference(syn::TypeReference { + ref elem, + mutability: None, + .. + }) => { + // If they don't (*const or &) then they are "const" + let tokens = to_type(elem); + quote! { &Type::ConstPtr(#tokens) } } syn::Type::Slice(_) => panic!("unsupported slice"), From b510ea10c25851f6faa914475d465ffac6348dfc Mon Sep 17 00:00:00 2001 From: Trevor Gross Date: Thu, 29 Oct 2026 09:38:17 +0000 Subject: [PATCH 19/43] simd-test: Handle target-specific behavior within generated code Looking for TARGET in proc macros is a bit of a hack: we have to parse it ourselves and it's not set by Cargo (as I understand it, proc macro output is supposed to be target-agnostic). Address this by moving logic based on `TARGET` into `cfg` that gets emitted as part of quoting. Also a bit of other cleanup. This fixes `macro_test` detection for a handful of targets (e.g. armv5te- or mipsisa64r6el- prefixes), not that those were likely to get run anyway. --- .../stdarch/crates/simd-test-macro/src/lib.rs | 156 ++++++++++-------- 1 file changed, 85 insertions(+), 71 deletions(-) diff --git a/library/stdarch/crates/simd-test-macro/src/lib.rs b/library/stdarch/crates/simd-test-macro/src/lib.rs index 19f8b43e14e2a..ee11fb5c0664b 100644 --- a/library/stdarch/crates/simd-test-macro/src/lib.rs +++ b/library/stdarch/crates/simd-test-macro/src/lib.rs @@ -3,7 +3,7 @@ //! This macro expands to a `#[test]` function which tests the local machine //! for the appropriate cfg before calling the inner test function. -use proc_macro2::{Ident, Span, TokenStream, TokenTree}; +use proc_macro2::{Span, TokenStream, TokenTree}; use quote::{ToTokens, quote, quote_spanned}; use std::env; @@ -14,14 +14,6 @@ pub fn simd_test( ) -> proc_macro::TokenStream { let tokens = TokenStream::from(attr).into_iter().collect::>(); - let target = env::var("TARGET").expect( - "TARGET environment variable should be set for rustc (e.g. TARGET=x86_64-apple-darwin cargo test)" - ); - let target_arch = target - .split('-') - .next() - .unwrap_or_else(|| panic!("target triple contained no \"-\": {target}")); - let (target_features, target_feature_attr) = match &tokens[..] { [] => (Vec::new(), TokenStream::new()), [ @@ -29,25 +21,25 @@ pub fn simd_test( TokenTree::Punct(equals), TokenTree::Literal(literal), ] if enable == "enable" && equals.as_char() == '=' => { - let mut enable_feature = literal - .to_string() - .trim_start_matches('"') - .trim_end_matches('"') - .to_string(); + let lit = literal.to_string(); + let enable_feature = lit.trim_start_matches('"').trim_end_matches('"'); let target_features: Vec<_> = enable_feature .replace('+', "") .split(',') .map(String::from) .collect(); + let mut enable_feature_arm = enable_feature.to_string(); + // Allows using `#[simd_test(enable = "neon")]` on aarch64/armv7 shared tests. - if target_arch == "armv7" && target_features.iter().any(|feat| feat == "neon") { - enable_feature.push_str(",v7"); + if target_features.iter().any(|feat| feat == "neon") { + enable_feature_arm.push_str(",v7"); } ( target_features, quote! { - #[target_feature(enable = #enable_feature)] + #[cfg_attr(target_arch = "arm", target_feature(enable = #enable_feature_arm))] + #[cfg_attr(not(target_arch = "arm"), target_feature(enable = #enable_feature))] }, ) } @@ -58,83 +50,105 @@ pub fn simd_test( let item_attrs = std::mem::take(&mut item.attrs); let name = &item.sig.ident; - let macro_test = match target_arch { - "i686" | "x86_64" | "i586" => "is_x86_feature_detected", - "arm" | "armv7" | "thumbv7neon" => "is_arm_feature_detected", - "aarch64" | "arm64ec" | "aarch64_be" => "is_aarch64_feature_detected", - maybe_riscv if maybe_riscv.starts_with("riscv") => "is_riscv_feature_detected", - "powerpc" | "powerpcle" | "powerpc64" | "powerpc64le" => "is_powerpc_feature_detected", - "loongarch32" | "loongarch64" => "is_loongarch_feature_detected", - "s390x" => "is_s390x_feature_detected", - "mips64" | "mips64el" => "is_mips64_feature_detected", - t => panic!("unknown target: {t}"), - }; - let macro_test = Ident::new(macro_test, Span::call_site()); - - let skipped_functions = env::var("STDARCH_TEST_SKIP_FUNCTION").unwrap_or_default(); - let skipped_features = env::var("STDARCH_TEST_SKIP_FEATURE").unwrap_or_default(); - let mut name_str = &*name.to_string(); if name_str.starts_with("test_") { name_str = &name_str[5..]; } - let skip_this = skipped_functions + let skipped_functions = env::var("STDARCH_TEST_SKIP_FUNCTION").unwrap_or_default(); + let skipped_features = env::var("STDARCH_TEST_SKIP_FEATURE").unwrap_or_default(); + let skipped_function = skipped_functions .split(',') .map(str::trim) - .any(|s| s == name_str) - || skipped_features - .split(',') - .map(str::trim) - .any(|s| target_features.iter().any(|feature| s == feature)); + .any(|s| s == name_str); + let skipped_feature = skipped_features + .split(',') + .map(str::trim) + .any(|s| target_features.iter().any(|feature| s == feature)); let mut detect_missing_features = TokenStream::new(); for feature in target_features { - let q = if target_arch == "armv7" && feature == "fp16" { - // "fp16" cannot be checked at runtime - quote_spanned! { - proc_macro2::Span::call_site() => - if !cfg!(target_feature = #feature) { - missing_features.push(#feature); - } + let mut q = quote_spanned! { Span::call_site() => + // Default target feature check + if !test_macro!(#feature) { + missing_features.push(#feature); } - } else { - quote_spanned! { - proc_macro2::Span::call_site() => - if !::std::arch::#macro_test!(#feature) { - missing_features.push(#feature); + }; + + // For features that cannot be checked at runtime (currently fp16 on arm32), use the + // static check instead. + if feature == "fp16" { + q = quote_spanned! { Span::call_site() => + cfg_select! { + target_arch = "arm" => { + if !cfg!(target_feature = #feature) { + missing_features.push(#feature); + } + } + _ => { + #q + } } } - }; + } + q.to_tokens(&mut detect_missing_features); } - let maybe_ignore = if skip_this { - quote! { #[ignore] } - } else { - TokenStream::new() - }; + let mut maybe_ignore = TokenStream::new(); + let mut const_test = TokenStream::new(); + let mut const_stability = TokenStream::new(); - let (const_test, const_stability) = if item.sig.constness.is_some() { - ( - quote! { - const _: () = unsafe { #name() }; - }, - quote! { - #[rustc_const_unstable(feature = "stdarch_const_helpers", issue = "none")] - }, - ) - } else { - (TokenStream::new(), TokenStream::new()) - }; + if skipped_function || skipped_feature { + maybe_ignore = quote! { #[ignore] } + } - let ret: TokenStream = quote_spanned! { - proc_macro2::Span::call_site() => + if item.sig.constness.is_some() { + const_test = quote! { + const _: () = unsafe { #name() }; + }; + const_stability = quote! { + #[rustc_const_unstable(feature = "stdarch_const_helpers", issue = "none")] + }; + } + + let ret: TokenStream = quote_spanned! { Span::call_site() => #[allow(non_snake_case)] #[test] #maybe_ignore #(#item_attrs)* fn #name() { + cfg_select! { + any(target_arch = "x86", target_arch = "x86_64") => { + use std::arch::is_x86_feature_detected as test_macro; + } + target_arch = "arm" => { + use std::arch::is_arm_feature_detected as test_macro; + } + any(target_arch = "aarch64", target_arch = "arm64ec") => { + use std::arch::is_aarch64_feature_detected as test_macro; + } + any(target_arch = "riscv32", target_arch = "riscv64") => { + use std::arch::is_riscv_feature_detected as test_macro; + } + any(target_arch = "powerpc", target_arch = "powerpc64") => { + use std::arch::is_powerpc_feature_detected as test_macro; + } + any(target_arch = "loongarch32", target_arch = "loongarch64") => { + use std::arch::is_loongarch_feature_detected as test_macro; + } + target_arch = "s390x" => { + use std::arch::is_s390x_feature_detected as test_macro; + } + any(target_arch = "mips", target_arch = "mips32r6") => { + use std::arch::is_mips_feature_detected as test_macro; + } + any(target_arch = "mips64", target_arch = "mips64r6") => { + use std::arch::is_mips64_feature_detected as test_macro; + } + _ => compile_error!("unknown target; need to update simd-test-macro"), + } + #const_test let mut missing_features = ::std::vec::Vec::new(); From ca9e290d54a3eaefea043352479d613cfb15a1ba Mon Sep 17 00:00:00 2001 From: sayantn Date: Sun, 1 Nov 2026 07:07:51 +0530 Subject: [PATCH 20/43] Correct llvm intrinsic type parameters in AArch64 --- .../core_arch/src/aarch64/sve/generated.rs | 646 +++++++++++------- .../core_arch/src/aarch64/sve2/generated.rs | 66 +- .../src/arm_shared/neon/generated.rs | 18 +- .../spec/neon/arm_shared.spec.yml | 2 +- .../stdarch-gen-arm/spec/sve/aarch64.spec.yml | 112 +-- .../spec/sve2/aarch64.spec.yml | 30 +- 6 files changed, 527 insertions(+), 347 deletions(-) diff --git a/library/stdarch/crates/core_arch/src/aarch64/sve/generated.rs b/library/stdarch/crates/core_arch/src/aarch64/sve/generated.rs index 75393f594ad64..1ee7d6563cafb 100644 --- a/library/stdarch/crates/core_arch/src/aarch64/sve/generated.rs +++ b/library/stdarch/crates/core_arch/src/aarch64/sve/generated.rs @@ -11845,7 +11845,7 @@ pub fn svlastb_u64(pg: svbool_t, op: svuint64_t) -> u64 { #[cfg_attr(test, assert_instr(ld1w))] pub unsafe fn svld1_f32(pg: svbool_t, base: *const f32) -> svfloat32_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1.nxv4f32")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1.nxv4f32.p0")] fn _svld1_f32(pg: svbool4_t, base: *const f32) -> svfloat32_t; } _svld1_f32(pg.sve_into(), base) @@ -11861,7 +11861,7 @@ pub unsafe fn svld1_f32(pg: svbool_t, base: *const f32) -> svfloat32_t { #[cfg_attr(test, assert_instr(ld1d))] pub unsafe fn svld1_f64(pg: svbool_t, base: *const f64) -> svfloat64_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1.nxv2f64")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1.nxv2f64.p0")] fn _svld1_f64(pg: svbool2_t, base: *const f64) -> svfloat64_t; } _svld1_f64(pg.sve_into(), base) @@ -11877,7 +11877,7 @@ pub unsafe fn svld1_f64(pg: svbool_t, base: *const f64) -> svfloat64_t { #[cfg_attr(test, assert_instr(ld1b))] pub unsafe fn svld1_s8(pg: svbool_t, base: *const i8) -> svint8_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1.nxv16i8")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1.nxv16i8.p0")] fn _svld1_s8(pg: svbool_t, base: *const i8) -> svint8_t; } _svld1_s8(pg, base) @@ -11893,7 +11893,7 @@ pub unsafe fn svld1_s8(pg: svbool_t, base: *const i8) -> svint8_t { #[cfg_attr(test, assert_instr(ld1h))] pub unsafe fn svld1_s16(pg: svbool_t, base: *const i16) -> svint16_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1.nxv8i16")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1.nxv8i16.p0")] fn _svld1_s16(pg: svbool8_t, base: *const i16) -> svint16_t; } _svld1_s16(pg.sve_into(), base) @@ -11909,7 +11909,7 @@ pub unsafe fn svld1_s16(pg: svbool_t, base: *const i16) -> svint16_t { #[cfg_attr(test, assert_instr(ld1w))] pub unsafe fn svld1_s32(pg: svbool_t, base: *const i32) -> svint32_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1.nxv4i32")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1.nxv4i32.p0")] fn _svld1_s32(pg: svbool4_t, base: *const i32) -> svint32_t; } _svld1_s32(pg.sve_into(), base) @@ -11925,7 +11925,7 @@ pub unsafe fn svld1_s32(pg: svbool_t, base: *const i32) -> svint32_t { #[cfg_attr(test, assert_instr(ld1d))] pub unsafe fn svld1_s64(pg: svbool_t, base: *const i64) -> svint64_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1.nxv2i64")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1.nxv2i64.p0")] fn _svld1_s64(pg: svbool2_t, base: *const i64) -> svint64_t; } _svld1_s64(pg.sve_into(), base) @@ -11995,7 +11995,7 @@ pub unsafe fn svld1_gather_s32index_f32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld1.gather.sxtw.index.nxv4f32" + link_name = "llvm.aarch64.sve.ld1.gather.sxtw.index.nxv4f32.p0" )] fn _svld1_gather_s32index_f32( pg: svbool4_t, @@ -12022,7 +12022,7 @@ pub unsafe fn svld1_gather_s32index_s32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld1.gather.sxtw.index.nxv4i32" + link_name = "llvm.aarch64.sve.ld1.gather.sxtw.index.nxv4i32.p0" )] fn _svld1_gather_s32index_s32( pg: svbool4_t, @@ -12065,7 +12065,7 @@ pub unsafe fn svld1_gather_s64index_f64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld1.gather.index.nxv2f64" + link_name = "llvm.aarch64.sve.ld1.gather.index.nxv2f64.p0" )] fn _svld1_gather_s64index_f64( pg: svbool2_t, @@ -12092,7 +12092,7 @@ pub unsafe fn svld1_gather_s64index_s64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld1.gather.index.nxv2i64" + link_name = "llvm.aarch64.sve.ld1.gather.index.nxv2i64.p0" )] fn _svld1_gather_s64index_s64( pg: svbool2_t, @@ -12135,7 +12135,7 @@ pub unsafe fn svld1_gather_u32index_f32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld1.gather.uxtw.index.nxv4f32" + link_name = "llvm.aarch64.sve.ld1.gather.uxtw.index.nxv4f32.p0" )] fn _svld1_gather_u32index_f32( pg: svbool4_t, @@ -12162,7 +12162,7 @@ pub unsafe fn svld1_gather_u32index_s32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld1.gather.uxtw.index.nxv4i32" + link_name = "llvm.aarch64.sve.ld1.gather.uxtw.index.nxv4i32.p0" )] fn _svld1_gather_u32index_s32( pg: svbool4_t, @@ -12253,7 +12253,7 @@ pub unsafe fn svld1_gather_s32offset_f32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld1.gather.sxtw.nxv4f32" + link_name = "llvm.aarch64.sve.ld1.gather.sxtw.nxv4f32.p0" )] fn _svld1_gather_s32offset_f32( pg: svbool4_t, @@ -12280,7 +12280,7 @@ pub unsafe fn svld1_gather_s32offset_s32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld1.gather.sxtw.nxv4i32" + link_name = "llvm.aarch64.sve.ld1.gather.sxtw.nxv4i32.p0" )] fn _svld1_gather_s32offset_s32( pg: svbool4_t, @@ -12323,7 +12323,7 @@ pub unsafe fn svld1_gather_s64offset_f64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld1.gather.nxv2f64" + link_name = "llvm.aarch64.sve.ld1.gather.nxv2f64.p0" )] fn _svld1_gather_s64offset_f64( pg: svbool2_t, @@ -12350,7 +12350,7 @@ pub unsafe fn svld1_gather_s64offset_s64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld1.gather.nxv2i64" + link_name = "llvm.aarch64.sve.ld1.gather.nxv2i64.p0" )] fn _svld1_gather_s64offset_s64( pg: svbool2_t, @@ -12393,7 +12393,7 @@ pub unsafe fn svld1_gather_u32offset_f32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld1.gather.uxtw.nxv4f32" + link_name = "llvm.aarch64.sve.ld1.gather.uxtw.nxv4f32.p0" )] fn _svld1_gather_u32offset_f32( pg: svbool4_t, @@ -12420,7 +12420,7 @@ pub unsafe fn svld1_gather_u32offset_s32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld1.gather.uxtw.nxv4i32" + link_name = "llvm.aarch64.sve.ld1.gather.uxtw.nxv4i32.p0" )] fn _svld1_gather_u32offset_s32( pg: svbool4_t, @@ -12951,7 +12951,10 @@ pub unsafe fn svld1_vnum_u64(pg: svbool_t, base: *const u64, vnum: i64) -> svuin #[cfg_attr(test, assert_instr(ld1row))] pub unsafe fn svld1ro_f32(pg: svbool_t, base: *const f32) -> svfloat32_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1ro.nxv4f32")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ld1ro.nxv4f32.p0" + )] fn _svld1ro_f32(pg: svbool4_t, base: *const f32) -> svfloat32_t; } _svld1ro_f32(pg.sve_into(), base) @@ -12967,7 +12970,10 @@ pub unsafe fn svld1ro_f32(pg: svbool_t, base: *const f32) -> svfloat32_t { #[cfg_attr(test, assert_instr(ld1rod))] pub unsafe fn svld1ro_f64(pg: svbool_t, base: *const f64) -> svfloat64_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1ro.nxv2f64")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ld1ro.nxv2f64.p0" + )] fn _svld1ro_f64(pg: svbool2_t, base: *const f64) -> svfloat64_t; } _svld1ro_f64(pg.sve_into(), base) @@ -12983,7 +12989,10 @@ pub unsafe fn svld1ro_f64(pg: svbool_t, base: *const f64) -> svfloat64_t { #[cfg_attr(test, assert_instr(ld1rob))] pub unsafe fn svld1ro_s8(pg: svbool_t, base: *const i8) -> svint8_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1ro.nxv16i8")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ld1ro.nxv16i8.p0" + )] fn _svld1ro_s8(pg: svbool_t, base: *const i8) -> svint8_t; } _svld1ro_s8(pg, base) @@ -12999,7 +13008,10 @@ pub unsafe fn svld1ro_s8(pg: svbool_t, base: *const i8) -> svint8_t { #[cfg_attr(test, assert_instr(ld1roh))] pub unsafe fn svld1ro_s16(pg: svbool_t, base: *const i16) -> svint16_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1ro.nxv8i16")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ld1ro.nxv8i16.p0" + )] fn _svld1ro_s16(pg: svbool8_t, base: *const i16) -> svint16_t; } _svld1ro_s16(pg.sve_into(), base) @@ -13015,7 +13027,10 @@ pub unsafe fn svld1ro_s16(pg: svbool_t, base: *const i16) -> svint16_t { #[cfg_attr(test, assert_instr(ld1row))] pub unsafe fn svld1ro_s32(pg: svbool_t, base: *const i32) -> svint32_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1ro.nxv4i32")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ld1ro.nxv4i32.p0" + )] fn _svld1ro_s32(pg: svbool4_t, base: *const i32) -> svint32_t; } _svld1ro_s32(pg.sve_into(), base) @@ -13031,7 +13046,10 @@ pub unsafe fn svld1ro_s32(pg: svbool_t, base: *const i32) -> svint32_t { #[cfg_attr(test, assert_instr(ld1rod))] pub unsafe fn svld1ro_s64(pg: svbool_t, base: *const i64) -> svint64_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1ro.nxv2i64")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ld1ro.nxv2i64.p0" + )] fn _svld1ro_s64(pg: svbool2_t, base: *const i64) -> svint64_t; } _svld1ro_s64(pg.sve_into(), base) @@ -13095,7 +13113,10 @@ pub unsafe fn svld1ro_u64(pg: svbool_t, base: *const u64) -> svuint64_t { #[cfg_attr(test, assert_instr(ld1rqw))] pub unsafe fn svld1rq_f32(pg: svbool_t, base: *const f32) -> svfloat32_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1rq.nxv4f32")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ld1rq.nxv4f32.p0" + )] fn _svld1rq_f32(pg: svbool4_t, base: *const f32) -> svfloat32_t; } _svld1rq_f32(pg.sve_into(), base) @@ -13111,7 +13132,10 @@ pub unsafe fn svld1rq_f32(pg: svbool_t, base: *const f32) -> svfloat32_t { #[cfg_attr(test, assert_instr(ld1rqd))] pub unsafe fn svld1rq_f64(pg: svbool_t, base: *const f64) -> svfloat64_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1rq.nxv2f64")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ld1rq.nxv2f64.p0" + )] fn _svld1rq_f64(pg: svbool2_t, base: *const f64) -> svfloat64_t; } _svld1rq_f64(pg.sve_into(), base) @@ -13127,7 +13151,10 @@ pub unsafe fn svld1rq_f64(pg: svbool_t, base: *const f64) -> svfloat64_t { #[cfg_attr(test, assert_instr(ld1rqb))] pub unsafe fn svld1rq_s8(pg: svbool_t, base: *const i8) -> svint8_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1rq.nxv16i8")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ld1rq.nxv16i8.p0" + )] fn _svld1rq_s8(pg: svbool_t, base: *const i8) -> svint8_t; } _svld1rq_s8(pg, base) @@ -13143,7 +13170,10 @@ pub unsafe fn svld1rq_s8(pg: svbool_t, base: *const i8) -> svint8_t { #[cfg_attr(test, assert_instr(ld1rqh))] pub unsafe fn svld1rq_s16(pg: svbool_t, base: *const i16) -> svint16_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1rq.nxv8i16")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ld1rq.nxv8i16.p0" + )] fn _svld1rq_s16(pg: svbool8_t, base: *const i16) -> svint16_t; } _svld1rq_s16(pg.sve_into(), base) @@ -13159,7 +13189,10 @@ pub unsafe fn svld1rq_s16(pg: svbool_t, base: *const i16) -> svint16_t { #[cfg_attr(test, assert_instr(ld1rqw))] pub unsafe fn svld1rq_s32(pg: svbool_t, base: *const i32) -> svint32_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1rq.nxv4i32")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ld1rq.nxv4i32.p0" + )] fn _svld1rq_s32(pg: svbool4_t, base: *const i32) -> svint32_t; } _svld1rq_s32(pg.sve_into(), base) @@ -13175,7 +13208,10 @@ pub unsafe fn svld1rq_s32(pg: svbool_t, base: *const i32) -> svint32_t { #[cfg_attr(test, assert_instr(ld1rqd))] pub unsafe fn svld1rq_s64(pg: svbool_t, base: *const i64) -> svint64_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1rq.nxv2i64")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ld1rq.nxv2i64.p0" + )] fn _svld1rq_s64(pg: svbool2_t, base: *const i64) -> svint64_t; } _svld1rq_s64(pg.sve_into(), base) @@ -13245,7 +13281,7 @@ pub unsafe fn svld1sb_gather_s32offset_s32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld1.gather.sxtw.nxv4i8" + link_name = "llvm.aarch64.sve.ld1.gather.sxtw.nxv4i8.p0" )] fn _svld1sb_gather_s32offset_s32( pg: svbool4_t, @@ -13272,7 +13308,7 @@ pub unsafe fn svld1sh_gather_s32offset_s32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld1.gather.sxtw.nxv4i16" + link_name = "llvm.aarch64.sve.ld1.gather.sxtw.nxv4i16.p0" )] fn _svld1sh_gather_s32offset_s32( pg: svbool4_t, @@ -13331,7 +13367,7 @@ pub unsafe fn svld1sb_gather_s64offset_s64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld1.gather.nxv2i8" + link_name = "llvm.aarch64.sve.ld1.gather.nxv2i8.p0" )] fn _svld1sb_gather_s64offset_s64( pg: svbool2_t, @@ -13358,7 +13394,7 @@ pub unsafe fn svld1sh_gather_s64offset_s64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld1.gather.nxv2i16" + link_name = "llvm.aarch64.sve.ld1.gather.nxv2i16.p0" )] fn _svld1sh_gather_s64offset_s64( pg: svbool2_t, @@ -13385,7 +13421,7 @@ pub unsafe fn svld1sw_gather_s64offset_s64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld1.gather.nxv2i32" + link_name = "llvm.aarch64.sve.ld1.gather.nxv2i32.p0" )] fn _svld1sw_gather_s64offset_s64( pg: svbool2_t, @@ -13460,7 +13496,7 @@ pub unsafe fn svld1sb_gather_u32offset_s32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld1.gather.uxtw.nxv4i8" + link_name = "llvm.aarch64.sve.ld1.gather.uxtw.nxv4i8.p0" )] fn _svld1sb_gather_u32offset_s32( pg: svbool4_t, @@ -13491,7 +13527,7 @@ pub unsafe fn svld1sh_gather_u32offset_s32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld1.gather.uxtw.nxv4i16" + link_name = "llvm.aarch64.sve.ld1.gather.uxtw.nxv4i16.p0" )] fn _svld1sh_gather_u32offset_s32( pg: svbool4_t, @@ -14019,7 +14055,7 @@ pub unsafe fn svld1sw_gather_u64base_u64(pg: svbool_t, bases: svuint64_t) -> svu #[cfg_attr(test, assert_instr(ld1sb))] pub unsafe fn svld1sb_s16(pg: svbool_t, base: *const i8) -> svint16_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1.nxv8i8")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1.nxv8i8.p0")] fn _svld1sb_s16(pg: svbool8_t, base: *const i8) -> nxv8i8; } crate::intrinsics::simd::simd_cast(_svld1sb_s16(pg.sve_into(), base)) @@ -14035,7 +14071,7 @@ pub unsafe fn svld1sb_s16(pg: svbool_t, base: *const i8) -> svint16_t { #[cfg_attr(test, assert_instr(ld1sb))] pub unsafe fn svld1sb_s32(pg: svbool_t, base: *const i8) -> svint32_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1.nxv4i8")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1.nxv4i8.p0")] fn _svld1sb_s32(pg: svbool4_t, base: *const i8) -> nxv4i8; } crate::intrinsics::simd::simd_cast(_svld1sb_s32(pg.sve_into(), base)) @@ -14051,7 +14087,7 @@ pub unsafe fn svld1sb_s32(pg: svbool_t, base: *const i8) -> svint32_t { #[cfg_attr(test, assert_instr(ld1sh))] pub unsafe fn svld1sh_s32(pg: svbool_t, base: *const i16) -> svint32_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1.nxv4i16")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1.nxv4i16.p0")] fn _svld1sh_s32(pg: svbool4_t, base: *const i16) -> nxv4i16; } crate::intrinsics::simd::simd_cast(_svld1sh_s32(pg.sve_into(), base)) @@ -14067,7 +14103,7 @@ pub unsafe fn svld1sh_s32(pg: svbool_t, base: *const i16) -> svint32_t { #[cfg_attr(test, assert_instr(ld1sb))] pub unsafe fn svld1sb_s64(pg: svbool_t, base: *const i8) -> svint64_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1.nxv2i8")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1.nxv2i8.p0")] fn _svld1sb_s64(pg: svbool2_t, base: *const i8) -> nxv2i8; } crate::intrinsics::simd::simd_cast(_svld1sb_s64(pg.sve_into(), base)) @@ -14083,7 +14119,7 @@ pub unsafe fn svld1sb_s64(pg: svbool_t, base: *const i8) -> svint64_t { #[cfg_attr(test, assert_instr(ld1sh))] pub unsafe fn svld1sh_s64(pg: svbool_t, base: *const i16) -> svint64_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1.nxv2i16")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1.nxv2i16.p0")] fn _svld1sh_s64(pg: svbool2_t, base: *const i16) -> nxv2i16; } crate::intrinsics::simd::simd_cast(_svld1sh_s64(pg.sve_into(), base)) @@ -14099,7 +14135,7 @@ pub unsafe fn svld1sh_s64(pg: svbool_t, base: *const i16) -> svint64_t { #[cfg_attr(test, assert_instr(ld1sw))] pub unsafe fn svld1sw_s64(pg: svbool_t, base: *const i32) -> svint64_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1.nxv2i32")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1.nxv2i32.p0")] fn _svld1sw_s64(pg: svbool2_t, base: *const i32) -> nxv2i32; } crate::intrinsics::simd::simd_cast(_svld1sw_s64(pg.sve_into(), base)) @@ -14337,7 +14373,7 @@ pub unsafe fn svld1sh_gather_s32index_s32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld1.gather.sxtw.index.nxv4i16" + link_name = "llvm.aarch64.sve.ld1.gather.sxtw.index.nxv4i16.p0" )] fn _svld1sh_gather_s32index_s32( pg: svbool4_t, @@ -14380,7 +14416,7 @@ pub unsafe fn svld1sh_gather_s64index_s64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld1.gather.index.nxv2i16" + link_name = "llvm.aarch64.sve.ld1.gather.index.nxv2i16.p0" )] fn _svld1sh_gather_s64index_s64( pg: svbool2_t, @@ -14407,7 +14443,7 @@ pub unsafe fn svld1sw_gather_s64index_s64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld1.gather.index.nxv2i32" + link_name = "llvm.aarch64.sve.ld1.gather.index.nxv2i32.p0" )] fn _svld1sw_gather_s64index_s64( pg: svbool2_t, @@ -14466,7 +14502,7 @@ pub unsafe fn svld1sh_gather_u32index_s32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld1.gather.uxtw.index.nxv4i16" + link_name = "llvm.aarch64.sve.ld1.gather.uxtw.index.nxv4i16.p0" )] fn _svld1sh_gather_u32index_s32( pg: svbool4_t, @@ -14711,7 +14747,7 @@ pub unsafe fn svld1ub_gather_s32offset_u32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld1.gather.sxtw.nxv4i8" + link_name = "llvm.aarch64.sve.ld1.gather.sxtw.nxv4i8.p0" )] fn _svld1ub_gather_s32offset_u32( pg: svbool4_t, @@ -14740,7 +14776,7 @@ pub unsafe fn svld1uh_gather_s32offset_u32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld1.gather.sxtw.nxv4i16" + link_name = "llvm.aarch64.sve.ld1.gather.sxtw.nxv4i16.p0" )] fn _svld1uh_gather_s32offset_u32( pg: svbool4_t, @@ -14817,7 +14853,7 @@ pub unsafe fn svld1ub_gather_s64offset_u64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld1.gather.nxv2i8" + link_name = "llvm.aarch64.sve.ld1.gather.nxv2i8.p0" )] fn _svld1ub_gather_s64offset_u64( pg: svbool2_t, @@ -14846,7 +14882,7 @@ pub unsafe fn svld1uh_gather_s64offset_u64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld1.gather.nxv2i16" + link_name = "llvm.aarch64.sve.ld1.gather.nxv2i16.p0" )] fn _svld1uh_gather_s64offset_u64( pg: svbool2_t, @@ -14875,7 +14911,7 @@ pub unsafe fn svld1uw_gather_s64offset_u64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld1.gather.nxv2i32" + link_name = "llvm.aarch64.sve.ld1.gather.nxv2i32.p0" )] fn _svld1uw_gather_s64offset_u64( pg: svbool2_t, @@ -14936,7 +14972,7 @@ pub unsafe fn svld1ub_gather_u32offset_u32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld1.gather.uxtw.nxv4i8" + link_name = "llvm.aarch64.sve.ld1.gather.uxtw.nxv4i8.p0" )] fn _svld1ub_gather_u32offset_u32( pg: svbool4_t, @@ -14966,7 +15002,7 @@ pub unsafe fn svld1uh_gather_u32offset_u32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld1.gather.uxtw.nxv4i16" + link_name = "llvm.aarch64.sve.ld1.gather.uxtw.nxv4i16.p0" )] fn _svld1uh_gather_u32offset_u32( pg: svbool4_t, @@ -15451,7 +15487,7 @@ pub unsafe fn svld1uw_gather_u64base_u64(pg: svbool_t, bases: svuint64_t) -> svu #[cfg_attr(test, assert_instr(ld1b))] pub unsafe fn svld1ub_s16(pg: svbool_t, base: *const u8) -> svint16_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1.nxv8i8")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1.nxv8i8.p0")] fn _svld1ub_s16(pg: svbool8_t, base: *const i8) -> nxv8i8; } crate::intrinsics::simd::simd_cast::( @@ -15469,7 +15505,7 @@ pub unsafe fn svld1ub_s16(pg: svbool_t, base: *const u8) -> svint16_t { #[cfg_attr(test, assert_instr(ld1b))] pub unsafe fn svld1ub_s32(pg: svbool_t, base: *const u8) -> svint32_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1.nxv4i8")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1.nxv4i8.p0")] fn _svld1ub_s32(pg: svbool4_t, base: *const i8) -> nxv4i8; } crate::intrinsics::simd::simd_cast::( @@ -15487,7 +15523,7 @@ pub unsafe fn svld1ub_s32(pg: svbool_t, base: *const u8) -> svint32_t { #[cfg_attr(test, assert_instr(ld1h))] pub unsafe fn svld1uh_s32(pg: svbool_t, base: *const u16) -> svint32_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1.nxv4i16")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1.nxv4i16.p0")] fn _svld1uh_s32(pg: svbool4_t, base: *const i16) -> nxv4i16; } crate::intrinsics::simd::simd_cast::( @@ -15505,7 +15541,7 @@ pub unsafe fn svld1uh_s32(pg: svbool_t, base: *const u16) -> svint32_t { #[cfg_attr(test, assert_instr(ld1b))] pub unsafe fn svld1ub_s64(pg: svbool_t, base: *const u8) -> svint64_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1.nxv2i8")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1.nxv2i8.p0")] fn _svld1ub_s64(pg: svbool2_t, base: *const i8) -> nxv2i8; } crate::intrinsics::simd::simd_cast::( @@ -15523,7 +15559,7 @@ pub unsafe fn svld1ub_s64(pg: svbool_t, base: *const u8) -> svint64_t { #[cfg_attr(test, assert_instr(ld1h))] pub unsafe fn svld1uh_s64(pg: svbool_t, base: *const u16) -> svint64_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1.nxv2i16")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1.nxv2i16.p0")] fn _svld1uh_s64(pg: svbool2_t, base: *const i16) -> nxv2i16; } crate::intrinsics::simd::simd_cast::( @@ -15541,7 +15577,7 @@ pub unsafe fn svld1uh_s64(pg: svbool_t, base: *const u16) -> svint64_t { #[cfg_attr(test, assert_instr(ld1w))] pub unsafe fn svld1uw_s64(pg: svbool_t, base: *const u32) -> svint64_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1.nxv2i32")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ld1.nxv2i32.p0")] fn _svld1uw_s64(pg: svbool2_t, base: *const i32) -> nxv2i32; } crate::intrinsics::simd::simd_cast::( @@ -15797,7 +15833,7 @@ pub unsafe fn svld1uh_gather_s32index_u32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld1.gather.sxtw.index.nxv4i16" + link_name = "llvm.aarch64.sve.ld1.gather.sxtw.index.nxv4i16.p0" )] fn _svld1uh_gather_s32index_u32( pg: svbool4_t, @@ -15858,7 +15894,7 @@ pub unsafe fn svld1uh_gather_s64index_u64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld1.gather.index.nxv2i16" + link_name = "llvm.aarch64.sve.ld1.gather.index.nxv2i16.p0" )] fn _svld1uh_gather_s64index_u64( pg: svbool2_t, @@ -15887,7 +15923,7 @@ pub unsafe fn svld1uw_gather_s64index_u64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld1.gather.index.nxv2i32" + link_name = "llvm.aarch64.sve.ld1.gather.index.nxv2i32.p0" )] fn _svld1uw_gather_s64index_u64( pg: svbool2_t, @@ -15932,7 +15968,7 @@ pub unsafe fn svld1uh_gather_u32index_u32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld1.gather.uxtw.index.nxv4i16" + link_name = "llvm.aarch64.sve.ld1.gather.uxtw.index.nxv4i16.p0" )] fn _svld1uh_gather_u32index_u32( pg: svbool4_t, @@ -16124,7 +16160,7 @@ pub unsafe fn svld2_f32(pg: svbool_t, base: *const f32) -> svfloat32x2_t { unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld2.sret.nxv4f32" + link_name = "llvm.aarch64.sve.ld2.sret.nxv4f32.p0" )] fn _svld2_f32(pg: svbool4_t, base: *const f32) -> svfloat32x2_t; } @@ -16143,7 +16179,7 @@ pub unsafe fn svld2_f64(pg: svbool_t, base: *const f64) -> svfloat64x2_t { unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld2.sret.nxv2f64" + link_name = "llvm.aarch64.sve.ld2.sret.nxv2f64.p0" )] fn _svld2_f64(pg: svbool2_t, base: *const f64) -> svfloat64x2_t; } @@ -16162,7 +16198,7 @@ pub unsafe fn svld2_s8(pg: svbool_t, base: *const i8) -> svint8x2_t { unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld2.sret.nxv16i8" + link_name = "llvm.aarch64.sve.ld2.sret.nxv16i8.p0" )] fn _svld2_s8(pg: svbool_t, base: *const i8) -> svint8x2_t; } @@ -16181,7 +16217,7 @@ pub unsafe fn svld2_s16(pg: svbool_t, base: *const i16) -> svint16x2_t { unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld2.sret.nxv8i16" + link_name = "llvm.aarch64.sve.ld2.sret.nxv8i16.p0" )] fn _svld2_s16(pg: svbool8_t, base: *const i16) -> svint16x2_t; } @@ -16200,7 +16236,7 @@ pub unsafe fn svld2_s32(pg: svbool_t, base: *const i32) -> svint32x2_t { unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld2.sret.nxv4i32" + link_name = "llvm.aarch64.sve.ld2.sret.nxv4i32.p0" )] fn _svld2_s32(pg: svbool4_t, base: *const i32) -> svint32x2_t; } @@ -16219,7 +16255,7 @@ pub unsafe fn svld2_s64(pg: svbool_t, base: *const i64) -> svint64x2_t { unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld2.sret.nxv2i64" + link_name = "llvm.aarch64.sve.ld2.sret.nxv2i64.p0" )] fn _svld2_s64(pg: svbool2_t, base: *const i64) -> svint64x2_t; } @@ -16406,7 +16442,7 @@ pub unsafe fn svld3_f32(pg: svbool_t, base: *const f32) -> svfloat32x3_t { unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld3.sret.nxv4f32" + link_name = "llvm.aarch64.sve.ld3.sret.nxv4f32.p0" )] fn _svld3_f32(pg: svbool4_t, base: *const f32) -> svfloat32x3_t; } @@ -16425,7 +16461,7 @@ pub unsafe fn svld3_f64(pg: svbool_t, base: *const f64) -> svfloat64x3_t { unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld3.sret.nxv2f64" + link_name = "llvm.aarch64.sve.ld3.sret.nxv2f64.p0" )] fn _svld3_f64(pg: svbool2_t, base: *const f64) -> svfloat64x3_t; } @@ -16444,7 +16480,7 @@ pub unsafe fn svld3_s8(pg: svbool_t, base: *const i8) -> svint8x3_t { unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld3.sret.nxv16i8" + link_name = "llvm.aarch64.sve.ld3.sret.nxv16i8.p0" )] fn _svld3_s8(pg: svbool_t, base: *const i8) -> svint8x3_t; } @@ -16463,7 +16499,7 @@ pub unsafe fn svld3_s16(pg: svbool_t, base: *const i16) -> svint16x3_t { unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld3.sret.nxv8i16" + link_name = "llvm.aarch64.sve.ld3.sret.nxv8i16.p0" )] fn _svld3_s16(pg: svbool8_t, base: *const i16) -> svint16x3_t; } @@ -16482,7 +16518,7 @@ pub unsafe fn svld3_s32(pg: svbool_t, base: *const i32) -> svint32x3_t { unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld3.sret.nxv4i32" + link_name = "llvm.aarch64.sve.ld3.sret.nxv4i32.p0" )] fn _svld3_s32(pg: svbool4_t, base: *const i32) -> svint32x3_t; } @@ -16501,7 +16537,7 @@ pub unsafe fn svld3_s64(pg: svbool_t, base: *const i64) -> svint64x3_t { unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld3.sret.nxv2i64" + link_name = "llvm.aarch64.sve.ld3.sret.nxv2i64.p0" )] fn _svld3_s64(pg: svbool2_t, base: *const i64) -> svint64x3_t; } @@ -16688,7 +16724,7 @@ pub unsafe fn svld4_f32(pg: svbool_t, base: *const f32) -> svfloat32x4_t { unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld4.sret.nxv4f32" + link_name = "llvm.aarch64.sve.ld4.sret.nxv4f32.p0" )] fn _svld4_f32(pg: svbool4_t, base: *const f32) -> svfloat32x4_t; } @@ -16707,7 +16743,7 @@ pub unsafe fn svld4_f64(pg: svbool_t, base: *const f64) -> svfloat64x4_t { unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld4.sret.nxv2f64" + link_name = "llvm.aarch64.sve.ld4.sret.nxv2f64.p0" )] fn _svld4_f64(pg: svbool2_t, base: *const f64) -> svfloat64x4_t; } @@ -16726,7 +16762,7 @@ pub unsafe fn svld4_s8(pg: svbool_t, base: *const i8) -> svint8x4_t { unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld4.sret.nxv16i8" + link_name = "llvm.aarch64.sve.ld4.sret.nxv16i8.p0" )] fn _svld4_s8(pg: svbool_t, base: *const i8) -> svint8x4_t; } @@ -16745,7 +16781,7 @@ pub unsafe fn svld4_s16(pg: svbool_t, base: *const i16) -> svint16x4_t { unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld4.sret.nxv8i16" + link_name = "llvm.aarch64.sve.ld4.sret.nxv8i16.p0" )] fn _svld4_s16(pg: svbool8_t, base: *const i16) -> svint16x4_t; } @@ -16764,7 +16800,7 @@ pub unsafe fn svld4_s32(pg: svbool_t, base: *const i32) -> svint32x4_t { unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld4.sret.nxv4i32" + link_name = "llvm.aarch64.sve.ld4.sret.nxv4i32.p0" )] fn _svld4_s32(pg: svbool4_t, base: *const i32) -> svint32x4_t; } @@ -16783,7 +16819,7 @@ pub unsafe fn svld4_s64(pg: svbool_t, base: *const i64) -> svint64x4_t { unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ld4.sret.nxv2i64" + link_name = "llvm.aarch64.sve.ld4.sret.nxv2i64.p0" )] fn _svld4_s64(pg: svbool2_t, base: *const i64) -> svint64x4_t; } @@ -16969,7 +17005,10 @@ pub unsafe fn svld4_vnum_u64(pg: svbool_t, base: *const u64, vnum: i64) -> svuin #[cfg_attr(test, assert_instr(ldff1w))] pub unsafe fn svldff1_f32(pg: svbool_t, base: *const f32) -> svfloat32_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ldff1.nxv4f32")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ldff1.nxv4f32.p0" + )] fn _svldff1_f32(pg: svbool4_t, base: *const f32) -> svfloat32_t; } _svldff1_f32(pg.sve_into(), base) @@ -16986,7 +17025,10 @@ pub unsafe fn svldff1_f32(pg: svbool_t, base: *const f32) -> svfloat32_t { #[cfg_attr(test, assert_instr(ldff1d))] pub unsafe fn svldff1_f64(pg: svbool_t, base: *const f64) -> svfloat64_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ldff1.nxv2f64")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ldff1.nxv2f64.p0" + )] fn _svldff1_f64(pg: svbool2_t, base: *const f64) -> svfloat64_t; } _svldff1_f64(pg.sve_into(), base) @@ -17003,7 +17045,10 @@ pub unsafe fn svldff1_f64(pg: svbool_t, base: *const f64) -> svfloat64_t { #[cfg_attr(test, assert_instr(ldff1b))] pub unsafe fn svldff1_s8(pg: svbool_t, base: *const i8) -> svint8_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ldff1.nxv16i8")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ldff1.nxv16i8.p0" + )] fn _svldff1_s8(pg: svbool_t, base: *const i8) -> svint8_t; } _svldff1_s8(pg, base) @@ -17020,7 +17065,10 @@ pub unsafe fn svldff1_s8(pg: svbool_t, base: *const i8) -> svint8_t { #[cfg_attr(test, assert_instr(ldff1h))] pub unsafe fn svldff1_s16(pg: svbool_t, base: *const i16) -> svint16_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ldff1.nxv8i16")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ldff1.nxv8i16.p0" + )] fn _svldff1_s16(pg: svbool8_t, base: *const i16) -> svint16_t; } _svldff1_s16(pg.sve_into(), base) @@ -17037,7 +17085,10 @@ pub unsafe fn svldff1_s16(pg: svbool_t, base: *const i16) -> svint16_t { #[cfg_attr(test, assert_instr(ldff1w))] pub unsafe fn svldff1_s32(pg: svbool_t, base: *const i32) -> svint32_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ldff1.nxv4i32")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ldff1.nxv4i32.p0" + )] fn _svldff1_s32(pg: svbool4_t, base: *const i32) -> svint32_t; } _svldff1_s32(pg.sve_into(), base) @@ -17054,7 +17105,10 @@ pub unsafe fn svldff1_s32(pg: svbool_t, base: *const i32) -> svint32_t { #[cfg_attr(test, assert_instr(ldff1d))] pub unsafe fn svldff1_s64(pg: svbool_t, base: *const i64) -> svint64_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ldff1.nxv2i64")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ldff1.nxv2i64.p0" + )] fn _svldff1_s64(pg: svbool2_t, base: *const i64) -> svint64_t; } _svldff1_s64(pg.sve_into(), base) @@ -17129,7 +17183,7 @@ pub unsafe fn svldff1_gather_s32index_f32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldff1.gather.sxtw.index.nxv4f32" + link_name = "llvm.aarch64.sve.ldff1.gather.sxtw.index.nxv4f32.p0" )] fn _svldff1_gather_s32index_f32( pg: svbool4_t, @@ -17157,7 +17211,7 @@ pub unsafe fn svldff1_gather_s32index_s32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldff1.gather.sxtw.index.nxv4i32" + link_name = "llvm.aarch64.sve.ldff1.gather.sxtw.index.nxv4i32.p0" )] fn _svldff1_gather_s32index_s32( pg: svbool4_t, @@ -17202,7 +17256,7 @@ pub unsafe fn svldff1_gather_s64index_f64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldff1.gather.index.nxv2f64" + link_name = "llvm.aarch64.sve.ldff1.gather.index.nxv2f64.p0" )] fn _svldff1_gather_s64index_f64( pg: svbool2_t, @@ -17230,7 +17284,7 @@ pub unsafe fn svldff1_gather_s64index_s64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldff1.gather.index.nxv2i64" + link_name = "llvm.aarch64.sve.ldff1.gather.index.nxv2i64.p0" )] fn _svldff1_gather_s64index_s64( pg: svbool2_t, @@ -17275,7 +17329,7 @@ pub unsafe fn svldff1_gather_u32index_f32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldff1.gather.uxtw.index.nxv4f32" + link_name = "llvm.aarch64.sve.ldff1.gather.uxtw.index.nxv4f32.p0" )] fn _svldff1_gather_u32index_f32( pg: svbool4_t, @@ -17303,7 +17357,7 @@ pub unsafe fn svldff1_gather_u32index_s32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldff1.gather.uxtw.index.nxv4i32" + link_name = "llvm.aarch64.sve.ldff1.gather.uxtw.index.nxv4i32.p0" )] fn _svldff1_gather_u32index_s32( pg: svbool4_t, @@ -17399,7 +17453,7 @@ pub unsafe fn svldff1_gather_s32offset_f32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldff1.gather.sxtw.nxv4f32" + link_name = "llvm.aarch64.sve.ldff1.gather.sxtw.nxv4f32.p0" )] fn _svldff1_gather_s32offset_f32( pg: svbool4_t, @@ -17427,7 +17481,7 @@ pub unsafe fn svldff1_gather_s32offset_s32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldff1.gather.sxtw.nxv4i32" + link_name = "llvm.aarch64.sve.ldff1.gather.sxtw.nxv4i32.p0" )] fn _svldff1_gather_s32offset_s32( pg: svbool4_t, @@ -17472,7 +17526,7 @@ pub unsafe fn svldff1_gather_s64offset_f64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldff1.gather.nxv2f64" + link_name = "llvm.aarch64.sve.ldff1.gather.nxv2f64.p0" )] fn _svldff1_gather_s64offset_f64( pg: svbool2_t, @@ -17500,7 +17554,7 @@ pub unsafe fn svldff1_gather_s64offset_s64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldff1.gather.nxv2i64" + link_name = "llvm.aarch64.sve.ldff1.gather.nxv2i64.p0" )] fn _svldff1_gather_s64offset_s64( pg: svbool2_t, @@ -17545,7 +17599,7 @@ pub unsafe fn svldff1_gather_u32offset_f32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldff1.gather.uxtw.nxv4f32" + link_name = "llvm.aarch64.sve.ldff1.gather.uxtw.nxv4f32.p0" )] fn _svldff1_gather_u32offset_f32( pg: svbool4_t, @@ -17573,7 +17627,7 @@ pub unsafe fn svldff1_gather_u32offset_s32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldff1.gather.uxtw.nxv4i32" + link_name = "llvm.aarch64.sve.ldff1.gather.uxtw.nxv4i32.p0" )] fn _svldff1_gather_u32offset_s32( pg: svbool4_t, @@ -18143,7 +18197,7 @@ pub unsafe fn svldff1sb_gather_s32offset_s32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldff1.gather.sxtw.nxv4i8" + link_name = "llvm.aarch64.sve.ldff1.gather.sxtw.nxv4i8.p0" )] fn _svldff1sb_gather_s32offset_s32( pg: svbool4_t, @@ -18175,7 +18229,7 @@ pub unsafe fn svldff1sh_gather_s32offset_s32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldff1.gather.sxtw.nxv4i16" + link_name = "llvm.aarch64.sve.ldff1.gather.sxtw.nxv4i16.p0" )] fn _svldff1sh_gather_s32offset_s32( pg: svbool4_t, @@ -18241,7 +18295,7 @@ pub unsafe fn svldff1sb_gather_s64offset_s64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldff1.gather.nxv2i8" + link_name = "llvm.aarch64.sve.ldff1.gather.nxv2i8.p0" )] fn _svldff1sb_gather_s64offset_s64( pg: svbool2_t, @@ -18273,7 +18327,7 @@ pub unsafe fn svldff1sh_gather_s64offset_s64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldff1.gather.nxv2i16" + link_name = "llvm.aarch64.sve.ldff1.gather.nxv2i16.p0" )] fn _svldff1sh_gather_s64offset_s64( pg: svbool2_t, @@ -18305,7 +18359,7 @@ pub unsafe fn svldff1sw_gather_s64offset_s64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldff1.gather.nxv2i32" + link_name = "llvm.aarch64.sve.ldff1.gather.nxv2i32.p0" )] fn _svldff1sw_gather_s64offset_s64( pg: svbool2_t, @@ -18388,7 +18442,7 @@ pub unsafe fn svldff1sb_gather_u32offset_s32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldff1.gather.uxtw.nxv4i8" + link_name = "llvm.aarch64.sve.ldff1.gather.uxtw.nxv4i8.p0" )] fn _svldff1sb_gather_u32offset_s32( pg: svbool4_t, @@ -18420,7 +18474,7 @@ pub unsafe fn svldff1sh_gather_u32offset_s32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldff1.gather.uxtw.nxv4i16" + link_name = "llvm.aarch64.sve.ldff1.gather.uxtw.nxv4i16.p0" )] fn _svldff1sh_gather_u32offset_s32( pg: svbool4_t, @@ -18977,7 +19031,10 @@ pub unsafe fn svldff1sw_gather_u64base_u64(pg: svbool_t, bases: svuint64_t) -> s #[cfg_attr(test, assert_instr(ldff1sb))] pub unsafe fn svldff1sb_s16(pg: svbool_t, base: *const i8) -> svint16_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ldff1.nxv8i8")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ldff1.nxv8i8.p0" + )] fn _svldff1sb_s16(pg: svbool8_t, base: *const i8) -> nxv8i8; } crate::intrinsics::simd::simd_cast(_svldff1sb_s16(pg.sve_into(), base)) @@ -18994,7 +19051,10 @@ pub unsafe fn svldff1sb_s16(pg: svbool_t, base: *const i8) -> svint16_t { #[cfg_attr(test, assert_instr(ldff1sb))] pub unsafe fn svldff1sb_s32(pg: svbool_t, base: *const i8) -> svint32_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ldff1.nxv4i8")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ldff1.nxv4i8.p0" + )] fn _svldff1sb_s32(pg: svbool4_t, base: *const i8) -> nxv4i8; } crate::intrinsics::simd::simd_cast(_svldff1sb_s32(pg.sve_into(), base)) @@ -19011,7 +19071,10 @@ pub unsafe fn svldff1sb_s32(pg: svbool_t, base: *const i8) -> svint32_t { #[cfg_attr(test, assert_instr(ldff1sh))] pub unsafe fn svldff1sh_s32(pg: svbool_t, base: *const i16) -> svint32_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ldff1.nxv4i16")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ldff1.nxv4i16.p0" + )] fn _svldff1sh_s32(pg: svbool4_t, base: *const i16) -> nxv4i16; } crate::intrinsics::simd::simd_cast(_svldff1sh_s32(pg.sve_into(), base)) @@ -19028,7 +19091,10 @@ pub unsafe fn svldff1sh_s32(pg: svbool_t, base: *const i16) -> svint32_t { #[cfg_attr(test, assert_instr(ldff1sb))] pub unsafe fn svldff1sb_s64(pg: svbool_t, base: *const i8) -> svint64_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ldff1.nxv2i8")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ldff1.nxv2i8.p0" + )] fn _svldff1sb_s64(pg: svbool2_t, base: *const i8) -> nxv2i8; } crate::intrinsics::simd::simd_cast(_svldff1sb_s64(pg.sve_into(), base)) @@ -19045,7 +19111,10 @@ pub unsafe fn svldff1sb_s64(pg: svbool_t, base: *const i8) -> svint64_t { #[cfg_attr(test, assert_instr(ldff1sh))] pub unsafe fn svldff1sh_s64(pg: svbool_t, base: *const i16) -> svint64_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ldff1.nxv2i16")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ldff1.nxv2i16.p0" + )] fn _svldff1sh_s64(pg: svbool2_t, base: *const i16) -> nxv2i16; } crate::intrinsics::simd::simd_cast(_svldff1sh_s64(pg.sve_into(), base)) @@ -19062,7 +19131,10 @@ pub unsafe fn svldff1sh_s64(pg: svbool_t, base: *const i16) -> svint64_t { #[cfg_attr(test, assert_instr(ldff1sw))] pub unsafe fn svldff1sw_s64(pg: svbool_t, base: *const i32) -> svint64_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ldff1.nxv2i32")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ldff1.nxv2i32.p0" + )] fn _svldff1sw_s64(pg: svbool2_t, base: *const i32) -> nxv2i32; } crate::intrinsics::simd::simd_cast(_svldff1sw_s64(pg.sve_into(), base)) @@ -19319,7 +19391,7 @@ pub unsafe fn svldff1sh_gather_s32index_s32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldff1.gather.sxtw.index.nxv4i16" + link_name = "llvm.aarch64.sve.ldff1.gather.sxtw.index.nxv4i16.p0" )] fn _svldff1sh_gather_s32index_s32( pg: svbool4_t, @@ -19364,7 +19436,7 @@ pub unsafe fn svldff1sh_gather_s64index_s64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldff1.gather.index.nxv2i16" + link_name = "llvm.aarch64.sve.ldff1.gather.index.nxv2i16.p0" )] fn _svldff1sh_gather_s64index_s64( pg: svbool2_t, @@ -19392,7 +19464,7 @@ pub unsafe fn svldff1sw_gather_s64index_s64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldff1.gather.index.nxv2i32" + link_name = "llvm.aarch64.sve.ldff1.gather.index.nxv2i32.p0" )] fn _svldff1sw_gather_s64index_s64( pg: svbool2_t, @@ -19454,7 +19526,7 @@ pub unsafe fn svldff1sh_gather_u32index_s32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldff1.gather.uxtw.index.nxv4i16" + link_name = "llvm.aarch64.sve.ldff1.gather.uxtw.index.nxv4i16.p0" )] fn _svldff1sh_gather_u32index_s32( pg: svbool4_t, @@ -19713,7 +19785,7 @@ pub unsafe fn svldff1ub_gather_s32offset_u32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldff1.gather.sxtw.nxv4i8" + link_name = "llvm.aarch64.sve.ldff1.gather.sxtw.nxv4i8.p0" )] fn _svldff1ub_gather_s32offset_u32( pg: svbool4_t, @@ -19743,7 +19815,7 @@ pub unsafe fn svldff1uh_gather_s32offset_u32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldff1.gather.sxtw.nxv4i16" + link_name = "llvm.aarch64.sve.ldff1.gather.sxtw.nxv4i16.p0" )] fn _svldff1uh_gather_s32offset_u32( pg: svbool4_t, @@ -19824,7 +19896,7 @@ pub unsafe fn svldff1ub_gather_s64offset_u64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldff1.gather.nxv2i8" + link_name = "llvm.aarch64.sve.ldff1.gather.nxv2i8.p0" )] fn _svldff1ub_gather_s64offset_u64( pg: svbool2_t, @@ -19854,7 +19926,7 @@ pub unsafe fn svldff1uh_gather_s64offset_u64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldff1.gather.nxv2i16" + link_name = "llvm.aarch64.sve.ldff1.gather.nxv2i16.p0" )] fn _svldff1uh_gather_s64offset_u64( pg: svbool2_t, @@ -19884,7 +19956,7 @@ pub unsafe fn svldff1uw_gather_s64offset_u64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldff1.gather.nxv2i32" + link_name = "llvm.aarch64.sve.ldff1.gather.nxv2i32.p0" )] fn _svldff1uw_gather_s64offset_u64( pg: svbool2_t, @@ -19948,7 +20020,7 @@ pub unsafe fn svldff1ub_gather_u32offset_u32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldff1.gather.uxtw.nxv4i8" + link_name = "llvm.aarch64.sve.ldff1.gather.uxtw.nxv4i8.p0" )] fn _svldff1ub_gather_u32offset_u32( pg: svbool4_t, @@ -19979,7 +20051,7 @@ pub unsafe fn svldff1uh_gather_u32offset_u32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldff1.gather.uxtw.nxv4i16" + link_name = "llvm.aarch64.sve.ldff1.gather.uxtw.nxv4i16.p0" )] fn _svldff1uh_gather_u32offset_u32( pg: svbool4_t, @@ -20496,7 +20568,10 @@ pub unsafe fn svldff1uw_gather_u64base_u64(pg: svbool_t, bases: svuint64_t) -> s #[cfg_attr(test, assert_instr(ldff1b))] pub unsafe fn svldff1ub_s16(pg: svbool_t, base: *const u8) -> svint16_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ldff1.nxv8i8")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ldff1.nxv8i8.p0" + )] fn _svldff1ub_s16(pg: svbool8_t, base: *const i8) -> nxv8i8; } crate::intrinsics::simd::simd_cast::( @@ -20515,7 +20590,10 @@ pub unsafe fn svldff1ub_s16(pg: svbool_t, base: *const u8) -> svint16_t { #[cfg_attr(test, assert_instr(ldff1b))] pub unsafe fn svldff1ub_s32(pg: svbool_t, base: *const u8) -> svint32_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ldff1.nxv4i8")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ldff1.nxv4i8.p0" + )] fn _svldff1ub_s32(pg: svbool4_t, base: *const i8) -> nxv4i8; } crate::intrinsics::simd::simd_cast::( @@ -20534,7 +20612,10 @@ pub unsafe fn svldff1ub_s32(pg: svbool_t, base: *const u8) -> svint32_t { #[cfg_attr(test, assert_instr(ldff1h))] pub unsafe fn svldff1uh_s32(pg: svbool_t, base: *const u16) -> svint32_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ldff1.nxv4i16")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ldff1.nxv4i16.p0" + )] fn _svldff1uh_s32(pg: svbool4_t, base: *const i16) -> nxv4i16; } crate::intrinsics::simd::simd_cast::( @@ -20553,7 +20634,10 @@ pub unsafe fn svldff1uh_s32(pg: svbool_t, base: *const u16) -> svint32_t { #[cfg_attr(test, assert_instr(ldff1b))] pub unsafe fn svldff1ub_s64(pg: svbool_t, base: *const u8) -> svint64_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ldff1.nxv2i8")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ldff1.nxv2i8.p0" + )] fn _svldff1ub_s64(pg: svbool2_t, base: *const i8) -> nxv2i8; } crate::intrinsics::simd::simd_cast::( @@ -20572,7 +20656,10 @@ pub unsafe fn svldff1ub_s64(pg: svbool_t, base: *const u8) -> svint64_t { #[cfg_attr(test, assert_instr(ldff1h))] pub unsafe fn svldff1uh_s64(pg: svbool_t, base: *const u16) -> svint64_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ldff1.nxv2i16")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ldff1.nxv2i16.p0" + )] fn _svldff1uh_s64(pg: svbool2_t, base: *const i16) -> nxv2i16; } crate::intrinsics::simd::simd_cast::( @@ -20591,7 +20678,10 @@ pub unsafe fn svldff1uh_s64(pg: svbool_t, base: *const u16) -> svint64_t { #[cfg_attr(test, assert_instr(ldff1w))] pub unsafe fn svldff1uw_s64(pg: svbool_t, base: *const u32) -> svint64_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ldff1.nxv2i32")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ldff1.nxv2i32.p0" + )] fn _svldff1uw_s64(pg: svbool2_t, base: *const i32) -> nxv2i32; } crate::intrinsics::simd::simd_cast::( @@ -20867,7 +20957,7 @@ pub unsafe fn svldff1uh_gather_s32index_u32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldff1.gather.sxtw.index.nxv4i16" + link_name = "llvm.aarch64.sve.ldff1.gather.sxtw.index.nxv4i16.p0" )] fn _svldff1uh_gather_s32index_u32( pg: svbool4_t, @@ -20931,7 +21021,7 @@ pub unsafe fn svldff1uh_gather_s64index_u64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldff1.gather.index.nxv2i16" + link_name = "llvm.aarch64.sve.ldff1.gather.index.nxv2i16.p0" )] fn _svldff1uh_gather_s64index_u64( pg: svbool2_t, @@ -20961,7 +21051,7 @@ pub unsafe fn svldff1uw_gather_s64index_u64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldff1.gather.index.nxv2i32" + link_name = "llvm.aarch64.sve.ldff1.gather.index.nxv2i32.p0" )] fn _svldff1uw_gather_s64index_u64( pg: svbool2_t, @@ -21008,7 +21098,7 @@ pub unsafe fn svldff1uh_gather_u32index_u32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldff1.gather.uxtw.index.nxv4i16" + link_name = "llvm.aarch64.sve.ldff1.gather.uxtw.index.nxv4i16.p0" )] fn _svldff1uh_gather_u32index_u32( pg: svbool4_t, @@ -21209,7 +21299,10 @@ pub unsafe fn svldff1uw_gather_u64base_index_u64( #[cfg_attr(test, assert_instr(ldnf1w))] pub unsafe fn svldnf1_f32(pg: svbool_t, base: *const f32) -> svfloat32_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ldnf1.nxv4f32")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ldnf1.nxv4f32.p0" + )] fn _svldnf1_f32(pg: svbool4_t, base: *const f32) -> svfloat32_t; } _svldnf1_f32(pg.sve_into(), base) @@ -21226,7 +21319,10 @@ pub unsafe fn svldnf1_f32(pg: svbool_t, base: *const f32) -> svfloat32_t { #[cfg_attr(test, assert_instr(ldnf1d))] pub unsafe fn svldnf1_f64(pg: svbool_t, base: *const f64) -> svfloat64_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ldnf1.nxv2f64")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ldnf1.nxv2f64.p0" + )] fn _svldnf1_f64(pg: svbool2_t, base: *const f64) -> svfloat64_t; } _svldnf1_f64(pg.sve_into(), base) @@ -21243,7 +21339,10 @@ pub unsafe fn svldnf1_f64(pg: svbool_t, base: *const f64) -> svfloat64_t { #[cfg_attr(test, assert_instr(ldnf1b))] pub unsafe fn svldnf1_s8(pg: svbool_t, base: *const i8) -> svint8_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ldnf1.nxv16i8")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ldnf1.nxv16i8.p0" + )] fn _svldnf1_s8(pg: svbool_t, base: *const i8) -> svint8_t; } _svldnf1_s8(pg, base) @@ -21260,7 +21359,10 @@ pub unsafe fn svldnf1_s8(pg: svbool_t, base: *const i8) -> svint8_t { #[cfg_attr(test, assert_instr(ldnf1h))] pub unsafe fn svldnf1_s16(pg: svbool_t, base: *const i16) -> svint16_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ldnf1.nxv8i16")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ldnf1.nxv8i16.p0" + )] fn _svldnf1_s16(pg: svbool8_t, base: *const i16) -> svint16_t; } _svldnf1_s16(pg.sve_into(), base) @@ -21277,7 +21379,10 @@ pub unsafe fn svldnf1_s16(pg: svbool_t, base: *const i16) -> svint16_t { #[cfg_attr(test, assert_instr(ldnf1w))] pub unsafe fn svldnf1_s32(pg: svbool_t, base: *const i32) -> svint32_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ldnf1.nxv4i32")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ldnf1.nxv4i32.p0" + )] fn _svldnf1_s32(pg: svbool4_t, base: *const i32) -> svint32_t; } _svldnf1_s32(pg.sve_into(), base) @@ -21294,7 +21399,10 @@ pub unsafe fn svldnf1_s32(pg: svbool_t, base: *const i32) -> svint32_t { #[cfg_attr(test, assert_instr(ldnf1d))] pub unsafe fn svldnf1_s64(pg: svbool_t, base: *const i64) -> svint64_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ldnf1.nxv2i64")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ldnf1.nxv2i64.p0" + )] fn _svldnf1_s64(pg: svbool2_t, base: *const i64) -> svint64_t; } _svldnf1_s64(pg.sve_into(), base) @@ -21493,7 +21601,10 @@ pub unsafe fn svldnf1_vnum_u64(pg: svbool_t, base: *const u64, vnum: i64) -> svu #[cfg_attr(test, assert_instr(ldnf1sb))] pub unsafe fn svldnf1sb_s16(pg: svbool_t, base: *const i8) -> svint16_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ldnf1.nxv8i8")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ldnf1.nxv8i8.p0" + )] fn _svldnf1sb_s16(pg: svbool8_t, base: *const i8) -> nxv8i8; } crate::intrinsics::simd::simd_cast(_svldnf1sb_s16(pg.sve_into(), base)) @@ -21510,7 +21621,10 @@ pub unsafe fn svldnf1sb_s16(pg: svbool_t, base: *const i8) -> svint16_t { #[cfg_attr(test, assert_instr(ldnf1sb))] pub unsafe fn svldnf1sb_s32(pg: svbool_t, base: *const i8) -> svint32_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ldnf1.nxv4i8")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ldnf1.nxv4i8.p0" + )] fn _svldnf1sb_s32(pg: svbool4_t, base: *const i8) -> nxv4i8; } crate::intrinsics::simd::simd_cast(_svldnf1sb_s32(pg.sve_into(), base)) @@ -21527,7 +21641,10 @@ pub unsafe fn svldnf1sb_s32(pg: svbool_t, base: *const i8) -> svint32_t { #[cfg_attr(test, assert_instr(ldnf1sh))] pub unsafe fn svldnf1sh_s32(pg: svbool_t, base: *const i16) -> svint32_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ldnf1.nxv4i16")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ldnf1.nxv4i16.p0" + )] fn _svldnf1sh_s32(pg: svbool4_t, base: *const i16) -> nxv4i16; } crate::intrinsics::simd::simd_cast(_svldnf1sh_s32(pg.sve_into(), base)) @@ -21544,7 +21661,10 @@ pub unsafe fn svldnf1sh_s32(pg: svbool_t, base: *const i16) -> svint32_t { #[cfg_attr(test, assert_instr(ldnf1sb))] pub unsafe fn svldnf1sb_s64(pg: svbool_t, base: *const i8) -> svint64_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ldnf1.nxv2i8")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ldnf1.nxv2i8.p0" + )] fn _svldnf1sb_s64(pg: svbool2_t, base: *const i8) -> nxv2i8; } crate::intrinsics::simd::simd_cast(_svldnf1sb_s64(pg.sve_into(), base)) @@ -21561,7 +21681,10 @@ pub unsafe fn svldnf1sb_s64(pg: svbool_t, base: *const i8) -> svint64_t { #[cfg_attr(test, assert_instr(ldnf1sh))] pub unsafe fn svldnf1sh_s64(pg: svbool_t, base: *const i16) -> svint64_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ldnf1.nxv2i16")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ldnf1.nxv2i16.p0" + )] fn _svldnf1sh_s64(pg: svbool2_t, base: *const i16) -> nxv2i16; } crate::intrinsics::simd::simd_cast(_svldnf1sh_s64(pg.sve_into(), base)) @@ -21578,7 +21701,10 @@ pub unsafe fn svldnf1sh_s64(pg: svbool_t, base: *const i16) -> svint64_t { #[cfg_attr(test, assert_instr(ldnf1sw))] pub unsafe fn svldnf1sw_s64(pg: svbool_t, base: *const i32) -> svint64_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ldnf1.nxv2i32")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ldnf1.nxv2i32.p0" + )] fn _svldnf1sw_s64(pg: svbool2_t, base: *const i32) -> nxv2i32; } crate::intrinsics::simd::simd_cast(_svldnf1sw_s64(pg.sve_into(), base)) @@ -21829,7 +21955,10 @@ pub unsafe fn svldnf1sw_vnum_u64(pg: svbool_t, base: *const i32, vnum: i64) -> s #[cfg_attr(test, assert_instr(ldnf1b))] pub unsafe fn svldnf1ub_s16(pg: svbool_t, base: *const u8) -> svint16_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ldnf1.nxv8i8")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ldnf1.nxv8i8.p0" + )] fn _svldnf1ub_s16(pg: svbool8_t, base: *const i8) -> nxv8i8; } crate::intrinsics::simd::simd_cast::( @@ -21848,7 +21977,10 @@ pub unsafe fn svldnf1ub_s16(pg: svbool_t, base: *const u8) -> svint16_t { #[cfg_attr(test, assert_instr(ldnf1b))] pub unsafe fn svldnf1ub_s32(pg: svbool_t, base: *const u8) -> svint32_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ldnf1.nxv4i8")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ldnf1.nxv4i8.p0" + )] fn _svldnf1ub_s32(pg: svbool4_t, base: *const i8) -> nxv4i8; } crate::intrinsics::simd::simd_cast::( @@ -21867,7 +21999,10 @@ pub unsafe fn svldnf1ub_s32(pg: svbool_t, base: *const u8) -> svint32_t { #[cfg_attr(test, assert_instr(ldnf1h))] pub unsafe fn svldnf1uh_s32(pg: svbool_t, base: *const u16) -> svint32_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ldnf1.nxv4i16")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ldnf1.nxv4i16.p0" + )] fn _svldnf1uh_s32(pg: svbool4_t, base: *const i16) -> nxv4i16; } crate::intrinsics::simd::simd_cast::( @@ -21886,7 +22021,10 @@ pub unsafe fn svldnf1uh_s32(pg: svbool_t, base: *const u16) -> svint32_t { #[cfg_attr(test, assert_instr(ldnf1b))] pub unsafe fn svldnf1ub_s64(pg: svbool_t, base: *const u8) -> svint64_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ldnf1.nxv2i8")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ldnf1.nxv2i8.p0" + )] fn _svldnf1ub_s64(pg: svbool2_t, base: *const i8) -> nxv2i8; } crate::intrinsics::simd::simd_cast::( @@ -21905,7 +22043,10 @@ pub unsafe fn svldnf1ub_s64(pg: svbool_t, base: *const u8) -> svint64_t { #[cfg_attr(test, assert_instr(ldnf1h))] pub unsafe fn svldnf1uh_s64(pg: svbool_t, base: *const u16) -> svint64_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ldnf1.nxv2i16")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ldnf1.nxv2i16.p0" + )] fn _svldnf1uh_s64(pg: svbool2_t, base: *const i16) -> nxv2i16; } crate::intrinsics::simd::simd_cast::( @@ -21924,7 +22065,10 @@ pub unsafe fn svldnf1uh_s64(pg: svbool_t, base: *const u16) -> svint64_t { #[cfg_attr(test, assert_instr(ldnf1w))] pub unsafe fn svldnf1uw_s64(pg: svbool_t, base: *const u32) -> svint64_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ldnf1.nxv2i32")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ldnf1.nxv2i32.p0" + )] fn _svldnf1uw_s64(pg: svbool2_t, base: *const i32) -> nxv2i32; } crate::intrinsics::simd::simd_cast::( @@ -22177,7 +22321,10 @@ pub unsafe fn svldnf1uw_vnum_u64(pg: svbool_t, base: *const u32, vnum: i64) -> s #[cfg_attr(test, assert_instr(ldnt1w))] pub unsafe fn svldnt1_f32(pg: svbool_t, base: *const f32) -> svfloat32_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ldnt1.nxv4f32")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ldnt1.nxv4f32.p0" + )] fn _svldnt1_f32(pg: svbool4_t, base: *const f32) -> svfloat32_t; } _svldnt1_f32(pg.sve_into(), base) @@ -22194,7 +22341,10 @@ pub unsafe fn svldnt1_f32(pg: svbool_t, base: *const f32) -> svfloat32_t { #[cfg_attr(test, assert_instr(ldnt1d))] pub unsafe fn svldnt1_f64(pg: svbool_t, base: *const f64) -> svfloat64_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ldnt1.nxv2f64")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ldnt1.nxv2f64.p0" + )] fn _svldnt1_f64(pg: svbool2_t, base: *const f64) -> svfloat64_t; } _svldnt1_f64(pg.sve_into(), base) @@ -22211,7 +22361,10 @@ pub unsafe fn svldnt1_f64(pg: svbool_t, base: *const f64) -> svfloat64_t { #[cfg_attr(test, assert_instr(ldnt1b))] pub unsafe fn svldnt1_s8(pg: svbool_t, base: *const i8) -> svint8_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ldnt1.nxv16i8")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ldnt1.nxv16i8.p0" + )] fn _svldnt1_s8(pg: svbool_t, base: *const i8) -> svint8_t; } _svldnt1_s8(pg, base) @@ -22228,7 +22381,10 @@ pub unsafe fn svldnt1_s8(pg: svbool_t, base: *const i8) -> svint8_t { #[cfg_attr(test, assert_instr(ldnt1h))] pub unsafe fn svldnt1_s16(pg: svbool_t, base: *const i16) -> svint16_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ldnt1.nxv8i16")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ldnt1.nxv8i16.p0" + )] fn _svldnt1_s16(pg: svbool8_t, base: *const i16) -> svint16_t; } _svldnt1_s16(pg.sve_into(), base) @@ -22245,7 +22401,10 @@ pub unsafe fn svldnt1_s16(pg: svbool_t, base: *const i16) -> svint16_t { #[cfg_attr(test, assert_instr(ldnt1w))] pub unsafe fn svldnt1_s32(pg: svbool_t, base: *const i32) -> svint32_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ldnt1.nxv4i32")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ldnt1.nxv4i32.p0" + )] fn _svldnt1_s32(pg: svbool4_t, base: *const i32) -> svint32_t; } _svldnt1_s32(pg.sve_into(), base) @@ -22262,7 +22421,10 @@ pub unsafe fn svldnt1_s32(pg: svbool_t, base: *const i32) -> svint32_t { #[cfg_attr(test, assert_instr(ldnt1d))] pub unsafe fn svldnt1_s64(pg: svbool_t, base: *const i64) -> svint64_t { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.ldnt1.nxv2i64")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.ldnt1.nxv2i64.p0" + )] fn _svldnt1_s64(pg: svbool2_t, base: *const i64) -> svint64_t; } _svldnt1_s64(pg.sve_into(), base) @@ -30931,7 +31093,7 @@ pub fn svpnext_b64(pg: svbool_t, op: svbool_t) -> svbool_t { # [cfg_attr (test , assert_instr (prfb , OP = { svprfop :: SV_PLDL1KEEP } , T = i64))] pub unsafe fn svprfb(pg: svbool_t, base: *const T) { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.prf.nxv16i1")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.prf.nxv16i1.p0")] fn _svprfb(pg: svbool_t, base: *const crate::ffi::c_void, op: svprfop); } _svprfb(pg, base as *const crate::ffi::c_void, OP) @@ -30946,7 +31108,7 @@ pub unsafe fn svprfb(pg: svbool_t, base: *const T) { # [cfg_attr (test , assert_instr (prfh , OP = { svprfop :: SV_PLDL1KEEP } , T = i64))] pub unsafe fn svprfh(pg: svbool_t, base: *const T) { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.prf.nxv8i1")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.prf.nxv8i1.p0")] fn _svprfh(pg: svbool8_t, base: *const crate::ffi::c_void, op: svprfop); } _svprfh(pg.sve_into(), base as *const crate::ffi::c_void, OP) @@ -30961,7 +31123,7 @@ pub unsafe fn svprfh(pg: svbool_t, base: *const T) { # [cfg_attr (test , assert_instr (prfw , OP = { svprfop :: SV_PLDL1KEEP } , T = i64))] pub unsafe fn svprfw(pg: svbool_t, base: *const T) { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.prf.nxv4i1")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.prf.nxv4i1.p0")] fn _svprfw(pg: svbool4_t, base: *const crate::ffi::c_void, op: svprfop); } _svprfw(pg.sve_into(), base as *const crate::ffi::c_void, OP) @@ -30976,7 +31138,7 @@ pub unsafe fn svprfw(pg: svbool_t, base: *const T) { # [cfg_attr (test , assert_instr (prfd , OP = { svprfop :: SV_PLDL1KEEP } , T = i64))] pub unsafe fn svprfd(pg: svbool_t, base: *const T) { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.prf.nxv2i1")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.prf.nxv2i1.p0")] fn _svprfd(pg: svbool2_t, base: *const crate::ffi::c_void, op: svprfop); } _svprfd(pg.sve_into(), base as *const crate::ffi::c_void, OP) @@ -30997,7 +31159,7 @@ pub unsafe fn svprfb_gather_s32offset( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.prfb.gather.sxtw.index.nxv4i32" + link_name = "llvm.aarch64.sve.prfb.gather.sxtw.index.p0.nxv4i32" )] fn _svprfb_gather_s32offset( pg: svbool4_t, @@ -31029,7 +31191,7 @@ pub unsafe fn svprfh_gather_s32index( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.prfh.gather.sxtw.index.nxv4i32" + link_name = "llvm.aarch64.sve.prfh.gather.sxtw.index.p0.nxv4i32" )] fn _svprfh_gather_s32index( pg: svbool4_t, @@ -31061,7 +31223,7 @@ pub unsafe fn svprfw_gather_s32index( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.prfw.gather.sxtw.index.nxv4i32" + link_name = "llvm.aarch64.sve.prfw.gather.sxtw.index.p0.nxv4i32" )] fn _svprfw_gather_s32index( pg: svbool4_t, @@ -31093,7 +31255,7 @@ pub unsafe fn svprfd_gather_s32index( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.prfd.gather.sxtw.index.nxv4i32" + link_name = "llvm.aarch64.sve.prfd.gather.sxtw.index.p0.nxv4i32" )] fn _svprfd_gather_s32index( pg: svbool4_t, @@ -31125,7 +31287,7 @@ pub unsafe fn svprfb_gather_s64offset( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.prfb.gather.index.nxv2i64" + link_name = "llvm.aarch64.sve.prfb.gather.index.p0.nxv2i64" )] fn _svprfb_gather_s64offset( pg: svbool2_t, @@ -31157,7 +31319,7 @@ pub unsafe fn svprfh_gather_s64index( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.prfh.gather.index.nxv2i64" + link_name = "llvm.aarch64.sve.prfh.gather.index.p0.nxv2i64" )] fn _svprfh_gather_s64index( pg: svbool2_t, @@ -31189,7 +31351,7 @@ pub unsafe fn svprfw_gather_s64index( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.prfw.gather.index.nxv2i64" + link_name = "llvm.aarch64.sve.prfw.gather.index.p0.nxv2i64" )] fn _svprfw_gather_s64index( pg: svbool2_t, @@ -31221,7 +31383,7 @@ pub unsafe fn svprfd_gather_s64index( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.prfd.gather.index.nxv2i64" + link_name = "llvm.aarch64.sve.prfd.gather.index.p0.nxv2i64" )] fn _svprfd_gather_s64index( pg: svbool2_t, @@ -31253,7 +31415,7 @@ pub unsafe fn svprfb_gather_u32offset( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.prfb.gather.uxtw.index.nxv4i32" + link_name = "llvm.aarch64.sve.prfb.gather.uxtw.index.p0.nxv4i32" )] fn _svprfb_gather_u32offset( pg: svbool4_t, @@ -31285,7 +31447,7 @@ pub unsafe fn svprfh_gather_u32index( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.prfh.gather.uxtw.index.nxv4i32" + link_name = "llvm.aarch64.sve.prfh.gather.uxtw.index.p0.nxv4i32" )] fn _svprfh_gather_u32index( pg: svbool4_t, @@ -31317,7 +31479,7 @@ pub unsafe fn svprfw_gather_u32index( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.prfw.gather.uxtw.index.nxv4i32" + link_name = "llvm.aarch64.sve.prfw.gather.uxtw.index.p0.nxv4i32" )] fn _svprfw_gather_u32index( pg: svbool4_t, @@ -31349,7 +31511,7 @@ pub unsafe fn svprfd_gather_u32index( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.prfd.gather.uxtw.index.nxv4i32" + link_name = "llvm.aarch64.sve.prfd.gather.uxtw.index.p0.nxv4i32" )] fn _svprfd_gather_u32index( pg: svbool4_t, @@ -36922,7 +37084,7 @@ pub fn svsqrt_f64_z(pg: svbool_t, op: svfloat64_t) -> svfloat64_t { #[cfg_attr(test, assert_instr(st1w))] pub unsafe fn svst1_f32(pg: svbool_t, base: *mut f32, data: svfloat32_t) { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st1.nxv4f32")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st1.nxv4f32.p0")] fn _svst1_f32(data: svfloat32_t, pg: svbool4_t, ptr: *mut f32); } _svst1_f32(data, pg.sve_into(), base) @@ -36938,7 +37100,7 @@ pub unsafe fn svst1_f32(pg: svbool_t, base: *mut f32, data: svfloat32_t) { #[cfg_attr(test, assert_instr(st1d))] pub unsafe fn svst1_f64(pg: svbool_t, base: *mut f64, data: svfloat64_t) { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st1.nxv2f64")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st1.nxv2f64.p0")] fn _svst1_f64(data: svfloat64_t, pg: svbool2_t, ptr: *mut f64); } _svst1_f64(data, pg.sve_into(), base) @@ -36954,7 +37116,7 @@ pub unsafe fn svst1_f64(pg: svbool_t, base: *mut f64, data: svfloat64_t) { #[cfg_attr(test, assert_instr(st1b))] pub unsafe fn svst1_s8(pg: svbool_t, base: *mut i8, data: svint8_t) { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st1.nxv16i8")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st1.nxv16i8.p0")] fn _svst1_s8(data: svint8_t, pg: svbool_t, ptr: *mut i8); } _svst1_s8(data, pg, base) @@ -36970,7 +37132,7 @@ pub unsafe fn svst1_s8(pg: svbool_t, base: *mut i8, data: svint8_t) { #[cfg_attr(test, assert_instr(st1h))] pub unsafe fn svst1_s16(pg: svbool_t, base: *mut i16, data: svint16_t) { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st1.nxv8i16")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st1.nxv8i16.p0")] fn _svst1_s16(data: svint16_t, pg: svbool8_t, ptr: *mut i16); } _svst1_s16(data, pg.sve_into(), base) @@ -36986,7 +37148,7 @@ pub unsafe fn svst1_s16(pg: svbool_t, base: *mut i16, data: svint16_t) { #[cfg_attr(test, assert_instr(st1w))] pub unsafe fn svst1_s32(pg: svbool_t, base: *mut i32, data: svint32_t) { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st1.nxv4i32")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st1.nxv4i32.p0")] fn _svst1_s32(data: svint32_t, pg: svbool4_t, ptr: *mut i32); } _svst1_s32(data, pg.sve_into(), base) @@ -37002,7 +37164,7 @@ pub unsafe fn svst1_s32(pg: svbool_t, base: *mut i32, data: svint32_t) { #[cfg_attr(test, assert_instr(st1d))] pub unsafe fn svst1_s64(pg: svbool_t, base: *mut i64, data: svint64_t) { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st1.nxv2i64")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st1.nxv2i64.p0")] fn _svst1_s64(data: svint64_t, pg: svbool2_t, ptr: *mut i64); } _svst1_s64(data, pg.sve_into(), base) @@ -37073,7 +37235,7 @@ pub unsafe fn svst1_scatter_s32index_f32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.st1.scatter.sxtw.index.nxv4f32" + link_name = "llvm.aarch64.sve.st1.scatter.sxtw.index.nxv4f32.p0" )] fn _svst1_scatter_s32index_f32( data: svfloat32_t, @@ -37102,7 +37264,7 @@ pub unsafe fn svst1_scatter_s32index_s32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.st1.scatter.sxtw.index.nxv4i32" + link_name = "llvm.aarch64.sve.st1.scatter.sxtw.index.nxv4i32.p0" )] fn _svst1_scatter_s32index_s32( data: svint32_t, @@ -37148,7 +37310,7 @@ pub unsafe fn svst1_scatter_s64index_f64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.st1.scatter.index.nxv2f64" + link_name = "llvm.aarch64.sve.st1.scatter.index.nxv2f64.p0" )] fn _svst1_scatter_s64index_f64( data: svfloat64_t, @@ -37177,7 +37339,7 @@ pub unsafe fn svst1_scatter_s64index_s64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.st1.scatter.index.nxv2i64" + link_name = "llvm.aarch64.sve.st1.scatter.index.nxv2i64.p0" )] fn _svst1_scatter_s64index_s64( data: svint64_t, @@ -37223,7 +37385,7 @@ pub unsafe fn svst1_scatter_u32index_f32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.st1.scatter.uxtw.index.nxv4f32" + link_name = "llvm.aarch64.sve.st1.scatter.uxtw.index.nxv4f32.p0" )] fn _svst1_scatter_u32index_f32( data: svfloat32_t, @@ -37252,7 +37414,7 @@ pub unsafe fn svst1_scatter_u32index_s32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.st1.scatter.uxtw.index.nxv4i32" + link_name = "llvm.aarch64.sve.st1.scatter.uxtw.index.nxv4i32.p0" )] fn _svst1_scatter_u32index_s32( data: svint32_t, @@ -37349,7 +37511,7 @@ pub unsafe fn svst1_scatter_s32offset_f32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.st1.scatter.sxtw.nxv4f32" + link_name = "llvm.aarch64.sve.st1.scatter.sxtw.nxv4f32.p0" )] fn _svst1_scatter_s32offset_f32( data: svfloat32_t, @@ -37378,7 +37540,7 @@ pub unsafe fn svst1_scatter_s32offset_s32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.st1.scatter.sxtw.nxv4i32" + link_name = "llvm.aarch64.sve.st1.scatter.sxtw.nxv4i32.p0" )] fn _svst1_scatter_s32offset_s32( data: svint32_t, @@ -37424,7 +37586,7 @@ pub unsafe fn svst1_scatter_s64offset_f64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.st1.scatter.nxv2f64" + link_name = "llvm.aarch64.sve.st1.scatter.nxv2f64.p0" )] fn _svst1_scatter_s64offset_f64( data: svfloat64_t, @@ -37453,7 +37615,7 @@ pub unsafe fn svst1_scatter_s64offset_s64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.st1.scatter.nxv2i64" + link_name = "llvm.aarch64.sve.st1.scatter.nxv2i64.p0" )] fn _svst1_scatter_s64offset_s64( data: svint64_t, @@ -37499,7 +37661,7 @@ pub unsafe fn svst1_scatter_u32offset_f32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.st1.scatter.uxtw.nxv4f32" + link_name = "llvm.aarch64.sve.st1.scatter.uxtw.nxv4f32.p0" )] fn _svst1_scatter_u32offset_f32( data: svfloat32_t, @@ -37528,7 +37690,7 @@ pub unsafe fn svst1_scatter_u32offset_s32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.st1.scatter.uxtw.nxv4i32" + link_name = "llvm.aarch64.sve.st1.scatter.uxtw.nxv4i32.p0" )] fn _svst1_scatter_u32offset_s32( data: svint32_t, @@ -38080,7 +38242,7 @@ pub unsafe fn svst1_vnum_u64(pg: svbool_t, base: *mut u64, vnum: i64, data: svui #[cfg_attr(test, assert_instr(st1b))] pub unsafe fn svst1b_s16(pg: svbool_t, base: *mut i8, data: svint16_t) { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st1.nxv8i8")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st1.nxv8i8.p0")] fn _svst1b_s16(data: nxv8i8, pg: svbool8_t, ptr: *mut i8); } _svst1b_s16( @@ -38100,7 +38262,7 @@ pub unsafe fn svst1b_s16(pg: svbool_t, base: *mut i8, data: svint16_t) { #[cfg_attr(test, assert_instr(st1b))] pub unsafe fn svst1b_s32(pg: svbool_t, base: *mut i8, data: svint32_t) { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st1.nxv4i8")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st1.nxv4i8.p0")] fn _svst1b_s32(data: nxv4i8, pg: svbool4_t, ptr: *mut i8); } _svst1b_s32( @@ -38120,7 +38282,7 @@ pub unsafe fn svst1b_s32(pg: svbool_t, base: *mut i8, data: svint32_t) { #[cfg_attr(test, assert_instr(st1h))] pub unsafe fn svst1h_s32(pg: svbool_t, base: *mut i16, data: svint32_t) { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st1.nxv4i16")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st1.nxv4i16.p0")] fn _svst1h_s32(data: nxv4i16, pg: svbool4_t, ptr: *mut i16); } _svst1h_s32( @@ -38140,7 +38302,7 @@ pub unsafe fn svst1h_s32(pg: svbool_t, base: *mut i16, data: svint32_t) { #[cfg_attr(test, assert_instr(st1b))] pub unsafe fn svst1b_s64(pg: svbool_t, base: *mut i8, data: svint64_t) { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st1.nxv2i8")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st1.nxv2i8.p0")] fn _svst1b_s64(data: nxv2i8, pg: svbool2_t, ptr: *mut i8); } _svst1b_s64( @@ -38160,7 +38322,7 @@ pub unsafe fn svst1b_s64(pg: svbool_t, base: *mut i8, data: svint64_t) { #[cfg_attr(test, assert_instr(st1h))] pub unsafe fn svst1h_s64(pg: svbool_t, base: *mut i16, data: svint64_t) { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st1.nxv2i16")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st1.nxv2i16.p0")] fn _svst1h_s64(data: nxv2i16, pg: svbool2_t, ptr: *mut i16); } _svst1h_s64( @@ -38180,7 +38342,7 @@ pub unsafe fn svst1h_s64(pg: svbool_t, base: *mut i16, data: svint64_t) { #[cfg_attr(test, assert_instr(st1w))] pub unsafe fn svst1w_s64(pg: svbool_t, base: *mut i32, data: svint64_t) { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st1.nxv2i32")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st1.nxv2i32.p0")] fn _svst1w_s64(data: nxv2i32, pg: svbool2_t, ptr: *mut i32); } _svst1w_s64( @@ -38279,7 +38441,7 @@ pub unsafe fn svst1b_scatter_s32offset_s32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.st1.scatter.sxtw.nxv4i8" + link_name = "llvm.aarch64.sve.st1.scatter.sxtw.nxv4i8.p0" )] fn _svst1b_scatter_s32offset_s32( data: nxv4i8, @@ -38313,7 +38475,7 @@ pub unsafe fn svst1h_scatter_s32offset_s32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.st1.scatter.sxtw.nxv4i16" + link_name = "llvm.aarch64.sve.st1.scatter.sxtw.nxv4i16.p0" )] fn _svst1h_scatter_s32offset_s32( data: nxv4i16, @@ -38381,7 +38543,7 @@ pub unsafe fn svst1b_scatter_s64offset_s64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.st1.scatter.nxv2i8" + link_name = "llvm.aarch64.sve.st1.scatter.nxv2i8.p0" )] fn _svst1b_scatter_s64offset_s64( data: nxv2i8, @@ -38415,7 +38577,7 @@ pub unsafe fn svst1h_scatter_s64offset_s64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.st1.scatter.nxv2i16" + link_name = "llvm.aarch64.sve.st1.scatter.nxv2i16.p0" )] fn _svst1h_scatter_s64offset_s64( data: nxv2i16, @@ -38449,7 +38611,7 @@ pub unsafe fn svst1w_scatter_s64offset_s64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.st1.scatter.nxv2i32" + link_name = "llvm.aarch64.sve.st1.scatter.nxv2i32.p0" )] fn _svst1w_scatter_s64offset_s64( data: nxv2i32, @@ -38534,7 +38696,7 @@ pub unsafe fn svst1b_scatter_u32offset_s32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.st1.scatter.uxtw.nxv4i8" + link_name = "llvm.aarch64.sve.st1.scatter.uxtw.nxv4i8.p0" )] fn _svst1b_scatter_u32offset_s32( data: nxv4i8, @@ -38568,7 +38730,7 @@ pub unsafe fn svst1h_scatter_u32offset_s32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.st1.scatter.uxtw.nxv4i16" + link_name = "llvm.aarch64.sve.st1.scatter.uxtw.nxv4i16.p0" )] fn _svst1h_scatter_u32offset_s32( data: nxv4i16, @@ -39277,7 +39439,7 @@ pub unsafe fn svst1h_scatter_s32index_s32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.st1.scatter.sxtw.index.nxv4i16" + link_name = "llvm.aarch64.sve.st1.scatter.sxtw.index.nxv4i16.p0" )] fn _svst1h_scatter_s32index_s32( data: nxv4i16, @@ -39328,7 +39490,7 @@ pub unsafe fn svst1h_scatter_s64index_s64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.st1.scatter.index.nxv2i16" + link_name = "llvm.aarch64.sve.st1.scatter.index.nxv2i16.p0" )] fn _svst1h_scatter_s64index_s64( data: nxv2i16, @@ -39362,7 +39524,7 @@ pub unsafe fn svst1w_scatter_s64index_s64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.st1.scatter.index.nxv2i32" + link_name = "llvm.aarch64.sve.st1.scatter.index.nxv2i32.p0" )] fn _svst1w_scatter_s64index_s64( data: nxv2i32, @@ -39430,7 +39592,7 @@ pub unsafe fn svst1h_scatter_u32index_s32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.st1.scatter.uxtw.index.nxv4i16" + link_name = "llvm.aarch64.sve.st1.scatter.uxtw.index.nxv4i16.p0" )] fn _svst1h_scatter_u32index_s32( data: nxv4i16, @@ -39650,7 +39812,7 @@ pub unsafe fn svst1w_scatter_u64base_index_u64( #[cfg_attr(test, assert_instr(st2w))] pub unsafe fn svst2_f32(pg: svbool_t, base: *mut f32, data: svfloat32x2_t) { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st2.nxv4f32")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st2.nxv4f32.p0")] fn _svst2_f32(data0: svfloat32_t, data1: svfloat32_t, pg: svbool4_t, ptr: *mut f32); } _svst2_f32( @@ -39671,7 +39833,7 @@ pub unsafe fn svst2_f32(pg: svbool_t, base: *mut f32, data: svfloat32x2_t) { #[cfg_attr(test, assert_instr(st2d))] pub unsafe fn svst2_f64(pg: svbool_t, base: *mut f64, data: svfloat64x2_t) { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st2.nxv2f64")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st2.nxv2f64.p0")] fn _svst2_f64(data0: svfloat64_t, data1: svfloat64_t, pg: svbool2_t, ptr: *mut f64); } _svst2_f64( @@ -39692,7 +39854,7 @@ pub unsafe fn svst2_f64(pg: svbool_t, base: *mut f64, data: svfloat64x2_t) { #[cfg_attr(test, assert_instr(st2b))] pub unsafe fn svst2_s8(pg: svbool_t, base: *mut i8, data: svint8x2_t) { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st2.nxv16i8")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st2.nxv16i8.p0")] fn _svst2_s8(data0: svint8_t, data1: svint8_t, pg: svbool_t, ptr: *mut i8); } _svst2_s8(svget2_s8::<0>(data), svget2_s8::<1>(data), pg, base) @@ -39708,7 +39870,7 @@ pub unsafe fn svst2_s8(pg: svbool_t, base: *mut i8, data: svint8x2_t) { #[cfg_attr(test, assert_instr(st2h))] pub unsafe fn svst2_s16(pg: svbool_t, base: *mut i16, data: svint16x2_t) { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st2.nxv8i16")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st2.nxv8i16.p0")] fn _svst2_s16(data0: svint16_t, data1: svint16_t, pg: svbool8_t, ptr: *mut i16); } _svst2_s16( @@ -39729,7 +39891,7 @@ pub unsafe fn svst2_s16(pg: svbool_t, base: *mut i16, data: svint16x2_t) { #[cfg_attr(test, assert_instr(st2w))] pub unsafe fn svst2_s32(pg: svbool_t, base: *mut i32, data: svint32x2_t) { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st2.nxv4i32")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st2.nxv4i32.p0")] fn _svst2_s32(data0: svint32_t, data1: svint32_t, pg: svbool4_t, ptr: *mut i32); } _svst2_s32( @@ -39750,7 +39912,7 @@ pub unsafe fn svst2_s32(pg: svbool_t, base: *mut i32, data: svint32x2_t) { #[cfg_attr(test, assert_instr(st2d))] pub unsafe fn svst2_s64(pg: svbool_t, base: *mut i64, data: svint64x2_t) { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st2.nxv2i64")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st2.nxv2i64.p0")] fn _svst2_s64(data0: svint64_t, data1: svint64_t, pg: svbool2_t, ptr: *mut i64); } _svst2_s64( @@ -39939,7 +40101,7 @@ pub unsafe fn svst2_vnum_u64(pg: svbool_t, base: *mut u64, vnum: i64, data: svui #[cfg_attr(test, assert_instr(st3w))] pub unsafe fn svst3_f32(pg: svbool_t, base: *mut f32, data: svfloat32x3_t) { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st3.nxv4f32")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st3.nxv4f32.p0")] fn _svst3_f32( data0: svfloat32_t, data1: svfloat32_t, @@ -39967,7 +40129,7 @@ pub unsafe fn svst3_f32(pg: svbool_t, base: *mut f32, data: svfloat32x3_t) { #[cfg_attr(test, assert_instr(st3d))] pub unsafe fn svst3_f64(pg: svbool_t, base: *mut f64, data: svfloat64x3_t) { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st3.nxv2f64")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st3.nxv2f64.p0")] fn _svst3_f64( data0: svfloat64_t, data1: svfloat64_t, @@ -39995,7 +40157,7 @@ pub unsafe fn svst3_f64(pg: svbool_t, base: *mut f64, data: svfloat64x3_t) { #[cfg_attr(test, assert_instr(st3b))] pub unsafe fn svst3_s8(pg: svbool_t, base: *mut i8, data: svint8x3_t) { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st3.nxv16i8")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st3.nxv16i8.p0")] fn _svst3_s8(data0: svint8_t, data1: svint8_t, data2: svint8_t, pg: svbool_t, ptr: *mut i8); } _svst3_s8( @@ -40017,7 +40179,7 @@ pub unsafe fn svst3_s8(pg: svbool_t, base: *mut i8, data: svint8x3_t) { #[cfg_attr(test, assert_instr(st3h))] pub unsafe fn svst3_s16(pg: svbool_t, base: *mut i16, data: svint16x3_t) { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st3.nxv8i16")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st3.nxv8i16.p0")] fn _svst3_s16( data0: svint16_t, data1: svint16_t, @@ -40045,7 +40207,7 @@ pub unsafe fn svst3_s16(pg: svbool_t, base: *mut i16, data: svint16x3_t) { #[cfg_attr(test, assert_instr(st3w))] pub unsafe fn svst3_s32(pg: svbool_t, base: *mut i32, data: svint32x3_t) { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st3.nxv4i32")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st3.nxv4i32.p0")] fn _svst3_s32( data0: svint32_t, data1: svint32_t, @@ -40073,7 +40235,7 @@ pub unsafe fn svst3_s32(pg: svbool_t, base: *mut i32, data: svint32x3_t) { #[cfg_attr(test, assert_instr(st3d))] pub unsafe fn svst3_s64(pg: svbool_t, base: *mut i64, data: svint64x3_t) { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st3.nxv2i64")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st3.nxv2i64.p0")] fn _svst3_s64( data0: svint64_t, data1: svint64_t, @@ -40269,7 +40431,7 @@ pub unsafe fn svst3_vnum_u64(pg: svbool_t, base: *mut u64, vnum: i64, data: svui #[cfg_attr(test, assert_instr(st4w))] pub unsafe fn svst4_f32(pg: svbool_t, base: *mut f32, data: svfloat32x4_t) { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st4.nxv4f32")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st4.nxv4f32.p0")] fn _svst4_f32( data0: svfloat32_t, data1: svfloat32_t, @@ -40299,7 +40461,7 @@ pub unsafe fn svst4_f32(pg: svbool_t, base: *mut f32, data: svfloat32x4_t) { #[cfg_attr(test, assert_instr(st4d))] pub unsafe fn svst4_f64(pg: svbool_t, base: *mut f64, data: svfloat64x4_t) { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st4.nxv2f64")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st4.nxv2f64.p0")] fn _svst4_f64( data0: svfloat64_t, data1: svfloat64_t, @@ -40329,7 +40491,7 @@ pub unsafe fn svst4_f64(pg: svbool_t, base: *mut f64, data: svfloat64x4_t) { #[cfg_attr(test, assert_instr(st4b))] pub unsafe fn svst4_s8(pg: svbool_t, base: *mut i8, data: svint8x4_t) { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st4.nxv16i8")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st4.nxv16i8.p0")] fn _svst4_s8( data0: svint8_t, data1: svint8_t, @@ -40359,7 +40521,7 @@ pub unsafe fn svst4_s8(pg: svbool_t, base: *mut i8, data: svint8x4_t) { #[cfg_attr(test, assert_instr(st4h))] pub unsafe fn svst4_s16(pg: svbool_t, base: *mut i16, data: svint16x4_t) { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st4.nxv8i16")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st4.nxv8i16.p0")] fn _svst4_s16( data0: svint16_t, data1: svint16_t, @@ -40389,7 +40551,7 @@ pub unsafe fn svst4_s16(pg: svbool_t, base: *mut i16, data: svint16x4_t) { #[cfg_attr(test, assert_instr(st4w))] pub unsafe fn svst4_s32(pg: svbool_t, base: *mut i32, data: svint32x4_t) { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st4.nxv4i32")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st4.nxv4i32.p0")] fn _svst4_s32( data0: svint32_t, data1: svint32_t, @@ -40419,7 +40581,7 @@ pub unsafe fn svst4_s32(pg: svbool_t, base: *mut i32, data: svint32x4_t) { #[cfg_attr(test, assert_instr(st4d))] pub unsafe fn svst4_s64(pg: svbool_t, base: *mut i64, data: svint64x4_t) { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st4.nxv2i64")] + #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.st4.nxv2i64.p0")] fn _svst4_s64( data0: svint64_t, data1: svint64_t, @@ -40618,7 +40780,10 @@ pub unsafe fn svst4_vnum_u64(pg: svbool_t, base: *mut u64, vnum: i64, data: svui #[cfg_attr(test, assert_instr(stnt1w))] pub unsafe fn svstnt1_f32(pg: svbool_t, base: *mut f32, data: svfloat32_t) { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.stnt1.nxv4f32")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.stnt1.nxv4f32.p0" + )] fn _svstnt1_f32(data: svfloat32_t, pg: svbool4_t, ptr: *mut f32); } _svstnt1_f32(data, pg.sve_into(), base) @@ -40635,7 +40800,10 @@ pub unsafe fn svstnt1_f32(pg: svbool_t, base: *mut f32, data: svfloat32_t) { #[cfg_attr(test, assert_instr(stnt1d))] pub unsafe fn svstnt1_f64(pg: svbool_t, base: *mut f64, data: svfloat64_t) { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.stnt1.nxv2f64")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.stnt1.nxv2f64.p0" + )] fn _svstnt1_f64(data: svfloat64_t, pg: svbool2_t, ptr: *mut f64); } _svstnt1_f64(data, pg.sve_into(), base) @@ -40652,7 +40820,10 @@ pub unsafe fn svstnt1_f64(pg: svbool_t, base: *mut f64, data: svfloat64_t) { #[cfg_attr(test, assert_instr(stnt1b))] pub unsafe fn svstnt1_s8(pg: svbool_t, base: *mut i8, data: svint8_t) { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.stnt1.nxv16i8")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.stnt1.nxv16i8.p0" + )] fn _svstnt1_s8(data: svint8_t, pg: svbool_t, ptr: *mut i8); } _svstnt1_s8(data, pg, base) @@ -40669,7 +40840,10 @@ pub unsafe fn svstnt1_s8(pg: svbool_t, base: *mut i8, data: svint8_t) { #[cfg_attr(test, assert_instr(stnt1h))] pub unsafe fn svstnt1_s16(pg: svbool_t, base: *mut i16, data: svint16_t) { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.stnt1.nxv8i16")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.stnt1.nxv8i16.p0" + )] fn _svstnt1_s16(data: svint16_t, pg: svbool8_t, ptr: *mut i16); } _svstnt1_s16(data, pg.sve_into(), base) @@ -40686,7 +40860,10 @@ pub unsafe fn svstnt1_s16(pg: svbool_t, base: *mut i16, data: svint16_t) { #[cfg_attr(test, assert_instr(stnt1w))] pub unsafe fn svstnt1_s32(pg: svbool_t, base: *mut i32, data: svint32_t) { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.stnt1.nxv4i32")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.stnt1.nxv4i32.p0" + )] fn _svstnt1_s32(data: svint32_t, pg: svbool4_t, ptr: *mut i32); } _svstnt1_s32(data, pg.sve_into(), base) @@ -40703,7 +40880,10 @@ pub unsafe fn svstnt1_s32(pg: svbool_t, base: *mut i32, data: svint32_t) { #[cfg_attr(test, assert_instr(stnt1d))] pub unsafe fn svstnt1_s64(pg: svbool_t, base: *mut i64, data: svint64_t) { unsafe extern "llvm-intrinsic" { - #[cfg_attr(target_arch = "aarch64", link_name = "llvm.aarch64.sve.stnt1.nxv2i64")] + #[cfg_attr( + target_arch = "aarch64", + link_name = "llvm.aarch64.sve.stnt1.nxv2i64.p0" + )] fn _svstnt1_s64(data: svint64_t, pg: svbool2_t, ptr: *mut i64); } _svstnt1_s64(data, pg.sve_into(), base) diff --git a/library/stdarch/crates/core_arch/src/aarch64/sve2/generated.rs b/library/stdarch/crates/core_arch/src/aarch64/sve2/generated.rs index 0dab039b6ecda..df151a93ff73a 100644 --- a/library/stdarch/crates/core_arch/src/aarch64/sve2/generated.rs +++ b/library/stdarch/crates/core_arch/src/aarch64/sve2/generated.rs @@ -5533,7 +5533,7 @@ pub unsafe fn svldnt1_gather_s64index_f64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldnt1.gather.index.nxv2f64" + link_name = "llvm.aarch64.sve.ldnt1.gather.index.nxv2f64.p0" )] fn _svldnt1_gather_s64index_f64( pg: svbool2_t, @@ -5561,7 +5561,7 @@ pub unsafe fn svldnt1_gather_s64index_s64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldnt1.gather.index.nxv2i64" + link_name = "llvm.aarch64.sve.ldnt1.gather.index.nxv2i64.p0" )] fn _svldnt1_gather_s64index_s64( pg: svbool2_t, @@ -5657,7 +5657,7 @@ pub unsafe fn svldnt1_gather_s64offset_f64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldnt1.gather.nxv2f64" + link_name = "llvm.aarch64.sve.ldnt1.gather.nxv2f64.p0" )] fn _svldnt1_gather_s64offset_f64( pg: svbool2_t, @@ -5685,7 +5685,7 @@ pub unsafe fn svldnt1_gather_s64offset_s64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldnt1.gather.nxv2i64" + link_name = "llvm.aarch64.sve.ldnt1.gather.nxv2i64.p0" )] fn _svldnt1_gather_s64offset_s64( pg: svbool2_t, @@ -5730,7 +5730,7 @@ pub unsafe fn svldnt1_gather_u32offset_f32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldnt1.gather.uxtw.nxv4f32" + link_name = "llvm.aarch64.sve.ldnt1.gather.uxtw.nxv4f32.p0" )] fn _svldnt1_gather_u32offset_f32( pg: svbool4_t, @@ -5758,7 +5758,7 @@ pub unsafe fn svldnt1_gather_u32offset_s32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldnt1.gather.uxtw.nxv4i32" + link_name = "llvm.aarch64.sve.ldnt1.gather.uxtw.nxv4i32.p0" )] fn _svldnt1_gather_u32offset_s32( pg: svbool4_t, @@ -6198,7 +6198,7 @@ pub unsafe fn svldnt1sb_gather_s64offset_s64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldnt1.gather.nxv2i8" + link_name = "llvm.aarch64.sve.ldnt1.gather.nxv2i8.p0" )] fn _svldnt1sb_gather_s64offset_s64( pg: svbool2_t, @@ -6230,7 +6230,7 @@ pub unsafe fn svldnt1sh_gather_s64offset_s64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldnt1.gather.nxv2i16" + link_name = "llvm.aarch64.sve.ldnt1.gather.nxv2i16.p0" )] fn _svldnt1sh_gather_s64offset_s64( pg: svbool2_t, @@ -6262,7 +6262,7 @@ pub unsafe fn svldnt1sw_gather_s64offset_s64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldnt1.gather.nxv2i32" + link_name = "llvm.aarch64.sve.ldnt1.gather.nxv2i32.p0" )] fn _svldnt1sw_gather_s64offset_s64( pg: svbool2_t, @@ -6345,7 +6345,7 @@ pub unsafe fn svldnt1sb_gather_u32offset_s32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldnt1.gather.uxtw.nxv4i8" + link_name = "llvm.aarch64.sve.ldnt1.gather.uxtw.nxv4i8.p0" )] fn _svldnt1sb_gather_u32offset_s32( pg: svbool4_t, @@ -6377,7 +6377,7 @@ pub unsafe fn svldnt1sh_gather_u32offset_s32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldnt1.gather.uxtw.nxv4i16" + link_name = "llvm.aarch64.sve.ldnt1.gather.uxtw.nxv4i16.p0" )] fn _svldnt1sh_gather_u32offset_s32( pg: svbool4_t, @@ -6940,7 +6940,7 @@ pub unsafe fn svldnt1sh_gather_s64index_s64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldnt1.gather.index.nxv2i16" + link_name = "llvm.aarch64.sve.ldnt1.gather.index.nxv2i16.p0" )] fn _svldnt1sh_gather_s64index_s64( pg: svbool2_t, @@ -6968,7 +6968,7 @@ pub unsafe fn svldnt1sw_gather_s64index_s64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldnt1.gather.index.nxv2i32" + link_name = "llvm.aarch64.sve.ldnt1.gather.index.nxv2i32.p0" )] fn _svldnt1sw_gather_s64index_s64( pg: svbool2_t, @@ -7257,7 +7257,7 @@ pub unsafe fn svldnt1ub_gather_s64offset_u64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldnt1.gather.nxv2i8" + link_name = "llvm.aarch64.sve.ldnt1.gather.nxv2i8.p0" )] fn _svldnt1ub_gather_s64offset_u64( pg: svbool2_t, @@ -7287,7 +7287,7 @@ pub unsafe fn svldnt1uh_gather_s64offset_u64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldnt1.gather.nxv2i16" + link_name = "llvm.aarch64.sve.ldnt1.gather.nxv2i16.p0" )] fn _svldnt1uh_gather_s64offset_u64( pg: svbool2_t, @@ -7317,7 +7317,7 @@ pub unsafe fn svldnt1uw_gather_s64offset_u64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldnt1.gather.nxv2i32" + link_name = "llvm.aarch64.sve.ldnt1.gather.nxv2i32.p0" )] fn _svldnt1uw_gather_s64offset_u64( pg: svbool2_t, @@ -7381,7 +7381,7 @@ pub unsafe fn svldnt1ub_gather_u32offset_u32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldnt1.gather.uxtw.nxv4i8" + link_name = "llvm.aarch64.sve.ldnt1.gather.uxtw.nxv4i8.p0" )] fn _svldnt1ub_gather_u32offset_u32( pg: svbool4_t, @@ -7412,7 +7412,7 @@ pub unsafe fn svldnt1uh_gather_u32offset_u32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldnt1.gather.uxtw.nxv4i16" + link_name = "llvm.aarch64.sve.ldnt1.gather.uxtw.nxv4i16.p0" )] fn _svldnt1uh_gather_u32offset_u32( pg: svbool4_t, @@ -7969,7 +7969,7 @@ pub unsafe fn svldnt1uh_gather_s64index_u64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldnt1.gather.index.nxv2i16" + link_name = "llvm.aarch64.sve.ldnt1.gather.index.nxv2i16.p0" )] fn _svldnt1uh_gather_s64index_u64( pg: svbool2_t, @@ -7999,7 +7999,7 @@ pub unsafe fn svldnt1uw_gather_s64index_u64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.ldnt1.gather.index.nxv2i32" + link_name = "llvm.aarch64.sve.ldnt1.gather.index.nxv2i32.p0" )] fn _svldnt1uw_gather_s64index_u64( pg: svbool2_t, @@ -19506,7 +19506,7 @@ pub unsafe fn svstnt1_scatter_s64index_f64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.stnt1.scatter.index.nxv2f64" + link_name = "llvm.aarch64.sve.stnt1.scatter.index.nxv2f64.p0" )] fn _svstnt1_scatter_s64index_f64( data: svfloat64_t, @@ -19536,7 +19536,7 @@ pub unsafe fn svstnt1_scatter_s64index_s64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.stnt1.scatter.index.nxv2i64" + link_name = "llvm.aarch64.sve.stnt1.scatter.index.nxv2i64.p0" )] fn _svstnt1_scatter_s64index_s64( data: svint64_t, @@ -19638,7 +19638,7 @@ pub unsafe fn svstnt1_scatter_s64offset_f64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.stnt1.scatter.nxv2f64" + link_name = "llvm.aarch64.sve.stnt1.scatter.nxv2f64.p0" )] fn _svstnt1_scatter_s64offset_f64( data: svfloat64_t, @@ -19668,7 +19668,7 @@ pub unsafe fn svstnt1_scatter_s64offset_s64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.stnt1.scatter.nxv2i64" + link_name = "llvm.aarch64.sve.stnt1.scatter.nxv2i64.p0" )] fn _svstnt1_scatter_s64offset_s64( data: svint64_t, @@ -19716,7 +19716,7 @@ pub unsafe fn svstnt1_scatter_u32offset_f32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.stnt1.scatter.uxtw.nxv4f32" + link_name = "llvm.aarch64.sve.stnt1.scatter.uxtw.nxv4f32.p0" )] fn _svstnt1_scatter_u32offset_f32( data: svfloat32_t, @@ -19746,7 +19746,7 @@ pub unsafe fn svstnt1_scatter_u32offset_s32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.stnt1.scatter.uxtw.nxv4i32" + link_name = "llvm.aarch64.sve.stnt1.scatter.uxtw.nxv4i32.p0" )] fn _svstnt1_scatter_u32offset_s32( data: svint32_t, @@ -20208,7 +20208,7 @@ pub unsafe fn svstnt1b_scatter_s64offset_s64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.stnt1.scatter.nxv2i8" + link_name = "llvm.aarch64.sve.stnt1.scatter.nxv2i8.p0" )] fn _svstnt1b_scatter_s64offset_s64( data: nxv2i8, @@ -20243,7 +20243,7 @@ pub unsafe fn svstnt1h_scatter_s64offset_s64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.stnt1.scatter.nxv2i16" + link_name = "llvm.aarch64.sve.stnt1.scatter.nxv2i16.p0" )] fn _svstnt1h_scatter_s64offset_s64( data: nxv2i16, @@ -20278,7 +20278,7 @@ pub unsafe fn svstnt1w_scatter_s64offset_s64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.stnt1.scatter.nxv2i32" + link_name = "llvm.aarch64.sve.stnt1.scatter.nxv2i32.p0" )] fn _svstnt1w_scatter_s64offset_s64( data: nxv2i32, @@ -20367,7 +20367,7 @@ pub unsafe fn svstnt1b_scatter_u32offset_s32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.stnt1.scatter.uxtw.nxv4i8" + link_name = "llvm.aarch64.sve.stnt1.scatter.uxtw.nxv4i8.p0" )] fn _svstnt1b_scatter_u32offset_s32( data: nxv4i8, @@ -20402,7 +20402,7 @@ pub unsafe fn svstnt1h_scatter_u32offset_s32( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.stnt1.scatter.uxtw.nxv4i16" + link_name = "llvm.aarch64.sve.stnt1.scatter.uxtw.nxv4i16.p0" )] fn _svstnt1h_scatter_u32offset_s32( data: nxv4i16, @@ -20996,7 +20996,7 @@ pub unsafe fn svstnt1h_scatter_s64index_s64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.stnt1.scatter.index.nxv2i16" + link_name = "llvm.aarch64.sve.stnt1.scatter.index.nxv2i16.p0" )] fn _svstnt1h_scatter_s64index_s64( data: nxv2i16, @@ -21031,7 +21031,7 @@ pub unsafe fn svstnt1w_scatter_s64index_s64( unsafe extern "llvm-intrinsic" { #[cfg_attr( target_arch = "aarch64", - link_name = "llvm.aarch64.sve.stnt1.scatter.index.nxv2i32" + link_name = "llvm.aarch64.sve.stnt1.scatter.index.nxv2i32.p0" )] fn _svstnt1w_scatter_s64index_s64( data: nxv2i32, diff --git a/library/stdarch/crates/core_arch/src/arm_shared/neon/generated.rs b/library/stdarch/crates/core_arch/src/arm_shared/neon/generated.rs index 15bc14228c959..4701ffe77e112 100644 --- a/library/stdarch/crates/core_arch/src/arm_shared/neon/generated.rs +++ b/library/stdarch/crates/core_arch/src/arm_shared/neon/generated.rs @@ -28544,7 +28544,7 @@ pub unsafe fn vld4_dup_f32(a: *const f32) -> float32x2x4_t { unsafe extern "llvm-intrinsic" { #[cfg_attr( any(target_arch = "aarch64", target_arch = "arm64ec"), - link_name = "llvm.aarch64.neon.ld4r.v2f32.p0.p0" + link_name = "llvm.aarch64.neon.ld4r.v2f32.p0" )] fn _vld4_dup_f32(ptr: *const f32) -> float32x2x4_t; } @@ -28563,7 +28563,7 @@ pub unsafe fn vld4q_dup_f32(a: *const f32) -> float32x4x4_t { unsafe extern "llvm-intrinsic" { #[cfg_attr( any(target_arch = "aarch64", target_arch = "arm64ec"), - link_name = "llvm.aarch64.neon.ld4r.v4f32.p0.p0" + link_name = "llvm.aarch64.neon.ld4r.v4f32.p0" )] fn _vld4q_dup_f32(ptr: *const f32) -> float32x4x4_t; } @@ -28582,7 +28582,7 @@ pub unsafe fn vld4_dup_s8(a: *const i8) -> int8x8x4_t { unsafe extern "llvm-intrinsic" { #[cfg_attr( any(target_arch = "aarch64", target_arch = "arm64ec"), - link_name = "llvm.aarch64.neon.ld4r.v8i8.p0.p0" + link_name = "llvm.aarch64.neon.ld4r.v8i8.p0" )] fn _vld4_dup_s8(ptr: *const i8) -> int8x8x4_t; } @@ -28601,7 +28601,7 @@ pub unsafe fn vld4q_dup_s8(a: *const i8) -> int8x16x4_t { unsafe extern "llvm-intrinsic" { #[cfg_attr( any(target_arch = "aarch64", target_arch = "arm64ec"), - link_name = "llvm.aarch64.neon.ld4r.v16i8.p0.p0" + link_name = "llvm.aarch64.neon.ld4r.v16i8.p0" )] fn _vld4q_dup_s8(ptr: *const i8) -> int8x16x4_t; } @@ -28620,7 +28620,7 @@ pub unsafe fn vld4_dup_s16(a: *const i16) -> int16x4x4_t { unsafe extern "llvm-intrinsic" { #[cfg_attr( any(target_arch = "aarch64", target_arch = "arm64ec"), - link_name = "llvm.aarch64.neon.ld4r.v4i16.p0.p0" + link_name = "llvm.aarch64.neon.ld4r.v4i16.p0" )] fn _vld4_dup_s16(ptr: *const i16) -> int16x4x4_t; } @@ -28639,7 +28639,7 @@ pub unsafe fn vld4q_dup_s16(a: *const i16) -> int16x8x4_t { unsafe extern "llvm-intrinsic" { #[cfg_attr( any(target_arch = "aarch64", target_arch = "arm64ec"), - link_name = "llvm.aarch64.neon.ld4r.v8i16.p0.p0" + link_name = "llvm.aarch64.neon.ld4r.v8i16.p0" )] fn _vld4q_dup_s16(ptr: *const i16) -> int16x8x4_t; } @@ -28658,7 +28658,7 @@ pub unsafe fn vld4_dup_s32(a: *const i32) -> int32x2x4_t { unsafe extern "llvm-intrinsic" { #[cfg_attr( any(target_arch = "aarch64", target_arch = "arm64ec"), - link_name = "llvm.aarch64.neon.ld4r.v2i32.p0.p0" + link_name = "llvm.aarch64.neon.ld4r.v2i32.p0" )] fn _vld4_dup_s32(ptr: *const i32) -> int32x2x4_t; } @@ -28677,7 +28677,7 @@ pub unsafe fn vld4q_dup_s32(a: *const i32) -> int32x4x4_t { unsafe extern "llvm-intrinsic" { #[cfg_attr( any(target_arch = "aarch64", target_arch = "arm64ec"), - link_name = "llvm.aarch64.neon.ld4r.v4i32.p0.p0" + link_name = "llvm.aarch64.neon.ld4r.v4i32.p0" )] fn _vld4q_dup_s32(ptr: *const i32) -> int32x4x4_t; } @@ -28696,7 +28696,7 @@ pub unsafe fn vld4_dup_s64(a: *const i64) -> int64x1x4_t { unsafe extern "llvm-intrinsic" { #[cfg_attr( any(target_arch = "aarch64", target_arch = "arm64ec"), - link_name = "llvm.aarch64.neon.ld4r.v1i64.p0.p0" + link_name = "llvm.aarch64.neon.ld4r.v1i64.p0" )] fn _vld4_dup_s64(ptr: *const i64) -> int64x1x4_t; } diff --git a/library/stdarch/crates/stdarch-gen-arm/spec/neon/arm_shared.spec.yml b/library/stdarch/crates/stdarch-gen-arm/spec/neon/arm_shared.spec.yml index de352e39304bc..d33a12230b656 100644 --- a/library/stdarch/crates/stdarch-gen-arm/spec/neon/arm_shared.spec.yml +++ b/library/stdarch/crates/stdarch-gen-arm/spec/neon/arm_shared.spec.yml @@ -11845,7 +11845,7 @@ intrinsics: arguments: - "ptr: {type[0]}" links: - - link: "llvm.aarch64.neon.ld4r.{neon_type[2]}.p0.p0" + - link: "llvm.aarch64.neon.ld4r.{neon_type[2]}.p0" arch: aarch64,arm64ec - FnCall: ["_vld4{neon_type[1].dup_nox}", ['a as _']] diff --git a/library/stdarch/crates/stdarch-gen-arm/spec/sve/aarch64.spec.yml b/library/stdarch/crates/stdarch-gen-arm/spec/sve/aarch64.spec.yml index 0b2d17d3b195f..24effec6ad6a3 100644 --- a/library/stdarch/crates/stdarch-gen-arm/spec/sve/aarch64.spec.yml +++ b/library/stdarch/crates/stdarch-gen-arm/spec/sve/aarch64.spec.yml @@ -1335,7 +1335,7 @@ intrinsics: assert_instr: ["ld1{size_literal}"] test: { load: 0 } compose: - - LLVMLink: { name: "ld1.{sve_type}" } + - LLVMLink: { name: "ld1.{sve_type}.p0" } - name: svld1_vnum[_{type}] attr: [*sve-unstable] @@ -1380,10 +1380,10 @@ intrinsics: - "{type[0]}" - default: LLVMLink: - name: "ld1.gather.{type_kind[0].su}xtw.index.{sve_type[1]}" + name: "ld1.gather.{type_kind[0].su}xtw.index.{sve_type[1]}.p0" doubleword: LLVMLink: - name: "ld1.gather.index.{sve_type[1]}" + name: "ld1.gather.index.{sve_type[1]}.p0" - name: svld1_gather_[{type[0]}]offset[_{type[1]}] attr: [*sve-unstable] @@ -1405,10 +1405,10 @@ intrinsics: - "{type[0]}" - default: LLVMLink: - name: "ld1.gather.{type_kind[0].su}xtw.{sve_type[1]}" + name: "ld1.gather.{type_kind[0].su}xtw.{sve_type[1]}.p0" doubleword: LLVMLink: - name: "ld1.gather.{sve_type[1]}" + name: "ld1.gather.{sve_type[1]}.p0" - name: svld1_gather[_{type[0]}base]_offset_{type[1]} attr: [*sve-unstable] @@ -1493,11 +1493,11 @@ intrinsics: - "{type[0]}" - default: LLVMLink: - name: "ld1.gather.{type_kind[0].su}xtw.index.{sve_type[1] as {type[2]}}" + name: "ld1.gather.{type_kind[0].su}xtw.index.{sve_type[1] as {type[2]}}.p0" return_type: "{sve_type[1] as {type[2]}}" doubleword: LLVMLink: - name: "ld1.gather.index.{sve_type[1] as {type[2]}}" + name: "ld1.gather.index.{sve_type[1] as {type[2]}}.p0" return_type: "{sve_type[1] as {type[2]}}" - FnCall: - crate::intrinsics::simd::simd_cast @@ -1523,11 +1523,11 @@ intrinsics: - "{type[0]}" - default: LLVMLink: - name: "ld1.gather.{type_kind[0].su}xtw.index.{sve_type[1] as {type[2]}}" + name: "ld1.gather.{type_kind[0].su}xtw.index.{sve_type[1] as {type[2]}}.p0" return_type: "{sve_type[1] as {type[2]}}" doubleword: LLVMLink: - name: "ld1.gather.index.{sve_type[1] as {type[2]}}" + name: "ld1.gather.index.{sve_type[1] as {type[2]}}.p0" return_type: "{sve_type[1] as {type[2]}}" - FnCall: - crate::intrinsics::simd::simd_cast @@ -1555,11 +1555,11 @@ intrinsics: - "{type[0]}" - default: LLVMLink: - name: "ld1.gather.{type_kind[0].su}xtw.{sve_type[1] as {type[2]}}" + name: "ld1.gather.{type_kind[0].su}xtw.{sve_type[1] as {type[2]}}.p0" return_type: "{sve_type[1] as {type[2]}}" doubleword: LLVMLink: - name: "ld1.gather.{sve_type[1] as {type[2]}}" + name: "ld1.gather.{sve_type[1] as {type[2]}}.p0" return_type: "{sve_type[1] as {type[2]}}" - FnCall: - crate::intrinsics::simd::simd_cast @@ -1585,11 +1585,11 @@ intrinsics: - "{type[0]}" - default: LLVMLink: - name: "ld1.gather.{type_kind[0].su}xtw.{sve_type[1] as {type[2]}}" + name: "ld1.gather.{type_kind[0].su}xtw.{sve_type[1] as {type[2]}}.p0" return_type: "{sve_type[1] as {type[2]}}" doubleword: LLVMLink: - name: "ld1.gather.{sve_type[1] as {type[2]}}" + name: "ld1.gather.{sve_type[1] as {type[2]}}.p0" return_type: "{sve_type[1] as {type[2]}}" - FnCall: - crate::intrinsics::simd::simd_cast @@ -1747,7 +1747,7 @@ intrinsics: assert_instr: ["ldnt1{size_literal}"] test: { load: 0 } compose: - - LLVMLink: { name: "ldnt1.{sve_type}" } + - LLVMLink: { name: "ldnt1.{sve_type}.p0" } - name: svldnt1_vnum[_{type}] attr: [*sve-unstable] @@ -1790,7 +1790,7 @@ intrinsics: test: { load: 1 } compose: - LLVMLink: - name: "ld1.{sve_type[0] as {type[1]}}" + name: "ld1.{sve_type[0] as {type[1]}}.p0" arguments: ["pg: {predicate[0]}", "base: *{type[1]}"] return_type: "{sve_type[0] as {type[1]}}" - FnCall: @@ -1814,7 +1814,7 @@ intrinsics: test: { load: 1 } compose: - LLVMLink: - name: "ld1.{sve_type[0] as {type[1]}}" + name: "ld1.{sve_type[0] as {type[1]}}.p0" arguments: ["pg: {predicate[0]}", "base: *{type[1]}"] return_type: "{sve_type[0] as {type[1]}}" - FnCall: @@ -1889,7 +1889,7 @@ intrinsics: assert_instr: ["ld2{size_literal}"] test: { load: 0 } compose: - - LLVMLink: { name: "ld2.sret.{sve_type}" } + - LLVMLink: { name: "ld2.sret.{sve_type}.p0" } - name: svld2_vnum[_{type}] attr: [*sve-unstable] @@ -1927,7 +1927,7 @@ intrinsics: assert_instr: ["ld3{size_literal}"] test: { load: 0 } compose: - - LLVMLink: { name: "ld3.sret.{sve_type}" } + - LLVMLink: { name: "ld3.sret.{sve_type}.p0" } - name: svld3_vnum[_{type}] attr: [*sve-unstable] @@ -1965,7 +1965,7 @@ intrinsics: assert_instr: ["ld4{size_literal}"] test: { load: 0 } compose: - - LLVMLink: { name: "ld4.sret.{sve_type}" } + - LLVMLink: { name: "ld4.sret.{sve_type}.p0" } - name: svld4_vnum[_{type}] attr: [*sve-unstable] @@ -2003,7 +2003,7 @@ intrinsics: assert_instr: ["ld1rq{size_literal}"] test: { load: 0 } compose: - - LLVMLink: { name: "ld1rq.{sve_type}" } + - LLVMLink: { name: "ld1rq.{sve_type}.p0" } - name: svld1ro[_{type}] attr: [*sve-unstable] @@ -2019,7 +2019,7 @@ intrinsics: assert_instr: ["ld1ro{size_literal}"] test: { load: 0 } compose: - - LLVMLink: { name: "ld1ro.{sve_type}" } + - LLVMLink: { name: "ld1ro.{sve_type}.p0" } - name: svldnf1[_{type}] attr: [*sve-unstable] @@ -2035,7 +2035,7 @@ intrinsics: assert_instr: ["ldnf1{size_literal}"] test: { load: 0 } compose: - - LLVMLink: { name: "ldnf1.{sve_type}" } + - LLVMLink: { name: "ldnf1.{sve_type}.p0" } - name: svldnf1_vnum[_{type}] attr: [*sve-unstable] @@ -2079,7 +2079,7 @@ intrinsics: test: { load: 1 } compose: - LLVMLink: - name: "ldnf1.{sve_type[0] as {type[1]}}" + name: "ldnf1.{sve_type[0] as {type[1]}}.p0" arguments: ["pg: {predicate[0]}", "base: *{type[1]}"] return_type: "{sve_type[0] as {type[1]}}" - FnCall: @@ -2104,7 +2104,7 @@ intrinsics: test: { load: 1 } compose: - LLVMLink: - name: "ldnf1.{sve_type[0] as {type[1]}}" + name: "ldnf1.{sve_type[0] as {type[1]}}.p0" arguments: ["pg: {predicate[0]}", "base: *{type[1]}"] return_type: "{sve_type[0] as {type[1]}}" - FnCall: @@ -2182,7 +2182,7 @@ intrinsics: assert_instr: ["ldff1{size_literal}"] test: { load: 0 } compose: - - LLVMLink: { name: "ldff1.{sve_type}" } + - LLVMLink: { name: "ldff1.{sve_type}.p0" } - name: svldff1_vnum[_{type}] attr: [*sve-unstable] @@ -2226,7 +2226,7 @@ intrinsics: test: { load: 1 } compose: - LLVMLink: - name: "ldff1.{sve_type[0] as {type[1]}}" + name: "ldff1.{sve_type[0] as {type[1]}}.p0" arguments: ["pg: {predicate[0]}", "base: *{type[1]}"] return_type: "{sve_type[0] as {type[1]}}" - FnCall: @@ -2251,7 +2251,7 @@ intrinsics: test: { load: 1 } compose: - LLVMLink: - name: "ldff1.{sve_type[0] as {type[1]}}" + name: "ldff1.{sve_type[0] as {type[1]}}.p0" arguments: ["pg: {predicate[0]}", "base: *{type[1]}"] return_type: "{sve_type[0] as {type[1]}}" - FnCall: @@ -2336,10 +2336,10 @@ intrinsics: - "{type[0]}" - default: LLVMLink: - name: "ldff1.gather.{type_kind[0].su}xtw.index.{sve_type[1]}" + name: "ldff1.gather.{type_kind[0].su}xtw.index.{sve_type[1]}.p0" doubleword: LLVMLink: - name: "ldff1.gather.index.{sve_type[1]}" + name: "ldff1.gather.index.{sve_type[1]}.p0" - name: svldff1_gather_[{type[0]}]offset[_{type[1]}] attr: [*sve-unstable] @@ -2362,10 +2362,10 @@ intrinsics: - "{type[0]}" - default: LLVMLink: - name: "ldff1.gather.{type_kind[0].su}xtw.{sve_type[1]}" + name: "ldff1.gather.{type_kind[0].su}xtw.{sve_type[1]}.p0" doubleword: LLVMLink: - name: "ldff1.gather.{sve_type[1]}" + name: "ldff1.gather.{sve_type[1]}.p0" - name: svldff1_gather[_{type[0]}base]_offset_{type[1]} attr: [*sve-unstable] @@ -2454,11 +2454,11 @@ intrinsics: - "{type[0]}" - default: LLVMLink: - name: "ldff1.gather.{type_kind[0].su}xtw.index.{sve_type[1] as {type[2]}}" + name: "ldff1.gather.{type_kind[0].su}xtw.index.{sve_type[1] as {type[2]}}.p0" return_type: "{sve_type[1] as {type[2]}}" doubleword: LLVMLink: - name: "ldff1.gather.index.{sve_type[1] as {type[2]}}" + name: "ldff1.gather.index.{sve_type[1] as {type[2]}}.p0" return_type: "{sve_type[1] as {type[2]}}" - FnCall: - crate::intrinsics::simd::simd_cast @@ -2485,11 +2485,11 @@ intrinsics: - "{type[0]}" - default: LLVMLink: - name: "ldff1.gather.{type_kind[0].su}xtw.index.{sve_type[1] as {type[2]}}" + name: "ldff1.gather.{type_kind[0].su}xtw.index.{sve_type[1] as {type[2]}}.p0" return_type: "{sve_type[1] as {type[2]}}" doubleword: LLVMLink: - name: "ldff1.gather.index.{sve_type[1] as {type[2]}}" + name: "ldff1.gather.index.{sve_type[1] as {type[2]}}.p0" return_type: "{sve_type[1] as {type[2]}}" - FnCall: - crate::intrinsics::simd::simd_cast @@ -2518,11 +2518,11 @@ intrinsics: - "{type[0]}" - default: LLVMLink: - name: "ldff1.gather.{type_kind[0].su}xtw.{sve_type[1] as {type[2]}}" + name: "ldff1.gather.{type_kind[0].su}xtw.{sve_type[1] as {type[2]}}.p0" return_type: "{sve_type[1] as {type[2]}}" doubleword: LLVMLink: - name: "ldff1.gather.{sve_type[1] as {type[2]}}" + name: "ldff1.gather.{sve_type[1] as {type[2]}}.p0" return_type: "{sve_type[1] as {type[2]}}" - FnCall: - crate::intrinsics::simd::simd_cast @@ -2549,11 +2549,11 @@ intrinsics: - "{type[0]}" - default: LLVMLink: - name: "ldff1.gather.{type_kind[0].su}xtw.{sve_type[1] as {type[2]}}" + name: "ldff1.gather.{type_kind[0].su}xtw.{sve_type[1] as {type[2]}}.p0" return_type: "{sve_type[1] as {type[2]}}" doubleword: LLVMLink: - name: "ldff1.gather.{sve_type[1] as {type[2]}}" + name: "ldff1.gather.{sve_type[1] as {type[2]}}.p0" return_type: "{sve_type[1] as {type[2]}}" - FnCall: - crate::intrinsics::simd::simd_cast @@ -2936,7 +2936,7 @@ intrinsics: test: { store: 0 } compose: - LLVMLink: - name: "st1.{sve_type}" + name: "st1.{sve_type}.p0" arguments: - "data: {sve_type}" - "pg: {predicate}" @@ -2965,7 +2965,7 @@ intrinsics: - "{type[0]}" - default: LLVMLink: - name: "st1.scatter.{type_kind[0].su}xtw.index.{sve_type[1]}" + name: "st1.scatter.{type_kind[0].su}xtw.index.{sve_type[1]}.p0" arguments: - "data: {sve_type[1]}" - "pg: {predicate[0]}" @@ -2973,7 +2973,7 @@ intrinsics: - "indices: {sve_type[0]}" doubleword: LLVMLink: - name: "st1.scatter.index.{sve_type[1]}" + name: "st1.scatter.index.{sve_type[1]}.p0" arguments: - "data: {sve_type[1]}" - "pg: {predicate[0]}" @@ -3003,7 +3003,7 @@ intrinsics: - "{type[0]}" - default: LLVMLink: - name: "st1.scatter.{type_kind[0].su}xtw.{sve_type[1]}" + name: "st1.scatter.{type_kind[0].su}xtw.{sve_type[1]}.p0" arguments: - "data: {sve_type[1]}" - "pg: {predicate[0]}" @@ -3011,7 +3011,7 @@ intrinsics: - "offsets: {sve_type[0]}" doubleword: LLVMLink: - name: "st1.scatter.{sve_type[1]}" + name: "st1.scatter.{sve_type[1]}.p0" arguments: - "data: {sve_type[1]}" - "pg: {predicate[0]}" @@ -3120,7 +3120,7 @@ intrinsics: - "{type[0]}" - default: LLVMLink: - name: "st1.scatter.{type_kind[0].su}xtw.index.{sve_type[1] as {type[2]}}" + name: "st1.scatter.{type_kind[0].su}xtw.index.{sve_type[1] as {type[2]}}.p0" arguments: - "data: {sve_type[1] as {type[2]}}" - "pg: {predicate[0]}" @@ -3128,7 +3128,7 @@ intrinsics: - "indices: {sve_type[0]}" doubleword: LLVMLink: - name: "st1.scatter.index.{sve_type[1] as {type[2]}}" + name: "st1.scatter.index.{sve_type[1] as {type[2]}}.p0" arguments: - "data: {sve_type[1] as {type[2]}}" - "pg: {predicate[0]}" @@ -3162,7 +3162,7 @@ intrinsics: - "{type[0]}" - default: LLVMLink: - name: "st1.scatter.{type_kind[0].su}xtw.{sve_type[1] as {type[2]}}" + name: "st1.scatter.{type_kind[0].su}xtw.{sve_type[1] as {type[2]}}.p0" arguments: - "data: {sve_type[1] as {type[2]}}" - "pg: {predicate[0]}" @@ -3170,7 +3170,7 @@ intrinsics: - "offsets: {sve_type[0]}" doubleword: LLVMLink: - name: "st1.scatter.{sve_type[1] as {type[2]}}" + name: "st1.scatter.{sve_type[1] as {type[2]}}.p0" arguments: - "data: {sve_type[1] as {type[2]}}" - "pg: {predicate[0]}" @@ -3273,7 +3273,7 @@ intrinsics: test: { store: 0 } compose: - LLVMLink: - name: "stnt1.{sve_type}" + name: "stnt1.{sve_type}.p0" arguments: - "data: {sve_type}" - "pg: {predicate}" @@ -3325,7 +3325,7 @@ intrinsics: test: { store: 1 } compose: - LLVMLink: - name: "st1.{sve_type[0] as {type[1]}}" + name: "st1.{sve_type[0] as {type[1]}}.p0" arguments: - "data: {sve_type[0] as {type[1]}}" - "pg: {predicate[0]}" @@ -3405,7 +3405,7 @@ intrinsics: test: { store: 0 } compose: - LLVMLink: - name: "st2.{sve_type}" + name: "st2.{sve_type}.p0" arguments: - "data0: {sve_type}" - "data1: {sve_type}" @@ -3458,7 +3458,7 @@ intrinsics: test: { store: 0 } compose: - LLVMLink: - name: "st3.{sve_type}" + name: "st3.{sve_type}.p0" arguments: - "data0: {sve_type}" - "data1: {sve_type}" @@ -3513,7 +3513,7 @@ intrinsics: test: { store: 0 } compose: - LLVMLink: - name: "st4.{sve_type}" + name: "st4.{sve_type}.p0" arguments: - "data0: {sve_type}" - "data1: {sve_type}" @@ -4028,7 +4028,7 @@ intrinsics: test: { load: 0 } compose: - LLVMLink: - name: "prf.{sve_type}" + name: "prf.{sve_type}.p0" arguments: ["pg: {predicate}", "base: *crate::ffi::c_void", "op: svprfop"] - FnCall: @@ -4099,7 +4099,7 @@ intrinsics: - "{type[0]}" - default: LLVMLink: - name: "prf{size_literal[1]}.gather.{type_kind[0].su}xtw.index.{sve_type[0]}" + name: "prf{size_literal[1]}.gather.{type_kind[0].su}xtw.index.p0.{sve_type[0]}" arguments: - "pg: {predicate[0]}" - "base: *crate::ffi::c_void" @@ -4107,7 +4107,7 @@ intrinsics: - "op: svprfop" doubleword: LLVMLink: - name: "prf{size_literal[1]}.gather.index.{sve_type[0]}" + name: "prf{size_literal[1]}.gather.index.p0.{sve_type[0]}" arguments: - "pg: {predicate[0]}" - "base: *crate::ffi::c_void" diff --git a/library/stdarch/crates/stdarch-gen-arm/spec/sve2/aarch64.spec.yml b/library/stdarch/crates/stdarch-gen-arm/spec/sve2/aarch64.spec.yml index 269d7ff0eacbb..46379d470631e 100644 --- a/library/stdarch/crates/stdarch-gen-arm/spec/sve2/aarch64.spec.yml +++ b/library/stdarch/crates/stdarch-gen-arm/spec/sve2/aarch64.spec.yml @@ -804,7 +804,7 @@ intrinsics: assert_instr: ["ldnt1{size_literal[0]}"] test: { load: 1 } compose: - - LLVMLink: { name: "ldnt1.gather.index.{sve_type[1]}" } + - LLVMLink: { name: "ldnt1.gather.index.{sve_type[1]}.p0" } - name: svldnt1_gather_[{type[0]}]offset[_{type[1]}] attr: [*sve-unstable] @@ -826,9 +826,9 @@ intrinsics: - MatchSize: - "{type[0]}" - default: - LLVMLink: { name: "ldnt1.gather.uxtw.{sve_type[1]}" } + LLVMLink: { name: "ldnt1.gather.uxtw.{sve_type[1]}.p0" } doubleword: - LLVMLink: { name: "ldnt1.gather.{sve_type[1]}" } + LLVMLink: { name: "ldnt1.gather.{sve_type[1]}.p0" } - name: svldnt1_gather[_{type[0]}base]_offset_{type[1]} attr: [*sve-unstable] @@ -913,7 +913,7 @@ intrinsics: test: { load: 2 } compose: - LLVMLink: - name: "ldnt1.gather.index.{sve_type[1] as {type[2]}}" + name: "ldnt1.gather.index.{sve_type[1] as {type[2]}}.p0" return_type: "{sve_type[1] as {type[2]}}" - FnCall: - "crate::intrinsics::simd::simd_cast" @@ -936,7 +936,7 @@ intrinsics: test: { load: 2 } compose: - LLVMLink: - name: "ldnt1.gather.index.{sve_type[1] as {type[2]}}" + name: "ldnt1.gather.index.{sve_type[1] as {type[2]}}.p0" return_type: "{sve_type[1] as {type[2]}}" - FnCall: - "crate::intrinsics::simd::simd_cast" @@ -965,11 +965,11 @@ intrinsics: - "{type[0]}" - default: LLVMLink: - name: "ldnt1.gather.uxtw.{sve_type[1] as {type[2]}}" + name: "ldnt1.gather.uxtw.{sve_type[1] as {type[2]}}.p0" return_type: "{sve_type[1] as {type[2]}}" doubleword: LLVMLink: - name: "ldnt1.gather.{sve_type[1] as {type[2]}}" + name: "ldnt1.gather.{sve_type[1] as {type[2]}}.p0" return_type: "{sve_type[1] as {type[2]}}" - FnCall: - "crate::intrinsics::simd::simd_cast" @@ -996,11 +996,11 @@ intrinsics: - "{type[0]}" - default: LLVMLink: - name: "ldnt1.gather.uxtw.{sve_type[1] as {type[2]}}" + name: "ldnt1.gather.uxtw.{sve_type[1] as {type[2]}}.p0" return_type: "{sve_type[1] as {type[2]}}" doubleword: LLVMLink: - name: "ldnt1.gather.{sve_type[1] as {type[2]}}" + name: "ldnt1.gather.{sve_type[1] as {type[2]}}.p0" return_type: "{sve_type[1] as {type[2]}}" - FnCall: - "crate::intrinsics::simd::simd_cast" @@ -1169,7 +1169,7 @@ intrinsics: test: { store: 1 } compose: - LLVMLink: - name: "stnt1.scatter.index.{sve_type[1]}" + name: "stnt1.scatter.index.{sve_type[1]}.p0" arguments: - "data: {sve_type[1]}" - "pg: {predicate[0]}" @@ -1200,7 +1200,7 @@ intrinsics: - "{type[0]}" - default: LLVMLink: - name: "stnt1.scatter.uxtw.{sve_type[1]}" + name: "stnt1.scatter.uxtw.{sve_type[1]}.p0" arguments: - "data: {sve_type[1]}" - "pg: {predicate[0]}" @@ -1208,7 +1208,7 @@ intrinsics: - "offsets: {sve_type[0]}" doubleword: LLVMLink: - name: "stnt1.scatter.{sve_type[1]}" + name: "stnt1.scatter.{sve_type[1]}.p0" arguments: - "data: {sve_type[1]}" - "pg: {predicate[0]}" @@ -1316,7 +1316,7 @@ intrinsics: test: { store: 2 } compose: - LLVMLink: - name: "stnt1.scatter.index.{sve_type[1] as {type[2]}}" + name: "stnt1.scatter.index.{sve_type[1] as {type[2]}}.p0" arguments: - "data: {sve_type[1] as {type[2]}}" - "pg: {predicate[0]}" @@ -1351,7 +1351,7 @@ intrinsics: - "{type[0]}" - default: LLVMLink: - name: "stnt1.scatter.uxtw.{sve_type[1] as {type[2]}}" + name: "stnt1.scatter.uxtw.{sve_type[1] as {type[2]}}.p0" arguments: - "data: {sve_type[1] as {type[2]}}" - "pg: {predicate[0]}" @@ -1359,7 +1359,7 @@ intrinsics: - "offsets: {sve_type[0]}" doubleword: LLVMLink: - name: "stnt1.scatter.{sve_type[1] as {type[2]}}" + name: "stnt1.scatter.{sve_type[1] as {type[2]}}.p0" arguments: - "data: {sve_type[1] as {type[2]}}" - "pg: {predicate[0]}" From ad0911f49ea2d87b7c6884d66b136ff59d0834f2 Mon Sep 17 00:00:00 2001 From: Folkert de Vries Date: Wed, 28 Oct 2026 15:11:07 +0100 Subject: [PATCH 21/43] fix shift immediate widths This matches LLVM ``` class SRLI_B_DESC : MSA_BIT_SPLAT_DESC_BASE<"srli.b", srl, vsplati8_uimm3, MSA128BOpnd>; class SRLI_H_DESC : MSA_BIT_SPLAT_DESC_BASE<"srli.h", srl, vsplati16_uimm4, MSA128HOpnd>; class SRLI_W_DESC : MSA_BIT_SPLAT_DESC_BASE<"srli.w", srl, vsplati32_uimm5, MSA128WOpnd>; class SRLI_D_DESC : MSA_BIT_SPLAT_DESC_BASE<"srli.d", srl, vsplati64_uimm6, MSA128DOpnd>; ``` I suspect the old code mistakenly matched these variants ``` class SRLRI_B_DESC : MSA_BIT_X_DESC_BASE<"srlri.b", int_mips_srlri_b, uimm3, timmZExt3, MSA128BOpnd>; class SRLRI_H_DESC : MSA_BIT_X_DESC_BASE<"srlri.h", int_mips_srlri_h, uimm4, timmZExt4, MSA128HOpnd>; class SRLRI_W_DESC : MSA_BIT_X_DESC_BASE<"srlri.w", int_mips_srlri_w, uimm5, timmZExt5, MSA128WOpnd>; class SRLRI_D_DESC : MSA_BIT_X_DESC_BASE<"srlri.d", int_mips_srlri_d, uimm6, timmZExt6, MSA128DOpnd>; ``` --- .../stdarch/crates/core_arch/src/mips/msa.rs | 64 +++++++++---------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/library/stdarch/crates/core_arch/src/mips/msa.rs b/library/stdarch/crates/core_arch/src/mips/msa.rs index 62818aece1b03..45bcbeda2f20c 100644 --- a/library/stdarch/crates/core_arch/src/mips/msa.rs +++ b/library/stdarch/crates/core_arch/src/mips/msa.rs @@ -7855,11 +7855,11 @@ pub unsafe fn __msa_sll_d(a: v2i64, b: v2i64) -> v2i64 { /// #[inline] #[target_feature(enable = "msa")] -#[cfg_attr(test, assert_instr(slli.b, IMM4 = 0b1111))] +#[cfg_attr(test, assert_instr(slli.b, IMM3 = 0b111))] #[unstable(feature = "stdarch_mips", issue = "111198")] -pub unsafe fn __msa_slli_b(a: v16i8) -> v16i8 { - static_assert_uimm_bits!(IMM4, 4); - msa_slli_b(a, IMM4) +pub unsafe fn __msa_slli_b(a: v16i8) -> v16i8 { + static_assert_uimm_bits!(IMM3, 3); + msa_slli_b(a, IMM3) } /// Immediate Shift Left @@ -7870,11 +7870,11 @@ pub unsafe fn __msa_slli_b(a: v16i8) -> v16i8 { /// #[inline] #[target_feature(enable = "msa")] -#[cfg_attr(test, assert_instr(slli.h, IMM3 = 0b111))] +#[cfg_attr(test, assert_instr(slli.h, IMM4 = 0b1111))] #[unstable(feature = "stdarch_mips", issue = "111198")] -pub unsafe fn __msa_slli_h(a: v8i16) -> v8i16 { - static_assert_uimm_bits!(IMM3, 3); - msa_slli_h(a, IMM3) +pub unsafe fn __msa_slli_h(a: v8i16) -> v8i16 { + static_assert_uimm_bits!(IMM4, 4); + msa_slli_h(a, IMM4) } /// Immediate Shift Left @@ -7885,11 +7885,11 @@ pub unsafe fn __msa_slli_h(a: v8i16) -> v8i16 { /// #[inline] #[target_feature(enable = "msa")] -#[cfg_attr(test, assert_instr(slli.w, IMM2 = 0b11))] +#[cfg_attr(test, assert_instr(slli.w, IMM5 = 0b1_1111))] #[unstable(feature = "stdarch_mips", issue = "111198")] -pub unsafe fn __msa_slli_w(a: v4i32) -> v4i32 { - static_assert_uimm_bits!(IMM2, 2); - msa_slli_w(a, IMM2) +pub unsafe fn __msa_slli_w(a: v4i32) -> v4i32 { + static_assert_uimm_bits!(IMM5, 5); + msa_slli_w(a, IMM5) } /// Immediate Shift Left @@ -7900,11 +7900,11 @@ pub unsafe fn __msa_slli_w(a: v4i32) -> v4i32 { /// #[inline] #[target_feature(enable = "msa")] -#[cfg_attr(test, assert_instr(slli.d, IMM1 = 0b1))] +#[cfg_attr(test, assert_instr(slli.d, IMM6 = 0b11_1111))] #[unstable(feature = "stdarch_mips", issue = "111198")] -pub unsafe fn __msa_slli_d(a: v2i64) -> v2i64 { - static_assert_uimm_bits!(IMM1, 1); - msa_slli_d(a, IMM1) +pub unsafe fn __msa_slli_d(a: v2i64) -> v2i64 { + static_assert_uimm_bits!(IMM6, 6); + msa_slli_d(a, IMM6) } /// GPR Element Splat @@ -8339,11 +8339,11 @@ pub unsafe fn __msa_srl_d(a: v2i64, b: v2i64) -> v2i64 { /// #[inline] #[target_feature(enable = "msa")] -#[cfg_attr(test, assert_instr(srli.b, IMM4 = 0b1111))] +#[cfg_attr(test, assert_instr(srli.b, IMM3 = 0b111))] #[unstable(feature = "stdarch_mips", issue = "111198")] -pub unsafe fn __msa_srli_b(a: v16i8) -> v16i8 { - static_assert_uimm_bits!(IMM4, 4); - msa_srli_b(a, IMM4) +pub unsafe fn __msa_srli_b(a: v16i8) -> v16i8 { + static_assert_uimm_bits!(IMM3, 3); + msa_srli_b(a, IMM3) } /// Immediate Shift Right Logical @@ -8354,11 +8354,11 @@ pub unsafe fn __msa_srli_b(a: v16i8) -> v16i8 { /// #[inline] #[target_feature(enable = "msa")] -#[cfg_attr(test, assert_instr(srli.h, IMM3 = 0b111))] +#[cfg_attr(test, assert_instr(srli.h, IMM4 = 0b1111))] #[unstable(feature = "stdarch_mips", issue = "111198")] -pub unsafe fn __msa_srli_h(a: v8i16) -> v8i16 { - static_assert_uimm_bits!(IMM3, 3); - msa_srli_h(a, IMM3) +pub unsafe fn __msa_srli_h(a: v8i16) -> v8i16 { + static_assert_uimm_bits!(IMM4, 4); + msa_srli_h(a, IMM4) } /// Immediate Shift Right Logical @@ -8369,11 +8369,11 @@ pub unsafe fn __msa_srli_h(a: v8i16) -> v8i16 { /// #[inline] #[target_feature(enable = "msa")] -#[cfg_attr(test, assert_instr(srli.w, IMM2 = 0b11))] +#[cfg_attr(test, assert_instr(srli.w, IMM5 = 0b1_1111))] #[unstable(feature = "stdarch_mips", issue = "111198")] -pub unsafe fn __msa_srli_w(a: v4i32) -> v4i32 { - static_assert_uimm_bits!(IMM2, 2); - msa_srli_w(a, IMM2) +pub unsafe fn __msa_srli_w(a: v4i32) -> v4i32 { + static_assert_uimm_bits!(IMM5, 5); + msa_srli_w(a, IMM5) } /// Immediate Shift Right Logical @@ -8384,11 +8384,11 @@ pub unsafe fn __msa_srli_w(a: v4i32) -> v4i32 { /// #[inline] #[target_feature(enable = "msa")] -#[cfg_attr(test, assert_instr(srli.d, IMM1 = 0b1))] +#[cfg_attr(test, assert_instr(srli.d, IMM6 = 0b11_1111))] #[unstable(feature = "stdarch_mips", issue = "111198")] -pub unsafe fn __msa_srli_d(a: v2i64) -> v2i64 { - static_assert_uimm_bits!(IMM1, 1); - msa_srli_d(a, IMM1) +pub unsafe fn __msa_srli_d(a: v2i64) -> v2i64 { + static_assert_uimm_bits!(IMM6, 6); + msa_srli_d(a, IMM6) } /// Vector Shift Right Logical Rounded From b0c9d3f39149ebc1bc1ca7817140cbd05b75c2a4 Mon Sep 17 00:00:00 2001 From: Folkert de Vries Date: Wed, 28 Oct 2026 15:17:04 +0100 Subject: [PATCH 22/43] use better test inputs the all-bits-set input is optimized in a way that defeats the tests, so use a non-trivial input --- library/stdarch/crates/core_arch/src/mips/msa.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/library/stdarch/crates/core_arch/src/mips/msa.rs b/library/stdarch/crates/core_arch/src/mips/msa.rs index 45bcbeda2f20c..61163fd422eb5 100644 --- a/library/stdarch/crates/core_arch/src/mips/msa.rs +++ b/library/stdarch/crates/core_arch/src/mips/msa.rs @@ -2248,7 +2248,7 @@ pub unsafe fn __msa_bmnz_v(a: v16u8, b: v16u8, c: v16u8) -> v16u8 { /// #[inline] #[target_feature(enable = "msa")] -#[cfg_attr(test, assert_instr(bmnzi.b, IMM8 = 0b11111111))] +#[cfg_attr(test, assert_instr(bmnzi.b, IMM8 = 0b1011_1111))] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_bmnzi_b(a: v16u8, b: v16u8) -> v16u8 { static_assert_uimm_bits!(IMM8, 8); @@ -2278,7 +2278,7 @@ pub unsafe fn __msa_bmz_v(a: v16u8, b: v16u8, c: v16u8) -> v16u8 { /// #[inline] #[target_feature(enable = "msa")] -#[cfg_attr(test, assert_instr(bmzi.b, IMM8 = 0b11111111))] +#[cfg_attr(test, assert_instr(bmzi.b, IMM8 = 0x5a))] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_bmzi_b(a: v16u8, b: v16u8) -> v16u8 { static_assert_uimm_bits!(IMM8, 8); @@ -7253,7 +7253,7 @@ pub unsafe fn __msa_nor_v(a: v16u8, b: v16u8) -> v16u8 { /// #[inline] #[target_feature(enable = "msa")] -#[cfg_attr(test, assert_instr(nori.b, IMM8 = 0b11111111))] +#[cfg_attr(test, assert_instr(nori.b, IMM8 = 0b1011_1111))] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_nori_b(a: v16u8) -> v16u8 { static_assert_uimm_bits!(IMM8, 8); @@ -7284,7 +7284,7 @@ pub unsafe fn __msa_or_v(a: v16u8, b: v16u8) -> v16u8 { /// #[inline] #[target_feature(enable = "msa")] -#[cfg_attr(test, assert_instr(ori.b, IMM8 = 0b11111111))] +#[cfg_attr(test, assert_instr(ori.b, IMM8 = 0b1011_1111))] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_ori_b(a: v16u8) -> v16u8 { static_assert_uimm_bits!(IMM8, 8); @@ -7740,7 +7740,7 @@ pub unsafe fn __msa_sldi_b(a: v16i8, b: v16i8) -> v16i8 { /// #[inline] #[target_feature(enable = "msa")] -#[cfg_attr(test, assert_instr(sldi.h, IMM3 = 0b111))] +#[cfg_attr(test, assert_instr(sldi.h, IMM3 = 0b101))] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_sldi_h(a: v8i16, b: v8i16) -> v8i16 { static_assert_uimm_bits!(IMM3, 3); From fa502db52b6ab086d944029bb05e56ae81a0095f Mon Sep 17 00:00:00 2001 From: Folkert de Vries Date: Wed, 28 Oct 2026 15:19:00 +0100 Subject: [PATCH 23/43] use better inputs that don't get folded away --- library/stdarch/crates/core_arch/src/mips/msa.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/library/stdarch/crates/core_arch/src/mips/msa.rs b/library/stdarch/crates/core_arch/src/mips/msa.rs index 61163fd422eb5..0974d82b8c2a3 100644 --- a/library/stdarch/crates/core_arch/src/mips/msa.rs +++ b/library/stdarch/crates/core_arch/src/mips/msa.rs @@ -2053,7 +2053,7 @@ pub unsafe fn __msa_binsl_d(a: v2u64, b: v2u64, c: v2u64) -> v2u64 { /// #[inline] #[target_feature(enable = "msa")] -#[cfg_attr(test, assert_instr(binsli.b, IMM3 = 0b111))] +#[cfg_attr(test, assert_instr(binsli.b, IMM3 = 0b101))] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_binsli_b(a: v16u8, b: v16u8) -> v16u8 { static_assert_uimm_bits!(IMM3, 3); @@ -2068,7 +2068,7 @@ pub unsafe fn __msa_binsli_b(a: v16u8, b: v16u8) -> v16u8 { /// #[inline] #[target_feature(enable = "msa")] -#[cfg_attr(test, assert_instr(binsli.h, IMM4 = 0b1111))] +#[cfg_attr(test, assert_instr(binsli.h, IMM4 = 0b1011))] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_binsli_h(a: v8u16, b: v8u16) -> v8u16 { static_assert_uimm_bits!(IMM4, 4); @@ -2083,7 +2083,7 @@ pub unsafe fn __msa_binsli_h(a: v8u16, b: v8u16) -> v8u16 { /// #[inline] #[target_feature(enable = "msa")] -#[cfg_attr(test, assert_instr(binsli.w, IMM5 = 0b11111))] +#[cfg_attr(test, assert_instr(binsli.w, IMM5 = 0b10111))] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_binsli_w(a: v4u32, b: v4u32) -> v4u32 { static_assert_uimm_bits!(IMM5, 5); @@ -2098,7 +2098,7 @@ pub unsafe fn __msa_binsli_w(a: v4u32, b: v4u32) -> v4u32 { /// #[inline] #[target_feature(enable = "msa")] -#[cfg_attr(test, assert_instr(binsli.d, IMM6 = 0b111111))] +#[cfg_attr(test, assert_instr(binsli.d, IMM6 = 0b101111))] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_binsli_d(a: v2u64, b: v2u64) -> v2u64 { static_assert_uimm_bits!(IMM6, 6); @@ -2173,7 +2173,7 @@ pub unsafe fn __msa_binsr_d(a: v2u64, b: v2u64, c: v2u64) -> v2u64 { /// #[inline] #[target_feature(enable = "msa")] -#[cfg_attr(test, assert_instr(binsri.b, IMM3 = 0b111))] +#[cfg_attr(test, assert_instr(binsri.b, IMM3 = 0b101))] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_binsri_b(a: v16u8, b: v16u8) -> v16u8 { static_assert_uimm_bits!(IMM3, 3); @@ -2188,7 +2188,7 @@ pub unsafe fn __msa_binsri_b(a: v16u8, b: v16u8) -> v16u8 { /// #[inline] #[target_feature(enable = "msa")] -#[cfg_attr(test, assert_instr(binsri.h, IMM4 = 0b1111))] +#[cfg_attr(test, assert_instr(binsri.h, IMM4 = 0b1011))] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_binsri_h(a: v8u16, b: v8u16) -> v8u16 { static_assert_uimm_bits!(IMM4, 4); @@ -2203,7 +2203,7 @@ pub unsafe fn __msa_binsri_h(a: v8u16, b: v8u16) -> v8u16 { /// #[inline] #[target_feature(enable = "msa")] -#[cfg_attr(test, assert_instr(binsri.w, IMM5 = 0b11111))] +#[cfg_attr(test, assert_instr(binsri.w, IMM5 = 0b10111))] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_binsri_w(a: v4u32, b: v4u32) -> v4u32 { static_assert_uimm_bits!(IMM5, 5); @@ -2218,7 +2218,7 @@ pub unsafe fn __msa_binsri_w(a: v4u32, b: v4u32) -> v4u32 { /// #[inline] #[target_feature(enable = "msa")] -#[cfg_attr(test, assert_instr(binsri.d, IMM6 = 0b111111))] +#[cfg_attr(test, assert_instr(binsri.d, IMM6 = 0b101111))] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_binsri_d(a: v2u64, b: v2u64) -> v2u64 { static_assert_uimm_bits!(IMM6, 6); From 65b8447587cae40813545136adfee5ee351c2739 Mon Sep 17 00:00:00 2001 From: Folkert de Vries Date: Wed, 28 Oct 2026 15:22:44 +0100 Subject: [PATCH 24/43] use better inputs that don't get folded away note that the immediate is signed, so we actually have 9 bits for the value --- library/stdarch/crates/core_arch/src/mips/msa.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/stdarch/crates/core_arch/src/mips/msa.rs b/library/stdarch/crates/core_arch/src/mips/msa.rs index 0974d82b8c2a3..8f1ebb3f548f7 100644 --- a/library/stdarch/crates/core_arch/src/mips/msa.rs +++ b/library/stdarch/crates/core_arch/src/mips/msa.rs @@ -5995,7 +5995,7 @@ pub unsafe fn __msa_ldi_b() -> v16i8 { /// #[inline] #[target_feature(enable = "msa")] -#[cfg_attr(test, assert_instr(ldi.h, IMM_S10 = -1))] +#[cfg_attr(test, assert_instr(ldi.h, IMM_S10 = 0b01_00001111))] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_ldi_h() -> v8i16 { static_assert_simm_bits!(IMM_S10, 10); @@ -6010,7 +6010,7 @@ pub unsafe fn __msa_ldi_h() -> v8i16 { /// #[inline] #[target_feature(enable = "msa")] -#[cfg_attr(test, assert_instr(ldi.w, IMM_S10 = -1))] +#[cfg_attr(test, assert_instr(ldi.w, IMM_S10 = 0b01_00001111))] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_ldi_w() -> v4i32 { static_assert_simm_bits!(IMM_S10, 10); @@ -6025,7 +6025,7 @@ pub unsafe fn __msa_ldi_w() -> v4i32 { /// #[inline] #[target_feature(enable = "msa")] -#[cfg_attr(test, assert_instr(ldi.d, IMM_S10 = -1))] +#[cfg_attr(test, assert_instr(ldi.d, IMM_S10 = 0b01_00001111))] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_ldi_d() -> v2i64 { static_assert_simm_bits!(IMM_S10, 10); From 441deff97e73c45b30af1e825e9fe84622a27f71 Mon Sep 17 00:00:00 2001 From: Folkert de Vries Date: Wed, 28 Oct 2026 15:26:13 +0100 Subject: [PATCH 25/43] fixup docker files at least for me locally a comment can't be on the FROM line --- .../ci/docker/mips64-unknown-linux-gnuabi64/Dockerfile | 7 +++++-- .../ci/docker/mips64el-unknown-linux-gnuabi64/Dockerfile | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/library/stdarch/ci/docker/mips64-unknown-linux-gnuabi64/Dockerfile b/library/stdarch/ci/docker/mips64-unknown-linux-gnuabi64/Dockerfile index 8bcd6409453c4..09d20a7b5be73 100644 --- a/library/stdarch/ci/docker/mips64-unknown-linux-gnuabi64/Dockerfile +++ b/library/stdarch/ci/docker/mips64-unknown-linux-gnuabi64/Dockerfile @@ -1,4 +1,7 @@ -FROM ubuntu:25.04 # gcc-mips64-linux-gnuabi64 not available in 25.10 +FROM ubuntu:25.10 + +# gcc-mips64-linux-gnuabi64 not available by default in 25.10 +RUN echo "deb http://archive.ubuntu.com/ubuntu noble main universe" >> /etc/apt/sources.list.d/noble-copies.list RUN apt-get update && apt-get install -y --no-install-recommends \ gcc libc6-dev qemu-user ca-certificates \ @@ -7,4 +10,4 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ ENV CARGO_TARGET_MIPS64_UNKNOWN_LINUX_GNUABI64_LINKER=mips64-linux-gnuabi64-gcc \ CARGO_TARGET_MIPS64_UNKNOWN_LINUX_GNUABI64_RUNNER="qemu-mips64 -L /usr/mips64-linux-gnuabi64" \ - OBJDUMP=mips64-linux-gnuabi64-objdump \ No newline at end of file + OBJDUMP=mips64-linux-gnuabi64-objdump diff --git a/library/stdarch/ci/docker/mips64el-unknown-linux-gnuabi64/Dockerfile b/library/stdarch/ci/docker/mips64el-unknown-linux-gnuabi64/Dockerfile index 9aa0ce05783c5..73eaaa5530243 100644 --- a/library/stdarch/ci/docker/mips64el-unknown-linux-gnuabi64/Dockerfile +++ b/library/stdarch/ci/docker/mips64el-unknown-linux-gnuabi64/Dockerfile @@ -1,4 +1,7 @@ -FROM ubuntu:25.04 # gcc-mips64el-linux-gnuabi64 not available in 25.10 +FROM ubuntu:25.10 + +# gcc-mips64el-linux-gnuabi64 not available by default in 25.10 +RUN echo "deb http://archive.ubuntu.com/ubuntu noble main universe" >> /etc/apt/sources.list.d/noble-copies.list RUN apt-get update && apt-get install -y --no-install-recommends \ gcc libc6-dev qemu-user ca-certificates \ @@ -7,4 +10,4 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ ENV CARGO_TARGET_MIPS64EL_UNKNOWN_LINUX_GNUABI64_LINKER=mips64el-linux-gnuabi64-gcc \ CARGO_TARGET_MIPS64EL_UNKNOWN_LINUX_GNUABI64_RUNNER="qemu-mips64el -L /usr/mips64el-linux-gnuabi64" \ - OBJDUMP=mips64el-linux-gnuabi64-objdump \ No newline at end of file + OBJDUMP=mips64el-linux-gnuabi64-objdump From 2d06ea80c77fe8a9840985ea3970194ca9fde670 Mon Sep 17 00:00:00 2001 From: Folkert de Vries Date: Wed, 28 Oct 2026 15:55:56 +0100 Subject: [PATCH 26/43] loads and stores now always use the `.d` variant --- library/stdarch/crates/core_arch/src/mips/msa.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/library/stdarch/crates/core_arch/src/mips/msa.rs b/library/stdarch/crates/core_arch/src/mips/msa.rs index 8f1ebb3f548f7..a3da837610c48 100644 --- a/library/stdarch/crates/core_arch/src/mips/msa.rs +++ b/library/stdarch/crates/core_arch/src/mips/msa.rs @@ -5917,7 +5917,7 @@ pub unsafe fn __msa_insve_d(a: v2i64, c: v2i64) -> v2i64 { /// #[inline] #[target_feature(enable = "msa")] -#[cfg_attr(test, assert_instr(ld.b, IMM_S10 = -1))] +#[cfg_attr(test, assert_instr(ld.d, IMM_S10 = -1))] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_ld_b(mem_addr: *mut u8) -> v16i8 { static_assert_simm_bits!(IMM_S10, 10); @@ -5932,7 +5932,7 @@ pub unsafe fn __msa_ld_b(mem_addr: *mut u8) -> v16i8 { /// #[inline] #[target_feature(enable = "msa")] -#[cfg_attr(test, assert_instr(ld.h, IMM_S11 = -2))] +#[cfg_attr(test, assert_instr(ld.d, IMM_S11 = -2))] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_ld_h(mem_addr: *mut u8) -> v8i16 { static_assert_simm_bits!(IMM_S11, 11); @@ -5948,7 +5948,7 @@ pub unsafe fn __msa_ld_h(mem_addr: *mut u8) -> v8i16 { /// #[inline] #[target_feature(enable = "msa")] -#[cfg_attr(test, assert_instr(ld.w, IMM_S12 = -4))] +#[cfg_attr(test, assert_instr(ld.d, IMM_S12 = -4))] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_ld_w(mem_addr: *mut u8) -> v4i32 { static_assert_simm_bits!(IMM_S12, 12); @@ -8527,7 +8527,7 @@ pub unsafe fn __msa_srlri_d(a: v2i64) -> v2i64 { /// #[inline] #[target_feature(enable = "msa")] -#[cfg_attr(test, assert_instr(st.b, IMM_S10 = -1))] +#[cfg_attr(test, assert_instr(st.d, IMM_S10 = -1))] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_st_b(a: v16i8, mem_addr: *mut u8) -> () { static_assert_simm_bits!(IMM_S10, 10); @@ -8542,7 +8542,7 @@ pub unsafe fn __msa_st_b(a: v16i8, mem_addr: *mut u8) -> () /// #[inline] #[target_feature(enable = "msa")] -#[cfg_attr(test, assert_instr(st.h, IMM_S11 = -2))] +#[cfg_attr(test, assert_instr(st.d, IMM_S11 = -2))] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_st_h(a: v8i16, mem_addr: *mut u8) -> () { static_assert_simm_bits!(IMM_S11, 11); @@ -8558,7 +8558,7 @@ pub unsafe fn __msa_st_h(a: v8i16, mem_addr: *mut u8) -> () /// #[inline] #[target_feature(enable = "msa")] -#[cfg_attr(test, assert_instr(st.w, IMM_S12 = -4))] +#[cfg_attr(test, assert_instr(st.d, IMM_S12 = -4))] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_st_w(a: v4i32, mem_addr: *mut u8) -> () { static_assert_simm_bits!(IMM_S12, 12); From caf6684e1659ae246f65a7c34c89945b7ebc7618 Mon Sep 17 00:00:00 2001 From: Folkert de Vries Date: Wed, 28 Oct 2026 15:57:41 +0100 Subject: [PATCH 27/43] `copy_u_d` uses the signed instruction; there is no sign/zero extension so they are equivalent --- library/stdarch/crates/core_arch/src/mips/msa.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/stdarch/crates/core_arch/src/mips/msa.rs b/library/stdarch/crates/core_arch/src/mips/msa.rs index a3da837610c48..422b1fe06cccb 100644 --- a/library/stdarch/crates/core_arch/src/mips/msa.rs +++ b/library/stdarch/crates/core_arch/src/mips/msa.rs @@ -3408,7 +3408,7 @@ pub unsafe fn __msa_copy_u_w(a: v4i32) -> u32 { /// #[inline] #[target_feature(enable = "msa")] -#[cfg_attr(test, assert_instr(copy_u.d, IMM1 = 0b1))] +#[cfg_attr(test, assert_instr(copy_s.d, IMM1 = 0b1))] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_copy_u_d(a: v2i64) -> u64 { static_assert_uimm_bits!(IMM1, 1); From 4e05dfff5203e2dcb0a1f7dd98466737b0fc1157 Mon Sep 17 00:00:00 2001 From: Folkert de Vries Date: Wed, 28 Oct 2026 16:01:59 +0100 Subject: [PATCH 28/43] clang ends up using the negated variant; fine --- library/stdarch/crates/core_arch/src/mips/msa.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/stdarch/crates/core_arch/src/mips/msa.rs b/library/stdarch/crates/core_arch/src/mips/msa.rs index 422b1fe06cccb..e23ccf3db1740 100644 --- a/library/stdarch/crates/core_arch/src/mips/msa.rs +++ b/library/stdarch/crates/core_arch/src/mips/msa.rs @@ -2264,7 +2264,7 @@ pub unsafe fn __msa_bmnzi_b(a: v16u8, b: v16u8) -> v16u8 { /// #[inline] #[target_feature(enable = "msa")] -#[cfg_attr(test, assert_instr(bmz.v))] +#[cfg_attr(test, assert_instr(bmnz.v))] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_bmz_v(a: v16u8, b: v16u8, c: v16u8) -> v16u8 { msa_bmz_v(a, mem::transmute(b), c) @@ -2278,7 +2278,7 @@ pub unsafe fn __msa_bmz_v(a: v16u8, b: v16u8, c: v16u8) -> v16u8 { /// #[inline] #[target_feature(enable = "msa")] -#[cfg_attr(test, assert_instr(bmzi.b, IMM8 = 0x5a))] +#[cfg_attr(test, assert_instr(bmnzi.b, IMM8 = 0b1011_1111))] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_bmzi_b(a: v16u8, b: v16u8) -> v16u8 { static_assert_uimm_bits!(IMM8, 8); @@ -2475,7 +2475,7 @@ pub unsafe fn __msa_bnz_v(a: v16u8) -> i32 { /// #[inline] #[target_feature(enable = "msa")] -#[cfg_attr(test, assert_instr(bsel.v))] +#[cfg_attr(test, assert_instr(bmnz.v))] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_bsel_v(a: v16u8, b: v16u8, c: v16u8) -> v16u8 { msa_bsel_v(a, mem::transmute(b), c) From 6762899106f90d291348f1b16c079b1b3bf6ec6d Mon Sep 17 00:00:00 2001 From: Folkert de Vries Date: Wed, 28 Oct 2026 16:02:36 +0100 Subject: [PATCH 29/43] clang uses just an `andi.b` for `bclri_b` --- library/stdarch/crates/core_arch/src/mips/msa.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/stdarch/crates/core_arch/src/mips/msa.rs b/library/stdarch/crates/core_arch/src/mips/msa.rs index e23ccf3db1740..6b6fec834be5a 100644 --- a/library/stdarch/crates/core_arch/src/mips/msa.rs +++ b/library/stdarch/crates/core_arch/src/mips/msa.rs @@ -1933,7 +1933,7 @@ pub unsafe fn __msa_bclr_d(a: v2u64, b: v2u64) -> v2u64 { /// #[inline] #[target_feature(enable = "msa")] -#[cfg_attr(test, assert_instr(bclri.b, IMM3 = 0b111))] +#[cfg_attr(test, assert_instr(andi.b, IMM3 = 0b111))] #[unstable(feature = "stdarch_mips", issue = "111198")] pub unsafe fn __msa_bclri_b(a: v16u8) -> v16u8 { static_assert_uimm_bits!(IMM3, 3); From fc31e6664adfe66559cff9229c513c6272f26f53 Mon Sep 17 00:00:00 2001 From: Folkert de Vries Date: Wed, 28 Oct 2026 16:38:31 +0100 Subject: [PATCH 30/43] correct FMA test results --- .../stdarch/crates/core_arch/src/mips/msa.rs | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/library/stdarch/crates/core_arch/src/mips/msa.rs b/library/stdarch/crates/core_arch/src/mips/msa.rs index 6b6fec834be5a..04a14f471031b 100644 --- a/library/stdarch/crates/core_arch/src/mips/msa.rs +++ b/library/stdarch/crates/core_arch/src/mips/msa.rs @@ -13105,14 +13105,15 @@ mod tests { #[simd_test(enable = "msa")] unsafe fn test_msa_fmadd_w() { - #[rustfmt::skip] let a = f32x4::new(1.0, 2.0, 3.0, 4.0); - #[rustfmt::skip] let b = f32x4::new(5.0, 6.0, 7.0, 8.0); - #[rustfmt::skip] let c = f32x4::new(9.0, 10.0, 11.0, 12.0); - #[rustfmt::skip] - let r = f32x4::new(46.0, 62.0, 80.0, 100.0); + let r = f32x4::new( + 1.0 * 5.0 + 9.0, + 2.0 * 6.0 + 10.0, + 3.0 * 7.0 + 11.0, + 4.0 * 8.0 + 12.0, + ); assert_eq!( r, @@ -13126,14 +13127,10 @@ mod tests { #[simd_test(enable = "msa")] unsafe fn test_msa_fmadd_d() { - #[rustfmt::skip] let a = f64x2::new(1.0, 2.0); - #[rustfmt::skip] let b = f64x2::new(3.0, 4.0); - #[rustfmt::skip] let c = f64x2::new(5.0, 6.0); - #[rustfmt::skip] - let r = f64x2::new(16.0, 26.0); + let r = f64x2::new(1.0 * 3.0 + 5.0, 2.0 * 4.0 + 6.0); assert_eq!( r, From 8ef038ba7111d394c974f25d5f116505f33e737b Mon Sep 17 00:00:00 2001 From: Folkert de Vries Date: Wed, 28 Oct 2026 17:11:05 +0100 Subject: [PATCH 31/43] run qemu with a CPU that has +msa --- .../stdarch/ci/docker/mips64-unknown-linux-gnuabi64/Dockerfile | 3 ++- .../ci/docker/mips64el-unknown-linux-gnuabi64/Dockerfile | 3 ++- library/stdarch/ci/run.sh | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/library/stdarch/ci/docker/mips64-unknown-linux-gnuabi64/Dockerfile b/library/stdarch/ci/docker/mips64-unknown-linux-gnuabi64/Dockerfile index 09d20a7b5be73..4607fbdceef11 100644 --- a/library/stdarch/ci/docker/mips64-unknown-linux-gnuabi64/Dockerfile +++ b/library/stdarch/ci/docker/mips64-unknown-linux-gnuabi64/Dockerfile @@ -8,6 +8,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ gcc-mips64-linux-gnuabi64 libc6-dev-mips64-cross \ qemu-system-mips64 qemu-user +# Use Loongson-3A4000, a CPU with MSA support. Qemu does not define a max CPU for MIPS. ENV CARGO_TARGET_MIPS64_UNKNOWN_LINUX_GNUABI64_LINKER=mips64-linux-gnuabi64-gcc \ - CARGO_TARGET_MIPS64_UNKNOWN_LINUX_GNUABI64_RUNNER="qemu-mips64 -L /usr/mips64-linux-gnuabi64" \ + CARGO_TARGET_MIPS64_UNKNOWN_LINUX_GNUABI64_RUNNER="qemu-mips64 -cpu Loongson-3A4000 -L /usr/mips64-linux-gnuabi64" \ OBJDUMP=mips64-linux-gnuabi64-objdump diff --git a/library/stdarch/ci/docker/mips64el-unknown-linux-gnuabi64/Dockerfile b/library/stdarch/ci/docker/mips64el-unknown-linux-gnuabi64/Dockerfile index 73eaaa5530243..26c615b308257 100644 --- a/library/stdarch/ci/docker/mips64el-unknown-linux-gnuabi64/Dockerfile +++ b/library/stdarch/ci/docker/mips64el-unknown-linux-gnuabi64/Dockerfile @@ -8,6 +8,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ gcc-mips64el-linux-gnuabi64 libc6-dev-mips64el-cross \ qemu-system-mips64el +# Use Loongson-3A4000, a CPU with MSA support. Qemu does not define a max CPU for MIPS. ENV CARGO_TARGET_MIPS64EL_UNKNOWN_LINUX_GNUABI64_LINKER=mips64el-linux-gnuabi64-gcc \ - CARGO_TARGET_MIPS64EL_UNKNOWN_LINUX_GNUABI64_RUNNER="qemu-mips64el -L /usr/mips64el-linux-gnuabi64" \ + CARGO_TARGET_MIPS64EL_UNKNOWN_LINUX_GNUABI64_RUNNER="qemu-mips64el -cpu Loongson-3A4000 -L /usr/mips64el-linux-gnuabi64" \ OBJDUMP=mips64el-linux-gnuabi64-objdump diff --git a/library/stdarch/ci/run.sh b/library/stdarch/ci/run.sh index eb0b60fc3ed08..71cd6558d898b 100755 --- a/library/stdarch/ci/run.sh +++ b/library/stdarch/ci/run.sh @@ -119,7 +119,7 @@ case ${TARGET} in # cargo_test # ;; mips64*) - export RUSTFLAGS="${RUSTFLAGS} -C target-feature=+msa" + export RUSTFLAGS="${RUSTFLAGS} -C target-cpu=mips64r5 -C target-feature=+msa" cargo_test ;; s390x*) From bf502cf78468fe279ec5023c4c67b2b74e951767 Mon Sep 17 00:00:00 2001 From: Folkert de Vries Date: Wed, 28 Oct 2026 17:28:06 +0100 Subject: [PATCH 32/43] work around LLVM emitting a different instruction than the intrinsic name suggests our assert_instr checks now match the actual clang output, update stdarch-verify to match --- .../crates/stdarch-verify/tests/mips.rs | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/library/stdarch/crates/stdarch-verify/tests/mips.rs b/library/stdarch/crates/stdarch-verify/tests/mips.rs index 18502ae5c79ed..504f362d2b3c5 100644 --- a/library/stdarch/crates/stdarch-verify/tests/mips.rs +++ b/library/stdarch/crates/stdarch-verify/tests/mips.rs @@ -286,6 +286,22 @@ fn verify_all_signatures() { assert!(all_valid); } +// Intrinsics for which LLVM does not emit the exact instruction that you'd +// expect based on the intrinsic name, but something equivalent. +static LLVM_SELECTS_SOMETHING_EQUIVALENT: &[(&str, &str)] = &[ + ("__msa_bclri_b", "andi.b"), + ("__msa_bmz_v", "bmnz.v"), + ("__msa_bmzi_b", "bmnzi.b"), + ("__msa_bsel_v", "bmnz.v"), + ("__msa_copy_u_d", "copy_s.d"), + ("__msa_ld_b", "ld.d"), + ("__msa_ld_h", "ld.d"), + ("__msa_ld_w", "ld.d"), + ("__msa_st_b", "st.d"), + ("__msa_st_h", "st.d"), + ("__msa_st_w", "st.d"), +]; + fn matches(rust: &Function, mips: &MsaIntrinsic) -> Result<(), String> { macro_rules! bail { ($($t:tt)*) => (return Err(format!($($t)*))) @@ -358,7 +374,9 @@ fn matches(rust: &Function, mips: &MsaIntrinsic) -> Result<(), String> { // Normalize slightly to get rid of assembler differences let actual = rust.instrs[0].replace('.', "_"); let expected = mips.instruction.replace('.', "_"); - if actual != expected { + if actual != expected + && !LLVM_SELECTS_SOMETHING_EQUIVALENT.contains(&(rust.name, rust.instrs[0])) + { bail!( "wrong instruction: \"{}\" != \"{}\"", rust.instrs[0], From b3ad729e84388a8cfc7470c55fb7865a14536392 Mon Sep 17 00:00:00 2001 From: WANG Rui Date: Tue, 10 Nov 2026 11:52:38 +0800 Subject: [PATCH 33/43] loongarch: Use `intrinsics::simd` for vclo --- .../src/loongarch64/lasx/generated.rs | 36 ------------------- .../src/loongarch64/lasx/portable.rs | 4 +++ .../src/loongarch64/lsx/generated.rs | 36 ------------------- .../core_arch/src/loongarch64/lsx/portable.rs | 4 +++ .../crates/core_arch/src/loongarch64/simd.rs | 6 ++++ .../crates/stdarch-gen-loongarch/lasx.spec | 4 +++ .../crates/stdarch-gen-loongarch/lsx.spec | 4 +++ .../src/portable-intrinsics.txt | 8 +++++ 8 files changed, 30 insertions(+), 72 deletions(-) diff --git a/library/stdarch/crates/core_arch/src/loongarch64/lasx/generated.rs b/library/stdarch/crates/core_arch/src/loongarch64/lasx/generated.rs index 75b79398bf9c7..6dbecab15834e 100644 --- a/library/stdarch/crates/core_arch/src/loongarch64/lasx/generated.rs +++ b/library/stdarch/crates/core_arch/src/loongarch64/lasx/generated.rs @@ -167,14 +167,6 @@ unsafe extern "llvm-intrinsic" { fn __lasx_xvbitsel_v(a: __v32u8, b: __v32u8, c: __v32u8) -> __v32u8; #[link_name = "llvm.loongarch.lasx.xvbitseli.b"] fn __lasx_xvbitseli_b(a: __v32u8, b: __v32u8, c: u32) -> __v32u8; - #[link_name = "llvm.loongarch.lasx.xvclo.b"] - fn __lasx_xvclo_b(a: __v32i8) -> __v32i8; - #[link_name = "llvm.loongarch.lasx.xvclo.h"] - fn __lasx_xvclo_h(a: __v16i16) -> __v16i16; - #[link_name = "llvm.loongarch.lasx.xvclo.w"] - fn __lasx_xvclo_w(a: __v8i32) -> __v8i32; - #[link_name = "llvm.loongarch.lasx.xvclo.d"] - fn __lasx_xvclo_d(a: __v4i64) -> __v4i64; #[link_name = "llvm.loongarch.lasx.xvfcvt.h.s"] fn __lasx_xvfcvt_h_s(a: __v8f32, b: __v8f32) -> __v16i16; #[link_name = "llvm.loongarch.lasx.xvfcvt.s.d"] @@ -1522,34 +1514,6 @@ pub fn lasx_xvbitseli_b(a: m256i, b: m256i) -> m256i { unsafe { transmute(__lasx_xvbitseli_b(transmute(a), transmute(b), IMM8)) } } -#[inline] -#[target_feature(enable = "lasx")] -#[stable(feature = "stdarch_loongarch_simd", since = "CURRENT_RUSTC_VERSION")] -pub fn lasx_xvclo_b(a: m256i) -> m256i { - unsafe { transmute(__lasx_xvclo_b(transmute(a))) } -} - -#[inline] -#[target_feature(enable = "lasx")] -#[stable(feature = "stdarch_loongarch_simd", since = "CURRENT_RUSTC_VERSION")] -pub fn lasx_xvclo_h(a: m256i) -> m256i { - unsafe { transmute(__lasx_xvclo_h(transmute(a))) } -} - -#[inline] -#[target_feature(enable = "lasx")] -#[stable(feature = "stdarch_loongarch_simd", since = "CURRENT_RUSTC_VERSION")] -pub fn lasx_xvclo_w(a: m256i) -> m256i { - unsafe { transmute(__lasx_xvclo_w(transmute(a))) } -} - -#[inline] -#[target_feature(enable = "lasx")] -#[stable(feature = "stdarch_loongarch_simd", since = "CURRENT_RUSTC_VERSION")] -pub fn lasx_xvclo_d(a: m256i) -> m256i { - unsafe { transmute(__lasx_xvclo_d(transmute(a))) } -} - #[inline] #[target_feature(enable = "lasx")] #[stable(feature = "stdarch_loongarch_simd", since = "CURRENT_RUSTC_VERSION")] diff --git a/library/stdarch/crates/core_arch/src/loongarch64/lasx/portable.rs b/library/stdarch/crates/core_arch/src/loongarch64/lasx/portable.rs index fe45ed6543dfb..f1509f1718990 100644 --- a/library/stdarch/crates/core_arch/src/loongarch64/lasx/portable.rs +++ b/library/stdarch/crates/core_arch/src/loongarch64/lasx/portable.rs @@ -596,6 +596,10 @@ impl_vv!("lasx", lasx_xvclz_b, simd_ctlz, m256i, i8x32); impl_vv!("lasx", lasx_xvclz_h, simd_ctlz, m256i, i16x16); impl_vv!("lasx", lasx_xvclz_w, simd_ctlz, m256i, i32x8); impl_vv!("lasx", lasx_xvclz_d, simd_ctlz, m256i, i64x4); +impl_vv!("lasx", lasx_xvclo_b, simd_ext_ctlo, m256i, i8x32); +impl_vv!("lasx", lasx_xvclo_h, simd_ext_ctlo, m256i, i16x16); +impl_vv!("lasx", lasx_xvclo_w, simd_ext_ctlo, m256i, i32x8); +impl_vv!("lasx", lasx_xvclo_d, simd_ext_ctlo, m256i, i64x4); impl_vv!("lasx", lasx_xvneg_b, simd_neg, m256i, i8x32); impl_vv!("lasx", lasx_xvneg_h, simd_neg, m256i, i16x16); impl_vv!("lasx", lasx_xvneg_w, simd_neg, m256i, i32x8); diff --git a/library/stdarch/crates/core_arch/src/loongarch64/lsx/generated.rs b/library/stdarch/crates/core_arch/src/loongarch64/lsx/generated.rs index d2d065abf665a..16c67527a77e5 100644 --- a/library/stdarch/crates/core_arch/src/loongarch64/lsx/generated.rs +++ b/library/stdarch/crates/core_arch/src/loongarch64/lsx/generated.rs @@ -173,14 +173,6 @@ unsafe extern "llvm-intrinsic" { fn __lsx_vbitsel_v(a: __v16u8, b: __v16u8, c: __v16u8) -> __v16u8; #[link_name = "llvm.loongarch.lsx.vbitseli.b"] fn __lsx_vbitseli_b(a: __v16u8, b: __v16u8, c: u32) -> __v16u8; - #[link_name = "llvm.loongarch.lsx.vclo.b"] - fn __lsx_vclo_b(a: __v16i8) -> __v16i8; - #[link_name = "llvm.loongarch.lsx.vclo.h"] - fn __lsx_vclo_h(a: __v8i16) -> __v8i16; - #[link_name = "llvm.loongarch.lsx.vclo.w"] - fn __lsx_vclo_w(a: __v4i32) -> __v4i32; - #[link_name = "llvm.loongarch.lsx.vclo.d"] - fn __lsx_vclo_d(a: __v2i64) -> __v2i64; #[link_name = "llvm.loongarch.lsx.vfcvt.h.s"] fn __lsx_vfcvt_h_s(a: __v4f32, b: __v4f32) -> __v8i16; #[link_name = "llvm.loongarch.lsx.vfcvt.s.d"] @@ -1463,34 +1455,6 @@ pub fn lsx_vbitseli_b(a: m128i, b: m128i) -> m128i { unsafe { transmute(__lsx_vbitseli_b(transmute(a), transmute(b), IMM8)) } } -#[inline] -#[target_feature(enable = "lsx")] -#[stable(feature = "stdarch_loongarch_simd", since = "CURRENT_RUSTC_VERSION")] -pub fn lsx_vclo_b(a: m128i) -> m128i { - unsafe { transmute(__lsx_vclo_b(transmute(a))) } -} - -#[inline] -#[target_feature(enable = "lsx")] -#[stable(feature = "stdarch_loongarch_simd", since = "CURRENT_RUSTC_VERSION")] -pub fn lsx_vclo_h(a: m128i) -> m128i { - unsafe { transmute(__lsx_vclo_h(transmute(a))) } -} - -#[inline] -#[target_feature(enable = "lsx")] -#[stable(feature = "stdarch_loongarch_simd", since = "CURRENT_RUSTC_VERSION")] -pub fn lsx_vclo_w(a: m128i) -> m128i { - unsafe { transmute(__lsx_vclo_w(transmute(a))) } -} - -#[inline] -#[target_feature(enable = "lsx")] -#[stable(feature = "stdarch_loongarch_simd", since = "CURRENT_RUSTC_VERSION")] -pub fn lsx_vclo_d(a: m128i) -> m128i { - unsafe { transmute(__lsx_vclo_d(transmute(a))) } -} - #[inline] #[target_feature(enable = "lsx")] #[stable(feature = "stdarch_loongarch_simd", since = "CURRENT_RUSTC_VERSION")] diff --git a/library/stdarch/crates/core_arch/src/loongarch64/lsx/portable.rs b/library/stdarch/crates/core_arch/src/loongarch64/lsx/portable.rs index f2b86dae00af8..68588bd087335 100644 --- a/library/stdarch/crates/core_arch/src/loongarch64/lsx/portable.rs +++ b/library/stdarch/crates/core_arch/src/loongarch64/lsx/portable.rs @@ -271,6 +271,10 @@ impl_vv!("lsx", lsx_vclz_b, simd_ctlz, m128i, i8x16); impl_vv!("lsx", lsx_vclz_h, simd_ctlz, m128i, i16x8); impl_vv!("lsx", lsx_vclz_w, simd_ctlz, m128i, i32x4); impl_vv!("lsx", lsx_vclz_d, simd_ctlz, m128i, i64x2); +impl_vv!("lsx", lsx_vclo_b, simd_ext_ctlo, m128i, i8x16); +impl_vv!("lsx", lsx_vclo_h, simd_ext_ctlo, m128i, i16x8); +impl_vv!("lsx", lsx_vclo_w, simd_ext_ctlo, m128i, i32x4); +impl_vv!("lsx", lsx_vclo_d, simd_ext_ctlo, m128i, i64x2); impl_vv!("lsx", lsx_vneg_b, simd_neg, m128i, i8x16); impl_vv!("lsx", lsx_vneg_h, simd_neg, m128i, i16x8); impl_vv!("lsx", lsx_vneg_w, simd_neg, m128i, i32x4); diff --git a/library/stdarch/crates/core_arch/src/loongarch64/simd.rs b/library/stdarch/crates/core_arch/src/loongarch64/simd.rs index 3152864ab864e..4ccfc6d8e52e0 100644 --- a/library/stdarch/crates/core_arch/src/loongarch64/simd.rs +++ b/library/stdarch/crates/core_arch/src/loongarch64/simd.rs @@ -99,6 +99,12 @@ pub(super) const unsafe fn simd_ext_bitset(a: T, b: T) simd_or(simd_ext_shl(simd_ext_splat(1), b), a) } +#[inline(always)] +#[rustc_const_unstable(feature = "stdarch_const_helpers", issue = "none")] +pub(super) const unsafe fn simd_ext_ctlo(a: T) -> T { + simd_ctlz(simd_ext_not(a)) +} + #[inline(always)] #[rustc_const_unstable(feature = "stdarch_const_helpers", issue = "none")] pub(super) const unsafe fn simd_ext_fmsub(a: T, b: T, c: T) -> T { diff --git a/library/stdarch/crates/stdarch-gen-loongarch/lasx.spec b/library/stdarch/crates/stdarch-gen-loongarch/lasx.spec index 63895945948f8..8c76696055248 100644 --- a/library/stdarch/crates/stdarch-gen-loongarch/lasx.spec +++ b/library/stdarch/crates/stdarch-gen-loongarch/lasx.spec @@ -1708,21 +1708,25 @@ asm-fmts = xd, xj data-types = V4DI, V4DI /// lasx_xvclo_b +impl = portable name = lasx_xvclo_b asm-fmts = xd, xj data-types = V32QI, V32QI /// lasx_xvclo_h +impl = portable name = lasx_xvclo_h asm-fmts = xd, xj data-types = V16HI, V16HI /// lasx_xvclo_w +impl = portable name = lasx_xvclo_w asm-fmts = xd, xj data-types = V8SI, V8SI /// lasx_xvclo_d +impl = portable name = lasx_xvclo_d asm-fmts = xd, xj data-types = V4DI, V4DI diff --git a/library/stdarch/crates/stdarch-gen-loongarch/lsx.spec b/library/stdarch/crates/stdarch-gen-loongarch/lsx.spec index e1fb72c7901c9..1ac70cbe15a99 100644 --- a/library/stdarch/crates/stdarch-gen-loongarch/lsx.spec +++ b/library/stdarch/crates/stdarch-gen-loongarch/lsx.spec @@ -1723,21 +1723,25 @@ asm-fmts = vd, vj data-types = V2DI, V2DI /// lsx_vclo_b +impl = portable name = lsx_vclo_b asm-fmts = vd, vj data-types = V16QI, V16QI /// lsx_vclo_h +impl = portable name = lsx_vclo_h asm-fmts = vd, vj data-types = V8HI, V8HI /// lsx_vclo_w +impl = portable name = lsx_vclo_w asm-fmts = vd, vj data-types = V4SI, V4SI /// lsx_vclo_d +impl = portable name = lsx_vclo_d asm-fmts = vd, vj data-types = V2DI, V2DI diff --git a/library/stdarch/crates/stdarch-gen-loongarch/src/portable-intrinsics.txt b/library/stdarch/crates/stdarch-gen-loongarch/src/portable-intrinsics.txt index 4005385b75198..53afc395a4c8e 100644 --- a/library/stdarch/crates/stdarch-gen-loongarch/src/portable-intrinsics.txt +++ b/library/stdarch/crates/stdarch-gen-loongarch/src/portable-intrinsics.txt @@ -131,6 +131,10 @@ lsx_vclz_b lsx_vclz_h lsx_vclz_w lsx_vclz_d +lsx_vclo_b +lsx_vclo_h +lsx_vclo_w +lsx_vclo_d lsx_vreplgr2vr_b lsx_vreplgr2vr_h lsx_vreplgr2vr_w @@ -430,6 +434,10 @@ lasx_xvclz_b lasx_xvclz_h lasx_xvclz_w lasx_xvclz_d +lasx_xvclo_b +lasx_xvclo_h +lasx_xvclo_w +lasx_xvclo_d lasx_xvreplgr2vr_b lasx_xvreplgr2vr_h lasx_xvreplgr2vr_w From bf8350a52f1bcf52be3da393c487be8b544a0b03 Mon Sep 17 00:00:00 2001 From: The rustc-josh-sync Cronjob Bot Date: Thu, 12 Nov 2026 04:09:01 +0000 Subject: [PATCH 34/43] Prepare for merging from rust-lang/rust This updates the rust-version file to ee8268e23d0e2e308b52e4f63df69afb69bc61a4. --- library/stdarch/rust-version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/stdarch/rust-version b/library/stdarch/rust-version index e4f77638aebc8..912f0d44a8727 100644 --- a/library/stdarch/rust-version +++ b/library/stdarch/rust-version @@ -1 +1 @@ -16d1ffac17ad8b739e32483ac2e65fe7e1804977 +ee8268e23d0e2e308b52e4f63df69afb69bc61a4 From ac9d75cc6aae6ed4e481748064ef9c3155cedf1e Mon Sep 17 00:00:00 2001 From: panstromek Date: Thu, 29 Oct 2026 16:46:52 +0100 Subject: [PATCH 35/43] ref: replace debug_tuple helpers with debug struct ones They have the same signature now, so we can unify them. The implementation for tuple is selected based on whether the concatenated string contains field names. --- library/stdarch/crates/core_arch/src/simd.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/stdarch/crates/core_arch/src/simd.rs b/library/stdarch/crates/core_arch/src/simd.rs index 286f9b3bbcd09..69f5eda9993da 100644 --- a/library/stdarch/crates/core_arch/src/simd.rs +++ b/library/stdarch/crates/core_arch/src/simd.rs @@ -428,7 +428,7 @@ pub(crate) fn debug_simd_finish( type_name: &str, array: &[T; N], ) -> crate::fmt::Result { - crate::fmt::Formatter::debug_tuple_fields_finish( + crate::fmt::Formatter::debug_struct_fields_finish( formatter, type_name, &crate::array::from_fn::<&dyn crate::fmt::Debug, N, _>(|i| &array[i]), From a8f1df25daf7e152bc253e9cce9a5148e1e01ced Mon Sep 17 00:00:00 2001 From: Folkert de Vries Date: Wed, 23 Sep 2026 16:11:02 +0200 Subject: [PATCH 36/43] add `core::arch::{x86, x86_64}::x87_f80` --- library/stdarch/crates/core_arch/src/lib.rs | 1 + .../stdarch/crates/core_arch/src/x86/mod.rs | 73 +++++++++++++++++++ 2 files changed, 74 insertions(+) diff --git a/library/stdarch/crates/core_arch/src/lib.rs b/library/stdarch/crates/core_arch/src/lib.rs index 2af8a830cda04..b95f92c6f9e4f 100644 --- a/library/stdarch/crates/core_arch/src/lib.rs +++ b/library/stdarch/crates/core_arch/src/lib.rs @@ -48,6 +48,7 @@ any(target_arch = "powerpc", target_arch = "powerpc64"), feature(powerpc_ppcf128) )] +#![cfg_attr(any(target_arch = "x86", target_arch = "x86_64"), feature(x87_f80))] #![cfg_attr( test, feature( diff --git a/library/stdarch/crates/core_arch/src/x86/mod.rs b/library/stdarch/crates/core_arch/src/x86/mod.rs index e6875a628fbf0..ca5551ca6c1e4 100644 --- a/library/stdarch/crates/core_arch/src/x86/mod.rs +++ b/library/stdarch/crates/core_arch/src/x86/mod.rs @@ -5,6 +5,79 @@ use crate::mem::transmute; #[macro_use] mod macros; +/// The x87 80-bit extended-precision floating-point type. +/// +/// FIXME: extend the documentation. +#[doc(alias = "long double")] +#[doc(alias = "x86_fp80")] +#[doc(alias = "__float80")] +#[unstable(feature = "x87_f80", issue = "163982")] +#[allow(non_camel_case_types)] +#[doc(cfg(any(target_arch = "x86", target_arch = "x86_64")))] +#[derive(Clone, Copy)] +#[repr(transparent)] +pub struct x87_f80(crate::num::imp::x87_f80::x87_f80); + +const _: () = assert!( + size_of::() + == cfg_select! { + target_arch = "x86" => cfg_select! { + target_vendor = "apple" => 16, + target_env = "msvc" => 16, + _ => 12, + }, + target_arch = "x86_64" => 16, + _ => size_of::(), // for doc builds + } +); + +const _: () = assert!( + align_of::() + == cfg_select! { + target_arch = "x86" => cfg_select! { + target_vendor = "apple" => 16, + target_env = "msvc" => 16, + _ => 4, + }, + target_arch = "x86_64" => 16, + _ => align_of::(), // for doc builds + } +); + +#[unstable(feature = "x87_f80", issue = "163982")] +impl crate::fmt::Debug for x87_f80 { + #[inline] + fn fmt(&self, f: &mut crate::fmt::Formatter<'_>) -> crate::fmt::Result { + let mut bytes = [0u8; 16]; + bytes[..10].copy_from_slice(&self.to_ne_bytes()); + write!(f, "x87_f80({:#022x})", u128::from_ne_bytes(bytes)) + } +} + +impl x87_f80 { + /// Returns the memory representation of this floating point number as a byte array in + /// native byte order. + #[unstable(feature = "x87_f80", issue = "163982")] + #[inline] + pub const fn to_ne_bytes(self) -> [u8; 10] { + // SAFETY: the first 10 bytes are initialized. + unsafe { (&raw const self).cast::<[u8; 10]>().read() } + } + + /// Creates a floating point value from its representation as a byte array in native endian. + #[unstable(feature = "x87_f80", issue = "163982")] + #[inline] + pub const fn from_ne_bytes(bytes: [u8; 10]) -> Self { + // SAFETY: we initialize the first 10 bytes, the remaining bytes remain uninitialized. + // That is exactly the layout of x87_f80. + unsafe { + let mut this = crate::mem::MaybeUninit::::uninit(); + this.as_mut_ptr().cast::<[u8; 10]>().write(bytes); + this.assume_init() + } + } +} + types! { #![stable(feature = "simd_x86", since = "1.27.0")] From ef186ec1ab53573a0f7a4a47d6404edc4ebbf9d4 Mon Sep 17 00:00:00 2001 From: Folkert de Vries Date: Sun, 15 Nov 2026 16:22:01 +0100 Subject: [PATCH 37/43] disable `assert_instr` on some amx tests they run into https://github.com/rust-lang/rust/issues/165931, which we can't fix here. --- .../crates/core_arch/src/x86_64/amx.rs | 57 ++++++++++++------- 1 file changed, 38 insertions(+), 19 deletions(-) diff --git a/library/stdarch/crates/core_arch/src/x86_64/amx.rs b/library/stdarch/crates/core_arch/src/x86_64/amx.rs index 3f98df5b77376..22b9598d5aa0b 100644 --- a/library/stdarch/crates/core_arch/src/x86_64/amx.rs +++ b/library/stdarch/crates/core_arch/src/x86_64/amx.rs @@ -106,7 +106,8 @@ pub unsafe fn _tile_stored(base: *mut u8, stride: usize) { /// [Intel's documentation](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=__tile_stored&ig_expand=6881) #[inline] #[target_feature(enable = "amx-tile")] -#[cfg_attr(test, assert_instr(tilestored))] +// FIXME(amx) see https://github.com/rust-lang/rust/issues/165931. +// #[cfg_attr(test, assert_instr(tilestored))] #[unstable(feature = "x86_amx_intrinsics", issue = "126622")] pub unsafe fn __tile_stored(base: *mut u8, stride: usize, src: __tile1024i) { tilestored64_internal(src.rows, src.colsb, base, stride as u64, src.tile); @@ -191,7 +192,8 @@ pub unsafe fn _tile_dpbf16ps() { /// [Intel's documentation](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=__tile_dpbf16ps&ig_expand=6864) #[inline] #[target_feature(enable = "amx-bf16")] -#[cfg_attr(test, assert_instr(tdpbf16ps))] +// FIXME(amx) see https://github.com/rust-lang/rust/issues/165931. +// #[cfg_attr(test, assert_instr(tdpbf16ps))] #[unstable(feature = "x86_amx_intrinsics", issue = "126622")] pub unsafe fn __tile_dpbf16ps(dst: *mut __tile1024i, a: __tile1024i, b: __tile1024i) { (*dst).tile = tdpbf16ps_internal(a.rows, b.colsb, a.colsb, (*dst).tile, a.tile, b.tile); @@ -224,7 +226,8 @@ pub unsafe fn _tile_dpbssd() { /// [Intel's documentation](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=__tile_dpbssd&ig_expand=6866) #[inline] #[target_feature(enable = "amx-int8")] -#[cfg_attr(test, assert_instr(tdpbssd))] +// FIXME(amx) see https://github.com/rust-lang/rust/issues/165931. +// #[cfg_attr(test, assert_instr(tdpbssd))] #[unstable(feature = "x86_amx_intrinsics", issue = "126622")] pub unsafe fn __tile_dpbssd(dst: *mut __tile1024i, a: __tile1024i, b: __tile1024i) { (*dst).tile = tdpbssd_internal(a.rows, b.colsb, a.colsb, (*dst).tile, a.tile, b.tile); @@ -257,7 +260,8 @@ pub unsafe fn _tile_dpbsud() { /// [Intel's documentation](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=__tile_dpbsud&ig_expand=6868) #[inline] #[target_feature(enable = "amx-int8")] -#[cfg_attr(test, assert_instr(tdpbsud))] +// FIXME(amx) see https://github.com/rust-lang/rust/issues/165931. +// #[cfg_attr(test, assert_instr(tdpbsud))] #[unstable(feature = "x86_amx_intrinsics", issue = "126622")] pub unsafe fn __tile_dpbsud(dst: *mut __tile1024i, a: __tile1024i, b: __tile1024i) { (*dst).tile = tdpbsud_internal(a.rows, b.colsb, a.colsb, (*dst).tile, a.tile, b.tile); @@ -290,7 +294,8 @@ pub unsafe fn _tile_dpbusd() { /// [Intel's documentation](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=__tile_dpbusd&ig_expand=6870) #[inline] #[target_feature(enable = "amx-int8")] -#[cfg_attr(test, assert_instr(tdpbusd))] +// FIXME(amx) see https://github.com/rust-lang/rust/issues/165931. +// #[cfg_attr(test, assert_instr(tdpbusd))] #[unstable(feature = "x86_amx_intrinsics", issue = "126622")] pub unsafe fn __tile_dpbusd(dst: *mut __tile1024i, a: __tile1024i, b: __tile1024i) { (*dst).tile = tdpbusd_internal(a.rows, b.colsb, a.colsb, (*dst).tile, a.tile, b.tile); @@ -323,7 +328,8 @@ pub unsafe fn _tile_dpbuud() { /// [Intel's documentation](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=__tile_dpbuud&ig_expand=6872) #[inline] #[target_feature(enable = "amx-int8")] -#[cfg_attr(test, assert_instr(tdpbuud))] +// FIXME(amx) see https://github.com/rust-lang/rust/issues/165931. +// #[cfg_attr(test, assert_instr(tdpbuud))] #[unstable(feature = "x86_amx_intrinsics", issue = "126622")] pub unsafe fn __tile_dpbuud(dst: *mut __tile1024i, a: __tile1024i, b: __tile1024i) { (*dst).tile = tdpbuud_internal(a.rows, b.colsb, a.colsb, (*dst).tile, a.tile, b.tile); @@ -354,7 +360,8 @@ pub unsafe fn _tile_dpfp16ps() { /// [Intel's documentation](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=__tile_dpfp16ps&ig_expand=6874) #[inline] #[target_feature(enable = "amx-fp16")] -#[cfg_attr(test, assert_instr(tdpfp16ps))] +// FIXME(amx) see https://github.com/rust-lang/rust/issues/165931. +// #[cfg_attr(test, assert_instr(tdpfp16ps))] #[unstable(feature = "x86_amx_intrinsics", issue = "126622")] pub unsafe fn __tile_dpfp16ps(dst: *mut __tile1024i, a: __tile1024i, b: __tile1024i) { (*dst).tile = tdpfp16ps_internal(a.rows, b.colsb, a.colsb, (*dst).tile, a.tile, b.tile); @@ -393,7 +400,8 @@ pub unsafe fn _tile_cmmimfp16ps() { /// [Intel's documentation](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=__tile_cmmimfp16ps&ig_expand=6860) #[inline] #[target_feature(enable = "amx-complex")] -#[cfg_attr(test, assert_instr(tcmmimfp16ps))] +// FIXME(amx) see https://github.com/rust-lang/rust/issues/165931. +// #[cfg_attr(test, assert_instr(tcmmimfp16ps))] #[unstable(feature = "x86_amx_intrinsics", issue = "126622")] pub unsafe fn __tile_cmmimfp16ps(dst: *mut __tile1024i, a: __tile1024i, b: __tile1024i) { (*dst).tile = tcmmimfp16ps_internal(a.rows, b.colsb, a.colsb, (*dst).tile, a.tile, b.tile); @@ -432,7 +440,8 @@ pub unsafe fn _tile_cmmrlfp16ps() { /// [Intel's documentation](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=__tile_cmmrlfp16ps&ig_expand=6862) #[inline] #[target_feature(enable = "amx-complex")] -#[cfg_attr(test, assert_instr(tcmmrlfp16ps))] +// FIXME(amx) see https://github.com/rust-lang/rust/issues/165931. +// #[cfg_attr(test, assert_instr(tcmmrlfp16ps))] #[unstable(feature = "x86_amx_intrinsics", issue = "126622")] pub unsafe fn __tile_cmmrlfp16ps(dst: *mut __tile1024i, a: __tile1024i, b: __tile1024i) { (*dst).tile = tcmmrlfp16ps_internal(a.rows, b.colsb, a.colsb, (*dst).tile, a.tile, b.tile); @@ -464,7 +473,8 @@ pub unsafe fn _tile_dpbf8ps() { /// The shape of the tile is specified in the struct of [`__tile1024i`]. The register of the tile is allocated by the compiler. #[inline] #[target_feature(enable = "amx-fp8")] -#[cfg_attr(all(test, not(target_vendor = "apple")), assert_instr(tdpbf8ps))] +// FIXME(amx) see https://github.com/rust-lang/rust/issues/165931. +// #[cfg_attr(all(test, not(target_vendor = "apple")), assert_instr(tdpbf8ps))] #[unstable(feature = "x86_amx_intrinsics", issue = "126622")] pub unsafe fn __tile_dpbf8ps(dst: *mut __tile1024i, a: __tile1024i, b: __tile1024i) { (*dst).tile = tdpbf8ps_internal(a.rows, b.colsb, a.colsb, (*dst).tile, a.tile, b.tile); @@ -496,7 +506,8 @@ pub unsafe fn _tile_dpbhf8ps() { /// The shape of the tile is specified in the struct of [`__tile1024i`]. The register of the tile is allocated by the compiler. #[inline] #[target_feature(enable = "amx-fp8")] -#[cfg_attr(all(test, not(target_vendor = "apple")), assert_instr(tdpbhf8ps))] +// FIXME(amx) see https://github.com/rust-lang/rust/issues/165931. +// #[cfg_attr(all(test, not(target_vendor = "apple")), assert_instr(tdpbhf8ps))] #[unstable(feature = "x86_amx_intrinsics", issue = "126622")] pub unsafe fn __tile_dpbhf8ps(dst: *mut __tile1024i, a: __tile1024i, b: __tile1024i) { (*dst).tile = tdpbhf8ps_internal(a.rows, b.colsb, a.colsb, (*dst).tile, a.tile, b.tile); @@ -528,7 +539,8 @@ pub unsafe fn _tile_dphbf8ps() { /// The shape of the tile is specified in the struct of [`__tile1024i`]. The register of the tile is allocated by the compiler. #[inline] #[target_feature(enable = "amx-fp8")] -#[cfg_attr(all(test, not(target_vendor = "apple")), assert_instr(tdphbf8ps))] +// FIXME(amx) see https://github.com/rust-lang/rust/issues/165931. +// #[cfg_attr(all(test, not(target_vendor = "apple")), assert_instr(tdphbf8ps))] #[unstable(feature = "x86_amx_intrinsics", issue = "126622")] pub unsafe fn __tile_dphbf8ps(dst: *mut __tile1024i, a: __tile1024i, b: __tile1024i) { (*dst).tile = tdphbf8ps_internal(a.rows, b.colsb, a.colsb, (*dst).tile, a.tile, b.tile); @@ -560,7 +572,8 @@ pub unsafe fn _tile_dphf8ps() { /// The shape of the tile is specified in the struct of [`__tile1024i`]. The register of the tile is allocated by the compiler. #[inline] #[target_feature(enable = "amx-fp8")] -#[cfg_attr(all(test, not(target_vendor = "apple")), assert_instr(tdphf8ps))] +// FIXME(amx) see https://github.com/rust-lang/rust/issues/165931. +// #[cfg_attr(all(test, not(target_vendor = "apple")), assert_instr(tdphf8ps))] #[unstable(feature = "x86_amx_intrinsics", issue = "126622")] pub unsafe fn __tile_dphf8ps(dst: *mut __tile1024i, a: __tile1024i, b: __tile1024i) { (*dst).tile = tdphf8ps_internal(a.rows, b.colsb, a.colsb, (*dst).tile, a.tile, b.tile); @@ -668,7 +681,8 @@ pub unsafe fn _tile_cvtrowd2psi() -> __m512 { /// The shape of the tile is specified in the struct of [`__tile1024i`]. The register of the tile is allocated by the compiler. #[inline] #[target_feature(enable = "amx-avx512,avx10.2")] -#[cfg_attr(all(test, not(target_vendor = "apple")), assert_instr(tcvtrowd2ps))] +// FIXME(amx) see https://github.com/rust-lang/rust/issues/165931. +// #[cfg_attr(all(test, not(target_vendor = "apple")), assert_instr(tcvtrowd2ps))] #[unstable(feature = "x86_amx_intrinsics", issue = "126622")] pub unsafe fn __tile_cvtrowd2ps(src: __tile1024i, row: u32) -> __m512 { tcvtrowd2ps_internal(src.rows, src.colsb, src.tile, row).as_m512() @@ -713,7 +727,8 @@ pub unsafe fn _tile_cvtrowps2phhi() -> __m512h /// The shape of the tile is specified in the struct of [`__tile1024i`]. The register of the tile is allocated by the compiler. #[inline] #[target_feature(enable = "amx-avx512,avx10.2")] -#[cfg_attr(all(test, not(target_vendor = "apple")), assert_instr(tcvtrowps2phh))] +// FIXME(amx) see https://github.com/rust-lang/rust/issues/165931. +// #[cfg_attr(all(test, not(target_vendor = "apple")), assert_instr(tcvtrowps2phh))] #[unstable(feature = "x86_amx_intrinsics", issue = "126622")] pub unsafe fn __tile_cvtrowps2phh(src: __tile1024i, row: u32) -> __m512h { tcvtrowps2phh_internal(src.rows, src.colsb, src.tile, row).as_m512h() @@ -758,7 +773,8 @@ pub unsafe fn _tile_cvtrowps2phli() -> __m512h /// The shape of the tile is specified in the struct of [`__tile1024i`]. The register of the tile is allocated by the compiler. #[inline] #[target_feature(enable = "amx-avx512,avx10.2")] -#[cfg_attr(all(test, not(target_vendor = "apple")), assert_instr(tcvtrowps2phl))] +// FIXME(amx) see https://github.com/rust-lang/rust/issues/165931. +// #[cfg_attr(all(test, not(target_vendor = "apple")), assert_instr(tcvtrowps2phl))] #[unstable(feature = "x86_amx_intrinsics", issue = "126622")] pub unsafe fn __tile_cvtrowps2phl(src: __tile1024i, row: u32) -> __m512h { tcvtrowps2phl_internal(src.rows, src.colsb, src.tile, row).as_m512h() @@ -803,7 +819,8 @@ pub unsafe fn _tile_cvtrowps2bf16hi() -> __m512 /// The shape of the tile is specified in the struct of [`__tile1024i`]. The register of the tile is allocated by the compiler. #[inline] #[target_feature(enable = "amx-avx512,avx10.2")] -#[cfg_attr(all(test, not(target_vendor = "apple")), assert_instr(tcvtrowps2bf16h))] +// FIXME(amx) see https://github.com/rust-lang/rust/issues/165931. +// #[cfg_attr(all(test, not(target_vendor = "apple")), assert_instr(tcvtrowps2bf16h))] #[unstable(feature = "x86_amx_intrinsics", issue = "126622")] pub unsafe fn __tile_cvtrowps2bf16h(src: __tile1024i, row: u32) -> __m512bh { tcvtrowps2bf16h_internal(src.rows, src.colsb, src.tile, row).as_m512bh() @@ -848,7 +865,8 @@ pub unsafe fn _tile_cvtrowps2bf16li() -> __m512 /// The shape of the tile is specified in the struct of [`__tile1024i`]. The register of the tile is allocated by the compiler. #[inline] #[target_feature(enable = "amx-avx512,avx10.2")] -#[cfg_attr(all(test, not(target_vendor = "apple")), assert_instr(tcvtrowps2bf16l))] +// FIXME(amx) see https://github.com/rust-lang/rust/issues/165931. +// #[cfg_attr(all(test, not(target_vendor = "apple")), assert_instr(tcvtrowps2bf16l))] #[unstable(feature = "x86_amx_intrinsics", issue = "126622")] pub unsafe fn __tile_cvtrowps2bf16l(src: __tile1024i, row: u32) -> __m512bh { tcvtrowps2bf16l_internal(src.rows, src.colsb, src.tile, row).as_m512bh() @@ -887,7 +905,8 @@ pub unsafe fn _tile_movrowi() -> __m512i { /// The shape of the tile is specified in the struct of [`__tile1024i`]. The register of the tile is allocated by the compiler. #[inline] #[target_feature(enable = "amx-avx512,avx10.2")] -#[cfg_attr(all(test, not(target_vendor = "apple")), assert_instr(tilemovrow))] +// FIXME(amx) see https://github.com/rust-lang/rust/issues/165931. +// #[cfg_attr(all(test, not(target_vendor = "apple")), assert_instr(tilemovrow))] #[unstable(feature = "x86_amx_intrinsics", issue = "126622")] pub unsafe fn __tile_movrow(src: __tile1024i, row: u32) -> __m512i { tilemovrow_internal(src.rows, src.colsb, src.tile, row).as_m512i() From be665a35681d12de93185a547ddd07c697845e23 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sun, 15 Nov 2026 16:33:15 +0100 Subject: [PATCH 38/43] avx512ifma: fix docs for masked intrinsics --- .../stdarch/crates/core_arch/src/x86/avx512ifma.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/library/stdarch/crates/core_arch/src/x86/avx512ifma.rs b/library/stdarch/crates/core_arch/src/x86/avx512ifma.rs index 035b6a7e7e9ce..41505f7587ea1 100644 --- a/library/stdarch/crates/core_arch/src/x86/avx512ifma.rs +++ b/library/stdarch/crates/core_arch/src/x86/avx512ifma.rs @@ -24,7 +24,7 @@ pub fn _mm512_madd52hi_epu64(a: __m512i, b: __m512i, c: __m512i) -> __m512i { /// unsigned integer from the intermediate result with the /// corresponding unsigned 64-bit integer in `a`, and store the /// results in `dst` using writemask `k` (elements are copied -/// from `k` when the corresponding mask bit is not set). +/// from `a` when the corresponding mask bit is not set). /// /// [Intel's documentation](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#avx512techs=AVX512IFMA52&text=_mm512_mask_madd52hi_epu64) #[inline] @@ -71,7 +71,7 @@ pub fn _mm512_madd52lo_epu64(a: __m512i, b: __m512i, c: __m512i) -> __m512i { /// unsigned integer from the intermediate result with the /// corresponding unsigned 64-bit integer in `a`, and store the /// results in `dst` using writemask `k` (elements are copied -/// from `k` when the corresponding mask bit is not set). +/// from `a` when the corresponding mask bit is not set). /// /// [Intel's documentation](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#avx512techs=AVX512IFMA52&text=_mm512_mask_madd52lo_epu64) #[inline] @@ -133,7 +133,7 @@ pub fn _mm256_madd52hi_epu64(a: __m256i, b: __m256i, c: __m256i) -> __m256i { /// unsigned integer from the intermediate result with the /// corresponding unsigned 64-bit integer in `a`, and store the /// results in `dst` using writemask `k` (elements are copied -/// from `k` when the corresponding mask bit is not set). +/// from `a` when the corresponding mask bit is not set). /// /// [Intel's documentation](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#avx512techs=AVX512IFMA52&text=_mm256_mask_madd52hi_epu64) #[inline] @@ -195,7 +195,7 @@ pub fn _mm256_madd52lo_epu64(a: __m256i, b: __m256i, c: __m256i) -> __m256i { /// unsigned integer from the intermediate result with the /// corresponding unsigned 64-bit integer in `a`, and store the /// results in `dst` using writemask `k` (elements are copied -/// from `k` when the corresponding mask bit is not set). +/// from `a` when the corresponding mask bit is not set). /// /// [Intel's documentation](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#avx512techs=AVX512IFMA52&text=_mm256_mask_madd52lo_epu64) #[inline] @@ -257,7 +257,7 @@ pub fn _mm_madd52hi_epu64(a: __m128i, b: __m128i, c: __m128i) -> __m128i { /// unsigned integer from the intermediate result with the /// corresponding unsigned 64-bit integer in `a`, and store the /// results in `dst` using writemask `k` (elements are copied -/// from `k` when the corresponding mask bit is not set). +/// from `a` when the corresponding mask bit is not set). /// /// [Intel's documentation](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#avx512techs=AVX512IFMA52&text=_mm_mask_madd52hi_epu64) #[inline] @@ -319,7 +319,7 @@ pub fn _mm_madd52lo_epu64(a: __m128i, b: __m128i, c: __m128i) -> __m128i { /// unsigned integer from the intermediate result with the /// corresponding unsigned 64-bit integer in `a`, and store the /// results in `dst` using writemask `k` (elements are copied -/// from `k` when the corresponding mask bit is not set). +/// from `a` when the corresponding mask bit is not set). /// /// [Intel's documentation](https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#avx512techs=AVX512IFMA52&text=_mm_mask_madd52lo_epu64) #[inline] From 1098785e21c41e7a3d3e8c6dcb6a98be3808b513 Mon Sep 17 00:00:00 2001 From: Aelin Reidel Date: Wed, 11 Nov 2026 21:45:41 +0100 Subject: [PATCH 39/43] powerpc: Implement vclzlsbb and vctzlsbb The vclzlsbb and vctzlsbb instructions are available on POWER9 and newer with AltiVec enabled. They count the number of leading/trailing bytes in the vector with a LSB of zero. Clang and GCC both define the vec_cntlz_lsbb and vec_cnttz_lsbb helpers for counting the leading/trailing bytes with LSB of zero in a vector. These then conditionally emit one or the other instruction, depending on endianess. For example, on big endian, vec_cntlz_lsbb emits vclzlsbb, while on little-endian, it emits vctzlsbb. We match that. --- .../crates/core_arch/src/powerpc/altivec.rs | 107 ++++++++++++++++++ 1 file changed, 107 insertions(+) diff --git a/library/stdarch/crates/core_arch/src/powerpc/altivec.rs b/library/stdarch/crates/core_arch/src/powerpc/altivec.rs index a8621802b90f2..24e2023e2778b 100644 --- a/library/stdarch/crates/core_arch/src/powerpc/altivec.rs +++ b/library/stdarch/crates/core_arch/src/powerpc/altivec.rs @@ -408,6 +408,11 @@ unsafe extern "llvm-intrinsic" { #[link_name = "llvm.nearbyint.v4f32"] fn vrfin(a: vector_float) -> vector_float; + + #[link_name = "llvm.ppc.altivec.vclzlsbb"] + fn vclzlsbb(a: vector_signed_char) -> i32; + #[link_name = "llvm.ppc.altivec.vctzlsbb"] + fn vctzlsbb(a: vector_signed_char) -> i32; } #[macro_use] @@ -3305,6 +3310,62 @@ mod sealed { vec_vrfin(self) } } + + #[inline] + #[target_feature(enable = "power9-vector")] + #[cfg_attr(test, assert_instr(vclzlsbb))] + pub unsafe fn vec_vcntlz_lsbb(a: vector_signed_char) -> i32 { + vclzlsbb(a) + } + + #[unstable(feature = "stdarch_powerpc", issue = "111145")] + pub trait VectorCntlzLsbb { + unsafe fn vec_cntlz_lsbb(self) -> i32; + } + + macro_rules! impl_vec_cntlz_lsbb { + ($a:ty) => { + #[unstable(feature = "stdarch_powerpc", issue = "111145")] + impl VectorCntlzLsbb for $a { + #[inline] + #[target_feature(enable = "power9-vector")] + unsafe fn vec_cntlz_lsbb(self) -> i32 { + vec_vcntlz_lsbb(transmute(self)) + } + } + }; + } + + impl_vec_cntlz_lsbb! { vector_signed_char } + impl_vec_cntlz_lsbb! { vector_unsigned_char } + + #[inline] + #[target_feature(enable = "power9-vector")] + #[cfg_attr(test, assert_instr(vctzlsbb))] + pub unsafe fn vec_vcnttz_lsbb(a: vector_signed_char) -> i32 { + vctzlsbb(a) + } + + #[unstable(feature = "stdarch_powerpc", issue = "111145")] + pub trait VectorCnttzLsbb { + unsafe fn vec_cnttz_lsbb(self) -> i32; + } + + macro_rules! impl_vec_cnttz_lsbb { + ($a:ty) => { + #[unstable(feature = "stdarch_powerpc", issue = "111145")] + impl VectorCnttzLsbb for $a { + #[inline] + #[target_feature(enable = "power9-vector")] + unsafe fn vec_cnttz_lsbb(self) -> i32 { + vec_vcnttz_lsbb(transmute(self)) + } + } + }; + } + + impl_vec_cnttz_lsbb! { vector_signed_char } + impl_vec_cnttz_lsbb! { vector_unsigned_char } } /// Vector Insert @@ -4236,6 +4297,30 @@ mod endian { { a.vec_mule(b) } + + // Trailing and leading are swapped in little-endian + + /// Vector Count Leading Zero Least-Significant Bits Byte + #[inline] + #[target_feature(enable = "power9-vector")] + #[unstable(feature = "stdarch_powerpc", issue = "111145")] + pub unsafe fn vec_cntlz_lsbb(a: T) -> i32 + where + T: sealed::VectorCnttzLsbb, + { + a.vec_cnttz_lsbb() + } + + /// Vector Count Trailing Zero Least-Significant Bits Byte + #[inline] + #[target_feature(enable = "power9-vector")] + #[unstable(feature = "stdarch_powerpc", issue = "111145")] + pub unsafe fn vec_cnttz_lsbb(a: T) -> i32 + where + T: sealed::VectorCntlzLsbb, + { + a.vec_cntlz_lsbb() + } } /// Vector Multiply @@ -4679,6 +4764,28 @@ mod endian { { a.vec_mulo(b) } + + /// Vector Count Leading Zero Least-Significant Bits Byte + #[inline] + #[target_feature(enable = "power9-altivec")] + #[unstable(feature = "stdarch_powerpc", issue = "111145")] + pub unsafe fn vec_cntlz_lsbb(a: T) -> i32 + where + T: sealed::VectorCntlzLsbb, + { + a.vec_cntlz_lsbb() + } + + /// Vector Count Trailing Zero Least-Significant Bits Byte + #[inline] + #[target_feature(enable = "power9-altivec")] + #[unstable(feature = "stdarch_powerpc", issue = "111145")] + pub unsafe fn vec_cnttz_lsbb(a: T) -> i32 + where + T: sealed::VectorCnttzLsbb, + { + a.vec_cnttz_lsbb() + } } #[unstable(feature = "stdarch_powerpc", issue = "111145")] From b16728456d9d240cbaf3e99df5638d36e736f665 Mon Sep 17 00:00:00 2001 From: Aelin Reidel Date: Sun, 15 Nov 2026 18:39:18 +0100 Subject: [PATCH 40/43] Add some test cases --- .../crates/core_arch/src/powerpc/altivec.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/library/stdarch/crates/core_arch/src/powerpc/altivec.rs b/library/stdarch/crates/core_arch/src/powerpc/altivec.rs index 24e2023e2778b..4bd6b1e99208e 100644 --- a/library/stdarch/crates/core_arch/src/powerpc/altivec.rs +++ b/library/stdarch/crates/core_arch/src/powerpc/altivec.rs @@ -6874,4 +6874,22 @@ mod tests { [4, 8, 12, 68], [0x23456781, 0xBCDEF09A, 0xF0F0F0F0, 0x23456781] } + + #[simd_test(enable = "power9-vector")] + fn test_vec_cntlz_lsbb() { + let a = i8x16::new(0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0); + + let count = unsafe { vec_cntlz_lsbb(transmute::<_, vector_signed_char>(a)) }; + + assert_eq!(count, 4); + } + + #[simd_test(enable = "power9-vector")] + fn test_vec_cnttz_lsbb() { + let a = i8x16::new(0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0); + + let count = unsafe { vec_cnttz_lsbb(transmute::<_, vector_signed_char>(a)) }; + + assert_eq!(count, 2); + } } From 8e99d87b202ea1c91a646d58c05cb1bc65dc8f03 Mon Sep 17 00:00:00 2001 From: Aelin Reidel Date: Sun, 15 Nov 2026 18:53:30 +0100 Subject: [PATCH 41/43] Skip power9-vector feature on 32-bit powerpc --- library/stdarch/ci/docker/powerpc-unknown-linux-gnu/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/stdarch/ci/docker/powerpc-unknown-linux-gnu/Dockerfile b/library/stdarch/ci/docker/powerpc-unknown-linux-gnu/Dockerfile index 82d05f0b25d1e..aff2add1a7ede 100644 --- a/library/stdarch/ci/docker/powerpc-unknown-linux-gnu/Dockerfile +++ b/library/stdarch/ci/docker/powerpc-unknown-linux-gnu/Dockerfile @@ -9,4 +9,4 @@ ENV CARGO_TARGET_POWERPC_UNKNOWN_LINUX_GNU_LINKER=powerpc-linux-gnu-gcc \ CARGO_TARGET_POWERPC_UNKNOWN_LINUX_GNU_RUNNER="qemu-ppc -cpu mpc8610 -L /usr/powerpc-linux-gnu" \ CC=powerpc-linux-gnu-gcc \ OBJDUMP=powerpc-linux-gnu-objdump \ - STDARCH_TEST_SKIP_FEATURE=vsx + STDARCH_TEST_SKIP_FEATURE=vsx,power9-vector From 780712f633f1d1193ad76d94cabb4597db826a37 Mon Sep 17 00:00:00 2001 From: Folkert de Vries Date: Mon, 16 Nov 2026 14:01:16 +0100 Subject: [PATCH 42/43] Prepare for merging from rust-lang/rust This updates the rust-version file to 4de190d26178bb0c22ed4c005679bb621f7e9c18. --- library/stdarch/rust-version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/stdarch/rust-version b/library/stdarch/rust-version index 912f0d44a8727..30b1b9cf6bef6 100644 --- a/library/stdarch/rust-version +++ b/library/stdarch/rust-version @@ -1 +1 @@ -ee8268e23d0e2e308b52e4f63df69afb69bc61a4 +4de190d26178bb0c22ed4c005679bb621f7e9c18 From e4ae35847e589f1883f9c45669f7758d77612c4e Mon Sep 17 00:00:00 2001 From: Folkert de Vries Date: Mon, 16 Nov 2026 15:24:50 +0100 Subject: [PATCH 43/43] add `feature(cfg_target_has_reliable_f16b)` to `core` it is now used by `core_arch` --- library/core/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/library/core/src/lib.rs b/library/core/src/lib.rs index 41f8749a9399b..15d0640bd0aaa 100644 --- a/library/core/src/lib.rs +++ b/library/core/src/lib.rs @@ -88,6 +88,7 @@ #![feature(asm_experimental_arch)] #![feature(byte_str_internals)] #![feature(cfg_target_has_reliable_f16_f128)] +#![feature(cfg_target_has_reliable_f16b)] #![feature(const_cmp)] #![feature(const_destruct)] #![feature(const_eval_select)]