about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAntoni Boucher <bouanto@zoho.com>2025-03-27 15:36:15 -0400
committerAntoni Boucher <bouanto@zoho.com>2025-04-17 08:49:49 -0400
commitbc0bc8d5e1a1a38ee5a342e614e490e490bc5604 (patch)
tree7fd60c1038bea5af4d84c5687a03e342d2d42606 /src
parentec44cfdfb4a74d19f522984e2e2e226a3b76df9a (diff)
downloadrust-bc0bc8d5e1a1a38ee5a342e614e490e490bc5604.tar.gz
rust-bc0bc8d5e1a1a38ee5a342e614e490e490bc5604.zip
Fix int_to_float_cast for f128
Diffstat (limited to 'src')
-rw-r--r--src/int.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/int.rs b/src/int.rs
index f3552d9b12f..b5fcb534747 100644
--- a/src/int.rs
+++ b/src/int.rs
@@ -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" };