aboutsummaryrefslogtreecommitdiffhomepage
path: root/ptx/src/translate.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ptx/src/translate.rs')
-rw-r--r--ptx/src/translate.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/ptx/src/translate.rs b/ptx/src/translate.rs
index da0cc07..7566be8 100644
--- a/ptx/src/translate.rs
+++ b/ptx/src/translate.rs
@@ -4285,7 +4285,10 @@ fn emit_implicit_conversion(
}
}
}
- (TypeKind::Scalar, TypeKind::Scalar, ConversionKind::SignExtend) => todo!(),
+ (TypeKind::Scalar, TypeKind::Scalar, ConversionKind::SignExtend) => {
+ let result_type = map.get_or_add(builder, SpirvType::from(cv.to.clone()));
+ builder.s_convert(result_type , Some(cv.dst), cv.src)?;
+ },
(TypeKind::Vector, TypeKind::Scalar, ConversionKind::Default)
| (TypeKind::Scalar, TypeKind::Array, ConversionKind::Default)
| (TypeKind::Array, TypeKind::Scalar, ConversionKind::Default) => {