about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm
diff options
context:
space:
mode:
authorFolkert de Vries <folkert@folkertdev.nl>2025-05-19 15:14:38 +0200
committerFolkert de Vries <folkert@folkertdev.nl>2025-05-19 17:40:37 +0200
commitc24e1c378f93055a53503b02894ccbede02203db (patch)
tree64612d5c33655cf342d8514c1b577e836601e714 /compiler/rustc_codegen_llvm
parent4455c8937007f3cc3c078375a335d86dbab391ce (diff)
downloadrust-c24e1c378f93055a53503b02894ccbede02203db.tar.gz
rust-c24e1c378f93055a53503b02894ccbede02203db.zip
add s390x z17 target features
Diffstat (limited to 'compiler/rustc_codegen_llvm')
-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,