Rollup merge of #118610 - krasimirgg:llvm-18-dec, r=nikic
update target feature following LLVM API change
LLVM commit e817966718
renamed* the `unaligned-scalar-mem` target feature to `fast-unaligned-access`.
(*) technically the commit folded two previous features into one, but there are no references to the other one in rust.
This commit is contained in:
commit
85c9de9799
3 changed files with 7 additions and 3 deletions
|
@ -263,6 +263,10 @@ pub fn to_llvm_features<'a>(sess: &Session, s: &'a str) -> LLVMFeature<'a> {
|
||||||
"sve2-bitperm",
|
"sve2-bitperm",
|
||||||
TargetFeatureFoldStrength::EnableOnly("neon"),
|
TargetFeatureFoldStrength::EnableOnly("neon"),
|
||||||
),
|
),
|
||||||
|
// The unaligned-scalar-mem feature was renamed to fast-unaligned-access.
|
||||||
|
("riscv32" | "riscv64", "fast-unaligned-access") if get_version().0 <= 17 => {
|
||||||
|
LLVMFeature::new("unaligned-scalar-mem")
|
||||||
|
}
|
||||||
(_, s) => LLVMFeature::new(s),
|
(_, s) => LLVMFeature::new(s),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -291,9 +291,9 @@ const RISCV_ALLOWED_FEATURES: &[(&str, Stability)] = &[
|
||||||
("d", Unstable(sym::riscv_target_feature)),
|
("d", Unstable(sym::riscv_target_feature)),
|
||||||
("e", Unstable(sym::riscv_target_feature)),
|
("e", Unstable(sym::riscv_target_feature)),
|
||||||
("f", Unstable(sym::riscv_target_feature)),
|
("f", Unstable(sym::riscv_target_feature)),
|
||||||
|
("fast-unaligned-access", Unstable(sym::riscv_target_feature)),
|
||||||
("m", Stable),
|
("m", Stable),
|
||||||
("relax", Unstable(sym::riscv_target_feature)),
|
("relax", Unstable(sym::riscv_target_feature)),
|
||||||
("unaligned-scalar-mem", Unstable(sym::riscv_target_feature)),
|
|
||||||
("v", Unstable(sym::riscv_target_feature)),
|
("v", Unstable(sym::riscv_target_feature)),
|
||||||
("zba", Stable),
|
("zba", Stable),
|
||||||
("zbb", Stable),
|
("zbb", Stable),
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
// revisions: riscv32 riscv64
|
// revisions: riscv32 riscv64
|
||||||
//
|
//
|
||||||
// [riscv32] needs-llvm-components: riscv
|
// [riscv32] needs-llvm-components: riscv
|
||||||
// [riscv32] compile-flags: --target=riscv32i-unknown-none-elf -C target-feature=-unaligned-scalar-mem --crate-type=rlib
|
// [riscv32] compile-flags: --target=riscv32i-unknown-none-elf -C target-feature=-fast-unaligned-access --crate-type=rlib
|
||||||
// [riscv64] needs-llvm-components: riscv
|
// [riscv64] needs-llvm-components: riscv
|
||||||
// [riscv64] compile-flags: --target=riscv64gc-unknown-none-elf -C target-feature=-unaligned-scalar-mem --crate-type=rlib
|
// [riscv64] compile-flags: --target=riscv64gc-unknown-none-elf -C target-feature=-fast-unaligned-access --crate-type=rlib
|
||||||
#![no_core]
|
#![no_core]
|
||||||
#![feature(
|
#![feature(
|
||||||
no_core,
|
no_core,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue