about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm
diff options
context:
space:
mode:
authorTaiki Endo <te316e89@gmail.com>2025-03-20 19:47:57 +0900
committerTaiki Endo <te316e89@gmail.com>2025-03-20 19:47:57 +0900
commit55add8fce38ab100e161d2530a134f645ba78802 (patch)
tree5a54de09bf1e0c4c6de4f272f944b3098950b970 /compiler/rustc_codegen_llvm
parent4e2b096ed6c8a1400624a54f6c4fd0c0ce48a579 (diff)
downloadrust-55add8fce38ab100e161d2530a134f645ba78802.tar.gz
rust-55add8fce38ab100e161d2530a134f645ba78802.zip
rustc_target: Add more RISC-V vector-related features
Diffstat (limited to 'compiler/rustc_codegen_llvm')
-rw-r--r--compiler/rustc_codegen_llvm/src/llvm_util.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm_util.rs b/compiler/rustc_codegen_llvm/src/llvm_util.rs
index 4a166b0872d..5bf931965c7 100644
--- a/compiler/rustc_codegen_llvm/src/llvm_util.rs
+++ b/compiler/rustc_codegen_llvm/src/llvm_util.rs
@@ -274,7 +274,9 @@ pub(crate) fn to_llvm_features<'a>(sess: &Session, s: &'a str) -> Option<LLVMFea
         ("arm", "fp16") => Some(LLVMFeature::new("fullfp16")),
         // In LLVM 18, `unaligned-scalar-mem` was merged with `unaligned-vector-mem` into a single
         // feature called `fast-unaligned-access`. In LLVM 19, it was split back out.
-        ("riscv32" | "riscv64", "unaligned-scalar-mem") if get_version().0 == 18 => {
+        ("riscv32" | "riscv64", "unaligned-scalar-mem" | "unaligned-vector-mem")
+            if get_version().0 == 18 =>
+        {
             Some(LLVMFeature::new("fast-unaligned-access"))
         }
         // Filter out features that are not supported by the current LLVM version