diff options
Diffstat (limited to 'test/memorygrowth.fromasm')
-rw-r--r-- | test/memorygrowth.fromasm | 747 |
1 files changed, 369 insertions, 378 deletions
diff --git a/test/memorygrowth.fromasm b/test/memorygrowth.fromasm index 5a8a49d8f..38d5d9e5d 100644 --- a/test/memorygrowth.fromasm +++ b/test/memorygrowth.fromasm @@ -3081,265 +3081,262 @@ (if (i32.eq (tee_local $8 - (block $label$break$b (result i32) - (if - (i32.eqz - (i32.and + (if (result i32) + (i32.and + (i32.load + (i32.const 1652) + ) + (i32.const 4) + ) + (i32.const 188) + (block $label$break$b (result i32) + (if + (tee_local $18 (i32.load - (i32.const 1652) + (i32.const 1232) ) - (i32.const 4) ) - ) - (block - (if - (tee_local $18 - (i32.load - (i32.const 1232) - ) + (block $label$break$c + (set_local $7 + (i32.const 1656) ) - (block $label$break$c - (set_local $7 - (i32.const 1656) - ) - (loop $while-in32 - (block $while-out31 - (if - (i32.le_u - (tee_local $3 - (i32.load - (get_local $7) - ) + (loop $while-in32 + (block $while-out31 + (if + (i32.le_u + (tee_local $3 + (i32.load + (get_local $7) ) - (get_local $18) ) - (if - (i32.gt_u - (i32.add - (get_local $3) - (i32.load - (tee_local $19 - (i32.add - (get_local $7) - (i32.const 4) - ) + (get_local $18) + ) + (if + (i32.gt_u + (i32.add + (get_local $3) + (i32.load + (tee_local $19 + (i32.add + (get_local $7) + (i32.const 4) ) ) ) - (get_local $18) - ) - (block - (set_local $0 - (get_local $7) - ) - (set_local $5 - (get_local $19) - ) - (br $while-out31) ) + (get_local $18) ) - ) - (br_if $while-in32 - (tee_local $7 - (i32.load offset=8 + (block + (set_local $0 (get_local $7) ) + (set_local $5 + (get_local $19) + ) + (br $while-out31) ) ) - (set_local $8 - (i32.const 171) - ) - (br $label$break$c) ) - ) - (if - (i32.lt_u + (br_if $while-in32 (tee_local $7 - (i32.and - (i32.sub - (get_local $11) - (i32.load - (i32.const 1220) - ) - ) - (get_local $21) + (i32.load offset=8 + (get_local $7) ) ) - (i32.const 2147483647) ) - (if - (i32.eq - (tee_local $19 - (call $ta - (get_local $7) - ) - ) - (i32.add - (i32.load - (get_local $0) - ) + (set_local $8 + (i32.const 171) + ) + (br $label$break$c) + ) + ) + (if + (i32.lt_u + (tee_local $7 + (i32.and + (i32.sub + (get_local $11) (i32.load - (get_local $5) + (i32.const 1220) ) ) + (get_local $21) ) - (if - (i32.ne - (get_local $19) - (i32.const -1) + ) + (i32.const 2147483647) + ) + (if + (i32.eq + (tee_local $19 + (call $ta + (get_local $7) ) - (block - (set_local $20 - (get_local $19) - ) - (set_local $26 - (get_local $7) - ) - (br $label$break$b - (i32.const 191) - ) + ) + (i32.add + (i32.load + (get_local $0) + ) + (i32.load + (get_local $5) ) ) + ) + (if + (i32.ne + (get_local $19) + (i32.const -1) + ) (block - (set_local $12 + (set_local $20 (get_local $19) ) - (set_local $1 + (set_local $26 (get_local $7) ) - (set_local $8 - (i32.const 181) + (br $label$break$b + (i32.const 191) ) ) ) + (block + (set_local $12 + (get_local $19) + ) + (set_local $1 + (get_local $7) + ) + (set_local $8 + (i32.const 181) + ) + ) ) ) - (set_local $8 - (i32.const 171) - ) + ) + (set_local $8 + (i32.const 171) + ) + ) + (if + (i32.eq + (get_local $8) + (i32.const 171) ) (if - (i32.eq - (get_local $8) - (i32.const 171) - ) - (if - (i32.ne - (tee_local $18 - (call $ta - (i32.const 0) - ) + (i32.ne + (tee_local $18 + (call $ta + (i32.const 0) ) - (i32.const -1) ) - (block $do-once33 - (set_local $2 - (if (result i32) - (i32.and - (tee_local $19 - (i32.add - (tee_local $7 - (i32.load - (i32.const 1684) - ) + (i32.const -1) + ) + (block $do-once33 + (set_local $2 + (if (result i32) + (i32.and + (tee_local $19 + (i32.add + (tee_local $7 + (i32.load + (i32.const 1684) ) - (i32.const -1) ) - ) - (tee_local $0 - (get_local $18) + (i32.const -1) ) ) - (i32.add - (i32.sub - (get_local $14) + (tee_local $0 + (get_local $18) + ) + ) + (i32.add + (i32.sub + (get_local $14) + (get_local $0) + ) + (i32.and + (i32.add + (get_local $19) (get_local $0) ) - (i32.and - (i32.add - (get_local $19) - (get_local $0) - ) - (i32.sub - (i32.const 0) - (get_local $7) - ) + (i32.sub + (i32.const 0) + (get_local $7) ) ) - (get_local $14) ) + (get_local $14) ) - (set_local $0 - (i32.add - (tee_local $7 - (i32.load - (i32.const 1640) - ) + ) + (set_local $0 + (i32.add + (tee_local $7 + (i32.load + (i32.const 1640) ) + ) + (get_local $2) + ) + ) + (if + (i32.and + (i32.gt_u (get_local $2) + (get_local $6) + ) + (i32.lt_u + (get_local $2) + (i32.const 2147483647) ) ) - (if - (i32.and - (i32.gt_u - (get_local $2) - (get_local $6) - ) - (i32.lt_u - (get_local $2) - (i32.const 2147483647) + (block + (if + (tee_local $19 + (i32.load + (i32.const 1648) + ) ) - ) - (block - (if - (tee_local $19 - (i32.load - (i32.const 1648) + (br_if $do-once33 + (i32.or + (i32.le_u + (get_local $0) + (get_local $7) ) - ) - (br_if $do-once33 - (i32.or - (i32.le_u - (get_local $0) - (get_local $7) - ) - (i32.gt_u - (get_local $0) - (get_local $19) - ) + (i32.gt_u + (get_local $0) + (get_local $19) ) ) ) - (set_local $1 - (if (result i32) - (i32.eq - (tee_local $19 - (call $ta - (get_local $2) - ) - ) - (get_local $18) - ) - (block - (set_local $20 - (get_local $18) - ) - (set_local $26 + ) + (set_local $1 + (if (result i32) + (i32.eq + (tee_local $19 + (call $ta (get_local $2) ) - (br $label$break$b - (i32.const 191) - ) ) - (block (result i32) - (set_local $12 - (get_local $19) - ) - (set_local $8 - (i32.const 181) - ) + (get_local $18) + ) + (block + (set_local $20 + (get_local $18) + ) + (set_local $26 (get_local $2) ) + (br $label$break$b + (i32.const 191) + ) + ) + (block (result i32) + (set_local $12 + (get_local $19) + ) + (set_local $8 + (i32.const 181) + ) + (get_local $2) ) ) ) @@ -3347,115 +3344,115 @@ ) ) ) - (if - (i32.eq - (get_local $8) - (i32.const 181) - ) - (block $label$break$d - (set_local $19 - (i32.sub - (i32.const 0) - (get_local $1) - ) + ) + (if + (i32.eq + (get_local $8) + (i32.const 181) + ) + (block $label$break$d + (set_local $19 + (i32.sub + (i32.const 0) + (get_local $1) ) - (set_local $4 - (if (result i32) + ) + (set_local $4 + (if (result i32) + (i32.and + (i32.gt_u + (get_local $15) + (get_local $1) + ) (i32.and - (i32.gt_u - (get_local $15) + (i32.lt_u (get_local $1) + (i32.const 2147483647) ) - (i32.and - (i32.lt_u - (get_local $1) - (i32.const 2147483647) - ) - (i32.ne - (get_local $12) - (i32.const -1) - ) + (i32.ne + (get_local $12) + (i32.const -1) ) ) - (if (result i32) - (i32.lt_u - (tee_local $0 - (i32.and - (i32.add - (i32.sub - (get_local $17) - (get_local $1) - ) - (tee_local $18 - (i32.load - (i32.const 1688) - ) - ) - ) + ) + (if (result i32) + (i32.lt_u + (tee_local $0 + (i32.and + (i32.add (i32.sub - (i32.const 0) - (get_local $18) + (get_local $17) + (get_local $1) ) + (tee_local $18 + (i32.load + (i32.const 1688) + ) + ) + ) + (i32.sub + (i32.const 0) + (get_local $18) ) ) - (i32.const 2147483647) ) - (if (result i32) - (i32.eq - (call $ta - (get_local $0) - ) - (i32.const -1) + (i32.const 2147483647) + ) + (if (result i32) + (i32.eq + (call $ta + (get_local $0) ) - (block - (drop - (call $ta - (get_local $19) - ) + (i32.const -1) + ) + (block + (drop + (call $ta + (get_local $19) ) - (br $label$break$d) - ) - (i32.add - (get_local $0) - (get_local $1) ) + (br $label$break$d) + ) + (i32.add + (get_local $0) + (get_local $1) ) - (get_local $1) ) (get_local $1) ) + (get_local $1) ) - (if - (i32.ne + ) + (if + (i32.ne + (get_local $12) + (i32.const -1) + ) + (block + (set_local $20 (get_local $12) - (i32.const -1) ) - (block - (set_local $20 - (get_local $12) - ) - (set_local $26 - (get_local $4) - ) - (br $label$break$b - (i32.const 191) - ) + (set_local $26 + (get_local $4) + ) + (br $label$break$b + (i32.const 191) ) ) ) ) - (i32.store - (i32.const 1652) - (i32.or - (i32.load - (i32.const 1652) - ) - (i32.const 4) + ) + (i32.store + (i32.const 1652) + (i32.or + (i32.load + (i32.const 1652) ) + (i32.const 4) ) ) + (i32.const 188) ) - (i32.const 188) ) ) (i32.const 188) @@ -8033,7 +8030,7 @@ (local $6 i32) (local $7 i32) (if - (tee_local $5 + (tee_local $4 (i32.load (tee_local $3 (i32.add @@ -8045,7 +8042,7 @@ ) (block (set_local $6 - (get_local $5) + (get_local $4) ) (set_local $7 (i32.const 5) @@ -8074,26 +8071,26 @@ (get_local $7) (i32.const 5) ) - (block $label$break$a - (if - (i32.lt_u - (i32.sub - (get_local $6) - (tee_local $3 - (i32.load - (tee_local $5 - (i32.add - (get_local $2) - (i32.const 20) + (set_local $5 + (block $label$break$a (result i32) + (if + (i32.lt_u + (i32.sub + (get_local $6) + (tee_local $3 + (i32.load + (tee_local $4 + (i32.add + (get_local $2) + (i32.const 20) + ) ) ) ) ) + (get_local $1) ) - (get_local $1) - ) - (block - (set_local $4 + (br $label$break$a (call_indirect (type $FUNCSIG$iiii) (get_local $2) (get_local $0) @@ -8109,122 +8106,116 @@ ) ) ) - (br $label$break$a) ) - ) - (set_local $4 - (get_local $3) - ) - (if - (i32.gt_s - (i32.load8_s offset=75 - (get_local $2) - ) - (i32.const -1) + (set_local $5 + (get_local $3) ) - (block $label$break$b - (set_local $3 - (get_local $1) + (if + (i32.gt_s + (i32.load8_s offset=75 + (get_local $2) + ) + (i32.const -1) ) - (loop $while-in - (if - (i32.eqz - (get_local $3) - ) - (block - (set_local $3 - (i32.const 0) + (block $label$break$b + (set_local $3 + (get_local $1) + ) + (loop $while-in + (if + (i32.eqz + (get_local $3) + ) + (block + (set_local $3 + (i32.const 0) + ) + (br $label$break$b) ) - (br $label$break$b) ) - ) - (if - (i32.ne - (i32.load8_s - (i32.add - (get_local $0) - (tee_local $6 - (i32.add - (get_local $3) - (i32.const -1) + (if + (i32.ne + (i32.load8_s + (i32.add + (get_local $0) + (tee_local $6 + (i32.add + (get_local $3) + (i32.const -1) + ) ) ) ) + (i32.const 10) ) - (i32.const 10) - ) - (block - (set_local $3 - (get_local $6) + (block + (set_local $3 + (get_local $6) + ) + (br $while-in) ) - (br $while-in) ) ) - ) - (if - (i32.lt_u - (call_indirect (type $FUNCSIG$iiii) - (get_local $2) - (get_local $0) + (drop + (br_if $label$break$a (get_local $3) - (i32.add - (i32.and - (i32.load offset=36 - (get_local $2) + (i32.lt_u + (call_indirect (type $FUNCSIG$iiii) + (get_local $2) + (get_local $0) + (get_local $3) + (i32.add + (i32.and + (i32.load offset=36 + (get_local $2) + ) + (i32.const 3) + ) + (i32.const 2) ) - (i32.const 3) ) - (i32.const 2) + (get_local $3) ) ) - (get_local $3) ) - (block - (set_local $4 + (set_local $1 + (i32.sub + (get_local $1) (get_local $3) ) - (br $label$break$a) ) - ) - (set_local $1 - (i32.sub - (get_local $1) - (get_local $3) + (set_local $0 + (i32.add + (get_local $0) + (get_local $3) + ) ) - ) - (set_local $0 - (i32.add - (get_local $0) - (get_local $3) + (set_local $5 + (i32.load + (get_local $4) + ) ) ) - (set_local $4 - (i32.load - (get_local $5) - ) + (set_local $3 + (i32.const 0) ) ) - (set_local $3 - (i32.const 0) + (drop + (call $jb + (get_local $5) + (get_local $0) + (get_local $1) + ) ) - ) - (drop - (call $jb + (i32.store (get_local $4) - (get_local $0) - (get_local $1) - ) - ) - (i32.store - (get_local $5) - (i32.add - (i32.load - (get_local $5) + (i32.add + (i32.load + (get_local $4) + ) + (get_local $1) ) - (get_local $1) ) - ) - (set_local $4 (i32.add (get_local $3) (get_local $1) @@ -8232,7 +8223,7 @@ ) ) ) - (get_local $4) + (get_local $5) ) (func $Za (; 17 ;) (; has Stack IR ;) (param $0 i32) (result i32) (local $1 i32) |