Skip to content

Commit

Permalink
Support arm64ec
Browse files Browse the repository at this point in the history
  • Loading branch information
dpaoliello committed Mar 7, 2024
1 parent 351d48e commit 72359e6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ mod c {
]);
}

if target_arch == "aarch64" && consider_float_intrinsics {
if (target_arch == "aarch64" || target_arch == "arm64ec") && consider_float_intrinsics {
sources.extend(&[
("__comparetf2", "comparetf2.c"),
("__extenddftf2", "extenddftf2.c"),
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pub mod mem;
#[cfg(target_arch = "arm")]
pub mod arm;

#[cfg(target_arch = "aarch64")]
#[cfg(any(target_arch = "aarch64", target_arch = "arm64ec"))]
pub mod aarch64;

#[cfg(all(target_arch = "aarch64", target_os = "linux", not(feature = "no-asm"),))]
Expand Down
5 changes: 4 additions & 1 deletion testcrate/tests/lse.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#![feature(decl_macro)] // so we can use pub(super)
#![cfg(all(target_arch = "aarch64", not(feature = "no-asm")))]
#![cfg(all(
any(target_arch = "aarch64", target_arch = "arm64ec"),
not(feature = "no-asm")
))]

/// Translate a byte size to a Rust type.
macro int_ty {
Expand Down

0 comments on commit 72359e6

Please sign in to comment.