summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorsayantn <sayantn05@gmail.com>2025-04-11 19:57:05 +0530
committersayantn <sayantn05@gmail.com>2025-04-26 11:40:13 +0530
commit163fb854a2346a26ade9e09ec13ef10a3145ee25 (patch)
treea262cdde7b96932783022ad2137cb7a8d0747a7c /compiler/rustc_codegen_llvm/src
parentd3508a8ad0163fab0c9b2188b3adf43c87200788 (diff)
downloadrust-163fb854a2346a26ade9e09ec13ef10a3145ee25.tar.gz
rust-163fb854a2346a26ade9e09ec13ef10a3145ee25.zip
Add the `avx10.1` and `avx10.2` target features
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
-rw-r--r--compiler/rustc_codegen_llvm/src/llvm_util.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm_util.rs b/compiler/rustc_codegen_llvm/src/llvm_util.rs
index 36e35f81392..8afd34829e3 100644
--- a/compiler/rustc_codegen_llvm/src/llvm_util.rs
+++ b/compiler/rustc_codegen_llvm/src/llvm_util.rs
@@ -294,6 +294,9 @@ pub(crate) fn to_llvm_features<'a>(sess: &Session, s: &'a str) -> Option<LLVMFea
             None
         }
         ("x86", "movrs") if get_version().0 < 20 => None,
+        ("x86", "avx10.1") => Some(LLVMFeature::new("avx10.1-512")),
+        ("x86", "avx10.2") if get_version().0 < 20 => None,
+        ("x86", "avx10.2") if get_version().0 >= 20 => Some(LLVMFeature::new("avx10.2-512")),
         (_, s) => Some(LLVMFeature::new(s)),
     }
 }