diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-12-30 10:13:04 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-12-30 14:02:13 -0800 |
commit | c25d24447aeede9df0e76aac5176cf525522343b (patch) | |
tree | 77959388c602d6052868c38faf30405fa88d076c /test/unit.fromasm | |
parent | 575d695762f545e1c2784595d9c926488062f383 (diff) | |
download | binaryen-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/unit.fromasm')
-rw-r--r-- | test/unit.fromasm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit.fromasm b/test/unit.fromasm index e18bfd16a..4f7b2c6a9 100644 --- a/test/unit.fromasm +++ b/test/unit.fromasm @@ -22,12 +22,12 @@ (import "env" "table" (table 24 24 anyfunc)) (import "env" "memoryBase" (global $memoryBase i32)) (import "env" "tableBase" (global $tableBase i32)) - (elem (get_global $tableBase) $big_negative $big_negative $big_negative $big_negative $w $w $importedDoubles $w $fr $cneg $fr $fr $fr $fr $fr $fr $vi $vi $vi $vi $vi $vi $vi $vi) - (data (get_global $memoryBase) "unit.asm.js") (global $Int (mut i32) (i32.const 0)) (global $Double (mut f64) (f64.const 0)) (global $n (mut i32) (get_global $n$asm2wasm$import)) (global $exportedNumber i32 (i32.const 42)) + (elem (get_global $tableBase) $big_negative $big_negative $big_negative $big_negative $w $w $importedDoubles $w $fr $cneg $fr $fr $fr $fr $fr $fr $vi $vi $vi $vi $vi $vi $vi $vi) + (data (get_global $memoryBase) "unit.asm.js") (export "big_negative" (func $big_negative)) (export "pick" (func $big_negative)) (export "doubleCompares" (func $doubleCompares)) |