diff options
author | Wojciech Kosior <kwojtus@protonmail.com> | 2020-09-21 11:02:00 +0200 |
---|---|---|
committer | Wojciech Kosior <kwojtus@protonmail.com> | 2020-09-21 11:02:00 +0200 |
commit | 6dfb056f484e98f627d16a44eca8f6fff87f5f0e (patch) | |
tree | c74c843a22299c0b27fe3e27a8d2131ada90fb26 /tests/wasm_compile_simple_module/instructions.wat | |
parent | 605ac7f13be9f597d3cf7ab3786b71f5cda8c9fa (diff) | |
download | AGH-engineering-thesis-6dfb056f484e98f627d16a44eca8f6fff87f5f0e.tar.gz AGH-engineering-thesis-6dfb056f484e98f627d16a44eca8f6fff87f5f0e.zip |
prepare to perform wasm_compile tests a bit different from stack_machine tests
Diffstat (limited to 'tests/wasm_compile_simple_module/instructions.wat')
-rw-r--r-- | tests/wasm_compile_simple_module/instructions.wat | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/wasm_compile_simple_module/instructions.wat b/tests/wasm_compile_simple_module/instructions.wat new file mode 100644 index 0000000..7579a46 --- /dev/null +++ b/tests/wasm_compile_simple_module/instructions.wat @@ -0,0 +1,9 @@ +(module + (memory 0 2) + (func $sub (param $lhs i32) (param $rhs i32);; (result i32) + i32.const 0x17 + local.get $lhs + local.get $rhs + i32.sub + i32.store offset=0x25 align=2) + (export "main" (func $sub))) |