Skip to content

Commit 0f87072

Browse files
authored
Merge pull request #508 from rust-lang/fix/aarch64
Some more fixes and workarounds for Aarch64
2 parents a79c576 + 9ed0543 commit 0f87072

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/int.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,7 @@ impl<'gcc, 'tcx> CodegenCx<'gcc, 'tcx> {
926926
return self.context.new_cast(None, value, dest_typ);
927927
}
928928

929-
debug_assert!(value_type.dyncast_array().is_some());
929+
debug_assert!(dest_typ.dyncast_array().is_some());
930930
let name_suffix = match self.type_kind(value_type) {
931931
TypeKind::Float => "sfti",
932932
TypeKind::Double => "dfti",

src/lib.rs

+7-2
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,7 @@ pub fn target_features(
468468
allow_unstable: bool,
469469
target_info: &LockedTargetInfo,
470470
) -> Vec<Symbol> {
471+
// TODO(antoyo): use global_gcc_features.
471472
sess.target
472473
.supported_target_features()
473474
.iter()
@@ -478,8 +479,12 @@ pub fn target_features(
478479
None
479480
}
480481
})
481-
.filter(|_feature| {
482-
target_info.cpu_supports(_feature)
482+
.filter(|feature| {
483+
// TODO: we disable Neon for now since we don't support the LLVM intrinsics for it.
484+
if *feature == "neon" {
485+
return false;
486+
}
487+
target_info.cpu_supports(feature)
483488
/*
484489
adx, aes, avx, avx2, avx512bf16, avx512bitalg, avx512bw, avx512cd, avx512dq, avx512er, avx512f, avx512fp16, avx512ifma,
485490
avx512pf, avx512vbmi, avx512vbmi2, avx512vl, avx512vnni, avx512vp2intersect, avx512vpopcntdq,

0 commit comments

Comments
 (0)