We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a045849 commit 177a12dCopy full SHA for 177a12d
src/libasr/codegen/wasm_to_x64.cpp
@@ -309,6 +309,19 @@ class X64Visitor : public WASMDecoder<X64Visitor>,
309
handleI32Opt([&](){ m_a.asm_xor_r64_r64(X64Reg::rax, X64Reg::rbx);});
310
}
311
312
+ void visit_I32Shl() {
313
+ m_a.asm_pop_r64(X64Reg::rcx);
314
+ m_a.asm_pop_r64(X64Reg::rax);
315
+ m_a.asm_shl_r64_cl(X64Reg::rax);
316
+ m_a.asm_push_r64(X64Reg::rax);
317
+ }
318
+ void visit_I32ShrS() {
319
320
321
+ m_a.asm_sar_r64_cl(X64Reg::rax);
322
323
324
+
325
void visit_I32Eqz() {
326
m_a.asm_mov_r64_imm64(X64Reg::rax, 0);
327
m_a.asm_push_r64(X64Reg::rax);
0 commit comments