Skip to content

Commit 64beaff

Browse files
authored
Rollup merge of rust-lang#72438 - vertexclique:vcq/aarch64-tme-features, 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
2 parents afbbb86 + 4a10f6c commit 64beaff

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/librustc_codegen_llvm/llvm_util.rs

+1
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ const AARCH64_WHITELIST: &[(&str, Option<Symbol>)] = &[
170170
("fp16", Some(sym::aarch64_target_feature)),
171171
("rcpc", Some(sym::aarch64_target_feature)),
172172
("dotprod", Some(sym::aarch64_target_feature)),
173+
("tme", Some(sym::aarch64_target_feature)),
173174
("v8.1a", Some(sym::aarch64_target_feature)),
174175
("v8.2a", Some(sym::aarch64_target_feature)),
175176
("v8.3a", Some(sym::aarch64_target_feature)),

src/libstd/tests/run-time-detect.rs

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ fn aarch64_linux() {
3232
println!("rdm: {}", is_aarch64_feature_detected!("rdm"));
3333
println!("rcpc: {}", is_aarch64_feature_detected!("rcpc"));
3434
println!("dotprod: {}", is_aarch64_feature_detected!("dotprod"));
35+
println!("tme: {}", is_aarch64_feature_detected!("tme"));
3536
}
3637

3738
#[test]

0 commit comments

Comments
 (0)