summaryrefslogtreecommitdiff
path: root/test/memorygrowth.fromasm.imprecise
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-12-30 10:13:04 -0800
committerAlon Zakai <alonzakai@gmail.com>2016-12-30 14:02:13 -0800
commitc25d24447aeede9df0e76aac5176cf525522343b (patch)
tree77959388c602d6052868c38faf30405fa88d076c /test/memorygrowth.fromasm.imprecise
parent575d695762f545e1c2784595d9c926488062f383 (diff)
downloadbinaryen-c25d24447aeede9df0e76aac5176cf525522343b.tar.gz
binaryen-c25d24447aeede9df0e76aac5176cf525522343b.tar.bz2
binaryen-c25d24447aeede9df0e76aac5176cf525522343b.zip
emit globals before table and memory, because they may use a global for their element/segment offsets
Diffstat (limited to 'test/memorygrowth.fromasm.imprecise')
-rw-r--r--test/memorygrowth.fromasm.imprecise2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/memorygrowth.fromasm.imprecise b/test/memorygrowth.fromasm.imprecise
index c1f308b20..d0f3405d5 100644
--- a/test/memorygrowth.fromasm.imprecise
+++ b/test/memorygrowth.fromasm.imprecise
@@ -23,12 +23,12 @@
(import "env" "table" (table 8 8 anyfunc))
(import "env" "memoryBase" (global $memoryBase i32))
(import "env" "tableBase" (global $tableBase i32))
- (elem (get_global $tableBase) $nb $Oa $ob $Va $Ua $Ra $pb $Sa)
(global $r (mut i32) (get_global $r$asm2wasm$import))
(global $s (mut i32) (get_global $s$asm2wasm$import))
(global $v (mut i32) (i32.const 0))
(global $w (mut i32) (i32.const 0))
(global $K (mut i32) (i32.const 0))
+ (elem (get_global $tableBase) $nb $Oa $ob $Va $Ua $Ra $pb $Sa)
(export "_free" (func $fb))
(export "_main" (func $Na))
(export "_pthread_self" (func $ib))