Add a simple i32.eq operator.

This commit is contained in:
Sergey Pepyakin
2018-11-19 21:56:19 +01:00
committed by Dan Gohman
parent b42696f207
commit ba216b2e8a
3 changed files with 39 additions and 0 deletions

View File

@@ -133,6 +133,9 @@ pub fn translate(session: &mut CodeGenSession, body: &FunctionBody) -> Result<()
define_label(&mut ctx, control_frame.kind.br_destination());
}
}
Operator::I32Eq => {
relop_eq_i32(&mut ctx);
}
Operator::I32Add => {
add_i32(&mut ctx);
}