Skip to content

Commit e12c8dd

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

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-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

+3-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ 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(any(target_arch = "aarch64", target_arch = "arm64ec"), target_endian = "little"))]
2020
use core::arch::aarch64::{uint8x8_t, vqtbl1q_u8, vtbl1_u8};
2121
#[cfg(all(
2222
target_arch = "arm",
@@ -37,6 +37,7 @@ where
3737
#[cfg(all(
3838
any(
3939
target_arch = "aarch64",
40+
target_arch = "arm64ec",
4041
all(target_arch = "arm", target_feature = "v7")
4142
),
4243
target_feature = "neon",
@@ -48,7 +49,7 @@ where
4849
#[cfg(target_feature = "simd128")]
4950
16 => transize(wasm::i8x16_swizzle, self, idxs),
5051
#[cfg(all(
51-
target_arch = "aarch64",
52+
any(target_arch = "aarch64", target_arch = "arm64ec"),
5253
target_feature = "neon",
5354
target_endian = "little"
5455
))]

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

+3-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,7 @@ 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(any(target_arch = "aarch64", target_arch = "arm64ec"), target_endian = "little"))]
7374
mod aarch64 {
7475
use super::neon::*;
7576
use super::*;

0 commit comments

Comments
 (0)