Skip to content

Commit bcf1f6d

Browse files
committed
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.
2 parents c92a8e4 + 04caa55 commit bcf1f6d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/rustc_codegen_llvm/src/intrinsic.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1469,8 +1469,10 @@ fn generic_simd_intrinsic<'ll, 'tcx>(
14691469
let (elem_ty_str, elem_ty) = if let ty::Float(f) = in_elem.kind() {
14701470
let elem_ty = bx.cx.type_float_from_ty(*f);
14711471
match f.bit_width() {
1472+
16 => ("f16", elem_ty),
14721473
32 => ("f32", elem_ty),
14731474
64 => ("f64", elem_ty),
1475+
128 => ("f128", elem_ty),
14741476
_ => return_error!(InvalidMonomorphization::FloatingPointVector {
14751477
span,
14761478
name,

0 commit comments

Comments
 (0)