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.imprecise | |
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.imprecise')
-rw-r--r-- | test/unit.fromasm.imprecise | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit.fromasm.imprecise b/test/unit.fromasm.imprecise index 2ec8b82ff..caa8e4f33 100644 --- a/test/unit.fromasm.imprecise +++ b/test/unit.fromasm.imprecise @@ -18,11 +18,11 @@ (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) (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) (export "big_negative" (func $big_negative)) (export "pick" (func $big_negative)) (export "doubleCompares" (func $doubleCompares)) |