diff options
| author | Chris Denton <chris@chrisdenton.dev> | 2024-02-12 09:06:45 -0300 |
|---|---|---|
| committer | Chris Denton <chris@chrisdenton.dev> | 2024-02-12 10:31:12 -0300 |
| commit | 83a850f2a1259eb05ef444c81bcb5869d6dbf336 (patch) | |
| tree | 50d7bfba54f16ca6cb03065036eebb835cf4ca5e /compiler/rustc_codegen_llvm/src/llvm_util.rs | |
| parent | aebf4511e919e8df6db8a9217fd56316a9f8a38f (diff) | |
| download | rust-83a850f2a1259eb05ef444c81bcb5869d6dbf336.tar.gz rust-83a850f2a1259eb05ef444c81bcb5869d6dbf336.zip | |
Add lahfsahf and prfchw target feature
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/llvm_util.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm_util.rs b/compiler/rustc_codegen_llvm/src/llvm_util.rs index 4bb400b1879..e48479c8da2 100644 --- a/compiler/rustc_codegen_llvm/src/llvm_util.rs +++ b/compiler/rustc_codegen_llvm/src/llvm_util.rs @@ -213,6 +213,7 @@ pub fn to_llvm_features<'a>(sess: &Session, s: &'a str) -> LLVMFeature<'a> { ("x86", "rdrand") => LLVMFeature::new("rdrnd"), ("x86", "bmi1") => LLVMFeature::new("bmi"), ("x86", "cmpxchg16b") => LLVMFeature::new("cx16"), + ("x86", "lahfsahf") => LLVMFeature::new("sahf"), ("aarch64", "rcpc2") => LLVMFeature::new("rcpc-immo"), ("aarch64", "dpb") => LLVMFeature::new("ccpp"), ("aarch64", "dpb2") => LLVMFeature::new("ccdp"), |
