diff options
Diffstat (limited to 'test/unit.fromasm')
-rw-r--r-- | test/unit.fromasm | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/unit.fromasm b/test/unit.fromasm index 68f5920ee..020ded163 100644 --- a/test/unit.fromasm +++ b/test/unit.fromasm @@ -33,6 +33,7 @@ (export "conversions" (func $conversions)) (export "switcher" (func $switcher)) (export "frem" (func $frem)) + (export "frem_float" (func $legalstub$frem_float)) (export "big_uint_div_u" (func $big_uint_div_u)) (export "fr" (func $legalstub$fr)) (export "negZero" (func $negZero)) @@ -245,6 +246,14 @@ (f64.const 1.2) ) ) + (func $frem_float (result f32) + (f32.demote/f64 + (call $f64-rem + (f64.const 5.5) + (f64.const 1.2000000476837158) + ) + ) + ) (func $i32u-div (param $0 i32) (param $1 i32) (result i32) (if (result i32) (get_local $1) @@ -1217,6 +1226,11 @@ (func $ii (param $0 i32) (result i32) (get_local $0) ) + (func $legalstub$frem_float (result f64) + (f64.promote/f32 + (call $frem_float) + ) + ) (func $legalstub$fr (param $0 f64) (call $fr (f32.demote/f64 |