diff options
| author | bors <bors@rust-lang.org> | 2024-07-11 14:08:58 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-07-11 14:08:58 +0000 |
| commit | bcf1f6db4594ae6132378b179a30cdb3599a863d (patch) | |
| tree | 087f05693a22bb1ff9326f895bd0d8471dd141ba /compiler/rustc_codegen_llvm/src | |
| parent | c92a8e4d4d7e8da53aa05309ef8d4fac2c9af52f (diff) | |
| parent | 04caa5555a23e46b9e67d809e43204fd83ca3247 (diff) | |
| download | rust-bcf1f6db4594ae6132378b179a30cdb3599a863d.tar.gz rust-bcf1f6db4594ae6132378b179a30cdb3599a863d.zip | |
Auto merge of #127487 - tgross35:f16-f128-simd, r=Amanieu
Add `f16` and `f128` as simd types in LLVM `@sayantn` is working on adding SIMD for `f16` and hitting the `FloatingPointVector` error. This should fix it and unblock adding support for `simd_fma` and `simd_fabs` in stdarch.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/intrinsic.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_llvm/src/intrinsic.rs b/compiler/rustc_codegen_llvm/src/intrinsic.rs index e02c61cd296..68c3d47e826 100644 --- a/compiler/rustc_codegen_llvm/src/intrinsic.rs +++ b/compiler/rustc_codegen_llvm/src/intrinsic.rs @@ -1469,8 +1469,10 @@ fn generic_simd_intrinsic<'ll, 'tcx>( let (elem_ty_str, elem_ty) = if let ty::Float(f) = in_elem.kind() { let elem_ty = bx.cx.type_float_from_ty(*f); match f.bit_width() { + 16 => ("f16", elem_ty), 32 => ("f32", elem_ty), 64 => ("f64", elem_ty), + 128 => ("f128", elem_ty), _ => return_error!(InvalidMonomorphization::FloatingPointVector { span, name, |
