diff options
Diffstat (limited to 'test/unit.wast')
-rw-r--r-- | test/unit.wast | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/unit.wast b/test/unit.wast index 554751130..b331fa74e 100644 --- a/test/unit.wast +++ b/test/unit.wast @@ -131,6 +131,30 @@ (i32.const 0) ) ) + (func $conversions + (local $i i32) + (local $d f64) + (block + (set_local $i + (i32.trunc_s/f64 + (get_local $d) + ) + ) + (set_local $d + (f64.convert_s/i32 + (get_local $i) + ) + ) + (set_local $d + (f64.convert_u/i32 + (i32.shr_u + (get_local $i) + (i32.const 0) + ) + ) + ) + ) + ) (func $z (nop) ) |