diff options
| author | Kajetan Puchalski <kajetan.puchalski@arm.com> | 2025-02-07 18:08:19 +0000 |
|---|---|---|
| committer | Kajetan Puchalski <kajetan.puchalski@arm.com> | 2025-02-07 18:08:19 +0000 |
| commit | 53f9852224e6e54141e55bed86dbdb966e215d22 (patch) | |
| tree | 3fff410b81fbc64bf5f1a4b81f0f1c31ed1fd984 /compiler/rustc_codegen_llvm/src | |
| parent | 5ff18d0eaefd1bd9ab8ec33dab2404a44e7631ed (diff) | |
| download | rust-53f9852224e6e54141e55bed86dbdb966e215d22.tar.gz rust-53f9852224e6e54141e55bed86dbdb966e215d22.zip | |
rustc_target: Add the fp16 target feature for AArch32
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -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 53611c746a7..ee8c59015e6 100644 --- a/compiler/rustc_codegen_llvm/src/llvm_util.rs +++ b/compiler/rustc_codegen_llvm/src/llvm_util.rs @@ -271,6 +271,7 @@ pub(crate) fn to_llvm_features<'a>(sess: &Session, s: &'a str) -> Option<LLVMFea ("aarch64", "fp16") => Some(LLVMFeature::new("fullfp16")), // Filter out features that are not supported by the current LLVM version ("aarch64", "fpmr") if get_version().0 != 18 => None, + ("arm", "fp16") => Some(LLVMFeature::new("fullfp16")), // In LLVM 18, `unaligned-scalar-mem` was merged with `unaligned-vector-mem` into a single // feature called `fast-unaligned-access`. In LLVM 19, it was split back out. ("riscv32" | "riscv64", "unaligned-scalar-mem") if get_version().0 == 18 => { |
