Skip to content

Commit

Permalink
Rollup merge of rust-lang#130741 - mrkajetanp:detect-b16b16, r=Amanieu
Browse files Browse the repository at this point in the history
rustc_target: Add sme-b16b16 as an explicit aarch64 target feature

LLVM 20 split out what used to be called b16b16 and correspond to aarch64
FEAT_SVE_B16B16 into sve-b16b16 and sme-b16b16.
Add sme-b16b16 as an explicit feature and update the codegen accordingly.

Resolves rust-lang#129894.
  • Loading branch information
matthiaskrgr authored Oct 10, 2024
2 parents 77f7b2f + 5ef6f83 commit 7fdd545
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions std/tests/run-time-detect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ fn aarch64_linux() {
println!("sha2: {}", is_aarch64_feature_detected!("sha2"));
println!("sha3: {}", is_aarch64_feature_detected!("sha3"));
println!("sm4: {}", is_aarch64_feature_detected!("sm4"));
println!("sme-b16b16: {}", is_aarch64_feature_detected!("sme-b16b16"));
println!("sme-f16f16: {}", is_aarch64_feature_detected!("sme-f16f16"));
println!("sme-f64f64: {}", is_aarch64_feature_detected!("sme-f64f64"));
println!("sme-f8f16: {}", is_aarch64_feature_detected!("sme-f8f16"));
Expand Down
2 changes: 1 addition & 1 deletion stdarch
Submodule stdarch updated from ace722 to c881fe

0 comments on commit 7fdd545

Please sign in to comment.