Skip to content

Commit 127bbc5

Browse files
committed
Add support for arm64ec
1 parent 4c3a9cb commit 127bbc5

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
@@ -59,7 +59,7 @@ pub mod mem;
5959
#[cfg(target_arch = "arm")]
6060
pub mod arm;
6161

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

6565
#[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)