Skip to content

Commit

Permalink
Enable ARM TME (Transactional Memory Extensions)
Browse files Browse the repository at this point in the history
  • Loading branch information
vertexclique committed May 21, 2020
1 parent 148c125 commit 4a10f6c
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
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
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 4a10f6c

Please sign in to comment.