Skip to content

Commit ca4033f

Browse files
committed
Add arm64ec support
1 parent 5794c83 commit ca4033f

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

crates/core_simd/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
)]
1818
#![cfg_attr(
1919
all(
20-
any(target_arch = "aarch64", target_arch = "arm",),
20+
any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "arm",),
2121
any(
2222
all(target_feature = "v6", not(target_feature = "mclass")),
2323
all(target_feature = "mclass", target_feature = "dsp"),

crates/core_simd/src/swizzle_dyn.rs

+6-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ where
1616
#[inline]
1717
pub fn swizzle_dyn(self, idxs: Simd<u8, N>) -> Self {
1818
#![allow(unused_imports, unused_unsafe)]
19-
#[cfg(all(target_arch = "aarch64", target_endian = "little"))]
19+
#[cfg(all(
20+
any(target_arch = "aarch64", target_arch = "arm64ec"),
21+
target_endian = "little"
22+
))]
2023
use core::arch::aarch64::{uint8x8_t, vqtbl1q_u8, vtbl1_u8};
2124
#[cfg(all(
2225
target_arch = "arm",
@@ -37,6 +40,7 @@ where
3740
#[cfg(all(
3841
any(
3942
target_arch = "aarch64",
43+
target_arch = "arm64ec",
4044
all(target_arch = "arm", target_feature = "v7")
4145
),
4246
target_feature = "neon",
@@ -48,7 +52,7 @@ where
4852
#[cfg(target_feature = "simd128")]
4953
16 => transize(wasm::i8x16_swizzle, self, idxs),
5054
#[cfg(all(
51-
target_arch = "aarch64",
55+
any(target_arch = "aarch64", target_arch = "arm64ec"),
5256
target_feature = "neon",
5357
target_endian = "little"
5458
))]

crates/core_simd/src/vendor.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ mod x86;
2424
#[cfg(target_arch = "wasm32")]
2525
mod wasm32;
2626

27-
#[cfg(any(target_arch = "aarch64", target_arch = "arm",))]
27+
#[cfg(any(target_arch = "aarch64", target_arch = "arm64ec", target_arch = "arm",))]
2828
mod arm;
2929

3030
#[cfg(any(target_arch = "powerpc", target_arch = "powerpc64"))]

crates/core_simd/src/vendor/arm.rs

+6-2
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ use crate::simd::*;
44
#[cfg(target_arch = "arm")]
55
use core::arch::arm::*;
66

7-
#[cfg(target_arch = "aarch64")]
7+
#[cfg(any(target_arch = "aarch64", target_arch = "arm64ec"))]
88
use core::arch::aarch64::*;
99

1010
#[cfg(all(
1111
any(
1212
target_arch = "aarch64",
13+
target_arch = "arm64ec",
1314
all(target_arch = "arm", target_feature = "v7"),
1415
),
1516
target_endian = "little"
@@ -69,7 +70,10 @@ mod simd32 {
6970
from_transmute! { unsafe Simd<i8, 4> => int8x4_t }
7071
}
7172

72-
#[cfg(all(target_arch = "aarch64", target_endian = "little"))]
73+
#[cfg(all(
74+
any(target_arch = "aarch64", target_arch = "arm64ec"),
75+
target_endian = "little"
76+
))]
7377
mod aarch64 {
7478
use super::neon::*;
7579
use super::*;

0 commit comments

Comments
 (0)