Fix comparisons, add more tests for binops

This commit is contained in:
Jef
2019-01-08 09:45:39 +01:00
parent fcd18746a7
commit 010f2d8569
3 changed files with 184 additions and 75 deletions

View File

@@ -330,6 +330,7 @@ pub fn translate(
Operator::SetLocal { local_index } => set_local_i32(ctx, local_index),
Operator::GetLocal { local_index } => get_local_i32(ctx, local_index),
Operator::I32Const { value } => literal_i32(ctx, value),
Operator::I64Const { value } => literal_i64(ctx, value),
Operator::Call { function_index } => {
let callee_ty = translation_ctx.func_type(function_index);