summaryrefslogtreecommitdiff
path: root/test/memorygrowth.fromasm.imprecise
diff options
context:
space:
mode:
Diffstat (limited to 'test/memorygrowth.fromasm.imprecise')
-rw-r--r--test/memorygrowth.fromasm.imprecise240
1 files changed, 90 insertions, 150 deletions
diff --git a/test/memorygrowth.fromasm.imprecise b/test/memorygrowth.fromasm.imprecise
index 2e22608a8..ae2d79d38 100644
--- a/test/memorygrowth.fromasm.imprecise
+++ b/test/memorygrowth.fromasm.imprecise
@@ -6,6 +6,12 @@
(type $FUNCSIG$v (func))
(type $FUNCSIG$vii (func (param i32 i32)))
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
+ (import $r global "env" "STACKTOP" i32)
+ (import $s global "env" "STACK_MAX" i32)
+ (import $t global "env" "tempDoublePtr" i32)
+ (import $u global "env" "ABORT" i32)
+ (import $z global "global" "NaN" f64)
+ (import $A global "global" "Infinity" f64)
(import $ja "env" "abort" (param i32))
(import $oa "env" "_pthread_cleanup_pop" (param i32))
(import $pa "env" "___lock" (param i32))
@@ -39,6 +45,30 @@
(export "dynCall_vi" $mb)
(export "__growWasmMemory" $__growWasmMemory)
(export "memory" memory)
+ (global $v i32 (i32.const 0))
+ (global $w i32 (i32.const 0))
+ (global $x i32 (i32.const 0))
+ (global $y i32 (i32.const 0))
+ (global $B i32 (i32.const 0))
+ (global $C i32 (i32.const 0))
+ (global $D i32 (i32.const 0))
+ (global $E i32 (i32.const 0))
+ (global $F f64 (f64.const 0))
+ (global $G i32 (i32.const 0))
+ (global $H i32 (i32.const 0))
+ (global $I i32 (i32.const 0))
+ (global $J f64 (f64.const 0))
+ (global $K i32 (i32.const 0))
+ (global $L i32 (i32.const 0))
+ (global $M i32 (i32.const 0))
+ (global $N i32 (i32.const 0))
+ (global $O i32 (i32.const 0))
+ (global $P i32 (i32.const 0))
+ (global $Q i32 (i32.const 0))
+ (global $R i32 (i32.const 0))
+ (global $S i32 (i32.const 0))
+ (global $T i32 (i32.const 0))
+ (global $za f64 (f64.const 0))
(table 8 8 anyfunc)
(elem (i32.const 0) $nb $Oa $ob $Va $Ua $Ra $pb $Sa)
(func $eb (param $0 i32) (result i32)
@@ -97,16 +127,11 @@
(local $53 i32)
(local $54 i32)
(set_local $31
- (i32.load
- (i32.const 8)
- )
+ (get_global $r)
)
- (i32.store
- (i32.const 8)
+ (set_global $r
(i32.add
- (i32.load
- (i32.const 8)
- )
+ (get_global $r)
(i32.const 16)
)
)
@@ -279,8 +304,7 @@
(i32.const 1)
)
)
- (i32.store
- (i32.const 8)
+ (set_global $r
(get_local $31)
)
(return
@@ -650,8 +674,7 @@
(i32.const 1228)
(get_local $0)
)
- (i32.store
- (i32.const 8)
+ (set_global $r
(get_local $31)
)
(return
@@ -1387,8 +1410,7 @@
)
)
)
- (i32.store
- (i32.const 8)
+ (set_global $r
(get_local $31)
)
(return
@@ -2881,8 +2903,7 @@
)
)
)
- (i32.store
- (i32.const 8)
+ (set_global $r
(get_local $31)
)
(return
@@ -3005,8 +3026,7 @@
)
)
)
- (i32.store
- (i32.const 8)
+ (set_global $r
(get_local $31)
)
(return
@@ -3063,8 +3083,7 @@
(i32.const 3)
)
)
- (i32.store
- (i32.const 8)
+ (set_global $r
(get_local $31)
)
(return
@@ -3160,8 +3179,7 @@
(get_local $18)
)
(block
- (i32.store
- (i32.const 8)
+ (set_global $r
(get_local $31)
)
(return
@@ -3196,8 +3214,7 @@
)
)
(block
- (i32.store
- (i32.const 8)
+ (set_global $r
(get_local $31)
)
(return
@@ -5115,8 +5132,7 @@
)
)
)
- (i32.store
- (i32.const 8)
+ (set_global $r
(get_local $31)
)
(return
@@ -6025,8 +6041,7 @@
(i32.const 3)
)
)
- (i32.store
- (i32.const 8)
+ (set_global $r
(get_local $31)
)
(return
@@ -6043,8 +6058,7 @@
(call $Qa)
(i32.const 12)
)
- (i32.store
- (i32.const 8)
+ (set_global $r
(get_local $31)
)
(i32.const 0)
@@ -7925,16 +7939,11 @@
(local $17 i32)
(local $18 i32)
(set_local $11
- (i32.load
- (i32.const 8)
- )
+ (get_global $r)
)
- (i32.store
- (i32.const 8)
+ (set_global $r
(i32.add
- (i32.load
- (i32.const 8)
- )
+ (get_global $r)
(i32.const 48)
)
)
@@ -8297,8 +8306,7 @@
)
)
)
- (i32.store
- (i32.const 8)
+ (set_global $r
(get_local $11)
)
(get_local $16)
@@ -8841,16 +8849,11 @@
(local $8 i32)
(local $9 i32)
(set_local $5
- (i32.load
- (i32.const 8)
- )
+ (get_global $r)
)
- (i32.store
- (i32.const 8)
+ (set_global $r
(i32.add
- (i32.load
- (i32.const 8)
- )
+ (get_global $r)
(i32.const 16)
)
)
@@ -8980,8 +8983,7 @@
)
)
)
- (i32.store
- (i32.const 8)
+ (set_global $r
(get_local $5)
)
(get_local $4)
@@ -9651,16 +9653,11 @@
(local $3 i32)
(local $4 i32)
(set_local $4
- (i32.load
- (i32.const 8)
- )
+ (get_global $r)
)
- (i32.store
- (i32.const 8)
+ (set_global $r
(i32.add
- (i32.load
- (i32.const 8)
- )
+ (get_global $r)
(i32.const 32)
)
)
@@ -9716,8 +9713,7 @@
)
)
)
- (i32.store
- (i32.const 8)
+ (set_global $r
(get_local $4)
)
(get_local $0)
@@ -9726,16 +9722,11 @@
(local $3 i32)
(local $4 i32)
(set_local $4
- (i32.load
- (i32.const 8)
- )
+ (get_global $r)
)
- (i32.store
- (i32.const 8)
+ (set_global $r
(i32.add
- (i32.load
- (i32.const 8)
- )
+ (get_global $r)
(i32.const 80)
)
)
@@ -9792,73 +9783,56 @@
(get_local $2)
)
)
- (i32.store
- (i32.const 8)
+ (set_global $r
(get_local $4)
)
(get_local $3)
)
(func $Ka (param $0 i32)
(i32.store8
- (i32.load
- (i32.const 24)
- )
+ (get_global $t)
(i32.load8_s
(get_local $0)
)
)
(i32.store8 offset=1
- (i32.load
- (i32.const 24)
- )
+ (get_global $t)
(i32.load8_s offset=1
(get_local $0)
)
)
(i32.store8 offset=2
- (i32.load
- (i32.const 24)
- )
+ (get_global $t)
(i32.load8_s offset=2
(get_local $0)
)
)
(i32.store8 offset=3
- (i32.load
- (i32.const 24)
- )
+ (get_global $t)
(i32.load8_s offset=3
(get_local $0)
)
)
(i32.store8 offset=4
- (i32.load
- (i32.const 24)
- )
+ (get_global $t)
(i32.load8_s offset=4
(get_local $0)
)
)
(i32.store8 offset=5
- (i32.load
- (i32.const 24)
- )
+ (get_global $t)
(i32.load8_s offset=5
(get_local $0)
)
)
(i32.store8 offset=6
- (i32.load
- (i32.const 24)
- )
+ (get_global $t)
(i32.load8_s offset=6
(get_local $0)
)
)
(i32.store8 offset=7
- (i32.load
- (i32.const 24)
- )
+ (get_global $t)
(i32.load8_s offset=7
(get_local $0)
)
@@ -9868,16 +9842,11 @@
(local $1 i32)
(local $2 i32)
(set_local $1
- (i32.load
- (i32.const 8)
- )
+ (get_global $r)
)
- (i32.store
- (i32.const 8)
+ (set_global $r
(i32.add
- (i32.load
- (i32.const 8)
- )
+ (get_global $r)
(i32.const 16)
)
)
@@ -9897,8 +9866,7 @@
)
)
)
- (i32.store
- (i32.const 8)
+ (set_global $r
(get_local $1)
)
(get_local $0)
@@ -9924,33 +9892,25 @@
)
(func $Ja (param $0 i32)
(i32.store8
- (i32.load
- (i32.const 24)
- )
+ (get_global $t)
(i32.load8_s
(get_local $0)
)
)
(i32.store8 offset=1
- (i32.load
- (i32.const 24)
- )
+ (get_global $t)
(i32.load8_s offset=1
(get_local $0)
)
)
(i32.store8 offset=2
- (i32.load
- (i32.const 24)
- )
+ (get_global $t)
(i32.load8_s offset=2
(get_local $0)
)
)
(i32.store8 offset=3
- (i32.load
- (i32.const 24)
- )
+ (get_global $t)
(i32.load8_s offset=3
(get_local $0)
)
@@ -9984,26 +9944,18 @@
(func $Ea (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
- (i32.load
- (i32.const 8)
- )
+ (get_global $r)
)
- (i32.store
- (i32.const 8)
+ (set_global $r
(i32.add
- (i32.load
- (i32.const 8)
- )
+ (get_global $r)
(get_local $0)
)
)
- (i32.store
- (i32.const 8)
+ (set_global $r
(i32.and
(i32.add
- (i32.load
- (i32.const 8)
- )
+ (get_global $r)
(i32.const 15)
)
(i32.const -16)
@@ -10033,17 +9985,13 @@
(func $Ia (param $0 i32) (param $1 i32)
(if
(i32.eqz
- (i32.load
- (i32.const 40)
- )
+ (get_global $v)
)
(block
- (i32.store
- (i32.const 40)
+ (set_global $v
(get_local $0)
)
- (i32.store
- (i32.const 48)
+ (set_global $w
(get_local $1)
)
)
@@ -10086,12 +10034,10 @@
)
)
(func $Ha (param $0 i32) (param $1 i32)
- (i32.store
- (i32.const 8)
+ (set_global $r
(get_local $0)
)
- (i32.store
- (i32.const 16)
+ (set_global $s
(get_local $1)
)
)
@@ -10121,26 +10067,20 @@
)
)
(func $La (param $0 i32)
- (i32.store
- (i32.const 160)
+ (set_global $K
(get_local $0)
)
)
(func $Ga (param $0 i32)
- (i32.store
- (i32.const 8)
+ (set_global $r
(get_local $0)
)
)
(func $Ma (result i32)
- (i32.load
- (i32.const 160)
- )
+ (get_global $K)
)
(func $Fa (result i32)
- (i32.load
- (i32.const 8)
- )
+ (get_global $r)
)
(func $ib (result i32)
(i32.const 0)