diff options
Diffstat (limited to 'test/unit.fromasm.no-opts')
-rw-r--r-- | test/unit.fromasm.no-opts | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/test/unit.fromasm.no-opts b/test/unit.fromasm.no-opts index 29fede80c..d18dfd77e 100644 --- a/test/unit.fromasm.no-opts +++ b/test/unit.fromasm.no-opts @@ -1,7 +1,6 @@ (module (type $FUNCSIG$id (func (param f64) (result i32))) (type $FUNCSIG$ddd (func (param f64 f64) (result f64))) - (type $FUNCSIG$iii (func (param i32 i32) (result i32))) (type $FUNCSIG$vf (func (param f32))) (type $FUNCSIG$vi (func (param i32))) (type $FUNCSIG$v (func)) @@ -21,7 +20,6 @@ (import "env" "return_int" (func $return_int (result i32))) (import "asm2wasm" "f64-to-int" (func $f64-to-int (param f64) (result i32))) (import "asm2wasm" "f64-rem" (func $f64-rem (param f64 f64) (result f64))) - (import "asm2wasm" "i32u-div" (func $i32u-div (param i32 i32) (result i32))) (import "env" "memory" (memory $0 256 256)) (import "env" "table" (table 24 24 anyfunc)) (import "env" "memoryBase" (global $memoryBase i32)) @@ -379,6 +377,18 @@ ) ) ) + (func $i32u-div (param $0 i32) (param $1 i32) (result i32) + (if i32 + (i32.eqz + (get_local $1) + ) + (i32.const 0) + (i32.div_u + (get_local $0) + (get_local $1) + ) + ) + ) (func $big_uint_div_u (result i32) (local $x i32) (set_local $x |