diff options
Diffstat (limited to 'test/memorygrowth.fromasm')
-rw-r--r-- | test/memorygrowth.fromasm | 204 |
1 files changed, 82 insertions, 122 deletions
diff --git a/test/memorygrowth.fromasm b/test/memorygrowth.fromasm index 6a67b7fc0..cf59a4baf 100644 --- a/test/memorygrowth.fromasm +++ b/test/memorygrowth.fromasm @@ -7687,9 +7687,7 @@ (local $13 i32) (local $14 i32) (local $15 i32) - (local $16 i32) - (local $17 i32) - (local.set $12 + (local.set $7 (global.get $r) ) (global.set $r @@ -7698,29 +7696,25 @@ (i32.const 48) ) ) - (local.set $9 + (local.set $11 (i32.add - (local.get $12) + (local.get $7) (i32.const 16) ) ) + (local.set $9 + (local.get $7) + ) (i32.store (local.tee $3 (i32.add - (local.tee $10 - (local.get $12) - ) + (local.get $7) (i32.const 32) ) ) - (local.tee $11 - (i32.load - (local.tee $7 - (i32.add - (local.get $0) - (i32.const 28) - ) - ) + (local.tee $10 + (i32.load offset=28 + (local.get $0) ) ) ) @@ -7728,15 +7722,10 @@ (local.get $3) (local.tee $8 (i32.sub - (i32.load - (local.tee $13 - (i32.add - (local.get $0) - (i32.const 20) - ) - ) + (i32.load offset=20 + (local.get $0) ) - (local.get $11) + (local.get $10) ) ) ) @@ -7754,7 +7743,7 @@ (i32.const 60) ) ) - (local.set $11 + (local.set $10 (i32.add (local.get $0) (i32.const 44) @@ -7788,24 +7777,24 @@ (local.get $0) ) (i32.store - (local.get $10) + (local.get $9) (i32.load (local.get $1) ) ) (i32.store offset=4 - (local.get $10) + (local.get $9) (local.get $5) ) (i32.store offset=8 - (local.get $10) + (local.get $9) (local.get $3) ) (local.set $8 (call $Pa (call $ya (i32.const 146) - (local.get $10) + (local.get $9) ) ) ) @@ -7815,24 +7804,24 @@ (local.get $8) ) (block (result i32) - (i32.store - (local.get $9) + (i32.store offset=16 + (local.get $7) (i32.load (local.get $1) ) ) (i32.store offset=4 - (local.get $9) + (local.get $11) (local.get $5) ) (i32.store offset=8 - (local.get $9) + (local.get $11) (local.get $3) ) (call $Pa (call $ya (i32.const 146) - (local.get $9) + (local.get $11) ) ) ) @@ -7852,10 +7841,10 @@ (i32.const 0) ) (block - (local.set $16 + (local.set $14 (local.get $5) ) - (local.set $17 + (local.set $15 (local.get $3) ) (local.set $1 @@ -7873,23 +7862,23 @@ (if (i32.gt_u (local.get $6) - (local.tee $14 + (local.tee $12 (i32.load offset=4 (local.get $5) ) ) ) (block - (i32.store - (local.get $7) + (i32.store offset=28 + (local.get $0) (local.tee $4 (i32.load - (local.get $11) + (local.get $10) ) ) ) - (i32.store - (local.get $13) + (i32.store offset=20 + (local.get $0) (local.get $4) ) (local.set $4 @@ -7900,7 +7889,7 @@ (local.set $6 (i32.sub (local.get $6) - (local.get $14) + (local.get $12) ) ) (local.set $5 @@ -7923,12 +7912,12 @@ (i32.const 2) ) (block - (i32.store - (local.get $7) + (i32.store offset=28 + (local.get $0) (i32.add (local.get $6) - (i32.load - (local.get $7) + (i32.load offset=28 + (local.get $0) ) ) ) @@ -7938,7 +7927,7 @@ ) ) (local.set $4 - (local.get $14) + (local.get $12) ) ) ) @@ -7964,7 +7953,7 @@ (br $while-in) ) ) - (local.set $15 + (local.set $13 (if (result i32) (i32.eq (local.get $1) @@ -7976,7 +7965,7 @@ (i32.add (local.tee $4 (i32.load - (local.get $11) + (local.get $10) ) ) (i32.load offset=48 @@ -7984,12 +7973,12 @@ ) ) ) - (i32.store - (local.get $7) + (i32.store offset=28 + (local.get $0) (local.get $4) ) - (i32.store - (local.get $13) + (i32.store offset=20 + (local.get $0) (local.get $4) ) (local.get $2) @@ -8004,12 +7993,12 @@ (local.get $0) (i32.const 0) ) - (i32.store - (local.get $7) + (i32.store offset=28 + (local.get $0) (i32.const 0) ) - (i32.store - (local.get $13) + (i32.store offset=20 + (local.get $0) (i32.const 0) ) (i32.store @@ -8023,26 +8012,26 @@ ) (if (result i32) (i32.eq - (local.get $17) + (local.get $15) (i32.const 2) ) (i32.const 0) (i32.sub (local.get $2) (i32.load offset=4 - (local.get $16) + (local.get $14) ) ) ) ) - (local.get $15) + (local.get $13) ) ) ) (global.set $r - (local.get $12) + (local.get $7) ) - (local.get $15) + (local.get $13) ) (func $Wa (; 16 ;) (; has Stack IR ;) (param $0 i32) (param $1 i32) (result i32) (local $2 i32) @@ -8579,26 +8568,13 @@ (local $1 i32) (local $2 i32) (local $3 i32) - (local $4 i32) - (local $5 i32) - (local $6 i32) (if (i32.gt_u - (i32.load - (local.tee $3 - (i32.add - (local.get $0) - (i32.const 20) - ) - ) + (i32.load offset=20 + (local.get $0) ) - (i32.load - (local.tee $4 - (i32.add - (local.get $0) - (i32.const 28) - ) - ) + (i32.load offset=28 + (local.get $0) ) ) (block @@ -8619,8 +8595,8 @@ ) ) (if - (i32.load - (local.get $3) + (i32.load offset=20 + (local.get $0) ) (local.set $1 (i32.const 3) @@ -8652,14 +8628,9 @@ ) ) ) - (local.tee $6 - (i32.load - (local.tee $5 - (i32.add - (local.get $0) - (i32.const 8) - ) - ) + (local.tee $3 + (i32.load offset=8 + (local.get $0) ) ) ) @@ -8668,7 +8639,7 @@ (local.get $0) (i32.sub (local.get $2) - (local.get $6) + (local.get $3) ) (i32.const 1) (i32.add @@ -8687,16 +8658,16 @@ (local.get $0) (i32.const 0) ) - (i32.store - (local.get $4) + (i32.store offset=28 + (local.get $0) (i32.const 0) ) - (i32.store - (local.get $3) + (i32.store offset=20 + (local.get $0) (i32.const 0) ) - (i32.store - (local.get $5) + (i32.store offset=8 + (local.get $0) (i32.const 0) ) (i32.store @@ -8999,7 +8970,6 @@ (func $db (; 24 ;) (; has Stack IR ;) (local $0 i32) (local $1 i32) - (local $2 i32) (drop (i32.load offset=76 (local.tee $0 @@ -9033,13 +9003,8 @@ (if (i32.lt_u (local.tee $1 - (i32.load - (local.tee $2 - (i32.add - (local.get $0) - (i32.const 20) - ) - ) + (i32.load offset=20 + (local.get $0) ) ) (i32.load offset=16 @@ -9047,8 +9012,8 @@ ) ) (block - (i32.store - (local.get $2) + (i32.store offset=20 + (local.get $0) (i32.add (local.get $1) (i32.const 1) @@ -9182,8 +9147,7 @@ ) (func $Ua (; 27 ;) (; has Stack IR ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32) (local $3 i32) - (local $4 i32) - (local.set $4 + (local.set $3 (global.get $r) ) (global.set $r @@ -9193,9 +9157,7 @@ ) ) (i32.store - (local.tee $3 - (local.get $4) - ) + (local.get $3) (i32.load offset=60 (local.get $0) ) @@ -9210,11 +9172,9 @@ ) (i32.store offset=12 (local.get $3) - (local.tee $0 - (i32.add - (local.get $3) - (i32.const 20) - ) + (i32.add + (local.get $3) + (i32.const 20) ) ) (i32.store offset=16 @@ -9233,19 +9193,19 @@ (i32.const 0) ) (block (result i32) - (i32.store - (local.get $0) + (i32.store offset=20 + (local.get $3) (i32.const -1) ) (i32.const -1) ) - (i32.load - (local.get $0) + (i32.load offset=20 + (local.get $3) ) ) ) (global.set $r - (local.get $4) + (local.get $3) ) (local.get $0) ) |