@@ -33,10 +33,10 @@ pub(crate) fn scalar_to_clif_type(tcx: TyCtxt<'_>, scalar: Scalar) -> Type {
3333 Integer :: I128 => types:: I128 ,
3434 } ,
3535 Primitive :: Float ( float) => match float {
36- Float :: F16 => unimplemented ! ( "f16_f128" ) ,
36+ Float :: F16 => types :: F16 ,
3737 Float :: F32 => types:: F32 ,
3838 Float :: F64 => types:: F64 ,
39- Float :: F128 => unimplemented ! ( "f16_f128" ) ,
39+ Float :: F128 => types :: F128 ,
4040 } ,
4141 // FIXME(erikdesjardins): handle non-default addrspace ptr sizes
4242 Primitive :: Pointer ( _) => pointer_ty ( tcx) ,
@@ -64,10 +64,10 @@ fn clif_type_from_ty<'tcx>(tcx: TyCtxt<'tcx>, ty: Ty<'tcx>) -> Option<types::Typ
6464 } ,
6565 ty:: Char => types:: I32 ,
6666 ty:: Float ( size) => match size {
67- FloatTy :: F16 => unimplemented ! ( "f16_f128" ) ,
67+ FloatTy :: F16 => types :: F16 ,
6868 FloatTy :: F32 => types:: F32 ,
6969 FloatTy :: F64 => types:: F64 ,
70- FloatTy :: F128 => unimplemented ! ( "f16_f128" ) ,
70+ FloatTy :: F128 => types :: F128 ,
7171 } ,
7272 ty:: FnPtr ( ..) => pointer_ty ( tcx) ,
7373 ty:: RawPtr ( pointee_ty, _) | ty:: Ref ( _, pointee_ty, _) => {
0 commit comments