1
Fork 0

Fix int_to_float_cast for f128

This commit is contained in:
Antoni Boucher 2025-03-27 15:36:15 -04:00
parent ec44cfdfb4
commit bc0bc8d5e1

View file

@ -905,6 +905,7 @@ impl<'gcc, 'tcx> CodegenCx<'gcc, 'tcx> {
let name_suffix = match self.type_kind(dest_typ) {
TypeKind::Float => "tisf",
TypeKind::Double => "tidf",
TypeKind::FP128 => "tixf",
kind => panic!("cannot cast a non-native integer to type {:?}", kind),
};
let sign = if signed { "" } else { "un" };