aboutsummaryrefslogtreecommitdiff
path: root/tests/wasm_compile_simple_module/instructions.wat
diff options
context:
space:
mode:
authorWojciech Kosior <kwojtus@protonmail.com>2020-09-21 11:02:00 +0200
committerWojciech Kosior <kwojtus@protonmail.com>2020-09-21 11:02:00 +0200
commit6dfb056f484e98f627d16a44eca8f6fff87f5f0e (patch)
treec74c843a22299c0b27fe3e27a8d2131ada90fb26 /tests/wasm_compile_simple_module/instructions.wat
parent605ac7f13be9f597d3cf7ab3786b71f5cda8c9fa (diff)
downloadAGH-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.wat9
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)))