Commit 803bca2f authored by Stephan Seitz's avatar Stephan Seitz
Browse files

llvm: use zext to extend i32,i16 to i64

parent 71b8767b
...@@ -217,8 +217,10 @@ class LLVMPrinter(Printer): ...@@ -217,8 +217,10 @@ class LLVMPrinter(Printer):
# (From, to) # (From, to)
decision = { decision = {
(create_composite_type_from_string("int32"),
create_composite_type_from_string("int64")): functools.partial(self.builder.zext, node, self.integer),
(create_composite_type_from_string("int16"), (create_composite_type_from_string("int16"),
create_composite_type_from_string("int64")): lambda: ir.Constant(self.integer, node), create_composite_type_from_string("int64")): functools.partial(self.builder.zext, node, self.integer),
(create_composite_type_from_string("int"), (create_composite_type_from_string("int"),
create_composite_type_from_string("double")): functools.partial(self.builder.sitofp, node, self.fp_type), create_composite_type_from_string("double")): functools.partial(self.builder.sitofp, node, self.fp_type),
(create_composite_type_from_string("int16"), (create_composite_type_from_string("int16"),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment