We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
f16
f128
rustc_type_ir::FloatTy
rustc_abi::Primitive
1 parent c099ed3 commit e45b4d3Copy full SHA for e45b4d3
src/common.rs
@@ -33,8 +33,10 @@ pub(crate) fn scalar_to_clif_type(tcx: TyCtxt<'_>, scalar: Scalar) -> Type {
33
Integer::I64 => types::I64,
34
Integer::I128 => types::I128,
35
},
36
+ Primitive::F16 => unimplemented!("f16_f128"),
37
Primitive::F32 => types::F32,
38
Primitive::F64 => types::F64,
39
+ Primitive::F128 => unimplemented!("f16_f128"),
40
// FIXME(erikdesjardins): handle non-default addrspace ptr sizes
41
Primitive::Pointer(_) => pointer_ty(tcx),
42
}
@@ -61,8 +63,10 @@ fn clif_type_from_ty<'tcx>(tcx: TyCtxt<'tcx>, ty: Ty<'tcx>) -> Option<types::Typ
61
63
62
64
ty::Char => types::I32,
65
ty::Float(size) => match size {
66
+ FloatTy::F16 => unimplemented!("f16_f128"),
67
FloatTy::F32 => types::F32,
68
FloatTy::F64 => types::F64,
69
+ FloatTy::F128 => unimplemented!("f16_f128"),
70
71
ty::FnPtr(_) => pointer_ty(tcx),
72
ty::RawPtr(TypeAndMut { ty: pointee_ty, mutbl: _ }) | ty::Ref(_, pointee_ty, _) => {
0 commit comments