Skip to content

Commit 41deb2f

Browse files
committed
Add support for arm64ec
1 parent 351d48e commit 41deb2f

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ mod c {
461461
]);
462462
}
463463

464-
if target_arch == "aarch64" && consider_float_intrinsics {
464+
if (target_arch == "aarch64" || target_arch == "arm64ec") && consider_float_intrinsics {
465465
sources.extend(&[
466466
("__comparetf2", "comparetf2.c"),
467467
("__extenddftf2", "extenddftf2.c"),

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ pub mod mem;
5858
#[cfg(target_arch = "arm")]
5959
pub mod arm;
6060

61-
#[cfg(target_arch = "aarch64")]
61+
#[cfg(any(target_arch = "aarch64", target_arch = "arm64ec"))]
6262
pub mod aarch64;
6363

6464
#[cfg(all(target_arch = "aarch64", target_os = "linux", not(feature = "no-asm"),))]

testcrate/tests/lse.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#![feature(decl_macro)] // so we can use pub(super)
2-
#![cfg(all(target_arch = "aarch64", not(feature = "no-asm")))]
2+
#![cfg(all(
3+
any(target_arch = "aarch64", target_arch = "arm64ec"),
4+
not(feature = "no-asm")
5+
))]
36

47
/// Translate a byte size to a Rust type.
58
macro int_ty {

0 commit comments

Comments
 (0)