Add the avx10.1 and avx10.2 target features

This commit is contained in:
sayantn
2025-04-11 19:57:05 +05:30
parent d3508a8ad0
commit 163fb854a2
8 changed files with 48 additions and 1 deletions

View File

@@ -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)),
}
}