@@ -33,10 +33,10 @@ pub(crate) fn scalar_to_clif_type(tcx: TyCtxt<'_>, scalar: Scalar) -> Type {
33
33
Integer :: I128 => types:: I128 ,
34
34
} ,
35
35
Primitive :: Float ( float) => match float {
36
- Float :: F16 => unimplemented ! ( "f16_f128" ) ,
36
+ Float :: F16 => types :: F16 ,
37
37
Float :: F32 => types:: F32 ,
38
38
Float :: F64 => types:: F64 ,
39
- Float :: F128 => unimplemented ! ( "f16_f128" ) ,
39
+ Float :: F128 => types :: F128 ,
40
40
} ,
41
41
// FIXME(erikdesjardins): handle non-default addrspace ptr sizes
42
42
Primitive :: Pointer ( _) => pointer_ty ( tcx) ,
@@ -64,10 +64,10 @@ fn clif_type_from_ty<'tcx>(tcx: TyCtxt<'tcx>, ty: Ty<'tcx>) -> Option<types::Typ
64
64
} ,
65
65
ty:: Char => types:: I32 ,
66
66
ty:: Float ( size) => match size {
67
- FloatTy :: F16 => unimplemented ! ( "f16_f128" ) ,
67
+ FloatTy :: F16 => types :: F16 ,
68
68
FloatTy :: F32 => types:: F32 ,
69
69
FloatTy :: F64 => types:: F64 ,
70
- FloatTy :: F128 => unimplemented ! ( "f16_f128" ) ,
70
+ FloatTy :: F128 => types :: F128 ,
71
71
} ,
72
72
ty:: FnPtr ( ..) => pointer_ty ( tcx) ,
73
73
ty:: RawPtr ( pointee_ty, _) | ty:: Ref ( _, pointee_ty, _) => {
0 commit comments