diff options
author | Alexander Meißner <AlexanderMeissner@gmx.net> | 2016-06-06 19:03:32 +0200 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-06-06 10:03:32 -0700 |
commit | 1a4c50e562cf5ed1e18e2bbbf6eec839cf4d28f2 (patch) | |
tree | e25b6bd6a0b502f527df16c760fffeb8f3cd141c /test | |
parent | ca46b0772a8e7bb8d2237a27dcf538117842def4 (diff) | |
download | binaryen-1a4c50e562cf5ed1e18e2bbbf6eec839cf4d28f2.tar.gz binaryen-1a4c50e562cf5ed1e18e2bbbf6eec839cf4d28f2.tar.bz2 binaryen-1a4c50e562cf5ed1e18e2bbbf6eec839cf4d28f2.zip |
Fixed missing type assignment of host operations in s2wasm (#572)
Diffstat (limited to 'test')
-rw-r--r-- | test/dot_s/hostFinalize.s | 9 | ||||
-rw-r--r-- | test/dot_s/hostFinalize.wast | 13 |
2 files changed, 22 insertions, 0 deletions
diff --git a/test/dot_s/hostFinalize.s b/test/dot_s/hostFinalize.s new file mode 100644 index 000000000..cd9129d12 --- /dev/null +++ b/test/dot_s/hostFinalize.s @@ -0,0 +1,9 @@ + .text + .type _main, @function +_main: + current_memory $push0= + i32.const $push1=, 1 + i32.add $push2=, $pop0, $pop1 + grow_memory $pop2 + .endfunc + .size _main diff --git a/test/dot_s/hostFinalize.wast b/test/dot_s/hostFinalize.wast new file mode 100644 index 000000000..8b7f96dc6 --- /dev/null +++ b/test/dot_s/hostFinalize.wast @@ -0,0 +1,13 @@ +(module + (memory 1) + (export "memory" memory) + (func $_main + (grow_memory + (i32.add + (current_memory) + (i32.const 1) + ) + ) + ) +) +;; METADATA: { "asmConsts": {},"staticBump": 12, "initializers": [] } |