diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-09-19 17:18:59 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-09-19 18:49:42 -0700 |
commit | ba0a6541885d324b9562a79a8977ed8733191b7f (patch) | |
tree | 98fbbbd23421b75c9e47870f828161aec0d6494d /test/unit.fromasm.imprecise.no-opts | |
parent | 38dc263c303be13bec2fcee713bdb18fa89057c8 (diff) | |
download | binaryen-ba0a6541885d324b9562a79a8977ed8733191b7f.tar.gz binaryen-ba0a6541885d324b9562a79a8977ed8733191b7f.tar.bz2 binaryen-ba0a6541885d324b9562a79a8977ed8733191b7f.zip |
globals mutability fixes
Diffstat (limited to 'test/unit.fromasm.imprecise.no-opts')
-rw-r--r-- | test/unit.fromasm.imprecise.no-opts | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/test/unit.fromasm.imprecise.no-opts b/test/unit.fromasm.imprecise.no-opts index 91118673a..e8bb300b0 100644 --- a/test/unit.fromasm.imprecise.no-opts +++ b/test/unit.fromasm.imprecise.no-opts @@ -6,11 +6,11 @@ (type $FUNCSIG$ii (func (param i32) (result i32))) (type $FUNCSIG$dd (func (param f64) (result f64))) (type $FUNCSIG$i (func (result i32))) - (import "global" "NaN" (global $t f64)) - (import "global" "Infinity" (global $u f64)) - (import "env" "tempDoublePtr" (global $tempDoublePtr i32)) - (import "env" "gb" (global $n i32)) - (import "env" "STACKTOP" (global $STACKTOP i32)) + (import "global" "NaN" (global $t$asm2wasm$import f64)) + (import "global" "Infinity" (global $u$asm2wasm$import f64)) + (import "env" "tempDoublePtr" (global $tempDoublePtr$asm2wasm$import i32)) + (import "env" "gb" (global $n$asm2wasm$import i32)) + (import "env" "STACKTOP" (global $STACKTOP$asm2wasm$import i32)) (import "env" "setTempRet0" (func $setTempRet0 (param i32) (result i32))) (import "env" "abort" (func $abort (param f64) (result f64))) (import "env" "print" (func $print (param i32))) @@ -23,8 +23,13 @@ (import "env" "tableBase" (global $tableBase i32)) (export "big_negative" (func $big_negative)) (export "pick" (func $exportMe)) - (global $Int i32 (i32.const 0)) - (global $Double f64 (f64.const 0)) + (global $t (mut f64) (get_global $t$asm2wasm$import)) + (global $u (mut f64) (get_global $u$asm2wasm$import)) + (global $Int (mut i32) (i32.const 0)) + (global $Double (mut f64) (f64.const 0)) + (global $tempDoublePtr (mut i32) (get_global $tempDoublePtr$asm2wasm$import)) + (global $n (mut i32) (get_global $n$asm2wasm$import)) + (global $STACKTOP (mut i32) (get_global $STACKTOP$asm2wasm$import)) (table 10 10 anyfunc) (elem (i32.const 0) $z $big_negative $z $z $w $w $importedDoubles $w $z $cneg) (func $big_negative |