mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
Add f16
and f128
as SIMD types in LLVM
This commit is contained in:
parent
cfd7cf5a0e
commit
04caa5555a
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user