about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm_util.rs
diff options
context:
space:
mode:
authorThe Miri Cronjob Bot <miri@cron.bot>2025-06-05 05:02:35 +0000
committerThe Miri Cronjob Bot <miri@cron.bot>2025-06-05 05:02:35 +0000
commitbd898e38afecfd1c2ae30067e6170bda8a8c4db6 (patch)
tree298b738d03e31ec9228ddac11ef2854dcbb54e5b /compiler/rustc_codegen_llvm/src/llvm_util.rs
parent869baeaf9207e86fa9a8e8a3319d7ae080e4a07c (diff)
parentfa282f4928f88060159f8599106c055ba0c94a19 (diff)
downloadrust-bd898e38afecfd1c2ae30067e6170bda8a8c4db6.tar.gz
rust-bd898e38afecfd1c2ae30067e6170bda8a8c4db6.zip
Merge from rustc
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/llvm_util.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm_util.rs b/compiler/rustc_codegen_llvm/src/llvm_util.rs
index 8f57f0983ab..9718c95f38a 100644
--- a/compiler/rustc_codegen_llvm/src/llvm_util.rs
+++ b/compiler/rustc_codegen_llvm/src/llvm_util.rs
@@ -282,6 +282,14 @@ pub(crate) fn to_llvm_features<'a>(sess: &Session, s: &'a str) -> Option<LLVMFea
         }
         // Filter out features that are not supported by the current LLVM version
         ("riscv32" | "riscv64", "zacas") if get_version().0 < 20 => None,
+        (
+            "s390x",
+            "message-security-assist-extension12"
+            | "concurrent-functions"
+            | "miscellaneous-extensions-4"
+            | "vector-enhancements-3"
+            | "vector-packed-decimal-enhancement-3",
+        ) if get_version().0 < 20 => None,
         // Enable the evex512 target feature if an avx512 target feature is enabled.
         ("x86", s) if s.starts_with("avx512") => Some(LLVMFeature::with_dependencies(
             s,