Skip to content

Commit e739410

Browse files
committed
WASM_X86: Implement visit_I32Eqz()
1 parent bff606f commit e739410

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/libasr/codegen/wasm_to_x86.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,11 @@ class X86Visitor : public WASMDecoder<X86Visitor>,
162162
}
163163
}
164164

165+
void visit_I32Eqz() {
166+
m_a.asm_push_imm32(0U);
167+
handle_I32Compare("Eq");
168+
}
169+
165170
void visit_I32Const(int32_t value) {
166171
m_a.asm_push_imm32(value);
167172
// if (value < 0) {

0 commit comments

Comments
 (0)