diff options
| author | Madhav Madhusoodanan <f20200049@pilani.bits-pilani.ac.in> | 2025-04-21 16:44:42 +0530 |
|---|---|---|
| committer | Madhav Madhusoodanan <f20200049@pilani.bits-pilani.ac.in> | 2025-05-06 23:28:27 +0530 |
| commit | 43357b4a64b0bfaf6c9db14cff998a2d17b98dac (patch) | |
| tree | 7eeae0269607e01db2e0812dc8203ed8b35e61a3 /compiler/rustc_codegen_llvm/src/llvm_util.rs | |
| parent | e4272d12f29dc425679749a1fb7569bd25464e88 (diff) | |
| download | rust-43357b4a64b0bfaf6c9db14cff998a2d17b98dac.tar.gz rust-43357b4a64b0bfaf6c9db14cff998a2d17b98dac.zip | |
Added `apxf` target feature support, under flag `apx_target_feature`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/llvm_util.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm_util.rs b/compiler/rustc_codegen_llvm/src/llvm_util.rs index f8706c5ee2f..8f57f0983ab 100644 --- a/compiler/rustc_codegen_llvm/src/llvm_util.rs +++ b/compiler/rustc_codegen_llvm/src/llvm_util.rs @@ -307,6 +307,18 @@ pub(crate) fn to_llvm_features<'a>(sess: &Session, s: &'a str) -> Option<LLVMFea ("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")), + ("x86", "apxf") => Some(LLVMFeature::with_dependencies( + "egpr", + smallvec![ + TargetFeatureFoldStrength::Both("push2pop2"), + TargetFeatureFoldStrength::Both("ppx"), + TargetFeatureFoldStrength::Both("ndd"), + TargetFeatureFoldStrength::Both("ccmp"), + TargetFeatureFoldStrength::Both("cf"), + TargetFeatureFoldStrength::Both("nf"), + TargetFeatureFoldStrength::Both("zu"), + ], + )), (_, s) => Some(LLVMFeature::new(s)), } } |
