diff options
Diffstat (limited to 'test/unit.fromasm')
-rw-r--r-- | test/unit.fromasm | 94 |
1 files changed, 64 insertions, 30 deletions
diff --git a/test/unit.fromasm b/test/unit.fromasm index 49189df43..5a790c92f 100644 --- a/test/unit.fromasm +++ b/test/unit.fromasm @@ -96,13 +96,19 @@ (local $0 f64) (local $1 f32) (local $2 i32) - (call_import $f64-to-int - (get_local $0) - ) - (set_local $2 + (drop (call_import $f64-to-int - (f64.promote/f32 - (get_local $1) + (get_local $0) + ) + ) + (drop + (f64.convert_s/i32 + (tee_local $2 + (call_import $f64-to-int + (f64.promote/f32 + (get_local $1) + ) + ) ) ) ) @@ -350,23 +356,29 @@ (nop) ) (func $recursiveBlockMerging (param $0 i32) (result i32) - (call $lb - (i32.add + (drop + (call $lb (i32.add (i32.add - (get_local $0) - (i32.const 3) + (i32.add + (get_local $0) + (i32.const 3) + ) + (i32.const 7) ) - (i32.const 7) + (i32.const 12) ) - (i32.const 12) ) ) - (call $lb - (i32.const 1) + (drop + (call $lb + (i32.const 1) + ) ) - (call $lb - (i32.const 2) + (drop + (call $lb + (i32.const 2) + ) ) (i32.add (i32.add @@ -377,14 +389,20 @@ ) ) (block - (call $lb - (i32.const 4) + (drop + (call $lb + (i32.const 4) + ) ) - (call $lb - (i32.const 5) + (drop + (call $lb + (i32.const 5) + ) ) - (call $lb - (i32.const 6) + (drop + (call $lb + (i32.const 6) + ) ) (call $lb (i32.const 7) @@ -392,17 +410,25 @@ ) ) (block - (call $lb - (i32.const 8) + (drop + (call $lb + (i32.const 8) + ) ) - (call $lb - (i32.const 9) + (drop + (call $lb + (i32.const 9) + ) ) - (call $lb - (i32.const 10) + (drop + (call $lb + (i32.const 10) + ) ) - (call $lb - (i32.const 11) + (drop + (call $lb + (i32.const 11) + ) ) (call $lb (i32.const 12) @@ -464,4 +490,12 @@ (i32.const 1) ) ) + (func $smallIf + (if + (i32.const 2) + (call $lb + (i32.const 3) + ) + ) + ) ) |