diff options
| author | Nicholas Bishop <nicholasbishop@google.com> | 2024-05-30 18:32:46 -0400 |
|---|---|---|
| committer | Nicholas Bishop <nicholasbishop@google.com> | 2024-05-30 18:33:50 -0400 |
| commit | 99e6a28804eac57faa37134d61a2bb17069996a2 (patch) | |
| tree | 10e0fbe9348c78cd18d51bf73b56c987b8be7b5f /compiler/rustc_codegen_llvm/src | |
| parent | f6e4703e91eedcc5e33ad2cf3f6c0d034782f245 (diff) | |
| download | rust-99e6a28804eac57faa37134d61a2bb17069996a2.tar.gz rust-99e6a28804eac57faa37134d61a2bb17069996a2.zip | |
Add f16/f128 handling in a couple places
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/abi.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_llvm/src/abi.rs b/compiler/rustc_codegen_llvm/src/abi.rs index a6a3f0f9646..2e52d3f426a 100644 --- a/compiler/rustc_codegen_llvm/src/abi.rs +++ b/compiler/rustc_codegen_llvm/src/abi.rs @@ -121,8 +121,10 @@ impl LlvmType for Reg { match self.kind { RegKind::Integer => cx.type_ix(self.size.bits()), RegKind::Float => match self.size.bits() { + 16 => cx.type_f16(), 32 => cx.type_f32(), 64 => cx.type_f64(), + 128 => cx.type_f128(), _ => bug!("unsupported float: {:?}", self), }, RegKind::Vector => cx.type_vector(cx.type_i8(), self.size.bytes()), |
