We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae428a2 commit 95908f6Copy full SHA for 95908f6
src/cast.rs
@@ -64,13 +64,21 @@ pub fn clif_int_or_float_cast(
64
from_signed, // FIXME is this correct?
65
)
66
} else if from_ty.is_int() && to_ty.is_float() {
67
+ if from_ty == types::I128 {
68
+ unimpl!("u/i128 -> float");
69
+ }
70
+
71
// int-like -> float
72
if from_signed {
73
fx.bcx.ins().fcvt_from_sint(to_ty, from)
74
} else {
75
fx.bcx.ins().fcvt_from_uint(to_ty, from)
76
}
77
} else if from_ty.is_float() && to_ty.is_int() {
78
+ if to_ty == types::I128 {
79
+ unimpl!("float -> u/i128");
80
81
82
// float -> int-like
83
if to_ty == types::I8 || to_ty == types::I16 {
84
// FIXME implement fcvt_to_*int_sat.i8/i16
0 commit comments