Add select

This commit is contained in:
Jef
2019-02-08 13:24:59 +01:00
parent 7788e6cb6b
commit 680a8ed585
3 changed files with 102 additions and 119 deletions

View File

@@ -460,6 +460,9 @@ pub fn translate<M: ModuleContext>(
Operator::I64Load { memarg } => ctx.i64_load(memarg.offset)?,
Operator::I32Store { memarg } => ctx.i32_store(memarg.offset)?,
Operator::I64Store { memarg } => ctx.i64_store(memarg.offset)?,
Operator::Select => {
ctx.select();
}
Operator::Call { function_index } => {
let callee_ty = session.module_context.func_type(function_index);