diff options
Diffstat (limited to 'test/memorygrowth.fromasm')
-rw-r--r-- | test/memorygrowth.fromasm | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/test/memorygrowth.fromasm b/test/memorygrowth.fromasm index e33525578..b06a13f64 100644 --- a/test/memorygrowth.fromasm +++ b/test/memorygrowth.fromasm @@ -1,10 +1,10 @@ (module (type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32))) - (type $FUNCSIG$iii (func (param i32 i32) (result i32))) (type $FUNCSIG$ii (func (param i32) (result i32))) (type $FUNCSIG$vi (func (param i32))) (type $FUNCSIG$v (func)) (type $FUNCSIG$vii (func (param i32 i32))) + (type $FUNCSIG$iii (func (param i32 i32) (result i32))) (import "env" "STACKTOP" (global $r$asm2wasm$import i32)) (import "env" "STACK_MAX" (global $s$asm2wasm$import i32)) (import "env" "abort" (func $ja (param i32))) @@ -19,7 +19,6 @@ (import "env" "___syscall54" (func $wa (param i32 i32) (result i32))) (import "env" "___unlock" (func $xa (param i32))) (import "env" "___syscall146" (func $ya (param i32 i32) (result i32))) - (import "asm2wasm" "i32u-div" (func $i32u-div (param i32 i32) (result i32))) (import "env" "memory" (memory $0 256)) (import "env" "table" (table 8 8 anyfunc)) (import "env" "memoryBase" (global $memoryBase i32)) @@ -9442,6 +9441,16 @@ ) ) ) + (func $i32u-div (param $0 i32) (param $1 i32) (result i32) + (if i32 + (get_local $1) + (i32.div_u + (get_local $0) + (get_local $1) + ) + (i32.const 0) + ) + ) (func $bb (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32) (local $4 i32) (local $5 i32) |