Skip to content

Commit

Permalink
Rollup merge of rust-lang#72438 - vertexclique:vcq/aarch64-tme-featur…
Browse files Browse the repository at this point in the history
…es, r=Amanieu

Enable ARM TME (Transactional Memory Extensions)

Enables ARM TME coming up with LLVM 10. Related ARM TME intrinsics are included by the merge of rust-lang#67900.

Enables: rust-lang/stdarch#855
  • Loading branch information
RalfJung authored May 22, 2020
2 parents afbbb86 + 4a10f6c commit 64beaff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/librustc_codegen_llvm/llvm_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ const AARCH64_WHITELIST: &[(&str, Option<Symbol>)] = &[
("fp16", Some(sym::aarch64_target_feature)),
("rcpc", Some(sym::aarch64_target_feature)),
("dotprod", Some(sym::aarch64_target_feature)),
("tme", Some(sym::aarch64_target_feature)),
("v8.1a", Some(sym::aarch64_target_feature)),
("v8.2a", Some(sym::aarch64_target_feature)),
("v8.3a", Some(sym::aarch64_target_feature)),
Expand Down
1 change: 1 addition & 0 deletions src/libstd/tests/run-time-detect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ fn aarch64_linux() {
println!("rdm: {}", is_aarch64_feature_detected!("rdm"));
println!("rcpc: {}", is_aarch64_feature_detected!("rcpc"));
println!("dotprod: {}", is_aarch64_feature_detected!("dotprod"));
println!("tme: {}", is_aarch64_feature_detected!("tme"));
}

#[test]
Expand Down

0 comments on commit 64beaff

Please sign in to comment.