aboutsummaryrefslogtreecommitdiff
path: root/tests/wasm_compile_simple_module/instructions.wat
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wasm_compile_simple_module/instructions.wat')
-rw-r--r--tests/wasm_compile_simple_module/instructions.wat12
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/wasm_compile_simple_module/instructions.wat b/tests/wasm_compile_simple_module/instructions.wat
index 7579a46..bdf8a16 100644
--- a/tests/wasm_compile_simple_module/instructions.wat
+++ b/tests/wasm_compile_simple_module/instructions.wat
@@ -1,9 +1,7 @@
(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)))
+ (func $main
+ i32.const 0x1D ;; dynamic offset for memory store instruction
+ i32.const 0x1E ;; value to store
+ i32.store offset=0x1F align=2) ;; we store the difference at 0x23C
+ (export "main" (func $main)))